@zeniai/web-app-ui 5.3.53-qa → 5.3.54-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-B05quPfB.js → AccountMappingScreen-BJ_GCmL6.js} +2 -2
- package/dist/assets/{ActualMatchingMatchDetailScreen-D94Dqvel.js → ActualMatchingMatchDetailScreen-D8tZOiP1.js} +1 -1
- package/dist/assets/AddressRoutes-CPqal9vX.js +1 -0
- package/dist/assets/AddressScreen-BIubmwIP.js +9 -0
- package/dist/assets/{AiCfoScreen-Dj6jKppq.js → AiCfoScreen-D0uGIPWe.js} +1 -1
- package/dist/assets/{AppDrawer-DB1lzCTO.js → AppDrawer-Dyu7Kj7A.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-vJIdZGym.js → BillPayApprovalRoutes-Cu6HjrcE.js} +1 -1
- package/dist/assets/BillPayRoutes-DZcxw7F9.js +119 -0
- package/dist/assets/{BusinessVerificationPageScreen-Bh9Wow-A.js → BusinessVerificationPageScreen-KgJ3Z7Lz.js} +2 -2
- package/dist/assets/{CardsAiCfoScreen-Hsh2FpvU.js → CardsAiCfoScreen-D4XYcc0x.js} +2 -2
- package/dist/assets/{ChargeCardRoutes-0m2CNq4x.js → ChargeCardRoutes-DgTbdUe2.js} +8 -8
- package/dist/assets/{CompanyPassportScreen-Cvbu6LUT.js → CompanyPassportScreen-Dgt-2F5D.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-CRvnQSlr.js → ConnectionAuthScreen-lP9BaYPL.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-86giaeRs.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-kZOJ1QhA.js → CustomerOnboardingRoutes-SntDIwld.js} +1 -1
- package/dist/assets/DashboardRoutes-ChSsFVnC.js +20 -0
- package/dist/assets/{DefaultTenantHome-CTOQPic5.js → DefaultTenantHome-B_-3-BWP.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-DgaHcUL_.js → DomesticWireDetailScreen-uEOhWiZJ.js} +3 -3
- package/dist/assets/{DrawerScreen-BeSv1Aix.js → DrawerScreen-D2fUiyyG.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-D5eIJPR7.js → EntityDetailRoutes-CDL9F5R0.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-DHppK74x.js → ExpenseAutomationRoutes-p6anUTiX.js} +1 -1
- package/dist/assets/FeaturePreviewScreen-ClEO1jVO.js +1 -0
- package/dist/assets/{HubSpotOAuthCallbackScreen-CThBYwg5.js → HubSpotOAuthCallbackScreen-Be8h7JlS.js} +1 -1
- package/dist/assets/{InboxNotificationsProvider-D6QvVVj8.js → InboxNotificationsProvider-B8qyHdbE.js} +1 -1
- package/dist/assets/{InvoicingRoutes-DvFmEcE9.js → InvoicingRoutes-CUoOqcWW.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-B1yYt0y7.js → MagicLinkRoutes-AdtcTQV8.js} +8 -8
- package/dist/assets/MagicLinkSignInScreen-BineRgOo.js +12 -0
- package/dist/assets/{MobileAppDrawer-D3MVdjfj.js → MobileAppDrawer-CrvGsfgI.js} +1 -1
- package/dist/assets/NotFoundScreen-DJ-T97HU.js +1 -0
- package/dist/assets/{NotificationRoutes-3MhigWw8.js → NotificationRoutes-3wgt8Kbi.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-Br6J-Kjw.js → OAuthConsentScreen-DgdT7x6v.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-BT242PEu.js → PandLWithForecastRoutes-ws3OHddo.js} +1 -1
- package/dist/assets/{PaymentLinkScreen-D304LK9q.js → PaymentLinkScreen-tKLL3f9h.js} +1 -1
- package/dist/assets/{PeopleRoutes-Cs1oFIJn.js → PeopleRoutes-Dfq2m-jU.js} +3 -3
- package/dist/assets/PerformanceRoutes-D1dXkym3.js +1 -0
- package/dist/assets/{Preview-CDuSXomS.js → Preview-BBxDhQ0O.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-CXR9MUeu.js → QBOConnectionScreen-C7ZuCwNV.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-CADwX7m0.js → ReimbursementApprovalRoutes-BEPpa8LQ.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-C__AcyMO.js → ReimbursementApprovalRuleDetailScreen-C78enppv.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-DE9--ARn.js → ReimbursementRoutes-Ch8YptRc.js} +4 -4
- package/dist/assets/{ReportsRoutes-B_EvlWob.js → ReportsRoutes-CqMWss5n.js} +1 -1
- package/dist/assets/RewardsRoutes-Dv8b4Fg6.js +1 -0
- package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-270QQSkr.js → ScheduleDetailsPrepaidExpensesScreen-YOxc6f2g.js} +4 -4
- package/dist/assets/ScreenRoutes-DfCL2gIc.js +2 -0
- package/dist/assets/{SettingsRoutes-DjTGDDEp.js → SettingsRoutes-DnuHZUVl.js} +6 -6
- package/dist/assets/{SetupPagesScreen-mQ33CI-8.js → SetupPagesScreen-BXd3fJXi.js} +1 -1
- package/dist/assets/SignInScreen-Cktnr6wX.js +1 -0
- package/dist/assets/SignOutScreen-BwPpNX5k.js +9 -0
- package/dist/assets/{TaskListScreen-_mHmu42Q.js → TaskListScreen-Co7yPEl4.js} +2 -2
- package/dist/assets/{TaskRoutes-DRFV_DYt.js → TaskRoutes-b_9EH8N1.js} +2 -2
- package/dist/assets/TransactionDetailRoutes-B9A0XpAo.js +1 -0
- package/dist/assets/{TransactionDetailScreen-Dmc1SB66.js → TransactionDetailScreen-DsKolbVR.js} +1 -1
- package/dist/assets/{TransactionListRoutes-2uPIfsci.js → TransactionListRoutes-CW6X1kEN.js} +1 -1
- package/dist/assets/{TreasuryRoutes-C62UHGaV.js → TreasuryRoutes-DKqLrSIy.js} +1 -1
- package/dist/assets/{VendorsRoutes-Dp-COjet.js → VendorsRoutes-_VHqmNHq.js} +1 -1
- package/dist/assets/{WiseConfirmationScreen-DEQwqZwF.js → WiseConfirmationScreen-D4dLeJ3W.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-DjudE9ka.js → ZeniAccountRoutes-luRZFrPJ.js} +1 -1
- package/dist/assets/ZeniAccountStatementScreen-CX_-BJtA.js +9 -0
- package/dist/assets/{accountMappingHelper-DNRaFM1C.js → accountMappingHelper-y0E9h6aC.js} +1 -1
- package/dist/assets/{analytics-Y9Rn1Gu7.js → analytics-BDCkEq_I.js} +1 -1
- package/dist/assets/{analyticsHelper-Czpx502m.js → analyticsHelper-DjqyEcxU.js} +1 -1
- package/dist/assets/{core-Dh_SHcAD.js → core-B2JcUSRu.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-B9wRnGXi.js → decodeURIComponentSafe-CIM8Yd6k.js} +1 -1
- package/dist/assets/{dnd-CwwWYFuT.js → dnd-BAPMa4RJ.js} +1 -1
- package/dist/assets/{empty-BT_7GI6y.js → empty-D7vR8z68.js} +1 -1
- package/dist/assets/{empty-XI8MiQF0.js → empty-M8CZcWYb.js} +1 -1
- package/dist/assets/{emptyVideoElement-JNmKZqZz.js → emptyVideoElement-nUJqd2nB.js} +1 -1
- package/dist/assets/{epic-COW9EFJg.js → epic-IH41xxG2.js} +1 -1
- package/dist/assets/{expenseAutomationHelper-jy143DnO.js → expenseAutomationHelper-Dd7fQN5z.js} +1 -1
- package/dist/assets/{getLocaleForTenant-BTnTjmTv.js → getLocaleForTenant-BXUF9msR.js} +1 -1
- package/dist/assets/{index-8Q8Cb_pA.js → index-BTTj-4b5.js} +1 -1
- package/dist/assets/{index-D_bKIveY.js → index-DKVU_IvY.js} +2 -2
- package/dist/assets/{index-C4rZANm7.js → index-DKZ4YAZy.js} +1 -1
- package/dist/assets/{index-CHaKE3QQ.js → index-DanGKFMl.js} +14545 -14423
- package/dist/assets/{index-DTprL6g9.js → index-P1XHqiT-.js} +1 -1
- package/dist/assets/{index-D3h8toFn.js → index-PCu_2P3b.js} +1 -1
- package/dist/assets/{index-DOYaY83A.js → index-dmkrZYpO.js} +1 -1
- package/dist/assets/{index-B23hmQHl.js → index-gjFAkOOB.js} +1 -1
- package/dist/assets/{lexical-CaftfZ9D.js → lexical-DGZ06Yv6.js} +1 -1
- package/dist/assets/{liveblocks-DR8KfETq.js → liveblocks-DXYs6rwe.js} +1 -1
- package/dist/assets/{lottie-ODKvpFjz.js → lottie-C9Rxpkwh.js} +1 -1
- package/dist/assets/{mui-BYn_Ugho.js → mui-BLmtkCLd.js} +1 -1
- package/dist/assets/{pathToGoBack-BiqpVJeS.js → pathToGoBack-DqGGHSwL.js} +1 -1
- package/dist/assets/{pdf-DnQo5-Qw.js → pdf-DMCYUxGc.js} +3 -3
- package/dist/assets/{pdf-lib-DdZd3IiB.js → pdf-lib-D7-8SdHl.js} +1 -1
- package/dist/assets/{plaid-Dw8l1kdg.js → plaid-DHQC2tsw.js} +1 -1
- package/dist/assets/{pusher-CewboUYG.js → pusher-C76wt9sK.js} +1 -1
- package/dist/assets/{react-gSPYEWZo.js → react-B2hEGyNu.js} +1 -1
- package/dist/assets/{react-CWd2ZkNi.js → react-BX0k_7jA.js} +1 -1
- package/dist/assets/{react-8By583h-.js → react-D7gGxl9M.js} +1 -1
- package/dist/assets/{react-B8IvMjeE.js → react-Dvat3Ckm.js} +1 -1
- package/dist/assets/{react-BgmP_PBP.js → react-DzK6xFD8.js} +1 -1
- package/dist/assets/{react-ygIo2ccY.js → react-Y6cTJufT.js} +1 -1
- package/dist/assets/{recharts-BTL88W4R.js → recharts-UN7cJOXN.js} +1 -1
- package/dist/assets/{routePaths-DXpM4tZj.js → routePaths-CV4JB8t3.js} +1 -1
- package/dist/assets/{sentry-FwaDhTzy.js → sentry-BmkYxd02.js} +1 -1
- package/dist/assets/{stripSplatSuffix-CvpfThkG.js → stripSplatSuffix-DXBpTroJ.js} +1 -1
- package/dist/assets/{url-DHu7Ejzz.js → url-Cjk2PJJX.js} +1 -1
- package/dist/assets/{url-DybJ-sxa.js → url-DgDGkycQ.js} +1 -1
- package/dist/assets/{useActualMatchingMatchDetail-uLKulkDS.js → useActualMatchingMatchDetail-Ba3Lb9B6.js} +1 -1
- package/dist/assets/useAiCfoDashboardSuggestedQuestionsChips-B20EbGXf.js +1 -0
- package/dist/assets/{useAskAiCfoHostNavButtonProps-PLm72Ozi.js → useAskAiCfoHostNavButtonProps-BDyrdULc.js} +1 -1
- package/dist/assets/{useChargeCardPusherEvents-LUqnb4UF.js → useChargeCardPusherEvents--bgooXaj.js} +1 -1
- package/dist/assets/{useDeviceId-CUJxM_KE.js → useDeviceId-IlYBwHEv.js} +1 -1
- package/dist/assets/{useEmailConnectResultRefresh-CKnBwo84.js → useEmailConnectResultRefresh-B5AEi8xu.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-DLA6PIFe.js → useInitialThreadRequest-D-aSm_7m.js} +1 -1
- package/dist/assets/useTaskManagerAccess-DEEmjDWA.js +1 -0
- package/dist/assets/{useTaskManagerPusherEvents-DchZU-tO.js → useTaskManagerPusherEvents-D18AziPj.js} +1 -1
- package/dist/assets/{utils-DEAaFgLU.js → utils-BGWE7tXK.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-DLRTZIl6.js → withTransactionSidePanel-BzroedBl.js} +2 -2
- package/dist/assets/{zeni-epic-state-DJh0-ZeR.js → zeni-epic-state-DpjvBN7b.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AddressRoutes-BBXKWkgP.js +0 -1
- package/dist/assets/AddressScreen-DkOVp1Il.js +0 -9
- package/dist/assets/BillPayRoutes-Ie8KE_Pm.js +0 -119
- package/dist/assets/CustomerOnboardingAuthScreen-SW-uc7QE.js +0 -1
- package/dist/assets/DashboardRoutes-DTB-wwS1.js +0 -20
- package/dist/assets/FeaturePreviewScreen-vWprV4-Z.js +0 -1
- package/dist/assets/MagicLinkSignInScreen-CZM8ZeV4.js +0 -12
- package/dist/assets/NotFoundScreen-BG5HsGgf.js +0 -1
- package/dist/assets/PerformanceRoutes-DevypuzE.js +0 -1
- package/dist/assets/RewardsRoutes-fsFKnuDQ.js +0 -1
- package/dist/assets/ScreenRoutes-B0DNEVGO.js +0 -2
- package/dist/assets/SignInScreen-BVOxylXT.js +0 -1
- package/dist/assets/SignOutScreen-BXBPUD_K.js +0 -9
- package/dist/assets/TransactionDetailRoutes-BqJM9clh.js +0 -1
- package/dist/assets/ZeniAccountStatementScreen-fuK8OSl5.js +0 -9
- package/dist/assets/useAiCfoDashboardSuggestedQuestionsChips-CJfIwtxx.js +0 -1
- package/dist/assets/useTaskManagerAccess-D4PJ1zkK.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as V}from"./sentry-BmkYxd02.js";import{u as G,j as T,h as ne,g as se,i as oe,N as ie,l as re}from"./core-B2JcUSRu.js";import{fF as z,Hz as ce,Z4 as ue,BA as de,Sg as pe,HN as le,KZ as me,NM as fe,Oq as ye,Pf as Se,Z5 as ge,Z6 as Ie,Z7 as he,Z8 as Te,Z9 as be,Vk as De,Ya as Oe,Vz as Ce,M1 as ke,VA as Ve,M5 as Ae,mH as we,gG as Ne,gF as Fe,gE as ve,uT as _e,uK as Be,uH as Ee,mz as xe,BJ as ze,BH as P,bE as M,BV as R,cE as Pe}from"./zeni-epic-state-DpjvBN7b.js";import{bU as Me,Q as Re,c as Ue,bj as je,z as x,a9 as Le,j as U,n as B,W as E,bW as Ze,af as Ge,p as j,aH as L}from"./index-DanGKFMl.js";import{n as He}from"./mui-BLmtkCLd.js";import{j as k}from"./liveblocks-DXYs6rwe.js";import{d as Z}from"./routePaths-CV4JB8t3.js";import{M as qe}from"./MobileAppDrawer-CrvGsfgI.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]="fc06d3cd-e6ec-4715-aae4-4334dde0879e",t._sentryDebugIdIdentifier="sentry-dbid-fc06d3cd-e6ec-4715-aae4-4334dde0879e")}catch{}})();function nt(){const t=G(),u=T((r=>z(r))),n=u?.tenantId,{isApprovalRulesV3Enabled:i,isLoading:d}=Me(n),p=T((r=>r.billPaySetupApproverViewState.fetchState));V.useEffect((()=>{n==null||d||p==="Not-Started"&&t(ce(!0,!0,i))}),[n,d,i,p,t])}const We=He.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -6,4 +6,4 @@ import{a as k}from"./sentry-FwaDhTzy.js";import{u as G,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
|
-
|
|
9
|
+
`,Ke=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??""},b=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:`${Ge.fileMicroServiceBaseUrl}`,authParams:r,isDisabled:b,allIndustries:e.companyIndustries??[],companyTitles:s.companyTitles}}),(function(t,u){const{companyId:n,productType:i,currentTenant:d,navigate:p,location:r}=u,{tenantEmailDomain:b}=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:h,companySourceOfFunds:H,companySourceOfFundsDescription:q,transactionVolume:W,transactionVolumeDescription:K,purposeOfAccount:$,purposeOfAccountDescription:J,regulatedStatus:Q,regulatedStatusDescription:Y,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?M(f?.toString()):f,typeOfIncorporation:A?.selectedOption??"",stateOfIncorporation:w?.selectedOption??"",sourceOfFunds:N?.selectedOption??"",companySubIndustry:F?.selectedOption??"",countriesOfOperations:h?.selectedOptions.map((_=>_.length===2?_:L(_)))??[],companySourceOfFunds:H?.selectedOption??"",companySourceOfFundsDescription:q,transactionVolume:W?.selectedOption??"",transactionVolumeDescription:K,purposeOfAccount:$?.selectedOption??"",purposeOfAccountDescription:J,regulatedStatus:Q??"",regulatedStatusDescription:Y,usNexus:X,usNexusTypes:ee?.selectedOptions??[]},ae={userId:l,firstName:o.firstName,lastName:o.lastName,email:c,syncToken:D};t(R({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 h;return S.selectDocumentType==="driverLicense"?h="driving_license":S.selectDocumentType==="passport"?h="passport":S.selectDocumentType==="stateId"?h="id_document":S.selectDocumentType==="ssnCard"&&(h="social_security_card"),{officerType:O,userId:C,firstName:g.firstName,lastName:g.lastName,email:y,ssn:c,nationalityCountryCode:I?.selectedOption!=null?L(I.selectedOption):void 0,phone:l,birthday:o!=null?M(o?.toString()):o,syncToken:D,titleAtCompany:a.selectedOption,ownershipInCompany:f,documentTypeSelectedForVerification:h,isSelectedForVerification:A,userVerificationStatus:w,treasuryUserVerificationStatus:N,fileIds:F,additionalDocumentTypesRequestedForVerification:[],additionalSubmittedDocumentsForVerificationFileIds:[],areAdditionalDocumentsRequestedForVerification:!1,areAdditionalDocumentsSubmittedForVerification:!1}}));t(R({officers:s}))},onSaveDetailsClick:e=>{t(P(n,e,i))},onSendForVerificationClick:e=>{t(P(n,e,i,!0))},onAddressClick:e=>{const s=Z(b,e),m=j(r.state?.pathnameStackToGoBack,r.pathname);p(s,{state:{pathnameStackToGoBack:m}})},onRegisteredAddressClick:e=>{const s=Z(b,e),m=j(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(Ee(e))},onDeleteFileList:e=>{t(Be(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=Ve(e.documentType);s!=null&&t(Ae({target:"setup",companyId:n,officerType:e.officerType,fileId:e.fileId,documentType:s}))},onCompanyDocumentUploadedForAutofill:e=>{n!=null&&t(ke({target:"setup",companyId:n,fileId:e.fileId,documentType:e.documentType}))}}}))(Ze),st=({productType:t})=>{const u=ne(),n=se(),i=G(),[d,p]=V.useState(!1),[r,b]=V.useState(!1),{tenantEmailDomain:e}=oe(),s=Re(),{useDynamicConfig:m}=Ue(),{configValue:O}=m(je.zeniAccountsConfig),C=ue(O),g=T((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=T((a=>a.companyConfigState.fetchState)),I=T((a=>a.userRoleConfigState.fetchState)),c=T((a=>z(a))),o=c.companyId??x.getSignedInUserTenant(e)?.companyId;if(V.useEffect((()=>{y==="Not-Started"&&i(de()),I==="Not-Started"&&i(pe(!0))}),[y,I,i]),V.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=>{b(a)},S=T((a=>{switch(t){case"zeni_accounts":return be(a,o);case"zeni_treasury":return Te(a,o);case"charge_cards":return he(a,o);case"reimbursement":return Ie(a,o);default:return ge(a,o)}}));return l===!1?k.jsx(ie,{to:"../promo"}):k.jsxs(We,{children:[k.jsx(Le,{analytics:U,onLoad:a=>(f=>{switch(t){case"zeni_accounts":return f.trackPageLoaded(E.Event.zeniAccountsBusinessVerification);case"reimbursement":case"charge_cards":return f.trackPageLoaded(E.Event.reimbursementBusinessVerification);default:return f.trackPageLoaded(E.Event.billPayBusinessVerification,B(n)?"Settings":void 0)}})(a)}),B(n)?k.jsx(qe,{isAppContentDrawerOpen:r,handleDrawerToggle:D}):null,k.jsx(Ke,{businessVerificationDetails:S,navigate:u,location:n,companyId:o,analytics:U,currentTenant:c,productType:t,isSettings:B(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-DXYs6rwe.js";import{a as l}from"./sentry-BmkYxd02.js";import{u as pe,h as he,g as Ce,j as M,i as fe,l as ge}from"./core-B2JcUSRu.js";import{a as Se,e7 as be,z as ye,e9 as Pe,eb as N,ec as we,bp as W,a9 as Ie,j,ed as H,en as Ee,G as ke,W 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-DanGKFMl.js";import{gK as je,fE as G,fF as $e,g8 as De,jh as Le,jd as Ve,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-DpjvBN7b.js";import{D as We,n as D,P as Ge,S as Ke}from"./mui-BLmtkCLd.js";import"./recharts-UN7cJOXN.js";import"./analytics-BDCkEq_I.js";import"./plaid-DHQC2tsw.js";import"./dnd-BAPMa4RJ.js";import"./stripe-cKAAJElX.js";import"./lottie-C9Rxpkwh.js";import"./lexical-DGZ06Yv6.js";import"./pdf-DMCYUxGc.js";import"./utils-BGWE7tXK.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]="2e419729-5448-48d4-a244-54fae5ebee82",e._sentryDebugIdIdentifier="sentry-dbid-2e419729-5448-48d4-a244-54fae5ebee82")}catch{}})();const K="chat-response-generated",Y="cards/ask",J="card_policy_hero";function $(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):$(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"?j.trackAICFOChatResponseGenerated(f,u?.question.questionText??"",s.text,b,Fe(P,y),s.metadata.message_id??null):j.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($(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(je())}),[o]);const i=M((r=>G(r))),C=ye.getSignedInUser(),{session_id:p}=fe(),n=M((r=>$e(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:L}=we(t),Q=i.fetchState,F=i.uiState.chatSessionsNextPageToken.hasMore||!i.uiState.chatSessionsFirstPageFetched,V=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:L.map((r=>`private-encrypted-chat-${r}.${K}`)),eventCallback:(r,I,me)=>me.onEventReceived(r,I)})),[L]);if(l.useEffect((()=>{Q!=="In-Progress"&&F&&o(Le())}),[Q,F,o]),l.useEffect((()=>{t!=null&&V!=="In-Progress"&&q&&C!=null&&Q==="Completed"&&!F&&o(Ve(t,C.userId))}),[V,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:j,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):$(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-DR8KfETq.js";import{a as l}from"./sentry-FwaDhTz
|
|
|
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};
|