@zeniai/web-app-ui 5.3.51-qa → 5.3.52-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{AccountMappingScreen-B_fgGC93.js → AccountMappingScreen-CfjKXYvl.js} +2 -2
- package/dist/assets/{ActualMatchingMatchDetailScreen-ikXtEKwi.js → ActualMatchingMatchDetailScreen-Ctlw5YXu.js} +1 -1
- package/dist/assets/AddressRoutes-DakZpUxU.js +1 -0
- package/dist/assets/{AddressScreen-CbT6uv6I.js → AddressScreen-dsCmoEfc.js} +2 -2
- package/dist/assets/{AiCfoScreen-DfyYoDqG.js → AiCfoScreen-1hhGcQPM.js} +1 -1
- package/dist/assets/{AppDrawer-mu7ycbk8.js → AppDrawer-QudxLZqd.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-CknU7mwh.js → BillPayApprovalRoutes--p2o0UTq.js} +1 -1
- package/dist/assets/BillPayRoutes-BQ5naZy9.js +119 -0
- package/dist/assets/{BusinessVerificationPageScreen-pHiRAFhL.js → BusinessVerificationPageScreen-fABxFj6p.js} +2 -2
- package/dist/assets/{CardsAiCfoScreen-D361jHJH.js → CardsAiCfoScreen-D7lfbMvU.js} +2 -2
- package/dist/assets/{ChargeCardRoutes-CKtFRGHw.js → ChargeCardRoutes-8okIr07w.js} +9 -9
- package/dist/assets/{CompanyPassportScreen-B2uwHchn.js → CompanyPassportScreen-DGlmYKZ8.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-Co2Gq7ws.js → ConnectionAuthScreen-BkpK3Q9m.js} +2 -2
- package/dist/assets/CustomerOnboardingAuthScreen-CUL244kC.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-7fWlDVF_.js → CustomerOnboardingRoutes-A9qZQBlL.js} +3 -3
- package/dist/assets/{DashboardRoutes-Bjdlm30G.js → DashboardRoutes-monhFGcO.js} +3 -3
- package/dist/assets/{DefaultTenantHome-Dfnzea8-.js → DefaultTenantHome-B4aMzjG6.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-EjxcD88e.js → DomesticWireDetailScreen-DSnjP_Z5.js} +3 -3
- package/dist/assets/{DrawerScreen-BXUZLhOQ.js → DrawerScreen-C728nU-t.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-BPBuXfdV.js → EntityDetailRoutes-Bn5UTAGi.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-C3_3tauz.js → ExpenseAutomationRoutes-lJCxAksc.js} +1 -1
- package/dist/assets/FeaturePreviewScreen-BTcHNbYq.js +1 -0
- package/dist/assets/{HubSpotOAuthCallbackScreen-C0le1wc_.js → HubSpotOAuthCallbackScreen-DeY4bk0n.js} +1 -1
- package/dist/assets/{InboxNotificationsProvider-DGF7zUT5.js → InboxNotificationsProvider-Bd8tLMl8.js} +1 -1
- package/dist/assets/{InvoicingRoutes-C0ncpiOU.js → InvoicingRoutes-BFDQ_AF7.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-BFAq8G59.js → MagicLinkRoutes-CDa3T_71.js} +19 -19
- package/dist/assets/MagicLinkSignInScreen-DkY-AFQs.js +12 -0
- package/dist/assets/{MobileAppDrawer-BR5bPsUA.js → MobileAppDrawer-CZL1M8HC.js} +1 -1
- package/dist/assets/NotFoundScreen-rNwJ2-Qg.js +1 -0
- package/dist/assets/{NotificationRoutes--RK95rni.js → NotificationRoutes-Dq1wMoB2.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-DFq3gVzH.js → OAuthConsentScreen-QrzCNvCR.js} +1 -1
- package/dist/assets/PandLWithForecastRoutes-CGjGCsop.js +1 -0
- package/dist/assets/{PaymentLinkScreen-DTThbeQW.js → PaymentLinkScreen-BYkX6g2m.js} +4 -4
- package/dist/assets/PeopleRoutes-BSwZbUJ-.js +22 -0
- package/dist/assets/PerformanceRoutes-Cr1pAdV3.js +1 -0
- package/dist/assets/{Preview-CL5JOwkW.js → Preview-Bt5Z89U4.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-CjiaoAEy.js → QBOConnectionScreen-TrNoYiXG.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-B_Sln0sl.js → ReimbursementApprovalRoutes-C2OtR60a.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-Ci4A_vGT.js → ReimbursementApprovalRuleDetailScreen-BqumfK_F.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-CYup41Xj.js → ReimbursementRoutes-CPjQ0Aws.js} +1 -1
- package/dist/assets/{ReportsRoutes-DbEpEdcA.js → ReportsRoutes-BbjIc2Jw.js} +1 -1
- package/dist/assets/RewardsRoutes-Ca33Xd5P.js +1 -0
- package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-Du3o3smk.js → ScheduleDetailsPrepaidExpensesScreen-DETwY7pD.js} +4 -4
- package/dist/assets/ScreenRoutes-CiAckpHg.js +2 -0
- package/dist/assets/{SettingsRoutes-D-wxWAud.js → SettingsRoutes-DwAkdZyX.js} +6 -6
- package/dist/assets/{SetupPagesScreen-C9dw8W4L.js → SetupPagesScreen-Y9SYCogP.js} +1 -1
- package/dist/assets/SignInScreen-McvwseEQ.js +1 -0
- package/dist/assets/SignOutScreen-lXmArlao.js +9 -0
- package/dist/assets/{TaskListScreen-pzfHHZL9.js → TaskListScreen-CZxRWWOz.js} +2 -2
- package/dist/assets/{TaskRoutes-C8ixfF_K.js → TaskRoutes-q7JoPp0N.js} +2 -2
- package/dist/assets/TransactionDetailRoutes-ZlWD_PWX.js +1 -0
- package/dist/assets/{TransactionDetailScreen-CxDwuuF_.js → TransactionDetailScreen-0HhiaPRe.js} +2 -2
- package/dist/assets/{TransactionListRoutes-BPYKZEc9.js → TransactionListRoutes-UQ_0OeeD.js} +1 -1
- package/dist/assets/{TreasuryRoutes-CiS0ghvk.js → TreasuryRoutes-DKuwHbrg.js} +1 -1
- package/dist/assets/{VendorsRoutes-DWH4y4fQ.js → VendorsRoutes-DXw2vvr4.js} +1 -1
- package/dist/assets/{WiseConfirmationScreen-CAHKrI7T.js → WiseConfirmationScreen-XQZz5N0L.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-B32R3mCM.js → ZeniAccountRoutes-BU1gb-LE.js} +1 -1
- package/dist/assets/{ZeniAccountStatementScreen-CPBp7ImC.js → ZeniAccountStatementScreen-CrkxN9K8.js} +1 -1
- package/dist/assets/{accountMappingHelper-3Hm_-9n-.js → accountMappingHelper-DQktkWkn.js} +1 -1
- package/dist/assets/{analytics-D_bfwrdA.js → analytics-GZ8dIY_c.js} +1 -1
- package/dist/assets/{analyticsHelper-BCS-l0Hm.js → analyticsHelper-B9ZU7ow3.js} +1 -1
- package/dist/assets/{core-C5ZG3tJS.js → core-DOBELRta.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-ukN1WN7f.js → decodeURIComponentSafe-DjVlhgki.js} +1 -1
- package/dist/assets/{dnd-C67Dx0fq.js → dnd-0MaFz9wL.js} +1 -1
- package/dist/assets/{empty-D8AdB3zX.js → empty-C3pt8GU3.js} +1 -1
- package/dist/assets/{empty-CytNejfB.js → empty-DsXUnWhI.js} +1 -1
- package/dist/assets/{emptyVideoElement-DRkRIcLt.js → emptyVideoElement-DObxt-h2.js} +1 -1
- package/dist/assets/{epic-Dij6qtSX.js → epic-BqUfEKD1.js} +1 -1
- package/dist/assets/{expenseAutomationHelper-TRaObTJj.js → expenseAutomationHelper-CRKfrxDD.js} +1 -1
- package/dist/assets/{getLocaleForTenant-C4S7jDsD.js → getLocaleForTenant-Dfv4vBw9.js} +1 -1
- package/dist/assets/{index-BQn16-dp.js → index-1mAhqt2L.js} +1 -1
- package/dist/assets/{index-C-mLGw3d.js → index-BmFszw0H.js} +1 -1
- package/dist/assets/{index-CHAUl04f.js → index-CXbL8CxL.js} +13154 -13154
- package/dist/assets/{index-BJSiEm2J.js → index-C_zqEcVM.js} +1 -1
- package/dist/assets/{index-GiMM0ckT.js → index-F4l7OCjI.js} +2 -2
- package/dist/assets/{index-BkMAt9Jn.js → index-JlXkO7-y.js} +1 -1
- package/dist/assets/{index-B7_eMJP9.js → index-px1SxWJw.js} +1 -1
- package/dist/assets/{index-BUVBGxEt.js → index-rIJ81ix1.js} +1 -1
- package/dist/assets/{lexical-BpFcNSrv.js → lexical-CAgOy6Q-.js} +1 -1
- package/dist/assets/{liveblocks-DsNaXx1Y.js → liveblocks-BPL36a6x.js} +1 -1
- package/dist/assets/{lottie-x1U_1T_X.js → lottie-38LSfraF.js} +1 -1
- package/dist/assets/{mui-BWEZqJM6.js → mui-wO6EIETx.js} +1 -1
- package/dist/assets/{pathToGoBack-Bx2jKiUl.js → pathToGoBack-BTiQNxwp.js} +1 -1
- package/dist/assets/{pdf-Da5t4yqS.js → pdf-B2N0erO1.js} +3 -3
- package/dist/assets/{pdf-lib-BkS3YoMW.js → pdf-lib-Ct6vdrHd.js} +1 -1
- package/dist/assets/{plaid-B_2YsVA4.js → plaid-C-eBmVPr.js} +1 -1
- package/dist/assets/{pusher-BHd7HOLE.js → pusher-Qt-2jBy4.js} +1 -1
- package/dist/assets/{react-CXAUR01O.js → react-9dynYr-j.js} +1 -1
- package/dist/assets/{react-BQz1q-qh.js → react-BogDsHCA.js} +1 -1
- package/dist/assets/{react-aer_dY1C.js → react-ByoUrZyD.js} +1 -1
- package/dist/assets/{react-CLpDx285.js → react-D0sfM7Iy.js} +1 -1
- package/dist/assets/{react-Cl3JZyLA.js → react-DSWUEYTa.js} +1 -1
- package/dist/assets/{react-CluwtJMc.js → react-ofgvrscL.js} +1 -1
- package/dist/assets/{recharts-Cbxp2ciV.js → recharts-Sp9X2zHo.js} +1 -1
- package/dist/assets/{routePaths-B9I9gBKX.js → routePaths-7schl7H2.js} +1 -1
- package/dist/assets/{sentry-D4qoEIco.js → sentry-_x3Yh1Jc.js} +1 -1
- package/dist/assets/{stripSplatSuffix-Ca96gi6n.js → stripSplatSuffix-bz-VGo3l.js} +1 -1
- package/dist/assets/{url-C1Mc-kLe.js → url-DBFa8kl5.js} +1 -1
- package/dist/assets/{url-rUBTkYeh.js → url-DW2CK7rX.js} +1 -1
- package/dist/assets/{useActualMatchingMatchDetail-DLemcCW2.js → useActualMatchingMatchDetail-BFtfLe4Y.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-CJKPWqKp.js → useAiCfoDashboardSuggestedQuestionsChips-BdSnJq4D.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-gnFsttzV.js +1 -0
- package/dist/assets/{useChargeCardPusherEvents-D0ho77Y5.js → useChargeCardPusherEvents-BHookjIG.js} +1 -1
- package/dist/assets/{useDeviceId-D51quroZ.js → useDeviceId-EJu2KjP1.js} +1 -1
- package/dist/assets/{useEmailConnectResultRefresh-BcoabO7K.js → useEmailConnectResultRefresh-bvDRvnqZ.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-uHraoUFG.js → useInitialThreadRequest-TFVuVZA_.js} +1 -1
- package/dist/assets/{useTaskManagerAccess-DyYkiipc.js → useTaskManagerAccess-CiaMEBoG.js} +1 -1
- package/dist/assets/{utils-DBZ_QSme.js → utils-BU0XThgM.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-DRYGp088.js → withTransactionSidePanel-BR8uip_B.js} +4 -4
- package/dist/assets/{zeni-epic-state-BcPOXb6_.js → zeni-epic-state-DXFYDM66.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AddressRoutes-C8S7gDv2.js +0 -1
- package/dist/assets/BillPayRoutes-Dab4Lv9I.js +0 -119
- package/dist/assets/CustomerOnboardingAuthScreen-Ca7OSsdg.js +0 -1
- package/dist/assets/FeaturePreviewScreen-CVSsRSRt.js +0 -1
- package/dist/assets/MagicLinkSignInScreen-DJPBAc7a.js +0 -12
- package/dist/assets/NotFoundScreen-Bs6jlvSW.js +0 -1
- package/dist/assets/PandLWithForecastRoutes-0w_j-_X8.js +0 -1
- package/dist/assets/PeopleRoutes-hj0tExCw.js +0 -22
- package/dist/assets/PerformanceRoutes-KCu8tZ8L.js +0 -1
- package/dist/assets/RewardsRoutes-rrdbBIHj.js +0 -1
- package/dist/assets/ScreenRoutes-CwbD03ss.js +0 -2
- package/dist/assets/SignInScreen-DLbFHc0Z.js +0 -1
- package/dist/assets/SignOutScreen-ChtEJ69Z.js +0 -9
- package/dist/assets/TransactionDetailRoutes-Cid-1lkg.js +0 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-CeD5Zw-D.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as k}from"./sentry-
|
|
1
|
+
import{a as k}from"./sentry-_x3Yh1Jc.js";import{u as Z,j as h,h as ne,g as se,i as oe,N as ie,l as re}from"./core-DOBELRta.js";import{fF as z,Hv as ce,Y$ as ue,BA as de,Sb as pe,HJ as le,KU as me,NH as fe,Ol as ye,Pa as Se,Z0 as ge,Z1 as Ie,Z2 as be,Z3 as he,Z4 as Te,Vf as De,Y5 as Oe,Vu as Ce,LY as Ve,Vv as ke,M0 as Ae,mH as we,gG as Ne,gF as Fe,gE as ve,uT as _e,uK as Ee,uH as Be,mz as xe,BJ as ze,BH as P,bE as R,BV as U,cE as Pe}from"./zeni-epic-state-DXFYDM66.js";import{bT as Re,N as Ue,c as Le,bj as Me,z as x,a9 as je,k as L,o as E,V as B,bV as He,af as Ze,p as M,aH as j}from"./index-CXbL8CxL.js";import{n as Ge}from"./mui-wO6EIETx.js";import{j as V}from"./liveblocks-BPL36a6x.js";import{d as H}from"./routePaths-7schl7H2.js";import{M as Ye}from"./MobileAppDrawer-CZL1M8HC.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},u=new t.Error().stack;u&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[u]="f2c4a6a0-1eb1-4b8c-9754-20d7d5afda8c",t._sentryDebugIdIdentifier="sentry-dbid-f2c4a6a0-1eb1-4b8c-9754-20d7d5afda8c")}catch{}})();function nt(){const t=Z(),u=h((r=>z(r))),n=u?.tenantId,{isApprovalRulesV3Enabled:i,isLoading:d}=Re(n),p=h((r=>r.billPaySetupApproverViewState.fetchState));k.useEffect((()=>{n==null||d||p==="Not-Started"&&t(ce(!0,!0,i))}),[n,d,i,p,t])}const $e=Ge.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -6,4 +6,4 @@ import{a as k}from"./sentry-D4qoEIco.js";import{u as Z,j as h,h as ne,g as se,i
|
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
align-items: center;
|
|
8
8
|
background-color: ${t=>t.theme.colors.grey4};
|
|
9
|
-
`,qe=re((function(t,u){const{businessVerificationDetails:n}=u,i=z(t),d=x.getSignedInUser(),p=i.tenantId,r={userId:d?.userId??"",sessionId:d?.zeniSessionId??"",tenantId:p??""},T=De(u.roleMap)&&n.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=Oe(t.companyConfigState),s=Ce(t.userRoleConfigState);return{businessVerificationDetails:n,verficationDetailsFetchState:n.fetchState,isRefreshingViewInBackground:n.isRefreshingViewInBackground,allNationalityCountries:n.allNationalityCountries,filesEndPoint:`${Ze.fileMicroServiceBaseUrl}`,authParams:r,isDisabled:T,allIndustries:e.companyIndustries??[],companyTitles:s.companyTitles}}),(function(t,u){const{companyId:n,productType:i,currentTenant:d,navigate:p,location:r}=u,{tenantEmailDomain:T}=d;return{onCompanyDetailsChanged:e=>{const{companyDescription:s,companyIndustry:m,companyIndustryType:O,companyLegalName:C,companyTaxId:g,companyWebsite:y,companyPhone:I,primaryContactEmail:c,primaryContactName:o,primaryContactUserId:l,primaryContactSyncToken:D,syncToken:S,fileIds:a,incDate:f,typeOfIncorporation:A,stateOfIncorporation:w,sourceOfFunds:N,companySubIndustry:F,countriesOfOperations:b,companySourceOfFunds:G,companySourceOfFundsDescription:Y,transactionVolume:$,transactionVolumeDescription:q,purposeOfAccount:J,purposeOfAccountDescription:K,regulatedStatus:
|
|
9
|
+
`,qe=re((function(t,u){const{businessVerificationDetails:n}=u,i=z(t),d=x.getSignedInUser(),p=i.tenantId,r={userId:d?.userId??"",sessionId:d?.zeniSessionId??"",tenantId:p??""},T=De(u.roleMap)&&n.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=Oe(t.companyConfigState),s=Ce(t.userRoleConfigState);return{businessVerificationDetails:n,verficationDetailsFetchState:n.fetchState,isRefreshingViewInBackground:n.isRefreshingViewInBackground,allNationalityCountries:n.allNationalityCountries,filesEndPoint:`${Ze.fileMicroServiceBaseUrl}`,authParams:r,isDisabled:T,allIndustries:e.companyIndustries??[],companyTitles:s.companyTitles}}),(function(t,u){const{companyId:n,productType:i,currentTenant:d,navigate:p,location:r}=u,{tenantEmailDomain:T}=d;return{onCompanyDetailsChanged:e=>{const{companyDescription:s,companyIndustry:m,companyIndustryType:O,companyLegalName:C,companyTaxId:g,companyWebsite:y,companyPhone:I,primaryContactEmail:c,primaryContactName:o,primaryContactUserId:l,primaryContactSyncToken:D,syncToken:S,fileIds:a,incDate:f,typeOfIncorporation:A,stateOfIncorporation:w,sourceOfFunds:N,companySubIndustry:F,countriesOfOperations:b,companySourceOfFunds:G,companySourceOfFundsDescription:Y,transactionVolume:$,transactionVolumeDescription:q,purposeOfAccount:J,purposeOfAccountDescription:K,regulatedStatus:W,regulatedStatusDescription:Q,usNexus:X,usNexusTypes:ee}=e,v=O?.selectedOption,te={companyId:n,companyDescription:s,companyIndustry:m.selectedOption,companyIndustryType:v==null||v===""?void 0:v,companyLegalName:C,taxIdOrEIN:g,website:y!=""&&y!=null?Pe(y):void 0,phone:I,syncToken:S,fileIds:a,incDate:f!=null?R(f?.toString()):f,typeOfIncorporation:A?.selectedOption??"",stateOfIncorporation:w?.selectedOption??"",sourceOfFunds:N?.selectedOption??"",companySubIndustry:F?.selectedOption??"",countriesOfOperations:b?.selectedOptions.map((_=>_.length===2?_:j(_)))??[],companySourceOfFunds:G?.selectedOption??"",companySourceOfFundsDescription:Y,transactionVolume:$?.selectedOption??"",transactionVolumeDescription:q,purposeOfAccount:J?.selectedOption??"",purposeOfAccountDescription:K,regulatedStatus:W??"",regulatedStatusDescription:Q,usNexus:X,usNexusTypes:ee?.selectedOptions??[]},ae={userId:l,firstName:o.firstName,lastName:o.lastName,email:c,syncToken:D};t(U({companyDetails:te,primaryContactDetails:ae}))},onCompanyOfficerUpdated:e=>{const s=e.map((m=>{const{officerType:O,userId:C,name:g,email:y,nationalityCountryCode:I,ssn:c,dob:o,phone:l,syncToken:D,selectDocument:S,role:a,ownership:f,isSelectedForVerification:A,userVerificationStatus:w,treasuryUserVerificationStatus:N,fileIds:F}=m;let b;return S.selectDocumentType==="driverLicense"?b="driving_license":S.selectDocumentType==="passport"?b="passport":S.selectDocumentType==="stateId"?b="id_document":S.selectDocumentType==="ssnCard"&&(b="social_security_card"),{officerType:O,userId:C,firstName:g.firstName,lastName:g.lastName,email:y,ssn:c,nationalityCountryCode:I?.selectedOption!=null?j(I.selectedOption):void 0,phone:l,birthday:o!=null?R(o?.toString()):o,syncToken:D,titleAtCompany:a.selectedOption,ownershipInCompany:f,documentTypeSelectedForVerification:b,isSelectedForVerification:A,userVerificationStatus:w,treasuryUserVerificationStatus:N,fileIds:F,additionalDocumentTypesRequestedForVerification:[],additionalSubmittedDocumentsForVerificationFileIds:[],areAdditionalDocumentsRequestedForVerification:!1,areAdditionalDocumentsSubmittedForVerification:!1}}));t(U({officers:s}))},onSaveDetailsClick:e=>{t(P(n,e,i))},onSendForVerificationClick:e=>{t(P(n,e,i,!0))},onAddressClick:e=>{const s=H(T,e),m=M(r.state?.pathnameStackToGoBack,r.pathname);p(s,{state:{pathnameStackToGoBack:m}})},onRegisteredAddressClick:e=>{const s=H(T,e),m=M(r.state?.pathnameStackToGoBack,r.pathname);p(s,{state:{pathnameStackToGoBack:m}})},onBackClick:()=>{t(ze({companyId:n})),p("../setup")},updateFilesEntity:e=>{t(xe({files:e}))},onDeleteFile:e=>{t(Be(e))},onDeleteFileList:e=>{t(Ee(e))},onEditFileName:(e,s)=>{t(_e(e,s.split(".")[0]))},onGetOtp:e=>{t(ve(e,"SpendManagementSetup"))},onResendOtp:e=>{t(Fe(e,"SpendManagementSetup"))},onVerifyOtp:(e,s)=>{t(Ne(e,s,"SpendManagementSetup"))},saveNewAddressInLocalStore:(e,s)=>{t(we({addressType:e,addressToCreate:s}))},onIdentityDocumentUploadedForAutofill:e=>{if(n==null)return;const s=ke(e.documentType);s!=null&&t(Ae({target:"setup",companyId:n,officerType:e.officerType,fileId:e.fileId,documentType:s}))},onCompanyDocumentUploadedForAutofill:e=>{n!=null&&t(Ve({target:"setup",companyId:n,fileId:e.fileId,documentType:e.documentType}))}}}))(He),st=({productType:t})=>{const u=ne(),n=se(),i=Z(),[d,p]=k.useState(!1),[r,T]=k.useState(!1),{tenantEmailDomain:e}=oe(),s=Ue(),{useDynamicConfig:m}=Le(),{configValue:O}=m(Me.zeniAccountsConfig),C=ue(O),g=h((a=>{switch(t){case"zeni_accounts":return a.zeniAccountSetupViewState.fetchState;case"reimbursement":return a.remiSetupViewState.fetchState;case"charge_cards":return a.chargeCardSetupViewState.fetchState;case"zeni_treasury":return a.treasurySetupViewState.fetchState;default:return a.billPaySetupViewState.fetchState}})),y=h((a=>a.companyConfigState.fetchState)),I=h((a=>a.userRoleConfigState.fetchState)),c=h((a=>z(a))),o=c.companyId??x.getSignedInUserTenant(e)?.companyId;if(k.useEffect((()=>{y==="Not-Started"&&i(de()),I==="Not-Started"&&i(pe(!0))}),[y,I,i]),k.useEffect((()=>{if(!d&&g==="Not-Started"&&o!=null)switch(p(!0),t){case"zeni_accounts":i(Se(o,!0));break;case"zeni_treasury":i(ye(o,!0));break;case"reimbursement":i(fe(o,!0));break;case"charge_cards":i(me(o,!0));break;default:i(le(o,!0))}}),[d,g,o,i]),x.getSignedInUser()==null)throw Error("Can't access business verification without signing in...");let l;switch(t){case"zeni_accounts":l=c.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted;break;case"reimbursement":l=c.companyReimbursementInfo?.info?.isReimbursementTOSAccepted;break;case"charge_cards":l=c.companyChargeCardInfo?.info?.isChargeCardTOSAccepted===!0||c.companyDebitCardInfo?.info?.isDebitCardTOSAccepted;break;case"zeni_treasury":l=c.companyTreasuryInfo?.info?.isTreasuryTOSAccepted;break;default:l=c.companyBillPayInfo?.info?.isBillPayTOSAccepted}const D=a=>{T(a)},S=h((a=>{switch(t){case"zeni_accounts":return Te(a,o);case"zeni_treasury":return he(a,o);case"charge_cards":return be(a,o);case"reimbursement":return Ie(a,o);default:return ge(a,o)}}));return l===!1?V.jsx(ie,{to:"../promo"}):V.jsxs($e,{children:[V.jsx(je,{analytics:L,onLoad:a=>(f=>{switch(t){case"zeni_accounts":return f.trackPageLoaded(B.Event.zeniAccountsBusinessVerification);case"reimbursement":case"charge_cards":return f.trackPageLoaded(B.Event.reimbursementBusinessVerification);default:return f.trackPageLoaded(B.Event.billPayBusinessVerification,E(n)?"Settings":void 0)}})(a)}),E(n)?V.jsx(Ye,{isAppContentDrawerOpen:r,handleDrawerToggle:D}):null,V.jsx(qe,{businessVerificationDetails:S,navigate:u,location:n,companyId:o,analytics:L,currentTenant:c,productType:t,isSettings:E(n),roleMap:s?.loggedInUserRoleMap??{},onClickMenuIcon:()=>{D(!0)},maxInsuredAmount:C.maxInsuredAmount})]})};export{st as B,nt as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as
|
|
1
|
+
import{j as S}from"./liveblocks-BPL36a6x.js";import{a as l}from"./sentry-_x3Yh1Jc.js";import{u as pe,h as he,g as Ce,j as M,i as fe,l as ge}from"./core-DOBELRta.js";import{a as Se,e7 as be,z as ye,e9 as Pe,eb as N,ec as we,bo as W,a9 as Ie,k as $,ed as H,en as Ee,G as ke,V as Ae,w as xe,eg as Te,eh as Ue,aw as _e,ek as Oe,el as ve,bl as Qe,em as Fe}from"./index-CXbL8CxL.js";import{gK as $e,fE as G,fF as je,g8 as De,jh as Ve,jd as Le,fG as z,gu as qe,go as Re,gq as B,gw as Me,gx as He,gy as ze,gz as Be,gA as Ne}from"./zeni-epic-state-DXFYDM66.js";import{D as We,n as D,P as Ge,S as Ke}from"./mui-wO6EIETx.js";import"./recharts-Sp9X2zHo.js";import"./analytics-GZ8dIY_c.js";import"./plaid-C-eBmVPr.js";import"./dnd-0MaFz9wL.js";import"./stripe-cKAAJElX.js";import"./lottie-38LSfraF.js";import"./lexical-CAgOy6Q-.js";import"./pdf-B2N0erO1.js";import"./utils-BU0XThgM.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="888df119-e84d-43d4-9849-a7c00ecc232e",e._sentryDebugIdIdentifier="sentry-dbid-888df119-e84d-43d4-9849-a7c00ecc232e")}catch{}})();const K="chat-response-generated",Y="cards/ask",J="card_policy_hero";function j(e){return`/${e}/cards`}function X(e){return`/${e}/cards/policy`}const Ye=ge((function(e,a){const o=G(e),c=a.isSubmitting,d=Ue(e,{allUsers:a.allUsers,onCardPolicyVendorSearchTextChange:a.onCardPolicyVendorSearchTextChange});return{showSampleQuestions:a.sessionFromUrl==="new_chat"&&o.uiState.currentChatSessionId==null,aiCfoView:o,isSubmitting:c,isNewChatSession:a.sessionFromUrl==="new_chat",isFullView:!0,tableDownloadEndPoint:`${_e}/tableDownload`,exportDownloadEndPoint:Oe(),emailLinkQuestion:a.emailLinkQuestion,autoSubmitEmailLinkQuestion:a.autoSubmitEmailLinkQuestion,onEmailLinkQuestionProcessed:a.onEmailLinkQuestionProcessed,isFileUploadEnabled:a.isFileUploadEnabled,isUploadPromoVisible:a.isUploadPromoVisible,onUploadPromoClose:a.onUploadPromoClose,...d}}),(function(e,a){const{location:o,currentTenant:c,userId:d,navigate:m,currentChatSessionId:h,allSessionsWithOrderedQuestionAnswers:E,isAiCardCreationEnabled:x,isCardPolicyEnabled:T,cardPolicyPageContext:U}=a,i=c.tenantEmailDomain,C=o.state?.referrer,p=C===J?X(i):j(i);return{onEventReceived:(n,t)=>{if(n===K&&typeof t.text=="string"&&typeof t.metadata=="object"){const s=t,f=He(s.type),b=s.metadata.chat_session_id??null,{currentChatSession:y,currentQuestionAnswer:u,currentQuestionAnswerSummary:P}=W(E,b);f!=="answer"?$.trackAICFOChatResponseGenerated(f,u?.question.questionText??"",s.text,b,Fe(P,y),s.metadata.message_id??null):$.trackAICFOChatAnswerGenerated(s.text,u?.question.questionText??"",(s.follow_up_questions?.length??0)>0,!!s.assumptions,!!s.insights,s.visualization!=null,ze(s.visualization?.type??"")??null,b,s.summarized_title,s.metadata.message_id??null),e(Be({chatSessionId:s.metadata.chat_session_id,responseType:f,fetchState:{fetchState:"Completed",error:void 0}})),e(Ne({chatSessionId:s.metadata.chat_session_id,answerPayload:s,userId:d}))}},onSubmit:(n,t,s,f)=>{n&&Qe(e,n,t,h,E,d,f,s,U)},updateCurrentInput:n=>{e(B(n))},onStopSubmit:()=>{},onUpdateScrollYOffset:n=>{e(Me(n))},onSelectSampleQuestion:()=>{},onBackClick:()=>{m(-1)},onCloseClick:()=>{m(p,{state:{...o.state}}),e(B(""))},togglePageView:()=>{m(p,{state:N(o.state)}),a.setIsAiCfoOpen(!0)},onCopy:()=>{},onThumbsUp:()=>{},onThumbsDown:()=>{},onTogglePageView:()=>{m(-1)},onNewChatClick:()=>{h!=null&&e(Re()),m((function(n){return`/${n}/${Y}`})(i),{state:{...o.state}})},onToggleCotCollapsed:(n,t)=>{e(qe({questionAnswerId:n,isCollapsed:t}))},...ve(e,{isAiCardCreationEnabled:x,isCardPolicyEnabled:T,currentChatSessionId:h,onAfterCardsCreationSubmit:()=>{a.setIsAiCfoOpen(!0),m(j(i),{state:{...o.state}})},onAfterCardPolicySubmit:()=>{a.setIsAiCfoOpen(!0),m(`/${i}/cards/policy`,{state:{...o.state}})}})}}))(xe(Te)),{spendManagement:{chargeCard:{cardsAiCfoHero:Z,cardPolicyAiCfoHero:ee}}}=ke.getLocalizedStrings(),A=Z.pageTitle,Je=ee.pageTitle,Xe=Z.chatHeaderSubtitle,Ze=ee.chatHeaderSubtitle,St=({isFileUploadEnabled:e})=>{const{setIsAiCfoOpen:a}=Se(),o=pe(),c=he(),d=Ce(),[m,h]=l.useState(!1),{allUsers:E,isAiCardCreationEnabled:x,isCardPolicyEnabled:T,onCardPolicyVendorSearchTextChange:U}=be();l.useEffect((()=>{o($e())}),[o]);const i=M((r=>G(r))),C=ye.getSignedInUser(),{session_id:p}=fe(),n=M((r=>je(r))),t=i.uiState.currentChatSessionId,s=n.tenantEmailDomain,{handleUploadPromoClose:f,isUploadPromoVisible:b}=Pe({isFileUploadEnabled:e,tenantEmailDomain:s}),y=d.state,u=y?.aiCfoInitialQuestion??null,P=!!y?.aiCfoShouldSubmit,w=y?.referrer===J,te=w?"card_policy":void 0,se=l.useMemo((()=>({title:w?Je:A,subtitle:w?Ze:Xe})),[w]),[ae,_]=l.useState(null),[oe,O]=l.useState(!1),v=l.useRef(!1);l.useEffect((()=>{v.current||u==null||u===""||(_(u),O(P),v.current=!0)}),[u,P]);const ne=l.useCallback((()=>{_(null),O(!1),c(d.pathname,{replace:!0,state:N(d.state)})}),[d.pathname,d.state,c]),ie=n.masterTOSInfo,g=ie?.isMasterTOSAccepted??!1,k=l.useRef(null);l.useEffect((()=>{if(g&&k.current!=null){const{question:r,shouldSubmit:I}=k.current;k.current=null,_(r),O(I),v.current=!1}}),[g]);const{visitedSessions:V}=we(t),Q=i.fetchState,F=i.uiState.chatSessionsNextPageToken.hasMore||!i.uiState.chatSessionsFirstPageFetched,L=t!=null?i.fetchChatSessionHistoryByChatSessionId?.[t]?.fetchState??"Not-Started":"Not-Started",q=t==null||(i.uiState.chatHistoryNextPageToken[t]?.hasMore??!0),R=i.allSessionsWithOrderedQuestionAnswers,{currentSessionQuestionAnswers:re}=W(R,t),le=re.length===0;l.useEffect((()=>{t!=null&&p!==t&&c((function(r,I){return`/${r}/${Y}/${I}`})(s,t),{state:{...d.state},replace:!0})}),[t,p,s,c,d.state]),l.useEffect((()=>{p!=null&&t==null&&p!=="new_chat"&&o(De({sessionId:p,agentId:"controller"}))}),[]);const de=l.useMemo((()=>({events:V.map((r=>`private-encrypted-chat-${r}.${K}`)),eventCallback:(r,I,me)=>me.onEventReceived(r,I)})),[V]);if(l.useEffect((()=>{Q!=="In-Progress"&&F&&o(Ve())}),[Q,F,o]),l.useEffect((()=>{t!=null&&L!=="In-Progress"&&q&&C!=null&&Q==="Completed"&&!F&&o(Le(t,C.userId))}),[L,q,t,C,o]),C==null)throw Error("Can't access Cards AI CFO page without signing in...");const ce=p??"new_chat",ue=t!=null&&i.responseStateByChatSessionId?.[t]?.answer?.fetchState==="In-Progress";return S.jsxs(tt,{children:[S.jsx(Ie,{analytics:$,onLoad:r=>r.trackPageLoaded(Ae.Event.aiCFOPage)}),g?S.jsx(Ye,{...de,currentChatSessionId:t,allSessionsWithOrderedQuestionAnswers:R,allUsers:E,isAiCardCreationEnabled:x,isCardPolicyEnabled:T,openOnboardingPage:()=>h(!0),userId:C.userId,setIsAiCfoOpen:a,navigate:c,sessionFromUrl:ce,location:d,isSubmitting:ue,isEmptyChatWithSession:le,customPageTitle:A,chatHeader:se,currentTenant:n,emailLinkQuestion:ae??void 0,autoSubmitEmailLinkQuestion:oe,onEmailLinkQuestionProcessed:ne,isFileUploadEnabled:e,isUploadPromoVisible:b,onUploadPromoClose:f,onCardPolicyVendorSearchTextChange:U,cardPolicyPageContext:te}):S.jsx(H,{isTOSAccepted:g,acceptMasterTOSState:i.masterTOSAcceptanceState,customPageTitle:A,onCloseClick:()=>{c(w?X(s):j(s),{state:{...d.state}})},onCompleteClick:()=>{g||n.userRoleId==null||(u!=null&&u!==""&&(k.current={question:u,shouldSubmit:P}),o(z(n.userRoleId)))}}),S.jsx(We,{anchor:"right",open:m,transitionDuration:250,PaperProps:{component:st,style:{width:`${Ee}vw`}},slotProps:{backdrop:{style:{backgroundColor:"transparent",cursor:"pointer"}}},onClose:()=>h(!1),children:S.jsx(et,{onClick:r=>r.stopPropagation(),children:S.jsx(H,{isTOSAccepted:g,acceptMasterTOSState:i.masterTOSAcceptanceState,customPageTitle:A,onCloseClick:()=>h(!1),onCompleteClick:()=>{g||n.userRoleId==null||o(z(n.userRoleId)),h(!1)}})})})]})},et=D(Ke)`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -11,4 +11,4 @@ import{j as g}from"./liveblocks-DsNaXx1Y.js";import{a as l}from"./sentry-D4qoEIc
|
|
|
11
11
|
`,st=D(Ge)`
|
|
12
12
|
box-shadow: ${({theme:e})=>e.colors.elevation2};
|
|
13
13
|
color: ${({theme:e})=>e.colors.grey4};
|
|
14
|
-
`;export{
|
|
14
|
+
`;export{St as default};
|