{"version":3,"sources":["store/users/actionCreators.ts","helpers/url.ts","pages/orderInvoice.module.scss","pages/orderSingle.module.scss","store/modal/index.ts","store/marketplace/index.ts","pages/marketplaceHome.module.scss","pages/marketplaceTaskDetails.module.scss","components/marketplace/taskTile.module.scss","pages/orderSuccess.module.scss","api/marketplace.ts","components/newtask/taskCheckbox.module.scss","components/marketplace/onboardingIndustrySelectionStep.module.scss","components/orders/paymentSummary.module.scss","pages/onboarding.module.scss","pages/orderPaymentSingle.module.scss","components/marketplace/fullscreenFilter.module.scss","components/marketplace/nccTermsModal.module.scss","components/marketplace/onboardingTasksStep.module.scss","pages/orderPaymentMethod.module.scss","components/newtask/ccPaymentBlock.module.scss","components/core/input.module.scss","components/newtask/paymentBlock.module.scss","components/newtask/taskDescription.module.scss","components/toast.module.scss","components/marketplace/priceTile.module.scss","store/modal/actionCreators.ts","pages/apiDocs.module.scss","components/marketplace/filter.module.scss","components/newtask/paymentSelect.module.scss","components/spinner.module.scss","pages/settings.module.scss","pages/report.module.scss","components/orders/shareReportModal.tsx","components/tooltip.tsx","components/loading.tsx","components/nav.tsx","assets/logo-olasio-o.svg","components/navBar.tsx","components/navBarPublic.tsx","components/modals/modalRoot.tsx","store/orders/actionCreators.ts","helpers/format.ts","helpers/dates.ts","components/orders/shareReportModalMain.tsx","components/multiselect.tsx","components/orders/shareReportModalAdd.tsx","components/orders/shareReportModalEdit.tsx","components/custom/addressField.tsx","components/orders/actionResultModal.tsx","assets/back-arrow-sm.svg","assets/chevron-down.svg","helpers/array.ts","components/orders/orderRow.tsx","components/nolist.tsx","components/orders/orderList.tsx","components/infoTile.tsx","components/specialDropdown.tsx","store/organisation/actionCreators.ts","pages/orders.tsx","components/marketplace/taskTile.tsx","components/marketplace/filter.tsx","assets/check-sm.svg","components/marketplace/fullscreenFilter.tsx","components/toast.tsx","components/marketplace/removeTaskModal.tsx","components/core/input.tsx","assets/checkbox-unchecked.svg","assets/checkbox-checked.svg","components/checkbox.tsx","pages/onboarding.tsx","utils/googleMaps.ts","components/marketplace/nccTermsModal.tsx","pages/marketplaceHome.tsx","pages/marketplaceHomePublic.tsx","components/marketplace/priceTile.tsx","settings.ts","pages/marketplaceTaskDetails.tsx","helpers/hooks.ts","components/marketplace/onboardingTasksStep.tsx","components/marketplace/onboardingIndustrySelectionStep.tsx","pages/signup.tsx","pages/login.tsx","pages/forgotPassword.tsx","pages/notFound.tsx","components/slimCentre.tsx","components/users/userList.tsx","pages/manageTeam.tsx","pages/settings.tsx","components/newtask/taskCheckbox.tsx","pages/orderTask.tsx","components/summary.tsx","pages/orderConfirmation.tsx","components/newtask/paymentSelect.tsx","assets/chevron-left.svg","pages/orderPaymentMethod.tsx","components/spinner.tsx","components/newtask/paymentBlock.tsx","components/newtask/ccPaymentBlock.tsx","pages/orderPaymentSingle.tsx","components/radioButton.tsx","pages/orderPayment.tsx","assets/check-lg.svg","pages/orderSuccess.tsx","pages/orderBulk.tsx","components/newtask/taskDescription.tsx","helpers/regex.ts","pages/orderSingle.tsx","pages/report.tsx","pages/apiDocs.tsx","components/orders/paymentSummary.tsx","pages/orderInvoice.tsx","App.tsx","store/orders/index.ts","store/users/index.ts","store/organisation/index.ts","store/index.ts","index.tsx","store/configureStore.ts"],"names":["userActionCreators","requestLogin","emailAddress","password","dispatch","getState","type","fetch","method","body","JSON","stringify","email","headers","then","response","ok","json","text","indexOf","Error","user","redirectUrl","name","url","window","location","href","replace","results","RegExp","exec","decodeURIComponent","getUrlParamByName","onboard","push","catch","err","details","toString","requestPasswordReset","encodeURIComponent","alreadyLoggedIn","clearReset","requestUserList","userState","token","status","Promise","resolve","undefined","users","console","log","alert","requestRemoveUser","userId","requestSetUserRole","role","requestInviteUser","onDone","result","logout","returnHome","checkAuth","checkReportAuth","reportGuid","module","exports","defaultState","current","modalStateReducer","state","incomingAction","action","Object","assign","title","marketplaceSlice","createSlice","initialState","isLoading","error","tasks","taskDetails","taskSuggestions","addingTaskIds","removingTaskIds","addError","tags","tagName","reducers","getMarketplaceTasksStart","getMarketplaceTasksSuccess","payload","getMarketplaceTasksFailure","getMarketplaceTaskDetailsStart","getMarketplaceTaskDetailsSuccess","getMarketplaceTaskDetailsFailure","getMarketplaceTaskSuggestionsSuccess","addMarketplaceTaskStart","taskId","addMarketplaceTaskSuccess","filter","id","addedUtc","Date","toISOString","task","find","suggestedTask","addedTask","addMarketplaceTaskFailure","removeMarketplaceTaskStart","removeMarketplaceTaskSuccess","removedTask","removeMarketplaceTaskFailure","confirmMarketplaceAdd","confirmMarketplaceRemove","getMarketplaceTagsStart","getMarketplaceTagsSuccess","getMarketplaceTagsFailure","addTagStart","addTagSuccess","addTagFailure","actions","getMarketplaceTasks","a","MarketplaceApi","res","data","getMarketplaceTasksPublic","getMarketplaceTags","getMarketplaceTaskDetails","statusText","getMarketplaceTaskSuggestions","addMarketplaceTask","marketplaceState","reject","removeMarketplaceTask","addTag","confirmAdd","marketplaceApi","axios","create","baseURL","get","Authorization","post","delete","getMarketplaceTasksForOnboarding","params","modalActionCreators","showModal","content","hideModal","Steps","Tooltip","props","escape","bind","clickOff","setupEventListeners","removeEventListencers","align","this","className","active","top","light","children","setTimeout","addEventListener","removeEventListener","e","key","keyCode","closeCallback","React","Loading","viewBox","cx","cy","r","Nav","useSelector","exact","to","activeClassName","apiKey","PublicNav","NavBar","tooltipRef","dropdown","toggleDropdown","showInviteModal","closeDropdown","openDropdown","special","src","logo","alt","userStore","width","ref","onClick","target","userActions","style","marginRight","el","setState","modalActions","cancel","confirm","done","InviteModal","setName","setEmail","emailValid","setEmailValid","loading","setLoading","complete","setComplete","placeholder","onChange","value","checkValidity","disabled","connect","modalStore","modalState","bindActionCreators","ModalRoot","close","store","onOverlayClick","stopPropagation","onkeydown","document","getElementById","orderActionCreators","requestOrders","pageOffset","pageSize","search","sortBy","sortCol","sortDir","orders","archiveOrder","orderId","cancelOrder","nudgeOrder","detail","loadArchive","requestNewOrder","order","message","requestNewSingleOrder","orderCreate","saveAndProgressOrder","saveAndProgressSingleOrder","savePaymentMethodsAndProgress","paymentSelections","orderState","inProgressOrder","taskItems","map","item","i","paymentMethod","parseInt","saveTaskListAndProgress","multiple","reason","recipients","notifyMe","clearInProgressOrder","startNewOrder","backToOrderStepOne","shareOrder","notifyUser","onError","editContact","phone","reIssueTask","requestInvoice","invoiceId","orderInvoice","getPaymentDescription","payBy","cardNumberWithSpace","cardNumber","length","substring","creditCardStatus","braintreeTransactionStatus","convertDate","str","startsWith","num","parse","convertStringToDate","getNiceDateString","date","year","getFullYear","month","getMonthName","getMonth","day","getDate","ShareReportModalMain","useState","reports","selectedReports","setDropdown","sharesByEmail","count","shares","forEach","s","some","match","pending","sort","b","getSharesByEmail","onAddClick","onUnshareClick","Multiselect","items","selected","includes","nowSelected","v","toggleSelect","label","ShareReportModalAdd","setPassword","showPassword","setShowPassword","x","setSelectedReports","sending","setSending","useDispatch","autoComplete","onBack","taskIds","guid","t","ShareReportModalEdit","reportsToUnshare","setReportsToUnshare","unsharing","setUnsharing","unshareReports","shareIds","shareId","ShareReportModal","Main","step","setStep","setShares","editEmail","doneMessage","setDoneMessage","reportUrl","isExpired","useEffect","Add","Done","Edit","sharedReports","report","ActionResultModal","onConfirm","unique","index","self","ArchiveModal","orderActions","offset","CancelModal","NotifyModal","owner","recipient","setDone","setError","EditContactModal","editing","setEditing","setPhone","ReIssueTaskModal","setReIssue","setReason","rows","setActive","dateRequested","createdUtc","reportCount","doneCount","readyCount","organisation","orgState","organisationFilter","keyValueSettings","toLocaleLowerCase","organisationUrl","showMore","setShowMore","taskTags","summedProgress","taskSurveyItems","tsi","completed","reduce","total","val","statusClass","toLowerCase","showNotifyModal","showCancelModal","showEditModal","showReIssueTaskModal","showArchiveModal","showShareModal","openReport","split","open","externalReference","referenceId","createdByName","chevronDown","expiryDate","reportExpiryUtc","fullDescription","outcome","backArrow","progress","Math","round","reportStatus","submissionGuid","toUpperCase","NoList","imgLink","description","link","linkText","linkColor","OrderList","totalCount","o","taskSettings","InfoTile","helpActive","setHelp","onclick","counter","caption","help","helpTitle","icon","SpecialDropdown","options","setSelected","def","focus","noborder","tabIndex","onBlur","onMouseDown","organisationActionCreators","requestOrganisation","alreadyLoading","loadingOrganisation","OrdersPage","handlePageClick","ceil","filterRef","PageSize","OnboardModal","activeFilterDescription","clearActiveFilter","showRecent","showExpiring","showInactive","viewArchive","keyPressed","pageCount","getPageCount","orgStore","recentCount","inactiveCount","expiringCount","clearSearch","onKeyPress","confirmedCount","completedCount","taggedCount","archivedCount","setFilter","marginLeft","innerWidth","setSort","previousLabel","nextLabel","breakLabel","breakClassName","marginPagesDisplayed","pageRangeDisplayed","onPageChange","containerClassName","forcePage","event","orgActions","inProgressCount","TaskTile","fixedSize","hideActions","showBorder","anon","onAdd","onRemove","bannerImageUrl","priceToAdd","pricePerUse","comingSoon","history","useHistory","cn","tile","fixed","short","border","imgContainer","tileBody","tileContentContainer","tileContent","price","toFixed","tax","getPriceBeforeGST","loadingContainer","addRemove","enquiry","Filter","styles","FullscreenFilter","onClose","filters","resultCount","container","header","Fragment","list","option","checkIcon","footer","Toast","onDismiss","timeoutIdRef","useRef","showProgress","setShowProgress","clearTimeout","toast","hide","RemoveTaskModal","Input","forwardRef","errorDesc","attr","CustomInput","Checkbox","defaultValue","toggle","full","checkboxChecked","checkboxUnchecked","preventDefault","newValue","componentRestrictions","country","types","fields","addressComponentsFormat","street_number","route","locality","administrative_area_level_1","postal_code","Step","AddressField","createRef","initAutocomplete","input","autocomplete","google","maps","places","Autocomplete","addListener","getPlace","address_components","geometry","address","comp","componentType","requiredFormat","lat","lng","formattedAddress","onChangeAddress","number","street","suburb","postcode","latitude","longitude","NoStreetNumber","SelectionRequired","handleChange","Empty","script","createElement","appendChild","onload","querySelector","remove","Component","NccTermsModal","businessName","setBusinessName","businessAddress","setBusinessAddress","setGoogleBusinnessAddress","businessAddressError","setBusinessAddressError","abn","setAbn","fullName","setFullName","position","setPosition","policyUrl","setPolicyUrl","policyUrlError","setPolicyUrlError","setWidth","valid","setValid","signatureDataUrl","setSignatureDataUrl","termsUrl","setTermsUrl","termsName","setTermsName","nccAccepted","setNccAccepted","olasioAccepted","setOlasioAccepted","sigCanvasRef","fileRef","containerRef","handleResize","termsFile","shortValidate","clientWidth","addr","policyUrlToBeSet","regex","test","validateAndSetPolicyUrl","valueOf","resizePara","signatureContainer","clearButton","clear","penColor","canvasProps","height","clearOnResize","onEnd","isEmpty","toDataURL","files","validate","FormData","append","MarketplaceHome","AllTagsFilter","tagFilter","setTagFilter","AllStatusFilter","statusFilter","setStatusFilter","showMobileFilter","setShowMobileFilter","visibleTasks","setVisibleTasks","featuredTasks","setFeaturedTasks","main","featured","featuredTaskNames","getTagsFromTasks","notification","setNotification","handleAddTask","externalTermsType","handleRemoveTask","added","removed","banner","filterBtn","taskContainer","flatMap","Array","from","Set","MarketplaceHomePublic","PriceTile","borderless","add","_braintreePaymentGatewayAuthorization","MarketplaceTaskDetailsPage","Number","isInteger","suggestedTasks","slice","handleAdd","handleRemove","prevTask","usePrevious","sampleReportUrl","sampleReportGuid","defaultReportName","page","nav","sampleBtn","rel","features","feature","iconUrl","featureGroup","groupName","featureText","aside","removeTile","toLocaleDateString","sampleBlock","sampleReport","sampleReportButton","suggestions","stickyFooter","OnboardingTaskStep","selectedTaskIds","selectedTags","onSelect","setTasks","getTasks","headingBlock","heading","OnboardingIndustrySelectionStep","selection","setSelection","Other","tagRef","headingblock","tag","other","othertitle","Onboarding","Industry","setSelectedTaskIds","setSelectedTags","selectedTagsText","setselectedTagsText","handleAddTasks","addTasksPromise","all","values","handleTaskSelect","handleTagSelect","tagText","skipBtnMobile","Tasks","renderStep","footerContent","skipBtn","prevBtn","nextBtn","SignUpPage","submit","onSubmit","LoginPage","loggingIn","loginResult","color","marginTop","username","ForgotPasswordPage","passwordResetResult","sentToEmail","padding","resettingPassword","NotFoundPage","SlimCentre","backUrl","backText","UserList","u","viewingUser","onRemoveUser","onSetRole","onSetUserRole","UserRow","showOptions","toggleOptions","ManageTeamPage","removeUser","userList","availableSettings","settings","setSettings","updateSetting","updatedSettings","setting","divider","TaskCheckbox","checked","tooltip","isNew","disabledText","showTooltip","setShowTooltip","checkbox","aria-checked","info","onMouseEnter","onMouseLeave","tooltipBody","dangerouslySetInnerHTML","__html","new","newMobile","OrderTaskPage","orderStore","asset","rego","initialLoading","assetIdValid","assetDescValid","errors","showVehicle","nextSingleClick","assetChange","margin","localeCompare","now","marginBottom","ti","htmlDescription","textAlign","checkedState","temp","cs","desc","progressForm","nextProps","prevState","ts","surveyId","descriptionText","taskDescriptionFields","Summary","borderOff","groups","g","final","SummaryItem","OrderConfirmationPage","orderAgain","gotoDashboard","org","PaymentSelect","iconSrc","invoiceOptions","labelSection","OrderPaymentMethod","loadingOrg","orderError","setPaymentSelections","optionsContainer","opt","limitedToSurveyId","newSelections","next","back","goBack","chevronLeft","Spinner","spinner","small","PaymentBlock","hidePrice","acc","curr","itemRow","priceRow","months","keys","thisYear","years","CcPaymentBlock","ccNumber","cvc","onCcNumberChange","onMonthChange","onYearChange","onCvcChange","onNameChange","ccType","getCCType","icons","inactive","form","ev","newVal","sections","arr","splice","join","trim","substr","triple","n","maxLength","OrderPaymentSingle","setCcNumber","setMonth","setYear","setCvc","termsAccepted","setTermsAccepted","ccPaymentTasks","invoiceToMeOption","invoiceToMeTasks","thirdPartyInvoiceTasks","invoiceEntities","invoiceOption","entity","invoiceEntity","getNonce","paymentDetails","createClient","require","authorization","clientInstance","creditCard","cvv","ccv","expirationDate","expiryMonth","expiryYear","request","endpoint","requestErr","nonce","creditCards","getDeviceData","dataCollector","client","dataCollectorInstance","deviceData","processPayment","notifyOnComplete","taskItem","taskSettingsId","invoiceOptionId","descriptions","paymentDescription","braintreeDetails","termsSection","handleCC","RadioButton","OrderPaymentPage","paymentType","setPaymentType","paymentProcessed","setCCType","setCCNumber","setCVC","setInvoiceOption","hidePricing","fontSize","inputMode","onInput","display","submittingOrder","creditCardPayment","cVV","ccExpiryMonth","ccExpiryYear","ccName","invoicePayment","invoiceTo","background","minHeight","OrderSuccess","createdOrder","createdOrders","block","section","left","right","invoice","moreInfo","OrderBulkPage","reasonRef","reasonError","notifyOnTaskComplete","nextClick","prevClick","downloadAnchor","taskSettingsIds","blob","objectURL","URL","createObjectURL","download","click","revokeObjectURL","reload","accept","csv","csvData","finally","FieldPrefix","TaskDescription","taskName","useFormContext","formState","register","renderField","required","errorLabel","ordinal","field","EmailRegex","OrderSinglePage","useForm","handleSubmit","setValue","methods","staticData","dynamicData","entries","shouldValidate","pattern","last","taskDescriptions","reasonHeading","checkboxSection","errorMessage","renderErrorMessage","ReportPage","redirectToReport","ApiDocs","lang","setLang","csharpString","codeString","setCode","explanation","example","chooseLang","language","ghcolors","showLineNumbers","wrapLongLines","PaymentSummary","paymentDate","OrderInvoice","taskCount","topbar","printpdf","print","infoBlock","braintreeTransaction","paymentSummary","headline","paymentStatus","creditCardTransaction","orderSummary","footerLogo","statement","slogan","App","path","component","NavBarPublic","SettingsPage","NotFound","loadingPayment","localStorage","getItem","setItem","removeItem","ModalState","MarketplaceReducer","createBrowserHistory","basename","windowIfDefined","devToolsExtension","__REDUX_DEVTOOLS_EXTENSION__","composedEnhancers","compose","applyMiddleware","thunk","routerMiddleware","allReducers","combineReducers","router","connectRouter","buildRootReducer","createStore","configureStore","default","ReactDOM","render"],"mappings":"gLAQaA,EAAqB,CAC9BC,aAAc,SAACC,EAAsBC,GAAvB,OAAyE,SAACC,EAAUC,GAC9FD,EAAS,CAAEE,KAAM,iBAGjBC,MADS,yBACE,CACPC,OAAQ,OACRC,KAAMC,KAAKC,UAAU,CACjBC,MAAOV,EACPC,SAAUA,IAEdU,QAAS,CACL,eAAgB,sBAGvBC,MAAK,SAAAC,GACF,OAAIA,EAASC,GACFD,EAASE,OAETF,EAASG,OAAOJ,MAAK,SAAAI,GACxB,MAAmC,IAA/BA,EAAKC,QAAQ,aACP,IAAIC,MAAM,iDAEV,IAAIA,MAAM,8CAG/BN,MAAK,SAACO,GACHjB,EAAS,CACLE,KAAM,eACNe,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gBACD7uB,EAAO0uB,oBAAsB,CACzB1uB,QAAQ,EACRsM,QAAS,IAEbtM,EAAO6uB,mBAAoB,EAC3B,MACJ,IAAK,cACD7uB,EAAO0uB,yBAAsBrvB,EAC7BW,EAAO6uB,mBAAoB,EAInC,OAAO7uB,GE1EP2K,WAAYk3B,IACZnsB,SDHgE,SAAC/U,EAAOC,GACxE,IAAMC,EAASD,EACXZ,EAASc,OAAOC,OAAO,GAAIJ,GAASH,GAExC,OAAQK,EAAOpE,MACX,IAAK,uBACDuD,EAAOka,qBAAsB,EAC7Bla,EAAOyV,aAAe5U,EAAO4U,aAC7B,MACJ,IAAK,uBAEIzV,EAAOka,sBACRla,EAAOka,qBAAsB,EAC7Bla,EAAOyV,kBAAepW,GAKlC,OAAOW,GCdP4E,iBAAkBk9B,KChBtB,IACMvkB,EAAUwkB,YAAqB,CAAEC,SADvB,MAEVj3B,ECDS,SAAwBwS,EAAkBpc,GAErD,IAAM8gC,EAAoC,qBAAXrkC,OAAyB,KAAOA,OAEzDskC,EAAoBD,GAAmBA,EAAgBE,6BACvDC,EAAoBC,YACtBC,YAAgBC,IAAOC,YAAiBjlB,IACxC2kB,EAAoBA,IAAsB,SAAIzN,GAAJ,OAA2CA,IAInFgO,EAMV,SAA0BA,EAAgCllB,GACtD,OAAOmlB,YACH5hC,OAAOC,OAAO,CACV4hC,OAAQC,YAAcrlB,IACvBklB,IAVaI,CAAiB/gC,EAAUyb,GAG/C,OAFculB,YAAYL,EAAathC,EAAcihC,GDX3CW,CAAexlB,EAAS,KAEvB,WACX,IAAM2jB,EAAM9I,EAAQ,KAAS4K,QAE7BC,IAASC,OACL,cAAChC,EAAD,CAAK3jB,QAASA,EAASxS,MAAOA,IAC9BI,SAASC,eAAe,SAIhC83B,K","file":"static/js/main.ee93ab76.chunk.js","sourcesContent":["import { AppThunkAction } from \"..\";\nimport { push, CallHistoryMethodAction } from \"connected-react-router\";\nimport { UserStateKnownAction } from \".\";\nimport { User } from '../../models/user';\nimport { getUrlParamByName } from '../../helpers/url';\n\ntype KnownAction = UserStateKnownAction | CallHistoryMethodAction;\n\nexport const userActionCreators = {\n requestLogin: (emailAddress: string, password: string): AppThunkAction => (dispatch, getState) => {\n dispatch({ type: 'REQUEST_USER' });\n\n const url = `/v1/users/authenticate`;\n fetch(url, {\n method: 'post',\n body: JSON.stringify({\n email: emailAddress,\n password: password\n }),\n headers: {\n 'Content-type': 'application/json'\n }\n })\n .then(response => {\n if (response.ok)\n return response.json() as Promise;\n else\n return response.text().then(text => {\n if (text.indexOf('Forbidden') === -1)\n throw new Error('Oops. Something went wrong. Please try again.');\n else\n throw new Error('Incorrect email address or password.');\n });\n })\n .then((user: User) => {\n dispatch({\n type: 'RECEIVE_USER',\n user: user\n });\n\n const redirectUrl = getUrlParamByName('redirect');\n\n if (user.onboard) {\n dispatch(push('/onboarding'));\n } else if (redirectUrl) {\n dispatch(push(redirectUrl));\n } else {\n dispatch(push('/tasks'));\n }\n })\n .catch((err: Error) => {\n dispatch({\n type: 'FAILED_LOGIN',\n details: err.toString()\n });\n });\n },\n\n requestPasswordReset: (emailAddress: string): AppThunkAction => (dispatch, getState) => {\n dispatch({ type: 'REQUEST_RESET' });\n\n const url = `/v1/users/resetpassword?email=${encodeURIComponent(emailAddress)}`;\n fetch(url, {\n method: 'post',\n headers: {\n 'Content-type': 'application/json'\n }\n })\n .then(response => {\n if (response.ok) {\n dispatch({\n type: 'RESET_SUCCESS'\n })\n }\n else {\n return response.text().then(text => {\n if (text.indexOf('Forbidden') === -1)\n dispatch({\n type: 'FAILED_RESET',\n details: 'Oops. Something went wrong. Check your email address and try again.'\n });\n else\n dispatch({\n type: 'FAILED_RESET',\n details: 'Incorrect email address or password.'\n });\n });\n }\n })\n .catch((err: Error) => {\n dispatch({\n type: 'FAILED_RESET',\n details: 'Oops. Something went wrong. Check your email address and try again.'\n });\n });\n },\n\n alreadyLoggedIn: (): AppThunkAction => (dispatch, getState) => {\n dispatch(push('/tasks'));\n },\n\n clearReset: (): AppThunkAction => (dispatch, getState) => {\n dispatch({\n type: 'CLEAR_RESET'\n });\n },\n\n requestUserList: (): AppThunkAction => (dispatch, getState) => {\n const user = getState().userState.user;\n\n if (user && user.token) {\n const url = `/v1/users/userlist`;\n fetch(url, {\n headers: {\n 'authorization': `bearer ${user.token}`\n }\n })\n .then(response => {\n if (response.ok) {\n return response.json() as Promise;\n }\n else if (response.status === 401 || response.status === 403) {\n dispatch({\n type: 'LOG_OUT'\n });\n dispatch(push('/login'));\n return Promise.resolve(undefined);\n }\n else\n return response.text().then(text => { throw text });\n })\n .then(users => {\n if (users) {\n dispatch({\n type: 'RECEIVE_USERLIST',\n users: users\n });\n }\n })\n .catch(err => {\n console.log(err);\n alert(err);\n });\n }\n else {\n dispatch(push('/login'));\n }\n },\n\n requestRemoveUser: (userId: string): AppThunkAction => (dispatch, getState) => {\n const user = getState().userState.user;\n\n dispatch({\n type: 'REQUEST_REMOVE_USER'\n });\n\n if (user && user.token) {\n const url = `/v1/users/${userId}/remove`;\n fetch(url, {\n method: 'delete',\n headers: {\n 'authorization': `bearer ${user.token}`\n }\n })\n .then(response => {\n if (response.ok) {\n return response.json() as Promise;\n }\n else if (response.status === 401 || response.status === 403) {\n dispatch({\n type: 'LOG_OUT'\n });\n dispatch(push('/login'));\n return Promise.resolve(undefined);\n }\n else\n return response.text().then(text => { throw text });\n })\n .then(users => {\n if (users) {\n dispatch({\n type: 'RECEIVE_USERLIST',\n users: users\n });\n }\n })\n .catch(err => {\n console.log(err);\n alert(err);\n });\n }\n else {\n dispatch(push('/login'));\n }\n },\n\n requestSetUserRole: (userId: string, role: string): AppThunkAction => (dispatch, getState) => {\n const user = getState().userState.user;\n\n dispatch({\n type: 'REQUEST_REMOVE_USER'\n });\n\n if (user && user.token) {\n const url = `/v1/users/${userId}/userrole?role=${role}`;\n\n fetch(url, {\n method: 'put',\n headers: {\n 'authorization': `bearer ${user.token}`\n }\n })\n .then(response => {\n if (response.ok) {\n return response.json() as Promise;\n }\n else if (response.status === 401 || response.status === 403) {\n dispatch({\n type: 'LOG_OUT'\n });\n dispatch(push('/login'));\n return Promise.resolve(undefined);\n }\n else\n return response.text().then(text => { throw text });\n })\n .then(users => {\n if (users) {\n dispatch({\n type: 'RECEIVE_USERLIST',\n users: users\n });\n }\n })\n .catch(err => {\n console.log(err);\n alert(err);\n });\n }\n else {\n dispatch(push('/login'));\n }\n },\n\n requestInviteUser: (name: string, email: string, onDone: (result: boolean) => void): AppThunkAction => (dispatch, getState) => {\n const user = getState().userState.user;\n\n if (user && user.token) {\n const url = `/v1/users/inviteuser`;\n fetch(url, {\n method: 'post',\n headers: {\n 'Content-type': 'application/json',\n 'authorization': `bearer ${user.token}`\n },\n body: JSON.stringify({\n name: name,\n email: email\n })\n })\n .then(response => {\n if (response.ok) {\n return response.json();\n }\n else if (response.status === 401 || response.status === 403) {\n dispatch({\n type: 'LOG_OUT'\n });\n dispatch(push('/login'));\n return Promise.resolve(undefined);\n }\n else\n return response.text().then(text => { throw text });\n })\n .then(result => {\n onDone(true);\n })\n .catch(err => {\n console.log(err);\n alert(err);\n onDone(false);\n });\n }\n else {\n dispatch(push('/login'));\n }\n },\n\n logout: (redirectUrl?: string): AppThunkAction => (dispatch, getState) => {\n dispatch({\n type: 'LOG_OUT'\n });\n if (redirectUrl) {\n dispatch(push(`/login?redirect=${encodeURIComponent(redirectUrl)}`));\n } else {\n dispatch(push('/login'));\n }\n },\n\n returnHome: (): AppThunkAction => (dispatch, getState) => {\n dispatch(push('/tasks'));\n },\n\n checkAuth: (): AppThunkAction => (dispatch, getState) => {\n const user = getState().userState.user;\n\n if (user && user.token) {\n const url = `/v1/users/checkauth`;\n fetch(url, {\n headers: {\n 'authorization': `bearer ${user.token}`\n }\n })\n .then(response => {\n if (response.ok) {\n return response.json() as Promise;\n }\n else if (response.status === 401 || response.status === 403) {\n dispatch({\n type: 'LOG_OUT'\n });\n dispatch(push('/login'));\n return Promise.resolve(undefined);\n }\n else\n return response.text().then(text => { throw text });\n })\n .catch(err => {\n console.log(err);\n alert(err);\n });\n }\n else {\n dispatch(push('/login'));\n }\n },\n\n checkReportAuth: (reportGuid: string): AppThunkAction => (dispatch, getState) => {\n const user = getState().userState.user;\n\n if (user && user.token) {\n const url = `/v1/users/checkreportauth?reportGuid=${reportGuid}`;\n fetch(url, {\n headers: {\n 'authorization': `bearer ${user.token}`\n }\n })\n .then(response => {\n if (response.ok) {\n return response.json() as Promise;\n }\n else if (response.status === 401 || response.status === 403) {\n dispatch({\n type: 'LOG_OUT'\n });\n dispatch(push(`/login?redirecturl=report/${reportGuid}`));\n return Promise.resolve(undefined);\n }\n else\n return response.text().then(text => { throw text });\n })\n .catch(err => {\n console.log(err);\n alert(err);\n });\n }\n else {\n dispatch(push('/login'));\n }\n }\n}\n","// https://stackoverflow.com/a/901144\n// TODO: should use URLSearchParams with fallback/polyfill\nexport const getUrlParamByName = (name: string, url: string = window.location.href) => {\n name = name.replace(/[\\[\\]]/g, '\\\\$&');\n var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),\n results = regex.exec(url);\n if (!results) return null;\n if (!results[2]) return '';\n return decodeURIComponent(results[2].replace(/\\+/g, ' '));\n};\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"page\":\"orderInvoice_page__1XRAv\",\"topbar\":\"orderInvoice_topbar__w8qpB\",\"title\":\"orderInvoice_title__3kt7s\",\"printpdf\":\"orderInvoice_printpdf__2QADE\",\"content\":\"orderInvoice_content__HOPan\",\"logo\":\"orderInvoice_logo__1VLk6\",\"header\":\"orderInvoice_header__2Z808\",\"ref\":\"orderInvoice_ref__2-pJj\",\"block\":\"orderInvoice_block__1XdoP\",\"section\":\"orderInvoice_section__1m1tf\",\"left\":\"orderInvoice_left__2-uJA\",\"right\":\"orderInvoice_right__3Mx8b\",\"infoBlock\":\"orderInvoice_infoBlock__1NKDo\",\"label\":\"orderInvoice_label__2oWse\",\"moreInfo\":\"orderInvoice_moreInfo__2G1o3\",\"nav\":\"orderInvoice_nav__2LXME\",\"next\":\"orderInvoice_next__c4d2g\",\"back\":\"orderInvoice_back__1Isol\",\"headline\":\"orderInvoice_headline__23Aoe\",\"paymentStatus\":\"orderInvoice_paymentStatus__ITYFR\",\"taskCount\":\"orderInvoice_taskCount__2_7Hi\",\"border\":\"orderInvoice_border__N3XzJ\",\"footer\":\"orderInvoice_footer__tysSf\",\"org\":\"orderInvoice_org__1p59W\",\"name\":\"orderInvoice_name__3bYgb\",\"abn\":\"orderInvoice_abn__YDS6p\",\"address\":\"orderInvoice_address__1ly2q\",\"statement\":\"orderInvoice_statement__3_USg\",\"slogan\":\"orderInvoice_slogan__3iBPi\",\"footerLogo\":\"orderInvoice_footerLogo__38akb\",\"paymentSummary\":\"orderInvoice_paymentSummary__1sk0G\",\"orderSummary\":\"orderInvoice_orderSummary__PYvDq\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"page\":\"orderSingle_page__3Nivy\",\"content\":\"orderSingle_content__1kxEb\",\"section\":\"orderSingle_section__1OOqi\",\"errorLabel\":\"orderSingle_errorLabel__2UlW4\",\"error\":\"orderSingle_error__1if6V\",\"last\":\"orderSingle_last__VO60t\",\"split\":\"orderSingle_split__3QOio\",\"taskDescriptions\":\"orderSingle_taskDescriptions__WhP-g\",\"reasonHeading\":\"orderSingle_reasonHeading__3Jan-\",\"reason\":\"orderSingle_reason__2-jf_\",\"checkboxSection\":\"orderSingle_checkboxSection__1O2WN\",\"errorMessage\":\"orderSingle_errorMessage__2CPHZ\",\"nav\":\"orderSingle_nav__Qk4Zz\",\"next\":\"orderSingle_next__h_UEO\",\"back\":\"orderSingle_back__JeFql\"};","import * as React from 'react';\nimport { ShowModal, HideModal } from './actions';\nimport { Reducer } from 'redux';\n\n\nexport interface ModalState {\n current: null | {\n body: React.ReactElement,\n title?: string\n }\n}\n\nexport type ModalStateKnownAction =\n ShowModal |\n HideModal;\n\nconst defaultState: ModalState = {\n current: null\n}\n\nexport const modalStateReducer: Reducer = (state, incomingAction) => {\n const action = incomingAction as ModalStateKnownAction;\n let result = Object.assign({}, state || defaultState);\n\n switch (action.type) {\n case 'HIDE_MODAL':\n result.current = null;\n break;\n case 'SHOW_MODAL':\n result.current = {\n body: action.body,\n title: action.title\n };\n break;\n }\n\n return result;\n}\n\nexport * from './actionCreators';","import { createSlice, PayloadAction } from '@reduxjs/toolkit';\nimport * as MarketplaceApi from '../../api/marketplace';\nimport { userActionCreators } from '../users/actionCreators';\nimport { MarketplaceTask, MarketplaceTaskDetails } from '../../models/marketplaceTask';\nimport { AppThunk } from '..';\n\nexport type MarketplaceState = {\n isLoading: boolean;\n error: string | null;\n tasks: MarketplaceTask[];\n taskDetails: MarketplaceTaskDetails | null;\n taskSuggestions: MarketplaceTask[];\n addingTaskIds: number[];\n removingTaskIds: number[];\n removedTask?: number;\n addedTask?: number;\n addError: string | null;\n tags: string[];\n tagName: string | null;\n};\n\ntype AddRemoveErrorPayload = {\n taskId: number;\n error: string;\n};\n\nconst initialState: MarketplaceState = {\n isLoading: false,\n error: null,\n tasks: [],\n taskDetails: null,\n taskSuggestions: [],\n addingTaskIds: [],\n removingTaskIds: [],\n addError: null,\n tags: [],\n tagName: null\n};\n\nconst marketplaceSlice = createSlice({\n name: 'marketplace',\n initialState,\n reducers: {\n getMarketplaceTasksStart(state) {\n state.isLoading = true;\n state.error = null;\n state.tasks = [];\n },\n getMarketplaceTasksSuccess(state, action: PayloadAction) {\n state.isLoading = false;\n state.tasks = action.payload;\n },\n getMarketplaceTasksFailure(state, action: PayloadAction) {\n state.isLoading = false;\n state.error = action.payload;\n },\n\n getMarketplaceTaskDetailsStart(state) {\n state.isLoading = true;\n state.error = null;\n state.taskDetails = null;\n },\n getMarketplaceTaskDetailsSuccess(state, action: PayloadAction) {\n state.isLoading = false;\n state.taskDetails = action.payload;\n },\n getMarketplaceTaskDetailsFailure(state, action: PayloadAction) {\n state.isLoading = false;\n state.error = action.payload;\n },\n\n getMarketplaceTaskSuggestionsSuccess(state, action: PayloadAction) {\n state.taskSuggestions = action.payload;\n },\n\n addMarketplaceTaskStart(state, action: PayloadAction) {\n const taskId = action.payload;\n state.addingTaskIds.push(taskId);\n state.addError = null;\n },\n addMarketplaceTaskSuccess(state, action: PayloadAction) {\n const taskId = action.payload;\n // remove from adding list\n state.addingTaskIds = state.addingTaskIds.filter(id => id !== taskId);\n // update task\n const addedUtc = new Date().toISOString(); // inaccurate\n const task = state.tasks.find(task => task.id === taskId);\n if (task) {\n task.addedUtc = addedUtc;\n }\n const suggestedTask = state.taskSuggestions.find(task => task.id === taskId);\n if (suggestedTask) {\n suggestedTask.addedUtc = addedUtc;\n }\n if (state.taskDetails?.id === taskId) {\n state.taskDetails.addedUtc = addedUtc;\n }\n state.addedTask = taskId;\n },\n addMarketplaceTaskFailure(state, action: PayloadAction) {\n const { taskId, error } = action.payload;\n state.addingTaskIds = state.addingTaskIds.filter(id => id !== taskId);\n state.addError = error;\n },\n \n removeMarketplaceTaskStart(state, action: PayloadAction) {\n const taskId = action.payload;\n state.removingTaskIds.push(taskId);\n state.addError = null;\n },\n removeMarketplaceTaskSuccess(state, action: PayloadAction) {\n const taskId = action.payload;\n const task = state.tasks.find(task => task.id === taskId);\n state.removingTaskIds = state.removingTaskIds.filter(id => id !== taskId);\n\n if (task) {\n task.addedUtc = undefined;\n }\n const suggestedTask = state.taskSuggestions.find(task => task.id === taskId);\n if (suggestedTask) {\n suggestedTask.addedUtc = undefined;\n }\n if (state.taskDetails?.id === taskId) {\n state.taskDetails.addedUtc = undefined;\n }\n state.removedTask = taskId;\n },\n removeMarketplaceTaskFailure(state, action: PayloadAction) {\n const { taskId, error } = action.payload;\n state.removingTaskIds = state.removingTaskIds.filter(id => id !== taskId);\n state.addError = error;\n },\n confirmMarketplaceAdd(state, action: PayloadAction) {\n if (state.addedTask === action.payload)\n state.addedTask = undefined;\n },\n confirmMarketplaceRemove(state, action: PayloadAction) {\n if (state.removedTask === action.payload)\n state.removedTask = undefined;\n },\n\n getMarketplaceTagsStart(state) {\n state.isLoading = true;\n state.error = null;\n state.tags = [];\n },\n getMarketplaceTagsSuccess(state, action: PayloadAction) {\n state.isLoading = false;\n state.tags = action.payload;\n },\n getMarketplaceTagsFailure(state, action: PayloadAction) {\n state.isLoading = false;\n state.error = action.payload;\n },\n\n addTagStart(state, action: PayloadAction) {\n state.error = null;\n state.tagName = null;\n },\n addTagSuccess(state, action: PayloadAction) {\n state.tagName = action.payload;\n },\n addTagFailure(state, action: PayloadAction) {\n state.error = action.payload;\n }\n },\n});\n\nconst {\n getMarketplaceTasksStart,\n getMarketplaceTasksSuccess,\n getMarketplaceTasksFailure,\n getMarketplaceTaskDetailsStart,\n getMarketplaceTaskDetailsSuccess,\n getMarketplaceTaskDetailsFailure,\n getMarketplaceTaskSuggestionsSuccess,\n addMarketplaceTaskStart,\n addMarketplaceTaskSuccess,\n addMarketplaceTaskFailure,\n removeMarketplaceTaskStart,\n removeMarketplaceTaskSuccess,\n removeMarketplaceTaskFailure,\n getMarketplaceTagsStart,\n getMarketplaceTagsSuccess,\n getMarketplaceTagsFailure,\n confirmMarketplaceAdd,\n confirmMarketplaceRemove,\n addTagStart,\n addTagSuccess,\n} = marketplaceSlice.actions;\n\nexport const getMarketplaceTasks = (): AppThunk => async (dispatch, getState) => {\n dispatch(getMarketplaceTasksStart());\n\n const token = getState().userState.user?.token;\n if (!token) {\n // TODO: public view\n dispatch(getMarketplaceTasksFailure('Not logged in'));\n return;\n }\n\n try {\n const res = await MarketplaceApi.getMarketplaceTasks(token);\n dispatch(getMarketplaceTasksSuccess(res.data));\n } catch (e) {\n dispatch(getMarketplaceTasksFailure('Error'));\n }\n};\n\nexport const getMarketplaceTasksPublic = (): AppThunk => async (dispatch, getState) => {\n dispatch(getMarketplaceTasksStart());\n\n try {\n const res = await MarketplaceApi.getMarketplaceTasks();\n dispatch(getMarketplaceTasksSuccess(res.data));\n } catch (e) {\n dispatch(getMarketplaceTasksFailure('Error'));\n }\n}\n\nexport const getMarketplaceTags = (): AppThunk => async (dispatch, getState) => {\n dispatch(getMarketplaceTagsStart());\n\n const token = getState().userState.user?.token;\n if (!token) {\n dispatch(getMarketplaceTagsFailure('Not logged in'));\n return;\n }\n\n try {\n const res = await MarketplaceApi.getMarketplaceTags(token);\n dispatch(getMarketplaceTagsSuccess(res.data));\n } catch (e) {\n dispatch(getMarketplaceTagsFailure('Error'));\n }\n};\n\nexport const getMarketplaceTaskDetails = (taskId: number): AppThunk => async (dispatch, getState) => {\n dispatch(getMarketplaceTaskDetailsStart());\n\n const token = getState().userState.user?.token;\n if (!token) {\n dispatch(userActionCreators.logout());\n return;\n }\n\n try {\n const res = await MarketplaceApi.getMarketplaceTaskDetails(token, taskId);\n dispatch(getMarketplaceTaskDetailsSuccess(res.data));\n } catch (e: any) {\n if (!e?.response) {\n dispatch(getMarketplaceTaskDetailsFailure('Oops, something went wrong. Please try again.'));\n return;\n }\n if (e.response.status === 401) {\n dispatch(userActionCreators.logout());\n return;\n }\n dispatch(getMarketplaceTaskDetailsFailure(e.response.statusText));\n }\n};\n\nexport const getMarketplaceTaskSuggestions = (taskId: number): AppThunk => async (dispatch, getState) => {\n // dispatch(getMarketplaceTaskDetailsStart());\n\n const token = getState().userState.user?.token;\n if (!token) {\n dispatch(userActionCreators.logout());\n return;\n }\n\n try {\n const res = await MarketplaceApi.getMarketplaceTaskSuggestions(token, taskId);\n dispatch(getMarketplaceTaskSuggestionsSuccess(res.data));\n } catch (e: any) {\n if (!e?.response) {\n dispatch(getMarketplaceTaskDetailsFailure('Oops, something went wrong. Please try again.'));\n return;\n }\n if (e.response.status === 401) {\n dispatch(userActionCreators.logout());\n return;\n }\n // dispatch(getMarketplaceTaskDetailsFailure(e.response.statusText));\n }\n};\n\nexport const addMarketplaceTask = (taskId: number): AppThunk => async (dispatch, getState) => {\n if (getState().marketplaceState.addingTaskIds.indexOf(taskId) !== -1) {\n console.log('already being added bruh');\n return Promise.reject();\n }\n dispatch(addMarketplaceTaskStart(taskId));\n\n const token = getState().userState.user?.token;\n if (!token) {\n dispatch(userActionCreators.logout());\n return Promise.reject();\n }\n\n try {\n await MarketplaceApi.addMarketplaceTask(token, taskId);\n dispatch(addMarketplaceTaskSuccess(taskId));\n return Promise.resolve();\n } catch (e: any) {\n if (!e?.response) {\n dispatch(getMarketplaceTaskDetailsFailure('Oops, something went wrong. Please try again.'));\n return Promise.reject();\n }\n if (e.response.status === 401) {\n dispatch(userActionCreators.logout());\n return Promise.reject();\n }\n dispatch(addMarketplaceTaskFailure({ taskId, error: 'Failed to add task' }));\n return Promise.reject();\n }\n};\n\nexport const removeMarketplaceTask = (taskId: number): AppThunk => async (dispatch, getState) => {\n dispatch(removeMarketplaceTaskStart(taskId));\n\n const token = getState().userState.user?.token;\n if (!token) {\n return;\n }\n\n try {\n const res = await MarketplaceApi.removeMarketplaceTask(token, taskId);\n dispatch(removeMarketplaceTaskSuccess(taskId));\n } catch (e: any) {\n if (!e?.response) {\n dispatch(getMarketplaceTaskDetailsFailure('Oops, something went wrong. Please try again.'));\n return;\n }\n if (e.response.status === 401) {\n dispatch(userActionCreators.logout());\n return;\n }\n dispatch(removeMarketplaceTaskFailure({ taskId, error: 'Failed to remomve task' }));\n }\n};\n\nexport const addTag = (name: string): AppThunk => async (dispatch, getState) => {\n dispatch(addTagStart(name));\n console.log(\"addTag\",addTag);\n\n const token = getState().userState.user?.token;\n if (!token) {\n dispatch(userActionCreators.logout());\n return;\n }\n\n try {\n await MarketplaceApi.addTag(token, name);\n dispatch(addTagSuccess(name));\n } catch (e: any) {\n if (!e?.response) {\n dispatch(getMarketplaceTaskDetailsFailure('Oops, something went wrong. Please try again.'));\n return;\n }\n if (e.response.status === 401) {\n dispatch(userActionCreators.logout());\n return;\n }\n }\n};\n\nexport const confirmAdd = (taskId: number): AppThunk => async (dispatch, getState) => {\n dispatch(confirmMarketplaceAdd(taskId));\n};\n\nexport const confirmRemove = (taskId: number): AppThunk => async (dispatch, getState) => {\n dispatch(confirmMarketplaceRemove(taskId));\n};\n\nexport default marketplaceSlice.reducer;\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"banner\":\"marketplaceHome_banner__1Ac-g\",\"loadingContainer\":\"marketplaceHome_loadingContainer__3o0rd\",\"filterBtn\":\"marketplaceHome_filterBtn__37fXu\",\"body\":\"marketplaceHome_body__2hMWq\",\"filter\":\"marketplaceHome_filter__jcA-q\",\"taskContainer\":\"marketplaceHome_taskContainer__2bTrK\",\"tasks\":\"marketplaceHome_tasks__1HB7m\",\"tile\":\"marketplaceHome_tile__nvSU9\",\"featuredTasks\":\"marketplaceHome_featuredTasks__2p5Wu\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"page\":\"marketplaceTaskDetails_page__3WNxj\",\"nav\":\"marketplaceTaskDetails_nav__2ukVF\",\"content\":\"marketplaceTaskDetails_content__1BFgr\",\"aside\":\"marketplaceTaskDetails_aside__3W89C\",\"details\":\"marketplaceTaskDetails_details__1wkqa\",\"sampleBtn\":\"marketplaceTaskDetails_sampleBtn__1oquU\",\"features\":\"marketplaceTaskDetails_features__3FVbZ\",\"feature\":\"marketplaceTaskDetails_feature__dMzPX\",\"featureGroup\":\"marketplaceTaskDetails_featureGroup__2DWUU\",\"featureText\":\"marketplaceTaskDetails_featureText__2nZpg\",\"includes\":\"marketplaceTaskDetails_includes__12Z_p\",\"suggestions\":\"marketplaceTaskDetails_suggestions__2jSR1\",\"tasks\":\"marketplaceTaskDetails_tasks__II9IQ\",\"stickyFooter\":\"marketplaceTaskDetails_stickyFooter__Mjpq6\",\"removeTile\":\"marketplaceTaskDetails_removeTile__1wqaU\",\"sampleBlock\":\"marketplaceTaskDetails_sampleBlock__1Yo-L\",\"sampleReport\":\"marketplaceTaskDetails_sampleReport__2I_aL\",\"sampleReportButton\":\"marketplaceTaskDetails_sampleReportButton__12eYm\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"tile\":\"taskTile_tile__1LeIw\",\"fixed\":\"taskTile_fixed__vYLoA\",\"short\":\"taskTile_short__2yLnr\",\"border\":\"taskTile_border__Syxrt\",\"imgContainer\":\"taskTile_imgContainer__3cqM8\",\"tileBody\":\"taskTile_tileBody__2zgiA\",\"loadingContainer\":\"taskTile_loadingContainer__1W6du\",\"tileContentContainer\":\"taskTile_tileContentContainer__1sIrW\",\"tileContent\":\"taskTile_tileContent__3aLW3\",\"price\":\"taskTile_price__Fnnxe\",\"selected\":\"taskTile_selected__2tv9H\",\"actions\":\"taskTile_actions__2aRA6\",\"addRemove\":\"taskTile_addRemove__38mNL\",\"enquiry\":\"taskTile_enquiry__2fUVT\",\"removeTaskContainer\":\"taskTile_removeTaskContainer__3Tz9V\",\"addedDate\":\"taskTile_addedDate__3WV19\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"page\":\"orderSuccess_page__3YCem\",\"content\":\"orderSuccess_content__2YH0W\",\"header\":\"orderSuccess_header__2rjm7\",\"ref\":\"orderSuccess_ref__1LDZs\",\"block\":\"orderSuccess_block__2_CHn\",\"section\":\"orderSuccess_section__385R3\",\"moreInfo\":\"orderSuccess_moreInfo__3XW3y\",\"invoice\":\"orderSuccess_invoice__1PwOr\",\"nav\":\"orderSuccess_nav__3ThSL\",\"next\":\"orderSuccess_next__dPR7Y\",\"back\":\"orderSuccess_back__-ypJP\"};","import axios from 'axios';\nimport { MarketplaceTask, MarketplaceTaskDetails } from '../models/marketplaceTask';\n\nconst marketplaceApi = axios.create({\n baseURL: `/v1/marketplace/`,\n});\n\nexport const getMarketplaceTasks = (token?: string) => {\n if (token) {\n return marketplaceApi.get('/tasks', {\n headers: {\n Authorization: `bearer ${token}`,\n },\n });\n } else {\n return marketplaceApi.get('/public/tasks');\n }\n};\n\nexport const getMarketplaceTaskDetails = (token: string, taskId: number) =>\n marketplaceApi.get(`/task/${taskId}`, {\n headers: {\n Authorization: `bearer ${token}`,\n },\n });\n\nexport const getMarketplaceTaskSuggestions = (token: string, taskId: number) =>\n marketplaceApi.get(`/tasks/suggestions/${taskId}`, {\n headers: {\n Authorization: `bearer ${token}`,\n },\n });\n\nexport const addMarketplaceTask = (token: string, taskId: number) =>\n marketplaceApi.post(`/task/${taskId}`, null, {\n headers: {\n Authorization: `bearer ${token}`,\n },\n });\n\nexport const removeMarketplaceTask = (token: string, taskId: number) =>\n marketplaceApi.delete(`/task/${taskId}`, {\n headers: {\n Authorization: `bearer ${token}`,\n },\n });\n\nexport const getMarketplaceTags = (token: string) =>\n marketplaceApi.get('/tags', {\n headers: {\n Authorization: `bearer ${token}`,\n },\n });\n\nexport const getMarketplaceTasksForOnboarding = (token: string, tags: string[]) =>\n marketplaceApi.get('/tasks/onboarding', {\n headers: {\n Authorization: `bearer ${token}`,\n },\n params: {\n tags,\n },\n });\n\nexport const addTag = (token: string, name: string) =>\n marketplaceApi.post(\n `/tag/${name}`,\n {},\n {\n headers: {\n Authorization: `bearer ${token}`,\n },\n }\n ); ","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"taskCheckbox_container__3CrSW\",\"checked\":\"taskCheckbox_checked__1M0kZ\",\"disabled\":\"taskCheckbox_disabled__1pX8v\",\"checkbox\":\"taskCheckbox_checkbox__2lJbz\",\"newMobile\":\"taskCheckbox_newMobile__3vdBV\",\"content\":\"taskCheckbox_content__1UpJJ\",\"text\":\"taskCheckbox_text__1JWdr\",\"info\":\"taskCheckbox_info__1xsc3\",\"tooltip\":\"taskCheckbox_tooltip__1ab_L\",\"new\":\"taskCheckbox_new__3ECcH\",\"tooltipBody\":\"taskCheckbox_tooltipBody__3oC-i\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"headingblock\":\"onboardingIndustrySelectionStep_headingblock__2fSLA\",\"heading\":\"onboardingIndustrySelectionStep_heading__3A800\",\"text\":\"onboardingIndustrySelectionStep_text__2PU3_\",\"body\":\"onboardingIndustrySelectionStep_body__19fcp\",\"tags\":\"onboardingIndustrySelectionStep_tags__3X3Ax\",\"tile\":\"onboardingIndustrySelectionStep_tile__3DauO\",\"active\":\"onboardingIndustrySelectionStep_active__2I1Nk\",\"other\":\"onboardingIndustrySelectionStep_other__7paQX\",\"othertitle\":\"onboardingIndustrySelectionStep_othertitle__2gptF\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"paymentSummary_container__5rfke\",\"itemRow\":\"paymentSummary_itemRow__1TNqP\",\"price\":\"paymentSummary_price__2PvVw\",\"priceRow\":\"paymentSummary_priceRow__12BW5\",\"total\":\"paymentSummary_total__5T8Su\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"page\":\"onboarding_page__3WQxz\",\"main\":\"onboarding_main__Vis-T\",\"footer\":\"onboarding_footer__16xSG\",\"footerContent\":\"onboarding_footerContent__2z_An\",\"action\":\"onboarding_action__1U8bA\",\"nextBtn\":\"onboarding_nextBtn__U_Mgb\",\"prevBtn\":\"onboarding_prevBtn__35naP\",\"skipBtn\":\"onboarding_skipBtn__kUfF-\",\"skipBtnMobile\":\"onboarding_skipBtnMobile__36JXU\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"page\":\"orderPaymentSingle_page__3V4ad\",\"content\":\"orderPaymentSingle_content__2141h\",\"small\":\"orderPaymentSingle_small__1qqMF\",\"termsSection\":\"orderPaymentSingle_termsSection__2XdcQ\",\"error\":\"orderPaymentSingle_error__3btYM\",\"nav\":\"orderPaymentSingle_nav__1JEhd\",\"next\":\"orderPaymentSingle_next__3o-DA\",\"back\":\"orderPaymentSingle_back__TqOkE\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"fullscreenFilter_container__2AJaw\",\"content\":\"fullscreenFilter_content__30LGm\",\"header\":\"fullscreenFilter_header__AOU8Y\",\"footer\":\"fullscreenFilter_footer__2Bs3N\",\"body\":\"fullscreenFilter_body__66HjZ\",\"label\":\"fullscreenFilter_label__3BsDX\",\"list\":\"fullscreenFilter_list__3nZp2\",\"selected\":\"fullscreenFilter_selected__Gf0mJ\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"signatureContainer\":\"nccTermsModal_signatureContainer__2PBQF\",\"clearButton\":\"nccTermsModal_clearButton__X8v0y\",\"resizePara\":\"nccTermsModal_resizePara__xfev4\",\"footer\":\"nccTermsModal_footer__3hwDl\",\"error\":\"nccTermsModal_error__LEPSn\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"headingBlock\":\"onboardingTasksStep_headingBlock__1ToHK\",\"heading\":\"onboardingTasksStep_heading__1Dnl5\",\"text\":\"onboardingTasksStep_text__3_g7X\",\"body\":\"onboardingTasksStep_body__3BXWw\",\"container\":\"onboardingTasksStep_container__77TQ7\",\"tile\":\"onboardingTasksStep_tile__Ycm9p\",\"icon\":\"onboardingTasksStep_icon__2amLF\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"page\":\"orderPaymentMethod_page__3GnB9\",\"content\":\"orderPaymentMethod_content__3VTKb\",\"optionsContainer\":\"orderPaymentMethod_optionsContainer__2clYG\",\"option\":\"orderPaymentMethod_option__zdvIT\",\"nav\":\"orderPaymentMethod_nav__1b8Sc\",\"next\":\"orderPaymentMethod_next__2pfzF\",\"back\":\"orderPaymentMethod_back__2PZML\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"header\":\"ccPaymentBlock_header__37dkh\",\"icons\":\"ccPaymentBlock_icons__16lFN\",\"inactive\":\"ccPaymentBlock_inactive__3orFZ\",\"form\":\"ccPaymentBlock_form__18X5M\",\"triple\":\"ccPaymentBlock_triple__3Gkmy\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"input_container__Ri6FC\",\"error\":\"input_error__2pMXJ\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"paymentBlock_container__2lqXq\",\"itemRow\":\"paymentBlock_itemRow__A_kEm\",\"priceRow\":\"paymentBlock_priceRow__3Xftv\",\"total\":\"paymentBlock_total__1qzbR\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"taskDescription_container__3Ad07\",\"fields\":\"taskDescription_fields__28auX\",\"error\":\"taskDescription_error__2Hbf3\",\"errorLabel\":\"taskDescription_errorLabel__BWe-X\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"toast\":\"toast_toast__PqGw6\",\"hide\":\"toast_hide__3QtT8\",\"content\":\"toast_content__2z1_e\",\"progress\":\"toast_progress__1WZbC\",\"dismiss\":\"toast_dismiss__2wR2G\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"tile\":\"priceTile_tile__1tuSZ\",\"borderless\":\"priceTile_borderless__1wcC8\",\"price\":\"priceTile_price__qEaDt\",\"add\":\"priceTile_add__zEngy\"};","import { AppThunkAction } from \"..\";\nimport { ModalStateKnownAction } from \".\";\nimport { CallHistoryMethodAction } from \"connected-react-router\";\nimport * as React from 'react';\n\ntype KnownAction = ModalStateKnownAction | CallHistoryMethodAction;\n\nexport const modalActionCreators = {\n showModal: (content: React.ReactElement, title?: string): AppThunkAction => (dispatch, getState) => {\n dispatch({\n type: 'SHOW_MODAL',\n body: content,\n title: title\n });\n },\n\n hideModal: (): AppThunkAction => (dispatch, getState) => {\n dispatch({\n type: 'HIDE_MODAL'\n });\n }\n}\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"apiDocs_container__3ijtg\",\"explanation\":\"apiDocs_explanation__1asXO\",\"example\":\"apiDocs_example__1w7I1\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"filter\":\"filter_filter__1TsXb\",\"active\":\"filter_active__1Vw_G\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"paymentSelect_container__3cGuI\",\"labelSection\":\"paymentSelect_labelSection__3ubQa\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"spinner\":\"spinner_spinner__2UV-E\",\"rotate\":\"spinner_rotate__I9_Hq\",\"dash\":\"spinner_dash__1rxud\",\"small\":\"spinner_small__oqv1l\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"divider\":\"settings_divider__3KC85\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"page\":\"report_page__361jT\"};","import React, { useState, useEffect } from 'react';\nimport { modalActionCreators } from '../../store/modal';\nimport { Order } from '../../models/order';\nimport { useDispatch, useSelector } from 'react-redux';\nimport './shareReportModal.scss';\nimport { ApplicationState } from '../../store';\nimport { ReportShare } from '../../models/reportShare';\nimport { ShareReportModalMain } from './shareReportModalMain';\nimport { ShareReportModalAdd } from './shareReportModalAdd';\nimport { ShareReportModalEdit } from './shareReportModalEdit';\n\nenum Steps {\n Main,\n Add,\n Edit,\n Done,\n};\n\nexport const ShareReportModal: React.FC = (props) => {\n const [step, setStep] = useState(Steps.Main);\n const [shares, setShares] = useState();\n const [editEmail, setEditEmail] = useState(''); // selected email during edit\n const [doneMessage, setDoneMessage] = useState('');\n const [email, setEmail] = useState('');\n const [unsharing, setUnsharing] = useState('');\n\n const reports = props.order.tasks\n .filter(t => t.reportUrl && !t.isExpired)\n .map(t => ({ value: t.reportGuid, label: t.name }));\n\n const unshareReports = async (email: string) => {\n setUnsharing(email);\n\n const shareIds = shares?.filter(x => x.email === email).map(x => x.id);\n const url = `/v1/reports/${props.order.id}/unshare`;\n\n try {\n const res = await fetch(url, {\n method: 'post',\n headers: {\n 'Content-Type': 'application/json',\n 'Authorization': `bearer ${user!.token}`,\n },\n body: JSON.stringify(shareIds),\n });\n\n if (!res.ok) {\n const text = await res.text();\n throw text;\n }\n\n // TODO: partial fail is reflected in the data\n // const data = res.json();\n setUnsharing('');\n setShares(shares?.filter(x => x.email !== email));\n } catch (err) {\n console.error(err);\n alert(err);\n }\n }\n\n const dispatch = useDispatch();\n\n const user = useSelector((state: ApplicationState) => state.userState.user);\n\n useEffect(() => {\n const url = `/v1/reports/${props.order.id}/share`;\n fetch(url, {\n method: 'get',\n headers: {\n 'Content-type': 'application/json',\n 'authorization': `bearer ${user!.token}`, // user is definitely defined here\n },\n }).then(res => {\n if (res.ok) {\n return res.json();\n } else {\n return res.text().then(text => { throw text; });\n }\n }).then(data => {\n setShares(data);\n }).catch(err => {\n console.error(err);\n alert(err);\n });\n }, [props.order.id, user]);\n\n switch (step) {\n case Steps.Main:\n return (\n x.email === unsharing ? { ...x, pending: true } : x)}\n onUnshareClick={email => {\n unshareReports(email);\n }}\n onAddClick={(e) => {\n setEmail(e);\n setStep(Steps.Add);\n }}\n />\n );\n case Steps.Add:\n return (\n {\n setStep(Steps.Main);\n }}\n onDone={() => {\n setStep(Steps.Done);\n setDoneMessage('Sent!');\n setTimeout(() => dispatch(modalActionCreators.hideModal()), 1500);\n }}\n />\n );\n case Steps.Edit:\n // filter shares by the edit email, then map shareId to the report selection\n const sharedReports = shares!\n .filter(s => s.email === editEmail)\n .map(s => {\n const report = reports.find(r => r.value === s.reportGuid)!;\n return { ...report, shareId: s.id };\n });\n return (\n {\n setStep(Steps.Main);\n }}\n onDone={() => {\n setStep(Steps.Done);\n setDoneMessage('Reports are no longer being shared!');\n setTimeout(() => dispatch(modalActionCreators.hideModal()), 1500);\n }}\n />\n );\n case Steps.Done:\n return

{doneMessage}

;\n default:\n return

Something went wrong here.

;\n }\n}\n\ninterface Props {\n order: Order;\n}\n","import * as React from 'react';\n\nexport class Tooltip extends React.Component {\n constructor(props: TooltipProps) {\n super(props);\n\n this.escape = this.escape.bind(this);\n this.clickOff = this.clickOff.bind(this);\n this.setupEventListeners = this.setupEventListeners.bind(this);\n this.removeEventListencers = this.removeEventListencers.bind(this);\n }\n\n render() {\n const align = this.props.align || 'center'\n return e.stopPropagation()}\n className={`tooltip-container ${align} ${this.props.active ? 'active' : ''} ${this.props.top ? 'top' : ''} ${this.props.light ? 'light' : ''}`}>\n
{this.props.children}
\n \n }\n\n componentDidMount() {\n if (this.props.active)\n this.setupEventListeners();\n else\n this.removeEventListencers();\n }\n\n componentDidUpdate() {\n if (this.props.active)\n this.setupEventListeners();\n else\n this.removeEventListencers();\n }\n\n setupEventListeners() {\n window.setTimeout(() => {\n window.addEventListener('click', this.clickOff);\n window.addEventListener('keyup', this.escape);\n }, 200);\n }\n\n removeEventListencers() {\n window.removeEventListener('click', this.clickOff);\n window.removeEventListener('keyup', this.escape);\n }\n\n escape(e: KeyboardEvent) {\n if (e.key === 'Esc' || e.key === 'Escape' || e.keyCode === 27) {\n this.clickOff();\n }\n }\n\n clickOff(e?: MouseEvent) {\n if (this.props.active) {\n this.props.closeCallback(e);\n }\n }\n\n componentWillUnmount() {\n window.removeEventListener('click', this.clickOff);\n window.removeEventListener('keypress', this.escape);\n }\n}\n\nexport const TooltipTarget: React.FC = (props) => {\n return \n}\n\n// TODO: Create new wrapper for the target and the tooltip content\n\ninterface TooltipProps {\n active: boolean;\n top: boolean;\n align?: string;\n light?: boolean;\n closeCallback: (e?: MouseEvent) => void;\n}\n","import * as React from 'react';\nimport './loading.scss';\n\nexport const Loading: React.FC = (props) => {\n return
\n \n \n \n
{props.text}
\n
;\n}\n\ninterface LoadingProps {\n text?: string;\n}\n","import * as React from 'react';\nimport './navBar.scss';\nimport { Tooltip } from './tooltip';\nimport { Link, NavLink } from 'react-router-dom';\nimport { connect, useSelector } from 'react-redux';\nimport { ApplicationState } from '../store';\n\nexport const Nav = () => {\n const user = useSelector((state: ApplicationState) => state.userState.user);\n\n return (\n <>\n Dashboard\n Products\n {(user?.apiKey && user?.role === 'Admin') && API Reference}\n \n );\n}\n\nexport class PublicNav extends React.PureComponent {\n render() {\n return (\n <>\n Home\n Products\n \n );\n }\n}\n","export default __webpack_public_path__ + \"static/media/logo-olasio-o.5885a3c9.svg\";","import * as React from 'react';\nimport './navBar.scss';\nimport { Tooltip } from './tooltip';\nimport { Link, NavLink } from 'react-router-dom';\nimport { connect } from 'react-redux';\nimport { ApplicationState } from '../store';\nimport { Dispatch, bindActionCreators } from 'redux';\nimport { userActionCreators } from '../store/users/actionCreators';\nimport { UserState } from '../store/users';\nimport { modalActionCreators, ModalState } from '../store/modal';\nimport { Loading } from './loading';\nimport { Nav } from './nav';\nimport logo from '../assets/logo-olasio-o.svg';\n\nclass NavBar extends React.PureComponent {\n render() {\n return (\n
\n {this.props.special ?\n Olasio Source :\n \n Olasio Source\n \n }\n {this.props.special ?\n

Send Smart Task

:\n
\n );\n }\n\n constructor(props: NavProps) {\n super(props);\n\n this.state = {\n dropdown: false\n };\n\n this.toggleDropdown = this.toggleDropdown.bind(this);\n this.showInviteModal = this.showInviteModal.bind(this);\n this.closeDropdown = this.closeDropdown.bind(this);\n this.openDropdown = this.openDropdown.bind(this);\n\n this.tooltipRef = React.createRef();\n }\n\n tooltipRef: React.RefObject;\n\n toggleDropdown() {\n if (this.state.dropdown)\n this.closeDropdown();\n else\n this.openDropdown();\n }\n\n closeDropdown(e?: MouseEvent) {\n if (e && this.tooltipRef.current) {\n let el = this.tooltipRef.current;\n if (e.target !== el)\n this.setState({ dropdown: false });\n }\n else\n this.setState({ dropdown: false });\n }\n\n openDropdown() {\n this.setState({ dropdown: true });\n }\n\n showInviteModal() {\n this.props.modalActions.showModal( {\n this.props.modalActions.hideModal();\n }}\n confirm={(name, email, done) => {\n this.props.userActions.requestInviteUser(name, email, done);\n }}\n />, 'Invite people');\n }\n}\n\nconst InviteModal: React.FC = (props) => {\n const [name, setName] = React.useState('');\n const [email, setEmail] = React.useState('');\n const [emailValid, setEmailValid] = React.useState(false);\n const [loading, setLoading] = React.useState(false);\n const [complete, setComplete] = React.useState(false);\n\n return complete ?\n <>\n

Sent!

\n : loading ?\n <>\n \n :\n <>\n

Send invitation to a new user by entering their name and email address.

\n
\n \n \n
\n
\n \n \n
\n ;\n}\n\ninterface NavProps {\n userStore: UserState;\n userActions: typeof userActionCreators;\n modalStore: ModalState;\n modalActions: typeof modalActionCreators;\n special?: boolean;\n}\n\ninterface NavState {\n dropdown: boolean;\n}\n\ninterface InviteModalProps {\n cancel: () => void;\n confirm: (name: string, email: string, onDone: (success: boolean) => void) => void;\n}\n\nexport default connect(\n (state: ApplicationState) => ({\n userStore: state.userState,\n modalStore: state.modalState\n }),\n (dispatch: Dispatch) => {\n return {\n userActions: bindActionCreators(userActionCreators, dispatch),\n modalActions: bindActionCreators(modalActionCreators, dispatch)\n };\n }\n)(NavBar);\n","import * as React from 'react';\nimport './navBar.scss';\nimport { Tooltip } from './tooltip';\nimport { Link } from 'react-router-dom';\nimport { connect } from 'react-redux';\nimport { ApplicationState } from '../store';\nimport { Dispatch, bindActionCreators } from 'redux';\nimport { userActionCreators } from '../store/users/actionCreators';\nimport { UserState } from '../store/users';\nimport { modalActionCreators, ModalState } from '../store/modal';\nimport { PublicNav } from './nav';\n\nclass NavBar extends React.PureComponent {\n render() {\n return (\n
\n \n Olasio Source\n \n \n
\n \n \n Login\n \n \n Sign up\n \n
\n
\n );\n }\n\n constructor(props: NavProps) {\n super(props);\n\n this.state = {\n dropdown: false\n };\n\n this.tooltipRef = React.createRef();\n }\n\n tooltipRef: React.RefObject;\n}\n\ninterface NavProps {\n userStore: UserState;\n userActions: typeof userActionCreators;\n modalStore: ModalState;\n modalActions: typeof modalActionCreators;\n special?: boolean;\n}\n\ninterface NavState {\n dropdown: boolean;\n}\n\ninterface InviteModalProps {\n cancel: () => void;\n confirm: (name: string, email: string, onDone: (success: boolean) => void) => void;\n}\n\nexport default connect(\n (state: ApplicationState) => ({\n userStore: state.userState,\n modalStore: state.modalState\n }),\n (dispatch: Dispatch) => {\n return {\n userActions: bindActionCreators(userActionCreators, dispatch),\n modalActions: bindActionCreators(modalActionCreators, dispatch)\n };\n }\n)(NavBar);\n","import * as React from 'react';\nimport { ApplicationState } from '../../store';\nimport { Dispatch, bindActionCreators } from 'redux';\nimport { connect } from 'react-redux';\nimport { ModalState, modalActionCreators } from '../../store/modal';\nimport './modal.scss';\n\nclass ModalRoot extends React.Component {\n render () {\n return
this.onOverlayClick}>\n {this.props.store.current ?\n
e.stopPropagation()}>\n \n
\n {this.props.store.current.title ?

{this.props.store.current.title}

: ''}\n
\n
\n {this.props.store.current.body}\n
\n
: '' }\n
\n }\n\n constructor(props: RootProps) {\n super(props);\n\n this.state = {\n //\n };\n\n this.close = this.close.bind(this);\n }\n\n componentDidMount() {\n window.onkeydown = (e: KeyboardEvent) => {\n if (e.key === 'Esc' || e.key === 'Escape' || e.keyCode === 27) {\n if (this.props.store.current) {\n this.close();\n }\n }\n }\n }\n\n onOverlayClick(e: MouseEvent){\n if(e.target === document.getElementById('modal-overlay'))\n this.close();\n }\n\n close() {\n this.props.actions.hideModal();\n }\n}\n\ninterface RootProps {\n store: ModalState;\n actions: typeof modalActionCreators;\n}\n\nexport default connect(\n (state: ApplicationState) => ({\n store: state.modalState\n }),\n (dispatch: Dispatch) => {\n return {\n actions: bindActionCreators(modalActionCreators, dispatch)\n };\n }\n)(ModalRoot);\n","import { AppThunkAction } from \"..\";\nimport { OrderStateKnownAction } from \".\";\nimport { push, CallHistoryMethodAction } from \"connected-react-router\";\nimport { LogOut } from \"../users/actions\";\nimport { OrderSummary, Order } from \"../../models/order\";\nimport { InProgressOrder, SubmitOrder, TaskItem } from \"../../models/inProgressOrder\";\nimport { OrderCreate } from \"../../models/orderCreate\";\nimport { OrderInvoice } from \"../../models/orderInvoice\";\n\ntype KnownAction = OrderStateKnownAction | CallHistoryMethodAction | LogOut | Function;\n\nexport const orderActionCreators = {\n requestOrders: (status: string, pageOffset: number, pageSize: number, search: string, sortBy: string): AppThunkAction => (dispatch, getState) => {\n const user = getState().userState.user;\n if (user && user.token) {\n dispatch({ type: 'REQUEST_ORDERS' });\n\n // We have left these breaks out on purpose\n let sortCol = 'createdutc', sortDir = 'desc';\n switch (sortBy) {\n case 'lastActivity':\n sortDir = 'asc';\n /* esline-disable no-fallthrough */\n case 'lastActivityDesc':\n sortCol = 'updatedutc';\n break;\n case 'created':\n sortDir = 'asc';\n /* esline-disable no-fallthrough */\n case 'createdDesc':\n sortCol = 'createdutc';\n break;\n }\n\n const url = `/v1/orders?` +\n `user=${user.id}&` +\n `status=${status}&` +\n `pageOffset=${pageOffset}&` +\n `pageSize=${pageSize}&` +\n `search=${search}&` +\n `sortOn=${sortCol}&` +\n `sortOrder=${sortDir}`;\n fetch(url, {\n method: 'get',\n headers: {\n 'Content-type': 'application/json',\n 'authorization': `bearer ${user.token}`\n }\n })\n .then((response) => {\n if (response.ok)\n return response.json() as Promise;\n else if (response.status === 401 || response.status === 403) {\n dispatch({\n type: 'LOG_OUT'\n });\n dispatch(push('/login'));\n return Promise.resolve(undefined);\n }\n else\n return response.text().then(text => { throw text; });\n })\n .then((orders?: OrderSummary) => {\n if (orders) {\n dispatch({\n type: 'RECEIVE_ORDERS',\n orders: orders\n });\n }\n })\n .catch((err: any) => {\n console.error(err);\n alert(err);\n });\n }\n else {\n dispatch(push('/login'));\n }\n },\n\n archiveOrder: (id: number, status: string, pageOffset: number, pageSize: number, search: string, sortBy: string): AppThunkAction => (dispatch, getState) => {\n const user = getState().userState.user;\n\n if (user && user.token) {\n dispatch({\n type: 'REMOVE_ORDER',\n orderId: id\n });\n\n let sortCol = 'createdutc', sortDir = 'desc';\n switch (sortBy) {\n case 'lastActivity':\n sortDir = 'asc';\n case 'lastActivityDesc':\n sortCol = 'updatedutc';\n break;\n case 'created':\n sortDir = 'asc';\n case 'createdDesc':\n sortCol = 'createdutc';\n break;\n }\n\n const url = `/v1/orders/${id}/archive?user=${user.id}&status=${status}&pageOffset=${pageOffset}&pageSize=${pageSize}&search=${search}&sortOn=${sortCol}&sortOrder=${sortDir}`;\n fetch(url, {\n method: 'put',\n headers: {\n 'Content-type': 'application/json',\n 'authorization': `bearer ${user.token}`\n }\n })\n .then(response => {\n if (response.ok) {\n return response.json();\n }\n else if (response.status === 401 || response.status === 403) {\n dispatch({\n type: 'LOG_OUT'\n });\n dispatch(push('/login'));\n return Promise.resolve(undefined);\n }\n else\n return response.text().then(text => { throw text; });\n })\n .then(orders => {\n if (orders) {\n dispatch({\n type: 'RECEIVE_ORDERS',\n orders: orders\n });\n }\n })\n .catch((err: any) => {\n console.error(err);\n alert(err);\n });\n }\n else {\n dispatch(push('/login'));\n }\n },\n\n cancelOrder: (id: number, status: string, pageOffset: number, pageSize: number, search: string, sortBy: string): AppThunkAction => (dispatch, getState) => {\n const user = getState().userState.user;\n\n if (user && user.token) {\n dispatch({\n type: 'REMOVE_ORDER',\n orderId: id\n });\n\n let sortCol = 'createdutc', sortDir = 'desc';\n switch (sortBy) {\n case 'lastActivity':\n sortDir = 'asc';\n case 'lastActivityDesc':\n sortCol = 'updatedutc';\n break;\n case 'created':\n sortDir = 'asc';\n case 'createdDesc':\n sortCol = 'createdutc';\n break;\n }\n\n const url = `/v1/orders/${id}/cancel?user=${user.id}&status=${status}&pageOffset=${pageOffset}&pageSize=${pageSize}&search=${search}&sortOn=${sortCol}&sortOrder=${sortDir}`;\n fetch(url, {\n method: 'put',\n headers: {\n 'Content-type': 'application/json',\n 'authorization': `bearer ${user.token}`\n }\n })\n .then(response => {\n if (response.ok) {\n return response.json();\n }\n else if (response.status === 401 || response.status === 403) {\n dispatch({\n type: 'LOG_OUT'\n });\n dispatch(push('/login'));\n return Promise.resolve(undefined);\n }\n else\n return response.text().then(text => { throw text; });\n })\n .then(orders => {\n if (orders) {\n dispatch({\n type: 'RECEIVE_ORDERS',\n orders: orders\n });\n }\n })\n .catch((err: any) => {\n console.error(err);\n alert('Whoops, something went wrong. Please try again later.');\n });\n }\n else {\n dispatch(push('/login'));\n }\n },\n\n nudgeOrder: (id: number, detail: string, email: boolean): AppThunkAction => (dispatch, getState) => {\n if (email) {\n // TODO: Send email to detail\n }\n else {\n // TODO: Send sms to detail\n }\n },\n\n loadArchive: (): AppThunkAction => (dispatch, getState) => {\n dispatch({\n type: 'REQUEST_ARCHIVE'\n });\n const user = getState().userState.user;\n\n if (user && user.token) {\n const url = `/v1/orders/archive`;\n fetch(url, {\n method: 'get',\n headers: {\n 'Content-type': 'application/json',\n 'authorization': `bearer ${user.token}`\n }\n })\n .then(response => {\n if (response.ok) {\n return response.json();\n }\n else if (response.status === 401 || response.status === 403) {\n dispatch({\n type: 'LOG_OUT'\n });\n dispatch(push('/login'));\n return Promise.resolve(undefined);\n }\n else\n return response.text().then(text => { throw text; });\n })\n .then(orders => {\n if (orders) {\n dispatch({\n type: 'RECEIVE_ARCHIVE',\n orders: orders\n });\n }\n })\n .catch((err: any) => {\n console.error(err);\n alert(err);\n });\n }\n else {\n dispatch(push('/login'));\n }\n },\n\n requestNewOrder: (order: SubmitOrder): AppThunkAction => (dispatch, getState) => {\n dispatch({\n type: 'ORDER_ERROR',\n message: undefined\n });\n\n const user = getState().userState.user;\n\n if (user && user.token) {\n /*order.taskItems.forEach(t => {\n t.reportId = _surveyTemplates[t.surveyId][user.organisationId]\n });*/\n\n const url = `/v1/orders`;\n fetch(url, {\n method: 'post',\n headers: {\n 'Content-type': 'application/json',\n 'authorization': `bearer ${user.token}`\n },\n body: JSON.stringify(order)\n })\n .then(response => {\n if (response.ok)\n return response.json() as Promise;\n else if (response.status === 401 || response.status === 403) {\n dispatch({\n type: 'LOG_OUT'\n });\n dispatch(push('/login'));\n return Promise.resolve(undefined);\n }\n else\n return response.text().then(text => { throw text; });\n })\n .then(orders => {\n // Update the order list\n //dispatch(orderActionCreators.requestOrders('active', 1, 10, '', ''));\n\n if (orders) {\n dispatch({\n type: 'RECEIVE_NEW_ORDERS',\n orders: orders\n })\n dispatch(push(`/task/success`));\n }\n else\n dispatch(push('/'));\n })\n .catch(err => {\n dispatch({\n type: 'ORDER_ERROR',\n message: err ?? 'Something went wrong, please try again.'\n });\n });\n }\n else {\n dispatch(push('/login'));\n }\n },\n\n requestNewSingleOrder: (orderCreate: OrderCreate): AppThunkAction => (dispatch, getState) => {\n dispatch({\n type: 'ORDER_ERROR',\n message: undefined\n });\n\n const user = getState().userState.user;\n\n if (user && user.token) {\n const url = `/v1/orders/single`;\n fetch(url, {\n method: 'post',\n headers: {\n 'Content-type': 'application/json',\n 'authorization': `bearer ${user.token}`\n },\n body: JSON.stringify(orderCreate)\n })\n .then(response => {\n if (response.ok)\n return response.json() as Promise;\n else if (response.status === 401 || response.status === 403) {\n dispatch({\n type: 'LOG_OUT'\n });\n dispatch(push('/login'));\n return Promise.resolve(undefined);\n }\n else\n return response.text().then(text => { throw text; });\n })\n .then(order => {\n if (order) {\n dispatch({\n type: 'RECEIVE_NEW_ORDERS',\n orders: [order]\n })\n dispatch(push(`/new-task/success`));\n }\n else\n dispatch(push('/'));\n })\n .catch(err => {\n dispatch({\n type: 'ORDER_ERROR',\n message: err ?? 'Something went wrong, please try again.'\n });\n });\n }\n else {\n dispatch(push('/login'));\n }\n },\n\n saveAndProgressOrder: (order: InProgressOrder): AppThunkAction => (dispatch, getState) => {\n dispatch({\n type: 'RECEIVE_ORDER_INPROGRESS',\n order: order\n });\n dispatch(push('/new-task/payment'));\n },\n\n // same action as above, but links to the new payment flow for single orders\n saveAndProgressSingleOrder: (order: InProgressOrder): AppThunkAction => (dispatch, getState) => {\n dispatch({\n type: 'RECEIVE_ORDER_INPROGRESS',\n order: order\n });\n dispatch(push('/new-task/payment-method'));\n },\n\n savePaymentMethodsAndProgress: (paymentSelections: string[]): AppThunkAction => (dispatch, getState) => {\n const order = getState().orderState.inProgressOrder;\n dispatch({\n type: 'RECEIVE_ORDER_INPROGRESS',\n order: {\n ...order!,\n taskItems: order!.taskItems.map((item, i) => ({\n ...item,\n paymentMethod: paymentSelections[i] === 'cc' ? 'cc' : parseInt(paymentSelections[i]),\n }))\n }\n });\n dispatch(push('/new-task/payment-single'));\n },\n\n saveTaskListAndProgress: (taskItems: TaskItem[], multiple: boolean): AppThunkAction => (dispatch, getState) => {\n let order = getState().orderState.inProgressOrder;\n dispatch({\n type: 'RECEIVE_ORDER_INPROGRESS',\n order: {\n ...(order || { reason: '', recipients: [] }),\n taskItems: taskItems,\n notifyMe: false\n }\n });\n\n if (multiple)\n dispatch(push('/new-task/bulk'));\n else\n dispatch(push('/new-task/single'));\n },\n\n clearInProgressOrder: (): AppThunkAction => (dispatch, getState) => {\n dispatch({\n type: 'CLEAR_ORDER_INPROGRESS'\n });\n },\n\n startNewOrder: (): AppThunkAction => (dispatch, getState) => {\n dispatch(orderActionCreators.clearInProgressOrder());\n dispatch(push('/new-task'));\n },\n\n backToOrderStepOne: (): AppThunkAction => (dispatch, getState) => {\n dispatch(push('/new-task'));\n },\n\n shareOrder: (id: number, email: string, tasks: number[], password: string, message: string, onDone: (result: boolean) => void): AppThunkAction => (dispatch, getState) => {\n const user = getState().userState.user;\n\n if (user && user.token) {\n dispatch({\n type: 'START_SHARE_ORDER'\n });\n\n const url = `/v1/reports/${id}/share`;\n fetch(url, {\n method: 'post',\n headers: {\n 'Content-type': 'application/json',\n 'authorization': `bearer ${user.token}`\n },\n body: JSON.stringify({\n email: email,\n tasks: tasks,\n password: password,\n message: message\n })\n })\n .then(response => {\n if (response.ok) {\n return response.json();\n }\n else if (response.status === 401 || response.status === 403) {\n dispatch({\n type: 'LOG_OUT'\n });\n dispatch(push('/login'));\n return Promise.resolve(undefined);\n }\n else\n return response.text().then(text => { throw text; });\n })\n .then(() => {\n dispatch({\n type: 'FINISH_SHARE_ORDER'\n });\n onDone(true);\n })\n .catch((err: any) => {\n console.error(err);\n alert(err);\n });\n }\n else {\n dispatch(push('/login'));\n }\n },\n\n notifyUser: (id: number, name: string, email: string, message: string, onDone: (result: boolean) => void, onError: () => void): AppThunkAction => (dispatch, getState) => {\n const user = getState().userState.user;\n\n if (user && user.token) {\n dispatch({\n type: 'START_NOTIFY_USER'\n });\n\n const url = `/v1/orders/${id}/notifyuser`;\n fetch(url, {\n method: 'post',\n headers: {\n 'Content-type': 'application/json',\n 'authorization': `bearer ${user.token}`\n },\n body: JSON.stringify({\n name: name,\n email: email,\n message: message\n })\n })\n .then(response => {\n if (response.ok) {\n return response.json();\n }\n else if (response.status === 401 || response.status === 403) {\n dispatch({\n type: 'LOG_OUT'\n });\n dispatch(push('/login'));\n return Promise.resolve(undefined);\n }\n else\n return response.text().then(text => { throw text; });\n })\n .then(() => {\n dispatch({\n type: 'FINISH_NOTIFY_USER'\n });\n onDone(true);\n })\n .catch((err: any) => {\n console.error(err);\n onError();\n });\n }\n else {\n dispatch(push('/login'));\n }\n },\n\n editContact: (id: number, name: string, email: string, phone: string, onDone: (result: boolean) => void): AppThunkAction => (dispatch, getState) => {\n const user = getState().userState.user;\n\n if (user && user.token) {\n dispatch({\n type: 'START_EDIT_CONTACT'\n });\n\n const url = `/v1/orders/${id}/editcontact`;\n fetch(url, {\n method: 'post',\n headers: {\n 'Content-type': 'application/json',\n 'authorization': `bearer ${user.token}`\n },\n body: JSON.stringify({\n name: name,\n email: email,\n phone: phone\n })\n })\n .then(response => {\n if (response.ok) {\n return response.json();\n }\n else if (response.status === 401 || response.status === 403) {\n dispatch({\n type: 'LOG_OUT'\n });\n dispatch(push('/login'));\n return Promise.resolve(undefined);\n }\n else\n return response.text().then(text => { throw text; });\n })\n .then(() => {\n dispatch({\n type: 'FINISH_EDIT_CONTACT'\n });\n onDone(true);\n })\n .catch((err: any) => {\n console.error(err);\n alert(err);\n });\n }\n else {\n dispatch(push('/login'));\n }\n },\n\n reIssueTask: (orderId: number, taskId: number, reason: string, onDone: (result: boolean) => void, onError: () => void): AppThunkAction => (dispatch, getState) => {\n const user = getState().userState.user;\n if (user && user.token) {\n dispatch({\n type: 'START_REISSUE_TASK'\n });\n\n const url = `/v1/orders/${orderId}/reissuetask`;\n fetch(url, {\n method: 'put',\n headers: {\n 'Content-type': 'application/json',\n 'authorization': `bearer ${user.token}`\n },\n body: JSON.stringify({\n taskId: taskId,\n reason: reason\n })\n })\n .then(response => {\n if (response.ok) {\n return response.json();\n }\n else if (response.status === 401 || response.status === 403) {\n dispatch({\n type: 'LOG_OUT'\n });\n dispatch(push('/login'));\n return Promise.resolve(undefined);\n }\n else\n return response.text().then(text => { throw text; });\n })\n .then(() => {\n dispatch({\n type: 'FINISH_REISSUE_TASK'\n });\n onDone(true);\n })\n .catch((err: any) => {\n console.error(err);\n onError();\n });\n }\n else {\n dispatch(push('/login'));\n }\n },\n\n requestInvoice: (invoiceId: string): AppThunkAction => (dispatch, getState) => {\n dispatch({ type: 'REQUEST_INVOICE' });\n const url = `/v1/invoice/${invoiceId}`;\n fetch (url, {\n method: 'get',\n headers: {\n 'Content-type': 'application/json'\n }\n })\n .then((response) => {\n if (response.ok)\n return response.json() as Promise;\n else\n return response.text().then(text => { throw text; });\n })\n .then((orderInvoice?: OrderInvoice) => {\n if (orderInvoice) {\n dispatch({\n type: 'RECEIVE_INVOICE',\n orderInvoice: orderInvoice\n });\n }\n })\n .catch((err: any) => {\n console.error(err);\n alert(err);\n });\n },\n}\n","export const zeroLeft = (input: number, digits: number = 2) => {\n let zeroPad = '';\n if (input >= Math.pow(10, digits)) return `${input}`;\n for (let i = 0; i < digits; i++) zeroPad += '0';\n\n return (zeroPad + input).slice(-1 * digits);\n}\n\nexport const getPaymentDescription = (payBy: string) => {\n switch (payBy) {\n case \"creditcard\":\n return 'Paid by credit card';\n default:\n return 'Invoiced to';\n }\n}\n\nexport const cardNumberWithSpace = (cardNumber: string) => {\n let result = cardNumber;\n if (cardNumber.length >= 16) {\n result = `${cardNumber.substring(0,4)} ${cardNumber.substring(4,8)} ${cardNumber.substring(8,12)} ${cardNumber.substring(12,16)}`\n }\n return result\n}\n\nexport const creditCardStatus = (status: string) => {\n switch (status) {\n case \"Processed\":\n return 'Paid';\n default:\n return status;\n }\n}\n\nexport const braintreeTransactionStatus = (status: string) => {\n switch (status) {\n case \"AUTHORIZING\":\n case \"AUTHORIZED\":\n return 'Pending';\n case \"SUBMITTED_FOR_SETTLEMENT\":\n case \"SETTLEMENT_PENDING\":\n case \"SETTLING\":\n case \"SETTLED\":\n case \"SETTLEMENT_CONFIRMED\":\n return 'Paid';\n case \"AUTHORIZATION_EXPIRED\":\n case \"GATEWAY_REJECTED\":\n case \"PROCESSOR_DECLINED\":\n case \"FAILED\":\n case \"UNRECOGNIZED\":\n case \"SETTLEMENT_DECLINED\":\n return 'Failed';\n case \"VOIDED\":\n return 'Voided';\n default:\n return status; \n }\n}","import { zeroLeft } from \"./format\";\n\nexport const convertDate = (str: string) => {\n if (!str)\n return new Date();\n if (str.startsWith('/Date')) {\n let value = str\n .replace(\"/Date(\", \"\")\n .replace(\")/\", \"\");\n let num = parseInt(value, 10);\n let result = new Date(num);\n return result;\n }\n else\n return new Date(Date.parse(str));\n};\n\nexport const getDayOfWeek = (day: number) => {\n switch (parseInt(day as any)) {\n case 1: return 'Monday';\n case 2: return 'Tuesday';\n case 3: return 'Wednesday';\n case 4: return 'Thursday';\n case 5: return 'Friday';\n case 6: return 'Saturday';\n case 0: return 'Sunday';\n default: return null;\n }\n};\n\nexport const getMonthName = (month: number) => {\n switch (month) {\n case 0: return 'January';\n case 1: return 'February';\n case 2: return 'March';\n case 3: return 'April';\n case 4: return 'May';\n case 5: return 'June';\n case 6: return 'July';\n case 7: return 'August';\n case 8: return 'September';\n case 9: return 'October';\n case 10: return 'November';\n case 11: return 'December';\n default: return null;\n }\n}\n\nexport const howLongAgo = (from: Date) => {\n const now = new Date();\n const diff = (now as any) - (from as any);\n const dayDiff = diff / (24*60*60*1000);\n\n if (diff < 0) return 'the future';\n else if (dayDiff < 1) {\n const minuteDiff = diff / (60 * 60 * 1000);\n\n if (minuteDiff < 0.5) return `${Math.round(minuteDiff * 60)} seconds ago`;\n if (minuteDiff <= 1.5) return 'a minute ago';\n if (minuteDiff < 55) return `${Math.round(minuteDiff)} minutes ago`;\n if (minuteDiff <= 90) return 'an hour ago';\n \n return `${Math.round(minuteDiff / 60)} hours ago`;\n }\n else if (dayDiff < 2) {\n return 'yesterday';\n }\n else if (dayDiff < 11) {\n return `${Math.round(dayDiff)} days ago`;\n }\n else if (dayDiff < 30) {\n return `${Math.round(dayDiff / 7)} weeks ago`;\n }\n else if (dayDiff < 335) {\n return `${Math.round(dayDiff / 30)} months ago`;\n }\n else if (dayDiff < 548) {\n return 'a year ago';\n }\n\n return `${Math.round(dayDiff / 365)} years go`;\n}\n\nexport const addDays = (date: Date, days: number) => {\n var resultDate = new Date(date.valueOf());\n resultDate.setDate(date.getDate() + days);\n return resultDate;\n}\n\nexport const addMinutes = (date: Date, minutes: number) => {\n var resultDate = new Date(date.valueOf());\n resultDate.setMinutes(date.getMinutes() + minutes);\n return resultDate;\n}\n\nexport const getDateString = (date: Date) => {\n return `${date.toISOString().split('T')[0]}`;\n}\n\nexport const getDateStringLocal = (date: Date) => {\n return `${date.getFullYear()}-${zeroLeft(date.getMonth() + 1, 2)}-${zeroLeft(date.getDate(), 2)}`;\n}\n\nexport const getTimeString = (date: Date) => {\n return `${date.toISOString().split('T')[1]}`;\n}\n\nexport const getDurationHours = (from: Date, to: Date) => {\n return ((to as any) - (from as any)) / 3600000;\n}\n\nexport const getDurationMinutes = (from: Date, to: Date) => {\n return Math.abs((to as any) - (from as any)) / 60000;\n}\n\nexport const getDateDifferenceMinutes = (from: Date, to: Date) => {\n return ((to as any) - (from as any)) / 60000;\n}\n\nexport const getDurationSeconds = (from: Date, to: Date) => {\n return ((to as any) - (from as any)) / 1000;\n}\n\nexport const convertTimespanToMinutes = (time: string) => {\n if (!time) return 0;\n const regex = /P((([0-9]*\\.?[0-9]*)Y)?(([0-9]*\\.?[0-9]*)M)?(([0-9]*\\.?[0-9]*)W)?(([0-9]*\\.?[0-9]*)D)?)?(T(([0-9]*\\.?[0-9]*)H)?(([0-9]*\\.?[0-9]*)M)?(([0-9]*\\.?[0-9]*)S)?)?/;\n let matches = time.match(regex);\n if (matches != null) {\n let hours = parseFloat(matches[12] || '0');\n let minutes = parseFloat(matches[14] || '0');\n let seconds = parseFloat(matches[16] || '0');\n\n return (hours * 60) + minutes + (seconds / 60);\n }\n else\n return 0;\n}\n\nexport const convertTimespanToSeconds = (time: string) => {\n if (!time) return 0;\n const regex = /P((([0-9]*\\.?[0-9]*)Y)?(([0-9]*\\.?[0-9]*)M)?(([0-9]*\\.?[0-9]*)W)?(([0-9]*\\.?[0-9]*)D)?)?(T(([0-9]*\\.?[0-9]*)H)?(([0-9]*\\.?[0-9]*)M)?(([0-9]*\\.?[0-9]*)S)?)?/;\n let matches = time.match(regex);\n if (matches != null) {\n let hours = parseFloat(matches[12] || '0');\n let minutes = parseFloat(matches[14] || '0');\n let seconds = parseFloat(matches[16] || '0');\n\n return (hours * 60 * 60) + (minutes * 60) + seconds;\n }\n else\n return 0;\n}\n\nexport const convertMinutesToDuration = (minutes: number) => {\n let hours = Math.floor(minutes / 60);\n let mins = minutes % 60;\n return `${zeroLeft(hours)}:${zeroLeft(mins)}`;\n}\n\nexport const convertMinutesToTimespan = (minutes: number) => {\n minutes = parseInt(minutes.toString());\n if (minutes < 60)\n return `PT${minutes % 60}M`;\n else if (minutes % 60 === 0)\n return `PT${parseInt((minutes / 60).toString())}H`;\n else\n return `PT${parseInt((minutes / 60).toString())}H${minutes % 60}M`;\n}\n\nexport const convertTimespanToNiceTimeString = (time: string) => {\n let totalMinutes = convertTimespanToMinutes(time);\n return getNiceTimeString(totalMinutes);\n}\n\nexport const convertDurationToMinutes = (time: string) => {\n let arr = time.split(':');\n let hours = parseInt(arr[0]);\n let minutes = parseInt(arr[1]);\n return (hours * 60) + minutes;\n}\n\nexport const convertStringToDate = (str: string) => {\n return new Date(Date.parse(str));\n}\n\nexport const getLocalISOString = (date: Date) => {\n let year = date.getFullYear();\n let month = zeroLeft(date.getMonth() + 1, 2);\n let day = zeroLeft(date.getDate(), 2);\n let hour = zeroLeft(date.getHours(), 2);\n let minute = zeroLeft(date.getMinutes(), 2);\n\n return `${year}-${month}-${day}T${hour}:${minute}:00.000`;\n}\n\nexport const getNiceDateString = (date: Date) => {\n let year = date.getFullYear();\n let month = getMonthName(date.getMonth());\n let day = date.getDate();\n\n return `${month} ${day}, ${year}`;\n}\n\nexport const getNiceDateDayString = (dayOfMonth: number) => {\n switch (dayOfMonth) {\n case 1:\n return '1st';\n case 2:\n return '2nd';\n case 3:\n return '3rd';\n default:\n return `${dayOfMonth}th`;\n }\n}\n\nexport const getStartOfWeekMonday = (inputDate: Date) => {\n let date = new Date(inputDate.getFullYear(), inputDate.getMonth(), inputDate.getDate());\n let day = date.getDay();\n let diff = date.getDate() - day + (day === 0 ? -6 : 1)\n return new Date(date.setDate(diff));\n}\n\nexport const getNiceTimeStringFromDate = (date: Date) => {\n const startOfDay = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);\n const diffInMs = date.getTime() - startOfDay.getTime();\n const minutes = diffInMs / 60000;\n \n return getNiceTimeString(minutes);\n}\n\nexport const getNiceTimeString = (totalMinutes: number) => {\n let hours = Math.floor(totalMinutes / 60);\n let minutes = Math.floor(totalMinutes % 60);\n\n while (hours >= 24) {\n hours -= 24;\n }\n\n let ampm = hours >= 12 ? 'pm' : 'am';\n\n if (hours > 12)\n hours -= 12;\n else if (hours === 0)\n hours = 12;\n\n return `${zeroLeft(hours, 2)}:${zeroLeft(minutes, 2)}${ampm}`;\n}\n","import React, { useState } from 'react';\nimport Select from 'react-select';\nimport { ReportShare } from '../../models/reportShare';\nimport { Tooltip } from '../tooltip';\n\nexport const ShareReportModalMain = (props: Props) => {\n // TODO: only select a single report when opening from 'per-report' button\n const [selectedReports, setSelectedReports] = useState(props.reports);\n const [email, setEmail] = useState('');\n const [dropdown, setDropdown] = useState(null);\n\n const getSharesByEmail = () => {\n let count: SharesByEmail[] = [];\n\n if (!props.shares) return count;\n\n props.shares.forEach(s => {\n // check if matching report is selected\n if (!selectedReports.some(r => r.value === s.reportGuid)) return;\n\n const match = count.find(r => r.email === s.email);\n if (match) {\n match.count++;\n } else {\n count.push({ email: s.email, count: 1, pending: s.pending });\n }\n });\n\n return count.sort((a, b) => a.email > b.email ? 1 : -1);\n };\n\n const sharesByEmail = getSharesByEmail();\n\n return (\n
\n setEmail(e.target.value)} />\n \n
\n Currently shared\n
\n
\n {props.shares ? \n sharesByEmail.length > 0 ?\n sharesByEmail.map((s, i) => (\n
\n
\n
{s.email}
\n

{s.count} shared {s.count > 1 ? 'reports' : 'report'}

\n
\n
\n \n { setDropdown(null) }}\n top={false}\n active={dropdown === i}\n align='left'\n light>\n
\n \n \n
\n \n
\n
\n )) :\n
\n \n

No reports are being shared

\n
:\n

Loading...

\n }\n
\n
\n );\n}\n\ninterface Props {\n reports: ReportOption[];\n shares?: ReportShareExtended[]; // undefined = fetching\n onUnshareClick: (email: string) => void;\n onAddClick: (email: string) => void;\n}\n\ninterface ReportOption {\n label: string;\n value: string;\n}\n\ninterface SharesByEmail {\n email: string;\n count: number;\n pending?: boolean;\n}\n\ninterface ReportShareExtended extends ReportShare {\n pending?: boolean;\n}\n","import * as React from 'react';\nimport './multiselect.scss';\n\nexport const Multiselect: React.FC = (props) => {\n const toggleSelect = (value: string) => {\n let nowSelected;\n\n if (props.selected.includes(value)) {\n nowSelected = props.selected.filter(v => {\n if (v === value) return false;\n return true;\n });\n } else {\n nowSelected = [...props.selected, value];\n }\n\n props.onChange(nowSelected);\n }\n\n return
\n {props.items.map(item => {\n const selected = props.selected.includes(item.value);\n return toggleSelect(item.value)}>\n {item.label}\n \"\"\n
;\n })}\n \n}\n\ninterface MultiselectProps {\n items: {\n label: string;\n value: string;\n }[];\n selected: string[];\n onChange: (selected: string[]) => void;\n}\n","import React, { useState } from 'react';\nimport { useDispatch } from 'react-redux';\nimport { Loading } from '../loading';\nimport { Multiselect } from '../multiselect';\nimport { orderActionCreators } from '../../store/orders/actionCreators';\nimport { Order } from '../../models/order';\nimport { ReportShare } from '../../models/reportShare';\n\nexport const ShareReportModalAdd = (props: Props) => {\n const [password, setPassword] = useState('');\n const [showPassword, setShowPassword] = useState(false);\n const [selectedReports, setSelectedReports] = useState(\n props.shares ?\n props.shares.map(x => x.reportGuid) :\n props.reports.map(x => x.value)\n );\n const [sending, setSending] = useState(false);\n\n const dispatch = useDispatch();\n\n const shareReport = () => {\n if (!props.shares) return;\n\n setSending(true);\n\n // get reports' corresponding task IDs\n const taskIds = selectedReports.map(guid => props.order.tasks.find(t => t.reportGuid === guid)!.id);\n\n dispatch(orderActionCreators.shareOrder(\n props.order.id,\n props.email,\n taskIds,\n password,\n '', // message, TODO: this doesn't exist anymore\n props.onDone\n ));\n }\n\n return (\n <>\n {sending\n ? \n : (\n
\n \n
\n \n

\n This will be required to view the reports you are sharing. You will need to communicate \n this password with your recipient as Olasio will not send this out.\n

\n
\n )\n }\n
\n \n \n Share\n \n
\n \n );\n}\n\ninterface Props {\n order: Order;\n reports: ReportOption[];\n shares?: ReportShare[]; // undefined = fetching\n onBack: () => void;\n onDone: () => void;\n email: string;\n}\n\ninterface ReportOption {\n label: string;\n value: string;\n}\n","import React, { useState } from 'react';\nimport { useSelector } from 'react-redux';\nimport { Loading } from '../loading';\nimport { Multiselect } from '../multiselect';\nimport { Order } from '../../models/order';\nimport { ApplicationState } from '../../store';\n\nexport const ShareReportModalEdit = (props: Props) => {\n const [reportsToUnshare, setReportsToUnshare] = useState([]);\n const [unsharing, setUnsharing] = useState(false);\n\n const user = useSelector((state: ApplicationState) => state.userState.user);\n\n const unshareReports = async () => {\n setUnsharing(true);\n\n const shareIds = reportsToUnshare.map(guid => props.reports.find(r => r.value === guid)!.shareId);\n const url = `/v1/reports/${props.order.id}/unshare`;\n\n try {\n const res = await fetch(url, {\n method: 'post',\n headers: {\n 'Content-Type': 'application/json',\n 'Authorization': `bearer ${user!.token}`,\n },\n body: JSON.stringify(shareIds),\n });\n\n if (!res.ok) {\n const text = await res.text();\n throw text;\n }\n\n // TODO: partial fail is reflected in the data\n // const data = res.json();\n props.onDone();\n } catch (err) {\n console.error(err);\n alert(err);\n }\n }\n\n return (\n <>\n {unsharing\n ? \n : (\n
\n \n
\n )\n }\n
\n \n \n Confirm\n \n
\n \n );\n}\n\ninterface Props {\n order: Order;\n email: string;\n reports: ReportOption[];\n onBack: () => void;\n onDone: () => void;\n}\n\ninterface ReportOption {\n label: string;\n value: string;\n shareId: number;\n}\n","import './addressField.scss';\nimport { initPlacesLibrary } from '../../utils/googleMaps';\nimport styles from '../core/input.module.scss';\nimport React, { Component, createRef } from 'react';\n\n// places library config\nconst options: google.maps.places.AutocompleteOptions = {\n componentRestrictions: { country: 'au' },\n types: ['address'], // return only geocoding results with precise address\n fields: ['address_components', 'geometry'], // return only required data to avoid extra costs\n};\nconst addressComponentsFormat = {\n street_number: 'short_name',\n route: 'long_name',\n locality: 'long_name',\n administrative_area_level_1: 'short_name',\n country: 'long_name',\n postal_code: 'short_name',\n};\n\n// custom validation messages\nenum Error {\n Empty = 'Please provide an address',\n NoStreetNumber = 'Please provide an address with street number',\n SelectionRequired = 'Please select an address from the dropdown list',\n}\n\ntype Props = {\n value: string;\n onChange: (value: string) => void;\n onChangeAddress: (address: Address) => void;\n error: string;\n onError: (error: Error | null) => void;\n placeholder?: string;\n label?: string;\n};\n\nexport class AddressField extends Component {\n ref = createRef();\n\n componentDidMount() {\n initPlacesLibrary().then(this.initAutocomplete);\n }\n\n componentWillUnmount() {\n // a new container instance is added every time autocomplete is initialised,\n // however there is no way to reference the matching container, so cleanup\n // might cause issues if multiple autocomplete exists\n const container = document.querySelector('.pac-container');\n if (container) {\n container.remove();\n }\n }\n\n initAutocomplete = () => {\n const input = this.ref.current;\n\n // invalidate empty input\n if (!this.props.value) {\n this.props.onError(null);\n }\n\n const autocomplete = new google.maps.places.Autocomplete(input as HTMLInputElement, options);\n\n autocomplete.addListener('place_changed', () => {\n const { address_components, geometry } = autocomplete.getPlace();\n const address: PlacesApiAddress = {}; // required address data stored here\n address_components?.forEach(comp => {\n const componentType = comp.types[0]; // street_number, route, etc.\n const requiredFormat = addressComponentsFormat[componentType]; // long_name, short_name\n if (requiredFormat) {\n address[componentType] = comp[requiredFormat];\n }\n });\n address.lat = geometry?.location.lat();\n address.lng = geometry?.location.lng();\n\n // construct address string, the format matches what autocomplete\n // populates in the input element, this prevents suggestions from showing\n // up multiple times\n\n if(!address.street_number && !address.locality){\n this.props.onError(Error.SelectionRequired);\n return;\n }\n\n // invalidate address without street number\n if (!address.street_number) {\n //const invalidAddress = `${address.route}, ${address.locality} ${address.administrative_area_level_1}, ${address.country}`;\n //this.props.onChange(invalidAddress);\n this.props.onError(Error.NoStreetNumber);\n return;\n }\n\n const formattedAddress = `${address.street_number} ${address.route}, ${address.locality} ${address.administrative_area_level_1}, ${address.country}`;\n this.props.onChange(formattedAddress); // store string\n this.props.onChangeAddress({\n number: address.street_number,\n street: address.route,\n suburb: address.locality,\n postcode: address.postal_code,\n state: address.administrative_area_level_1,\n country: address.country,\n latitude: address.lat,\n longitude: address.lng,\n }); // store structured address\n this.props.onError(null);\n });\n };\n\n handleChange = (e: any) => {\n this.props.onChange(e.target.value);\n // any manual changes will invalidate the address\n this.props.onError(e.target.value ? Error.SelectionRequired : Error.Empty);\n };\n\n render() {\n return (\n
\n {this.props.label && }\n \n {this.props.error &&
{this.props.error}
}\n
\n );\n }\n}\n\ntype PlacesApiAddress = {\n street_number?: string;\n route?: string; // street name\n locality?: string; // suburb\n administrative_area_level_1?: string; // state\n country?: string;\n postal_code?: string;\n lat?: number;\n lng?: number;\n};\n\nexport type Address = {\n number: string;\n street?: string;\n suburb?: string;\n postcode?: string;\n state?: string;\n country?: string;\n latitude?: number;\n longitude?: number;\n};\n","import React from \"react\";\nimport \"./actionResultModal.scss\";\n\ntype Props = {\n type: 'success' | 'failure';\n message: string;\n onConfirm: () => void;\n};\n\nexport const ActionResultModal = (props: Props) => (\n
\n {props.type === 'success' ?\n\n \"\"\n :\n \"\"\n }\n

{props.message}

\n \n
\n);\n","export default __webpack_public_path__ + \"static/media/back-arrow-sm.bd6d0b24.svg\";","export default __webpack_public_path__ + \"static/media/chevron-down.80d0b11a.svg\";","export const unique = (value: any, index: number, self: any[]) => {\n return self.indexOf(value) === index;\n}","import * as React from 'react';\nimport { Order } from '../../models/order';\nimport { getNiceDateString, convertDate, convertStringToDate } from '../../helpers/dates';\nimport { connect, useSelector } from 'react-redux';\nimport { modalActionCreators } from '../../store/modal';\nimport { Dispatch, bindActionCreators } from 'redux';\nimport { orderActionCreators } from '../../store/orders/actionCreators';\nimport { Loading } from '../loading';\nimport { Link } from 'react-router-dom';\nimport { Tooltip } from '../tooltip';\nimport { ShareReportModal } from './shareReportModal';\nimport { ActionResultModal } from './actionResultModal';\nimport backArrow from '../../assets/back-arrow-sm.svg';\nimport chevronDown from '../../assets/chevron-down.svg';\nimport { ApplicationState } from '../../store';\nimport { unique } from '../../helpers/array';\n\nconst OrderRow: React.FC = (props) => {\n const [active, setActive] = React.useState(false);\n const dateRequested = getNiceDateString(convertDate(props.order.createdUtc));\n const reportCount = props.order.tasks.length;\n const doneCount = props.order.tasks.filter(t => !!t.reportUrl).length;\n const readyCount = props.order.tasks.filter(t => !!t.reportUrl && !t.isExpired).length;\n let status = props.order.status === 'Confirmed' ? 'Sent' : props.order.status;\n const owner = props.order.recipient;\n const organisation = useSelector((state: ApplicationState) => state.orgState.organisation);\n const organisationFilter = organisation?.keyValueSettings?.filter(x => x.key.toLocaleLowerCase() === 'financeurl');\n const organisationUrl = organisationFilter && organisationFilter.length > 0 ? organisationFilter[0].value : '';\n const [showMore, setShowMore] = React.useState(false); // mobile tooltip\n const tags = props.order.tasks.filter(t => !!t.taskTags.length).length;\n const summedProgress = props.order.tasks\n .map(t => {\n if (t.reportUrl)\n return 1;\n \n if (!t.taskSurveyItems || t.taskSurveyItems.length <= 0)\n return 0;\n \n return t.taskSurveyItems.filter(tsi => tsi.completed).length / t.taskSurveyItems.length;\n })\n .reduce((total, val) => total + val);\n\n if (status === 'Sent' && summedProgress > 0) {\n status = 'InProgress'\n }\n const statusClass = status.toLowerCase().replace(' ', '');\n\n const showNotifyModal = (e: React.MouseEvent) => {\n e.stopPropagation();\n props.modalActions.showModal(, 'Send reminder');\n };\n\n const showCancelModal = (e: React.MouseEvent) => {\n e.stopPropagation();\n props.modalActions.showModal(, 'Do you want to cancel this request?');\n };\n\n const showEditModal = (e: React.MouseEvent) => {\n e.stopPropagation();\n props.modalActions.showModal(, 'Edit contact details');\n };\n\n const showReIssueTaskModal = (e: React.MouseEvent, taskId: number) => {\n e.stopPropagation();\n props.modalActions.showModal(, 'Reissue task');\n };\n\n const showArchiveModal = (e: React.MouseEvent) => {\n e.stopPropagation();\n props.modalActions.showModal(, 'Do you want to archive this task?');\n };\n\n const showShareModal = (e: React.MouseEvent) => {\n e.stopPropagation();\n props.modalActions.showModal(, 'Report sharing');\n };\n\n const openReport = (url: string) => {\n var split = url.split('/');\n if (split && split[4]) {\n var guid = split[4].split('?');\n if (guid && guid.length > 0)\n window.open(\"/report/\" + guid[0]);\n }\n };\n\n return (\n
\n {/* MOBILE */}\n
\n
\n
\n
\n {status === 'Sent' ?\n 'Sent to customer' :\n status === 'InProgress' ?\n `In progress` :\n `${status} (${doneCount} / ${reportCount})`\n }\n
\n
\n
\n

{owner && owner.name}

\n
\n
Email: {owner && owner.email}
\n
Contact number: {owner && owner.phone}
\n
\n
\n
Reference: {props.order.externalReference || props.order.referenceId}
\n
Requested {dateRequested} by {props.order.createdByName}
\n
\n
\n
\n \n
\n \n \n setShowMore(false)}\n top={false}\n active={showMore}\n align='left'\n light\n >\n
\n {status === 'Completed' ? <>\n {readyCount > 0 ? : null}\n \n : <>\n \n {status !== 'InProgress' && }\n \n }\n
\n \n
\n
\n
\n
\n {active ?\n :\n \n }\n
\n {active ?\n
\n {props.order.tasks.map(s => {\n const completed = !!s.reportUrl;\n const expiryDate = getNiceDateString(convertStringToDate(s.reportExpiryUtc || ''));\n return {\n if (s.reportUrl)\n openReport(`${s.reportUrl}`);\n }}>\n
\n
\n
\n {`${s.name}`} {s.reportExpiryUtc ?\n s.isExpired\n ? `(expired on ${expiryDate})`\n : `(expires on ${expiryDate})`\n : ''}\n {s.fullDescription &&
{s.fullDescription}
}\n
\n {s.taskTags\n .map(t => t.outcome)\n .filter(unique)\n .map(outcome => {\n return
{outcome}
\n })}\n
\n {\n completed && !s.isExpired ?\n
\n showReIssueTaskModal(e, s.id)}>\n Re-issue\n
\n
\n Open report\n
\n
: ''\n }\n \n })}\n
\n : null\n }\n
\n {tags ? Warning : ''}\n
\n {/* DESKTOP */}\n \n
\n

Reference: {props.order.externalReference || props.order.referenceId}

\n
\n
\n Requested {dateRequested} by {props.order.createdByName}\n
\n
\n
\n
\n
\n
\n {owner && owner.name}\n
\n
\n Email: {owner && owner.email}\n
\n
\n Contact number: {owner && owner.phone}\n
\n
\n
\n {status === 'Sent' ?\n 'Sent to customer' :\n status === 'InProgress' ?\n `In progress` :\n `${status} (${doneCount} / ${reportCount})`\n }\n
\n
\n
\n setActive(!active)}\n className={`order-row-actions ${active ? 'active' : ''} ${statusClass}`}>\n
\n {status === 'Archived' ?\n {\n props.orderActions.startNewOrder();\n }}>\n Re-Order This Task\n : organisationUrl !== '' ?\n : ''\n }\n
\n
\n {status !== 'Archived' ? <>\n {status !== 'Completed' ?\n <>\n \n \n {status !== 'InProgress' && }\n :\n \n }\n : ''}\n {readyCount > 0 &&\n \n }\n {active ?\n :\n \n }\n
\n
\n {active ?
e.stopPropagation()}>\n {props.order.tasks.map(s => {\n let progress = 0;\n if (s.reportUrl)\n progress = 1;\n else\n progress = s.taskSurveyItems.filter(tsi => tsi.completed).length / s.taskSurveyItems.length;\n \n progress = Math.round(progress * 100);\n\n let reportStatus = s.reportUrl ? 'completed' : progress > 0 ? 'inprogress' : 'notcompleted';\n\n return
\n
\n
\n \n \n {s.name} {s.reportExpiryUtc ?\n <>\n {s.isExpired ? '' : `(expires on ${getNiceDateString(convertStringToDate(s.reportExpiryUtc || ''))})`}\n \n : ''}\n {s.fullDescription &&
{s.fullDescription}
}\n
\n
\n {s.taskTags\n .map(t => t.outcome)\n .filter(unique)\n .map(outcome => {\n return
{outcome}
\n })}\n
\n {\n reportStatus === 'completed' && !s.isExpired ?\n
\n
showReIssueTaskModal(e, s.id) }>Reissue
\n {\n if (s.reportUrl)\n openReport(`${s.reportUrl}`);\n }}>\n View report\n \n
:\n reportStatus === 'completed' && s.isExpired ?\n Expired on {getNiceDateString(convertStringToDate(s.reportExpiryUtc || ''))} :\n {\n s.submissionGuid && s.name?.toUpperCase() == 'IDENTITY VERIFICATION' ? 'Awaiting ID provider' : //survey id for NCC\n s.submissionGuid ? 'Generating' : (reportStatus == 'inprogress' ? 'In progress' : 'Sent to customer')}\n }\n
\n })}\n
: ''}\n {tags ? Warning : ''}\n
\n\n \n );\n}\n\nconst ArchiveModal: React.FC = (props) => {\n return <>\n

\n This task will be archived, all reports and sensitive\n information will be deleted once report expired.\n

\n

\n Task information will still be available, you will be able\n to find task under Archived.\n

\n
\n \n \n
\n ;\n}\n\nconst CancelModal: React.FC = (props) => {\n return <>\n

\n Once your request has been cancelled, it cannot be undone.\n

\n {props.order.status === 'Confirmed' ? '' :

\n No refund will be issued for this request.\n

}\n
\n \n \n
\n \n}\n\nconst NotifyModal: React.FC = (props) => {\n const owner = props.order.recipient;\n const [sending, setSending] = React.useState(false);\n const [done, setDone] = React.useState(false);\n const [error, setError] = React.useState(false);\n\n if (error) {\n return props.modalActions.hideModal()}\n />;\n }\n\n if (done) {\n return props.modalActions.hideModal()}\n />;\n }\n else {\n return <>\n {sending ? :\n
\n

Are you sure you want to send {owner.email} a reminder to complete the following?

\n
    \n {props.order.tasks\n .filter(task => !task.reportGuid)\n .map(task =>
  • {task.name}
  • )\n }\n
\n
}\n
\n \n \n
\n \n }\n}\n\nconst EditContactModal: React.FC = (props) => {\n const owner = props.order.recipient;\n const [editing, setEditing] = React.useState(false);\n const [done, setDone] = React.useState(false);\n const [name, setName] = React.useState(owner ? owner.name : '');\n const [email, setEmail] = React.useState(owner ? owner.email : '');\n const [phone, setPhone] = React.useState(owner ? owner.phone : '');\n\n const handleUndo = () => {\n setName(owner.name);\n setEmail(owner.email);\n setPhone(owner.phone);\n };\n\n if (done) {\n return

Sent!

;\n }\n else {\n return <>\n {editing ?\n :\n
\n Undo\n
\n \n \n \n
\n
\n }\n
\n \n \n
\n \n }\n}\n\nconst ReIssueTaskModal: React.FC = (props) => {\n const defaultReason = \"\";\n const [editing, setReIssue] = React.useState(false);\n const [error, setError] = React.useState(false);\n const [done, setDone] = React.useState(false);\n const [reason, setReason] = React.useState(defaultReason ? defaultReason : '');\n\n if (error) {\n return props.modalActions.hideModal()}\n />;\n }\n\n if (done) {\n return props.modalActions.hideModal()}\n />;\n }\n\n else {\n return <>\n {editing ?\n :\n
\n
\n \n
\n
\n
\n
\n
\n this.setState({ notifyOnTaskComplete: e })}>\n I would like to receive notification once the report is ready\n \n
\n
\n {this.state.errors.map(e => {\n return

{e}

\n })}\n
\n
\n
\n
\n \n
\n
\n \n
\n
\n \n \n );\n }\n\n constructor(props: PageProps) {\n super(props);\n\n this.state = {\n errors: [],\n loading: false,\n reasonError: false,\n notifyOnTaskComplete: false,\n };\n\n // Bindings\n this.nextClick = this.nextClick.bind(this);\n this.prevClick = this.prevClick.bind(this);\n\n // Refs\n this.reasonRef = React.createRef();\n this.fileRef = React.createRef();\n }\n\n reasonRef: React.RefObject;\n fileRef: React.RefObject;\n\n nextClick() {\n if (!this.fileRef.current || !this.fileRef.current?.files || !this.reasonRef.current?.value){\n this.setState({reasonError: true})\n return;\n }\n let csv = this.fileRef.current.files[0];\n if (!csv)\n return;\n\n this.setState({ loading: true, errors: [] });\n let form = new FormData();\n form.append(\"file\", csv);\n console.log(csv);\n\n fetch(`/v1/orders/uploadcsv`, { method: \"POST\", body: form, headers: {\n 'authorization': `bearer ${this.props.userStore.user?.token}`\n } })\n .then(response => {\n if (response.ok) {\n return response.json();\n }\n else {\n return response.text().then(text => { throw text; });\n }\n })\n .then(csvData => {\n if (this.props.orderStore.inProgressOrder) {\n this.props.orderActions.saveAndProgressOrder({\n ...this.props.orderStore.inProgressOrder,\n recipients: csvData,\n reason: this.reasonRef.current?.value || '',\n notifyMe: this.state.notifyOnTaskComplete\n });\n }\n else\n this.props.orderActions.backToOrderStepOne();\n })\n .catch((err) => {\n this.setState({ errors: [ err ] });\n })\n .finally(() => {\n this.setState({\n loading: false\n });\n });\n }\n\n prevClick() {\n this.props.orderActions.backToOrderStepOne();\n }\n\n componentDidMount() {\n if (!this.props.orderStore.inProgressOrder)\n this.props.orderActions.startNewOrder();\n }\n\n static getDerivedStateFromProps(nextProps: PageProps, prevState: PageState) {\n const state = {...prevState};\n\n return state;\n }\n}\n\ninterface PageProps {\n userStore: UserState;\n userActions: typeof userActionCreators;\n orderStore: OrderState;\n orderActions: typeof orderActionCreators;\n orgStore: OrganisationState;\n orgActions: typeof organisationActionCreators;\n}\n\ninterface PageState {\n errors: string[];\n loading: boolean;\n reasonError: boolean;\n notifyOnTaskComplete: boolean;\n}\n\nexport default connect(\n (state: ApplicationState) => ({\n userStore: state.userState,\n orderStore: state.orderState,\n orgStore: state.orgState\n }),\n (dispatch: Dispatch) => {\n return {\n userActions: bindActionCreators(userActionCreators, dispatch),\n orderActions: bindActionCreators(orderActionCreators, dispatch),\n orgActions: bindActionCreators(organisationActionCreators, dispatch)\n };\n }\n)(OrderBulkPage);\n","import { Fragment } from 'react';\nimport { useFormContext } from 'react-hook-form';\nimport { TaskDescriptionField } from '../../models/organisation';\nimport styles from './taskDescription.module.scss';\n\ntype Props = {\n taskName: string;\n taskSettingsId: number;\n fields?: TaskDescriptionField[]; // if empty, fall back to single 'Description' field\n};\n\nconst FieldPrefix = 'task';\n\nexport const TaskDescription = ({ taskName, taskSettingsId, fields }: Props) => {\n const { formState, register } = useFormContext();\n\n const renderField = (label: string, required?: boolean) => {\n const error = formState.errors[`${FieldPrefix}-${taskSettingsId}`]?.[label];\n\n return (\n \n );\n };\n\n return (\n
\n

{taskName}

\n
\n {fields && fields.length > 0\n ? fields\n .sort((a, b) => a.ordinal - b.ordinal)\n .map(field => {renderField(field.label, true)})\n : renderField('Description', true)}\n
\n
\n );\n};\n","// https://html.spec.whatwg.org/multipage/input.html#email-state-(type=email)\nexport const EmailRegex = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;\n","import { useEffect } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { FormProvider, useForm } from 'react-hook-form';\nimport cn from 'classnames';\nimport { TaskDescription } from '../components/newtask/taskDescription';\nimport { orderActionCreators } from '../store/orders/actionCreators';\nimport { EmailRegex } from '../helpers/regex';\nimport { ApplicationState } from '../store';\nimport styles from './orderSingle.module.scss';\nimport chevronLeft from '../assets/chevron-left.svg';\n\n/**\n * ideas/todos:\n * - trim whitespace before submitting\n * - show error messages below inputs (will be needed if task descriptions have dynamic regex)\n */\n\ntype FormData = {\n name: string;\n phone: string;\n email: string;\n externalReference: string;\n reason: string;\n notifyMe: boolean;\n};\n\nexport const OrderSinglePage = () => {\n const dispatch = useDispatch();\n const inProgressOrder = useSelector((state: ApplicationState) => state.orderState.inProgressOrder);\n const recipient = inProgressOrder?.recipients?.[0];\n const taskItems = useSelector((state: ApplicationState) => state.orderState.inProgressOrder?.taskItems);\n\n useEffect(() => {\n if (!inProgressOrder) {\n dispatch(orderActionCreators.startNewOrder());\n }\n }, [inProgressOrder, dispatch]);\n\n const { register, formState, handleSubmit, setValue } = useForm();\n\n // task description fields\n const methods = useForm();\n\n const prevClick = () => dispatch(orderActionCreators.backToOrderStepOne());\n\n const nextClick = async () => {\n let staticData: FormData | undefined;\n let dynamicData: any | undefined; // can this be typed better?\n\n await handleSubmit(data => {\n staticData = data;\n })();\n await methods.handleSubmit(data => {\n dynamicData = data;\n })();\n\n if (staticData && dynamicData && taskItems && inProgressOrder?.taskItems) {\n dispatch(orderActionCreators.saveAndProgressSingleOrder({\n ...inProgressOrder,\n recipients: [\n {\n name: staticData.name,\n phone: staticData.phone,\n email: staticData.email,\n externalReference: staticData.externalReference,\n tasks: taskItems.map(item => ({\n id: item.id,\n description: Object.entries(dynamicData[`task-${item.id}`]).map(([k, v]) => v as string).join(' '),\n descriptions: Object.entries(dynamicData[`task-${item.id}`]).map(([k, v]) => ({\n label: k,\n value: v as string,\n }))\n }))\n }\n ],\n reason: staticData.reason,\n notifyMe: staticData.notifyMe,\n }));\n }\n };\n\n const renderErrorMessage = () => {\n const errors = Object.values(formState.errors);\n if (errors.length === 0) {\n return null;\n }\n return

{errors.length > 1 ? 'Please fix the highlighted fields to continue' : errors[0]?.message!}

\n }\n\n return (\n
\n
\n
\n

Recipient details

\n

Please provide details of the person who will be performing the Source Task.

\n
\n\n \n \n
\n \n
\n
\n
\n \n
\n
\n
\n

Task details

\n

Please provide details for the tasks included.

\n \n
\n {taskItems && taskItems.map(task => (\n
\n \n
\n ))}\n
\n
\n
\n
\n
\n
\n

Message to recipient

\n {formState.errors.reason && Required*}\n
\n

Please provide a message or reason for this request.

\n \n
\n
\n
\n \n
\n {renderErrorMessage()}\n
\n \n \n
\n
\n
\n );\n}\n","import React, { useEffect, useState } from 'react';\nimport { RouteComponentProps } from 'react-router-dom';\nimport { useDispatch, useSelector } from 'react-redux';\nimport axios from 'axios';\nimport styles from './report.module.scss';\nimport { Loading } from '../components/loading';\nimport { userActionCreators } from '../store/users/actionCreators';\nimport { ApplicationState } from '../store';\n\ntype Params = {\n guid: string;\n};\n\ntype Props = RouteComponentProps;\n\nconst ReportPage = (props: Props) => {\n const [error, setError] = useState(null);\n\n const user = useSelector((state: ApplicationState) => state.userState.user);\n const dispatch = useDispatch();\n\n useEffect(() => {\n redirectToReport();\n });\n\n const redirectToReport = async () => {\n const { guid } = props.match.params;\n\n if (!user?.token) {\n // should redirect to report after login\n dispatch(userActionCreators.logout(`/report/${guid}`));\n return;\n }\n\n try {\n const res = await axios.get(`/v1/reports/temporarylink/${guid}`, {\n headers: {\n 'Content-Type': 'application/json',\n Authorization: `bearer ${user.token}`,\n },\n });\n\n document.location = res.data.url;\n } catch (e: any) {\n if (e.response?.status === 401) {\n dispatch(userActionCreators.logout(`/report/${guid}`));\n } else {\n setError('Oops, something went wrong.');\n }\n console.log(e);\n }\n };\n\n return (\n
\n {error ? (\n <>\n \"\"\n

{error}

\n \n ) : (\n \n )}\n
\n );\n};\n\nexport default ReportPage;\n","import * as React from 'react';\nimport styles from './apiDocs.module.scss';\nimport { PrismLight as SyntaxHighlighter } from 'react-syntax-highlighter';\nimport { ghcolors } from 'react-syntax-highlighter/dist/esm/styles/prism';\nimport { useState } from 'react';\nimport { useSelector } from 'react-redux';\nimport { ApplicationState } from '../store';\n\nexport const ApiDocs: React.FC = () => {\n const [lang, setLang] = useState('csharp');\n const [codeString, setCode] = useState(csharpString);\n\n const user = useSelector((state: ApplicationState) => state.userState.user);\n\n if (!user?.apiKey) {\n return

Not Found

\n }\n\n const chooseLang = (lang: string) => {\n setLang(lang);\n\n switch (lang) {\n case 'csharp':\n default:\n setCode(csharpString);\n break;\n }\n };\n\n return
\n
\n

Api Reference docs

\n

\n This page only explains how to sign your calls to the Olasio Source\n API. Documents specifying methods, schemas, etc are available here: https://sourceapi.olasio.com/swagger\n

\n

Signing requests

\n

\n The Olasio Source API is HTTPS only and requires each call to \n be uniquely signed. To the right there is an example of this \n being implemented (select your language from the drop-down).\n

\n

\n Each call should be signed (aka hashed) with your organisation's secret key \n (provided to you by us) using SHA256. The data to \n sign should be in the format [apiKey][pathAndQuery][timestamp].\n The encoding used should be UTF8.\n

\n

\n timestamp refers to an ISO8601 date/time value in UTC/GMT time. \n eg: 2021-06-19T13:16:45.012Z
\n apiKey refers to your organisation's API key, provided to you in advance
\n pathAndQuery is the path and query string you are calling. It will need to match precisely the call you make to be accepted.\n

\n

\n This signature should then be provided as part of a bearer token, the format of which \n should be [apiKey]|[signature]|[timeStamp]. That is the API Key,\n signature and timestamp separated by the | or \"pipe\" symbol.\n

\n

\n Additional note: A User-Agent header is required for all requests.\n

\n
\n
\n \n \n {codeString}\n \n
\n
;\n}\n\nconst csharpString =\n`using (var client = new HttpClient())\n{\n string apiKey = \"[APIKEY]\";\n string url = \"\";\n string timestamp = $\"{DateTime.UtcNow:o}\";\n\n var uri = new Uri(url);\n var secretKeyBytes = Convert.FromBase64String(\"[SECRETKEY]\");\n string pathAndQuery = System.Web.HttpUtility.UrlEncode(uri.PathAndQuery);\n string dataToSign = $\"{apiKey}{pathAndQuery}{timestamp}\";\n byte[] dataBytes = Encoding.UTF8.GetBytes(dataToSign);\n string signature;\n\n using (HMACSHA256 hmac = new HMACSHA256(secretKeyBytes))\n {\n byte[] rawSignature = hmac.ComputeHash(dataBytes);\n signature = Convert.ToBase64String(rawSignature);\n }\n\n string token = $\"{apiKey}|{signature}|{timestamp}\";\n client.DefaultRequestHeaders.Add(\"Authorization\", $\"bearer {token}\");\n client.DefaultRequestHeaders.Add(\"User-Agent\", \"[USER-AGENT]\");\n\n // Example for GET request\n var response = await client.GetAsync(url);\n\n // Huzzah, eureka, etc\n if (response.IsSuccessStatusCode)\n {\n string json = await response.Content.ReadAsStringAsync();\n // TODO: Something with your json\n }\n}`;\nconst phpString =\n`\nCONFUSED SCREAMING?!\n`\nconst jsString =\n`\n`;","import React from 'react';\nimport styles from './paymentSummary.module.scss';\nimport { Task } from '../../models/order';\nimport { getPaymentDescription, cardNumberWithSpace } from '../../helpers/format';\n\ntype Props = {\n items: Task[];\n cardNumber?: string;\n paymentDate: string;\n};\n\nexport const PaymentSummary: React.FC = ({ items, cardNumber, paymentDate }) => {\n const price = items.reduce((acc, curr) => curr.paymentDescription === getPaymentDescription('creditcard') ? acc + curr.price : acc, 0);\n const tax = Math.round((100 * price) / 11) / 100;\n\n return (\n
\n {items.map(item => (\n item.paymentDescription === getPaymentDescription('creditcard') && (\n
\n {item.name}\n ${(Math.round(100 * item.price) / 100).toFixed(2)}\n
)\n ))}\n
\n
\n Sub total\n ${(Math.round(100 * (price - tax)) / 100).toFixed(2)}\n
\n
\n GST\n ${(Math.round(100 * tax) / 100).toFixed(2)}\n
\n
\n
\n Total\n ${(Math.round(100 * (price)) / 100).toFixed(2)}\n
\n
\n {\n cardNumber && \n
\n Credit card\n {cardNumberWithSpace(cardNumber)}\n
\n }\n
\n Payment received\n {paymentDate}\n
\n
\n );\n};\n","import React, { useEffect } from 'react';\nimport { useSelector, useDispatch } from 'react-redux';\nimport styles from './orderInvoice.module.scss';\nimport { ApplicationState } from '../store';\nimport { Loading } from '../components/loading';\nimport { orderActionCreators } from '../store/orders/actionCreators';\nimport { _supportEmail } from '../settings';\nimport checkIcon from '../assets/check-lg.svg';\nimport { PaymentSummary } from '../components/orders/paymentSummary';\nimport { RouteComponentProps } from \"react-router-dom\";\nimport { getNiceDateString, convertDate } from '../helpers/dates';\nimport { braintreeTransactionStatus, creditCardStatus } from '../helpers/format';\nimport style from 'react-syntax-highlighter/dist/esm/styles/hljs/a11y-dark';\n\nexport const OrderInvoice: React.FC> = ({ match }) => {\n const invoiceId = match.params.invoiceId;\n const dispatch = useDispatch();\n const orderInvoice = useSelector((state: ApplicationState) => state.orderState.orderInvoice);\n const taskCount = orderInvoice?.order?.tasks.length;\n\n useEffect(() => {\n if (!orderInvoice) {\n console.log(\"orderInvoice\", orderInvoice);\n dispatch(orderActionCreators.requestInvoice(invoiceId));\n }\n });\n\n if (!orderInvoice) return ;\n\n return (\n
\n
\n
\n
\n
Tax invoice
\n
\n \n
\n
\n
\n
\n
\n

Tax receipt

\n
\n
\n
\n
\n

{orderInvoice?.order?.recipient.name}

\n

{orderInvoice?.order?.recipient.phone}

\n

{orderInvoice?.order?.recipient.email}

\n
\n
\n

Date issued

\n

{getNiceDateString(convertDate(orderInvoice?.order?.createdUtc))}

\n

\n

\n

Reference number

\n

{orderInvoice?.order?.referenceId}

\n
\n
\n
\n {orderInvoice?.braintreeTransaction && (\n
\n <>\n
\n
Payment summary
\n
{braintreeTransactionStatus(orderInvoice?.braintreeTransaction?.status).toUpperCase()}
\n
\n
\n \n \n
\n )}\n {orderInvoice?.creditCardTransaction && (\n
\n <>\n
\n
Payment summary
\n
{creditCardStatus(orderInvoice?.creditCardTransaction?.status).toUpperCase()}
\n
\n
\n \n \n
\n )}\n {taskCount && taskCount > 0 && (\n
\n
\n
Order summary
\n
{taskCount} {taskCount > 1 ? 'items' : 'item'}
\n
\n
\n
\n

TASKS

\n {orderInvoice?.order?.tasks.map((item, i) => (\n \n
\n
\n

{item.name}

\n
\n
\n
\n {item.fullDescription}\n
\n \n {item.paymentDescription.toUpperCase()}\n \n
\n
\n {i !== orderInvoice?.order?.tasks.length - 1 &&
}\n
\n ))}\n
\n
\n )}\n
\n
\n
Redbook Inspect Pty Ltd
\n
ABN | 67 125 096 077
\n
449 Punt Road
\n
Richmond, VIC 3121
\n
\n
\n
\n
Powered by Olasio
\n
Customer data collection made simple
\n
\n
\n
\n
\n );\n};\n\ninterface RouteProps {\n invoiceId: string;\n}\n","import React from 'react';\nimport './app.scss';\nimport NavBar from './components/navBar';\nimport NavBarPublic from './components/navBarPublic';\nimport { Store } from 'redux';\nimport { History } from 'history';\nimport { Provider } from 'react-redux';\nimport { Switch, Route } from 'react-router-dom';\nimport { ConnectedRouter } from 'connected-react-router';\nimport ModalRoot from './components/modals/modalRoot';\nimport OrdersPage from './pages/orders';\nimport { MarketplaceHome } from './pages/marketplaceHome';\nimport { MarketplaceHomePublic } from './pages/marketplaceHomePublic';\nimport { MarketplaceTaskDetailsPage } from './pages/marketplaceTaskDetails';\nimport { Onboarding } from './pages/onboarding';\nimport SignUpPage from './pages/signup';\nimport LoginPage from './pages/login';\nimport ForgotPasswordPage from './pages/forgotPassword';\nimport NotFound from './pages/notFound';\nimport ManageTeamPage from './pages/manageTeam';\nimport SettingsPage from './pages/settings';\nimport OrderTaskPage from './pages/orderTask';\nimport OrderConfirmationPage from './pages/orderConfirmation';\nimport { OrderPaymentMethod } from './pages/orderPaymentMethod';\nimport { OrderPaymentSingle } from './pages/orderPaymentSingle';\nimport { OrderPaymentPage } from './pages/orderPayment';\nimport { OrderSuccess } from './pages/orderSuccess';\nimport OrderBulkPage from './pages/orderBulk';\nimport { OrderSinglePage } from './pages/orderSingle';\nimport ReportPage from './pages/report'\nimport 'flexboxgrid';\nimport { ApiDocs } from './pages/apiDocs';\nimport { OrderInvoice } from './pages/orderInvoice';\n\ninterface AppProps {\n history: History;\n store: Store;\n}\n\nconst App: React.FC = (props) => {\n return (\n \n \n \n \n \n \n \n \n \n
\n \n } />\n } />\n } />\n } />\n } />\n } />\n } />\n } />\n \n } />\n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n
\n
\n
\n
\n
\n );\n}\n\nexport default App;\n","import { Order } from '../../models/order';\nimport { InProgressOrder } from '../../models/inProgressOrder';\nimport { RequestOrders, ReceiveOrders, RemoveOrder, ReceiveArchive, ReceiveNewOrders, ReceiveInProgressOrder, ClearInProgressOrder, RequestArchive, StartShareOrder, FinishShareOrder, StartNotifyUser, FinishNotifyUser, StartEditContact, FinishEditContact, OrderError, StartReIssueTask, FinishReIssueTask, RequestInvoice, ReceiveInvoice } from './actions';\nimport { Reducer } from 'redux';\nimport { OrderInvoice } from '../../models/orderInvoice';\n\nexport interface OrderState {\n orders?: Order[];\n completedCount: number;\n inProgressCount: number;\n archivedCount: number;\n inactiveCount: number;\n expiringCount: number;\n recentCount: number;\n taggedCount: number;\n\n createdOrders?: Order[];\n\n inProgressOrder?: InProgressOrder;\n\n loadingPayment?: boolean;\n confirmedCount: number;\n totalCount: number;\n\n orderError?: string;\n orderInvoice? : OrderInvoice\n}\n\nexport type OrderStateKnownAction =\n RequestOrders |\n ReceiveOrders |\n RemoveOrder |\n ReceiveArchive |\n ReceiveNewOrders |\n ReceiveInProgressOrder |\n ClearInProgressOrder |\n RequestArchive |\n StartShareOrder |\n FinishShareOrder |\n StartNotifyUser |\n FinishNotifyUser |\n StartEditContact |\n FinishEditContact |\n OrderError |\n StartReIssueTask |\n FinishReIssueTask |\n RequestInvoice |\n ReceiveInvoice;\n\nconst defaultState: OrderState = {\n completedCount: 0,\n inProgressCount: 0,\n archivedCount: 0,\n inactiveCount: 0,\n expiringCount: 0,\n recentCount: 0,\n loadingPayment: false,\n confirmedCount: 0,\n totalCount: 0,\n taggedCount: 0\n}\n\nexport const orderStateReducer: Reducer = (state, incomingAction) => {\n const action = incomingAction as OrderStateKnownAction;\n let result = Object.assign({}, state || defaultState);\n\n switch (action.type) {\n case 'REQUEST_ORDERS':\n // Nothing to do here, tbh\n break;\n case 'RECEIVE_ORDERS':\n result.orders = action.orders.orders;//.filter(o => o.status !== 'PendingConfirmation' && o.status !== 'Unknown');\n result.archivedCount = action.orders.archivedCount;\n result.inProgressCount = action.orders.inProgressCount; //action.orders.orders.filter(o => o.status === 'InProgress').length;\n result.completedCount = action.orders.completedCount; //action.orders.orders.filter(o => o.status === 'Completed').length;\n result.taggedCount = action.orders.taggedCount;\n\n // Special sauce filters\n result.expiringCount = action.orders.expiringCount; //action.orders.expiringOrders.length;\n result.inactiveCount = action.orders.inactiveCount; //action.orders.inactiveOrders.length;\n result.recentCount = action.orders.recentCount; //action.orders.recentOrders.length;\n result.confirmedCount = action.orders.confirmedCount;\n result.totalCount = action.orders.totalCount;\n break;\n case 'REMOVE_ORDER':\n result.orders = result.orders ? result.orders.filter(o => o.id !== action.orderId) : undefined;\n break;\n case 'RECEIVE_ARCHIVE':\n result.archivedCount = action.orders.length;\n break;\n case 'RECEIVE_NEW_ORDERS':\n result.createdOrders = action.orders;\n result.orderError = undefined;\n break;\n case 'RECEIVE_ORDER_INPROGRESS':\n result.inProgressOrder = action.order;\n break;\n case 'CLEAR_ORDER_INPROGRESS':\n result.inProgressOrder = undefined;\n break;\n case 'REQUEST_ARCHIVE':\n break;\n case 'ORDER_ERROR':\n result.orderError = action.message;\n break;\n case 'REQUEST_INVOICE':\n break;\n case 'RECEIVE_INVOICE':\n result.orderInvoice = action.orderInvoice;\n break;\n }\n\n return result;\n}\n","import { RequestUser, ReceiveUser, LogOut, ReceiveUserList, RequestRemoveUser, FailedLogin, FailedReset, RequestReset, ReceiveReset, ClearReset } from './actions';\nimport { Reducer } from 'redux';\nimport { User } from '../../models/user';\nimport { Organisation } from '../../models/organisation';\n\nexport interface UserState {\n user?: User;\n userList?: User[];\n loginResult?: {\n result: boolean;\n message: string;\n };\n resettingPassword?: boolean;\n passwordResetResult?: {\n result: boolean;\n message: string;\n };\n loggingIn?: boolean;\n organisation?: Organisation;\n loadingOrganisation?: boolean;\n}\n\nexport type UserStateKnownAction =\n RequestUser |\n ReceiveUser |\n ReceiveUserList |\n RequestRemoveUser |\n LogOut |\n FailedLogin |\n RequestReset |\n FailedReset |\n ReceiveReset |\n ClearReset;\n\nconst defaultState: UserState = {\n user: JSON.parse(localStorage.getItem('user') || 'null')\n}\n\nexport const userStateReducer: Reducer = (state, incomingAction) => {\n const action = incomingAction as UserStateKnownAction;\n let result = Object.assign({}, state || defaultState);\n\n switch (action.type) {\n case 'REQUEST_USER':\n result.loginResult = undefined;\n result.loggingIn = true;\n break;\n case 'FAILED_LOGIN':\n result.loginResult = {\n result: false,\n message: action.details\n };\n result.loggingIn = false;\n break;\n case 'RECEIVE_USER':\n result.loggingIn = false;\n result.user = action.user;\n window.localStorage.setItem('user', JSON.stringify(action.user));\n break;\n case 'LOG_OUT':\n result.user = undefined;\n window.localStorage.removeItem('user');\n break;\n case 'RECEIVE_USERLIST':\n result.userList = action.users;\n break;\n case 'REQUEST_REMOVE_USER':\n result.userList = undefined;\n break;\n case 'FAILED_RESET':\n result.passwordResetResult = {\n message: action.details,\n result: false\n };\n result.resettingPassword = false;\n break;\n case 'REQUEST_RESET':\n result.passwordResetResult = undefined;\n result.resettingPassword = true;\n break;\n case 'RESET_SUCCESS':\n result.passwordResetResult = {\n result: true,\n message: ''\n };\n result.resettingPassword = false;\n break;\n case 'CLEAR_RESET':\n result.passwordResetResult = undefined;\n result.resettingPassword = false;\n break;\n }\n\n return result;\n}\n","import { RequestOrganisation, ReceiveOrganisation } from './actions';\nimport { Reducer } from 'redux';\nimport { Organisation } from '../../models/organisation';\n\nexport interface OrganisationState {\n organisation?: Organisation;\n loadingOrganisation?: boolean;\n}\n\nexport type OrganisationStateKnownAction =\n RequestOrganisation |\n ReceiveOrganisation;\n\nconst defaultState: OrganisationState = {\n loadingOrganisation: false\n}\n\nexport const organisationStateReducer: Reducer = (state, incomingAction) => {\n const action = incomingAction as OrganisationStateKnownAction;\n let result = Object.assign({}, state || defaultState);\n\n switch (action.type) {\n case 'RECEIVE_ORGANISATION':\n result.loadingOrganisation = false;\n result.organisation = action.organisation;\n break;\n case 'REQUEST_ORGANISATION':\n // Maybe we'll get multiple request calls, but one was honestly just enough\n if (!result.loadingOrganisation) {\n result.loadingOrganisation = true;\n result.organisation = undefined;\n }\n break;\n }\n\n return result;\n}\n","import { Action } from '@reduxjs/toolkit';\nimport { ThunkAction } from 'redux-thunk';\nimport * as OrderState from './orders';\nimport * as UserState from './users';\nimport * as ModalState from './modal';\nimport * as OrganisationState from './organisation';\nimport MarketplaceReducer, { MarketplaceState } from './marketplace';\n\nexport interface ApplicationState {\n orderState: OrderState.OrderState;\n userState: UserState.UserState;\n modalState: ModalState.ModalState;\n orgState: OrganisationState.OrganisationState;\n marketplaceState: MarketplaceState;\n}\n\nexport const reducers = {\n orderState: OrderState.orderStateReducer,\n userState: UserState.userStateReducer,\n modalState: ModalState.modalStateReducer,\n orgState: OrganisationState.organisationStateReducer,\n marketplaceState: MarketplaceReducer,\n};\n\nexport interface AppThunkAction {\n (dispatch: (action: TAction) => void, getState: () => ApplicationState): void;\n}\n\nexport type AppThunk = ThunkAction>;\n","import ReactDOM from 'react-dom';\nimport './index.scss';\nimport { createBrowserHistory } from 'history';\nimport configureStore from './store/configureStore';\n\nconst baseUrl = '/';\nconst history = createBrowserHistory({ basename: baseUrl });\nconst store = configureStore(history, {});\n\nconst render = () => {\n const App = require('./App').default;\n\n ReactDOM.render(\n ,\n document.getElementById('root')\n );\n}\n\nrender();\n\nif (process.env.NODE_ENV === 'development' && module.hot) {\n module.hot.accept('./App', render);\n}\n","import { createStore, applyMiddleware, compose, combineReducers, Store, StoreEnhancerStoreCreator, ReducersMapObject } from 'redux';\nimport thunk from 'redux-thunk';\nimport { routerMiddleware, connectRouter } from 'connected-react-router';\nimport { ApplicationState, reducers } from './index';\nimport { History } from 'history';\n\nexport default function configureStore(history: History, initialState?: any) {\n // Build middleware. These are functions that can process the actions before they reach the store.\n const windowIfDefined = typeof window === 'undefined' ? null : window as any;\n // If devTools is installed, connect to it\n const devToolsExtension = windowIfDefined && windowIfDefined.__REDUX_DEVTOOLS_EXTENSION__ as () => StoreEnhancerStoreCreator;\n const composedEnhancers = compose(\n applyMiddleware(thunk, routerMiddleware(history)),\n devToolsExtension ? devToolsExtension() : (next: StoreEnhancerStoreCreator) => next\n );\n\n // Combine all reducers and instantiate the app-wide store instance\n const allReducers = buildRootReducer(reducers, history);\n const store = createStore(allReducers, initialState, composedEnhancers) as unknown as Store;\n\n return store;\n}\n\nfunction buildRootReducer(allReducers: ReducersMapObject, history: History) {\n return combineReducers(\n Object.assign({\n router: connectRouter(history)\n }, allReducers));\n}\n"],"sourceRoot":""}