@zeniai/web-app-ui 5.3.43-qa → 5.3.44-qa
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-A78kjWMW.js → AccountMappingScreen-B400AyQJ.js} +2 -2
- package/dist/assets/{ActualMatchingMatchDetailScreen-H6FIHzKS.js → ActualMatchingMatchDetailScreen-at2idxY8.js} +1 -1
- package/dist/assets/AddressRoutes-Bf2-WRel.js +1 -0
- package/dist/assets/{AddressScreen-DbL2JK9V.js → AddressScreen-Cbo3iSD8.js} +2 -2
- package/dist/assets/AiCfoScreen-C2YvBVu2.js +22 -0
- package/dist/assets/{AppDrawer-B21egTDJ.js → AppDrawer-D0KfLMaT.js} +2 -2
- package/dist/assets/{BillPayApprovalRoutes-C0QG7H0A.js → BillPayApprovalRoutes-LmedJ5XD.js} +1 -1
- package/dist/assets/{BillPayRoutes-BquhDc0u.js → BillPayRoutes-CDWH4S4C.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-DlH1zL57.js → BusinessVerificationPageScreen-BVXryUGP.js} +2 -2
- package/dist/assets/{CardsAiCfoScreen-B3hOZl8l.js → CardsAiCfoScreen-CyRzyeQR.js} +2 -2
- package/dist/assets/{ChargeCardRoutes-CWYnFFCQ.js → ChargeCardRoutes-00uaD3zR.js} +9 -9
- package/dist/assets/CompanyPassportScreen-DSUfEnP2.js +1 -0
- package/dist/assets/ConnectionAuthScreen-DlFUg2cH.js +11 -0
- package/dist/assets/CustomerOnboardingAuthScreen-DGrAYURi.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-DZOpRUqN.js → CustomerOnboardingRoutes-CfsElRde.js} +3 -3
- package/dist/assets/{DashboardRoutes-BWa2chAm.js → DashboardRoutes-CsjwE5Mt.js} +3 -3
- package/dist/assets/{DefaultTenantHome-DLN4EyYk.js → DefaultTenantHome-BmcgKJw_.js} +1 -1
- package/dist/assets/DomesticWireDetailScreen-BHofWD_4.js +18 -0
- package/dist/assets/DrawerScreen-eoSileBw.js +1 -0
- package/dist/assets/EntityDetailRoutes-BTuykNTu.js +1 -0
- package/dist/assets/{ExpenseAutomationRoutes-ChA7_dQU.js → ExpenseAutomationRoutes-C41VbCrR.js} +5 -5
- package/dist/assets/FeaturePreviewScreen-BAENITNo.js +1 -0
- package/dist/assets/HubSpotOAuthCallbackScreen-B57X4QKD.js +1 -0
- package/dist/assets/InboxNotificationsProvider-CMdsyY0A.js +1 -0
- package/dist/assets/InvoicingRoutes-C6flJIVP.js +2 -0
- package/dist/assets/{MagicLinkRoutes-DSIncfO5.js → MagicLinkRoutes-Bo0FAVj9.js} +6 -6
- package/dist/assets/MagicLinkSignInScreen-Dusac1BV.js +12 -0
- package/dist/assets/MobileAppDrawer-Bm1u6Ken.js +1 -0
- package/dist/assets/NotFoundScreen-BHAnIkPW.js +1 -0
- package/dist/assets/NotificationRoutes-DxiudUgY.js +1 -0
- package/dist/assets/OAuthConsentScreen-yUIZ6DV2.js +1 -0
- package/dist/assets/PandLWithForecastRoutes-eu7U2LpI.js +1 -0
- package/dist/assets/{PaymentLinkScreen-B64FHPQ1.js → PaymentLinkScreen-DiueSn16.js} +7 -7
- package/dist/assets/PeopleRoutes-D0lDTK4i.js +22 -0
- package/dist/assets/PerformanceRoutes-UIwOxwXM.js +1 -0
- package/dist/assets/{Preview-DKbH4DZo.js → Preview-DEgobwYA.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-DSxjIxzn.js → QBOConnectionScreen-Dcslm4FM.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-BkXOBY6f.js → ReimbursementApprovalRoutes-C0yLDyE9.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-CgsllBgS.js → ReimbursementApprovalRuleDetailScreen-C95Tlh44.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-BoLFmFGU.js → ReimbursementRoutes-Sdsth_9q.js} +7 -7
- package/dist/assets/{ReportsRoutes-CrzZ0bl7.js → ReportsRoutes-DA2ZKfqn.js} +1 -1
- package/dist/assets/RewardsRoutes-MCkqCd4q.js +1 -0
- package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-DAsZ0K0d.js → ScheduleDetailsPrepaidExpensesScreen-BinEqncH.js} +5 -5
- package/dist/assets/ScreenRoutes-CoBHM0a5.js +2 -0
- package/dist/assets/{SettingsRoutes-_eJ2ckP-.js → SettingsRoutes-Cwcsb2Ys.js} +6 -6
- package/dist/assets/{SetupPagesScreen-Bn2r0Ale.js → SetupPagesScreen-C64hdzmo.js} +5 -5
- package/dist/assets/SignInScreen-D-UWxMUC.js +1 -0
- package/dist/assets/SignOutScreen-CLMaxTgY.js +9 -0
- package/dist/assets/{TaskListScreen-B7cUAwfe.js → TaskListScreen-BBXffRbT.js} +2 -2
- package/dist/assets/TaskRoutes-DvNx4Qap.js +9 -0
- package/dist/assets/TransactionDetailRoutes-Bz8OXpUB.js +1 -0
- package/dist/assets/{TransactionDetailScreen-C2_EB_46.js → TransactionDetailScreen-DcuSfVKO.js} +2 -2
- package/dist/assets/{TransactionListRoutes-DpOuohtl.js → TransactionListRoutes-B_voFmAT.js} +1 -1
- package/dist/assets/{TreasuryRoutes-DchkL4da.js → TreasuryRoutes-CXgACPbz.js} +6 -6
- package/dist/assets/{VendorsRoutes-DVyJDGrt.js → VendorsRoutes-DdY9Fw_b.js} +11 -11
- package/dist/assets/WiseConfirmationScreen-BLw9xWiw.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-C4eET6j1.js → ZeniAccountRoutes-OVjm5L3x.js} +11 -11
- package/dist/assets/ZeniAccountStatementScreen-CJ2iauJ5.js +9 -0
- package/dist/assets/{accountMappingHelper-CQrmB6jj.js → accountMappingHelper-Djr6f8Xt.js} +1 -1
- package/dist/assets/{analytics-BTvt2K3S.js → analytics-B06OpwA-.js} +1 -1
- package/dist/assets/{analyticsHelper-sj9huSc9.js → analyticsHelper-xKlm2_zz.js} +1 -1
- package/dist/assets/{core-BwK6FGJd.js → core-Bl4MLhFi.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-iAavL6tS.js → decodeURIComponentSafe-Buybgpqw.js} +1 -1
- package/dist/assets/{dnd-Cbdx7tVf.js → dnd-CimhpTrK.js} +1 -1
- package/dist/assets/{empty-CTWnX7jn.js → empty-B4WpR10s.js} +1 -1
- package/dist/assets/{empty-DbO4voXD.js → empty-BTbLiTP7.js} +1 -1
- package/dist/assets/{emptyVideoElement-BdvQlKL1.js → emptyVideoElement-Do1ktOmR.js} +1 -1
- package/dist/assets/epic-Ck-sEMUn.js +2 -0
- package/dist/assets/expenseAutomationHelper-CkBJgYs_.js +1 -0
- package/dist/assets/{getLocaleForTenant-B-DdN2Lw.js → getLocaleForTenant-NAFAfy2t.js} +1 -1
- package/dist/assets/{index-Bexws62p.js → index-BKWyG8Iu.js} +1 -1
- package/dist/assets/{index-DCOMaDuK.js → index-BXYzwgW0.js} +1 -1
- package/dist/assets/{index-SQoDfHg2.js → index-Bmwrrrme.js} +1 -1
- package/dist/assets/{index-BhX9D2PW.js → index-CivWMXxp.js} +1 -1
- package/dist/assets/{index-DstkpwOZ.js → index-DFR56SYR.js} +2 -2
- package/dist/assets/{index-CavSpTx-.js → index-D_qRPRIi.js} +26965 -26965
- package/dist/assets/{index-D2_EUTG6.js → index-H-kll8aI.js} +1 -1
- package/dist/assets/{index-B_VJsceg.js → index-jyJQzleF.js} +1 -1
- package/dist/assets/{lexical-DRfKJLK3.js → lexical-BbBoQdpc.js} +1 -1
- package/dist/assets/{liveblocks-y3zMPGKB.js → liveblocks-BXyXenK7.js} +2 -2
- package/dist/assets/{lottie-BQlGSG2c.js → lottie-2qUppQdg.js} +1 -1
- package/dist/assets/{mui-CxIkaR9n.js → mui-CyP-P4av.js} +1 -1
- package/dist/assets/{pathToGoBack-QMp9zrtx.js → pathToGoBack-sGBxvK0B.js} +1 -1
- package/dist/assets/{pdf-DGzvSuDl.js → pdf-BENieWk6.js} +4 -4
- package/dist/assets/{pdf-lib-Bm6tpkCo.js → pdf-lib-CLkFJB86.js} +1 -1
- package/dist/assets/{plaid-CQqwPn97.js → plaid-C0aCR9wu.js} +1 -1
- package/dist/assets/{pusher-DpL50lnb.js → pusher-B9dsvvYE.js} +1 -1
- package/dist/assets/{react-8Gpe_kpB.js → react-BqELFJJh.js} +1 -1
- package/dist/assets/{react-ZBsIhK1t.js → react-BvpkKAe3.js} +1 -1
- package/dist/assets/{react-Tycrsh8q.js → react-C4fns4CR.js} +1 -1
- package/dist/assets/{react-CwBUDYOl.js → react-DEsZRrdi.js} +1 -1
- package/dist/assets/{react-12W2NDka.js → react-DIwVQX4M.js} +1 -1
- package/dist/assets/{react-CCyW6CxJ.js → react-Do3Z3oDl.js} +1 -1
- package/dist/assets/{recharts-CoAMGh71.js → recharts-CZKBTuPa.js} +1 -1
- package/dist/assets/{routePaths-D5zGcGZG.js → routePaths-D20OKXnM.js} +1 -1
- package/dist/assets/{sentry-Jm7O5sR0.js → sentry-D4svnzxK.js} +1 -1
- package/dist/assets/{stripSplatSuffix-nQAZVh5Z.js → stripSplatSuffix-G7yC23v6.js} +1 -1
- package/dist/assets/{url-D9zjpdeS.js → url-SRUWz_6t.js} +1 -1
- package/dist/assets/{url-B9xXiyVk.js → url-m7LStd7o.js} +1 -1
- package/dist/assets/useActualMatchingMatchDetail-DjU1UsXK.js +1 -0
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-B8_gxBhe.js → useAiCfoDashboardSuggestedQuestionsChips-BfYubNz7.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-DYVVwney.js +1 -0
- package/dist/assets/{useChargeCardPusherEvents-BZNmvp7i.js → useChargeCardPusherEvents-CLgbV2wJ.js} +1 -1
- package/dist/assets/{useDeviceId-DdPl1EVl.js → useDeviceId-4WJY9vuN.js} +1 -1
- package/dist/assets/useEmailConnectResultRefresh-fWgBKuNg.js +1 -0
- package/dist/assets/{useInitialThreadRequest-BRvCrjqu.js → useInitialThreadRequest-R2hAErYY.js} +1 -1
- package/dist/assets/useTaskManagerAccess-Rxke8A9H.js +1 -0
- package/dist/assets/{utils-BVIT21dc.js → utils-Bycom664.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-tINIzPX1.js → withTransactionSidePanel-rDK0lUVX.js} +2 -2
- package/dist/assets/{zeni-epic-state-BugXGzus.js → zeni-epic-state-UM7IPCLf.js} +6 -6
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/AddressRoutes-NMfqz3GH.js +0 -1
- package/dist/assets/AiCfoScreen-DQ-_2zus.js +0 -22
- package/dist/assets/CompanyPassportScreen-D55YyxAR.js +0 -1
- package/dist/assets/ConnectionAuthScreen-BzzSw1MN.js +0 -11
- package/dist/assets/CustomerOnboardingAuthScreen-CBDPd-_k.js +0 -1
- package/dist/assets/DomesticWireDetailScreen-Di0HmEb7.js +0 -18
- package/dist/assets/DrawerScreen-BKD3lmi2.js +0 -1
- package/dist/assets/EntityDetailRoutes-Dkd2Wwk0.js +0 -1
- package/dist/assets/FeaturePreviewScreen-DFQePQma.js +0 -1
- package/dist/assets/HubSpotOAuthCallbackScreen-Bho75VRj.js +0 -1
- package/dist/assets/InboxNotificationsProvider-ozJWRqdQ.js +0 -1
- package/dist/assets/InvoicingRoutes-BIJoBfxF.js +0 -2
- package/dist/assets/MagicLinkSignInScreen-CEPRWAV6.js +0 -12
- package/dist/assets/MobileAppDrawer-Ce8Zx46w.js +0 -1
- package/dist/assets/NotFoundScreen-Duy6T6m3.js +0 -1
- package/dist/assets/NotificationRoutes-RjDVJiKf.js +0 -1
- package/dist/assets/OAuthConsentScreen-CtkoMagm.js +0 -1
- package/dist/assets/PandLWithForecastRoutes-GmhxMHoN.js +0 -1
- package/dist/assets/PeopleRoutes-ecEzCyKE.js +0 -22
- package/dist/assets/PerformanceRoutes-BTYsYwgQ.js +0 -1
- package/dist/assets/RewardsRoutes-Bw-VJeWb.js +0 -1
- package/dist/assets/ScreenRoutes-BLctPWdO.js +0 -2
- package/dist/assets/SignInScreen-CV_GUIAF.js +0 -1
- package/dist/assets/SignOutScreen-CJIt_MEN.js +0 -9
- package/dist/assets/TaskRoutes-CTl9GKlH.js +0 -9
- package/dist/assets/TransactionDetailRoutes-DWBtPRgg.js +0 -1
- package/dist/assets/WiseConfirmationScreen-DxziV1eR.js +0 -12
- package/dist/assets/ZeniAccountStatementScreen-33Pf07v4.js +0 -9
- package/dist/assets/epic-BUtbsU0k.js +0 -2
- package/dist/assets/expenseAutomationHelper-MxNxlZNN.js +0 -1
- package/dist/assets/useActualMatchingMatchDetail-CxpYQNp7.js +0 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-DQ3F86Nw.js +0 -1
- package/dist/assets/useEmailConnectResultRefresh-98UHJ7hj.js +0 -1
- package/dist/assets/useTaskManagerAccess-B9_LRJIF.js +0 -1
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-y3zMPGKB.js";import{Vb as re,fE as N,l_ as G,dZ as X,dY as le,S2 as Q,UA as de,CM as Pe,Vc as q,CB as je,CW as Le,CQ as ce,CF as pe,CU as Te,CR as ve,Vd as ue,sk as Ae,g5 as Ve,gC as Fe,Ve as _,CJ as me,CI as ge,CZ as Re,c8 as Oe}from"./zeni-epic-state-BugXGzus.js";import{a1 as fe,O as Y,c as H,z as W,g as Ce,N as he,af as ye,az as be,aA as Ze,ab as Se,J as R,ag as we,G as K,aB as Ue,aq as Be,as as $e,a8 as ze,k as xe,T as _e,p as He,aC as Ge,U as We}from"./index-CavSpTx-.js";import{D as De,n as M,S as Ie}from"./mui-CxIkaR9n.js";import ae from"./NotFoundScreen-Duy6T6m3.js";import{a as d}from"./sentry-Jm7O5sR0.js";import{u as ee,i as Ke,j as g,h as Me,g as Je,l as qe,n as se,o as z}from"./core-BwK6FGJd.js";import{u as Ne}from"./useAskAiCfoHostNavButtonProps-DQ3F86Nw.js";import{M as Xe}from"./MobileAppDrawer-Ce8Zx46w.js";import"./recharts-CoAMGh71.js";import"./analytics-BTvt2K3S.js";import"./plaid-CQqwPn97.js";import"./dnd-Cbdx7tVf.js";import"./stripe-cKAAJElX.js";import"./lottie-BQlGSG2c.js";import"./lexical-DRfKJLK3.js";import"./pdf-DGzvSuDl.js";import"./utils-BVIT21dc.js";import"./InboxNotificationsProvider-ozJWRqdQ.js";import"./useTaskManagerAccess-B9_LRJIF.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2ad5137a-7dd2-46be-8f79-307ff01cf6f2",e._sentryDebugIdIdentifier="sentry-dbid-2ad5137a-7dd2-46be-8f79-307ff01cf6f2")}catch{}})();const Qe={overlayWidth:new Se(100,100,48)},te=K.getLocalizedStrings().peoplePage.invitePage,ne=K.getLocalizedStrings().common,Ye=({companyId:e,managersListView:t,companyPassportView:c,classListView:n,mode:f,isEditPeopleDrawerOpen:i,closeDrawerHandler:b})=>{const C=fe(),m=ee(),[O,Z]=d.useState(!1),[k,S]=d.useState(!1),{userId:w}=Ke(),r=g((l=>re(l))),p=g((l=>N(l))),E=g((l=>G(l))),{useFeatureGate:D}=Y(),{isFeatureEnabled:I}=D(H.isDebitCardFeatureEnabled),P=X(I,p),T=le(p),v=Q(p),U=de(p),B=!!p.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,x=!P&&E&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||c.fetchState!=="Completed"||e==null;if(W.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const h=()=>{m(q()),b()},A=()=>{O===!0?S(!0):h()},$=c.companyView?.controllers?.map((l=>l.user)),u=!!p.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:j}=D(H.isChargeCardFeatureEnabled),L=Ce(p,j,I),{isCardsHidden:V}=he(p?.tenantId),y=!L||V,F=p.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",s={peopleDetails:r,classList:n.classes,managersList:t.users,controllersList:$,mode:f,isZeniTenant:v,isAccountingClassesEnabled:E,isReimbursementDisabled:B===!1,isZeniAccountsDisabled:u===!1,isChargeCardDisabled:y,isTreasuryDisabled:F===!1,isLiteRoleDisabled:U===!1,isBankingOnlyTenant:P,isCardsOnlyTenant:T,onResetClick:h,onDeleteUser:l=>{m(pe(l.userId,l.userRole.userRoleId))},onPeopleLocalDataUpdated:l=>{m(ce({peopleLocalData:l})),Z(!0)},onSaveClick:()=>{m(f==="zeni_only"?je(e):Le(v))},onCloseClick:A,isLoading:x||r.person==null},o={onOkClick:()=>{S(!1),h()},onCancelClick:()=>{S(!1)}};return d.useEffect((()=>{x===!1&&w!=null&&m(Pe(w))}),[x,w]),d.useEffect((()=>{r.updatePersonState.fetchState==="Completed"&&h()}),[r.updatePersonState.fetchState]),a.jsx(De,{anchor:"right",open:i,PaperProps:{style:{width:Qe.overlayWidth.valuePercentage(C),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:ye.overlayDark,cursor:"pointer"}}},onClose:A,children:a.jsxs(ea,{onClick:l=>l.stopPropagation(),children:[k===!0?a.jsx(be,{titleComponent:a.jsx(ke,{children:te.discardTitle}),descriptionComponent:a.jsx(Ee,{children:te.discardDescription}),primaryButtonText:ne.yes,secondaryButtonText:ne.no,action:o,isEditPopup:!0}):null,a.jsx(Ze,{...s})]})})},ea=M(Ie)`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`,ke=M(we.H6Regular)`
|
|
6
|
-
margin-top: ${R.sp7};
|
|
7
|
-
padding-left: ${R.sp8};
|
|
8
|
-
padding-right: ${R.sp8};
|
|
9
|
-
color: ${e=>e.theme.colors.primary};
|
|
10
|
-
word-break: break-word;
|
|
11
|
-
`,Ee=M(we.LargeRegularSp)`
|
|
12
|
-
color: ${e=>e.theme.colors.hero};
|
|
13
|
-
padding-left: ${R.sp8};
|
|
14
|
-
padding-right: ${R.sp8};
|
|
15
|
-
margin-bottom: 30px;
|
|
16
|
-
margin-top: ${R.sp4};
|
|
17
|
-
white-space: pre-line;
|
|
18
|
-
`,aa={overlayWidth:new Se(100,100,48)},oe=K.getLocalizedStrings().peoplePage.invitePage,ie=K.getLocalizedStrings().common,sa=({companyId:e,managersListView:t,companyPassportView:c,classListView:n,mode:f,isInvitePeopleDrawerOpen:i,closeDrawerHandler:b})=>{const C=fe(),m=ee(),[O,Z]=d.useState(!1),[k,S]=d.useState(!1),w=g((o=>re(o))),r=g((o=>N(o))),p=g((o=>G(o))),{useFeatureGate:E}=Y(),{isFeatureEnabled:D}=E(H.isDebitCardFeatureEnabled),I=X(D,r),P=le(r),T=Q(r),v=de(r),U=!!r.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,B=!I&&p&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||c.fetchState!=="Completed"||e==null;if(W.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const x=()=>{b(),m(q())},h=()=>{O===!0?S(!0):x()},A={onOkClick:()=>{S(!1),x()},onCancelClick:()=>{S(!1)}},$=c.companyView?.controllers.map((o=>o.user)),u=!!r.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:j}=E(H.isChargeCardFeatureEnabled),L=Ce(r,j,D),{isCardsHidden:V}=he(r?.tenantId),y=!L||V,F=r.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",s={classList:n.classes,managersList:t.users,controllersList:$,mode:f,isZeniTenant:T,onPeopleLocalDataUpdated:o=>{m(ce({peopleLocalData:o})),Z(!0)},onResetClick:x,onSaveClick:()=>{m(f==="zeni_only"?Te(e):ve())},onCloseClick:h,peopleDetails:w,isAccountingClassesEnabled:p,isReimbursementDisabled:U===!1,isLiteRoleDisabled:v===!1,isZeniAccountsDisabled:u===!1,isChargeCardDisabled:y,isTreasuryDisabled:F===!1,isBankingOnlyTenant:I,isCardsOnlyTenant:P,isLoading:B};return d.useEffect((()=>{w.invitePersonState.fetchState==="Completed"&&(b(),m(q()))}),[w.invitePersonState.fetchState]),a.jsx(De,{anchor:"right",open:i,PaperProps:{style:{width:aa.overlayWidth.valuePercentage(C),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:ye.overlayDark,cursor:"pointer"}}},onClose:h,children:a.jsxs(ta,{onClick:o=>o.stopPropagation(),children:[k===!0?a.jsx(be,{titleComponent:a.jsx(ke,{children:oe.discardTitle}),descriptionComponent:a.jsx(Ee,{children:oe.discardDescription}),primaryButtonText:ie.yes,secondaryButtonText:ie.no,action:A}):null,a.jsx(Ue,{...s})]})})},ta=M(Ie)`
|
|
19
|
-
display: flex;
|
|
20
|
-
min-height: 100%;
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
`,na=qe((function(e,t){const c=ue(e),n=W.getSignedInUser();return{data:c,loggedinUserId:n?.userId??"",isZeniTenant:t.isZeniTenant===!0,shouldFetchClasses:t.shouldFetchClasses,isZeniAdminUser:n?.userEmailDomain==="zeni.ai"&&t.isZeni===!0,isAccountingClassesEnabled:G(e),analytics:xe}}),(function(e,t){const{navigate:c,companyId:n,shouldFetchClasses:f}=t;return{personAction:{onPersonDelete:(i,b)=>{e(pe(i,b))},onResendInvite:i=>{e(Re(i))},onReloadPeople:()=>{e(me()),e(ge(n,f))},onBackClick:()=>{c("../../")},onModeChange:i=>{e(_({mode:i,searchText:"",sortKey:"name",sortOrder:"ascending"}))},onSearchTextChanged:i=>{e(_({searchText:i}))}}}}))(Ge);function J({isInvitePeopleDrawerOpen:e,isEditPeopleDrawerOpen:t}){const c=Me(),n=ee(),f=Je(),{areTenantIdsInSync:i}=Be(),b=W.getSignedInUser(),C=g((s=>N(s))),{useFeatureGate:m}=Y(),{isFeatureEnabled:O}=m(H.isDebitCardFeatureEnabled),Z=g((s=>G(s))),k=!X(O,C)&&Z,S=Q(C),w=C?.tenantId,{tenantEmailDomain:r}=C,[p,E]=d.useState(!1),[D,I]=d.useState(!1),[P,T]=d.useState(!1),[v,U]=d.useState("off"),[B,x]=d.useState(!1),h=s=>{x(s)},{isAiCfoAccessEnabled:A,onAskAiCfoClick:$}=Ne({mobileExploreReferrer:"People"}),u=g((s=>ue(s)));$e({isDataReady:u.fetchState==="Completed"});const j=g((s=>Ae(s.classState,s.classListState))),L=g((s=>Ve(s.userState,s.userRoleState,s.userListViewState,"manager"))),V=g((s=>Fe(s))),y=C?.companyId;d.useEffect((()=>{p&&v===u.uiState.mode||!i||(n(_({searchText:"",sortKey:"name",sortOrder:"ascending"})),U(u.uiState.mode),E(!0),n(me()))}),[p,b,w,n,u.uiState.mode,i]),d.useEffect((()=>{y!=null&&i&&n(ge(y,k))}),[y,k,i]),d.useEffect((()=>{I(e!=null&&e===!0),T(t!=null&&t===!0&&t)}),[e,t]),d.useEffect((()=>{n(_({searchText:"",sortKey:"name",sortOrder:"ascending"}))}),[]);const F=()=>{I(!1),T(!1),c("../")};return a.jsxs(a.Fragment,{children:[u.fetchState==="Completed"?a.jsx(ze,{analytics:xe,onLoad:s=>s.trackPageLoaded(_e.Event.members)}):null,D===!0?a.jsx(sa,{closeDrawerHandler:F,isInvitePeopleDrawerOpen:D,managersListView:L,companyPassportView:V,classListView:j,companyId:y,mode:u.uiState.mode}):null,P===!0?a.jsx(Ye,{closeDrawerHandler:F,isEditPeopleDrawerOpen:P,managersListView:L,companyPassportView:V,classListView:j,companyId:y,mode:u.uiState.mode}):null,a.jsx(Xe,{isAppContentDrawerOpen:B,handleDrawerToggle:h}),a.jsx(na,{navigate:c,signedInUser:b,isZeni:C.isZeni,isZeniTenant:S,peopleUIState:u.uiState,companyId:y,shouldFetchClasses:k,classList:j,managersView:L,peopleView:u,onInvitePeopleClick:()=>{c("./new")},onColumnSortConfigChanged:(s,o)=>{n(_({sortKey:s,sortOrder:o}))},onRowClick:s=>{const o=`/${r}/people/${encodeURIComponent(s)}/edit`,l=He(f.state?.pathnameStackToGoBack,f.pathname);c(o,{state:{pathnameStackToGoBack:l}})},onClickMenuIcon:()=>{h(!0)},isAiCfoAccessEnabled:A,onAskAiCfoClick:$})]})}function ka(){const e=We();return Oe(e?.loggedInUserRole??[])?a.jsxs(se,{children:[a.jsx(z,{path:"/",element:a.jsx(J,{})}),a.jsx(z,{path:"new",element:a.jsx(J,{isInvitePeopleDrawerOpen:!0})}),a.jsx(z,{path:":userId/edit",element:a.jsx(J,{isEditPeopleDrawerOpen:!0})}),a.jsx(z,{path:"*",element:a.jsx(ae,{})})]}):a.jsx(se,{children:a.jsx(z,{path:"*",element:a.jsx(ae,{})})})}export{ka as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-y3zMPGKB.js";import T from"./NotFoundScreen-Duy6T6m3.js";import{a as r}from"./sentry-Jm7O5sR0.js";import{h as _,g as P,j as p,i as v,u as M,N as U,l as z,n as O,o as h}from"./core-BwK6FGJd.js";import{fE as B,a0P as b,bo as F,bn as N,iK as V,gg as $}from"./zeni-epic-state-BugXGzus.js";import{$ as K,z as I,as as q,dP as G}from"./index-CavSpTx-.js";import"./mui-CxIkaR9n.js";import{u as H}from"./useAskAiCfoHostNavButtonProps-DQ3F86Nw.js";import{M as J}from"./MobileAppDrawer-Ce8Zx46w.js";import"./recharts-CoAMGh71.js";import"./analytics-BTvt2K3S.js";import"./plaid-CQqwPn97.js";import"./dnd-Cbdx7tVf.js";import"./stripe-cKAAJElX.js";import"./lottie-BQlGSG2c.js";import"./lexical-DRfKJLK3.js";import"./pdf-DGzvSuDl.js";import"./utils-BVIT21dc.js";import"./InboxNotificationsProvider-ozJWRqdQ.js";import"./useTaskManagerAccess-B9_LRJIF.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ebaa3c05-dabd-417f-aade-c51355f66e2c",e._sentryDebugIdIdentifier="sentry-dbid-ebaa3c05-dabd-417f-aade-c51355f66e2c")}catch{}})();const L=z((function(e){const t=I.getSignedInUser(),c=e.tenantState.currentTenantId,o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:c??""},{aggregatedReportViewState:n}=b(e);return{authParams:o,isDisabled:!1,loggedInUser:t,aggregatedReport:n}}),(function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}}))(G),Q=()=>{const e=_(),t=P(),c=K(),o=p((a=>B(a))),{aggregatedReportViewState:n}=p((a=>b(a))),{tenantEmailDomain:f}=v(),g=M(),l=I.getSignedInUser();if(l==null)throw new Error("Can't access this page without signing in...");const m=r.useRef(!1),[w,S]=r.useState(!1),C=F(o?.userRole??[]),k=o?.userRole?.includes("bookkeeping_admin")??!1,x=N(l),y=C||k||x,d=r.useCallback(((a,i,E)=>{g(V({fromMonth:a,toMonth:i,cacheOverride:E}))}),[]);r.useEffect((()=>{n?.fetchState==="Completed"&&m.current&&(g($({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),m.current=!1)}),[n?.fetchState]);const D=r.useCallback(((a,i)=>{n!=null&&n?.fetchState==="In-Progress"||d(a,i,!0),m.current=!0}),[n?.fetchState,d]),j=r.useCallback(((a,i)=>{d(a,i,!1)}),[d]),u=a=>{S(a)},{isAiCfoAccessEnabled:R,onAskAiCfoClick:A}=H({mobileExploreReferrer:"Performance"});return q({isDataReady:n?.fetchState==="Completed"}),y?s.jsxs(s.Fragment,{children:[s.jsx(J,{isAppContentDrawerOpen:w,handleDrawerToggle:u}),s.jsx(L,{navigate:e,location:t,themeState:c,currentTenant:o,signedInUser:l,tenantEmailDomain:f,onReload:D,onTimeRangeSelect:j,handleDrawerToggle:u,isAiCfoAccessEnabled:R,onAskAiCfoClick:A})]}):s.jsx(U,{to:`/${f}/dashboard`,replace:!0})};function he(){return s.jsxs(O,{children:[s.jsx(h,{path:"*",element:s.jsx(Q,{})}),s.jsx(h,{path:"*",element:s.jsx(T,{})})]})}export{he as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-y3zMPGKB.js";import{z as b,a8 as E,k as u,T as N,e4 as S,O as k,c as C}from"./index-CavSpTx-.js";import"./mui-CxIkaR9n.js";import g from"./NotFoundScreen-Duy6T6m3.js";import{a as c}from"./sentry-Jm7O5sR0.js";import{u as I,j as h,h as F,g as L,l as T,n as _,o as d,N as y}from"./core-BwK6FGJd.js";import{fE as U,a1K as j,a1L as p,DF as P,p_ as V,a1M as z,DD as G}from"./zeni-epic-state-BugXGzus.js";import"./recharts-CoAMGh71.js";import"./analytics-BTvt2K3S.js";import"./plaid-CQqwPn97.js";import"./dnd-Cbdx7tVf.js";import"./stripe-cKAAJElX.js";import"./lottie-BQlGSG2c.js";import"./lexical-DRfKJLK3.js";import"./pdf-DGzvSuDl.js";import"./utils-BVIT21dc.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b41dea2b-6d3d-45a1-9aaf-6c4932dd8328",e._sentryDebugIdIdentifier="sentry-dbid-b41dea2b-6d3d-45a1-9aaf-6c4932dd8328")}catch{}})();const K=T((function(e,t){const n=j(e);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}}),(function(e,t){const{navigate:n}=t,i=b.getSignedInUser();return{onDismissClick:()=>{e(p()),n("/")},onSendClick:()=>{if(i!=null){const s=[],r=[];t.inviteFormCompayData.forEach((l=>{s.push(l.companyName),r.push(l.emailIds[0])})),u.trackInviteEmailClicked("send",s,r,s.length)}e(G())},onUpdateInviteFormLocalData:s=>{e(z({localData:s}))},onSubmitSuccess:()=>{e(p())},onCancelClick:()=>{i!=null&&u.trackInviteEmailClicked("cancel")}}}))(S),M=()=>{const e=I(),[t,n]=c.useState(!1),[i,s]=c.useState(!1),r=h((o=>U(o))),l=F(),w=L(),f=b.getSignedInUser();if(f==null)throw Error("Can't access invite referral screen without signing in...");const m=h((o=>j(o))),x=f?.firstName!=null?f.firstName:"User";c.useEffect((()=>{e(p()),r?.rewardsLastViewedTime==null&&i===!1&&(e(P()),s(!0))}),[]),c.useEffect((()=>{t||m.fetchState!=="Not-Started"||(n(!0),e(V(!0)))}),[m.fetchState,e]);const D=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[m.fetchState==="Completed"?a.jsx(E,{analytics:u,onLoad:o=>(v=>v.trackPageLoaded(N.Event.inviteEmailViewed))(o)}):null,a.jsx(K,{navigate:l,location:w,currentTenant:r,companyName:D,userName:x,inviteFormCompayData:m.localData})]})};function ne(){const{useFeatureGate:e}=k(),{isFeatureEnabled:t}=e(C.isReferralFeatureEnabled);return a.jsxs(_,{children:[a.jsx(d,{path:"/",element:a.jsx(y,{to:"refer",replace:!0})}),a.jsx(d,{path:"how-it-works",element:a.jsx(y,{to:"refer",replace:!0})}),a.jsx(d,{path:"refer/*",element:t?a.jsx(M,{}):a.jsx(g,{})}),a.jsx(d,{path:"*",element:a.jsx(g,{})})]})}export{ne as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/NotFoundScreen-Duy6T6m3.js","assets/sentry-Jm7O5sR0.js","assets/core-BwK6FGJd.js","assets/zeni-epic-state-BugXGzus.js","assets/index-CavSpTx-.js","assets/mui-CxIkaR9n.js","assets/analytics-BTvt2K3S.js","assets/utils-BVIT21dc.js","assets/index-BhC2LNQw.css","assets/DashboardRoutes-BWa2chAm.js","assets/withTransactionSidePanel-tINIzPX1.js","assets/useAskAiCfoHostNavButtonProps-DQ3F86Nw.js","assets/TransactionDetailScreen-C2_EB_46.js","assets/decodeURIComponentSafe-iAavL6tS.js","assets/useInitialThreadRequest-BRvCrjqu.js","assets/routePaths-D5zGcGZG.js","assets/expenseAutomationHelper-MxNxlZNN.js","assets/stripSplatSuffix-nQAZVh5Z.js","assets/analyticsHelper-sj9huSc9.js","assets/CompanyPassportScreen-D55YyxAR.js","assets/MobileAppDrawer-Ce8Zx46w.js","assets/InboxNotificationsProvider-ozJWRqdQ.js","assets/useTaskManagerAccess-B9_LRJIF.js","assets/useAiCfoDashboardSuggestedQuestionsChips-B8_gxBhe.js","assets/FeaturePreviewScreen-DFQePQma.js","assets/BillPayRoutes-BquhDc0u.js","assets/AddressScreen-DbL2JK9V.js","assets/DomesticWireDetailScreen-Di0HmEb7.js","assets/BusinessVerificationPageScreen-DlH1zL57.js","assets/DrawerScreen-BKD3lmi2.js","assets/SetupPagesScreen-Bn2r0Ale.js","assets/BillPayApprovalRoutes-C0QG7H0A.js","assets/ReimbursementApprovalRuleDetailScreen-CgsllBgS.js","assets/getLocaleForTenant-B-DdN2Lw.js","assets/ReimbursementRoutes-BoLFmFGU.js","assets/ReimbursementApprovalRoutes-BkXOBY6f.js","assets/TransactionListRoutes-DpOuohtl.js","assets/ZeniAccountStatementScreen-33Pf07v4.js","assets/SettingsRoutes-_eJ2ckP-.js","assets/AccountMappingScreen-A78kjWMW.js","assets/QBOConnectionScreen-DSxjIxzn.js","assets/empty-CTWnX7jn.js","assets/index-SQoDfHg2.js","assets/url-D9zjpdeS.js","assets/index-D2_EUTG6.js","assets/accountMappingHelper-CQrmB6jj.js","assets/useEmailConnectResultRefresh-98UHJ7hj.js","assets/ReportsRoutes-CrzZ0bl7.js","assets/ChargeCardRoutes-CWYnFFCQ.js","assets/useChargeCardPusherEvents-BZNmvp7i.js","assets/PeopleRoutes-ecEzCyKE.js","assets/ExpenseAutomationRoutes-ChA7_dQU.js","assets/useActualMatchingMatchDetail-CxpYQNp7.js","assets/ScheduleDetailsPrepaidExpensesScreen-DAsZ0K0d.js","assets/pathToGoBack-QMp9zrtx.js","assets/TreasuryRoutes-DchkL4da.js","assets/VendorsRoutes-DVyJDGrt.js","assets/ZeniAccountRoutes-C4eET6j1.js","assets/AddressRoutes-NMfqz3GH.js","assets/PandLWithForecastRoutes-GmhxMHoN.js","assets/CustomerOnboardingRoutes-DZOpRUqN.js","assets/TransactionDetailRoutes-DWBtPRgg.js","assets/EntityDetailRoutes-Dkd2Wwk0.js","assets/InvoicingRoutes-BIJoBfxF.js","assets/NotificationRoutes-RjDVJiKf.js","assets/PerformanceRoutes-BTYsYwgQ.js","assets/ActualMatchingMatchDetailScreen-H6FIHzKS.js","assets/RewardsRoutes-Bw-VJeWb.js","assets/TaskRoutes-CTl9GKlH.js","assets/TaskListScreen-B7cUAwfe.js","assets/AiCfoScreen-DQ-_2zus.js","assets/CardsAiCfoScreen-B3hOZl8l.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as s,bn as Es,fE as hs,dZ as ps,dY as xs,AS as gs,dh as Rs,c8 as js,gI as Is,g8 as Ts,de as pe,cG as As,gm as bs,cy as fs,bE as Ds,br as ys,TZ as Cs,v as vs,U0 as Os,bq as Us,U1 as Ps,bK as ws,bJ as Fs,bt as Ls,cu as ks,U2 as Vs,U3 as Hs,d9 as Ss,dc as Bs,db as Ns,cF as Ms,cM as Zs,pR as xe,gh as ge,gX as Gs,gj as Re,gK as je,gL as Ie,gk as $s}from"./zeni-epic-state-BugXGzus.js";import{j as e}from"./liveblocks-y3zMPGKB.js";import{a as P}from"./sentry-Jm7O5sR0.js";import{N as u,u as zs,h as Ys,i as qs,g as Ws,j as G,q as Te,n as Ks,o as n}from"./core-BwK6FGJd.js";import{M as l,E as Xs,u as Js,z as y,O as Qs,e as et,B as st,c as B,g as tt,N as nt,U as at,L as F,G as Ae,t as _,P as ot,Q as rt,k as ne}from"./index-CavSpTx-.js";import"./mui-CxIkaR9n.js";import{f as be}from"./analyticsHelper-sj9huSc9.js";import{t as it}from"./getLocaleForTenant-B-DdN2Lw.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},f=new o.Error().stack;f&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[f]="8948c14f-9173-4fb2-9a5e-b8fba68128b6",o._sentryDebugIdIdentifier="sentry-dbid-8948c14f-9173-4fb2-9a5e-b8fba68128b6")}catch{}})();const lt=l((()=>s((()=>import("./NotFoundScreen-Duy6T6m3.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8])))),ut=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/reimbursements`}),dt=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/bills`}),fe=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/treasury`}),De=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/checking`}),ye=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/cards`}),C=({showZeniAccountRoute:o,isUserHasBillPayAccess:f,isUserHasReimbursementAccess:N,showTreasuryRoute:i,isTenantBankingOnly:k,showChargeCardRoute:O,tenantEmailDomain:v})=>{if(k===!0){if(o)return e.jsx(De,{tenantEmailDomain:v});if(i)return e.jsx(fe,{tenantEmailDomain:v});if(O)return e.jsx(ye,{tenantEmailDomain:v})}return o?e.jsx(De,{tenantEmailDomain:v}):i?e.jsx(fe,{tenantEmailDomain:v}):O?e.jsx(ye,{tenantEmailDomain:v}):f?e.jsx(dt,{tenantEmailDomain:v}):N?e.jsx(ut,{tenantEmailDomain:v}):e.jsx(lt,{})},ct={dashboard:()=>s((()=>import("./DashboardRoutes-BWa2chAm.js")),__vite__mapDeps([9,1,2,3,4,5,6,7,10,11,12,13,14,15,16,17,0,18,19,20,21,22,23,24,8])),bills:()=>s((()=>import("./BillPayRoutes-BquhDc0u.js")),__vite__mapDeps([25,1,2,3,4,5,6,7,26,0,27,11,14,28,15,20,21,22,29,24,30,18,31,32,33,8])),reimbursement:()=>s((()=>import("./ReimbursementRoutes-BoLFmFGU.js")),__vite__mapDeps([34,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,24,11,14,29,35,32,33,8])),transactions:()=>s((()=>import("./TransactionListRoutes-DpOuohtl.js")),__vite__mapDeps([36,1,2,3,4,5,6,7,10,11,12,13,14,15,16,17,37,8])),settings:()=>s((()=>import("./SettingsRoutes-_eJ2ckP-.js")),__vite__mapDeps([38,1,2,3,4,5,6,7,22,39,20,21,40,41,42,43,44,13,45,26,0,18,28,15,19,46,31,32,35,8])),reports:()=>s((()=>import("./ReportsRoutes-CrzZ0bl7.js")),__vite__mapDeps([47,1,2,3,4,5,6,7,0,24,14,15,20,21,22,8])),chargeCards:()=>s((()=>import("./ChargeCardRoutes-CWYnFFCQ.js")),__vite__mapDeps([48,1,2,3,4,5,6,7,11,20,21,22,30,28,15,0,18,14,49,26,8])),people:()=>s((()=>import("./PeopleRoutes-ecEzCyKE.js")),__vite__mapDeps([50,1,2,3,4,5,6,7,0,11,20,21,22,8])),expenseAutomation:()=>s((()=>import("./ExpenseAutomationRoutes-ChA7_dQU.js")),__vite__mapDeps([51,1,2,3,0,4,5,6,7,11,12,13,14,15,16,52,17,10,53,54,45,29,8])),treasury:()=>s((()=>import("./TreasuryRoutes-DchkL4da.js")),__vite__mapDeps([55,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,11,14,24,8])),vendors:()=>s((()=>import("./VendorsRoutes-DVyJDGrt.js")),__vite__mapDeps([56,1,2,3,4,5,6,7,26,0,24,53,54,15,11,20,21,22,29,45,8])),zeniAccounts:()=>s((()=>import("./ZeniAccountRoutes-C4eET6j1.js")),__vite__mapDeps([57,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,24,27,26,11,37,8]))},mt=["bills","transactions","settings","reimbursement","reports","chargeCards","people"],ae=o=>{"requestIdleCallback"in window?requestIdleCallback(o):setTimeout(o,100)},_t=l((()=>s((()=>import("./ReportsRoutes-CrzZ0bl7.js")),__vite__mapDeps([47,1,2,3,4,5,6,7,0,24,14,15,20,21,22,8])))),Et=l((()=>s((()=>import("./AddressRoutes-NMfqz3GH.js")),__vite__mapDeps([58,1,2,3,26,4,5,6,7,0,8])))),ht=l((()=>s((()=>import("./PeopleRoutes-ecEzCyKE.js")),__vite__mapDeps([50,1,2,3,4,5,6,7,0,11,20,21,22,8])))),pt=l((()=>s((()=>import("./PandLWithForecastRoutes-GmhxMHoN.js")),__vite__mapDeps([59,1,2,3,4,5,6,7,0,24,11,14,15,20,21,22,8])))),xt=l((()=>s((()=>import("./CustomerOnboardingRoutes-DZOpRUqN.js")),__vite__mapDeps([60,1,2,3,26,4,5,6,7,0,40,41,42,43,44,13,46,49,8])))),gt=l((()=>s((()=>import("./VendorsRoutes-DVyJDGrt.js")),__vite__mapDeps([56,1,2,3,4,5,6,7,26,0,24,53,54,15,11,20,21,22,29,45,8])))),Rt=l((()=>s((()=>import("./TransactionDetailRoutes-DWBtPRgg.js")),__vite__mapDeps([61,1,2,3,0,4,5,6,7,12,11,13,14,15,16,8])))),Ce=l((()=>s((()=>import("./EntityDetailRoutes-Dkd2Wwk0.js")),__vite__mapDeps([62,1,2,3,4,5,6,7,13,10,11,12,14,15,16,17,8])))),jt=l((()=>s((()=>import("./DashboardRoutes-BWa2chAm.js")),__vite__mapDeps([9,1,2,3,4,5,6,7,10,11,12,13,14,15,16,17,0,18,19,20,21,22,23,24,8])))),ve=l((()=>s((()=>import("./BillPayRoutes-BquhDc0u.js")),__vite__mapDeps([25,1,2,3,4,5,6,7,26,0,27,11,14,28,15,20,21,22,29,24,30,18,31,32,33,8])))),It=l((()=>s((()=>import("./SettingsRoutes-_eJ2ckP-.js")),__vite__mapDeps([38,1,2,3,4,5,6,7,22,39,20,21,40,41,42,43,44,13,45,26,0,18,28,15,19,46,31,32,35,8])))),Tt=l((()=>s((()=>import("./InvoicingRoutes-BIJoBfxF.js")),__vite__mapDeps([63,1,2,3,4,5,6,7,26,0,20,21,22,40,41,42,43,44,13,8])))),Oe=l((()=>s((()=>import("./ReimbursementRoutes-BoLFmFGU.js")),__vite__mapDeps([34,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,24,11,14,29,35,32,33,8])))),At=l((()=>s((()=>import("./ZeniAccountRoutes-C4eET6j1.js")),__vite__mapDeps([57,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,24,27,26,11,37,8])))),bt=l((()=>s((()=>import("./TreasuryRoutes-DchkL4da.js")),__vite__mapDeps([55,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,11,14,24,8])))),ft=l((()=>s((()=>import("./TransactionListRoutes-DpOuohtl.js")),__vite__mapDeps([36,1,2,3,4,5,6,7,10,11,12,13,14,15,16,17,37,8])))),Dt=l((()=>s((()=>import("./ChargeCardRoutes-CWYnFFCQ.js")),__vite__mapDeps([48,1,2,3,4,5,6,7,11,20,21,22,30,28,15,0,18,14,49,26,8])))),yt=l((()=>s((()=>import("./NotificationRoutes-RjDVJiKf.js")),__vite__mapDeps([64,1,2,3,0,4,5,6,7,11,22,8])))),Ct=l((()=>s((()=>import("./PerformanceRoutes-BTYsYwgQ.js")),__vite__mapDeps([65,1,2,3,0,4,5,6,7,11,20,21,22,8])))),vt=l((()=>s((()=>import("./ExpenseAutomationRoutes-ChA7_dQU.js")),__vite__mapDeps([51,1,2,3,0,4,5,6,7,11,12,13,14,15,16,52,17,10,53,54,45,29,8])))),Ot=l((()=>s((()=>import("./ActualMatchingMatchDetailScreen-H6FIHzKS.js")),__vite__mapDeps([66,1,2,3,4,5,6,7,52,17,13,15,0,8])))),Ut=l((()=>s((()=>import("./RewardsRoutes-Bw-VJeWb.js")),__vite__mapDeps([67,1,2,3,4,5,6,7,0,8])))),Pt=l((()=>s((()=>import("./TaskRoutes-CTl9GKlH.js")),__vite__mapDeps([68,1,2,3,0,4,5,6,7,14,20,21,22,69,11,8])))),wt=l((()=>s((()=>import("./AiCfoScreen-DQ-_2zus.js")),__vite__mapDeps([70,1,2,3,4,5,6,7,23,54,15,8])))),Ue=l((()=>s((()=>import("./CardsAiCfoScreen-B3hOZl8l.js")),__vite__mapDeps([71,1,2,3,4,5,6,7,8])))),b=l((()=>s((()=>import("./NotFoundScreen-Duy6T6m3.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8])))),Ft=l((()=>s((()=>import("./TaskListScreen-B7cUAwfe.js").then((o=>o.f))),__vite__mapDeps([69,1,2,3,4,5,6,7,11,20,21,22,8])))),Lt=({isDashboardAccess:o,showZeniAccountRoute:f,isUserHasBillPayAccess:N,isUserHasReimbursementAccess:i,showTreasuryRoute:k,isTenantBankingOnly:O,isTenantCardsOnly:v,showChargeCardRoute:V})=>{if(O===!0){if(f)return e.jsx(u,{to:"checking"});if(k)return e.jsx(u,{to:"treasury"});if(V)return e.jsx(u,{to:"cards"})}return v===!0&&V?e.jsx(u,{to:"cards"}):o?e.jsx(u,{to:"dashboard"}):f?e.jsx(u,{to:"checking"}):k?e.jsx(u,{to:"treasury"}):V?e.jsx(u,{to:"cards"}):N?e.jsx(u,{to:"bills"}):i?e.jsx(u,{to:"reimbursements"}):e.jsx(u,{to:"dashboard"})},Pe=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/dashboard`}),Gt=Object.freeze(Object.defineProperty({__proto__:null,default:function({setTenantEmailDomain:o}){const f=zs(),N=Ys(),{tenantEmailDomain:i}=qs(),k=Xs().mode,{setLoading:O,clearAllLoading:v,clearLoading:V}=Js(),D=y.getSignedInUserTenant(i)?.tenantId,I=y.getSignedInUser(),K=Es(I),$=Ws(),[L,we]=P.useState(!1),r=G((a=>hs(a))),{useFeatureGate:H}=Qs(),M=et(),X=st(),Fe=!!r.company?.companyZeniAccountInfo?.isZeniAccountEnabled,Le=r.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",{isFeatureEnabled:ke}=H(B.isChargeCardFeatureEnabled),{isFeatureEnabled:oe}=H(B.isDebitCardFeatureEnabled),T=G((a=>a.tenantState.fetchState)),p=G((a=>a.tenantState.activeTenantFetchState.fetchState)),E=p==="Completed"||T==="Completed"?ps(oe,r):void 0,J=p==="Completed"||T==="Completed"?xs(r):void 0,re=p==="Completed"||T==="Completed"?gs(r)&&!Rs(r):void 0,Ve=tt(r,ke,oe),{isCardsHidden:He}=nt(r?.tenantId),Se=!Ve||!!He,{isFeatureEnabled:Be}=H(B.isSettingsFeatureEnabled),{isFeatureEnabled:Q}=H(B.isAiCfoFileUploadEnabled),{isFeatureEnabled:Ne}=H(B.isInvoicingFeatureEnabled??"is_invoicing_feature_enabled"),Me=Ne||rt==="DEV",Ze=r?.userRole!=null&&js(r.userRole),z=G((a=>Is(a)));if(i!=null){const a=y.getSignedInUserTenant(i);I!=null&&a!=null&&be(I,r,k)}const Z={tenantId:D,userId:I?.userId,sessionId:I?.zeniSessionId},ie=Ts(),h=at(),Ge=r.company==null||h?.loggedInUserRoleMap!=null&&pe(h.loggedInUserRole),$e=As(h?.loggedInUserRoleMap),ee=Te("/:tenantEmailDomain/onboarding/*")!==null,ze=Te("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*"),se=ze?.params.selectedPeriod,Ye=G((a=>Z.tenantId!=null?bs(a,Z.tenantId):void 0));P.useEffect((()=>{O(F.TENANT_FETCHING),o(i)}),[i]),P.useEffect((()=>{if(se!=null&&D!=null){const a=se.split("-");if(a.length===2){const A=fs(Number(a[0])),c=Number(a[1]),t=Ds(`01-${A<10?`0${A}`:A}-${c}`,Ae.getLocalizedStrings().dateFormat.analytics.DDDashMMDashYYYY),d=ys();t.isAfter(d,"month")===!1?f(Cs(D,{month:A,year:c})):N(`/${i}/month_end_close_checks/review`)}}}),[se,i,D]),P.useEffect((()=>{L||(we(!0),O(F.TENANT_FETCHING))}),[L,Z,ie,I,f,y]),P.useLayoutEffect((()=>{!vs(ie,Z)&&y.isSignedIn()&&(O(F.TENANT_FETCHING),(function(a,A,c,t){if(ge(A?.userId,A?.zeniSessionId,a.tenantId),c(Gs(!0)),c(Re(a.tenantId)),a.tenantId!=null&&_.clearTenant(a.tenantId),a.tenantId!=null){const d=y.getSignedInUserTenantWithId(a.tenantId);t&&Ae.updateAppLocaleID(it(t)),d?.tenantEmailDomain!=null&&y.saveActiveTenantDomainForUser(d?.tenantEmailDomain)}a.userId!=null?ne.identify(a.userId,{tenant_id:a.tenantId}):ne.resetUserIdentity()})(Z,I,f,Ye))}),[D]),P.useEffect((()=>{y.isSignedIn()&&(O(F.TENANT_FETCHING),(function(a,A,c,t,d,Y,S){if(c==null&&t==null)return void console.warn("There is no current tenant selected!!");const q=t!=null&&d?.zeniSessionId!=null,cs=c==null||c.tenantId!==t,ms=c!=null&&c.excludedResources==null,_s=c!=null&&c.externalConnections==null;if(q&&cs){S(Re(t));const W=y.getSignedInUserTenantWithId(t);W?.tenantEmailDomain!=null&&y.saveActiveTenantDomainForUser(W?.tenantEmailDomain),ge(d?.userId,d?.zeniSessionId,t),_.shouldFetchExcludedResources(t)&&(_.markExcludedResourcesFetchStarted(t),S(je(d.userId,t))),_.shouldFetchConnections(t)&&(_.markConnectionsFetchStarted(t),S(Ie(d.userId,t)))}else q&&ms&&_.shouldFetchExcludedResources(t)&&(_.markExcludedResourcesFetchStarted(t),S(je(d.userId,t))),q&&_s&&_.shouldFetchConnections(t)&&(_.markConnectionsFetchStarted(t),S(Ie(d.userId,t)));if(q){ne.identify(d.userId,{tenant_id:t});const W=t==null||t!=null&&(A==="Completed"||A==="Error");a==="Completed"||A!=="Not-Started"&&A!=="Error"||t==null||!_.shouldFetchActiveTenant(t)||(_.markActiveTenantFetchStarted(t),Y(F.TENANT_FETCHING),S($s(d.userId,t,d.zeniSessionId))),W&&(a==="Not-Started"||a==="Error")&&_.shouldFetchAllTenants()&&(_.markAllTenantsFetchStarted(),S(xe(d.userId,d.zeniSessionId)))}})(T,p,r,D,I,O,f))}),[D,p]),P.useEffect((()=>{y.isSignedIn()&&T==="Completed"&&z.tenantsBaseInOrder.length>0&&(V(F.TENANT_FETCHING),y.saveSignedInUserTenants(Os(z.tenantsBaseInOrder)),I!=null&&be(I,r,k,void 0,z.tenantsBaseInOrder))}),[z,T,r,I]),P.useEffect((()=>{p==="In-Progress"&&O(F.TENANT_FETCHING),p!=="Completed"&&p!=="Error"||(p==="Completed"&&D!=null?(v(),_.markActiveTenantFetchCompleted(D)):p==="Error"&&D!=null&&(_.markActiveTenantFetchFailed(D),V(F.TENANT_FETCHING),V(F.TENANT_SWITCHING))),T!=="Completed"&&T!=="Error"||(T==="Completed"?_.markAllTenantsFetchCompleted():T==="Error"&&_.markAllTenantsFetchFailed())}),[p,T,D,L]);const le=P.useRef(!1);P.useEffect((()=>{!le.current&&p==="Completed"&&L&&(le.current=!0,(function(a=mt,A=3e3){setTimeout((()=>{const c=t=>{if(t>=a.length)return;const d=a[t],Y=ct[d];Y!=null?Y().then((()=>ae((()=>c(t+1))))).catch((()=>ae((()=>c(t+1))))):c(t+1)};ae((()=>c(0)))}),A)})())}),[p,L]);const U=r?.userRole!=null&&Us(r?.userRole),{isFeatureEnabled:qe}=H(B.isReferralFeatureEnabled),{isFeatureEnabled:We}=H(B.isAccrualEnabled),Ke=r?.userRole!=null&&r.userRole.includes("charge_card_user"),Xe=r?.userRole!=null&&r.userRole.includes("charge_card_admin"),w=r?.userRole!=null&&pe(r.userRole),ue=r?.company==null||r.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!U,de=!Se&&!U,Je=Ps(h?.loggedInUserRoleMap),Qe=r.externalConnections?.accounting[0]?.isValid,es=r.externalConnections?.fetchState==="Completed",te=r.company?.companyOnboardingInfo.isOnboardingCompleted,ce=r?.company==null||r.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!U,me=ce&&ws(h?.loggedInUserRoleMap),_e=Fe&&!U,ss=Le&&!U,ts=ue&&Fs(h?.loggedInUserRoleMap),ns=de&&Ls(h?.loggedInUserRoleMap),as=_e&&ks(h?.loggedInUserRoleMap),os=Vs(h?.loggedInUserRoleMap),rs=Hs(h?.loggedInUserRoleMap),is=Ss(h?.loggedInUserRoleMap),ls=Bs(h?.loggedInUserRoleMap),us=Ns(h?.loggedInUserRoleMap),x=Ms(h?.loggedInUserRoleMap),g=Zs(h?.loggedInUserRoleMap),Ee=ue&&x,he=ce&&g,R=_e&&is,j=ss&&ls,m=de&&us,ds=r.excludedResources?.resources?.find((a=>a.resource==="/invites"))!=null||$e===!0||Je===!0||os===!0||rs===!0;return y.isSignedIn()?D==null?T==="Completed"?e.jsx(u,{to:"/",replace:!0,state:{...$.state,message:"...",origin:$.pathname}}):(I!=null&&T!=="In-Progress"&&f(xe(I.userId,I.zeniSessionId)),null):p!=="In-Progress"&&p!=="Not-Started"||T==="Completed"?(te===!0||K&&!ee)&&es&&Qe!==!0&&E===!1&&J===!1&&re===!1?(o(void 0),e.jsx(u,{to:"/connection/auth",replace:!0})):!L||re!==!0||te!==!0||ee||K?!L||te!==!1||ee||K?L&&r?.userRole&&E!=null&&J!=null&&i!=null&&Object.keys(h.loggedInUserRoleMap).length>0?e.jsx(Ks,{children:e.jsxs(n,{element:e.jsx(ot,{}),children:[e.jsx(n,{path:"/",element:e.jsx(Lt,{isDashboardAccess:w,showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,isTenantCardsOnly:J,showChargeCardRoute:m})}),e.jsx(n,{path:"dashboard/*",element:w?e.jsx(jt,{}):e.jsx(C,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"reports/*",element:w?e.jsx(_t,{}):e.jsx(C,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"people/*",element:ds||w?e.jsx(ht,{}):e.jsx(C,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"forecast/*",element:w?e.jsx(pt,{}):e.jsx(C,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"onboarding/*",element:e.jsx(xt,{})}),e.jsx(n,{path:"transaction/*",element:w&&U===!1||Ke||Xe?e.jsx(Rt,{}):e.jsx(C,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"transactions/*",element:w&&U===!1?e.jsx(ft,{}):e.jsx(C,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"customer/*",element:w&&U===!1?e.jsx(Ce,{entityType:"customer"}):e.jsx(C,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,isTenantBankingOnly:E,showTreasuryRoute:j,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"vendor/*",element:w&&U===!1?e.jsx(Ce,{entityType:"vendor"}):e.jsx(C,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"tasks",element:e.jsx(Ft,{})}),e.jsx(n,{path:"tasks/*",element:e.jsx(Pt,{})}),e.jsx(n,{path:"address/*",element:ts||me||as||ns?e.jsx(Et,{}):e.jsx(C,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"checking/*",element:R?e.jsx(At,{}):e.jsx(b,{})}),e.jsx(n,{path:"treasury/*",element:j?e.jsx(bt,{}):e.jsx(b,{})}),e.jsx(n,{path:"performance",element:X===!0?e.jsx(Ct,{}):e.jsx(Pe,{tenantEmailDomain:i})}),e.jsx(n,{path:"month_end_close_checks/review/*",element:X===!0&&U===!1?e.jsx(vt,{}):e.jsx(Pe,{tenantEmailDomain:i})}),e.jsx(n,{path:"expense-automation/actual-matching/:matchId",element:X===!0&&U===!1&&We===!0?e.jsx(Ot,{}):e.jsx(b,{})}),e.jsx(n,{path:"notifications/*",element:e.jsx(yt,{})}),e.jsx(n,{path:"vendors/*",element:Ge?e.jsx(gt,{}):e.jsx(b,{})}),e.jsx(n,{path:"bill/*",element:Ee?e.jsx(ve,{}):e.jsx(C,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"bills/*",element:Ee?e.jsx(ve,{}):e.jsx(C,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"reimbursement/*",element:he?e.jsx(Oe,{}):e.jsx(C,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"reimbursements/*",element:he?e.jsx(Oe,{}):e.jsx(C,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"settings/*",element:Be?e.jsx(It,{hasAdminLevelAccess:me}):e.jsx(b,{})}),e.jsx(n,{path:"invoicing/*",element:Me&&Ze?e.jsx(Tt,{}):e.jsx(b,{})}),e.jsx(n,{path:"cards/ask",element:m&&M?e.jsx(Ue,{isFileUploadEnabled:Q}):e.jsx(b,{})}),e.jsx(n,{path:"cards/ask/:session_id",element:m&&M?e.jsx(Ue,{isFileUploadEnabled:Q}):e.jsx(b,{})}),e.jsx(n,{path:"cards/*",element:m?e.jsx(Dt,{}):e.jsx(b,{})}),e.jsx(n,{path:"rewards/*",element:qe?e.jsx(Ut,{}):e.jsx(b,{})}),e.jsx(n,{path:"/ai-cfo",element:M?e.jsx(u,{to:"explore"}):e.jsx(b,{})}),e.jsx(n,{path:"/ai-cfo/",element:M?e.jsx(u,{to:"explore"}):e.jsx(b,{})}),e.jsx(n,{path:"/ai-cfo/:session_id",element:M?e.jsx(wt,{isFileUploadEnabled:Q}):e.jsx(b,{})}),e.jsx(n,{path:"*",element:e.jsx(b,{})})]})}):null:(o(void 0),e.jsx(u,{to:`/${i}/onboarding`,replace:!0})):(o(void 0),e.jsx(u,{to:`/${i}/onboarding/thankyou`,replace:!0})):null:(console.warn("User logged out!!"),o(void 0),e.jsx(u,{to:"/signin/auth",replace:!0,state:{...$.state,message:"...",origin:$.pathname}}))}},Symbol.toStringTag,{value:"Module"}));export{C as F,Gt as S};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-y3zMPGKB.js";import{a as f,R as b,q as A}from"./sentry-Jm7O5sR0.js";import{u as z,h as D,j as l,g as M,N as j,l as P}from"./core-BwK6FGJd.js";import{u as O,z as s,E as F,k as w,G as N,R as _,T as B,Z as V,V as $,W as R,X as v}from"./index-CavSpTx-.js";import{fE as W,TI as q,U0 as J,gh as X,gj as Z,U5 as G,gT as H,di as K,U6 as U,U7 as Q,U8 as Y,b$ as y}from"./zeni-epic-state-BugXGzus.js";import"./mui-CxIkaR9n.js";import{u as ee}from"./useDeviceId-DdPl1EVl.js";import{f as te}from"./analyticsHelper-sj9huSc9.js";import{t as ne}from"./getLocaleForTenant-B-DdN2Lw.js";import"./recharts-CoAMGh71.js";import"./analytics-BTvt2K3S.js";import"./plaid-CQqwPn97.js";import"./dnd-Cbdx7tVf.js";import"./stripe-cKAAJElX.js";import"./lottie-BQlGSG2c.js";import"./lexical-DRfKJLK3.js";import"./pdf-DGzvSuDl.js";import"./utils-BVIT21dc.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="d14478ca-33a3-4f45-88c8-231071806081",t._sentryDebugIdIdentifier="sentry-dbid-d14478ca-33a3-4f45-88c8-231071806081")}catch{}})();const ie=P((function(t,i){const d=t.tenantState.fetchState,g=t.tenantState.sendEmailMagicLinkFetchState,{magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:c}=i;return{googleClientId:v.googleClientId,microsoftClientId:v.microsoftClientId,signInError:t.tenantState.error?.error,fetchState:d,sendMagicLinkStatus:g,magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:c}}),(function(t,i){const{location:d,navigate:g}=i;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,a)=>{A({message:`OAuth error from provider ${a} with error ${n}`,level:"error",tags:{authProvider:a,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,a)=>{const c=a==="google"?window.location.origin:window.location.origin+window.location.pathname;t(Y({authCode:n,oauthProvider:a,appType:"web",redirectUri:y(c),sourceUri:y(d.state!=null?d.state.origin:"")}))},getSignedInUser:()=>s.getSignedInUser(),onSignedInCallback:()=>{const n=d.state?.origin;n&&n!=="/"?g(n,{replace:!0}):window.open(window.location.origin,"_self")},sendMagicLink:n=>{const{deviceId:a}=i;a!=null&&(s.saveMagicLinkEmail(n),t(Q(n,a)))},clearSignInError:()=>{t(U())}}}))(R),ae=b.memo(ie);function ve({setTenantEmailDomain:t}){const i=z(),d=D(),{clearAllLoading:g}=O(),n=s.getSignedInUser();f.useLayoutEffect((()=>{g()}),[g]);const a=ee(),c=l((e=>e.tenantState.magicLinkCodeVerifier)),{sendEmailMagicLinkFetchState:E,accountLocked:C,accountUnlockTime:h}=l((e=>e.tenantState)),p=l((e=>e.tenantState.fetchState)),k=l((e=>e.tenantState.activeTenantFetchState.fetchState)),S=l((e=>e.tenantState.signInState)),o=l((e=>e.tenantState.loggedInUser)),r=l((e=>W(e))),I=l((e=>q(e))),m=M(),L=F().mode,T=m.state?.magicLinkExpired,x=m.state?.magicLinkAlreadyUsed;if(f.useEffect((()=>{E.fetchState==="Completed"&&c!=null&&(w.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(c))}),[E.fetchState,c]),f.useEffect((()=>{t(void 0)}),[]),f.useEffect((()=>{S!=="In-Progress"||p!=="Completed"&&k!=="Completed"||o?.zeniSessionId==null||r==null||(s.savePayNowInfoTooltip(!0,o.zeniSessionId),s.saveSignedInUserWithSession(o,o.zeniSessionId),s.saveSignedInUserTenants(J(I.tenantsInOrder),o.zeniSessionId),X(o.userId,o.zeniSessionId,r.tenantId),i(Z(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(G("Completed")),N.updateAppLocaleID(ne(r)),te(o,r,L,void 0,I.tenantsInOrder),H().then((()=>{const e=$();e!=null&&_(e)})),setTimeout((()=>{w.trackLogin(B.Event.loginSuccess,o.authProvider??"google",K(r.productSettings))}),2e3))}),[S,p,k,o,r,I,L,m.state,i]),S==="In-Progress"&&p==="Completed"&&o?.zeniSessionId!=null&&r!=null||n!=null){const e=m.state?.origin??"/";return u.jsx(j,{to:e,state:{...m.state,origin:""}})}return u.jsxs(u.Fragment,{children:[u.jsx(ae,{magicLinkExpired:!!T,magicLinkAlreadyUsed:!!x,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),C===!0&&h!=null?u.jsx(V,{onClose:()=>i(U()),unlockDate:h}):null]})}export{ve as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-y3zMPGKB.js";import{a as i}from"./sentry-Jm7O5sR0.js";import{u as d,g as f,N as u}from"./core-BwK6FGJd.js";import{z as n,k as a,T as m,a7 as p}from"./index-CavSpTx-.js";import{gW as g,Um as y}from"./zeni-epic-state-BugXGzus.js";import{n as b}from"./mui-CxIkaR9n.js";import"./recharts-CoAMGh71.js";import"./analytics-BTvt2K3S.js";import"./plaid-CQqwPn97.js";import"./dnd-Cbdx7tVf.js";import"./stripe-cKAAJElX.js";import"./lottie-BQlGSG2c.js";import"./lexical-DRfKJLK3.js";import"./pdf-DGzvSuDl.js";import"./utils-BVIT21dc.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="03352816-7b8e-497c-9cc4-e1765d7b5403",e._sentryDebugIdIdentifier="sentry-dbid-03352816-7b8e-497c-9cc4-e1765d7b5403")}catch{}})();function N(){const e=d(),t=f(),r=i.useRef(!1),c=n.isSignedIn(),o=t.state?.message==="logout"||c;return i.useEffect((()=>{if(o&&!r.current){r.current=!0;try{e(g()),y(),a.trackLogout(m.Event.logoutSuccess),a.resetUserIdentity(),n.clearAll()}catch(l){console.error("Error during sign out:",l)}finally{window.location.replace("/signin/auth")}}}),[o,e]),o?s.jsx(h,{children:s.jsx(p,{fetchState:"In-Progress"})}):s.jsx(u,{to:"../",replace:!0})}const h=b.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`;export{N as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./liveblocks-y3zMPGKB.js";import ue from"./NotFoundScreen-Duy6T6m3.js";import{a as k}from"./sentry-Jm7O5sR0.js";import{h as Y,u as ee,j as E,g as de,i as ke,N as pe,l as me,n as Se,o as b}from"./core-BwK6FGJd.js";import{PO as ae,PR as fe,PL as Te,ZE as ge,fE as te,a1N as se,Qb as g,Q3 as T,PI as he,QH as be,QA as Ee,a1O as ne,gg as oe,a1P as V,PE as Ie,PB as De,uS as Ce,uG as Ge,my as Ue,Q1 as _e,a1Q as ye,QU as Pe,PZ as Re,Qm as Be,Qj as xe,PU as we,Qg as Ae,Qf as je}from"./zeni-epic-state-BugXGzus.js";import{z as _,e5 as ve,$ as Le,O as Fe,c as G,a4 as ie,p as U,a8 as Ke,k as q,T as $e,e6 as Qe,X as M,ae as Ne}from"./index-CavSpTx-.js";import{n as Oe}from"./mui-CxIkaR9n.js";import{u as Ze}from"./useInitialThreadRequest-BRvCrjqu.js";import{M as ze}from"./MobileAppDrawer-Ce8Zx46w.js";import{b as Ve,a as qe,u as Me,T as f,t as Xe,c as X,d as H,e as He}from"./TaskListScreen-B7cUAwfe.js";import"./recharts-CoAMGh71.js";import"./analytics-BTvt2K3S.js";import"./plaid-CQqwPn97.js";import"./dnd-Cbdx7tVf.js";import"./stripe-cKAAJElX.js";import"./lottie-BQlGSG2c.js";import"./lexical-DRfKJLK3.js";import"./pdf-DGzvSuDl.js";import"./utils-BVIT21dc.js";import"./InboxNotificationsProvider-ozJWRqdQ.js";import"./useTaskManagerAccess-B9_LRJIF.js";import"./useAskAiCfoHostNavButtonProps-DQ3F86Nw.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]="dd5c79a9-1b48-42b1-86d0-48c3f50c66cb",e._sentryDebugIdIdentifier="sentry-dbid-dd5c79a9-1b48-42b1-86d0-48c3f50c66cb")}catch{}})();function Je(){const e=Y(),a=ee(),n=_.getSignedInUser(),{cannedResponses:c,fetchState:s,saveFetchState:u}=E((o=>o.cannedResponsesState)),d=k.useCallback((()=>{a(ae())}),[a]),m=k.useCallback(((o,I,D)=>{a(fe({name:o,content:I,cannedResponseId:D}))}),[a]),t=k.useCallback((o=>{a(Te({cannedResponseId:o}))}),[a]);if(n==null)throw Error("Can't access quick responses page without signing in...");return r.jsx(ve,{cannedResponses:c,isLoading:s==="In-Progress"||s==="Not-Started",isSaving:u==="In-Progress",onBackClick:()=>e(-1),onDelete:t,onFetch:d,onSave:m})}const F=e=>e?.taskState?.taskByID,v=(e,a)=>{const n=F(e);if(a!=null&&n!=null)return n[a]?.parentTaskId??void 0},We=ge([v,(e,a)=>{const n=v(e,a),c=F(e);if(n!=null&&c!=null)return c[n]?.name},(e,a)=>{const n=v(e,a),c=F(e);return n!=null&&c!=null&&c[n]!=null}],((e,a,n)=>{if(e!=null&&n===!0)return{id:e,name:a??""}}));let J,W=[];const Ye=me((function(e,a){const{location:n,taskGroupId:c}=a,s=ne(e,a.taskId),u=te(e),d=We(e,a.taskId),m=s.taskGroupId??c,t=m!=null?V(e.taskGroupState,m):void 0,o=_.getSignedInUser(),I=u.tenantId,D={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:I??""},B=se(e),{tenantEmailDomain:x}=u,y=s.recurringSourceTaskId,w=y!=null?`${M.appUrl}/${x}/tasks/${encodeURIComponent(y)}`:void 0;var h;return{taskDetailSelectorView:s,authParams:D,isZeniUser:_.isZeniUser(),userGroupList:((h=e.userGroupsState.userGroupByUserGroupId)!==J&&(J=h,W=Object.values(h)),W),isNewClicked:n.state?.message==="comingFromTaskListPage",filesEndPoint:Ne.fileMicroServiceBaseUrl,companyName:a.currentTenant.companyName,companyId:a.currentTenant.companyId,currentUrl:`${M.appUrl}${a.location.pathname}`,cannedResponses:e.cannedResponsesState.cannedResponses,isCannedResponsesLoading:e.cannedResponsesState.fetchState==="In-Progress",recurringSourceTaskUrl:w,tagListView:B,taskGroupName:m!=null&&t!=null&&t.isDefault===!1?t.name:void 0,taskGroupList:e.taskGroupViewState.taskGroupsIds.map((S=>V(e.taskGroupState,S))).filter((S=>S!=null&&!S.isDeleted)).map((S=>({id:S.id,name:S.name,isDefault:S.isDefault}))),subtasks:s.subtasks,parentTaskRef:d,subTaskCreateStatus:e.taskDetailState?.subTaskCreateStatus?.fetchState}}),(function(e,a){const{taskId:n,navigate:c,currentTenant:s,location:u,taskGroupId:d}=a,{tenantEmailDomain:m}=s;return{onSaveChangesToLocalStore:t=>{e(je({taskDetailLocalData:t,taskId:n}))},onSaveDetailClick:t=>{e(Ae(n,t??d))},onArchiveTaskClick:()=>{a.taskId!=null&&e(we(a.taskId))},onSnoozeTask:(t,o)=>{e(xe(t,o))},onUnsnoozeTask:t=>{e(Be(t))},onCreateSubtask:(t,o)=>{e(Re({...o,parentTaskId:t}))},onSubtaskUpdate:(t,o)=>{e(Pe({task:t,updates:o}))},onShowToast:t=>{e(oe(t))},onSubtaskRowClick:t=>{c(`/${m}/tasks/${t}`,{state:{pathnameStackToGoBack:U(u.state?.pathnameStackToGoBack,u.pathname)}})},onParentBreadcrumbClick:t=>{c(`/${m}/tasks/${t}`,{state:{pathnameStackToGoBack:U(u.state?.pathnameStackToGoBack,u.pathname)}})},onDismissClick:()=>{if(u.state?.message==="triggerBackClick"){const t=ie(u.state?.pathnameStackToGoBack),o=t.poppedPathname??"../../dashboard";c(o,{state:{pathnameStackToGoBack:t.newStack}})}else{const t=R(m),o=U(u.state?.pathnameStackToGoBack,u.pathname);c(t,{state:{pathnameStackToGoBack:o}})}e(ye({taskId:n}))},onDeleteTaskClick:()=>{e(_e(n))},updateFilesEntity:t=>{e(Ue({files:t}))},onDeleteFile:t=>{e(Ge(t))},onEditFileName:(t,o)=>{e(Ce(t,o.split(".")[0]))},onReloadTaskDetailPage:()=>{e(g(!1,n))},onCreateTagClick:t=>{e(De(t,n))},onDeleteTagClick:t=>{e(Ie(t,n))},onFetchCannedResponses:()=>{e(ae())},onManageTemplatesClick:()=>{c(`/${s.tenantEmailDomain}/tasks/quick-responses`)}}}))(Qe);function L(){const e=Y(),a=ee(),n=de(),c=Le(),{taskId:s,taskGroupId:u}=ke(),d=E((i=>te(i))),m=Ze(d?.companyId),{useFeatureGate:t}=Fe(),{isFeatureEnabled:o}=t(G.isTaskSnoozeEnabled),{isFeatureEnabled:I}=t(G.isTaskVisibilityEnabled),{isFeatureEnabled:D}=t(G.isTaskCannedResponsesEnabled),{isFeatureEnabled:B}=t(G.isTaskRecurringParentEnabled),{isFeatureEnabled:x}=t(G.isTaskGroupAssigneesEnabled),[y,w]=k.useState(!1),[h,S]=k.useState(!1),[K,re]=k.useState(!1),[$,A]=k.useState(!1),C=k.useRef(!1),P=E((i=>i.taskListState.updateTasksFetchState.fetchState)),Q=E((i=>se(i))),N=E((i=>i.taskGroupViewState.fetchState));k.useEffect((()=>{a(g(!1,s)),s!=null&&a(T(s))}),[a,s]);const O=_.getSignedInUser()?.userId,ce=k.useMemo((()=>{const i=[f.TASK_CREATED,f.TASK_UPDATED,f.TASKS_BULK_UPDATED,f.TASKS_BULK_DELETED],l=[...i,f.TASK_SNOOZE_RESURFACED];return[...Ve(d?.companyId,i),...qe(O,l)]}),[d?.companyId,O]);Me({events:ce,onSubscribed:()=>{s!=null&&(a(g(!0,s)),a(T(s)))},onEvent:(i,l)=>{if(s!=null)switch(i){case f.TASK_CREATED:{H(l)?.parent_task_id===s&&(a(g(!0,s)),a(T(s)));break}case f.TASK_UPDATED:{const p=H(l);if(p==null)break;p.task_id===s?(a(g(!0,s)),a(T(s))):p.parent_task_id===s&&a(T(s));break}case f.TASKS_BULK_UPDATED:{const p=X(l);if(p==null)break;p.task_ids.includes(s)&&a(g(!0,s)),a(T(s));break}case f.TASKS_BULK_DELETED:{const p=X(l);if(p==null)break;if(p.task_ids.includes(s)){a(oe({messageSection:"delete_task",messageText:"success",type:"success"})),d?.tenantEmailDomain!=null&&e(R(d.tenantEmailDomain));break}a(T(s));break}case f.TASK_SNOOZE_RESURFACED:{Xe(l)?.task_id===s&&a(g(!0,s));break}}}}),k.useEffect((()=>{h||Q.fetchState==="Completed"||(S(!0),a(he()))}),[h,a,Q.fetchState]),k.useEffect((()=>{K||N==="Completed"||(re(!0),a(be()))}),[K,a,N]);const le=k.useCallback((()=>{s!=null&&(C.current=!1,a(Ee([s],null,{isArchived:!1})),A(!0))}),[a,s]);k.useEffect((()=>{if($)if(P!=="In-Progress"){if(C.current){if(P==="Error")return A(!1),void(C.current=!1);if(P==="Completed"){A(!1),C.current=!1;const{tenantEmailDomain:i}=d;if(n.state?.message==="triggerBackClick"){const l=ie(n.state?.pathnameStackToGoBack);e(l.poppedPathname??"../../dashboard",{state:{pathnameStackToGoBack:l.newStack}})}else{const l=R(i);e(l,{state:{pathnameStackToGoBack:U(n.state?.pathnameStackToGoBack,n.pathname)}})}}}}else C.current=!0}),[$,P,d,n,e]);const Z=E((i=>ne(i,s))),j=Z.fetchState,z=_.getSignedInUser();if(z==null)throw Error("Can't access task detail page without signing in...");if(j==="Error"&&Z.error?.code===400){const{tenantEmailDomain:i}=d,l=R(i),p=U(n.state?.pathnameStackToGoBack,n.pathname);return r.jsx(pe,{to:l,state:{pathnameStackToGoBack:p}})}return r.jsxs(r.Fragment,{children:[j==="Completed"?r.jsx(Ke,{analytics:q,onLoad:i=>(l=>l.trackPageLoaded($e.Event.taskDetailPage))(i)}):null,r.jsxs(ea,{children:[r.jsx(ze,{isAppContentDrawerOpen:y,handleDrawerToggle:i=>{w(i)}}),r.jsx(Ye,{analytics:q,currentTenant:d,handleZeniLogoClick:()=>{c.toggle()},initialOpenThreadRequest:m,location:n,loggedInUser:z,navigate:e,taskGroupId:u,taskId:s,taskDetailFetchState:j,onUnarchiveTaskClick:le,isTaskSnoozeEnabled:o,isTaskVisibilityEnabled:I,isTaskCannedResponsesEnabled:D,isTaskRecurringParentEnabled:B,isTaskGroupAssigneesEnabled:x})]})]})}const ea=Oe.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`,R=e=>`/${e}/tasks`;function Da(){return r.jsxs(Se,{children:[r.jsx(b,{path:"/new",element:r.jsx(L,{})}),r.jsx(b,{path:"/new/:taskGroupId",element:r.jsx(L,{})}),r.jsx(b,{path:"/group/:taskGroupId",element:r.jsx(He,{})}),r.jsx(b,{path:"/quick-responses",element:r.jsx(Je,{})}),r.jsx(b,{path:"/:taskId",element:r.jsx(L,{})}),r.jsx(b,{path:"*",element:r.jsx(ue,{})})]})}export{Da as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-y3zMPGKB.js";import i from"./NotFoundScreen-Duy6T6m3.js";import{T as r}from"./TransactionDetailScreen-C2_EB_46.js";import"./sentry-Jm7O5sR0.js";import{n as a,o as e}from"./core-BwK6FGJd.js";import"./zeni-epic-state-BugXGzus.js";import"./recharts-CoAMGh71.js";import"./index-CavSpTx-.js";import"./mui-CxIkaR9n.js";import"./analytics-BTvt2K3S.js";import"./plaid-CQqwPn97.js";import"./dnd-Cbdx7tVf.js";import"./stripe-cKAAJElX.js";import"./lottie-BQlGSG2c.js";import"./lexical-DRfKJLK3.js";import"./pdf-DGzvSuDl.js";import"./utils-BVIT21dc.js";import"./useAskAiCfoHostNavButtonProps-DQ3F86Nw.js";import"./decodeURIComponentSafe-iAavL6tS.js";import"./useInitialThreadRequest-BRvCrjqu.js";import"./routePaths-D5zGcGZG.js";import"./expenseAutomationHelper-MxNxlZNN.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new o.Error().stack;n&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[n]="bfd19369-9f5a-4875-9ff9-f0a50fe2624d",o._sentryDebugIdIdentifier="sentry-dbid-bfd19369-9f5a-4875-9ff9-f0a50fe2624d")}catch{}})();function z(){return t.jsxs(a,{children:[t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId",element:t.jsx(r,{})}),t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId/page-not-found",element:t.jsx(i,{})}),t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId/vendor/create",element:t.jsx(r,{})}),t.jsx(e,{path:"/*",element:t.jsx(r,{})})]})}export{z as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./liveblocks-y3zMPGKB.js";import{a as f}from"./sentry-Jm7O5sR0.js";import{t as u,u as h,j as y,N as b}from"./core-BwK6FGJd.js";import{Uj as I,gh as w,Jm as j}from"./zeni-epic-state-BugXGzus.js";import{z as l,a7 as x,af as S,ag as D}from"./index-CavSpTx-.js";import{n as c}from"./mui-CxIkaR9n.js";import"./recharts-CoAMGh71.js";import"./analytics-BTvt2K3S.js";import"./plaid-CQqwPn97.js";import"./dnd-Cbdx7tVf.js";import"./stripe-cKAAJElX.js";import"./lottie-BQlGSG2c.js";import"./lexical-DRfKJLK3.js";import"./pdf-DGzvSuDl.js";import"./utils-BVIT21dc.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="48e3f50f-d5b0-42e5-9f0d-c28d4173bcf7",e._sentryDebugIdIdentifier="sentry-dbid-48e3f50f-d5b0-42e5-9f0d-c28d4173bcf7")}catch{}})();const B=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",g=e.get("profileId")??"",[n,p]=f.useState(!1),a=h(),i=y((m=>I(m))),r=l.getSignedInUser(),d=l.getSignedInUserTenantWithId(s);if(r==null||d==null)return o.jsx(b,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return w(r.userId,r.zeniSessionId,d?.tenantId),f.useEffect((()=>{n||(p(!0),a(j(t,g,s)))}),[n,a]),i.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(x,{fetchState:"In-Progress"}))},E=c.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: 100vh;
|
|
5
|
-
flex-direction: row;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
9
|
-
`,_=c(D.LargeRegular)`
|
|
10
|
-
display: flex;
|
|
11
|
-
color: ${S.important};
|
|
12
|
-
`;export{B as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-y3zMPGKB.js";import{a as u}from"./sentry-Jm7O5sR0.js";import{h as $,u as x,g as T,i as E,j as p}from"./core-BwK6FGJd.js";import{T1 as s,T0 as j,$p as v,fE as B,$q as C}from"./zeni-epic-state-BugXGzus.js";import{a1 as z,ae as g,E as D,z as L,a7 as P,d6 as N,a4 as U}from"./index-CavSpTx-.js";import{n as _}from"./mui-CxIkaR9n.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f2056c12-c3b8-4b92-a9ec-e028aacb41a2",e._sentryDebugIdIdentifier="sentry-dbid-f2056c12-c3b8-4b92-a9ec-e028aacb41a2")}catch{}})();const G=_.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`;function H(){const e=$(),n=x(),d=z(),l=T();let{accountId:a}=E(),f=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&l.pathname.includes(`${s}/statements`)&&(a=s,f=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[m,b]=u.useState(!1),h=D();u.useEffect((()=>{m||(b(!0),n(j(a??"",!1)))}),[m,n]);const o=p((t=>v(t,a??""))),y=()=>{const t=U(l.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},c=L.getSignedInUser(),r=p((t=>B(t))),I={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:r.tenantId??""},w=C(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=r.company?.companyInfo.companyLegalName??r.companyName;if(c==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?i.jsx(P,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}}):i.jsx(G,{windowSize:d,children:i.jsx(N,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:y,authParams:I,downloadEndPoint:f})})}export{H as Z};
|