{"version":3,"sources":["Share/Components/Footer.module.scss","Components/WesWizardModal.module.scss","Share/Components/RecipientList.module.scss","Components/WesForm.module.scss","UploadDocument/Components/FileUploadList.module.scss","Components/NavbarUserInfo.module.scss","Share/Components/DocumentList.module.scss","Share/Components/SubTotal.module.scss","Share/Components/RecipientForm.module.scss","VerifyCredential/Components/OrderSummary.module.scss","Components/UploadFile.module.scss","Share/ShareDocViewer.module.scss","Services/DataServiceModels.ts","Services/AuthProvider.ts","Services/DataService.ts","Services/FormatService.ts","Contexts/WesContext.tsx","Components/WesDataList.tsx","Components/WesBadge.tsx","Components/DashboardTitle.tsx","Assets/Images/logo.svg","Assets/Config.ts","Orders/Receipt.tsx","Orders/TransactionHistoryList.tsx","Components/WesButton.tsx","Share/Components/DocumentList.tsx","Share/Components/SubTotal.tsx","Assets/Images/exit.svg","Share/Components/Footer.tsx","Components/StepProgressBar.tsx","Assets/Images/arrow-forward.svg","Assets/Images/arrow-back.svg","Components/WesModal.tsx","Components/WesWizardModal.tsx","Components/FormHeader.tsx","Share/Components/RecipientList.tsx","Services/Validations.ts","Components/WesForm.tsx","Share/Components/RecipientForm.tsx","VerifyCredential/Components/OrderSummary.tsx","Share/ShareDocuments.tsx","Assets/Images/upload.svg","Credentials/MyDocumentList.tsx","Components/UploadFile.tsx","UploadDocument/Components/UploadInfo.tsx","Assets/Images/pdf-icon.svg","Assets/Images/jpg-icon.svg","UploadDocument/Components/FileUploadList.tsx","Assets/Images/required-docs.svg","UploadDocument/UploadDocument.tsx","Credentials/Components/PendingActions.tsx","VerifyCredential/Components/CredentialForm.tsx","VerifyCredential/Components/RequiredDocsInfo.tsx","VerifyCredential/Components/ReviewCredential.tsx","VerifyCredential/AddCredential.tsx","Credentials/PendingVerificationList.tsx","Share/ShareHistoryList.tsx","Assets/Images/profile-icon.svg","Components/NavbarUserInfo.tsx","Auth/Auth.tsx","Auth/NotAuthenticated.tsx","Orders/PaymentCallback.tsx","ExpiredPdf/ExpiredPdf.tsx","Assets/Images/803.gif","Subscriptions/AddSubscription.tsx","AutoSignOut.tsx","Subscriptions/ExistingSubscriber.tsx","Share/ShareDocViewer.tsx","App.tsx","index.tsx","Components/WesDataList.module.scss","Components/WesModal.module.scss","Components/DashboardTitle.module.scss","Components/StepProgressBar.module.scss","Orders/PaymentCallBack.module.scss","Subscriptions/ExistingSubscriber.module.scss","Components/WesButton.module.scss","VerifyCredential/Components/ReviewCredential.module.scss","Components/FormHeader.module.scss","Credentials/MyDocumentList.module.scss","Credentials/PendingVerificationList.module.scss"],"names":["module","exports","OrderType","AuthResultType","AudienceType","AuthProvider","auth","Date","expires","console","log","getAuth","_hasExpired","localStorage","removeItem","result","setItem","JSON","stringify","getItem","obj","parse","DataService","url","fetch","headers","getHeaders","then","x","json","data","getPostRequest","Headers","append","token","request","method","body","values","post","value","getData","accessKey","credential","subOrder","authToken","credentialId","files","formData","FormData","i","length","FormatService","dt","month","getMonth","day","getDate","year","getFullYear","join","str","args","replace","match","index","WesContext","React","createContext","authChanged","Subject","resources","get","selector","String","error","val","formatString","getNested","splitted","split","v","temp","logging","e","hasSubscription","authenticated","user","undefined","timelineUrl","timelineSignOutUrl","init","this","profile","setAuth","authResult","type","Success","next","signOut","clear","WesDataList","state","expandedIndexes","props","columns","renderExpandRow","noDataText","loading","header","map","item","key","Col","className","styles","title","list","renderList","active","Container","container","Row","expanderColumn","dataIndex","cols","dataItem","colIndex","render","rowStyle","onClick","toggleExpand","getExpander","renderExpand","re","isExpanded","expandSeperator","cls","collapse","expand","indexOf","start","splice","push","setState","Component","WesBadge","alert","Badge","bg","text","count","DashboardTitle","Stack","direction","gap","style","width","dashBoardListHeader","badge","children","button","subtitle","subtext","_excluded","_extends","Object","assign","target","arguments","source","prototype","hasOwnProperty","call","apply","_objectWithoutProperties","excluded","sourceKeys","keys","_objectWithoutPropertiesLoose","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","SvgLogo","_ref","svgRef","titleId","height","id","xmlns","viewBox","ref","d","fill","FileValidation","ForwardRef","Receipt","Modal","show","Header","closeButton","onHide","onClose","Title","Body","orderId","Config","file","size","maxUploadFileSize","FileTooBig","validUploadMimeTypes","includes","InvalidFileType","currency","toFixed","recipients","docs","sharePricePerAdd","maxUploads","credentialVerificationPrice","learnMoreUri","TransactionHistoryList","res","context","transactions","showReceipt","a","getTransactionHistory","formatDate","date","amount","contextType","WesButton","preventDefault","disabled","btn","btnsecondary","btnprimary","btndisabled","href","span","DocumentList","documents","doc","name","SubTotal","rl","dl","price","calcSharePrice","subtotal","label","_path","_path2","_path3","Footer","doclist","StepProgressBar","itemWidth","steps","step","current","step3","step2","progressbar","SvgExit","stroke","strokeWidth","strokeLinecap","strokeLinejoin","fillRule","clipRule","SvgArrowForward","SvgArrowBack","WesModal","onPrev","runClick","prevBtn","onNext","nextBtn","contentClassName","modalContent","backdrop","keyboard","centered","bsPrefix","modalBody","showBar","footer","renderPrev","renderNext","visible","btnCls","footerBtn","iconCls","enabled","WesWizardModal","backText","onBack","nextText","nextEnabled","contentView","content","FormHeader","RecipientList","onDelete","onEdit","recipient","organization","email","actionLink","Validations","required","reqString","maxLength","msg","Yup","max","test","WesForm","doSubmit","form","onSubmit","resetForm","initialValues","fields","forEach","initialValue","validationSchema","validation","handleSubmit","handleChange","handleBlur","errors","touched","isValid","submitForm","setFieldValue","setFieldTouched","Form","noValidate","bindSubmit","field","Group","as","controlId","Label","column","sm","renderLabel","renderField","renderFormElement","Control","onChange","isInvalid","Feedback","req","formLabel","requiredIcon","RecipientForm","shape","personName","edit","saveButton","OrderSummary","formatCurrency","priceLabel","hidden","isCanApp","Check","checked","isHst","handleIsCanCheckbox","ShareDocuments","nextStep","processShare","process","window","location","forwardUrl","catch","err","handleOrdSummaryCheckbox","handleDelete","r","findIndex","getNextText","canNext","getStep","getStep1","getStep2","getStep3","MyDocumentList","selected","expanderRow","credentialContainer","credentialCol","md","offset","FormCheck","isSelected","toggleSelected","loadData","certificate","country","verificationDate","ckShareCol","isAllSelected","toggleAllSelected","currentTarget","getMyCredentials","cred","exists","find","every","SvgUpload","validTypes","UploadFile","fileInput","onDragOver","onDragEnter","onDragLeave","onInputFileUpload","tryFireEvent","onFileDrop","dataTransfer","createRef","onDrop","display","multiple","click","validateFile","onFilesAdded","UploadInfo","_path4","_path5","_path6","_path7","_path8","SvgPdfIcon","SvgJpgIcon","FileUploadList","rows","margin","Card","xs","lg","getFileIcon","onPreview","onRemove","ft","toLowerCase","endsWith","URL","createObjectURL","open","_rect","_line","_line2","_line3","UploadDocument","understood","uploading","close","onFiles","handleNext","uploadDocuments","el","renderStep1","renderStep2","complete","onComplete","padding","SvgRequiredDocs","y","x1","y1","x2","y2","PendingActions","showUpload","didUpload","OverlayTrigger","placement","overlay","Tooltip","onReqDocsClick","CredentialForm","countries","yearStarted","yearStart","yearFinished","yearFinish","yearAwarded","when","schema","onCredentialChange","h","Number","options","reverse","currYear","getCountries","c","Select","fieldOfStudy","handleYearAwardedChange","createAwardYears","handleYearStartedChange","defaultValue","createFromYears","handleYearFinishedChange","createToYears","RequiredDocsInfo","resNested","ReviewCredential","renderRow","renderRowRaw","labelKey","accessor","toString","row","AddCredential","showModal","isFree","newCred","firstName","lastName","processNewCredential","origin","onCredentialSubmit","getStepValues","component","checkCredFree","bt","PendingVerificationList","showReqDocs","orderNumber","getAlertCount","reqDocsClose","alerts","isMissingDegreeCertificate","actions","isMissingTranscript","getMyPendingCredentials","ShareHistoryList","credentialName","documentName","isViewed","getShareHistory","_g","_defs","SvgProfileIcon","clipPath","NavbarUserInfo","welcomeUserName","grsNumber","Overlay","Popover","to","Auth","search","substring","authenticate","history","NotAuthenticated","contextUrl","getNoAuthUrl","State","ExpiredPdf","PaymentCallback","status","Loading","orderInfo","Declined","processOrder","Error","comp","getComponent","src","alt","loadingImg","contentDiv","getTitle","getOrderBody","refNumberPad","Subscription","CredentialVerification","ShareCredential","oi","getFormHeader","getShareBody","getCredBody","Documents","Id","Name","CredentialId","Recipients","Organization","Email","NextSteps","AddSubscription","dontShowAgain","icap","isICAP","cssStyle","benefits","priceHeader","audienceType","isDraft","learnMoreUrl","textDecoration","benefitsList","b","createIcapSubscription","refreshToken","processSubscription","gateway","declineGrs","ExistingSubscriber","marginLeft","descriptionContainer","contentContainer","textAlign","AutoSignOut","Good","warnTimerId","signOutTimerId","sub","startWarningTimer","subscribe","stopTimers","unsubscribe","Expired","renewToken","warnMillis","getMillisUntilExpires","setTimeout","Expiring","clearTimeout","getTime","ShareDocViewer","success","fileLink","pages","onDocLoadSuccess","numPages","fileSource","ex","wrapper","App","forceUpdate","pagePath","pathname","Navbar","Brand","Collapse","role","Text","showContent","renderMenu","renderContent","Nav","defaultActiveKey","exact","activeClassName","path","getRoot","ReactDOM","document","getElementById"],"mappings":"qGACAA,EAAOC,QAAU,CAAC,UAAY,0BAA0B,QAAU,wBAAwB,SAAW,2B,0kPCArGD,EAAOC,QAAU,CAAC,YAAc,oCAAoC,QAAU,kC,oBCA9ED,EAAOC,QAAU,CAAC,WAAa,oC,oBCA/BD,EAAOC,QAAU,CAAC,UAAY,2BAA2B,aAAe,gC,oBCAxED,EAAOC,QAAU,CAAC,WAAa,qC,oBCA/BD,EAAOC,QAAU,CAAC,gBAAkB,wCAAwC,UAAY,oC,oBCAxFD,EAAOC,QAAU,CAAC,UAAY,kC,oBCA9BD,EAAOC,QAAU,CAAC,MAAQ,0B,oBCA1BD,EAAOC,QAAU,CAAC,WAAa,oC,oBCA/BD,EAAOC,QAAU,CAAC,WAAa,mC,oBCA/BD,EAAOC,QAAU,CAAC,QAAU,8B,oBCA5BD,EAAOC,QAAU,CAAC,WAAa,mCAAmC,QAAU,gCAAgC,WAAa,qC,kECqD7GC,EA2DAC,EAMAC,E,yJCjHSC,E,gGAEjB,SAA2BC,GAEvB,OADmB,IAAIC,KAAKD,EAAME,SACjB,IAAID,OACjBE,QAAQC,IAAI,uBACL,K,wBAKf,WACI,IAAMJ,EAAOD,EAAaM,UAC1B,OAAON,EAAaO,YAAYN,K,mBAGpC,WACIO,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AC,YAAc,oCAAoC,oBAAsB,4CAA4C,cAAgB,sCAAsC,WAAa,qC,mBCAzMD,EAAOC,QAAU,CAAC,YAAc,6CAA6C,QAAU,4C","file":"static/js/main.742d4fbc.chunk.js","sourcesContent":["// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"Footer_container__2C7kg\",\"doclist\":\"Footer_doclist__uXBpc\",\"subtotal\":\"Footer_subtotal__3NhzF\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"contentView\":\"WesWizardModal_contentView__262XZ\",\"content\":\"WesWizardModal_content__2efby\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"actionLink\":\"RecipientList_actionLink__2ZmKl\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"formLabel\":\"WesForm_formLabel__1qiIi\",\"requiredIcon\":\"WesForm_requiredIcon__DIv3I\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"actionLink\":\"FileUploadList_actionLink__3aYLu\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"welcomeUserName\":\"NavbarUserInfo_welcomeUserName__WdKIw\",\"grsNumber\":\"NavbarUserInfo_grsNumber__HFZlb\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"DocumentList_container__1GWgn\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"label\":\"SubTotal_label__2WYtc\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"saveButton\":\"RecipientForm_saveButton__2-0Et\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"priceLabel\":\"OrderSummary_priceLabel__L2Uqz\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"content\":\"UploadFile_content__38z3o\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"embedCover\":\"ShareDocViewer_embedCover__1nRSV\",\"wrapper\":\"ShareDocViewer_wrapper__1JdYZ\",\"pdfWrapper\":\"ShareDocViewer_pdfWrapper__1zk8L\"};","export interface ICredential {\r\n id?: number; \r\n country: string;\r\n organization: string;\r\n certificate: string;\r\n firstName: string;\r\n middleName: string;\r\n lastName: string;\r\n fieldOfStudy: string;\r\n yearAwarded?: number;\r\n yearStart?: number;\r\n yearFinish?: number;\r\n isHst: boolean;\r\n isFree: boolean;\r\n}\r\n\r\nexport interface IPendingVerificationCredential extends ICredential {\r\n orderNumber: string;\r\n isMissingTranscript: boolean;\r\n isMissingDegreeCertificate: boolean;\r\n}\r\n\r\nexport interface ICountry {\r\n id: number;\r\n name: string;\r\n}\r\n\r\nexport interface IGatewayProcess {\r\n forwardUrl: string;\r\n}\r\n\r\nexport interface IMyCredential extends ICredential {\r\n verificationDate: string;\r\n documents: IDocument[];\r\n}\r\n\r\nexport interface IDocument {\r\n id: number;\r\n name: string;\r\n credentialId?: number;\r\n}\r\n\r\nexport interface IShareRequest {\r\n documents: IDocument[];\r\n recipients: IRecipient[];\r\n isHst: boolean;\r\n}\r\n\r\nexport interface IRecipient {\r\n name: string;\r\n email: string;\r\n organization: string;\r\n}\r\n\r\nexport enum OrderType {\r\n CredentialVerification = 1,\r\n ShareCredential = 2,\r\n Subscription = 3\r\n}\r\n\r\nexport interface IShareHistoryItem {\r\n id: number;\r\n recipient: string;\r\n email: string;\r\n documentName: string;\r\n date: Date;\r\n isViewed: boolean;\r\n credentialName: string;\r\n}\r\n\r\nexport interface IOrderProcessComplete {\r\n amount: number;\r\n orderNumber: string;\r\n type: OrderType;\r\n json: string;\r\n}\r\n\r\nexport interface IOrder {\r\n id: number;\r\n type: OrderType;\r\n amount: number;\r\n date: string;\r\n}\r\n\r\nexport interface IAuthResult {\r\n profile: IProfile;\r\n type: AuthResultType;\r\n token: string;\r\n expires: number;\r\n hasSubscription: boolean;\r\n timelineUrl: string;\r\n timelineSignOutUrl: string;\r\n}\r\n\r\nexport interface IProfile {\r\n id: number;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n isICAP: boolean;\r\n isCanApp: boolean;\r\n audienceType: AudienceType;\r\n}\r\n\r\nexport interface INewSubscription {\r\n isHst: boolean;\r\n isDraft: boolean;\r\n}\r\n\r\nexport interface IPdfResult {\r\n success: boolean\r\n}\r\n\r\nexport enum AuthResultType {\r\n Success = 1,\r\n Invalid = 2,\r\n TimeOut = 3\r\n}\r\n\r\nexport enum AudienceType {\r\n ICAP = 0,\r\n NONICAP = 1,\r\n DRAFT = 2\r\n}","import { \r\n IProfile,\r\n IAuthResult,\r\n AuthResultType\r\n} from \"./DataServiceModels\";\r\n\r\nexport default class AuthProvider {\r\n\r\n private static _hasExpired(auth: IAuthResult | null): boolean {\r\n const expiryDate = new Date(auth!.expires);\r\n if (expiryDate < new Date()) {\r\n console.log('auth token expired');\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n public static hasExpired() {\r\n const auth = AuthProvider.getAuth();\r\n return AuthProvider._hasExpired(auth);\r\n }\r\n\r\n public static clear() {\r\n localStorage.removeItem('auth');\r\n }\r\n\r\n public static setAuth(result: IAuthResult): void {\r\n localStorage.setItem('auth', JSON.stringify(result));\r\n }\r\n\r\n public static getAuth(): IAuthResult | null {\r\n const auth = localStorage.getItem('auth');\r\n if (auth != null) {\r\n const obj = JSON.parse(auth);\r\n if (AuthProvider._hasExpired(obj)) {\r\n localStorage.removeItem('auth');\r\n return null;\r\n }\r\n return obj;\r\n }\r\n return null;\r\n }\r\n}","import AuthProvider from \"./AuthProvider\";\r\nimport {\r\n ICountry,\r\n IMyCredential,\r\n IPendingVerificationCredential,\r\n IShareHistoryItem,\r\n IShareRequest,\r\n IOrder,\r\n IAuthResult,\r\n IGatewayProcess,\r\n ICredential,\r\n IOrderProcessComplete,\r\n INewSubscription\r\n} from \"./DataServiceModels\";\r\n\r\nexport default class DataService {\r\n\r\n private static getData(url: string): Promise {\r\n return fetch(url, { headers: DataService.getHeaders() })\r\n .then(x => x.json())\r\n .then(x => x as T);\r\n }\r\n\r\n private static post(url: string, data: any): Promise {\r\n return fetch(url, DataService.getPostRequest(data))\r\n .then(x => x.json())\r\n .then(x => x as T);\r\n }\r\n\r\n private static getHeaders() {\r\n const headers = new Headers();\r\n const auth = AuthProvider.getAuth();\r\n if (auth != null)\r\n headers.append('Authorization', `Bearer ${auth.token}`);\r\n\r\n headers.append('Content-Type', 'application/json');\r\n return headers;\r\n }\r\n\r\n private static getPostRequest(data?: any): RequestInit {\r\n var request: RequestInit = { method: 'POST' };\r\n request.headers = DataService.getHeaders();\r\n if (data) {\r\n request.body = JSON.stringify(data);\r\n }\r\n return request;\r\n }\r\n\r\n public static processOrder(values: string): Promise {\r\n return DataService.post(\"/orders/process\", { value: values });\r\n }\r\n\r\n public static getCountries(): Promise {\r\n return DataService.getData(\"/reference/countries\");\r\n }\r\n\r\n public static getPdf(accessKey: string): Promise {\r\n return fetch(\"/reference/viewshare/\" + accessKey);\r\n }\r\n\r\n public static createIcapSubscription(): Promise {\r\n return fetch(\"/subscription/createicapsubscription\", { headers: DataService.getHeaders() });\r\n }\r\n\r\n public static declineGrs(): Promise {\r\n return fetch(\"/profile/declinegrs\", { headers: DataService.getHeaders() });\r\n }\r\n\r\n public static authenticate(token: string): Promise {\r\n return DataService.post(\"/authentication/external\", { token });\r\n }\r\n\r\n public static getShareHistory(): Promise {\r\n return DataService.getData(\"/share/\");\r\n }\r\n\r\n public static getMyCredentials(): Promise {\r\n return DataService.getData(\"/credentials/\");\r\n }\r\n\r\n public static getMyPendingCredentials(): Promise {\r\n return DataService.getData(\"/credentials/pending\");\r\n }\r\n\r\n public static getTransactionHistory(): Promise {\r\n return DataService.getData(\"/orders/\");\r\n }\r\n\r\n public static processShare(request: IShareRequest): Promise {\r\n return DataService.post(\"/share\", request);\r\n }\r\n\r\n public static processNewCredential(credential: ICredential): Promise {\r\n return DataService.post(\"/credentials/new\", credential);\r\n }\r\n\r\n public static processSubscription(subOrder: INewSubscription): Promise {\r\n return DataService.post(\"/subscription/pay\", subOrder);\r\n }\r\n\r\n public static verifyAuth(authToken: string): Promise {\r\n return DataService.post(\"/auth\", { authToken });\r\n }\r\n\r\n public static refreshToken(): Promise {\r\n return DataService.getData(\"/authentication/refresh\");\r\n }\r\n\r\n public static checkCredFree(): Promise {\r\n return DataService.getData(\"/credentials/isfree\")\r\n }\r\n\r\n public static async uploadDocuments(credentialId: number, files: File[]): Promise {\r\n const formData = new FormData();\r\n for (let i = 0; i < files.length; i++) {\r\n formData.append(\"files\", files[i]);\r\n }\r\n const auth = AuthProvider.getAuth();\r\n\r\n // TODO: could use axios to track progress\r\n await fetch(\r\n `/credentials/${credentialId}/upload`,\r\n {\r\n method: 'POST',\r\n body: formData,\r\n headers: {\r\n 'Authorization': `Bearer ${auth?.token}`\r\n }\r\n }\r\n );\r\n }\r\n}","export default class FormatService {\r\n public static formatDate(value: Date | string): string {\r\n let dt = new Date(value);\r\n let month = '' + (dt.getMonth() + 1);\r\n let day = '' + dt.getDate();\r\n const year = dt.getFullYear();\r\n\r\n if (month.length < 2) \r\n month = '0' + month;\r\n if (day.length < 2) \r\n day = '0' + day;\r\n\r\n return [month, day, year].join('/');\r\n }\r\n\r\n\r\n public static formatString(str: string, ...args: any[]): string {\r\n return str.replace(/{(\\d+)}/g, (match, index) => args[index] || '');\r\n }\r\n}","import React from \"react\";\r\nimport { Subject } from \"rxjs\";\r\nimport { forEachChild } from \"typescript\";\r\nimport { default as resources } from '../Assets/Resources/Strings.json';\r\nimport AuthProvider from \"../Services/AuthProvider\";\r\nimport { AuthResultType, IAuthResult, IProfile } from \"../Services/DataServiceModels\";\r\nimport FormatService from \"../Services/FormatService\";\r\n\r\n\r\nexport interface ILogService {\r\n error(e: Error): void;\r\n}\r\n\r\nexport interface IResourceProvider {\r\n get: (selector: string, ...val: any[]) => string;\r\n getNested: (selector: string, ...val: any[]) => string;\r\n}\r\n\r\nexport type WesContextType = {\r\n init(): void;\r\n resources: IResourceProvider,\r\n logging: ILogService,\r\n authenticated: boolean,\r\n user?: IProfile | null,\r\n timelineUrl: string,\r\n timelineSignOutUrl: string,\r\n hasSubscription: boolean;\r\n setAuth(authResult: IAuthResult): void;\r\n authChanged: Subject;\r\n signOut(): void;\r\n}\r\n\r\nexport const WesContext = React.createContext({\r\n authChanged: new Subject(),\r\n\r\n resources: {\r\n get: (selector: string, ...val: any[]): string => {\r\n const value = String((resources as any)[selector]);\r\n if (value === null)\r\n console.error(`Key ${selector} not found in resources`);\r\n\r\n const result = FormatService.formatString(value, val);\r\n return result;\r\n },\r\n\r\n getNested: (selector: string, ...val: any[]): string => {\r\n var splitted: string[] = selector.split(\":\");\r\n\r\n var v = resources;\r\n for (let x of splitted) {\r\n\r\n var temp = (v as any)[x];\r\n if (temp === null) {\r\n console.error(`Key ${selector} not found in resources`);\r\n v = temp;\r\n break;\r\n }\r\n v = temp;\r\n }\r\n const value = String(v);\r\n return value;\r\n }\r\n },\r\n\r\n logging: {\r\n error: (e: Error): void => {\r\n console.log(e);\r\n }\r\n },\r\n\r\n hasSubscription: false,\r\n authenticated: false,\r\n user: undefined,\r\n timelineUrl: \"\",\r\n timelineSignOutUrl: \"\",\r\n\r\n init() {\r\n const auth = AuthProvider.getAuth();\r\n if (auth != null) {\r\n this.authenticated = true;\r\n this.user = auth.profile;\r\n this.hasSubscription = auth.hasSubscription;\r\n this.timelineUrl = auth.timelineUrl;\r\n this.timelineSignOutUrl = auth.timelineSignOutUrl;\r\n }\r\n },\r\n\r\n setAuth(authResult: IAuthResult): void {\r\n this.authenticated = authResult.type === AuthResultType.Success;\r\n this.user = authResult.profile;\r\n this.hasSubscription = authResult.hasSubscription;\r\n this.timelineUrl = authResult.timelineUrl;\r\n this.timelineSignOutUrl = authResult.timelineSignOutUrl;\r\n\r\n if (authResult.type === AuthResultType.Success)\r\n AuthProvider.setAuth(authResult);\r\n\r\n this.authChanged.next(this.user);\r\n },\r\n\r\n signOut(): void {\r\n AuthProvider.clear();\r\n this.authenticated = false;\r\n this.hasSubscription = false;\r\n this.user = null;\r\n this.authChanged.next(null);\r\n }\r\n});","import React from 'react';\r\nimport { Col, Container, Row } from 'react-bootstrap';\r\nimport LoadingOverlay from 'react-loading-overlay';\r\nimport styles from './WesDataList.module.scss';\r\n\r\nexport interface IColumn {\r\n title: string;\r\n render: (item: any) => React.ReactNode;\r\n}\r\n\r\nexport interface IProps {\r\n loading: boolean;\r\n columns: IColumn[];\r\n data: any[];\r\n noDataText?: string;\r\n renderExpandRow?: (item: any) => React.ReactNode;\r\n}\r\n\r\nexport interface IState {\r\n expandedIndexes: number[];\r\n}\r\n\r\nexport default class WesDataList extends React.Component {\r\n state: IState = {\r\n expandedIndexes: []\r\n };\r\n\r\n render() {\r\n const { columns, renderExpandRow, data, noDataText, loading } = this.props;\r\n\r\n if (data.length === 0) {\r\n if (noDataText == null)\r\n return (<>);\r\n\r\n return ({noDataText});\r\n }\r\n\r\n const header = columns.map((item, index) => {\r\n const key = `title-${index}`;\r\n return ({item.title});\r\n });\r\n\r\n const list = this.renderList();\r\n\r\n return (\r\n \r\n \r\n \r\n {renderExpandRow &&
 
}\r\n {header}\r\n
\r\n {list}\r\n
\r\n
\r\n );\r\n }\r\n\r\n renderList() {\r\n const { data, renderExpandRow, columns } = this.props;\r\n\r\n return data.map((item, dataIndex) => {\r\n const cols = columns.map((dataItem, colIndex) => {\r\n const key = `row-${dataIndex}-col-${colIndex}`;\r\n return (\r\n \r\n {dataItem.render(item)}\r\n \r\n );\r\n });\r\n\r\n return (\r\n \r\n {renderExpandRow &&
this.toggleExpand(dataIndex)}>{this.getExpander(dataIndex)}
}\r\n {cols}\r\n {renderExpandRow && this.renderExpand(item, dataIndex)}\r\n
\r\n );\r\n });\r\n }\r\n\r\n renderExpand(item: any, index: number) : React.ReactNode {\r\n const re = this.props.renderExpandRow;\r\n\r\n if (re != null && this.isExpanded(index)) {\r\n return (\r\n
\r\n {re(item)}\r\n
\r\n );\r\n }\r\n \r\n return (<>);\r\n }\r\n\r\n getExpander(index: number) : React.ReactNode {\r\n const cls = this.isExpanded(index) ? styles.collapse : styles.expand;\r\n return (
);\r\n }\r\n\r\n isExpanded(index: number) : boolean {\r\n return this.state.expandedIndexes.indexOf(index) > -1;\r\n }\r\n\r\n toggleExpand(index: number) {\r\n let i = this.state.expandedIndexes;\r\n if (this.isExpanded(index)) {\r\n const start = i.indexOf(index);\r\n i.splice(start, 1);\r\n }\r\n else { \r\n i.push(index); \r\n }\r\n this.setState({ expandedIndexes: i });\r\n }\r\n}","import React from \"react\";\r\nimport Badge from \"react-bootstrap/Badge\";\r\n\r\nexport interface IProps {\r\n count: number;\r\n alert?: boolean;\r\n}\r\n\r\nexport default class WesBadge extends React.Component {\r\n render() {\r\n if (this.props.alert === true) {\r\n return ({this.props.count})\r\n }\r\n\r\n return ({this.props.count});\r\n }\r\n}","import React from 'react';\r\nimport WesBadge from '../Components/WesBadge';\r\nimport styles from './DashboardTitle.module.scss';\r\nimport { Stack } from 'react-bootstrap';\r\n\r\nexport interface IProps {\r\n title: string;\r\n badge: number;\r\n subtitle?: string;\r\n text?: string;\r\n}\r\n\r\nexport default class DashboardTitle extends React.Component {\r\n render() {\r\n return (\r\n
\r\n \r\n \r\n
{this.props.title}
\r\n \r\n {this.props.children &&
{this.props.children}
}\r\n
\r\n\r\n {this.props.subtitle && (\r\n
{this.props.subtitle}
\r\n )}\r\n {this.props.text && (\r\n
{this.props.text}
\r\n )}\r\n
\r\n
\r\n );\r\n }\r\n}","var _excluded = [\"title\", \"titleId\"];\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport * as React from \"react\";\n\nfunction SvgLogo(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 165,\n height: 46,\n id: \"b6407d63-1282-49d0-8b9e-1650050aedb9\",\n \"data-name\": \"Layer 1\",\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 1000 281.33\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, /*#__PURE__*/React.createElement(\"g\", {\n id: \"f889696e-7bd4-407b-82a8-db19b278368e\",\n \"data-name\": \"Layer 2\"\n }, /*#__PURE__*/React.createElement(\"g\", {\n id: \"aaee7ffa-8c29-4737-bc47-43dc86a398f3\",\n \"data-name\": \"Layer 1-2\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M241.14,270.9c-116.35,0-211.23-58.5-211.23-130.24,0-17.59,5.72-34.39,16.05-49.72C60.34,91.4,89.71,95,92.72,108l22.75,98.6h16.25L156.64,119l28.13,87.66H201l19.17-96.8c2.49-11.84,5.26-17.35,14.09-18.64,6,.9,9.56,4,9.56,14.45v82.57c0,13.54-6,14.81-15.71,14.81v3.61h84.52l1-19.57,9.26,19.41a211.983,211.983,0,0,0,28.79,2c24.74,0,44.6-10.84,44.6-33.78,0-17.15-9.56-24.55-23.83-32.86-15.71-9.21-39.3-14.45-39.3-30.53,0-11.91,10.65-19.68,22.75-19.68,19.32,0,31.43,11.2,33.06,20.77h4.52l-4.22-24.74a148.789,148.789,0,0,0-29.94-3.07c-22.75,0-40.62,8.85-40.62,30.52,0,11.55,5.89,18.06,13.83,24.2,16.8,12.83,46.77,18.78,46.77,38.28,0,12.47-10.29,22.76-26.18,22.76s-35.59-7.85-37-17.51h-6.78c-2.71,12.45-8.31,16.79-22.21,16.79H269.84c-9,0-9.93-1.09-9.93-15.17V147.22H283.2c12.11,0,16.44,5.06,16.44,15.18h3.79V125h-3.79c0,12.45-4.33,15.16-16.44,15.16H259.91v-31.6c0-13.18.55-15.17,9.93-15.17h15.89c12.83,0,18.79,4,20.95,15h4.52l-1.27-22H195.09V90.9c9.93,0,14.81,1.27,14.81,10.11a42.594,42.594,0,0,1-1.27,8.31L194.52,183.9h-.37L161.67,86.37h-5.75l-27.63,97.51h-.36l-17.7-78a34.991,34.991,0,0,1-1.08-7.59c0-4.69,3.44-7.4,16.43-7.4V86.37H49.21c33.49-44.75,107-75.95,191.93-75.95,116.34,0,211.23,58.51,211.23,130.24S357.48,270.9,241.14,270.9m0-270.9C108.32,0,0,63.19,0,140.66S108.32,281.33,241.14,281.33s241.14-63.19,241.14-140.67S374,0,241.14,0\",\n style: {\n fill: \"#1f9055\"\n }\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M439.78,27a3.35,3.35,0,0,1-2.49,3.6l3,4.19h-2.47l-2.76-3.88h-2.55v3.88h-1.95V23.25h4.29a6.248,6.248,0,0,1,3.78.89A3.42,3.42,0,0,1,439.78,27Zm-2.58,1.64a2.08,2.08,0,0,0,.59-1.64,1.771,1.771,0,0,0-.61-1.56A4.069,4.069,0,0,0,435,25h-2.47v4.13H435a3.6,3.6,0,0,0,2.2-.5Z\",\n style: {\n fill: \"#1f9055\"\n }\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M435.07,39.93a10.74,10.74,0,1,1,10.74-10.74h0A10.76,10.76,0,0,1,435.07,39.93Zm0-19.73a9,9,0,1,0,9,9A9,9,0,0,0,435.07,20.2Z\",\n style: {\n fill: \"#1f9055\"\n }\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M601.45,38.12,584.21,91.29h-16.1L557.93,58.93,547.3,91.29H531.19L514,38.12h15.5l10.71,33.95L551.4,38.12h13.82l10.71,34.26L587.1,38.12Z\",\n style: {\n fill: \"#1f9055\"\n }\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M617.52,88.79a27.18,27.18,0,0,1,0-48.16,34,34,0,0,1,30.31,0,26.631,26.631,0,0,1,14.39,24.08,26.661,26.661,0,0,1-14.39,24.08A34,34,0,0,1,617.52,88.79ZM640,78a13.684,13.684,0,0,0,5.17-5.36,17.522,17.522,0,0,0,0-15.87A13.684,13.684,0,0,0,640,51.41a15,15,0,0,0-14.58,0,13.591,13.591,0,0,0-5.16,5.36,16.16,16.16,0,0,0-1.9,7.94,16.157,16.157,0,0,0,1.9,7.93A13.591,13.591,0,0,0,625.38,78,14.942,14.942,0,0,0,640,78Z\",\n style: {\n fill: \"#1f9055\"\n }\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M693,77.16h-8.2V91.29h-15V38.12h24.31a30.4,30.4,0,0,1,12.53,2.39,18,18,0,0,1,11.09,17.28A18.511,18.511,0,0,1,715,67.86a18.2,18.2,0,0,1-7.71,6.72l11.47,16.71h-16.1ZM700.12,52q-2.359-2.059-7-2.05h-8.36V65.54h8.36q4.62,0,7-2a7.13,7.13,0,0,0,2.36-5.74A7.249,7.249,0,0,0,700.12,52Z\",\n style: {\n fill: \"#1f9055\"\n }\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M727.08,38.12h15V79.37H767.5V91.29H727.08Z\",\n style: {\n fill: \"#1f9055\"\n }\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M774.56,38.12H799.7a35.191,35.191,0,0,1,15.5,3.27,24.566,24.566,0,0,1,10.48,9.26,26.169,26.169,0,0,1,3.72,14.06,26.124,26.124,0,0,1-3.72,14.05A24.574,24.574,0,0,1,815.2,88a35.191,35.191,0,0,1-15.5,3.27H774.56ZM799.1,79.29q6.821,0,11-3.87t4.14-10.71q0-6.84-4.14-10.71t-11-3.88h-9.5V79.29Z\",\n style: {\n fill: \"#1f9055\"\n }\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M560.74,155.63v11.62H518.05V114.08h41.7V125.7H532.94v9h23.62v11.25H532.94v9.72Z\",\n style: {\n fill: \"#1f9055\"\n }\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M570.23,114.08h25.15a35.288,35.288,0,0,1,15.49,3.26,24.6,24.6,0,0,1,10.48,9.27,28.352,28.352,0,0,1,0,28.11A24.515,24.515,0,0,1,610.87,164a35.162,35.162,0,0,1-15.49,3.27H570.23Zm24.54,41.17c4.56,0,8.21-1.29,11-3.87s4.14-6.16,4.14-10.72-1.39-8.12-4.14-10.71-6.42-3.87-11-3.87h-9.5v29.17Z\",\n style: {\n fill: \"#1f9055\"\n }\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M638.71,161.86q-6.57-6.47-6.57-18.31V114.08h15v29q0,12.75,10.1,12.76t10-12.76v-29h14.82v29.47q0,11.85-6.57,18.31t-18.42,6.45Q645.28,168.31,638.71,161.86Z\",\n style: {\n fill: \"#1f9055\"\n }\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M703.42,164.78A26.314,26.314,0,0,1,693,154.94a28.73,28.73,0,0,1,0-28.56,26.368,26.368,0,0,1,10.44-9.83,31.464,31.464,0,0,1,15-3.54,32.231,32.231,0,0,1,13.14,2.59,25.233,25.233,0,0,1,9.72,7.44l-9.57,8.66q-5.179-6.22-12.53-6.23a15.513,15.513,0,0,0-7.71,1.9,13.16,13.16,0,0,0-5.25,5.36,17.862,17.862,0,0,0,0,15.87,13.16,13.16,0,0,0,5.25,5.36,15.513,15.513,0,0,0,7.71,1.9q7.37,0,12.53-6.23l9.57,8.66a25.233,25.233,0,0,1-9.72,7.44,32.245,32.245,0,0,1-13.14,2.58A31.466,31.466,0,0,1,703.42,164.78Z\",\n style: {\n fill: \"#1f9055\"\n }\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M786.71,156.92H764.23l-4.18,10.33H744.71l23.47-53.17H783l23.55,53.17H790.89Zm-4.4-11.09-6.84-17-6.83,17Z\",\n style: {\n fill: \"#1f9055\"\n }\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M819.07,126H802.74V114.08h47.63V126H834.11v41.25h-15Z\",\n style: {\n fill: \"#1f9055\"\n }\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M857.12,114.08h15v53.17h-15Z\",\n style: {\n fill: \"#1f9055\"\n }\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M895.67,164.74a27.18,27.18,0,0,1,0-48.15,33.869,33.869,0,0,1,30.31,0,27.18,27.18,0,0,1,0,48.15A34,34,0,0,1,895.67,164.74ZM918.12,154a13.726,13.726,0,0,0,5.16-5.36,17.522,17.522,0,0,0,0-15.87,13.726,13.726,0,0,0-5.16-5.36,15,15,0,0,0-14.59,0,13.591,13.591,0,0,0-5.16,5.36,17.522,17.522,0,0,0,0,15.87,13.591,13.591,0,0,0,5.16,5.36A15,15,0,0,0,918.12,154Z\",\n style: {\n fill: \"#1f9055\"\n }\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M1000,114.08v53.17H987.62l-23.47-28.33v28.33H949.41V114.08h12.38l23.47,28.33V114.08Z\",\n style: {\n fill: \"#1f9055\"\n }\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M524.2,242.68a30.786,30.786,0,0,1-9.87-4.26l4.94-11.09a33.517,33.517,0,0,0,17.54,5.24q8.67,0,8.66-4.33a3.589,3.589,0,0,0-2.47-3.38,45.749,45.749,0,0,0-7.93-2.31,76.307,76.307,0,0,1-10-2.77,17.01,17.01,0,0,1-6.91-4.75q-2.891-3.27-2.89-8.81a15.3,15.3,0,0,1,2.66-8.78,17.835,17.835,0,0,1,7.94-6.19A32.624,32.624,0,0,1,538.79,189a46.047,46.047,0,0,1,10.33,1.18,31.724,31.724,0,0,1,9,3.46l-4.63,11.16a31,31,0,0,0-14.74-4.1c-3,0-5.16.45-6.53,1.33a4,4,0,0,0-2,3.46,3.43,3.43,0,0,0,2.43,3.19,44.017,44.017,0,0,0,7.82,2.2,74.545,74.545,0,0,1,10.07,2.77,17.41,17.41,0,0,1,6.91,4.71c1.95,2.16,2.92,5.08,2.92,8.78a14.932,14.932,0,0,1-2.65,8.65,18.208,18.208,0,0,1-8,6.2,32.329,32.329,0,0,1-12.91,2.31A49.322,49.322,0,0,1,524.2,242.68Z\",\n style: {\n fill: \"#1f9055\"\n }\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M611,231.59v11.62H568.3V190H610v11.62H583.22v9h23.63v11.24H583.22v9.73Z\",\n style: {\n fill: \"#1f9055\"\n }\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M643.76,229.08h-8.2v14.13h-15V190h24.31a30.467,30.467,0,0,1,12.54,2.39,19.34,19.34,0,0,1,9.243,25.742q-.389.824-.853,1.608a18.27,18.27,0,0,1-7.8,6.76l11.47,16.71h-16.1Zm7.14-25.14q-2.351-2.059-7-2.05h-8.35v15.57h8.35q4.64,0,7-2a7.158,7.158,0,0,0,2.36-5.74A7.25,7.25,0,0,0,650.9,203.94Z\",\n style: {\n fill: \"#1f9055\"\n }\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M730.27,190l-22.78,53.17H692.68L670,190h16.26l14.43,34.64L715.39,190Z\",\n style: {\n fill: \"#1f9055\"\n }\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M736.05,190h15v53.17h-15Z\",\n style: {\n fill: \"#1f9055\"\n }\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M772.92,240.74a26.393,26.393,0,0,1-10.44-9.84,28.73,28.73,0,0,1,0-28.56,26.368,26.368,0,0,1,10.44-9.83,31.476,31.476,0,0,1,15-3.54,32.231,32.231,0,0,1,13.14,2.59,25.233,25.233,0,0,1,9.72,7.44l-9.57,8.66q-5.18-6.22-12.53-6.23a15.41,15.41,0,0,0-7.71,1.9,13.16,13.16,0,0,0-5.25,5.36,17.862,17.862,0,0,0,0,15.87,13.222,13.222,0,0,0,5.25,5.36,15.51,15.51,0,0,0,7.71,1.9q7.37,0,12.53-6.23l9.57,8.66a25.233,25.233,0,0,1-9.72,7.44,32.245,32.245,0,0,1-13.14,2.58A31.46,31.46,0,0,1,772.92,240.74Z\",\n style: {\n fill: \"#1f9055\"\n }\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M861.3,231.59v11.62H818.61V190h41.7v11.62H833.5v9h23.62v11.24H833.5v9.73Z\",\n style: {\n fill: \"#1f9055\"\n }\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M877,242.68a30.731,30.731,0,0,1-9.88-4.26L872,227.33a33.589,33.589,0,0,0,17.54,5.24q8.67,0,8.66-4.33a3.591,3.591,0,0,0-2.46-3.38,45.97,45.97,0,0,0-7.94-2.31,77.094,77.094,0,0,1-10-2.77,17.01,17.01,0,0,1-6.91-4.75Q868,211.76,868,206.22a15.3,15.3,0,0,1,2.66-8.78,17.835,17.835,0,0,1,7.94-6.19A32.637,32.637,0,0,1,891.53,189a46.047,46.047,0,0,1,10.33,1.18,31.724,31.724,0,0,1,9,3.46l-4.63,11.16a31,31,0,0,0-14.73-4.1c-3,0-5.17.45-6.54,1.33a4,4,0,0,0-2,3.46,3.43,3.43,0,0,0,2.43,3.19,43.953,43.953,0,0,0,7.83,2.2,74.222,74.222,0,0,1,10.06,2.77,17.4,17.4,0,0,1,6.91,4.71c1.95,2.16,2.93,5.08,2.93,8.78a14.937,14.937,0,0,1-2.66,8.65,18.085,18.085,0,0,1-8,6.2,32.329,32.329,0,0,1-12.91,2.31A49.216,49.216,0,0,1,877,242.68Z\",\n style: {\n fill: \"#1f9055\"\n }\n }))));\n}\n\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgLogo);\nexport default __webpack_public_path__ + \"static/media/logo.3138853e.svg\";\nexport { ForwardRef as ReactComponent };","export enum FileValidation {\r\n Success,\r\n FileTooBig,\r\n InvalidFileType\r\n}\r\n\r\nexport default class Config {\r\n public static maxUploads: number = 20;\r\n public static credentialVerificationPrice: number = 30;\r\n public static sharePricePerAdd: number = 10;\r\n public static currency: string = 'USD';\r\n public static maxUploadFileSize: number = 10485760; // 10MB: 10,485,760 bytes\r\n public static validUploadMimeTypes: string[] = ['image/jpeg', 'image/jpg', 'image/pdf', 'application/pdf'];\r\n public static learnMoreUri: string = \"https://wes.org/learn-more\";\r\n public static isValidType(file: File): FileValidation {\r\n if (file.size > Config.maxUploadFileSize) \r\n return FileValidation.FileTooBig;\r\n\r\n if (!Config.validUploadMimeTypes.includes(file.type))\r\n return FileValidation.InvalidFileType;\r\n\r\n return FileValidation.Success;\r\n }\r\n\r\n public static formatCurrency(value: number): string {\r\n return `${Config.currency} $${value.toFixed(2)}`;\r\n }\r\n\r\n public static calcSharePrice(recipients: number, docs: number): number {\r\n return Config.sharePricePerAdd * recipients * docs;\r\n }\r\n}","import React from 'react';\r\nimport { Modal } from 'react-bootstrap';\r\nimport { ReactComponent as Logo } from '../Assets/Images/logo.svg';\r\n\r\nexport interface IState {\r\n loading: boolean;\r\n}\r\n\r\nexport interface IProps {\r\n orderId: number;\r\n show: boolean;\r\n onClose: () => void;\r\n}\r\n\r\nexport default class Receipt extends React.Component {\r\n state: IState = { loading: false };\r\n componentDidMount() {\r\n\r\n }\r\n\r\n render() {\r\n return (\r\n \r\n this.props.onClose()}>\r\n \r\n \r\n \r\n
\r\n
TODO: {this.props.orderId}
\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}","import React from \"react\";\r\nimport DataService from \"../Services/DataService\";\r\nimport { IOrder, OrderType } from \"../Services/DataServiceModels\";\r\nimport { WesContext } from \"../Contexts/WesContext\";\r\nimport FormatService from \"../Services/FormatService\";\r\nimport WesDataList, { IColumn } from \"../Components/WesDataList\";\r\nimport DashboardTitle from \"../Components/DashboardTitle\";\r\nimport Receipt from \"./Receipt\";\r\nimport Config from \"../Assets/Config\";\r\n\r\ninterface IState {\r\n loading: boolean;\r\n transactions: IOrder[];\r\n showReceipt: boolean;\r\n orderId: number;\r\n}\r\n\r\nexport default class TransactionHistoryList extends React.Component {\r\n static contextType = WesContext;\r\n res = (key: string, ...val: any[]) => this.context.resources.get(key, val);\r\n\r\n state: IState = {\r\n loading: false,\r\n transactions: [],\r\n showReceipt: false,\r\n orderId: 0\r\n };\r\n\r\n async componentDidMount() {\r\n try {\r\n this.setState({ loading: true });\r\n const result = await DataService.getTransactionHistory();\r\n this.setState({ \r\n transactions: result,\r\n loading: false\r\n });\r\n }\r\n catch (ex) {\r\n console.log(ex);\r\n }\r\n }\r\n \r\n render() {\r\n const cols: IColumn[] = [{\r\n title: this.res(\"Date\"),\r\n render: (item: IOrder) => FormatService.formatDate(item.date)\r\n }, {\r\n title: this.res(\"OrderType\"),\r\n render: (item: IOrder) => this.res(\"OrderType\" + OrderType[item.type])\r\n }, {\r\n title: this.res(\"OrderNumber\"),\r\n render: (item: IOrder) => item.id\r\n }, {\r\n title: this.res(\"AmountPaid\"),\r\n render: (item: IOrder) => `${Config.currency} $${item.amount}`\r\n }];\r\n\r\n return (\r\n <>\r\n \r\n \r\n this.setState({ \r\n showReceipt: false,\r\n orderId: 0\r\n })}\r\n />\r\n \r\n );\r\n }\r\n}","import React from 'react';\r\nimport styles from './WesButton.module.scss';\r\n\r\ntype ButtonType = \"primary\" | \"secondary\";\r\ninterface IProps {\r\n type?: ButtonType;\r\n disabled?: boolean;\r\n text: string;\r\n show?: boolean;\r\n onClick: (call: void) => void;\r\n}\r\n\r\n\r\nexport default class WesButton extends React.Component {\r\n render() {\r\n if (this.props.show === false)\r\n return (<>);\r\n\r\n const type = this.props.type || \"primary\";\r\n let className = styles.btn + \" \";\r\n className += type === \"secondary\" ? styles.btnsecondary : styles.btnprimary;\r\n if (this.props.disabled === true)\r\n className += \" \" + styles.btndisabled;\r\n\r\n return (\r\n \r\n { this.props.text }\r\n \r\n );\r\n }\r\n\r\n onClick = (e: React.MouseEvent) : void => {\r\n e.preventDefault();\r\n if (this.props.disabled !== true) {\r\n this.props.onClick();\r\n }\r\n }\r\n}","import React from \"react\";\r\nimport { WesContext } from \"../../Contexts/WesContext\";\r\nimport { IDocument } from \"../../Services/DataServiceModels\";\r\nimport styles from './DocumentList.module.scss';\r\n\r\nexport interface IProps {\r\n documents: IDocument[];\r\n}\r\n\r\nexport default class DocumentList extends React.Component {\r\n static contextType = WesContext;\r\n \r\n render() {\r\n const list = this.props.documents.map((doc, index) => {\r\n return (
  • {doc.name}
  • );\r\n });\r\n return (\r\n
    \r\n {this.context.resources.get(\"YoureSharing\")}\r\n
      \r\n {list}\r\n
    \r\n
    \r\n );\r\n }\r\n}","import React from \"react\";\r\nimport Config from \"../../Assets/Config\";\r\nimport { WesContext } from \"../../Contexts/WesContext\";\r\nimport styles from './SubTotal.module.scss';\r\n\r\nexport interface IProps {\r\n documents: number;\r\n recipients: number;\r\n}\r\n\r\nexport default class SubTotal extends React.Component {\r\n static contextType = WesContext;\r\n res = (key: string, ...val: any[]) => this.context.resources.get(key, val);\r\n \r\n render() {\r\n const rl = this.props.recipients;\r\n const dl = this.props.documents;\r\n const price = Config.calcSharePrice(rl, dl); \r\n const subtotal = `(${dl} ${this.res(\"Documents\")}, ${rl} ${this.res(\"Recipients\")}): ${Config.currency} \\$${price}`;\r\n\r\n return (
    {this.res(\"Subtotal\")} {subtotal}
    );\r\n }\r\n}","var _path, _path2, _path3;\n\nvar _excluded = [\"title\", \"titleId\"];\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport * as React from \"react\";\n\nfunction SvgExit(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 38,\n height: 39,\n viewBox: \"0 0 38 39\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26.2 11.9067L11.7998 26.3067\",\n stroke: \"#013763\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26.2 26.3067L11.7998 11.9067\",\n stroke: \"#013763\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M1 19.1069C1 9.16553 9.0586 1.10693 19 1.10693C28.9414 1.10693 37 9.16553 37 19.1069C37 29.0483 28.9414 37.1069 19 37.1069C9.0586 37.1069 1 29.0483 1 19.1069V19.1069Z\",\n stroke: \"#013763\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })));\n}\n\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgExit);\nexport default __webpack_public_path__ + \"static/media/exit.5a3ae5d8.svg\";\nexport { ForwardRef as ReactComponent };","import React from 'react';\r\nimport { Col, Container, Row } from 'react-bootstrap';\r\nimport { IDocument, IRecipient } from '../../Services/DataServiceModels';\r\nimport DocumentList from './DocumentList';\r\nimport SubTotal from './SubTotal';\r\nimport styles from './Footer.module.scss';\r\n\r\nexport interface IProps {\r\n documents: IDocument[];\r\n recipients: IRecipient[];\r\n}\r\n\r\nexport default class Footer extends React.Component {\r\n\r\n render(): React.ReactNode {\r\n return (\r\n
    \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n );\r\n }\r\n}","import React from \"react\";\r\nimport styles from \"./StepProgressBar.module.scss\";\r\n\r\nexport interface IProps {\r\n step: number;\r\n steps: string[];\r\n}\r\n\r\nexport default class StepProgressBar extends React.Component {\r\n\r\n render() {\r\n const itemWidth = 100 / this.props.steps.length;\r\n const list = this.props.steps.map((title, index) => {\r\n let cls = \"\"; \r\n if ((index + 1) < this.props.step)\r\n cls = styles.active;\r\n \r\n if (index + 1 === this.props.step)\r\n cls += \" \" + styles.current;\r\n\r\n if (this.props.steps.length == 3)\r\n cls += \" \" + styles.step3;\r\n\r\n if (this.props.steps.length == 2)\r\n cls += \" \" + styles.step2;\r\n\r\n return (
  • {title}
  • );\r\n })\r\n return (\r\n
    \r\n
      \r\n {list}\r\n
    \r\n
    \r\n );\r\n }\r\n}","var _path, _path2;\n\nvar _excluded = [\"title\", \"titleId\"];\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport * as React from \"react\";\n\nfunction SvgArrowForward(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 29,\n height: 20,\n viewBox: \"0 0 29 20\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.00003 10H26.8889\",\n stroke: \"white\",\n strokeWidth: 3,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18.8889 18L26.8889 10L18.8889 2\",\n stroke: \"white\",\n strokeWidth: 3,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })));\n}\n\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgArrowForward);\nexport default __webpack_public_path__ + \"static/media/arrow-forward.f9c10676.svg\";\nexport { ForwardRef as ReactComponent };","var _path, _path2;\n\nvar _excluded = [\"title\", \"titleId\"];\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport * as React from \"react\";\n\nfunction SvgArrowBack(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 29,\n height: 20,\n viewBox: \"0 0 29 20\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M26.8889 10L2 10\",\n stroke: \"white\",\n strokeWidth: 3,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 2L2 10L10 18\",\n stroke: \"white\",\n strokeWidth: 3,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })));\n}\n\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgArrowBack);\nexport default __webpack_public_path__ + \"static/media/arrow-back.62f4893e.svg\";\nexport { ForwardRef as ReactComponent };","import React from 'react';\r\nimport { Col, Container, Row } from 'react-bootstrap';\r\nimport Modal from 'react-bootstrap/Modal';\r\nimport styles from './WesModal.module.scss';\r\nimport { ReactComponent as CloseIcon } from '../Assets/Images/exit.svg';\r\nimport { ReactComponent as NextIcon } from '../Assets/Images/arrow-forward.svg';\r\nimport { ReactComponent as PrevIcon } from '../Assets/Images/arrow-back.svg';\r\n\r\nexport interface IProps {\r\n title: string;\r\n show: boolean;\r\n onClose?: (didComplete: boolean) => void;\r\n prevBtn?: IButtonProps;\r\n nextBtn?: IButtonProps;\r\n}\r\n\r\nexport interface IButtonProps {\r\n visible: boolean;\r\n onClick: () => void;\r\n text: string;\r\n enabled: boolean;\r\n}\r\n\r\nexport default class WesModal extends React.Component {\r\n render() {\r\n return (\r\n \r\n\r\n \r\n \r\n
    {this.props.title}
    \r\n
    \r\n {this.props.onClose && ( {\r\n this.props.onClose!(false);\r\n }} />)}\r\n
    \r\n\r\n \r\n {this.props.children}\r\n \r\n\r\n {this.showBar() &&\r\n \r\n \r\n \r\n \r\n {this.renderPrev()}\r\n \r\n \r\n {this.renderNext()}\r\n \r\n \r\n \r\n \r\n }\r\n
    \r\n );\r\n }\r\n\r\n renderNext() : JSX.Element {\r\n const btn = this.props.nextBtn;\r\n if (btn?.visible !== true)\r\n return <>;\r\n\r\n let btnCls = styles.footerBtn;\r\n let iconCls = '';\r\n if (btn.enabled !== true) {\r\n btnCls += ` ${styles.disabled}`;\r\n iconCls += styles.disabled;\r\n }\r\n\r\n return (\r\n
    \r\n {btn.text}\r\n \r\n
    \r\n );\r\n }\r\n\r\n renderPrev() : JSX.Element {\r\n if (this.props.prevBtn?.visible === true) {\r\n return (\r\n <>\r\n \r\n {this.props.prevBtn!.text}\r\n \r\n );\r\n }\r\n return (
     
    );\r\n }\r\n\r\n showBar(): boolean {\r\n return (\r\n this.props.nextBtn?.visible === true ||\r\n this.props.prevBtn?.visible === true\r\n );\r\n }\r\n\r\n onPrev = () => {\r\n this.runClick(this.props.prevBtn!);\r\n }\r\n\r\n onNext = () => {\r\n this.runClick(this.props.nextBtn!);\r\n }\r\n\r\n runClick(btn: IButtonProps): void {\r\n if (btn != null && btn.visible && btn.enabled === true)\r\n btn.onClick();\r\n }\r\n}","import React from 'react';\r\nimport { WesContext } from '../Contexts/WesContext';\r\nimport StepProgressBar from './StepProgressBar';\r\nimport WesModal, { IButtonProps } from './WesModal';\r\nimport styles from './WesWizardModal.module.scss';\r\n\r\nexport interface IProps {\r\n title: string;\r\n step: number;\r\n show: boolean;\r\n steps: string[];\r\n\r\n nextText: string;\r\n backText?: string;\r\n nextEnabled: boolean;\r\n\r\n onClose: () => void;\r\n onBack: () => void;\r\n onNext: () => void;\r\n onValidChanged?: (valid: boolean) => void;\r\n}\r\n\r\nexport default class WesWizardModal extends React.Component {\r\n static contextType = WesContext;\r\n \r\n render() {\r\n const res = (key: string) => this.context.resources.get(key);\r\n\r\n const prevBtn: IButtonProps = {\r\n text: (this.props.backText || res(\"Back\")),\r\n visible: this.props.step > 1,\r\n onClick: this.props.onBack,\r\n enabled: true\r\n };\r\n const nextBtn: IButtonProps = {\r\n text: this.props.nextText,\r\n visible: true,\r\n onClick: this.props.onNext,\r\n enabled: this.props.nextEnabled\r\n };\r\n\r\n return (\r\n {\r\n if (this.props.onClose != null)\r\n this.props.onClose();\r\n }}>\r\n \r\n
    \r\n
    \r\n {this.props.children}\r\n
    \r\n
    \r\n
    \r\n )\r\n }\r\n}","import React from 'react';\r\nimport { Col, Container, Row } from 'react-bootstrap';\r\nimport styles from './FormHeader.module.scss';\r\n\r\nexport interface IProps {\r\n title: string;\r\n subtitle?: string;\r\n subtext?: string;\r\n}\r\n\r\nexport default class FormHeader extends React.Component {\r\n\r\n render() {\r\n return (\r\n
    \r\n \r\n {this.props.title}\r\n \r\n {this.props.subtitle && (\r\n \r\n \r\n {this.props.subtitle}\r\n \r\n \r\n )}\r\n {this.props.subtext && (\r\n \r\n \r\n {this.props.subtext}\r\n \r\n \r\n )}\r\n \r\n
    \r\n )\r\n }\r\n}","import React from \"react\";\r\nimport { IRecipient } from \"../../Services/DataServiceModels\";\r\nimport { WesContext } from \"../../Contexts/WesContext\";\r\nimport WesDataList, { IColumn } from \"../../Components/WesDataList\";\r\nimport { Stack } from \"react-bootstrap\";\r\nimport styles from './RecipientList.module.scss';\r\n\r\nexport interface IProps {\r\n recipients: IRecipient[];\r\n onDelete?: (recipient: IRecipient) => void;\r\n onEdit?: (recipient: IRecipient) => void;\r\n}\r\n\r\nexport default class RecipientList extends React.Component {\r\n static contextType = WesContext;\r\n res = (key: string) => this.context.resources.get(key);\r\n\r\n render() {\r\n const { onDelete, onEdit } = this.props;\r\n\r\n let cols: IColumn[] = [{\r\n title: this.res(\"RecipientName\"),\r\n render: (recipient: IRecipient) => recipient.name\r\n },{\r\n title: this.res(\"OrganizationInstitutionName\"),\r\n render: (recipient: IRecipient) => recipient.organization\r\n }, {\r\n title: this.res(\"Email\"),\r\n render: (recipient: IRecipient) => recipient.email\r\n }];\r\n \r\n if (onEdit && onDelete) {\r\n cols.push({\r\n title: this.res(\"Actions\"),\r\n render: (recipient: IRecipient) => (\r\n \r\n {\r\n e.preventDefault();\r\n onEdit(recipient);\r\n }}>{this.res(\"Edit\")}\r\n \r\n {\r\n e.preventDefault();\r\n onDelete(recipient);\r\n }}>{this.res(\"Remove\")}\r\n \r\n )\r\n })\r\n }\r\n\r\n\r\n return (\r\n \r\n );\r\n }\r\n}","import * as Yup from \"yup\";\r\nimport { WesContextType } from \"../Contexts/WesContext\";\r\n\r\nexport default class Validations {\r\n\r\n public static personName(context: WesContextType, required?: boolean): any {\r\n const req = required ?? true;\r\n return req ? Validations.reqString(context, 50) : Validations.maxLength(context, 50);\r\n }\r\n\r\n public static maxLength(context: WesContextType, maxLength: number): any {\r\n const msg = context.resources.get(\"FieldMaxLength\", maxLength);\r\n\r\n return Yup\r\n .string()\r\n .max(maxLength, msg);\r\n }\r\n\r\n public static reqString(context: WesContextType, maxLength: number): any {\r\n const msg = context.resources.get(\"FieldRequiredAndMaxLength\", maxLength);\r\n\r\n return Yup\r\n .string()\r\n .test('len', msg, x => {\r\n const len = x?.length || 0;\r\n return len <= maxLength;\r\n })\r\n .required(msg);\r\n }\r\n\r\n\r\n\r\n public static email(context: WesContextType): any {\r\n return Validations\r\n .reqString(context, 255)\r\n .email(context.resources.get(\"EmailIsInvalid\"));\r\n }\r\n\r\n\r\n public static year(context: WesContextType, required: boolean): any {\r\n let v = Yup.number().max(\r\n new Date().getFullYear(), \r\n context.resources.get(\"FieldYearMustBeLtEqCurrentYear\")\r\n );\r\n\r\n if (required) {\r\n v = v.required(context.resources.get(\"FieldRequired\"));\r\n }\r\n return v;\r\n }\r\n}","import { Formik, FormikErrors, FormikHelpers, FormikTouched } from 'formik';\r\nimport React from 'react';\r\nimport { Col, Row } from 'react-bootstrap';\r\nimport Form from 'react-bootstrap/Form';\r\nimport styles from './WesForm.module.scss';\r\n\r\nexport interface IFieldProps {\r\n label: string;\r\n name: string;\r\n initialValue?: string | number;\r\n required?: boolean;\r\n maxLength?: number;\r\n type?: 'text' | 'number' | 'email' | 'dropdown' | 'checkbox' // TODO: date range & year (4 max length, numeric)\r\n renderFormElement?: (\r\n values: any, \r\n handleChange: React.ChangeEventHandler, \r\n errors: FormikErrors\r\n ) => JSX.Element;\r\n}\r\n\r\nexport interface IProps {\r\n validation: any;\r\n fields: IFieldProps[];\r\n onSubmit: (values: any) => void;\r\n bindSubmit: (submit: () => void) => void;\r\n}\r\n\r\nexport default class WesForm extends React.Component {\r\n render() {\r\n let initialValues: any = {};\r\n this.props.fields.forEach((item) => { \r\n initialValues[item.name] = item.initialValue ?? '';\r\n });\r\n return (\r\n \r\n {({\r\n handleSubmit,\r\n handleChange,\r\n handleBlur,\r\n values,\r\n touched,\r\n isValid,\r\n errors,\r\n setFieldValue,\r\n setFieldTouched,\r\n submitForm\r\n }) => (\r\n
    \r\n {this.props.bindSubmit(submitForm)}\r\n {this.props.fields.map((field, index) => \r\n \r\n \r\n {this.renderLabel(field)}\r\n \r\n {this.renderField(field, values, handleChange, errors)}\r\n \r\n )}\r\n
    \r\n )\r\n }\r\n \r\n );\r\n }\r\n\r\n renderField(field: IFieldProps,\r\n values: any, \r\n handleChange: React.ChangeEventHandler, \r\n errors: FormikErrors) {\r\n\r\n if (field.renderFormElement != null) {\r\n return field.renderFormElement(values, handleChange, errors);\r\n }\r\n\r\n const type = field.type || 'text';\r\n return (\r\n \r\n \r\n \r\n {errors[field.name]}\r\n \r\n \r\n );\r\n }\r\n\r\n\r\n renderLabel(field: IFieldProps) : JSX.Element {\r\n const req = field.required ?? true;\r\n return (\r\n <>\r\n {field.label}\r\n {req && (\r\n *\r\n )}\r\n \r\n );\r\n }\r\n\r\n doSubmit = (values: any, form: FormikHelpers) => {\r\n this.props.onSubmit(values);\r\n form.resetForm({});\r\n }\r\n}","import React from \"react\";\r\nimport { IRecipient } from \"../../Services/DataServiceModels\";\r\nimport Validations from \"../../Services/Validations\";\r\nimport * as Yup from \"yup\";\r\nimport { WesContext } from \"../../Contexts/WesContext\";\r\nimport WesForm, { IFieldProps } from \"../../Components/WesForm\";\r\nimport WesButton from \"../../Components/WesButton\";\r\nimport styles from \"./RecipientForm.module.scss\";\r\n\r\n\r\nexport interface IProps {\r\n onSubmit: (recipient: IRecipient) => void;\r\n edit: IRecipient | null;\r\n}\r\n\r\n\r\nexport default class RecipientForm extends React.Component {\r\n static contextType = WesContext;\r\n res = (key: string, ...val: any[]) => this.context.resources.get(key, val);\r\n submitForm: any = null;\r\n\r\n validation = Yup.object().shape({\r\n name: Validations.personName(this.context),\r\n email: Validations.email(this.context),\r\n organization: Validations.reqString(this.context, 50)\r\n });\r\n\r\n render() {\r\n const { edit } = this.props;\r\n const fields: IFieldProps[] = [{\r\n name: \"name\",\r\n initialValue: edit?.name ?? \"\",\r\n label: this.res(\"RecipientName\")\r\n }, {\r\n name: \"email\",\r\n type: \"email\",\r\n initialValue: edit?.email ?? \"\",\r\n label: this.res(\"RecipientEmail\")\r\n }, {\r\n name: \"organization\",\r\n initialValue: edit?.organization ?? \"\",\r\n label: this.res(\"OrganizationInstitutionName\"),\r\n }];\r\n\r\n return (\r\n <>\r\n this.bindSubmit(e)}\r\n />\r\n
    \r\n this.submitForm()}\r\n />\r\n
    \r\n \r\n );\r\n }\r\n\r\n\r\n bindSubmit = (form: () => void) => {\r\n this.submitForm = form;\r\n }\r\n\r\n onSubmit = (values: IRecipient) : void => {\r\n this.props.onSubmit(values);\r\n }\r\n}","import React from \"react\";\r\nimport { Form, FormCheck } from \"react-bootstrap\";\r\nimport Config from \"../../Assets/Config\";\r\nimport FormHeader from \"../../Components/FormHeader\";\r\nimport { WesContext } from \"../../Contexts/WesContext\";\r\nimport styles from \"./OrderSummary.module.scss\";\r\n\r\nexport interface IProps {\r\n handleIsCanCheckbox: (e: any) => void;\r\n isHst: boolean;\r\n price: number;\r\n}\r\n\r\nexport default class OrderSummary extends React.Component {\r\n static contextType = WesContext;\r\n res = (key: string) => this.context.resources.get(key);\r\n\r\n render() {\r\n const price = Config.formatCurrency(this.props.price);\r\n return (\r\n <>\r\n \r\n
    {price}
    \r\n\r\n \r\n\r\n \r\n );\r\n }\r\n}","import React from \"react\";\r\nimport WesButton from \"../Components/WesButton\";\r\nimport DataService from \"../Services/DataService\";\r\nimport Footer from \"./Components/Footer\";\r\nimport WesWizardModal from \"../Components/WesWizardModal\";\r\nimport FormHeader from \"../Components/FormHeader\";\r\nimport Config from \"../Assets/Config\";\r\nimport { WesContext } from \"../Contexts/WesContext\";\r\nimport { IDocument, IRecipient } from \"../Services/DataServiceModels\";\r\nimport RecipientList from \"./Components/RecipientList\";\r\nimport LoadingOverlay from \"react-loading-overlay\";\r\nimport RecipientForm from \"./Components/RecipientForm\";\r\nimport OrderSummary from \"../VerifyCredential/Components/OrderSummary\";\r\n\r\nexport interface IProps {\r\n documents: IDocument[];\r\n onClose: () => void;\r\n}\r\n\r\ninterface IState {\r\n edit: IRecipient | null;\r\n show: boolean;\r\n recipients: IRecipient[];\r\n loading: boolean;\r\n step: number;\r\n isHst: boolean;\r\n}\r\n\r\nexport default class ShareDocuments extends React.Component {\r\n static contextType = WesContext;\r\n res = (key: string, ...val: any[]) => this.context.resources.get(key, val);\r\n\r\n state: IState = {\r\n edit: null,\r\n loading: false,\r\n show: false,\r\n recipients: [],\r\n step: 1,\r\n isHst: false\r\n };\r\n\r\n render() {\r\n return (\r\n <>\r\n this.setState({ show: !this.state.show })}\r\n />\r\n\r\n this.onNext()}\r\n onBack={() => this.setState({ step: this.state.step - 1 })}\r\n nextEnabled={this.canNext()}\r\n onClose={this.onClose}\r\n title={this.res(\"ShareDocuments\")}>\r\n <>\r\n \r\n {this.getStep()}\r\n \r\n \r\n \r\n \r\n );\r\n }\r\n\r\n getNextText(): string {\r\n switch (this.state.step) {\r\n case 1: return this.res(\"Review\");\r\n case 2: return this.res(\"Payment\");\r\n case 3: return this.res(\"Pay\");\r\n default: return \"\";\r\n }\r\n }\r\n\r\n canNext(): boolean {\r\n if (this.state.step === 1)\r\n return this.state.recipients.length > 0;\r\n\r\n return true;\r\n }\r\n\r\n onNext = () => {\r\n const nextStep = this.state.step + 1;\r\n if (nextStep < 4) {\r\n if (this.state.recipients.length > 0)\r\n this.setState({ step: nextStep });\r\n }\r\n else {\r\n this.setState({ loading: true });\r\n DataService\r\n .processShare({\r\n recipients: this.state.recipients,\r\n documents: this.props.documents,\r\n isHst: this.state.isHst\r\n })\r\n .then(process => {\r\n window.location.href = process.forwardUrl;\r\n })\r\n .catch(err => {\r\n this.context.logging.error(err);\r\n this.setState({ loading: false });\r\n });\r\n\r\n\r\n }\r\n }\r\n\r\n onClose = () => {\r\n this.setState({\r\n show: false,\r\n recipients: [],\r\n step: 1\r\n });\r\n this.props.onClose();\r\n }\r\n\r\n handleOrdSummaryCheckbox = (e: any) => {\r\n if (e != null) {\r\n this.setState({ isHst: e?.target?.checked });\r\n }\r\n }\r\n\r\n getStep(): React.ReactNode {\r\n switch (this.state.step) {\r\n case 1: return this.getStep1();\r\n case 2: return this.getStep2();\r\n case 3: return this.getStep3();\r\n default: return (<>);\r\n }\r\n }\r\n\r\n getStep1(): React.ReactNode {\r\n return (\r\n <>\r\n \r\n this.setState({ edit: e })}\r\n onDelete={x => this.handleDelete(x)}\r\n />\r\n {\r\n this.handleDelete(e); // remove any dupes first\r\n this.state.recipients.push(e);\r\n this.setState({\r\n recipients: this.state.recipients,\r\n edit: null\r\n });\r\n }}\r\n />\r\n \r\n \r\n );\r\n }\r\n\r\n getStep2(): React.ReactNode {\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n );\r\n }\r\n\r\n getStep3(): React.ReactNode {\r\n\r\n // the subtotal foother here can use some work but it is working now\r\n return <>\r\n \r\n \r\n }\r\n\r\n handleDelete = (e: IRecipient): void => {\r\n let r = this.state.recipients;\r\n const index = r.findIndex(x => x.email === e.email);\r\n if (index > -1) {\r\n r.splice(index, 1);\r\n if (r.length === 0 && this.state.step === 2) {\r\n this.setState({ step: 1 });\r\n }\r\n\r\n this.setState({ recipients: r });\r\n }\r\n }\r\n\r\n async submitForPayment() {\r\n try {\r\n const process = await DataService.processShare({\r\n documents: this.props.documents,\r\n recipients: this.state.recipients,\r\n isHst: this.state.isHst\r\n });\r\n window.location.href = process.forwardUrl;\r\n //this.setState({ show: false });\r\n }\r\n catch (ex) {\r\n this.context.logging.error(ex);\r\n }\r\n }\r\n}","var _path, _path2, _path3;\n\nvar _excluded = [\"title\", \"titleId\"];\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport * as React from \"react\";\n\nfunction SvgUpload(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 18,\n height: 22,\n viewBox: \"0 0 18 22\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8.71948 17.1404V1\",\n stroke: \"#013763\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.10547 6.61404L8.7195 1L14.3335 6.61404\",\n stroke: \"#013763\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M1 20.649H16.4386\",\n stroke: \"#013763\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })));\n}\n\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgUpload);\nexport default __webpack_public_path__ + \"static/media/upload.2d6a7928.svg\";\nexport { ForwardRef as ReactComponent };","import React from 'react';\r\nimport DataService from '../Services/DataService';\r\nimport FormatService from '../Services/FormatService';\r\nimport ShareModal from '../Share/ShareDocuments';\r\nimport FormCheck from 'react-bootstrap/FormCheck';\r\nimport DashboardTitle from '../Components/DashboardTitle';\r\nimport WesDataList, { IColumn } from '../Components/WesDataList';\r\nimport { WesContext } from '../Contexts/WesContext';\r\nimport { IDocument, IMyCredential } from '../Services/DataServiceModels';\r\nimport { Container, Row, Col } from 'react-bootstrap';\r\nimport styles from './MyDocumentList.module.scss';\r\nimport Config from '../Assets/Config';\r\n\r\ninterface IState {\r\n data: IMyCredential[];\r\n loading: boolean;\r\n selected: IDocument[];\r\n}\r\n\r\nexport default class MyDocumentList extends React.Component {\r\n static contextType = WesContext;\r\n res = (key: string, ...val: any[]) => this.context.resources.get(key, val);\r\n\r\n state: IState = {\r\n loading: false,\r\n selected: [],\r\n data: []\r\n };\r\n\r\n componentDidMount() {\r\n this.loadData();\r\n }\r\n\r\n render() {\r\n const cols: IColumn[] = [{\r\n title: this.res(\"DocumentTypeName\"),\r\n render: (item: IMyCredential) => item.certificate\r\n }, {\r\n title: this.res(\"AwardedBy\"),\r\n render: (item: IMyCredential) => item.organization\r\n }, {\r\n title: this.res(\"Country\"),\r\n render: (item: IMyCredential) => item.country\r\n }, {\r\n title: this.res(\"VerificationDate\"),\r\n render: (item: IMyCredential) => FormatService.formatDate(item.verificationDate)\r\n }, {\r\n title: this.res(\"Share\"),\r\n render: (item: IMyCredential) => (\r\n \r\n this.toggleAllSelected(e.currentTarget.checked, item)}\r\n />\r\n )\r\n }];\r\n\r\n return (\r\n <>\r\n \r\n this.loadData()}\r\n />\r\n \r\n this.renderExpandRow(item)}\r\n columns={cols}\r\n loading={this.state.loading}\r\n data={this.state.data}\r\n noDataText={this.res(\"NoGlobalRecords\")}\r\n />\r\n \r\n );\r\n }\r\n\r\n renderExpandRow = (item: IMyCredential) => {\r\n return (\r\n \r\n {item.documents.map((doc, index) => {\r\n return (\r\n \r\n {doc.name}\r\n \r\n this.toggleSelected(doc)}\r\n />\r\n \r\n \r\n );\r\n })}\r\n \r\n );\r\n }\r\n\r\n\r\n async loadData() {\r\n try {\r\n this.setState({ loading: true });\r\n var result = await DataService.getMyCredentials();\r\n this.setState({ data: result });\r\n }\r\n catch (ex) {\r\n this.context.logging.error(ex);\r\n \r\n }\r\n finally {\r\n this.setState({ loading: false });\r\n }\r\n }\r\n\r\n toggleAllSelected(selected: boolean, cred: IMyCredential) {\r\n cred.documents.forEach((doc) => {\r\n const index = this.state.selected.findIndex(x => x.id === doc.id);\r\n const exists = index !== -1;\r\n if (selected && !exists) {\r\n this.push(doc);\r\n }\r\n else if (!selected && exists) {\r\n this.state.selected.splice(index, 1);\r\n }\r\n });\r\n this.setState({ selected: this.state.selected });\r\n }\r\n\r\n toggleSelected(doc: IDocument): void {\r\n const index = this.state.selected.findIndex(x => x.id === doc.id);\r\n if (index !== -1) {\r\n this.state.selected.splice(index, 1);\r\n }\r\n else {\r\n this.push(doc);\r\n }\r\n this.setState({ selected: this.state.selected });\r\n }\r\n\r\n push(doc: IDocument): void {\r\n const cred = this.state.data.find(x => x.id === doc.credentialId!)!;\r\n\r\n this.state.selected.push({\r\n id: doc.id,\r\n name: `${cred.certificate} ${doc.name}`\r\n });\r\n }\r\n\r\n isAllSelected(cred: IMyCredential) : boolean {\r\n return cred.documents.every(x => this.isSelected(x));\r\n }\r\n\r\n isSelected(doc: IDocument) : boolean {\r\n return this.state.selected.findIndex(x => x.id === doc.id) > -1;\r\n }\r\n}","import React from 'react';\r\nimport { WesContext } from '../Contexts/WesContext';\r\nimport WesButton from './WesButton';\r\nimport { ReactComponent as UploadIcon } from '../Assets/Images/upload.svg';\r\nimport styles from './UploadFile.module.scss';\r\n\r\nexport interface IProps {\r\n onFilesAdded: (files: FileList) => void;\r\n}\r\n\r\nconst validTypes = ['image/jpeg', 'image/jpg', 'image/pdf', 'application/pdf'];\r\n\r\nexport default class UploadFile extends React.Component {\r\n static contextType = WesContext;\r\n res = (key: string) => this.context.resources.get(key);\r\n private fileInput: React.RefObject;\r\n \r\n constructor(props: IProps) {\r\n super(props);\r\n this.fileInput = React.createRef();\r\n }\r\n\r\n // var holder = document.getElementById('holder');\r\n // console.dir(holder)\r\n \r\n // holder.ondragenter = function (e) { e.preventDefault(); this.className = 'nicenice lvl-over'; return false; };\r\n // holder.ondragleave = function () { this.className = 'nicenice'; return false; };\r\n // holder.ondragover = function (e) { e.preventDefault() }\r\n // holder.ondrop = function (e) {\r\n // e.preventDefault();\r\n // console.log(\"GOT DROP EVENT\");\r\n // alert(\"dropped here\");\r\n // return false;\r\n // };\r\n render(): JSX.Element {\r\n return (\r\n
    \r\n \r\n
    \r\n {this.res(\"DragFilesHere\")}
    \r\n {this.res(\"OR\")}
    \r\n\r\n \r\n this.fileInput.current!.click()}\r\n />\r\n
    \r\n );\r\n }\r\n\r\n onDragOver = (e: React.DragEvent) : void => {\r\n // TODO: div back to white\r\n e.preventDefault();\r\n }\r\n\r\n onDragEnter = (e: React.DragEvent) : void => {\r\n e.preventDefault();\r\n // TODO: turn div light blue?\r\n }\r\n\r\n onDragLeave = (e: React.DragEvent) : void => {\r\n e.preventDefault();\r\n // TODO: turn div light blue?\r\n }\r\n \r\n onInputFileUpload = (e: React.ChangeEvent) : void => {\r\n this.tryFireEvent(e.target?.files);\r\n }\r\n\r\n onFileDrop = (e: React.DragEvent) => {\r\n e.preventDefault();\r\n this.tryFireEvent(e.dataTransfer.files);\r\n }\r\n\r\n validateFile(e: File) : boolean {\r\n // 10MB: 10,485,760 bytes\r\n if (e.size > 10485760) {\r\n console.log('fail size', e);\r\n return false;\r\n }\r\n if (validTypes.indexOf(e.type) === -1) {\r\n // invalid\r\n console.log('fail type', e);\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n tryFireEvent(e: FileList | null) {\r\n if (e == null)\r\n return;\r\n \r\n if (e.length > 0) {\r\n for (let i = 0; i < e.length; i++) {\r\n if (!this.validateFile(e[i])) {\r\n // TODO: display error message\r\n return;\r\n }\r\n }\r\n this.props.onFilesAdded(e);\r\n }\r\n }\r\n}\r\n","import React from 'react';\r\nimport { WesContext } from '../../Contexts/WesContext';\r\nimport styles from \"./FileUploadList.module.scss\";\r\n\r\nexport default class UploadInfo extends React.Component {\r\n static contextType = WesContext;\r\n res = (key: string, ...val: any[]) => this.context.resources.get(key, val);\r\n\r\n render() {\r\n return (\r\n
    \r\n

    WES accepts digitally uploaded degree certificates only.

    \r\n

    For the complete list of documents yop need to submit, view your required documents.

    \r\n

    Not all documents are eligible for digital upload. If your document requirements indicate that you can send photocopies of your degree certificates and translation, proceed by clicking the Next button below

    \r\n

    File Requirements

    \r\n
      \r\n
    • Upload only PDF or JPEG Files
    • \r\n
    • The maximum file ssize is 10 MB
    • \r\n
    • You can upload a total of 20 files. Please consider combining several pages into one file if they are related.
    • \r\n
    • Do no password-your PDF.
    • \r\n
    • Only upload correct, clear, legible documents. Your documents cannot be deleted once they are uploaded.
    • \r\n
    • Do no upload academic transcripts or marksheet, upload is available only for degree certificates and translations.
    • \r\n
    \r\n
    \r\n );\r\n }\r\n}","var _path, _path2, _path3, _path4, _path5, _path6, _path7, _path8;\n\nvar _excluded = [\"title\", \"titleId\"];\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport * as React from \"react\";\n\nfunction SvgPdfIcon(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 34,\n height: 32,\n viewBox: \"0 0 34 32\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12.0231 19.1948H10.2223V24.4463H11.6238V22.7311H12.0312C12.2947 22.757 12.5607 22.7289 12.8129 22.6483C13.0652 22.5677 13.2982 22.4365 13.4979 22.2626C13.6709 22.0863 13.8071 21.8773 13.8987 21.6479C13.9904 21.4186 14.0355 21.1733 14.0316 20.9263C14.0531 20.7039 14.0219 20.4795 13.9405 20.2714C13.8591 20.0633 13.7298 19.8773 13.5631 19.7285C13.1372 19.3652 12.5906 19.1747 12.0312 19.1948H12.0231ZM12.3653 21.3948C12.2971 21.4661 12.2137 21.521 12.1213 21.5556C12.0289 21.5902 11.9298 21.6034 11.8316 21.5944H11.5627V20.3967H11.9701C12.3775 20.3967 12.5731 20.5963 12.5731 20.9263C12.5752 21.0141 12.5585 21.1014 12.524 21.1822C12.4896 21.263 12.4382 21.3355 12.3735 21.3948\",\n fill: \"#1F9055\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16.6227 19.1947H14.8219V24.4462H16.4882C16.8551 24.4763 17.224 24.4263 17.5696 24.2997C17.9152 24.173 18.2291 23.9727 18.4895 23.7126C18.7499 23.4526 18.9507 23.139 19.0779 22.7936C19.2051 22.4482 19.2556 22.0793 19.226 21.7125C19.2491 21.3722 19.2017 21.0309 19.0867 20.7098C18.9717 20.3887 18.7917 20.0948 18.5579 19.8466C18.0259 19.3778 17.3306 19.1377 16.6227 19.1784V19.1947ZM17.4905 22.9143C17.378 23.0508 17.2348 23.1589 17.0727 23.2297C16.9106 23.3005 16.7341 23.332 16.5575 23.3217H16.2234V20.3884H16.6308C16.7908 20.38 16.9508 20.4054 17.1003 20.463C17.2498 20.5206 17.3855 20.609 17.4986 20.7225C17.7115 21.0337 17.8055 21.4111 17.7634 21.7858C17.8004 21.9833 17.796 22.1863 17.7504 22.382C17.7048 22.5776 17.6191 22.7617 17.4986 22.9225\",\n fill: \"#1F9055\"\n })), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20.2243 24.4626H21.6258V22.5274H23.1576V21.3296H21.6258V20.3274H23.2921V19.1948H20.2243V24.4626Z\",\n fill: \"#1F9055\"\n })), _path4 || (_path4 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M29.0366 9.95476H20.0491V0.40918H21.5566V8.44735H29.0366V9.95476Z\",\n fill: \"#1F9055\"\n })), _path5 || (_path5 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.8572 15.6218H4.65716C4.47087 15.6284 4.28518 15.5971 4.11133 15.5299C3.93748 15.4626 3.77909 15.3608 3.64577 15.2305C3.51245 15.1002 3.40696 14.9442 3.33571 14.772C3.26445 14.5997 3.22891 14.4148 3.23123 14.2284V1.37469C3.23166 1.19001 3.26924 1.0073 3.34172 0.837437C3.4142 0.667575 3.52011 0.514027 3.65315 0.385932C3.78619 0.257836 3.94363 0.15781 4.11611 0.0918045C4.2886 0.0257995 4.4726 -0.00483532 4.65716 0.00172191H20.7905C21.0796 -0.0144335 21.3634 0.0835918 21.5809 0.274685C22.0535 0.645427 23.0761 1.61506 25.7568 4.14914L29.8676 8.04804C29.943 8.12127 30.0075 8.20496 30.0591 8.29656C30.3035 8.54915 30.3035 8.90767 30.3035 14.2325C30.3054 14.4203 30.2689 14.6066 30.1961 14.7798C30.1234 14.953 30.016 15.1094 29.8805 15.2396C29.745 15.3697 29.5844 15.4707 29.4084 15.5365C29.2324 15.6022 29.0448 15.6312 28.8572 15.6218ZM4.73457 14.1103H28.7717C28.7717 12.0162 28.7717 9.71434 28.7269 9.05841C25.875 6.35729 21.7154 2.40951 20.7742 1.5458L20.7091 1.48469H4.73864L4.73457 14.1103Z\",\n fill: \"#1F9055\"\n })), _path6 || (_path6 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M28.7595 31.9995H4.76312C4.57536 32.004 4.38866 31.9702 4.21434 31.9003C4.04003 31.8304 3.88176 31.7258 3.74915 31.5928C3.61654 31.4598 3.51236 31.3012 3.44294 31.1267C3.37352 30.9522 3.34032 30.7654 3.34534 30.5776V28.6669H1.42237C1.23443 28.6714 1.04754 28.6376 0.873016 28.5678C0.698491 28.4979 0.539962 28.3933 0.40703 28.2604C0.274099 28.1274 0.16953 27.9689 0.0996556 27.7944C0.0297806 27.6199 -0.00394643 27.433 0.000516967 27.245V15.2469C-0.00492704 15.0576 0.0326856 14.8695 0.110517 14.6969C0.273481 14.2283 0.860147 14.2161 1.1657 14.212H2.18422C3.05608 14.212 4.30275 14.212 5.79794 14.212C11.7746 14.212 21.7358 14.212 27.7124 14.212C29.2076 14.212 30.4543 14.212 31.3262 14.212H32.3447C32.6502 14.212 33.2328 14.212 33.3999 14.6928C33.4779 14.8668 33.5155 15.0562 33.5099 15.2469V27.245C33.5143 27.4326 33.4807 27.6192 33.4111 27.7934C33.3414 27.9677 33.2372 28.126 33.1048 28.2589C32.9723 28.3917 32.8142 28.4964 32.6402 28.5665C32.4661 28.6367 32.2797 28.6708 32.0921 28.6669H30.1773V30.5776C30.1817 30.7652 30.1481 30.9518 30.0785 31.126C30.0088 31.3003 29.9046 31.4586 29.7722 31.5915C29.6397 31.7243 29.4816 31.829 29.3076 31.8991C29.1335 31.9693 28.9471 32.0034 28.7595 31.9995ZM4.8446 30.4921H28.6698V28.6669H4.8446V30.4921ZM28.6698 27.1595H32.0024V15.7154C30.1161 15.7154 24.1924 15.6828 16.7572 15.6828C9.32202 15.6828 3.3983 15.6828 1.50793 15.7154V27.1595H28.6698Z\",\n fill: \"#1F9055\"\n })), _path7 || (_path7 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M32.7969 15.5117C32.6978 15.5121 32.5997 15.4929 32.508 15.4551C32.4164 15.4174 32.3332 15.3618 32.2632 15.2917L29.5173 12.5498C29.3757 12.4083 29.2962 12.2163 29.2962 12.0161C29.2962 11.8159 29.3757 11.624 29.5173 11.4824C29.6588 11.3409 29.8508 11.2614 30.051 11.2614C30.2512 11.2614 30.4431 11.3409 30.5847 11.4824L33.3266 14.2243C33.432 14.3294 33.504 14.4635 33.5333 14.6095C33.5626 14.7556 33.5481 14.907 33.4914 15.0447C33.4347 15.1825 33.3385 15.3003 33.2149 15.3835C33.0913 15.4666 32.9459 15.5112 32.7969 15.5117Z\",\n fill: \"#1F9055\"\n })), _path8 || (_path8 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0.884444 15.5117C0.735156 15.512 0.589141 15.4679 0.464917 15.3851C0.340692 15.3024 0.243854 15.1845 0.186684 15.0466C0.129513 14.9087 0.114585 14.7569 0.143792 14.6105C0.173 14.4641 0.245026 14.3297 0.350739 14.2243L3.0926 11.4824C3.23415 11.3409 3.42612 11.2614 3.6263 11.2614C3.82648 11.2614 4.01846 11.3409 4.16001 11.4824C4.30156 11.624 4.38108 11.8159 4.38108 12.0161C4.38108 12.2163 4.30156 12.4083 4.16001 12.5498L1.41815 15.2917C1.27624 15.4326 1.0844 15.5116 0.884444 15.5117Z\",\n fill: \"#1F9055\"\n })));\n}\n\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgPdfIcon);\nexport default __webpack_public_path__ + \"static/media/pdf-icon.c806a5f0.svg\";\nexport { ForwardRef as ReactComponent };","var _path, _path2, _path3;\n\nvar _excluded = [\"title\", \"titleId\"];\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport * as React from \"react\";\n\nfunction SvgJpgIcon(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M31 31H1V1H31V31Z\",\n stroke: \"#1F9055\",\n strokeWidth: 1.6,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M5 26L10 17L15 21L20 14L27 26H5V26Z\",\n stroke: \"#1F9055\",\n strokeWidth: 1.6,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M11 9C11 7.343 12.343 6 14 6C15.657 6 17 7.343 17 9C17 10.657 15.657 12 14 12C12.343 12 11 10.657 11 9V9Z\",\n stroke: \"#1F9055\",\n strokeWidth: 1.6,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })));\n}\n\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgJpgIcon);\nexport default __webpack_public_path__ + \"static/media/jpg-icon.0cb3d4d0.svg\";\nexport { ForwardRef as ReactComponent };","import React from 'react';\r\nimport { Card, Col, Container, Row, Stack } from 'react-bootstrap';\r\nimport { ReactComponent as PdfIcon } from \"../../Assets/Images/pdf-icon.svg\";\r\nimport { ReactComponent as JpgIcon } from \"../../Assets/Images/jpg-icon.svg\";\r\nimport { WesContext } from \"../../Contexts/WesContext\";\r\nimport styles from \"./FileUploadList.module.scss\";\r\n\r\nexport interface IProps {\r\n files: File[];\r\n onRemove: (index: number) => void;\r\n}\r\n\r\nexport default class FileUploadList extends React.Component {\r\n static contextType = WesContext;\r\n res = (key: string) => this.context.resources.get(key);\r\n\r\n render() {\r\n const rows = this.props.files.length === 0 \r\n ? (<>) \r\n : this.props.files.map((item, index) => {\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n {this.getFileIcon(item)}\r\n {item.name}\r\n \r\n \r\n {\r\n e.preventDefault();\r\n this.onPreview(index);\r\n }}>{this.res(\"Preview\")}\r\n {\r\n e.preventDefault();\r\n this.props.onRemove(index); \r\n }}>{this.res(\"Remove\")}\r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n });\r\n\r\n return (<>{rows});\r\n }\r\n\r\n getFileIcon(item: File) : JSX.Element {\r\n const ft = item.name.toLowerCase();\r\n if (ft.endsWith(\".pdf\"))\r\n return ();\r\n\r\n if (ft.endsWith(\".jpg\"))\r\n return ();\r\n\r\n return (<>);\r\n }\r\n\r\n onPreview(index: number) : void {\r\n const file = this.props.files[index];\r\n const url = URL.createObjectURL(file);\r\n window.open(url, \"_blank\");\r\n }\r\n}","var _rect, _line, _line2, _line3;\n\nvar _excluded = [\"title\", \"titleId\"];\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport * as React from \"react\";\n\nfunction SvgRequiredDocs(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 18,\n height: 21,\n viewBox: \"0 0 18 21\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _rect || (_rect = /*#__PURE__*/React.createElement(\"rect\", {\n x: 1,\n y: 1,\n width: 16,\n height: 19,\n stroke: \"#013763\",\n strokeWidth: 2,\n strokeLinejoin: \"round\"\n })), _line || (_line = /*#__PURE__*/React.createElement(\"line\", {\n x1: 5,\n y1: 6.65002,\n x2: 9,\n y2: 6.65002,\n stroke: \"#013763\",\n strokeWidth: 2,\n strokeLinecap: \"round\"\n })), _line2 || (_line2 = /*#__PURE__*/React.createElement(\"line\", {\n x1: 5,\n y1: 10.4501,\n x2: 13,\n y2: 10.4501,\n stroke: \"#013763\",\n strokeWidth: 2,\n strokeLinecap: \"round\"\n })), _line3 || (_line3 = /*#__PURE__*/React.createElement(\"line\", {\n x1: 5,\n y1: 14.25,\n x2: 13,\n y2: 14.25,\n stroke: \"#013763\",\n strokeWidth: 2,\n strokeLinecap: \"round\"\n })));\n}\n\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgRequiredDocs);\nexport default __webpack_public_path__ + \"static/media/required-docs.36db3641.svg\";\nexport { ForwardRef as ReactComponent };","import React from \"react\";\r\nimport FormCheck from \"react-bootstrap/FormCheck\";\r\nimport UploadFile from \"../Components/UploadFile\";\r\nimport { IPendingVerificationCredential } from \"../Services/DataServiceModels\";\r\nimport UploadInfo from \"./Components/UploadInfo\";\r\nimport FileUploadList from \"./Components/FileUploadList\";\r\nimport DataService from \"../Services/DataService\";\r\nimport { WesContext } from \"../Contexts/WesContext\";\r\nimport WesWizardModal from \"../Components/WesWizardModal\";\r\nimport FormHeader from \"../Components/FormHeader\";\r\nimport LoadingOverlay from \"react-loading-overlay\";\r\n\r\nexport interface IProps {\r\n credential: IPendingVerificationCredential;\r\n onComplete: (didUpload: boolean) => void;\r\n show: boolean;\r\n}\r\n\r\ninterface IState {\r\n step: number;\r\n understood: boolean;\r\n files: File[];\r\n uploading: boolean;\r\n}\r\n\r\nexport default class UploadDocument extends React.Component {\r\n static contextType = WesContext;\r\n res = (key: string) => this.context.resources.get(key);\r\n \r\n state: IState = { \r\n step: 1,\r\n understood: false,\r\n uploading: false,\r\n files: []\r\n };\r\n\r\n render() {\r\n const el = (this.state.step === 1 ? this.renderStep1() : this.renderStep2());\r\n\r\n return (\r\n this.setState({ step: this.state.step - 1 })}\r\n onNext={() => this.handleNext()}\r\n nextEnabled={this.canNext()}\r\n onClose={this.onClose}>\r\n {el}\r\n \r\n )\r\n }\r\n\r\n getNextText() : string {\r\n if (this.state.step === 1)\r\n return this.res(\"Next\");\r\n\r\n return this.res(\"Submit\");\r\n }\r\n\r\n onClose = () => this.close(false); \r\n\r\n close(complete: boolean) : void {\r\n this.setState({\r\n step: 1,\r\n understood: false,\r\n uploading: false,\r\n files: []\r\n });\r\n this.props.onComplete(complete);\r\n }\r\n\r\n renderStep1() : JSX.Element {\r\n return ();\r\n }\r\n\r\n renderStep2() : JSX.Element {\r\n return (\r\n \r\n \r\n \r\n \r\n
    \r\n {this.res(\"Note\")}: {this.res(\"PleasePreviewDocs\")}\r\n

    \r\n this.setState({ understood: e.target.checked })}\r\n checked={this.state.understood}\r\n />\r\n
    \r\n
    \r\n );\r\n }\r\n\r\n canNext = (): boolean => {\r\n if (this.state.step === 1)\r\n return true;\r\n\r\n if (this.state.files.length > 0 && this.state.understood === true)\r\n return true;\r\n\r\n return false;\r\n }\r\n\r\n onRemove = (index: number) : void => {\r\n this.state.files.splice(index, 1);\r\n this.setState({ files: this.state.files });\r\n }\r\n\r\n onFiles = (e: FileList) : void => {\r\n for (let i = 0; i < e.length; i++) {\r\n this.state.files.push(e[i]);\r\n }\r\n this.setState({ files: this.state.files });\r\n }\r\n\r\n handleNext = () : void => {\r\n if (this.state.step === 1) {\r\n this.setState({ step: 2 });\r\n }\r\n else {\r\n this.setState({ uploading: true });\r\n DataService\r\n .uploadDocuments(\r\n this.props.credential.id!, \r\n this.state.files\r\n )\r\n .then(() => {\r\n this.close(true);\r\n })\r\n .catch(e => {\r\n this.context.logging.error(e);\r\n this.setState({ uploading: false });\r\n });\r\n }\r\n }\r\n}","import React from 'react';\r\nimport { WesContext } from '../../Contexts/WesContext';\r\nimport { IPendingVerificationCredential } from '../../Services/DataServiceModels';\r\nimport UploadDocument from '../../UploadDocument/UploadDocument';\r\nimport { ReactComponent as Upload } from '../../Assets/Images/upload.svg';\r\nimport { ReactComponent as RequiredDocs } from '../../Assets/Images/required-docs.svg';\r\nimport OverlayTrigger from 'react-bootstrap/OverlayTrigger';\r\nimport Tooltip from 'react-bootstrap/Tooltip';\r\nimport { Stack } from 'react-bootstrap';\r\n\r\nexport interface IProps {\r\n credential: IPendingVerificationCredential;\r\n onChange: () => void;\r\n onReqDocsClick: () => void;\r\n}\r\n\r\ninterface IState {\r\n showUpload: boolean;\r\n}\r\n\r\nexport default class PendingActions extends React.Component {\r\n static contextType = WesContext;\r\n res = (key: string, ...val: any[]) => this.context.resources.get(key, val);\r\n \r\n state: IState = {\r\n showUpload: false\r\n };\r\n\r\n render() {\r\n return (\r\n <>\r\n { \r\n this.setState({ showUpload: false })\r\n if (didUpload)\r\n this.props.onChange();\r\n }}\r\n />\r\n \r\n \r\n {this.res(\"UploadDocuments\")}\r\n \r\n }>\r\n
    this.setState({ showUpload: true })}>\r\n \r\n
    \r\n \r\n \r\n {this.res(\"ViewRequiredDocuments\")}\r\n \r\n }>\r\n
    \r\n \r\n
    \r\n \r\n
    \r\n \r\n );\r\n }\r\n\r\n\r\n onView() : void {\r\n // TODO: no idea what to show here - there is no static content yet anyhow\r\n }\r\n}","import React from \"react\";\r\nimport Col from 'react-bootstrap/Col';\r\nimport Form from 'react-bootstrap/Form';\r\nimport { ICredential, ICountry } from \"../../Services/DataServiceModels\";\r\nimport * as Yup from \"yup\";\r\nimport { FormikErrors } from \"formik\";\r\nimport { WesContext } from \"../../Contexts/WesContext\";\r\nimport Validations from \"../../Services/Validations\";\r\nimport WesForm, { IFieldProps } from \"../../Components/WesForm\";\r\nimport FormHeader from \"../../Components/FormHeader\";\r\nimport LoadingOverlay from \"react-loading-overlay\";\r\nimport DataService from \"../../Services/DataService\";\r\nimport { FloatingLabel } from \"react-bootstrap\";\r\n\r\nexport interface IProps {\r\n credential: ICredential | null;\r\n onCredentialChange: (creds: ICredential) => void;\r\n bindSubmit: (submit: () => void) => void;\r\n}\r\n\r\ninterface IState {\r\n loading: boolean;\r\n countries: ICountry[];\r\n credential: ICredential | null;\r\n yearAwarded: number;\r\n yearStarted: number;\r\n yearFinished: number;\r\n}\r\n\r\nexport default class CredentialForm extends React.Component {\r\n static contextType = WesContext;\r\n res = (key: string) => this.context.resources.get(key);\r\n submitForm: any;\r\n\r\n state: IState = {\r\n loading: false,\r\n countries: [],\r\n credential: this.props.credential,\r\n yearStarted: this.props.credential?.yearStart || 0,\r\n yearFinished: this.props.credential?.yearFinish || 0,\r\n yearAwarded: this.props.credential?.yearAwarded || 0\r\n };\r\n\r\n validation = Yup.object().shape({\r\n country: Validations.reqString(this.context, 100),\r\n organization: Validations.reqString(this.context, 100),\r\n certificate: Validations.reqString(this.context, 100),\r\n yearAwarded: Validations.year(this.context, true),\r\n yearStart: Validations\r\n .year(this.context, true)\r\n .when(\r\n 'yearFinish',\r\n (yearFinish: number, schema: any) => yearFinish && schema.max(yearFinish, this.res(\"YearStartedLessThanYearFinish\"))\r\n ),\r\n yearFinish: Validations\r\n .year(this.context, true)\r\n .when(\r\n 'yearAwarded',\r\n (yearAwarded: number, schema: any) => yearAwarded && schema.max(yearAwarded, this.res(\"YearFinishedLessThanYearAwarded\"))\r\n )\r\n });\r\n\r\n handleYearAwardedChange(e: React.ChangeEvent, h: React.ChangeEventHandler) {\r\n h(e);\r\n var year = Number(e.target.value);\r\n // reset the start and end date also\r\n this.setState({ yearAwarded: year, yearFinished: 0, yearStarted: 0 });\r\n }\r\n\r\n handleYearStartedChange(e: React.ChangeEvent, h: React.ChangeEventHandler) {\r\n h(e);\r\n var year = Number(e.target.value);\r\n // reset the end date as well\r\n this.setState({ yearStarted: year, yearFinished: 0 });\r\n }\r\n\r\n handleYearFinishedChange(e: React.ChangeEvent, h: React.ChangeEventHandler) {\r\n h(e);\r\n var year = Number(e.target.value);\r\n this.setState({ yearFinished: year });\r\n }\r\n\r\n createFromYears() {\r\n let yearAwarded: number = this.state.yearAwarded;\r\n let options: number[] = [];\r\n if (yearAwarded !== 0) {\r\n for (let i = 0; i < 100; i++) {\r\n options.push(yearAwarded - i);\r\n }\r\n }\r\n return options;\r\n }\r\n\r\n createToYears() {\r\n let yearAwarded: number = this.state.yearAwarded;\r\n let yearStarted: number = this.state.yearStarted;\r\n let options: number[] = [];\r\n if (yearAwarded !== 0 && yearStarted !== 0) {\r\n for (let i = yearStarted; i <= yearAwarded; i++) {\r\n options.push(i);\r\n }\r\n\r\n // reverse the list for descending list\r\n options.reverse();\r\n }\r\n return options;\r\n }\r\n\r\n createAwardYears() {\r\n let options: number[] = [];\r\n let currYear = new Date().getFullYear();\r\n for (let i = 1900; i <= currYear; i++) {\r\n options.push(i);\r\n }\r\n // reverse the list for descending list\r\n options.reverse();\r\n return options;\r\n }\r\n\r\n async componentDidMount() {\r\n try {\r\n this.setState({ loading: true });\r\n const data = await DataService.getCountries();\r\n this.setState({ countries: data });\r\n }\r\n catch (ex) {\r\n this.context.logging.error(ex);\r\n }\r\n finally {\r\n this.setState({ loading: false });\r\n }\r\n }\r\n\r\n render() {\r\n const c = this.props.credential;\r\n\r\n const fields: IFieldProps[] = [{\r\n name: \"country\",\r\n label: this.res(\"CountryOrTerritoryOfEducation\"),\r\n initialValue: c?.country,\r\n renderFormElement: (\r\n values: any,\r\n handleChange: React.ChangeEventHandler,\r\n errors: FormikErrors\r\n ) => (\r\n \r\n \r\n \r\n {this.state.countries.map(x => ())}\r\n \r\n \r\n {errors.country}\r\n \r\n \r\n )\r\n }, {\r\n name: \"organization\",\r\n initialValue: c?.organization,\r\n label: this.res(\"NameOfTheInstitution\")\r\n }, {\r\n name: \"certificate\",\r\n initialValue: c?.certificate,\r\n label: this.res(\"NameOfDiplomaCertificate\"),\r\n maxLength: 100\r\n },\r\n {\r\n name: \"fieldOfStudy\",\r\n initialValue: c?.fieldOfStudy,\r\n label: this.res(\"FieldOfStudy\"),\r\n required: false,\r\n maxLength: 100\r\n },\r\n //{\r\n // name: \"yearAwarded\",\r\n // initialValue: c?.yearAwarded,\r\n // type: \"number\",\r\n // label: this.res(\"YearAwarded\"),\r\n // maxLength: 4,\r\n //},\r\n {\r\n name: \"yearAwarded\",\r\n label: this.res(\"YearAwarded\"),\r\n initialValue: c?.yearAwarded,\r\n renderFormElement: (\r\n values: any,\r\n handleChange: React.ChangeEventHandler,\r\n errors: FormikErrors\r\n ) => (\r\n \r\n this.handleYearAwardedChange(e, handleChange)}\r\n value={this.state.yearAwarded}\r\n >\r\n \r\n {this.createAwardYears().map(x => ())}\r\n \r\n \r\n {errors.country}\r\n \r\n \r\n )\r\n },\r\n {\r\n name: \"yearsAttended\",\r\n label: this.res(\"YearsAttended\"),\r\n renderFormElement: (\r\n values: any,\r\n handleChange: React.ChangeEventHandler,\r\n errors: FormikErrors,\r\n\r\n ) => (\r\n <>\r\n \r\n this.handleYearStartedChange(e, handleChange)}\r\n value={this.state.yearStarted}\r\n defaultValue={c?.yearStart}\r\n isInvalid={!!errors.yearStart}\r\n >\r\n \r\n {this.createFromYears().map(x => ())}\r\n \r\n\r\n \r\n {errors.yearStart}\r\n \r\n \r\n \r\n this.handleYearFinishedChange(e, handleChange)}\r\n value={this.state.yearFinished}\r\n defaultValue={c?.yearFinish}\r\n isInvalid={!!errors.yearFinish}\r\n >\r\n \r\n {this.createToYears().map(x => ())}\r\n \r\n\r\n \r\n {errors.yearFinish}\r\n \r\n \r\n \r\n )\r\n }];\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n );\r\n }\r\n\r\n onSubmit = (values: ICredential): void => {\r\n this.props.onCredentialChange(values);\r\n }\r\n}","import React from 'react';\r\nimport FormHeader from '../../Components/FormHeader';\r\nimport { WesContext } from \"../../Contexts/WesContext\";\r\n\r\nexport default class RequiredDocsInfo extends React.Component {\r\n static contextType = WesContext;\r\n res = (key: string) => this.context.resources.get(key);\r\n resNested = (key: string) => this.context.resources.getNested(key);\r\n\r\n render() {\r\n return (\r\n <>\r\n \r\n
    \r\n
    \r\n {this.resNested(\"RequiredDocumentsContent:Intro\")}\r\n
    \r\n
      \r\n
    • {this.resNested(\"RequiredDocumentsContent:list1\")}
    • \r\n
    • {this.resNested(\"RequiredDocumentsContent:list2\")}
    • \r\n
    \r\n {this.resNested(\"RequiredDocumentsContent:conclusion\")}\r\n
    \r\n
    \r\n \r\n );\r\n }\r\n}","import React from \"react\";\r\nimport { Container } from \"react-bootstrap\";\r\nimport Col from \"react-bootstrap/Col\";\r\nimport Row from \"react-bootstrap/Row\";\r\nimport FormHeader from \"../../Components/FormHeader\";\r\nimport { WesContext } from \"../../Contexts/WesContext\";\r\nimport { ICredential } from \"../../Services/DataServiceModels\";\r\nimport styles from \"./ReviewCredential.module.scss\";\r\n\r\nexport interface IProps {\r\n credential?: ICredential;\r\n}\r\n\r\nexport default class ReviewCredential extends React.Component { \r\n static contextType = WesContext;\r\n res = (key: string) => this.context.resources.get(key);\r\n\r\n render() {\r\n return (\r\n <>\r\n \r\n
    \r\n
    \r\n {this.res(\"YourEducation\")}\r\n
    \r\n \r\n {/*{this.renderRow(\"FirstName\", \"firstName\")}*/}\r\n {/*{this.renderRow(\"MiddleName\", \"middleName\")}*/}\r\n {/*{this.renderRow(\"LastName\", \"lastName\")}*/}\r\n {this.renderRow(\"CountryOrTerritoryOfEducation\", \"country\")}\r\n {this.renderRow(\"NameOfTheInstitution\", \"organization\")}\r\n {this.renderRow(\"NameOfDiplomaCertificate\", \"certificate\")}\r\n {this.renderRow(\"FieldOfStudy\", \"fieldOfStudy\")}\r\n {this.renderRow(\"YearAwarded\", \"yearAwarded\")}\r\n {this.renderRowRaw(\r\n \"YearsAttended\", \r\n `${this.props.credential?.yearStart} - ${this.props.credential?.yearFinish}`\r\n )}\r\n \r\n
    \r\n \r\n );\r\n }\r\n\r\n renderRow(labelKey: string, accessor: keyof ICredential) {\r\n const c = this.props.credential;\r\n const value = c == null ? \"\" : c![accessor]?.toString() || \"\";\r\n \r\n return this.renderRowRaw(labelKey, value);\r\n }\r\n\r\n renderRowRaw(labelKey: string, value: string) {\r\n return (\r\n \r\n {this.res(labelKey)}:\r\n {value}\r\n \r\n );\r\n }\r\n}","import React from 'react';\r\nimport WesButton from '../Components/WesButton';\r\nimport CredentialForm from './Components/CredentialForm';\r\nimport RequiredDocsInfo from './Components/RequiredDocsInfo';\r\nimport ReviewCredential from './Components/ReviewCredential';\r\nimport OrderSummary from './Components/OrderSummary';\r\nimport { ICredential } from '../Services/DataServiceModels';\r\nimport { WesContext } from '../Contexts/WesContext';\r\nimport WesWizardModal from '../Components/WesWizardModal';\r\nimport DataService from '../Services/DataService';\r\nimport Config from '../Assets/Config';\r\n\r\n\r\nexport interface IState {\r\n step: number;\r\n showModal: boolean;\r\n cred: ICredential | null;\r\n isHst: boolean;\r\n isFree: boolean;\r\n}\r\n\r\nexport interface IProps {\r\n onSubmit: () => void;\r\n}\r\n\r\nexport default class AddCredential extends React.Component {\r\n static contextType = WesContext;\r\n res = (key: string, ...val: any[]) => this.context.resources.get(key, val);\r\n submitForm: any;\r\n\r\n state: IState = {\r\n step: 1,\r\n showModal: false,\r\n cred: null,\r\n isHst: false,\r\n isFree: false\r\n };\r\n\r\n render() {\r\n const values = this.getStepValues();\r\n\r\n return (\r\n <>\r\n this.setState({ showModal: true })}\r\n />\r\n\r\n this.setState({ showModal: false })}\r\n onBack={() => this.setState({ step: this.state.step - 1 })}\r\n onNext={this.onNext}\r\n show={this.state.showModal}\r\n title={this.res(\"VerifyNewCredential\")}>\r\n {values.component}\r\n \r\n \r\n );\r\n }\r\n\r\n onNext = () => {\r\n switch (this.state.step) {\r\n case 1:\r\n this.submitForm();\r\n break;\r\n case 2:\r\n this.setState({ step: 3 });\r\n break;\r\n case 3:\r\n this.setState({ step: 4 });\r\n break;\r\n\r\n case 4:\r\n if (this.state.isHst) {\r\n var newCred = this.state.cred;\r\n newCred!.isHst = this.state.isHst;\r\n\r\n this.setState({ cred: newCred })\r\n }\r\n\r\n if (this.state.isFree) {\r\n var newCred = this.state.cred;\r\n newCred!.isFree = this.state.isFree;\r\n\r\n this.setState({ cred: newCred })\r\n }\r\n\r\n // set the name using profile context\r\n // bandaid solution for now\r\n var c = this.state.cred!;\r\n c.firstName = this.context.user.firstName;\r\n c.lastName = this.context.user.lastName;\r\n this.setState({ cred: c });\r\n\r\n DataService\r\n .processNewCredential(this.state.cred!)\r\n .then(process => {\r\n if (this.state.isFree)\r\n process.forwardUrl = window.location.origin + process.forwardUrl;\r\n\r\n window.location.href = process.forwardUrl\r\n }\r\n );\r\n\r\n\r\n break;\r\n }\r\n }\r\n\r\n onCredentialSubmit = (e: ICredential) => {\r\n this.setState({\r\n cred: e,\r\n step: 2\r\n });\r\n }\r\n\r\n onClose = () => {\r\n this.setState({\r\n step: 1,\r\n showModal: false\r\n });\r\n }\r\n\r\n handleOrdSummaryCheckbox = (e: any) => {\r\n if (e != null) {\r\n this.setState({ isHst: e?.target?.checked });\r\n }\r\n }\r\n\r\n\r\n async componentDidMount() {\r\n try {\r\n let isFree = await DataService.checkCredFree();\r\n this.setState({ isFree });\r\n }\r\n catch (ex) {\r\n this.context.logging.error(ex);\r\n }\r\n }\r\n\r\n\r\n getStepValues(): any {\r\n switch (this.state.step) {\r\n case 4: {\r\n let bt = this.res(\"Pay\");\r\n let price = Config.credentialVerificationPrice;\r\n if (this.state.isFree) {\r\n bt = \"Finish\";\r\n price = 0;\r\n }\r\n return {\r\n backText: this.res(\"Back\"),\r\n nextText: bt,\r\n component: // price should be calculated here probably\r\n };\r\n }\r\n\r\n\r\n case 3: {return {\r\n backText: this.res(\"RequiredDocuments\"),\r\n nextText: this.res(\"Payment\"),\r\n component: \r\n };\r\n }\r\n case 2: return {\r\n backText: this.res(\"Edit\"),\r\n nextText: this.res(\"Review\"),\r\n component: \r\n };\r\n\r\n default:\r\n case 1: return {\r\n backText: null,\r\n nextText: this.res(\"RequiredDocuments\"),\r\n component: this.submitForm = e}\r\n />\r\n }\r\n }\r\n }\r\n}","import React from 'react';\r\nimport DataService from '../Services/DataService';\r\nimport { IPendingVerificationCredential } from '../Services/DataServiceModels';\r\nimport Row from 'react-bootstrap/Row';\r\nimport PendingActions from './Components/PendingActions';\r\nimport AddCredential from '../VerifyCredential/AddCredential';\r\nimport { WesContext } from '../Contexts/WesContext';\r\nimport DashboardTitle from '../Components/DashboardTitle';\r\nimport WesBadge from '../Components/WesBadge';\r\nimport WesDataList, { IColumn } from '../Components/WesDataList';\r\nimport { Container } from 'react-bootstrap';\r\nimport styles from './PendingVerificationList.module.scss';\r\nimport Config from '../Assets/Config';\r\nimport WesModal, { IButtonProps } from '../Components/WesModal';\r\n\r\ninterface IState {\r\n loading: boolean;\r\n data: IPendingVerificationCredential[];\r\n showReqDocs: boolean;\r\n}\r\n\r\nexport default class PendingVerificationList extends React.Component {\r\n static contextType = WesContext;\r\n res = (key: string, ...val: any[]) => this.context.resources.get(key, val);\r\n resNested = (key: string) => this.context.resources.getNested(key);\r\n\r\n state: IState = {\r\n loading: false,\r\n data: [],\r\n showReqDocs: false\r\n };\r\n\r\n componentDidMount() {\r\n this.loadData();\r\n }\r\n\r\n render() {\r\n const cols: IColumn[] = [{\r\n title: this.res(\"DocumentTypeName\"),\r\n render: (item: IPendingVerificationCredential) => item.certificate\r\n }, {\r\n title: this.res(\"OrderNumber\"),\r\n render: (item: IPendingVerificationCredential) => item.orderNumber\r\n }, {\r\n title: this.res(\"Status\"),\r\n render: (item: IPendingVerificationCredential) => {\r\n const state = this.getAlertCount(item) < 2 ? \"InProgress\" : \"OnHold\";\r\n return this.res(\"VerificationState\" + state);\r\n }\r\n }, {\r\n title: this.res(\"Actions\"),\r\n render: (item: IPendingVerificationCredential) => this.loadData()} onReqDocsClick={() => this.setState({ showReqDocs: true })} />\r\n }, {\r\n title: this.res(\"Alerts\"),\r\n render: (item: IPendingVerificationCredential) => {\r\n const count = this.getAlertCount(item);\r\n return 0} count={count} />\r\n }\r\n }];\r\n\r\n const reqDocsClose: IButtonProps = {\r\n text: this.res(\"Close\"),\r\n enabled: true,\r\n visible: true,\r\n onClick: () => {\r\n this.setState({ showReqDocs: false });\r\n }\r\n };\r\n\r\n return (\r\n <>\r\n \r\n this.loadData()} />\r\n \r\n\r\n {\r\n if (this.getAlertCount(item) === 0)\r\n return (
    {this.res(\"NoAlerts\")}
    );\r\n\r\n let alerts = [];\r\n if (item.isMissingDegreeCertificate) {\r\n alerts.push({this.res(\"RequiredAction\")}: {this.res(\"UploadDegreeCertificate\")});\r\n }\r\n if (item.isMissingTranscript) {\r\n alerts.push({this.res(\"RequiredAction\")}: {this.res(\"SendTranscript\")});\r\n }\r\n return ({alerts});\r\n }}\r\n />\r\n\r\n \r\n
    \r\n
    \r\n {this.resNested(\"RequiredDocumentsContent:Intro\")}\r\n
    \r\n
      \r\n
    • {this.resNested(\"RequiredDocumentsContent:list1\")}
    • \r\n
    • {this.resNested(\"RequiredDocumentsContent:list2\")}
    • \r\n
    \r\n {this.resNested(\"RequiredDocumentsContent:conclusion\")}\r\n
    \r\n
    \r\n
    \r\n \r\n );\r\n\r\n }\r\n\r\n getAlertCount(item: IPendingVerificationCredential): number {\r\n let i = 0;\r\n if (item.isMissingDegreeCertificate) i++;\r\n if (item.isMissingTranscript) i++;\r\n return i;\r\n }\r\n\r\n async loadData() {\r\n try {\r\n this.setState({ loading: true });\r\n var data = await DataService.getMyPendingCredentials();\r\n this.setState({ data: data, loading: false });\r\n }\r\n catch (ex) {\r\n this.context.logging.error(ex);\r\n this.setState({ loading: false });\r\n }\r\n }\r\n\r\n}","import React from \"react\";\r\nimport DataService from \"../Services/DataService\";\r\nimport { IShareHistoryItem } from \"../Services/DataServiceModels\";\r\nimport { WesContext } from \"../Contexts/WesContext\";\r\nimport FormatService from \"../Services/FormatService\";\r\nimport DashboardTitle from \"../Components/DashboardTitle\";\r\nimport WesDataList, { IColumn } from \"../Components/WesDataList\";\r\n\r\ninterface IState {\r\n data: IShareHistoryItem[],\r\n loading: boolean\r\n}\r\n\r\nexport default class ShareHistoryList extends React.Component<{}, IState> {\r\n static contextType = WesContext;\r\n res = (key: string, ...val: any[]) => this.context.resources.get(key, val);\r\n\r\n state: IState = {\r\n loading: false,\r\n data: []\r\n }\r\n\r\n componentDidMount() {\r\n this.loadData();\r\n }\r\n\r\n render() {\r\n const cols: IColumn[] = [{\r\n title: this.res(\"ShareDate\"),\r\n render: (item: IShareHistoryItem) => FormatService.formatDate(item.date)\r\n }, {\r\n title: this.res(\"Recipient\"),\r\n render: (item: IShareHistoryItem) => item.recipient\r\n }, {\r\n title: this.res(\"CredentialName\"),\r\n render: (item: IShareHistoryItem) => item.credentialName\r\n }, {\r\n title: this.res(\"Document\"),\r\n render: (item: IShareHistoryItem) => item.documentName\r\n }, {\r\n title: this.res(\"Status\"),\r\n render: (item: IShareHistoryItem) => {\r\n const state = item.isViewed === true ? \"Viewed\" : \"Delivered\";\r\n return this.res(\"ShareState\" + state);\r\n }\r\n }];\r\n return (\r\n <>\r\n \r\n \r\n \r\n );\r\n }\r\n\r\n\r\n async loadData() {\r\n try {\r\n this.setState({ loading: true });\r\n const result = await DataService.getShareHistory();\r\n this.setState({ loading: false, data: result });\r\n }\r\n catch (ex) {\r\n this.context.logging.error(ex);\r\n this.setState({ loading: false });\r\n }\r\n }\r\n}","var _g, _defs;\n\nvar _excluded = [\"title\", \"titleId\"];\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport * as React from \"react\";\n\nfunction SvgProfileIcon(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 30,\n viewBox: \"0 0 24 30\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n clipPath: \"url(#clip0)\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12.0001 17.7273C14.0594 17.7273 16.0344 16.9371 17.4905 15.5306C18.9467 14.1241 19.7648 12.2164 19.7648 10.2273V7.5C19.7648 5.51088 18.9467 3.60322 17.4905 2.1967C16.0344 0.790176 14.0594 0 12.0001 0C9.94073 0 7.96575 0.790176 6.50958 2.1967C5.05342 3.60322 4.23535 5.51088 4.23535 7.5V10.2273C4.23535 12.2164 5.05342 14.1241 6.50958 15.5306C7.96575 16.9371 9.94073 17.7273 12.0001 17.7273Z\",\n fill: \"#013763\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.647 20.4546H6.35292C4.66802 20.4546 3.05212 21.1011 1.86072 22.2519C0.669308 23.4027 -1.75571e-05 24.9635 -1.75571e-05 26.591V29.3182C-0.00625679 29.4093 0.00772521 29.5007 0.0409923 29.5861C0.0742595 29.6716 0.126044 29.7492 0.192878 29.8137C0.259713 29.8783 0.340055 29.9283 0.428526 29.9604C0.516996 29.9926 0.611553 30.0061 0.705865 30H23.2941C23.3884 30.0061 23.483 29.9926 23.5714 29.9604C23.6599 29.9283 23.7402 29.8783 23.8071 29.8137C23.8739 29.7492 23.9257 29.6716 23.959 29.5861C23.9922 29.5007 24.0062 29.4093 24 29.3182V26.591C24 24.9635 23.3307 23.4027 22.1392 22.2519C20.9478 21.1011 19.3319 20.4546 17.647 20.4546Z\",\n fill: \"#013763\"\n }))), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clip0\"\n }, /*#__PURE__*/React.createElement(\"rect\", {\n width: 24,\n height: 30,\n fill: \"white\"\n })))));\n}\n\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgProfileIcon);\nexport default __webpack_public_path__ + \"static/media/profile-icon.ee0d434f.svg\";\nexport { ForwardRef as ReactComponent };","import React from \"react\";\r\nimport { Stack } from \"react-bootstrap\";\r\nimport Overlay from \"react-bootstrap/Overlay\";\r\nimport Popover from \"react-bootstrap/Popover\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { WesContext, WesContextType } from \"../Contexts/WesContext\";\r\nimport styles from \"./NavbarUserInfo.module.scss\";\r\nimport { ReactComponent as ProfileIcon } from \"../Assets/Images/profile-icon.svg\";\r\nimport Config from '../Assets/Config';\r\n\r\nexport interface IState {\r\n show: boolean;\r\n}\r\n\r\nexport default class NavbarUserInfo extends React.Component {\r\n static contextType = WesContext;\r\n res = (key: string, ...val: any[]) => this.context.resources.get(key, val);\r\n\r\n state: IState = { show: false };\r\n target = React.createRef();\r\n\r\n render() {\r\n const { user } = this.context;\r\n const name = `${user.firstName} ${user.lastName}`;\r\n return (\r\n <>\r\n {\r\n e.preventDefault();\r\n this.setState({ show: !this.state.show });\r\n }}>\r\n \r\n \r\n
    {this.res(\"Welcome\")}, {name}
    \r\n
    {this.res(\"WESGRS\")}# {user.id}
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n\r\n \r\n \r\n \r\n {name}\r\n {user.email}\r\n {this.res(\"WESGRS\")}# {user.id}\r\n
    \r\n {this.res(\"AccountSettings\")}
    \r\n this.setState({ show: false })}>{this.res(\"TransactionHistory\")}
    \r\n {\r\n e.preventDefault();\r\n this.context.signOut();\r\n window.location.href = this.context.timelineSignOutUrl;\r\n }}>{this.res(\"Logout\")}\r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n );\r\n }\r\n}","import React from \"react\";\r\nimport LoadingOverlay from \"react-loading-overlay\";\r\nimport { WesContext } from \"../Contexts/WesContext\";\r\nimport DataService from \"../Services/DataService\";\r\nimport { AuthResultType } from \"../Services/DataServiceModels\";\r\n\r\nexport interface IProps {\r\n location: any;\r\n history: any;\r\n}\r\n\r\ninterface IState {\r\n loading: boolean;\r\n}\r\n\r\nexport default class Auth extends React.Component {\r\n static contextType = WesContext;\r\n res = (key: string) => this.context.resources.get(key);\r\n state: IState = { loading: false };\r\n \r\n async componentDidMount() {\r\n try {\r\n this.context.signOut(); // kill any existing auth\r\n this.setState({ loading: true });\r\n const token = this.props.location.search.substring(1); // trim ?\r\n const result = await DataService.authenticate(token);\r\n this.setState({ loading: false });\r\n\r\n if (result.type === AuthResultType.Success)\r\n this.context.setAuth(result);\r\n\r\n if (result.hasSubscription)\r\n this.props.history.replace('/selectapp');\r\n else\r\n this.props.history.replace('/subscribe');\r\n\r\n }\r\n catch (ex) {\r\n this.context.logging.error(ex);\r\n }\r\n }\r\n\r\n render() {\r\n return (\r\n \r\n
    \r\n
    \r\n )\r\n }\r\n}\r\n","import React from \"react\";\r\nimport Config from \"../Assets/Config\";\r\nimport { WesContext } from \"../Contexts/WesContext\";\r\n\r\nexport default class NotAuthenticated extends React.Component {\r\n static contextType = WesContext\r\n\r\n getNoAuthUrl() {\r\n var origin = window.origin;\r\n\r\n if (origin.includes(\"grsdev\")) {\r\n return \"https://backupweb.wes.org/createaccount/login/sessionexpired\";\r\n }\r\n else if (origin.includes(\"localhost\")) {\r\n return \"http://localhost/createaccount/login/sessionexpired\";\r\n }\r\n else {\r\n // DEFAULT TO PROD\r\n return \"https://applications.wes.org/createaccount/login/sessionexpired\";\r\n }\r\n }\r\n\r\n render() {\r\n const contextUrl = this.context.timelineSignOutUrl\r\n const url = (!contextUrl || contextUrl.length === 0) ? this.getNoAuthUrl() : contextUrl;\r\n\r\n return (window.location.href = url);\r\n //return (
    {this.state.noAuthUrl}
    );\r\n }\r\n}","import React from 'react';\r\nimport LoadingOverlay from 'react-loading-overlay';\r\nimport FormHeader from '../Components/FormHeader';\r\nimport StepProgressBar from '../Components/StepProgressBar';\r\nimport WesModal, { IButtonProps } from '../Components/WesModal';\r\nimport { WesContext } from \"../Contexts/WesContext\";\r\nimport DataService from '../Services/DataService';\r\nimport { \r\n IDocument,\r\n IOrderProcessComplete, \r\n IShareRequest, \r\n OrderType \r\n} from '../Services/DataServiceModels';\r\nimport DocumentList from '../Share/Components/DocumentList';\r\nimport RecipientList from '../Share/Components/RecipientList';\r\nimport styles from './PaymentCallBack.module.scss';\r\nimport loading from '../Assets/Images/803.gif';\r\n\r\nexport interface IProps {\r\n location: any;\r\n history: any;\r\n}\r\n\r\nenum State {\r\n Loading,\r\n Error,\r\n Success,\r\n Declined\r\n}\r\n\r\ninterface IState {\r\n status: State;\r\n orderInfo: IOrderProcessComplete | null;\r\n}\r\n\r\nexport default class PaymentCallback extends React.Component {\r\n static contextType = WesContext;\r\n res = (key: string, ...val: any[]) => this.context.resources.get(key, val);\r\n state: IState = { \r\n status: State.Loading,\r\n orderInfo: null\r\n };\r\n \r\n async componentDidMount() {\r\n const values = this.props.location.search.substring(1); // trim ?\r\n const declined = values.indexOf('auth') === -1;\r\n if (declined) {\r\n this.setState({ status: State.Declined });\r\n }\r\n else {\r\n try {\r\n const result = await DataService.processOrder(values);\r\n this.context.hasSubscription = true;\r\n this.setState({ \r\n orderInfo: result,\r\n status: State.Success\r\n });\r\n }\r\n catch (e) {\r\n this.context.logging.error(e);\r\n this.setState({ status: State.Error });\r\n }\r\n }\r\n }\r\n\r\n render() {\r\n const nextBtn: IButtonProps = {\r\n text: this.res(\"ViewWesDashboard\"),\r\n visible: this.state.status !== State.Loading,\r\n enabled: true,\r\n onClick: () => this.props.history.replace(\"/\")\r\n };\r\n const comp = this.getComponent();\r\n return (\r\n \r\n {comp.body}\r\n \r\n );\r\n }\r\n\r\n getComponent() {\r\n switch (this.state.status) {\r\n case State.Loading: \r\n return {\r\n title: 'PROCESSING',\r\n body: (\"loading\")\r\n };\r\n\r\n case State.Declined:\r\n return {\r\n title: 'PAYMENT DECLINED',\r\n body: (<>Your payment was declined)\r\n };\r\n\r\n case State.Error:\r\n return {\r\n title: 'ERROR',\r\n body: (
    There was an error processing your order
    )\r\n };\r\n\r\n case State.Success:\r\n return {\r\n title: this.getTitle(),\r\n body: this.getOrderBody()\r\n };\r\n }\r\n }\r\n\r\n\r\n getFormHeader(): React.ReactNode {\r\n\r\n return (\r\n
    \r\n \r\n {this.res(\"YourWesGrsRefNumber\", this.context.user.id)}\r\n
    \r\n );\r\n }\r\n\r\n getTitle(): string {\r\n const oi = this.state.orderInfo!;\r\n switch (oi.type) {\r\n case OrderType.Subscription: return this.res(\"YoureIn\");\r\n case OrderType.CredentialVerification: return this.res(\"VerifyNewCredential\");\r\n case OrderType.ShareCredential: return this.res(\"ShareDocuments\");\r\n }\r\n }\r\n\r\n getOrderBody() : React.ReactNode {\r\n const oi = this.state.orderInfo!;\r\n switch (oi.type) {\r\n case OrderType.Subscription: return this.getFormHeader();\r\n case OrderType.ShareCredential: return this.getShareBody(oi);\r\n case OrderType.CredentialVerification: return this.getCredBody(oi);\r\n }\r\n }\r\n\r\n getShareBody(oi: IOrderProcessComplete) : React.ReactNode {\r\n const req = JSON.parse(oi.json); // warning: this serializes on the server as C# casing, not JS casing\r\n\r\n // create the documents list (casing does not match IDucments class from response)\r\n var docs = req.Documents.map((doc: { Id: any; Name: any; CredentialId: any; }) => {\r\n var m: IDocument = {id: doc.Id, name: doc.Name, credentialId: doc.CredentialId};\r\n return m;\r\n });\r\n\r\n return (\r\n
    \r\n \r\n {this.res(\"ViewInSharedHistory\")}\r\n\r\n \r\n \r\n {this.res(\"Recipients\")}\r\n
      \r\n {req.Recipients.map((r: any, index: number) => \r\n
    • {r.Name} - {r.Organization} - {r.Email}
    • \r\n )}\r\n
    \r\n
    \r\n );\r\n }\r\n\r\n getCredBody(oi: IOrderProcessComplete) : React.ReactNode {\r\n return (\r\n
    \r\n \r\n {this.getFormHeader()}\r\n
    \r\n

    Next Steps

    \r\n
      \r\n
    • Upload Documents (Degree Certificate)
    • \r\n
    • Contact Your University to Send Documents to WES
    • \r\n
    \r\n
    \r\n
    \r\n );\r\n }\r\n}","import React from \"react\";\r\n\r\nexport default class ExpiredPdf extends React.Component {\r\n render() {\r\n \r\n return (\r\n
    \r\n

    You are not authorized to view the share document

    \r\n
    \r\n );\r\n }\r\n}","export default __webpack_public_path__ + \"static/media/803.f2d80c11.gif\";","import React from 'react';\r\nimport { FormCheck } from 'react-bootstrap';\r\nimport WesButton from '../Components/WesButton';\r\nimport { WesContext } from '../Contexts/WesContext';\r\nimport DataService from '../Services/DataService';\r\nimport Config from '../Assets/Config';\r\nimport LoadingOverlay from 'react-loading-overlay';\r\nimport { Col, Row } from 'react-bootstrap';\r\n\r\nexport interface IProps {\r\n history: any;\r\n}\r\n\r\ninterface IState {\r\n dontShowAgain: boolean;\r\n loading: boolean;\r\n isHst: boolean;\r\n}\r\n\r\nexport default class AddSubscription extends React.Component {\r\n static contextType = WesContext;\r\n res = (key: string) => this.context.resources.get(key);\r\n resNested = (key: string) => this.context.resources.getNested(key);\r\n\r\n state: IState = {\r\n dontShowAgain: false,\r\n loading: false,\r\n isHst: false\r\n };\r\n\r\n render() {\r\n const icap: boolean = this.context.user.isICAP;\r\n //const icap = false;\r\n let cssStyle = {};\r\n let benefits: string[] = [];\r\n let priceHeader = null;\r\n\r\n let audienceType = this.context.user.audienceType;\r\n const isDraft = audienceType === 2;\r\n let learnMoreUrl = \"\";\r\n switch (audienceType) {\r\n case 0: {\r\n //ICAP\r\n // content for ICAP users\r\n cssStyle = { textDecoration: \"line-through\" };\r\n\r\n benefits = [\r\n this.resNested(\"NewSubscription:SubscriptionBenefit1\"),\r\n this.resNested(\"NewSubscription:SubscriptionBenefit2\")\r\n ];\r\n\r\n priceHeader =

    $125/ 2 years No cost to you!

    ;\r\n // TODO: MOVE THIS URL TO SOMEWHERE ELSE\r\n learnMoreUrl = \"https://www.wes.org/global-records-service-icap-beta/\";\r\n break;\r\n }\r\n case 1: {\r\n // NON ICAP\r\n benefits = [\r\n this.resNested(\"NewSubscription:SubscriptionBenefitNonIcap1\"),\r\n this.resNested(\"NewSubscription:SubscriptionBenefitNonIcap2\")\r\n ];\r\n\r\n /*cssStyle = { textDecoration: \"\" };*/\r\n cssStyle = { textDecoration: \"line-through\" };\r\n priceHeader =

    \r\n Limited time offer: \r\n
    \r\n $125/ 2 years \r\n $99/2 years for you!

    ;\r\n learnMoreUrl = \"https://www.wes.org/global-records-service-beta-basic/\";\r\n break;\r\n }\r\n case 2: {\r\n //DRAFT\r\n priceHeader =

    $125/ 2 years, includes adding your first credential for free.​

    ;\r\n benefits = [\r\n this.resNested(\"NewSubscription:DraftBenefit1\"),\r\n this.resNested(\"NewSubscription:DraftBenefit2\")\r\n ];\r\n learnMoreUrl = \"https://www.wes.org/global-records-service-beta/\";\r\n }\r\n }\r\n\r\n let benefitsList = benefits.map(b => { return
  • {b}
  • });\r\n // TODO: if ICAP, cross out payment and change URL\r\n return (\r\n \r\n \r\n \r\n
    \r\n

    \r\n {this.res(\"WesGlobalRecordsService\")}

    \r\n

    {this.res(\"GrsDescription\")}

    \r\n\r\n
    \r\n \r\n \r\n window.location.href = learnMoreUrl}\r\n />\r\n \r\n \r\n {\r\n this.setState({ loading: true });\r\n try {\r\n if (icap) {\r\n await DataService.createIcapSubscription();\r\n const auth = await DataService.refreshToken();\r\n this.context.setAuth(auth);\r\n this.props.history.replace(\"/\");\r\n }\r\n else {\r\n const gateway = await DataService.processSubscription({ isHst: this.state.isHst, isDraft: isDraft});\r\n window.location.href = gateway.forwardUrl;\r\n }\r\n }\r\n catch (e) {\r\n this.context.logging.error(e);\r\n }\r\n }}\r\n />\r\n \r\n \r\n
    \r\n

    \r\n {\r\n e.preventDefault();\r\n if (this.state.dontShowAgain === true) {\r\n await DataService.declineGrs();\r\n }\r\n window.location.href = this.context.timelineUrl;\r\n }}>\r\n {this.res(\"NoTakeMeToMyAccount\")}

    \r\n this.setState({ dontShowAgain: e.target.checked })}\r\n checked={this.state.dontShowAgain}\r\n />\r\n\r\n \r\n
    \r\n \r\n \r\n \r\n
    \r\n {/*

    {price} {contentHeader}

    */}\r\n {priceHeader}\r\n
      \r\n {benefitsList}\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n );\r\n }\r\n}","import React from \"react\";\r\nimport Config from \"./Assets/Config\";\r\nimport AuthProvider from \"./Services/AuthProvider\";\r\nimport { WesContext } from './Contexts/WesContext';\r\nimport WesModal from \"./Components/WesModal\";\r\nimport WesButton from \"./Components/WesButton\";\r\nimport DataService from \"./Services/DataService\";\r\nimport { Subscription } from \"rxjs/internal/Subscription\";\r\nimport { Col, Container, Row } from \"react-bootstrap\";\r\n\r\nenum State {\r\n Expiring,\r\n Expired,\r\n Good\r\n}\r\n\r\ninterface IState {\r\n status: State;\r\n}\r\n\r\nexport default class AutoSignOut extends React.Component {\r\n static contextType = WesContext;\r\n res = (key: string, ...val: any[]) => this.context.resources.get(key, val);\r\n state: IState = { status: State.Good };\r\n warnTimerId: number | null = null;\r\n signOutTimerId: number | null = null;\r\n sub: Subscription | null = null;\r\n\r\n componentDidMount() {\r\n const auth = AuthProvider.getAuth();\r\n if (auth !== null) \r\n this.startWarningTimer();\r\n\r\n this.sub = this.context.authChanged.subscribe((profile: any) => {\r\n if (profile === null) {\r\n this.stopTimers();\r\n }\r\n else {\r\n this.startWarningTimer();\r\n }\r\n });\r\n }\r\n\r\n componentWillUnmount() {\r\n this.sub?.unsubscribe();\r\n }\r\n\r\n render() {\r\n if (this.state.status === State.Good || this.state.status === State.Expired)\r\n return (<>);\r\n\r\n return (\r\n \r\n \r\n \r\n

    {this.res(\"YouWillBeSignedOut\")}

    \r\n
    \r\n \r\n \r\n {\r\n this.context.signOut();\r\n window.location.href = this.context.timelineSignOutUrl;\r\n }}\r\n />\r\n \r\n \r\n this.renewToken()}\r\n />\r\n \r\n \r\n
    \r\n \r\n )\r\n }\r\n\r\n startWarningTimer() : void {\r\n this.stopTimers();\r\n const oneMinMillis = 60000;\r\n const warnMillis = this.getMillisUntilExpires() - 60000;\r\n\r\n this.warnTimerId = window.setTimeout(() => {\r\n this.setState({ status: State.Expiring });\r\n\r\n this.signOutTimerId = window.setTimeout(() => {\r\n this.context.signOut();\r\n window.location.href = this.context.timelineSignOutUrl;\r\n }, oneMinMillis);\r\n }, warnMillis);\r\n }\r\n\r\n stopTimers() : void {\r\n if (this.warnTimerId !== null) {\r\n window.clearTimeout(this.warnTimerId);\r\n this.warnTimerId = null;\r\n }\r\n\r\n if (this.signOutTimerId !== null) {\r\n window.clearTimeout(this.signOutTimerId);\r\n this.signOutTimerId = null;\r\n }\r\n }\r\n\r\n async renewToken() : Promise {\r\n try {\r\n const auth = await DataService.refreshToken();\r\n this.context.setAuth(auth);\r\n this.setState({ status: State.Good });\r\n this.startWarningTimer();\r\n }\r\n catch (e) {\r\n this.context.logging.error(e);\r\n }\r\n }\r\n\r\n getMillisUntilExpires() : number {\r\n const auth = AuthProvider.getAuth();\r\n const expiryDate = new Date(auth!.expires);\r\n //let date = new Date();\r\n //date.setSeconds(date.getSeconds() + 120);\r\n //const expiryDate = date;\r\n const diffMs = expiryDate.getTime() - new Date().getTime();\r\n return diffMs;\r\n }\r\n}","import React from 'react';\r\nimport WesButton from '../Components/WesButton';\r\nimport { WesContext } from '../Contexts/WesContext';\r\nimport DataService from '../Services/DataService';\r\nimport Config from '../Assets/Config';\r\nimport LoadingOverlay from 'react-loading-overlay';\r\nimport { Col, Row } from 'react-bootstrap';\r\nimport styles from './ExistingSubscriber.module.scss';\r\n\r\n\r\nexport interface IProps {\r\n history: any;\r\n}\r\n\r\ninterface IState { \r\n loading: boolean;\r\n}\r\n\r\nexport default class ExistingSubscriber extends React.Component {\r\n static contextType = WesContext;\r\n res = (key: string) => this.context.resources.get(key);\r\n state: IState = { \r\n loading: false\r\n };\r\n \r\n render() { \r\n return (\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n

    {this.res(\"GoToMyAccount\")}

    \r\n

    {this.res(\"GoToMyAccountDescription\")}

    \r\n
    \r\n

    \r\n window.location.href = this.context.timelineUrl}\r\n />

    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n

    {this.res(\"GoToMyGlobalRecords\")}

    \r\n

    {this.res(\"GoToMyGlobalRecordsDescription\")}

    \r\n \r\n
    \r\n

    \r\n window.location.href = window.location.origin}\r\n />

    \r\n
    \r\n
    \r\n
    \r\n
    \r\n );\r\n }\r\n}\r\n","import React from \"react\";\r\nimport styles from \"./ShareDocViewer.module.scss\"\r\n//import { Document, Page, pdfjs } from 'react-pdf';\r\n//pdfjs.GlobalWorkerOptions.workerSrc = `//cdnjs.cloudflare.com/ajax/libs/pdf.js/${pdfjs.version}/pdf.worker.js`;\r\n\r\nexport interface IProps {\r\n location: any;\r\n history: any;\r\n}\r\n\r\nexport interface IState {\r\n success: boolean;\r\n fileLink: string;\r\n pages: number;\r\n}\r\n\r\nexport default class ShareDocViewer extends React.Component {\r\n state: IState = {\r\n success: false,\r\n fileLink: \"\",\r\n pages: 0\r\n };\r\n\r\n componentDidMount() {\r\n try {\r\n\r\n let accessKey = this.props.location.search.substring(1);\r\n // trim\r\n accessKey = accessKey.replace(\"key=\", \"\");\r\n var fileSource = window.location.origin + \"/reference/viewshare/\" + accessKey;\r\n\r\n this.setState({ fileLink: fileSource });\r\n //document.addEventListener('contextmenu', (e) => {\r\n // e.preventDefault();\r\n //});\r\n }\r\n catch (ex) {\r\n this.context.logging.error(ex);\r\n }\r\n }\r\n\r\n onDocLoadSuccess = ({ numPages }: any) => {\r\n console.log(numPages);\r\n this.setState({ pages: numPages });\r\n }\r\n\r\n render() {\r\n return (\r\n
    \r\n \r\n \r\n {/*
    */}\r\n\r\n {/**/}\r\n {/* {Array.from(new Array(this.state.pages), (el, index) => (*/}\r\n {/* */}\r\n {/* ))}*/}\r\n {/**/}\r\n\r\n
    );\r\n }\r\n\r\n}\r\n","import './App.scss';\r\nimport React from 'react';\r\nimport {\r\n BrowserRouter as Router,\r\n Switch,\r\n Route,\r\n NavLink\r\n} from \"react-router-dom\";\r\nimport Navbar from 'react-bootstrap/Navbar';\r\nimport Nav from 'react-bootstrap/Nav';\r\nimport Container from 'react-bootstrap/Container';\r\nimport TransactionHistoryList from './Orders/TransactionHistoryList';\r\nimport MyDocumentList from './Credentials/MyDocumentList';\r\nimport PendingVerificationList from './Credentials/PendingVerificationList';\r\nimport ShareHistoryList from './Share/ShareHistoryList';\r\nimport NavbarUserInfo from './Components/NavbarUserInfo';\r\nimport Auth from './Auth/Auth';\r\nimport NotAuthenticated from './Auth/NotAuthenticated';\r\nimport ExpiredPdf from './ExpiredPdf/ExpiredPdf';\r\nimport PaymentCallback from './Orders/PaymentCallback';\r\nimport AddSubscription from './Subscriptions/AddSubscription';\r\nimport ExistingSubscriber from './Subscriptions/ExistingSubscriber';\r\nimport { WesContext } from './Contexts/WesContext';\r\nimport { ReactComponent as Logo } from './Assets/Images/logo.svg';\r\nimport { Subscription } from 'rxjs';\r\nimport AuthSignOut from \"./AutoSignOut\";\r\nimport ShareDocViewer from './Share/ShareDocViewer';\r\n\r\n\r\nexport default class App extends React.Component {\r\n static contextType = WesContext;\r\n res = (key: string, ...val: any[]) => this.context.resources.get(key, val);\r\n sub: Subscription = this.context.authChanged.subscribe(\r\n () => this.forceUpdate()\r\n );\r\n\r\n componentWillUnmount() {\r\n this.sub.unsubscribe();\r\n }\r\n\r\n render() {\r\n this.context.init();\r\n return (\r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {this.showContent() && }\r\n \r\n \r\n \r\n \r\n
    \r\n {this.renderMenu()}\r\n
    \r\n {this.renderContent()}\r\n
    \r\n \r\n
    \r\n );\r\n }\r\n\r\n renderMenu(): React.ReactNode {\r\n if (this.showContent() !== true)\r\n return (<>);\r\n return (\r\n
    \r\n \r\n\r\n
    \r\n );\r\n }\r\n pagePath = window.location.pathname;\r\n\r\n showContent(): boolean {\r\n return (\r\n this.pagePath !== \"/selectapp\" &&\r\n this.pagePath !== \"/subscribe\" &&\r\n this.pagePath !== \"/auth\" &&\r\n this.pagePath !== \"/expiredpdf\" &&\r\n this.pagePath !== \"/share/view\"\r\n );\r\n }\r\n\r\n renderContent(): React.ReactNode {\r\n const { authenticated } = this.context;\r\n return (\r\n \r\n }\r\n />\r\n }\r\n />\r\n\r\n \r\n
    \r\n \r\n
    \r\n
    \r\n {authenticated === true && (\r\n }\r\n />\r\n )}\r\n {this.showContent() && (\r\n \r\n
    \r\n \r\n
    \r\n
    \r\n )}\r\n {this.showContent() && (\r\n \r\n
    \r\n \r\n
    \r\n
    \r\n )}\r\n {authenticated === true && (\r\n }\r\n />\r\n )}\r\n {authenticated === true && (\r\n }\r\n />\r\n )}\r\n\r\n this.getRoot()} />\r\n
    \r\n );\r\n }\r\n\r\n\r\n getRoot(): React.ReactNode {\r\n const { authenticated } = this.context;\r\n\r\n if (authenticated === false)\r\n return ();\r\n return (\r\n <>\r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n\r\n \r\n );\r\n }\r\n}","import ReactDOM from 'react-dom';\r\nimport 'bootstrap/dist/css/bootstrap.min.css';\r\nimport App from './App';\r\n\r\nReactDOM.render(\r\n ,\r\n document.getElementById('root')\r\n);\r\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"WesDataList_container__2uNK6\",\"header\":\"WesDataList_header__5sgJh\",\"noDataText\":\"WesDataList_noDataText__kaSaE\",\"collapse\":\"WesDataList_collapse__1ReBH\",\"expand\":\"WesDataList_expand__O8HGL\",\"expanderColumn\":\"WesDataList_expanderColumn__3YE2t\",\"expandSeperator\":\"WesDataList_expandSeperator__1bbyu\",\"rowStyle\":\"WesDataList_rowStyle__3OUCO\",\"dataItem\":\"WesDataList_dataItem__2DdUd\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"title\":\"WesModal_title__3l03g\",\"modalContent\":\"WesModal_modalContent__3W-e8\",\"modalBody\":\"WesModal_modalBody__3DtQ5\",\"disabled\":\"WesModal_disabled__21Ffa\",\"footer\":\"WesModal_footer__1R44U\",\"nextBtn\":\"WesModal_nextBtn__21zPP\",\"footerBtn\":\"WesModal_footerBtn__hbvC5\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"DashboardTitle_container__1T2c0\",\"dashBoardListHeader\":\"DashboardTitle_dashBoardListHeader__opaPB\",\"button\":\"DashboardTitle_button__JZN8A\",\"text\":\"DashboardTitle_text__1ufyX\",\"subtitle\":\"DashboardTitle_subtitle__3ueCv\",\"subtext\":\"DashboardTitle_subtext__IdgWp\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"StepProgressBar_container__196h1\",\"progressbar\":\"StepProgressBar_progressbar__36Qcw\",\"step2\":\"StepProgressBar_step2__3D15l\",\"step3\":\"StepProgressBar_step3__3iGdm\",\"active\":\"StepProgressBar_active__fV59C\",\"current\":\"StepProgressBar_current__2ifuv\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"contentDiv\":\"PaymentCallBack_contentDiv__1YbJI\",\"refNumberPad\":\"PaymentCallBack_refNumberPad__3VMKc\",\"NextSteps\":\"PaymentCallBack_NextSteps__AwhML\",\"loadingImg\":\"PaymentCallBack_loadingImg__UJ-Tc\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"ExistingSubscriber_container__2Dd7X\",\"descriptionContainer\":\"ExistingSubscriber_descriptionContainer__1jvyx\",\"contentContainer\":\"ExistingSubscriber_contentContainer__3jUXy\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"btnprimary\":\"WesButton_btnprimary__3Id75\",\"btnsecondary\":\"WesButton_btnsecondary__3THx9\",\"span\":\"WesButton_span__O0BQF\",\"btndisabled\":\"WesButton_btndisabled__25JVK\",\"btn\":\"WesButton_btn__24f55\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"ReviewCredential_container__1k-bc\",\"title\":\"ReviewCredential_title__3fAZG\",\"row\":\"ReviewCredential_row__lY7Z1\",\"label\":\"ReviewCredential_label__1nu_t\",\"value\":\"ReviewCredential_value__2IABN\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"header\":\"FormHeader_header__3p4bO\",\"title\":\"FormHeader_title__3_pUc\",\"subtitle\":\"FormHeader_subtitle__3_FnB\",\"subtext\":\"FormHeader_subtext__GrKiW\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"expanderRow\":\"MyDocumentList_expanderRow__1_tA8\",\"credentialContainer\":\"MyDocumentList_credentialContainer__2gqFq\",\"credentialCol\":\"MyDocumentList_credentialCol__dUXR0\",\"ckShareCol\":\"MyDocumentList_ckShareCol__1Lx8b\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"expanderRow\":\"PendingVerificationList_expanderRow__jug_k\",\"actions\":\"PendingVerificationList_actions__2EfEr\"};"],"sourceRoot":""}