1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3735],{85495:function(e,t,n){"use strict";n.d(t,{V:function(){return a},S:function(){return i}});var r=n(85893),o=n(19982),a=function(e){return(0,r.jsx)(o.BT,{show:e.show||!1,onClose:function(){e.close&&e.close(!e.show)},useBackground:!0,className:"!sprout-bg-transparent !sprout-shadow-none sprout-w-[420px] !sprout-z-50",children:(0,r.jsx)("div",{className:"loader"})})},i=function(){return(0,r.jsx)("div",{className:"loader"})}},51235:function(e,t,n){"use strict";n.d(t,{le:function(){return O},SS:function(){return D}});var r=n(85893),o=n(67294),a=n(96486),i=n(11163),u=n(51093),s=n(54431),c=n(1488),l=n(92518),d=n(94770),p=function(e){return(0,o.useRef)(null!==e&&void 0!==e?e:(0,d.Z)()).current},f=n(95591),m=function(e){var t=(0,l.Z)(),n=(0,o.useState)({}),r=n[0],a=n[1],i=(0,f.ZP)("company-information-".concat(e),(function(){return t.get("kyb/application/org?organizationId=".concat(e))}),{revalidateOnFocus:!1}),u=i.data,s=i.error,c=i.isLoading,d=i.mutate;return(0,o.useMemo)((function(){return{data:u,error:s,loading:c,mutate:d,temporaryData:r,setTemporaryData:a}}),[u,s,c,d,r])},v=function(){var e=(0,l.Z)(),t=(0,f.ZP)("general-country",(function(){return e.get("/general/country")})),n=t.data,r=t.error,a=t.isLoading;return(0,o.useMemo)((function(){return{data:n,error:r,loading:a}}),[n,r,a])},g=n(22521),h=function(){var e=(0,l.Z)(),t=(0,f.ZP)("general-ssic",(function(){return e.get("/general/ssic")})),n=t.data,r=t.error,a=t.isLoading;return(0,o.useMemo)((function(){return{data:n,error:r,loading:a}}),[n,r,a])},b=n(81526),y=function(e){var t=(0,i.useRouter)(),n=(0,l.Z)({isThrowError:!0,isHideErrorSnackBar:!0}),r=(0,o.useRef)(b.q.getState()).current,a=r.setGlobalSnackbar,u=r.setDismissFunction,s=(0,f.ZP)(e?"rfi-validate-".concat(e):null,(function(){return n.get("auth/users/rfi/validate/".concat(e))}),{revalidateOnFocus:!0}),c=s.data,d=s.error,p=s.isLoading,m=s.mutate;return(0,o.useEffect)((function(){d&&a&&(u((function(){t.push("/login")})),a("Link Expired","error"))}),[d,t,u,a]),(0,o.useEffect)((function(){return function(){u((function(){}))}}),[]),(0,o.useMemo)((function(){return{data:c,error:d,loading:p,mutate:m}}),[c,d,p,m])},S=n(137),x=n(30690);function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N=function(e,t){var n={officers:[],shareholders:[],corporateRepresentative:[],idSameName:void 0,initialValuesOfficer:{},initialValuesShareholder:{}};return e.forEach((function(e){var r=e.appointments.filter((function(e){return x.UK.includes(e.position)&&"Active"===e.status})),o=e.appointments.filter((function(e){return x.Kh.includes(e.position)}));if(r.length>0&&"INDIVIDUAL"===e.category){var i=e,u=S.Z.checkThisIsMe((0,a.get)(i,"personDetails.contactDetails.email",""),null===t||void 0===t?void 0:t.emailAddresses[0]);i.isApplicant=u,n.officers.push(i)}o.length>0&&(o.filter((function(e){return"Active"===e.status})).length>0&&n.shareholders.push(e))})),n.initialValuesOfficer=n.officers.reduce((function(e,t){return e[t._id]=t,e}),{}),n.initialValuesShareholder=n.shareholders.reduce((function(e,t){var r,o,i=(0,a.find)((0,a.get)(n,"officers",[]),{_id:t.corporateRepresentativeOf});return e[t._id]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){w(e,t,n[t])}))}return e}({},t,{corporateRepresentativeOf:i?{label:null===i||void 0===i||null===(r=i.personDetails)||void 0===r||null===(o=r.personalDetails)||void 0===o?void 0:o.fullName,value:t.corporateRepresentativeOf}:null}),e}),{}),n};function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P=(0,o.createContext)(void 0),O=function(e){var t,n,d,f,b,S,x,w,O,D,k,E,A,j,I=e.children,M=(0,o.useState)({corpSec:!1,incorporation:!1,finance:!1}),z=M[0],T=M[1],R=(0,o.useState)(""),F=R[0],L=R[1],Z=(0,o.useState)(0),U=Z[0],_=Z[1],Y=p(),K=(0,s.a)(),q=K.profileState.profile,B=(0,o.useState)(!1),V=B[0],W=B[1],G=(0,o.useState)(null),J=G[0],H=G[1],Q=(0,o.useState)(!1),$=Q[0],X=Q[1],ee=(0,o.useState)({}),te=ee[0],ne=ee[1],re=(0,o.useState)(!1),oe=re[0],ae=re[1],ie=(0,o.useState)(!1),ue=ie[0],se=ie[1],ce=(0,o.useState)(!1),le=ce[0],de=ce[1],pe=(0,o.useState)(!1),fe=pe[0],me=pe[1],ve=(0,o.useState)(!1),ge=ve[0],he=ve[1],be=(0,o.useState)(""),ye=be[0],Se=be[1],xe=(0,o.useState)(""),we=xe[0],Ne=xe[1],Ce=(0,o.useState)(""),Pe=Ce[0],Oe=Ce[1],De=(0,o.useState)({status:!1,message:"",code:""}),ke=De[0],Ee=De[1],Ae=(0,o.useState)(!1),je=Ae[0],Ie=Ae[1],Me=(0,o.useState)(""),ze=Me[0],Te=Me[1],Re=(0,i.useRouter)(),Fe=(0,o.useMemo)((function(){var e,t,n,r;return null!==(r=null===(e=Re.query)||void 0===e||null===(t=e.organizationId)||void 0===t||null===(n=t.toString)||void 0===n?void 0:n.call(t))&&void 0!==r?r:""}),[null===(t=Re.query)||void 0===t?void 0:t.organizationId]),Le=(0,o.useMemo)((function(){var e,t,n,r;return null!==(r=null===(e=Re.query)||void 0===e||null===(t=e.startRFI)||void 0===t||null===(n=t.toString)||void 0===n?void 0:n.call(t))&&void 0!==r?r:""}),[null===(n=Re.query)||void 0===n?void 0:n.startRFI]),Ze=(0,o.useMemo)((function(){var e,t,n,r;return null!==(r=null===(e=Re.query)||void 0===e||null===(t=e.from)||void 0===t||null===(n=t.toString)||void 0===n?void 0:n.call(t))&&void 0!==r?r:""}),[null===(d=Re.query)||void 0===d?void 0:d.from]),Ue=(0,o.useMemo)((function(){var e,t,n,r;return null!==(r=null===(e=Re.query)||void 0===e||null===(t=e.token)||void 0===t||null===(n=t.toString)||void 0===n?void 0:n.call(t))&&void 0!==r?r:""}),[null===(f=Re.query)||void 0===f?void 0:f.token]),_e=m(we),Ye=y(Pe),Ke=Ye.data,qe=Ye.error,Be=null===Ke||void 0===Ke||null===(b=Ke.data)||void 0===b?void 0:b.isRegisteredUser,Ve=null===Ke||void 0===Ke||null===(S=Ke.data)||void 0===S?void 0:S.eKycLink;!Be&&Ve&&Re.push(Ve),(0,o.useEffect)((function(){Ke&&(_e.mutate(),K.mutate()),qe&&c.K.logoutUser().then((function(){_e.mutate()})).catch((function(){_e.mutate()}))}),[Ke,qe]);var We=v(),Ge=h(),Je=(0,u.Z)(),He=null===_e||void 0===_e||null===(x=_e.data)||void 0===x||null===(w=x.data)||void 0===w?void 0:w.corpSecStatus,Qe=(0,u.Z)(),$e=(0,u.Z)(),Xe=(0,u.Z)(),et=(0,l.Z)(),tt=Re.query,nt=tt.mode,rt=tt.service,ot=tt.isRefetch,at=(0,g.J)(["CompanyTypeCorpSh","AnnualTurnOver","TotalEmployees","IndustrySector","IntendedUseOfAccount","TransactionsValueMonthly","NumberOfTransactionsMonthly","KybPrimaryBanks","Currency","ArtemisSourceOfFundsIndividual","ArtemisSourceOfFundsCorporate"]);(0,o.useEffect)((function(){setTimeout((function(){ot&&_e&&(_e.mutate(),Re.replace(Re.pathname,void 0,{shallow:!0}))}),500)}),[_e,ot,Re]);var it=(0,o.useCallback)((function(e){var t=e.key,n=e.value;T((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){C(e,t,n[t])}))}return e}({},e,C({},t,n))}))}),[]),ut=(0,o.useCallback)((function(e){L(e)}),[]),st=(0,o.useCallback)((function(e){var t,n;_(e),(null===_e||void 0===_e||null===(t=_e.data)||void 0===t||null===(n=t.data)||void 0===n?void 0:n._id)&&e>0&&et.put("/kyb/application/".concat(_e.data.data._id),{currentStep:e})}),[et,null===_e||void 0===_e||null===(O=_e.data)||void 0===O||null===(D=O.data)||void 0===D?void 0:D._id]),ct=(0,o.useCallback)((function(e){W(e),se(!0)}),[]),lt=(0,o.useCallback)((function(e){H(e)}),[]),dt=(0,o.useCallback)((function(e){X(e)}),[]),pt=(0,o.useCallback)((function(e){ne(e)}),[]),ft=(0,o.useCallback)((function(e){ae(e)}),[]),mt=(0,o.useCallback)((function(e){de(e)}),[]),vt=(0,o.useCallback)((function(e){me(e)}),[]),gt=(0,o.useCallback)((function(e){he(e)}),[]),ht=(0,o.useCallback)((function(e){var t=e.status,n=e.message,r=e.code;
1Ee({status:t,message:n,code:r})}),[]),bt=(0,o.useCallback)((function(e){Ie(e)}),[]),yt=(0,o.useCallback)((function(e){Te(e)}),[]),St=(0,o.useMemo)((function(){var e,t,n=(null===_e||void 0===_e||null===(e=_e.data)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.services)||{};return n.corpSec?"APPOINT_GROF_AS_MY_SECRETARY":n.incorporation?"SETUP_COMPANY":"PAYMENT_AND_EXPENSE_MANAGEMENT"}),[null===_e||void 0===_e||null===(k=_e.data)||void 0===k||null===(E=k.data)||void 0===E?void 0:E.services]);(0,o.useEffect)((function(){return Y.on("@select-option",it),Y.on("@stepper",st),Y.on("@submit-uen",ut),Y.on("@set-reg-address",ct),Y.on("@set-use-grof-nd",lt),Y.on("@set-company-information-next-button-clicked",dt),Y.on("@submit-additional-questions",pt),Y.on("@set-is-loaded",ft),Y.on("@set-is-page-loading",mt),Y.on("@set-is-acra-error",vt),Y.on("@set-is-company-name-appeal",ht),Y.on("@modal/application-progress",Je.onToggle),Y.on("@set-is-rfi",gt),Y.on("@modal/submission-completed",Qe.onToggle),Y.on("@set-is-agent-mode",bt),Y.on("@set-agent-partner-code",yt),Y.on("@modal/partner-code",$e.onToggle),Y.on("@modal/cancel-partner-code",Xe.onToggle),function(){Y.off("@select-option",it),Y.off("@stepper",st),Y.off("@submit-uen",ut),Y.off("@set-reg-address",ct),Y.off("@set-use-grof-nd",lt),Y.off("@set-company-information-next-button-clicked",dt),Y.off("@submit-additional-questions",pt),Y.off("@set-is-loaded",ft),Y.off("@set-is-page-loading",mt),Y.off("@set-is-acra-error",vt),Y.off("@set-is-company-name-appeal",ht),Y.off("@modal/application-progress",Je.onToggle),Y.off("@set-is-rfi",gt),Y.off("@modal/submission-completed",Qe.onToggle),Y.off("@set-is-agent-mode",bt),Y.off("@set-agent-partner-code",yt),Y.off("@modal/partner-code",$e.onToggle),Y.off("@modal/cancel-partner-code",Xe.onToggle)}})),(0,o.useEffect)((function(){var e,t,n,r,o,i,u,s=(0,a.get)(_e,"data.data",{}),c=(null===s||void 0===s?void 0:s.currentStep)||-1;"DRAFT"===(null===s||void 0===s?void 0:s.status)?(null===s||void 0===s?void 0:s.company)?oe||(_(c),ae(!0)):oe||_(0):["NEW","RFI_REQUESTED","RFI_RESPONDED"].includes(null===s||void 0===s?void 0:s.status)?_(6):s||oe||_(0),(null===s||void 0===s?void 0:s.isManualFill)&&!z.incorporation&&Y.emit("@set-is-acra-error",!0),(null===s||void 0===s||null===(e=s.company)||void 0===e||null===(t=e.addresses)||void 0===t?void 0:t.isUseGrofRegisteredAddress)&&!oe&&Y.emit("@set-reg-address",!0),!oe&&(null===s||void 0===s||null===(n=s.company)||void 0===n?void 0:n.isAppointGrofND)&&Y.emit("@set-use-grof-nd",!0),(null===s||void 0===s?void 0:s.uen)&&Y.emit("@submit-uen",null===s||void 0===s?void 0:s.uen),"true"===Le&&he(!0);var l=(0,a.get)(s,"company.rfi",[]),d=["PENDING","FILLED"];l.filter((function(e){return d.includes(e.status)})).length&&_(7),["Ready for Review","Waiting for AO"].includes(He)?_(7):["Waiting for Signatures","Pending Doc Gen"].includes(He)?_(8):["Ready for Lodgement"].includes(He)?_(9):["Completed"].includes(He)&&"upgrade"!==nt&&_(10),Ze&&Se(Ze),Fe&&Ne(Fe),Ue&&Oe(Ue);var p=(null===_e||void 0===_e||null===(r=_e.data)||void 0===r||null===(o=r.data)||void 0===o?void 0:o.isUpgrade)||!1,f=(null===_e||void 0===_e||null===(i=_e.data)||void 0===i||null===(u=i.data)||void 0===u?void 0:u.currentStep)||null;p&&6===f&&Re.push("/compliance"),Ie(!!(null===s||void 0===s?void 0:s.isAgentFlow))}),[_e,oe,Y,Fe,nt,rt,z.incorporation,st,He,Le,Ze,Ue,Re]),(0,o.useEffect)((function(){var e=(0,a.get)(_e,"data.data",{});(null===e||void 0===e?void 0:e.services)&&0!==U&&U<10&&(it({key:"corpSec",value:e.services.corpSec}),it({key:"finance",value:e.services.finance}),it({key:"incorporation",value:e.services.incorporation}))}),[_e,null===_e||void 0===_e||null===(A=_e.data)||void 0===A||null===(j=A.data)||void 0===j?void 0:j.services,it,U]);var xt=(0,o.useMemo)((function(){var e=(0,a.get)(_e,"data.data.company.members",[]).length>0?N((0,a.get)(_e,"data.data.company.members",[]),q):{officers:[],shareholders:[],corporateRepresentative:[],idSameName:void 0,initialValuesOfficer:{},initialValuesShareholder:{}};return{emitter:Y,selectedOption:z,companyInformation:_e,generalCountry:We,generalSSIC:Ge,step:U,UEN:F,isChecked:V,generalDropdownResponse:at,formData:te,isUseGrofRegisteredAddressChanged:ue,isUseGrofND:J,isCompanyInformationNextButtonClicked:$,isPageLoading:le,isACRAError:fe,isCompanyNameAppeal:ke,mode:(null===nt||void 0===nt?void 0:nt.toString())||"",service:rt,applicationProgressModal:Je,submissionCompletedModal:Qe,isRFI:ge,serviceType:St,from:ye,isAgentMode:je,agentPartnerCode:ze,agentPartnerCodeModal:$e,cancelAgentPartnerCodeModal:Xe,isRefetch:(null===ot||void 0===ot?void 0:ot.toString())||"",listStakeholders:e}}),[Y,z,_e,We,Ge,U,F,V,at,te,ue,J,$,le,fe,ke,nt,rt,Je,Qe,ge,St,ye,je,ze,$e,Xe,ot,q]);return(0,r.jsx)(P.Provider,{value:xt,children:I})},D=function(e){var t=(void 0===e?{forceLoad:!1}:e).forceLoad,n=(0,o.useContext)(P);if(void 0===n&&!t)throw new Error("useKybPageContext must be used within a KybPageContext Provider");return n}},30690:function(e,t,n){"use strict";n.d(t,{yo:function(){return u},Ch:function(){return s},UK:function(){return c},oK:function(){return l},Ax:function(){return d},Kh:function(){return p},CD:function(){return f},KJ:function(){return m},mB:function(){return v},aW:function(){return r},Ph:function(){return a},Rt:function(){return g},t8:function(){return h},Qo:function(){return b}});var r,o,a,i,u=[{label:"Option Service",step:0},{label:"Company Information",step:1},{label:"Additional Follow-up Questions",step:2},{label:"List of Stakeholders",step:3},{label:"List of Secretary",step:4},{label:"Review Application",step:5}],s=[{label:"Stakeholder eKYC",step:6},{label:"Pending Review",step:7},{label:"Signing of Documents",step:8},{label:"Application Lodgement",step:9},{label:"Congratulations",step:10}],c=["Director","Managing Director","Chief Executive Officer","Director under Section 17(3)(d) of the Accountants Act","Alternate director","Nominee Director","Corporate Representative","Corporate Representative of","Authorized Person"],l=["Director","Managing Director","Chief Executive Officer","Director under Section 17(3)(d) of the Accountants Act","Alternate director","Nominee Director"],d=["Director","Managing Director","Chief Executive Officer","Director under Section 17(3)(d) of the Accountants Act","Alternate director"],p=["Member","Beneficial Owner"],f=["Member"],m=["Public Accountant Employee","Officer","Manager","Agent","Auditor","Employee","Authorized Person"],v=["Secretary"];(o=r||(r={})).PENDING="Pending eKYC",o.SUBMITTED="eKYC Submitted",o.EXPIRED="Expired",o.NA="N/A",(i=a||(a={})).PENDING="PENDING",i.FILLED="FILLED",i.COMPLETED="COMPLETED";var g={blockHouse:"32",streetName:"PEKIN STREET",level:"05",unit:"01",postalCode:"048762",buildingName:""}
1,h=["Ordinary","Preference"],b=["Passport","NRIC"]},22521:function(e,t,n){"use strict";n.d(t,{J:function(){return i}});var r=n(67294),o=n(95591),a=n(92518),i=function(e){var t=(0,a.Z)(),n="";e&&e.forEach((function(e){n=""===n?"?variable=".concat(e):"".concat(n,"&variable=").concat(e)}));var i=(0,o.ZP)("general-dropdown-data",(function(){return t.get("/general/dropdown-data".concat(n))})),u=i.data,s=i.error,c=i.isLoading;return(0,r.useMemo)((function(){return{data:u,error:s,loading:c}}),[u,s,c])}},52801:function(e,t,n){"use strict";var r=n(85893),o=n(67294),a=n(93967),i=n.n(a);t.Z=function(e){var t=e.types,n=e.state,a=e.action,u=e.organization,s=e.click,c=n.userData,l=(0,o.useMemo)((function(){var e=u.corpSecStatus||"Application Submited";return"COMPLETED"===u.baCreationStatus?e="Completed":["New"].includes(u.corpSecStatus)?e="Application Submited":["Pending eKYC"].includes(u.corpSecStatus)?e="Stakeholder Submission":["Check for Payment"].includes(u.corpSecStatus)?e="Pending Payment":["Ready for Review","Waiting for AO"].includes(u.corpSecStatus)?e="Application Review":["Waiting for Signatures"].includes(u.corpSecStatus)?e="Document Signing ":["Pending Doc Gen"].includes(e)?e="Document Preparation":["Ready for Lodgement"].includes(u.corpSecStatus)?e="Awaiting Lodgement":["Completed"].includes(u.corpSecStatus)&&(e="Completed"),e}),[u.baCreationStatus,u.corpSecStatus]);return(0,r.jsxs)("div",{className:"\n sprout-flex sprout-items-center sprout-gap-2 sprout-shadow-card \n sprout-cursor-pointer\n sprout-h-[68px] sprout-border sprout-border-[#DADADA] \n sprout-rounded-lg\n sprout-p-1\n hover:sprout-bg-[#fff3ea] active:sprout-bg-[#fcd7bc] \n active:sprout-border-2 active:sprout-border-[#FB8110]\n sprout-w-full ".concat((null===c||void 0===c?void 0:c.selectedOrganizationId)===u.organizationId&&"!sprout-border-2 !sprout-border-[#FB8110]"," ").concat("select"===t&&"sprout-border sprout-border-[#DADADA] sprout-pt-3 sprout-pb-3 sprout-pl-4 sprout-pr-4 sprout-mb-2 sprout-rounded-2xl"),onClick:function(){return s&&a.handleSelectOrganization(u.organizationId,u.userAccess)},children:[(0,r.jsx)("div",{className:"sprout-w-[60px]",children:(0,r.jsx)("span",{className:"sprout-flex sprout-flex-col sprout-justify-center sprout-items-center sprout-p-0 sprout-w-[44px] sprout-h-11 sprout-bg-[#FED188] sprout-rounded-[56px] sprout-font-semibold sprout-text-xl sprout-text-[#2F2F2F]",children:u.companyName[0]})}),(0,r.jsxs)("div",{className:"sprout-flex sprout-flex-col sprout-w-full",children:[(0,r.jsx)("span",{className:"sprout-text-sm sprout-text-[#020202] sprout-truncate ".concat("select"===t?"phonesm:sprout-w-[190px] phonemd:sprout-w-[220px] phone:sprout-w-[250px] tablet:sprout-w-[350px] desktop:sprout-w-[550px]":"sprout-w-[250px] phonesm:sprout-w-[160px] phonemd:sprout-w-[220px] tablet:sprout-w-[220px] lg:sprout-w-[220px]"," "),children:u.companyName}),(0,r.jsx)("div",{className:"sprout-w-fit",children:(0,r.jsx)("div",{className:i()("Completed"===l?"sprout-bg-[#CEFEBF]":"sprout-bg-[#FFF6E7]","sprout-rounded-full sprout-px-2"),children:(0,r.jsx)("p",{className:"sprout-text-xs sprout-text-black",children:l})})})]})]})}},77395:function(e,t,n){"use strict";var r=n(85893),o=(n(67294),n(19982));t.Z=function(e){var t=e.state;return(0,r.jsxs)(o.BT,{show:t.errorDialogOpen,onClose:function(){return t.setErrorDialogOpen(!1)},position:"popup",className:"sprout-w-5/6 md:sprout-w-3/6 lg:sprout-w-2/6",useBackground:!0,children:[(0,r.jsx)("h1",{className:"sprout-text-base sprout-pb-2 sprout-text-center sprout-font-semibold",children:t.errorDialogTitle}),(0,r.jsxs)("div",{className:"sprout-flex sprout-justify-center sprout-items-center sprout-flex-col sprout-text-sm sprout-text-center",children:[(0,r.jsx)("p",{children:"".concat(t.errorDialogContent1," ").concat(t.errorDialogContent2)}),(0,r.jsx)("div",{className:"sprout-p-2 sprout-pt-4 sprout-mb-2 sprout-h-8 sprout-w-52",children:(0,r.jsx)(o.iR,{primary:!0,orange:!0,className:"!sprout-w-full",onClick:function(){return t.setErrorDialogOpen(!1)},children:"Okay"})})]})]})}},94770:function(e,t){"use strict";t.Z=function(e){var t=e||new Map;return{all:t,on:function(e,n){var r=t.get(e);r?r.push(n):t.set(e,[n])},off:function(e,n){var r=t.get(e);r&&(n?r.splice(r.indexOf(n)>>>0,1):t.set(e,[]))},emit:function(e,n){var r=t.get(e);
1r&&r.slice().forEach((function(e){e(n)})),(r=t.get("*"))&&r.slice().forEach((function(t){t(e,n)}))}}}},62842:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(35666),o=n.n(r),a=n(85893),i=n(67294),u=n(30381),s=n.n(u),c=n(11163),l=n(86455),d=n.n(l),p=n(95591),f=n(18075),m=n(60554),v=n.n(m),g=function(e){var t=(0,f.U$)("dialCode",{}),n=t.value,r=t.setValue;return(0,i.useEffect)((function(){r(e.defaultDialCode)}),[e.defaultDialCode,r]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("select",{name:"dialCode",className:"form-control ".concat(e.error?v()["select-error"]:""),style:{maxWidth:"6"},defaultValue:e.defaultDialCode,value:n,onChange:function(e){r(e.target.value)},children:function(e){var t=[];return t.push((0,a.jsx)("option",{label:"",value:""},"unselected")),e.forEach((function(e,n){t.push((0,a.jsx)("option",{label:e,value:e},n))})),t}(e.dialCodes)}),e.error?(0,a.jsx)("span",{className:"text-error font-sm",children:e.errortext}):""]})},h=function(e){return(0,a.jsx)("div",{className:"Skeleton",children:(0,a.jsx)("div",{className:e.type,children:(0,a.jsx)("div",{className:"Shimmer"})})})},b=function(e){return(0,a.jsx)("div",{className:"SkeletonWrapper",children:e&&e.types&&Array.isArray(e.types)?e.types.map((function(e,t){return(0,a.jsx)(h,{type:e},t)})):[]})};function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(e){var t=(0,f.U$)("phoneNumber",{}).setValue,n=(0,i.useState)({phoneNumber:e.defaultPhoneNumber}),r=n[0],o=n[1],u=(0,i.useState)(!1),s=u[0],c=u[1];return(0,i.useEffect)((function(){t(e.defaultPhoneNumber),o(e.defaultPhoneNumber),c(!0)}),[e.defaultPhoneNumber,t]),""===r.phoneNumber&&!1===s?(0,a.jsx)(b,{types:["TextMd"]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("input",{type:"text",name:"phoneNumber",placeholder:"Enter phone number",className:"form-control ".concat(e.error?v()["input-error"]:""),defaultValue:e.defaultPhoneNumber,value:r.phoneNumber,onChange:function(e){/^\d*$/.test(e.target.value)&&e.target.value.length<20&&(o((function(t){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){y(e,t,n[t])}))}return e}({},t,{phoneNumber:e.target.value})})),t(e.target.value))},autoFocus:!0}),e.error?(0,a.jsx)("span",{className:"text-error font-sm",children:e.errortext}):""]})};function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){x(e,t,n[t])}))}return e}var N=function(e){return(0,a.jsxs)("div",w({},e.containerProps,{children:[(0,a.jsx)("label",w({},e.labelProps,{children:e.label})),e.children,e.description?(0,a.jsx)("p",{className:"font-sm",children:e.description}):""]}))},C=i.memo(N),P=n(51235),O=n(54431),D=n(81378),k=n(36706),E=n(4206),A=n(1488),j=n(47545),I=n(91945),M=n(63388),z=n(58544),T=["/home","/transfers","/business-account","/address-book"];function R(e,t,n,r,o,a,i){try{var u=e[a](i),s=u.value}catch(c){return void n(c)}u.done?t(s):Promise.resolve(s).then(r,o)}function F(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){R(a,r,o,i,u,"next",e)}function u(e){R(a,r,o,i,u,"throw",e)}i(void 0)}))}}function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(s){o=!0,a=s}finally{try{r||null==u.return||u.return()}finally{if(o)throw a}}return n}
1(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var U={companyName:"",organizationId:"",freemiumDetails:{primaryCurrency:"",registrationCountry:""},isPremium:!1,userAccess:"",isActive:!1,role:"",roles:[{moduleName:"",roleName:""}],baCreationStatus:"",applicationStatus:"",organizationStatus:"",organizationPlan:"",registrationCountry:"",primaryCurrency:"",activeModules:[],corpSecStatus:""},_=function(){var e=(0,c.useRouter)(),t=(0,O.a)(),n=t.clearProfileState,r=t.mutate,u=(0,P.SS)({forceLoad:!0}),l=(0,E.Z)().getCountryList,f=F(o().mark((function e(){var t,n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=A.K.getUserDetail(),e.next=3,Promise.all([t,l]).then((function(e){var t=Z(e,2),n=t[0],r=t[1],o=U;return n.data.organization.forEach((function(e){e.organizationId===n.data.selectedOrganizationId&&(o=e)})),{organizationData:o,userData:n.data,general:r}}));case 3:return n=e.sent,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)}))),m=(0,p.ZP)({name:"user-organization-state"},f),v=m.data,h=m.mutate,b=(0,j.Z)(),y=(0,i.useState)(U),x=y[0],w=y[1],N=(0,k.Z)(),R=N.verifyOtp,_=N.requestOtpNoSnackbar,Y=(0,i.useState)({}),K=Y[0],q=Y[1],B=(0,i.useState)([]),V=B[0],W=B[1],G=(0,i.useState)(!1),J=G[0],H=G[1],Q=(0,i.useState)(!1),$=Q[0],X=Q[1],ee=(0,i.useState)(!1),te=ee[0],ne=ee[1],re=(0,i.useState)(!1),oe=re[0],ae=re[1],ie=(0,i.useState)(!1),ue=ie[0],se=ie[1],ce=(0,i.useState)(""),le=ce[0],de=ce[1],pe=(0,i.useState)(""),fe=pe[0],me=pe[1],ve=(0,i.useState)(""),ge=ve[0],he=ve[1],be=F(o().mark((function e(){var t;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=b.countries.map((function(e){return e.dialCode})),W(t);case 2:case"end":return e.stop()}}),e)}))),ye=F(o().mark((function t(n,a){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("FROZEN"!==a){t.next=4;break}se(!0),de("We are unable to log you in"),me("Sorry! Your access to this organization has been frozen."),he("Please contact your Approver or Customer Service."),t.next=19;break;case 4:if("INACTIVE"!==a){t.next=8;break}se(!0),de("We are unable to log you in"),me("Sorry! Your account has been deactivated."),he("Please contact Customer Service."),t.next=19;break;case 8:if("LOCKED"!==a){t.next=12;break}se(!0),de("We are unable to log you in"),me("Sorry! Your access to this organization has been locked."),he("Please contact your Customer Service."),t.next=19;break;case 12:if("REVOKED"!==a){t.next=16;break}se(!0),de("We are unable to log you in"),me("Sorry! Your access to this organization has been revoked."),he("Please contact your Approver or Customer Service"),t.next=19;break;case 16:return ae(!0),t.next=19,D.M.selectOrganization(n).then(F(o().mark((function t(a){var i,c,l;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return w(a.data),i=a.data.status.applicationStatus,["DRAFT","NEW"].includes(i)&&(null===u||void 0===u||u.companyInformation.mutate()),c=new Promise((function(e,t){M.Z.track("Select organization",{userID:null===K||void 0===K?void 0:K.id,organizationID:n,completedAt:s()().format("DDMMYYYY: HHmm"),deviceType:"Web"}).then((function(t){return e(t)})).catch((function(e){return t(e)}))})),h(),r(),t.next=8,c;case 8:return l=new Promise((function(e,t){var r,o;M.Z.group(n,{organizationName:a.data.companyName,organizationId:n,baApplicationStatus:a.data.status.baCreationStatus,accountStatus:a.data.status.organizationStatus,organizationPlan:a.data.organizationPlan,registrationCountry:null===(r=a.data.freemiumDetails)||void 0===r?void 0:r.registrationCountry,primaryCurrency:null===(o=a.data.freemiumDetails)||void 0===o?void 0:o.primaryCurrency}).then((function(t){return e(t)})).catch((function(e){return t(e)}))})),t.next=11,l;case 11:a.data.isPremium||"BUSINESS"===a.data.organizationPlan||"Completed"===a.data.status.corpSecStatus?(localStorage.setItem("hasShownVerifiedSnackbar","true"),window.location.href="/home"):e.push("/kyb").then((function(){H(!1)}));case 12:case"end":return t.stop()}}),t)})))).catch((function(){se(!0),de("We are unable to log you in"),me("Oops, something went wrong."),he("Please try again later")})).finally((function(){ae(!1)}));case 19:case"end":return t.stop()}}),t)}))),Se=F(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:D.M.updateOrganization(t).then((function(e){e.data.companyName!==x.companyName&&w(e.data)})).catch((function(e){d().fire({icon:"error",title:e.message})}));case 1:case"end":return e.stop()}}),e)}))),xe=F(o().mark((function e(t){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=A.K.updateUserDetail(t).then((function(e){return d().fire({icon:"success",title:"Data has been updated",text:"It will take some time for the page to show new data"}),h(),e})).catch((function(e){d().fire({icon:"error",title:e.message})})),e.abrupt("return",n);case 2:case"end":return e.stop()}}),e)}))),we=F(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:_(t).then((function(e){return e})).catch((function(e){d().fire({icon:"error",title:e.message})}));case 1:case"end":return e.stop()}}),e)}))),Ne=F(o().mark((function e(t){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,R(t).then((function(e){return e})).catch((function(e){d().fire({icon:"error",title:e.message})}));case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),Ce=F(o().mark((function e(t,n){var r,a;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=JSON.stringify({channel:"phoneNumber"===t?"sms":"email",code:n}),a=Ne(r).then((function(e){return e&&"00"===e.code&&e.data&&e.data.status&&"verified"===e.data.status?xe({isPhoneNumberVerified:!0}).then((function(e){return e})).catch((function(e){d().fire({icon:"error",title:e.message})})):d().fire({icon:"error",title:"The OTP does not match"}),e})).catch((function(e){d().fire({icon:"error",title:e.message})})),e.abrupt("return",a);case 3:case"end":return e.stop()}}),e)}))),Pe=F(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:A.K.logoutUser().then((function(t){"OK"===t.status?(n(),e.push("/login")):d().fire({icon:"error",title:t.message})})).catch((function(e){d().fire({icon:"error",title:e.message})}));case 1:case"end":return t.stop()}}),t)}))),Oe=F(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",D.M.selectOrganization("").then(F(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w(t.data),r(),e.abrupt("return",t.data);case 3:case"end":return e.stop()}}),e)})))).catch((function(){throw new Error("Oops, something went wrong. Please try again later")})));case 1:case"end":return e.stop()}}),e)})));(0,I.Z)((function(){be()})),(0,i.useEffect)((function(){if(v&&(v.userData&&q(v.userData),v.organizationData)){w(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){L(e,t,n[t])}))}return e}({},v.organizationData)),ne(v.organizationData.isPremium);var t,n=e?e.pathname:"";if(!v.organizationData.isPremium&&T.includes(n)&&(null===x||void 0===x?void 0:x.corpSecStatus)&&"Completed"!==(null===x||void 0===x?void 0:x.corpSecStatus))(null===(t=v.organizationData)||void 0===t?void 0:t.organizationId)&&e.push("/kyb")}}),[e,v,q,w,ne,null===x||void 0===x?void 0:x.corpSecStatus]);var De=[{label:"First Name",labelProps:{className:"bold"},inputProps:{type:"text",name:"callFirstName",className:"form-control form-group",value:v&&v.userData.callFirstName},containerProps:{className:"col-5-md mr-1"}},{label:"Last Name",labelProps:{className:"bold"},inputProps:{type:"text",name:"callLastName",className:"form-control form-group",value:v&&v.userData.callLastName},containerProps:{className:"col-5-md col-6-lg ml-1"}},{label:"Phone Number",inputProps:{type:"custom"},custom:(0,a.jsx)(C,{label:"Phone Number",labelProps:{className:"bold"},containerProps:{className:"col-7-md mt-1"},children:(0,a.jsxs)("div",{className:"row gap-1",children:[(0,a.jsx)("div",{className:"col-4-md",children:(0,a.jsx)(g,{defaultDialCode:v&&v.userData.dialCode,dialCodes:V})}),(0,a.jsx)("div",{className:"col-8-md",children:(0,a.jsx)(S,{defaultPhoneNumber:v&&v.userData.phoneNumber})})]})})},{label:"E-mail",labelProps:{className:"bold"},inputProps:{type:"email",name:"emailAddress",value:v&&Array.isArray(v.userData.emailAddresses)&&v.userData.emailAddresses.length>0?v.userData.emailAddresses[0]:"",className:"form-control icon-rtl"},containerProps:{className:"col-7-md"}}];return{data:v,mutate:h,router:e,state:{organizationData:x,userData:K,dialCodesData:V,isModalOpen:J,openSidebar:$,isPremium:te,errorDialogOpen:ue,setErrorDialogOpen:se,errorDialogTitle:le,errorDialogContent1:fe,errorDialogContent2:ge,showDialogLoading:oe,setShowDialogLoading:ae},action:{handleSelectOrganization:ye,handleLogout:Pe,handleOrganizationUpdate:Se,handleUserUpdate:xe,requestOtp:we,verifyOtp:Ne,changeVerificationStatus:Ce,openModal:function(){H(!J)},handleSidebarClick:function(t,n){t>0?X(!0):e.push(n)},handleRoute:function(t){!x.isPremium&&T.includes(t)&&x.corpSecStatus&&"Completed"!==x.c
1orpSecStatus?e.push("/kyb"):((0,z.Q)("Loading..."),e.push(t).then(z.U))},capitalizeFirst:function(e){var t=e?e.toLowerCase():"";return t.charAt(0).toUpperCase()+t.slice(1)},handleUnselectOrganization:Oe},variables:{personalSettingFields:De}}}},81378:function(e,t,n){"use strict";n.d(t,{M:function(){return s}});var r=n(35666),o=n.n(r),a=n(15125);function i(e,t,n,r,o,a,i){try{var u=e[a](i),s=u.value}catch(c){return void n(c)}u.done?t(s):Promise.resolve(s).then(r,o)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function u(e){i(a,r,o,u,s,"next",e)}function s(e){i(a,r,o,u,s,"throw",e)}u(void 0)}))}}var s={selectOrganization:u(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",fetch("".concat(a.Z.API_FINANCE,"/auth/organization-selection"),{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({selectedOrganizationId:t})}).then((function(e){return e.json()})));case 1:case"end":return e.stop()}}),e)}))),createOrganization:u(o().mark((function e(t){var n,r,i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t.data)){e.next=4;break}if(n.companyName){e.next=4;break}return e.abrupt("return",{errorMessage:"Error because companyName not present"});case 4:return e.next=6,fetch("".concat(a.Z.API_FINANCE,"/auth/onboard-company"),{method:"POST",headers:{Authorization:"Bearer token","Content-Type":"application/json"},credentials:"include",body:JSON.stringify({companyName:n.companyName,countryOfLegalRegistration:n.countryOfLegalRegistration,primaryCurrency:n.primaryCurrency})});case 6:return r=e.sent,e.next=9,r.json();case 9:return i=e.sent,e.abrupt("return",i);case 11:case"end":return e.stop()}}),e)}))),updateOrganization:u(o().mark((function e(t){var n,r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat(a.Z.API_FINANCE,"/organization"),{method:"PUT",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({organizationId:t.id,companyName:t.companyName})});case 2:return n=e.sent,e.next=5,n.json();case 5:return r=e.sent,e.abrupt("return",r);case 7:case"end":return e.stop()}}),e)}))),deleteOrganization:u(o().mark((function e(t){var n,r,i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.data,e.next=3,fetch("".concat(a.Z.API_FINANCE,"/organization/user"),{method:"DELETE",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({organizationId:n.organizationId,userId:n.userId})});case 3:return r=e.sent,e.next=6,r.json();case 6:return i=e.sent,e.abrupt("return",i);case 8:case"end":return e.stop()}}),e)}))),updateOrganizationUser:u(o().mark((function e(t){var n,r,i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.data,e.next=3,fetch("".concat(a.Z.API_FINANCE,"/organization/user"),{method:"PUT",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({organizationId:n.organizationId,userId:n.userId,role:n.role})});case 3:return r=e.sent,e.next=6,r.json();case 6:return i=e.sent,e.abrupt("return",i);case 8:case"end":return e.stop()}}),e)})))}},36706:function(e,t,n){"use strict";var r=n(35666),o=n.n(r),a=n(57632),i=n(92518);function u(e,t,n,r,o,a,i){try{var u=e[a](i),s=u.value}catch(c){return void n(c)}u.done?t(s):Promise.resolve(s).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){u(a,r,o,i,s,"next",e)}function s(e){u(a,r,o,i,s,"throw",e)}i(void 0)}))}}t.Z=function(){var e=(0,i.Z)(),t=(0,i.Z)({isHideErrorSnackBar:!0}),n=s(o().mark((function t(){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.get("/auth/nium-tnc");case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)}))),r=s(o().mark((function t(){var n,r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n=localStorage.getItem("uniqueId_grof"))||(n=(0,a.Z)(),localStorage.setItem("uniqueId_grof",n)),t.next=4,e.post("/auth/device-registration",{deviceId:"WEB",uniqueId:n});case 4:return r=t.sent,t.abrupt("return",r);case 6:case"end":return t.stop()}}),t)}))),u=s(o().mark((function t(n){var r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.post("/auth/request-code",n);case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)}))),c=s(o().mark((function e(n){var r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.post("/auth/request-code",n);case 2:return r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)})));return{getNiumTnc:n,registerDevice:r,requestOtp:u,verifyOtp:s(o().mark((function t(n){var r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.post("/auth/verify-code",n);case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)}))),verifyOtpVulnerable:s(o().mark((function t(n){var r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.post("/auth/verify-code/vulnerable",n,{withCredentials:!1});case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)}))),checkAccountExists:s(o().mark((function t(n){var r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.post("/auth/exists-check",n);case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)}))),signUp:s(o().mark((function t(n){var r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.post("/auth/sign-up",n);case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)}))),onboardCompany:s(o().mark((function t(n){var r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.post("/auth/onboard-company",n);case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)}))),signIn:s(o().mark((function t(n){var r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.post("/auth/sign-in",n);case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)}))),checkPin:s(o().mark((function t(n){var r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.post("/auth/check-pin",n);case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)}))),requestOtpNoSnackbar:c,checkUserToken:s(o().mark((function t(n){var r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.get("/auth/users/validate-invitation/".concat(n));case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})))}}},47545:function(e,t,n){"use strict";var r=n(67294),o=n(14671),a=n(4206),i=n(91945),u=(0,o.Z)((function(e){return{countries:[],setCountries:function(t){return e({countries:t})}}}));t.Z=function(){var e=u((function(e){return e.countries})),t=u((function(e){return e.setCountries})),n=(0,r.useState)(!1),o=n[0],s=n[1],c=(0,a.Z)().getCountryList;return(0,i.Z)((function(){e&&0===e.length?c().then((function(e){t(e.data),s(!0)})).catch((function(){t([]),s(!0)})):e.length>0&&s(!0)})),{countries:e,countryLoaded:o}}},63388:function(e,t,n){"use strict";var r=n(22116).b.load({writeKey:"XiRBneBqRE6w5CUf89MZLeyArB4MitiR"});t.Z=r},58544:function(e,t,n){"use strict";n.d(t,{Q:function(){return a},U:function(){return i}});var r=n(86455),o=n.n(r),a=function(e){return o().fire({title:"Now Loading",text:e,allowEscapeKey:!1,allowOutsideClick:!1,didOpen:function(){o().showLoading()}})},i=function(){return o().close()}},137:function(e,t,n){"use strict";var r=n(30381),o=n.n(r),a={isContainNumber:function(e){return!!e.match(/[0-9]/g)},currencyFormat:function(e,t,n){var r=void 0===n?2:n;return e&&"number"===typeof e?"".concat(void 0===t?"":t," ").concat(e.toFixed(r).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")):"0.00"},inputCurrencyFormat:function(e,t,n){var r=void 0===n?0:n;return e?"".concat(void 0===t?"":t," ").concat(e.toFixed(r).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")):"0.00"},compareDate:function(e){var t=o()(new Date).format("DD MMMM YYYY"),n=o()(e).format("DD MMMM YYYY");return n===t?"Today, ".concat(n):o()(e).format("ddd, DD MMMM YYYY")},join:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.join(" ")},currencyStringToNumber:function(e){return e?Number(null===e||void 0===e?void 0:e.toString().replace(/[^0-9.
1-]+/g,"")):0},checkThisIsMe:function(e,t){return e===t},transformToLowerCase:function(e){return e?e.toLowerCase():e}};t.Z=a},60554:function(e){e.exports={"input-error":"styles_input-error__nTXF0","select-error":"styles_select-error__30tB5"}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.