@zeniai/web-app-ui 5.3.81-dev → 5.3.82-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-BqrHv3lf.js → AccountMappingScreen-C1ayPIAG.js} +2 -2
- package/dist/assets/{ActualMatchingMatchDetailScreen-h8TCOzmP.js → ActualMatchingMatchDetailScreen-WhvwIzcC.js} +1 -1
- package/dist/assets/AddressRoutes-y8YhHSJR.js +1 -0
- package/dist/assets/AddressScreen-De5NyEzZ.js +9 -0
- package/dist/assets/AiCfoScreen-DFAyr8gH.js +22 -0
- package/dist/assets/{AppDrawer-O4ZEFSY7.js → AppDrawer-DI_vp2xj.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-CEnfa_wS.js → BillPayApprovalRoutes-DcY6lBge.js} +1 -1
- package/dist/assets/{BillPayRoutes-lyhC_q-2.js → BillPayRoutes-Cfhufn9I.js} +18 -18
- package/dist/assets/BusinessVerificationPageScreen-DC4WfK27.js +9 -0
- package/dist/assets/{CardsAiCfoScreen-DrIgNEMk.js → CardsAiCfoScreen-B5X7-nvK.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-BOqQM_C6.js → ChargeCardRoutes-DKflGNQM.js} +7 -7
- package/dist/assets/{CompanyPassportScreen-CxZJl1bJ.js → CompanyPassportScreen-y7X0MJz8.js} +1 -1
- package/dist/assets/ConnectionAuthScreen-DbBitMLj.js +11 -0
- package/dist/assets/CustomerOnboardingAuthScreen-LSIDUzax.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-Q5ECv8HT.js → CustomerOnboardingRoutes-DOhBde9s.js} +7 -7
- package/dist/assets/{DashboardRoutes-BKSV9vko.js → DashboardRoutes-DUDSVl0J.js} +4 -4
- package/dist/assets/{DefaultTenantHome-BBKs-l6f.js → DefaultTenantHome-BPmXauyS.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-C8qRoekM.js → DomesticWireDetailScreen-BtVT1jo7.js} +3 -3
- package/dist/assets/{DrawerScreen-CN9HYciY.js → DrawerScreen-DEO6aDXv.js} +1 -1
- package/dist/assets/EntityDetailRoutes-DWi6isSB.js +1 -0
- package/dist/assets/{ExpenseAutomationRoutes-DGlzQW9f.js → ExpenseAutomationRoutes-CWCG6f-Z.js} +4 -4
- package/dist/assets/{FeaturePreviewScreen-C6K1_63v.js → FeaturePreviewScreen-Bcz_KiRo.js} +1 -1
- package/dist/assets/HubSpotOAuthCallbackScreen-BCD_byli.js +1 -0
- package/dist/assets/{InboxNotificationsProvider-EoJhdrtc.js → InboxNotificationsProvider-CnIopK35.js} +1 -1
- package/dist/assets/InvoicingRoutes-By0wmZnY.js +3 -0
- package/dist/assets/{MagicLinkRoutes-DatBzzr0.js → MagicLinkRoutes-CrNQ1d6Y.js} +9 -9
- package/dist/assets/MagicLinkSignInScreen-CVv9wx7_.js +12 -0
- package/dist/assets/{MobileAppDrawer-CgJ60E2m.js → MobileAppDrawer-DeMnqMws.js} +1 -1
- package/dist/assets/NotFoundScreen-DiKdubNF.js +1 -0
- package/dist/assets/NotificationRoutes-DXwqR_6J.js +1 -0
- package/dist/assets/OAuthConsentScreen-D-7AI34s.js +1 -0
- package/dist/assets/{PandLWithForecastRoutes-U9sR4r18.js → PandLWithForecastRoutes-DwmnvviI.js} +1 -1
- package/dist/assets/{PaymentLinkScreen-DwyYqfzu.js → PaymentLinkScreen-sxUNJ-ai.js} +1 -1
- package/dist/assets/PeopleRoutes-Dpf-nOzf.js +22 -0
- package/dist/assets/PerformanceRoutes-9mPYusWH.js +1 -0
- package/dist/assets/{Preview-Dfm6FKNt.js → Preview-CxGDVP6M.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-DFycm_ki.js → QBOConnectionScreen-fOrpVwph.js} +1 -1
- package/dist/assets/ReimbursementApprovalRoutes-B13CHT4T.js +1 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-C_dMNpou.js → ReimbursementApprovalRuleDetailScreen-DyHV9hua.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-CverQIks.js → ReimbursementRoutes-BIilRUCw.js} +4 -4
- package/dist/assets/{ReportsRoutes-BCJIsVHt.js → ReportsRoutes-DGD0Kisc.js} +1 -1
- package/dist/assets/RewardsRoutes-DOe7osW-.js +1 -0
- package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-BKYsisUv.js → ScheduleDetailsPrepaidExpensesScreen-mgDC8nA3.js} +5 -5
- package/dist/assets/ScreenRoutes-B6CsF55P.js +2 -0
- package/dist/assets/{SettingsRoutes-C6bz6i-5.js → SettingsRoutes-DsKTn4YF.js} +6 -6
- package/dist/assets/{SetupPagesScreen-B2ZhtNLX.js → SetupPagesScreen-1DRsRGaO.js} +5 -5
- package/dist/assets/SignInScreen-old3vVaI.js +1 -0
- package/dist/assets/SignOutScreen-C9nuOKax.js +9 -0
- package/dist/assets/TaskListScreen-BvZ3nUhV.js +9 -0
- package/dist/assets/TaskRoutes-vQ9Qc0Wt.js +9 -0
- package/dist/assets/TransactionDetailRoutes-BnI9Ohm4.js +1 -0
- package/dist/assets/{TransactionDetailScreen-JD8O14oY.js → TransactionDetailScreen-gg_jzjg4.js} +2 -2
- package/dist/assets/{TransactionListRoutes-Cn4w6j8O.js → TransactionListRoutes-DXtggfuW.js} +1 -1
- package/dist/assets/TreasuryRoutes-lxwEfAXe.js +37 -0
- package/dist/assets/{VendorsRoutes-BwM6t0j-.js → VendorsRoutes-BuuNVNIw.js} +12 -12
- package/dist/assets/WiseConfirmationScreen-Bm5Jwnlz.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-CGLFu0Ov.js → ZeniAccountRoutes-DDXr_ULo.js} +11 -11
- package/dist/assets/ZeniAccountStatementScreen-B61YBb2s.js +9 -0
- package/dist/assets/{accountMappingHelper-DKrp-2iY.js → accountMappingHelper-DSmoEgXo.js} +1 -1
- package/dist/assets/{analytics-k_LuQgHs.js → analytics-ff6bapqe.js} +1 -1
- package/dist/assets/{analyticsHelper-CnJWG9bB.js → analyticsHelper-kcXI5tFD.js} +1 -1
- package/dist/assets/{core-Beu9kTtR.js → core-C32E0M-A.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-0ml5lsEu.js → decodeURIComponentSafe-C5UecJ4I.js} +1 -1
- package/dist/assets/{dnd-BD4CdaiB.js → dnd-C_Bep5ai.js} +1 -1
- package/dist/assets/{empty-C_-q3sdl.js → empty-DAPHCQXk.js} +1 -1
- package/dist/assets/{empty-N5VvFHKn.js → empty-DqCrlpnK.js} +1 -1
- package/dist/assets/{emptyVideoElement--WG9qJqH.js → emptyVideoElement-CBVQNEap.js} +1 -1
- package/dist/assets/epic-uAZSWoZy.js +2 -0
- package/dist/assets/expenseAutomationHelper-DLsy_Ty8.js +1 -0
- package/dist/assets/{getLocaleForTenant-YwW4TLUd.js → getLocaleForTenant-B7DrNxDF.js} +1 -1
- package/dist/assets/{index-B5QcNvR2.js → index-B4RhNvku.js} +1 -1
- package/dist/assets/{index-DUM1Dz7Q.js → index-BcLofI65.js} +1 -1
- package/dist/assets/{index-DPHHyNze.js → index-BukMmlEq.js} +2 -2
- package/dist/assets/{index-Dxjgx_aK.js → index-CfrgrNvU.js} +1 -1
- package/dist/assets/{index-CMLe_P16.js → index-CtLBLCty.js} +1 -1
- package/dist/assets/{index-BfNeAGgC.js → index-DCtJNiUy.js} +7 -7
- package/dist/assets/{index-DfjWlew7.js → index-DIaTP7_M.js} +1 -1
- package/dist/assets/{index-pVZIHhft.js → index-DuYo1zmY.js} +1 -1
- package/dist/assets/{lexical-ae4wZrjx.js → lexical-Byw8jdWu.js} +1 -1
- package/dist/assets/{liveblocks-DwoS2LTS.js → liveblocks-CcAJDSgG.js} +1 -1
- package/dist/assets/{lottie-BGwNmPax.js → lottie-DW03v0-7.js} +1 -1
- package/dist/assets/{mui-DEiF_Hb4.js → mui-Ba-vLBC4.js} +1 -1
- package/dist/assets/{pathToGoBack-DlfSGzqF.js → pathToGoBack-BbG758cW.js} +1 -1
- package/dist/assets/{pdf-CuKXyKjy.js → pdf-B6gXz38d.js} +4 -4
- package/dist/assets/{pdf-lib-jUWLVDc9.js → pdf-lib-DW7wIt2i.js} +1 -1
- package/dist/assets/{plaid-UFuUhVwC.js → plaid-CEp7her_.js} +1 -1
- package/dist/assets/{pusher-Dk2WejFj.js → pusher-CeHXXfqs.js} +1 -1
- package/dist/assets/{react-DOpmw48o.js → react-BEdnfLLu.js} +1 -1
- package/dist/assets/{react-DLObBre3.js → react-BQt0qic3.js} +1 -1
- package/dist/assets/{react-C-VUuuL3.js → react-CTPAIO5c.js} +1 -1
- package/dist/assets/{react-BM64rH6B.js → react-DcC_IWpk.js} +1 -1
- package/dist/assets/{react-DRcOWQ_U.js → react-MOydQ4XL.js} +1 -1
- package/dist/assets/{react-DUTB_3h5.js → react-wmLhO00N.js} +1 -1
- package/dist/assets/{recharts-MD3a-5g4.js → recharts-g8-bInqc.js} +1 -1
- package/dist/assets/{routePaths-uZogBPDo.js → routePaths-BGf6E4zO.js} +1 -1
- package/dist/assets/{sentry-BF2EAQwc.js → sentry-Bo3euLoP.js} +1 -1
- package/dist/assets/{stripSplatSuffix-6CTGoq-D.js → stripSplatSuffix-IWd2is7o.js} +1 -1
- package/dist/assets/{url-CcLycjqh.js → url-CzSmdUOo.js} +1 -1
- package/dist/assets/{url-DTzy9das.js → url-DjGKFjyy.js} +1 -1
- package/dist/assets/useActualMatchingMatchDetail-D8RZjK70.js +1 -0
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-4BNh0D5K.js → useAiCfoDashboardSuggestedQuestionsChips-Dc6ROsau.js} +1 -1
- package/dist/assets/{useAskAiCfoHostNavButtonProps-B4mYX3VH.js → useAskAiCfoHostNavButtonProps-BO9PbO4e.js} +1 -1
- package/dist/assets/{useChargeCardPusherEvents-DIeSIWcP.js → useChargeCardPusherEvents-mHgU3OkI.js} +1 -1
- package/dist/assets/{useDeviceId-gZ0JJcev.js → useDeviceId-D1tbmD3W.js} +1 -1
- package/dist/assets/useEmailConnectResultRefresh-DICe2M-2.js +1 -0
- package/dist/assets/{useInitialThreadRequest-BhgsGG5D.js → useInitialThreadRequest-DitWfieX.js} +1 -1
- package/dist/assets/{useTaskManagerAccess-IxEInAYM.js → useTaskManagerAccess-DP5KTNvW.js} +1 -1
- package/dist/assets/{useTaskManagerPusherEvents-DIUFIhyQ.js → useTaskManagerPusherEvents-mQG4ptVc.js} +1 -1
- package/dist/assets/{utils-CaDQp8mU.js → utils-CY3YGcdR.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-DH0DiNtU.js → withTransactionSidePanel-DIBSJL4n.js} +3 -3
- package/dist/assets/{zeni-epic-state-1d5RmIXy.js → zeni-epic-state-yHa8unrA.js} +7 -7
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/AddressRoutes-CevDzchV.js +0 -1
- package/dist/assets/AddressScreen-Goy7OAa3.js +0 -9
- package/dist/assets/AiCfoScreen-CRBP1pbJ.js +0 -22
- package/dist/assets/BusinessVerificationPageScreen-CRJRFoBF.js +0 -9
- package/dist/assets/ConnectionAuthScreen-CxIPuBQD.js +0 -11
- package/dist/assets/CustomerOnboardingAuthScreen-r36YH7JA.js +0 -1
- package/dist/assets/EntityDetailRoutes-DvnbYoBF.js +0 -1
- package/dist/assets/HubSpotOAuthCallbackScreen-COzUIs57.js +0 -1
- package/dist/assets/InvoicingRoutes-DxRpDPHw.js +0 -3
- package/dist/assets/MagicLinkSignInScreen-BJzYh3J4.js +0 -12
- package/dist/assets/NotFoundScreen-DK36JFcR.js +0 -1
- package/dist/assets/NotificationRoutes-DRUjl08J.js +0 -1
- package/dist/assets/OAuthConsentScreen-DBjBNnQJ.js +0 -1
- package/dist/assets/PeopleRoutes-CN01cV2T.js +0 -22
- package/dist/assets/PerformanceRoutes-sPgEs3ei.js +0 -1
- package/dist/assets/ReimbursementApprovalRoutes-BUzBZ8wT.js +0 -1
- package/dist/assets/RewardsRoutes-DL4U3zKu.js +0 -1
- package/dist/assets/ScreenRoutes-ChqMx09J.js +0 -2
- package/dist/assets/SignInScreen-BhdMuyKL.js +0 -1
- package/dist/assets/SignOutScreen-DhNypZcK.js +0 -9
- package/dist/assets/TaskListScreen-uIZd6Y1d.js +0 -9
- package/dist/assets/TaskRoutes-CmCsn1P4.js +0 -9
- package/dist/assets/TransactionDetailRoutes-Vh6CRIwx.js +0 -1
- package/dist/assets/TreasuryRoutes-C3gzhi0V.js +0 -37
- package/dist/assets/WiseConfirmationScreen-BrP-8WW4.js +0 -12
- package/dist/assets/ZeniAccountStatementScreen-TsXZSj_4.js +0 -9
- package/dist/assets/epic-Cdaahdr-.js +0 -2
- package/dist/assets/expenseAutomationHelper-dXFQtPOw.js +0 -1
- package/dist/assets/useActualMatchingMatchDetail-4m9qzYbe.js +0 -1
- package/dist/assets/useEmailConnectResultRefresh-DjE-2Sye.js +0 -1
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-DwoS2LTS.js";import{VK as re,fI as N,m3 as H,e0 as X,d$ as le,SB as Y,V7 as ce,D7 as Pe,VL as Q,CY as je,Dh as Le,Db as de,D0 as pe,Df as ve,Dc as Te,VM as ue,sx as Ve,g9 as Ae,gG as Fe,VN as _,D4 as me,D3 as ge,Dk as Re,c9 as Oe}from"./zeni-epic-state-1d5RmIXy.js";import{_ as fe,W as J,A as G,z as K,f as he,M as Ce,ad as ye,ax as be,ay as Be,a9 as Se,F as R,ae as De,G as W,az as Ze,ao as Ue,aq as $e,a6 as ze,j as we,Q as _e,p as Ge,aA as He,V as Ke}from"./index-BfNeAGgC.js";import{D as xe,n as M,S as Ie}from"./mui-DEiF_Hb4.js";import ae from"./NotFoundScreen-DK36JFcR.js";import{a as c}from"./sentry-BF2EAQwc.js";import{u as ee,i as We,j as g,h as Me,g as qe,l as Qe,n as se,o as z}from"./core-Beu9kTtR.js";import{u as Ne}from"./useAskAiCfoHostNavButtonProps-B4mYX3VH.js";import{M as Xe}from"./MobileAppDrawer-CgJ60E2m.js";import"./recharts-MD3a-5g4.js";import"./analytics-k_LuQgHs.js";import"./plaid-UFuUhVwC.js";import"./dnd-BD4CdaiB.js";import"./stripe-cKAAJElX.js";import"./lottie-BGwNmPax.js";import"./lexical-ae4wZrjx.js";import"./pdf-CuKXyKjy.js";import"./utils-CaDQp8mU.js";import"./InboxNotificationsProvider-EoJhdrtc.js";import"./useTaskManagerAccess-IxEInAYM.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]="c007c775-5b33-482f-9a68-bbd1d473e0a7",e._sentryDebugIdIdentifier="sentry-dbid-c007c775-5b33-482f-9a68-bbd1d473e0a7")}catch{}})();const Ye={overlayWidth:new Se(100,100,48)},te=W.getLocalizedStrings().peoplePage.invitePage,ne=W.getLocalizedStrings().common,Je=({companyId:e,managersListView:t,companyPassportView:d,classListView:n,mode:f,isEditPeopleDrawerOpen:i,closeDrawerHandler:b})=>{const h=fe(),m=ee(),[O,B]=c.useState(!1),[k,S]=c.useState(!1),{userId:D}=We(),r=g((l=>re(l))),p=g((l=>N(l))),E=g((l=>H(l))),{useFeatureGate:x}=J(),{isFeatureEnabled:I}=x(G.isDebitCardFeatureEnabled),P=X(I,p),v=le(p),T=Y(p),Z=ce(p),U=!!p.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,w=!P&&E&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||d.fetchState!=="Completed"||e==null;if(K.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const C=()=>{m(Q()),b()},V=()=>{O===!0?S(!0):C()},$=d.companyView?.controllers?.map((l=>l.user)),u=!!p.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:j}=x(G.isChargeCardFeatureEnabled),L=he(p,j,I),{isCardsHidden:A}=Ce(p?.tenantId),y=!L||A,F=p.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",s={peopleDetails:r,classList:n.classes,managersList:t.users,controllersList:$,mode:f,isZeniTenant:T,isAccountingClassesEnabled:E,isReimbursementDisabled:U===!1,isZeniAccountsDisabled:u===!1,isChargeCardDisabled:y,isTreasuryDisabled:F===!1,isLiteRoleDisabled:Z===!1,isBankingOnlyTenant:P,isCardsOnlyTenant:v,onResetClick:C,onDeleteUser:l=>{m(pe(l.userId,l.userRole.userRoleId))},onPeopleLocalDataUpdated:l=>{m(de({peopleLocalData:l})),B(!0)},onSaveClick:()=>{m(f==="zeni_only"?je(e):Le(T))},onCloseClick:V,isLoading:w||r.person==null},o={onOkClick:()=>{S(!1),C()},onCancelClick:()=>{S(!1)}};return c.useEffect((()=>{w===!1&&D!=null&&m(Pe(D))}),[w,D]),c.useEffect((()=>{r.updatePersonState.fetchState==="Completed"&&C()}),[r.updatePersonState.fetchState]),a.jsx(xe,{anchor:"right",open:i,PaperProps:{style:{width:Ye.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:ye.overlayDark,cursor:"pointer"}}},onClose:V,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(Be,{...s})]})})},ea=M(Ie)`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`,ke=M(De.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(De.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=W.getLocalizedStrings().peoplePage.invitePage,ie=W.getLocalizedStrings().common,sa=({companyId:e,managersListView:t,companyPassportView:d,classListView:n,mode:f,isInvitePeopleDrawerOpen:i,closeDrawerHandler:b})=>{const h=fe(),m=ee(),[O,B]=c.useState(!1),[k,S]=c.useState(!1),D=g((o=>re(o))),r=g((o=>N(o))),p=g((o=>H(o))),{useFeatureGate:E}=J(),{isFeatureEnabled:x}=E(G.isDebitCardFeatureEnabled),I=X(x,r),P=le(r),v=Y(r),T=ce(r),Z=!!r.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,U=!I&&p&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||d.fetchState!=="Completed"||e==null;if(K.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const w=()=>{b(),m(Q())},C=()=>{O===!0?S(!0):w()},V={onOkClick:()=>{S(!1),w()},onCancelClick:()=>{S(!1)}},$=d.companyView?.controllers.map((o=>o.user)),u=!!r.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:j}=E(G.isChargeCardFeatureEnabled),L=he(r,j,x),{isCardsHidden:A}=Ce(r?.tenantId),y=!L||A,F=r.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",s={classList:n.classes,managersList:t.users,controllersList:$,mode:f,isZeniTenant:v,onPeopleLocalDataUpdated:o=>{m(de({peopleLocalData:o})),B(!0)},onResetClick:w,onSaveClick:()=>{m(f==="zeni_only"?ve(e):Te())},onCloseClick:C,peopleDetails:D,isAccountingClassesEnabled:p,isReimbursementDisabled:Z===!1,isLiteRoleDisabled:T===!1,isZeniAccountsDisabled:u===!1,isChargeCardDisabled:y,isTreasuryDisabled:F===!1,isBankingOnlyTenant:I,isCardsOnlyTenant:P,isLoading:U};return c.useEffect((()=>{D.invitePersonState.fetchState==="Completed"&&(b(),m(Q()))}),[D.invitePersonState.fetchState]),a.jsx(xe,{anchor:"right",open:i,PaperProps:{style:{width:aa.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:ye.overlayDark,cursor:"pointer"}}},onClose:C,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:V}):null,a.jsx(Ze,{...s})]})})},ta=M(Ie)`
|
|
19
|
-
display: flex;
|
|
20
|
-
min-height: 100%;
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
`,na=Qe((function(e,t){const d=ue(e),n=K.getSignedInUser();return{data:d,loggedinUserId:n?.userId??"",isZeniTenant:t.isZeniTenant===!0,shouldFetchClasses:t.shouldFetchClasses,isZeniAdminUser:n?.userEmailDomain==="zeni.ai"&&t.isZeni===!0,isAccountingClassesEnabled:H(e),analytics:we}}),(function(e,t){const{navigate:d,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:()=>{d("../../")},onModeChange:i=>{e(_({mode:i,searchText:"",sortKey:"name",sortOrder:"ascending"}))},onSearchTextChanged:i=>{e(_({searchText:i}))}}}}))(He);function q({isInvitePeopleDrawerOpen:e,isEditPeopleDrawerOpen:t}){const d=Me(),n=ee(),f=qe(),{areTenantIdsInSync:i}=Ue(),b=K.getSignedInUser(),h=g((s=>N(s))),{useFeatureGate:m}=J(),{isFeatureEnabled:O}=m(G.isDebitCardFeatureEnabled),B=g((s=>H(s))),k=!X(O,h)&&B,S=Y(h),D=h?.tenantId,{tenantEmailDomain:r}=h,[p,E]=c.useState(!1),[x,I]=c.useState(!1),[P,v]=c.useState(!1),[T,Z]=c.useState("off"),[U,w]=c.useState(!1),C=s=>{w(s)},{isAiCfoAccessEnabled:V,onAskAiCfoClick:$}=Ne({mobileExploreReferrer:"People"}),u=g((s=>ue(s)));$e({isDataReady:u.fetchState==="Completed"});const j=g((s=>Ve(s.classState,s.classListState))),L=g((s=>Ae(s.userState,s.userRoleState,s.userListViewState,"manager"))),A=g((s=>Fe(s))),y=h?.companyId;c.useEffect((()=>{p&&T===u.uiState.mode||!i||(n(_({searchText:"",sortKey:"name",sortOrder:"ascending"})),Z(u.uiState.mode),E(!0),n(me()))}),[p,b,D,n,u.uiState.mode,i]),c.useEffect((()=>{y!=null&&i&&n(ge(y,k))}),[y,k,i]),c.useEffect((()=>{I(e!=null&&e===!0),v(t!=null&&t===!0&&t)}),[e,t]),c.useEffect((()=>{n(_({searchText:"",sortKey:"name",sortOrder:"ascending"}))}),[]);const F=()=>{I(!1),v(!1),d("../")};return a.jsxs(a.Fragment,{children:[u.fetchState==="Completed"?a.jsx(ze,{analytics:we,onLoad:s=>s.trackPageLoaded(_e.Event.members)}):null,x===!0?a.jsx(sa,{closeDrawerHandler:F,isInvitePeopleDrawerOpen:x,managersListView:L,companyPassportView:A,classListView:j,companyId:y,mode:u.uiState.mode}):null,P===!0?a.jsx(Je,{closeDrawerHandler:F,isEditPeopleDrawerOpen:P,managersListView:L,companyPassportView:A,classListView:j,companyId:y,mode:u.uiState.mode}):null,a.jsx(Xe,{isAppContentDrawerOpen:U,handleDrawerToggle:C}),a.jsx(na,{navigate:d,signedInUser:b,isZeni:h.isZeni,isZeniTenant:S,peopleUIState:u.uiState,companyId:y,shouldFetchClasses:k,classList:j,managersView:L,peopleView:u,onInvitePeopleClick:()=>{d("./new")},onColumnSortConfigChanged:(s,o)=>{n(_({sortKey:s,sortOrder:o}))},onRowClick:s=>{const o=`/${r}/people/${encodeURIComponent(s)}/edit`,l=Ge(f.state?.pathnameStackToGoBack,f.pathname);d(o,{state:{pathnameStackToGoBack:l}})},onClickMenuIcon:()=>{C(!0)},isAiCfoAccessEnabled:V,onAskAiCfoClick:$})]})}function ka(){const e=Ke();return Oe(e?.loggedInUserRole??[])?a.jsxs(se,{children:[a.jsx(z,{path:"/",element:a.jsx(q,{})}),a.jsx(z,{path:"new",element:a.jsx(q,{isInvitePeopleDrawerOpen:!0})}),a.jsx(z,{path:":userId/edit",element:a.jsx(q,{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-DwoS2LTS.js";import E from"./NotFoundScreen-DK36JFcR.js";import{a as r}from"./sentry-BF2EAQwc.js";import{h as _,g as v,j as p,i as M,u as P,N as U,l as z,n as O,o as b}from"./core-Beu9kTtR.js";import{fI as B,a1m as h,bo as F,bn as N,iP as V,gk as q}from"./zeni-epic-state-1d5RmIXy.js";import{K,z as I,aq as L,dL as $}from"./index-BfNeAGgC.js";import"./mui-DEiF_Hb4.js";import{u as G}from"./useAskAiCfoHostNavButtonProps-B4mYX3VH.js";import{M as H}from"./MobileAppDrawer-CgJ60E2m.js";import"./recharts-MD3a-5g4.js";import"./analytics-k_LuQgHs.js";import"./plaid-UFuUhVwC.js";import"./dnd-BD4CdaiB.js";import"./stripe-cKAAJElX.js";import"./lottie-BGwNmPax.js";import"./lexical-ae4wZrjx.js";import"./pdf-CuKXyKjy.js";import"./utils-CaDQp8mU.js";import"./InboxNotificationsProvider-EoJhdrtc.js";import"./useTaskManagerAccess-IxEInAYM.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]="d94ba73f-ee65-4858-bc09-6d1551eba312",e._sentryDebugIdIdentifier="sentry-dbid-d94ba73f-ee65-4858-bc09-6d1551eba312")}catch{}})();const J=z((function(e){const t=I.getSignedInUser(),c=e.tenantState.currentTenantId,o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:c??""},{aggregatedReportViewState:n}=h(e);return{authParams:o,isDisabled:!1,loggedInUser:t,aggregatedReport:n}}),(function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}}))($),Q=()=>{const e=_(),t=v(),c=K(),o=p((a=>B(a))),{aggregatedReportViewState:n}=p((a=>h(a))),{tenantEmailDomain:f}=M(),u=P(),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,T)=>{u(V({fromMonth:a,toMonth:i,cacheOverride:T}))}),[]);r.useEffect((()=>{n?.fetchState==="Completed"&&m.current&&(u(q({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]),g=a=>{S(a)},{isAiCfoAccessEnabled:R,onAskAiCfoClick:A}=G({mobileExploreReferrer:"Performance"});return L({isDataReady:n?.fetchState==="Completed"}),y?s.jsxs(s.Fragment,{children:[s.jsx(H,{isAppContentDrawerOpen:w,handleDrawerToggle:g}),s.jsx(J,{navigate:e,location:t,themeState:c,currentTenant:o,signedInUser:l,tenantEmailDomain:f,onReload:D,onTimeRangeSelect:j,handleDrawerToggle:g,isAiCfoAccessEnabled:R,onAskAiCfoClick:A})]}):s.jsx(U,{to:`/${f}/dashboard`,replace:!0})};function be(){return s.jsxs(O,{children:[s.jsx(b,{path:"*",element:s.jsx(Q,{})}),s.jsx(b,{path:"*",element:s.jsx(E,{})})]})}export{be as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./liveblocks-DwoS2LTS.js";import Z from"./NotFoundScreen-DK36JFcR.js";import{a as p}from"./sentry-BF2EAQwc.js";import{h as C,g as N,u as V,j as u,N as D,l as k,n as z,o as b}from"./core-Beu9kTtR.js";import{fI as E,Zr as h,ZJ as R,NZ as U,NV as L,NY as m,NO as $,_6 as B,NS as J,N$ as K}from"./zeni-epic-state-1d5RmIXy.js";import{z as T,w as O,c8 as Y,n as _,bR as q,c9 as F}from"./index-BfNeAGgC.js";import"./mui-DEiF_Hb4.js";import{u as G,R as x}from"./ReimbursementApprovalRuleDetailScreen-C_dMNpou.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="2514e67e-8490-4ecf-9bf5-44f699f5a806",e._sentryDebugIdIdentifier="sentry-dbid-2514e67e-8490-4ecf-9bf5-44f699f5a806")}catch{}})();const j="reimbursement-approval-rule-update",H=k((function(e){return{approvalView:h(e),remiSetupApproverViewUpdateData:R(e).remiSetupApproverViewUpdateData}}),(function(e,s){const{navigate:n,location:a}=s;return{onApprovalRulesEventReceived:t=>{t.endsWith(j)&&e(B(!1))},onBackClick:()=>{_(a)?n("../../"):n("../../../reimbursements/setup")},onDeleteRuleClick:t=>{e($(t,!1))},onEditRuleClick:t=>{t!=null?(e(m(t)),n(`./${t}/edit`)):(e(m()),n("./new"))}}}))(O(Y)),M=({isLoading:e})=>{const s=C(),n=N(),a=V(),[t,l]=p.useState(!1),[v,w]=p.useState(!1),S=u((o=>o.remiSetupApproverViewState.fetchState)),c=u((o=>E(o))),d=u((o=>h(o))),g=u((o=>R(o).remiSetupApproverViewUpdateData));if(p.useEffect((()=>{g?.updateStatus.fetchState==="Completed"&&a(U())}),[g]),p.useEffect((()=>{t||S!=="Not-Started"||e||(l(!0),a(L(!0,!1,!1,!1)))}),[t,S,e,a]),T.getSignedInUser()==null)throw Error("Can't access reimbursement approval without signing in...");p.useEffect((()=>{d.allApprovalRules.length===0&&d.fetchState==="Completed"&&(v||(w(!0),a(m())),s("./new"))}),[v,d,a]);const f={events:c.companyId!=null?[`private-encrypted-${c.companyId}.${j}`]:[],eventCallback:(o,y,I)=>{o.endsWith(j)&&I.onApprovalRulesEventReceived(o)}};return c?.companyReimbursementInfo?.info?.isReimbursementTOSAccepted===!1?r.jsx(D,{to:"../../promo"}):r.jsx(H,{currentTenant:c,location:n,navigate:s,...f})},A="reimbursement-approval-rule-update",P=k((function(e){const s=h(e),n=R(e).remiSetupApproverViewUpdateData,a={};for(const l of Object.values(e.vendorState.vendorByID))l?.id!=null&&(a[l.id]=l.name);const t={};for(const l of Object.values(e.classState.classesByKey))l?.classId!=null&&(t[l.classId]=l.className);return{approvalView:s,remiSetupApproverViewUpdateData:n,vendorNamesById:a,departmentNamesById:t}}),(function(e,s){const{navigate:n,location:a}=s;return{onApprovalRulesEventReceived:t=>{t.endsWith(A)&&e(B(!1))},onBackClick:()=>{_(a)?n("../../"):n("../../../reimbursements/setup")},onDeleteRuleClick:t=>{e($(t,!0))},onEditRuleClick:t=>{t!=null?(e(m(t)),n(`./${t}/edit`)):(e(m()),n("./new"))},onReorderRules:t=>{e(K(t,!0))}}}))(O(F)),Q=()=>{const e=u((a=>E(a))),{isApprovalRulesV3Enabled:s,isLoading:n}=q(e?.tenantId);return s?r.jsx(X,{isLoading:n}):r.jsx(M,{isLoading:n})},X=({isLoading:e})=>{const s=C(),n=N(),a=V(),[t,l]=p.useState(!1),[v,w]=p.useState(!1),[S,c]=p.useState(!1),d=u((i=>i.remiSetupApproverViewState.fetchState)),g=u((i=>i.remiSetupApproverViewState.approverListState.fetchStatus.fetchState)),f=u((i=>E(i))),o=u((i=>h(i)));G();const y=u((i=>R(i).remiSetupApproverViewUpdateData));if(p.useEffect((()=>{y?.updateStatus.fetchState==="Completed"&&a(U())}),[y]),p.useEffect((()=>{t||d!=="Not-Started"||e||(l(!0),a(L(!0,!1,!1,!0)))}),[t,d,e,a]),p.useEffect((()=>{v||g!=="Not-Started"||e||(w(!0),a(J(!1,!0)))}),[v,g,e,a]),T.getSignedInUser()==null)throw Error("Can't access reimbursement approval without signing in...");p.useEffect((()=>{o.allApprovalRules.length===0&&o.fetchState==="Completed"&&(S||(c(!0),a(m())),s("./new"))}),[S,o,a]);const I={events:f.companyId!=null?[`private-encrypted-${f.companyId}.${A}`]:[],eventCallback:(i,ee,W)=>{i.endsWith(A)&&W.onApprovalRulesEventReceived(i)}};return f?.companyReimbursementInfo?.info?.isReimbursementTOSAccepted===!1?r.jsx(D,{to:"../../promo"}):r.jsx(P,{currentTenant:f,location:n,navigate:s,isLoading:e,...I})};function le(){return r.jsxs(z,{children:[r.jsx(b,{path:"/",element:r.jsx(Q,{})}),r.jsx(b,{path:"/new",element:r.jsx(x,{})}),r.jsx(b,{path:"/:approvalRuleId/edit",element:r.jsx(x,{})}),r.jsx(b,{path:"*",element:r.jsx(Z,{})})]})}export{le as R};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-DwoS2LTS.js";import{z as j,a6 as N,j as f,Q as S,e0 as I,W as k,A as C}from"./index-BfNeAGgC.js";import"./mui-DEiF_Hb4.js";import g from"./NotFoundScreen-DK36JFcR.js";import{a as c}from"./sentry-BF2EAQwc.js";import{u as D,j as h,h as F,g as L,l as T,n as U,o as d,N as y}from"./core-Beu9kTtR.js";import{fI as _,a2l as w,a2m as p,E2 as P,q3 as V,a2n as q,E0 as z}from"./zeni-epic-state-1d5RmIXy.js";import"./recharts-MD3a-5g4.js";import"./analytics-k_LuQgHs.js";import"./plaid-UFuUhVwC.js";import"./dnd-BD4CdaiB.js";import"./stripe-cKAAJElX.js";import"./lottie-BGwNmPax.js";import"./lexical-ae4wZrjx.js";import"./pdf-CuKXyKjy.js";import"./utils-CaDQp8mU.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]="5566ca64-85a9-48eb-9e3d-e81295d8c733",e._sentryDebugIdIdentifier="sentry-dbid-5566ca64-85a9-48eb-9e3d-e81295d8c733")}catch{}})();const A=T((function(e,t){const n=w(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=j.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])})),f.trackInviteEmailClicked("send",s,r,s.length)}e(z())},onUpdateInviteFormLocalData:s=>{e(q({localData:s}))},onSubmitSuccess:()=>{e(p())},onCancelClick:()=>{i!=null&&f.trackInviteEmailClicked("cancel")}}}))(I),G=()=>{const e=D(),[t,n]=c.useState(!1),[i,s]=c.useState(!1),r=h((o=>_(o))),l=F(),x=L(),u=j.getSignedInUser();if(u==null)throw Error("Can't access invite referral screen without signing in...");const m=h((o=>w(o))),b=u?.firstName!=null?u.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 E=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[m.fetchState==="Completed"?a.jsx(N,{analytics:f,onLoad:o=>(v=>v.trackPageLoaded(S.Event.inviteEmailViewed))(o)}):null,a.jsx(A,{navigate:l,location:x,currentTenant:r,companyName:E,userName:b,inviteFormCompayData:m.localData})]})};function ne(){const{useFeatureGate:e}=k(),{isFeatureEnabled:t}=e(C.isReferralFeatureEnabled);return a.jsxs(U,{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(G,{}):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-DK36JFcR.js","assets/sentry-BF2EAQwc.js","assets/core-Beu9kTtR.js","assets/zeni-epic-state-1d5RmIXy.js","assets/index-BfNeAGgC.js","assets/mui-DEiF_Hb4.js","assets/analytics-k_LuQgHs.js","assets/utils-CaDQp8mU.js","assets/index-BQ3cXEYt.css","assets/DashboardRoutes-BKSV9vko.js","assets/withTransactionSidePanel-DH0DiNtU.js","assets/useAskAiCfoHostNavButtonProps-B4mYX3VH.js","assets/TransactionDetailScreen-JD8O14oY.js","assets/decodeURIComponentSafe-0ml5lsEu.js","assets/useInitialThreadRequest-BhgsGG5D.js","assets/routePaths-uZogBPDo.js","assets/expenseAutomationHelper-dXFQtPOw.js","assets/stripSplatSuffix-6CTGoq-D.js","assets/analyticsHelper-CnJWG9bB.js","assets/CompanyPassportScreen-CxZJl1bJ.js","assets/MobileAppDrawer-CgJ60E2m.js","assets/InboxNotificationsProvider-EoJhdrtc.js","assets/useTaskManagerAccess-IxEInAYM.js","assets/useAiCfoDashboardSuggestedQuestionsChips-4BNh0D5K.js","assets/FeaturePreviewScreen-C6K1_63v.js","assets/BillPayRoutes-lyhC_q-2.js","assets/AddressScreen-Goy7OAa3.js","assets/DomesticWireDetailScreen-C8qRoekM.js","assets/BusinessVerificationPageScreen-CRJRFoBF.js","assets/DrawerScreen-CN9HYciY.js","assets/SetupPagesScreen-B2ZhtNLX.js","assets/BillPayApprovalRoutes-CEnfa_wS.js","assets/ReimbursementApprovalRuleDetailScreen-C_dMNpou.js","assets/getLocaleForTenant-YwW4TLUd.js","assets/ReimbursementRoutes-CverQIks.js","assets/ReimbursementApprovalRoutes-BUzBZ8wT.js","assets/TransactionListRoutes-Cn4w6j8O.js","assets/ZeniAccountStatementScreen-TsXZSj_4.js","assets/SettingsRoutes-C6bz6i-5.js","assets/AccountMappingScreen-BqrHv3lf.js","assets/QBOConnectionScreen-DFycm_ki.js","assets/empty-C_-q3sdl.js","assets/index-Dxjgx_aK.js","assets/url-CcLycjqh.js","assets/index-CMLe_P16.js","assets/accountMappingHelper-DKrp-2iY.js","assets/useEmailConnectResultRefresh-DjE-2Sye.js","assets/ReportsRoutes-BCJIsVHt.js","assets/ChargeCardRoutes-BOqQM_C6.js","assets/useChargeCardPusherEvents-DIeSIWcP.js","assets/PeopleRoutes-CN01cV2T.js","assets/ExpenseAutomationRoutes-DGlzQW9f.js","assets/useActualMatchingMatchDetail-4m9qzYbe.js","assets/ScheduleDetailsPrepaidExpensesScreen-BKYsisUv.js","assets/pathToGoBack-DlfSGzqF.js","assets/TreasuryRoutes-C3gzhi0V.js","assets/VendorsRoutes-BwM6t0j-.js","assets/ZeniAccountRoutes-CGLFu0Ov.js","assets/AddressRoutes-CevDzchV.js","assets/PandLWithForecastRoutes-U9sR4r18.js","assets/CustomerOnboardingRoutes-Q5ECv8HT.js","assets/TransactionDetailRoutes-Vh6CRIwx.js","assets/EntityDetailRoutes-DvnbYoBF.js","assets/InvoicingRoutes-DxRpDPHw.js","assets/NotificationRoutes-DRUjl08J.js","assets/PerformanceRoutes-sPgEs3ei.js","assets/ActualMatchingMatchDetailScreen-h8TCOzmP.js","assets/RewardsRoutes-DL4U3zKu.js","assets/TaskRoutes-CmCsn1P4.js","assets/TaskListScreen-uIZd6Y1d.js","assets/useTaskManagerPusherEvents-DIUFIhyQ.js","assets/AiCfoScreen-CRBP1pbJ.js","assets/CardsAiCfoScreen-DrIgNEMk.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as s,bn as Es,fI as hs,e0 as ps,d$ as xs,Bd as gs,dj as Rs,c9 as js,gM as Is,gc as Ts,dg as pe,cH as As,gq as bs,cz as Ds,bF as ys,br as fs,Uw as Cs,v as vs,Uz as Os,bq as Us,UA as Ps,bL as ws,bK as Fs,bu as Ls,cv as Vs,UB as Hs,UC as ks,db as Bs,de as Ss,dd as Ns,cG as Ms,cN as Zs,pW as xe,gl as ge,h0 as zs,gn as Re,gO as je,gP as Ie,go as $s}from"./zeni-epic-state-1d5RmIXy.js";import{j as e}from"./liveblocks-DwoS2LTS.js";import{a as P}from"./sentry-BF2EAQwc.js";import{N as u,u as Gs,h as qs,i as Ws,g as Ys,j as z,q as Te,n as Js,o as n}from"./core-Beu9kTtR.js";import{J as l,u as Ks,z as f,W as Xs,d as Qs,B as et,A as S,f as st,M as tt,V as nt,L as F,G as Ae,t as _,P as at,N as ot,j as ne}from"./index-BfNeAGgC.js";import{u as rt}from"./mui-DEiF_Hb4.js";import{f as be}from"./analyticsHelper-CnJWG9bB.js";import{t as it}from"./getLocaleForTenant-YwW4TLUd.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},D=new o.Error().stack;D&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[D]="b93dc245-34ec-477d-9c46-d0db80332d4a",o._sentryDebugIdIdentifier="sentry-dbid-b93dc245-34ec-477d-9c46-d0db80332d4a")}catch{}})();const lt=l((()=>s((()=>import("./NotFoundScreen-DK36JFcR.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`}),De=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/treasury`}),ye=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/checking`}),fe=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/cards`}),C=({showZeniAccountRoute:o,isUserHasBillPayAccess:D,isUserHasReimbursementAccess:N,showTreasuryRoute:i,isTenantBankingOnly:V,showChargeCardRoute:O,tenantEmailDomain:v})=>{if(V===!0){if(o)return e.jsx(ye,{tenantEmailDomain:v});if(i)return e.jsx(De,{tenantEmailDomain:v});if(O)return e.jsx(fe,{tenantEmailDomain:v})}return o?e.jsx(ye,{tenantEmailDomain:v}):i?e.jsx(De,{tenantEmailDomain:v}):O?e.jsx(fe,{tenantEmailDomain:v}):D?e.jsx(dt,{tenantEmailDomain:v}):N?e.jsx(ut,{tenantEmailDomain:v}):e.jsx(lt,{})},ct={dashboard:()=>s((()=>import("./DashboardRoutes-BKSV9vko.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-lyhC_q-2.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-CverQIks.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-Cn4w6j8O.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-C6bz6i-5.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-BCJIsVHt.js")),__vite__mapDeps([47,1,2,3,4,5,6,7,0,24,14,15,20,21,22,8])),chargeCards:()=>s((()=>import("./ChargeCardRoutes-BOqQM_C6.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-CN01cV2T.js")),__vite__mapDeps([50,1,2,3,4,5,6,7,0,11,20,21,22,8])),expenseAutomation:()=>s((()=>import("./ExpenseAutomationRoutes-DGlzQW9f.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-C3gzhi0V.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-BwM6t0j-.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-CGLFu0Ov.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-BCJIsVHt.js")),__vite__mapDeps([47,1,2,3,4,5,6,7,0,24,14,15,20,21,22,8])))),Et=l((()=>s((()=>import("./AddressRoutes-CevDzchV.js")),__vite__mapDeps([58,1,2,3,26,4,5,6,7,0,8])))),ht=l((()=>s((()=>import("./PeopleRoutes-CN01cV2T.js")),__vite__mapDeps([50,1,2,3,4,5,6,7,0,11,20,21,22,8])))),pt=l((()=>s((()=>import("./PandLWithForecastRoutes-U9sR4r18.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-Q5ECv8HT.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-BwM6t0j-.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-Vh6CRIwx.js")),__vite__mapDeps([61,1,2,3,0,4,5,6,7,12,11,13,14,15,16,8])))),Ce=l((()=>s((()=>import("./EntityDetailRoutes-DvnbYoBF.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-BKSV9vko.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-lyhC_q-2.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-C6bz6i-5.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-DxRpDPHw.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-CverQIks.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-CGLFu0Ov.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-C3gzhi0V.js")),__vite__mapDeps([55,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,11,14,24,8])))),Dt=l((()=>s((()=>import("./TransactionListRoutes-Cn4w6j8O.js")),__vite__mapDeps([36,1,2,3,4,5,6,7,10,11,12,13,14,15,16,17,37,8])))),yt=l((()=>s((()=>import("./ChargeCardRoutes-BOqQM_C6.js")),__vite__mapDeps([48,1,2,3,4,5,6,7,11,20,21,22,30,28,15,0,18,14,49,26,8])))),ft=l((()=>s((()=>import("./NotificationRoutes-DRUjl08J.js")),__vite__mapDeps([64,1,2,3,0,4,5,6,7,11,22,8])))),Ct=l((()=>s((()=>import("./PerformanceRoutes-sPgEs3ei.js")),__vite__mapDeps([65,1,2,3,0,4,5,6,7,11,20,21,22,8])))),vt=l((()=>s((()=>import("./ExpenseAutomationRoutes-DGlzQW9f.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-h8TCOzmP.js")),__vite__mapDeps([66,1,2,3,4,5,6,7,52,17,13,15,0,8])))),Ut=l((()=>s((()=>import("./RewardsRoutes-DL4U3zKu.js")),__vite__mapDeps([67,1,2,3,4,5,6,7,0,8])))),Pt=l((()=>s((()=>import("./TaskRoutes-CmCsn1P4.js")),__vite__mapDeps([68,1,2,3,0,4,5,6,7,14,20,21,22,69,11,70,8])))),wt=l((()=>s((()=>import("./AiCfoScreen-CRBP1pbJ.js")),__vite__mapDeps([71,1,2,3,4,5,6,7,23,54,15,70,8])))),Ue=l((()=>s((()=>import("./CardsAiCfoScreen-DrIgNEMk.js")),__vite__mapDeps([72,1,2,3,4,5,6,7,8])))),b=l((()=>s((()=>import("./NotFoundScreen-DK36JFcR.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8])))),Ft=l((()=>s((()=>import("./TaskListScreen-uIZd6Y1d.js").then((o=>o.f))),__vite__mapDeps([69,1,2,3,4,5,6,7,11,20,21,22,70,8])))),Lt=({isDashboardAccess:o,showZeniAccountRoute:D,isUserHasBillPayAccess:N,isUserHasReimbursementAccess:i,showTreasuryRoute:V,isTenantBankingOnly:O,isTenantCardsOnly:v,showChargeCardRoute:H})=>{if(O===!0){if(D)return e.jsx(u,{to:"checking"});if(V)return e.jsx(u,{to:"treasury"});if(H)return e.jsx(u,{to:"cards"})}return v===!0&&H?e.jsx(u,{to:"cards"}):o?e.jsx(u,{to:"dashboard"}):D?e.jsx(u,{to:"checking"}):V?e.jsx(u,{to:"treasury"}):H?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`}),zt=Object.freeze(Object.defineProperty({__proto__:null,default:function({setTenantEmailDomain:o}){const D=Gs(),N=qs(),{tenantEmailDomain:i}=Ws(),V=rt().mode,{setLoading:O,clearAllLoading:v,clearLoading:H}=Ks(),y=f.getSignedInUserTenant(i)?.tenantId,I=f.getSignedInUser(),J=Es(I),$=Ys(),[L,we]=P.useState(!1),r=z((a=>hs(a))),{useFeatureGate:k}=Xs(),M=Qs(),K=et(),Fe=!!r.company?.companyZeniAccountInfo?.isZeniAccountEnabled,Le=r.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",{isFeatureEnabled:Ve}=k(S.isChargeCardFeatureEnabled),{isFeatureEnabled:oe}=k(S.isDebitCardFeatureEnabled),T=z((a=>a.tenantState.fetchState)),p=z((a=>a.tenantState.activeTenantFetchState.fetchState)),E=p==="Completed"||T==="Completed"?ps(oe,r):void 0,X=p==="Completed"||T==="Completed"?xs(r):void 0,re=p==="Completed"||T==="Completed"?gs(r)&&!Rs(r):void 0,He=st(r,Ve,oe),{isCardsHidden:ke}=tt(r?.tenantId),Be=!He||!!ke,{isFeatureEnabled:Se}=k(S.isSettingsFeatureEnabled),{isFeatureEnabled:Q}=k(S.isAiCfoFileUploadEnabled),{isFeatureEnabled:Ne}=k(S.isInvoicingFeatureEnabled??"is_invoicing_feature_enabled"),Me=Ne||ot==="DEV",Ze=r?.userRole!=null&&js(r.userRole),G=z((a=>Is(a)));if(i!=null){const a=f.getSignedInUserTenant(i);I!=null&&a!=null&&be(I,r,V)}const Z={tenantId:y,userId:I?.userId,sessionId:I?.zeniSessionId},ie=Ts(),h=nt(),ze=r.company==null||h?.loggedInUserRoleMap!=null&&pe(h.loggedInUserRole),$e=As(h?.loggedInUserRoleMap),ee=Te("/:tenantEmailDomain/onboarding/*")!==null,Ge=Te("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*"),se=Ge?.params.selectedPeriod,qe=z((a=>Z.tenantId!=null?bs(a,Z.tenantId):void 0));P.useEffect((()=>{O(F.TENANT_FETCHING),o(i)}),[i]),P.useEffect((()=>{if(se!=null&&y!=null){const a=se.split("-");if(a.length===2){const A=Ds(Number(a[0])),c=Number(a[1]),t=ys(`01-${A<10?`0${A}`:A}-${c}`,Ae.getLocalizedStrings().dateFormat.analytics.DDDashMMDashYYYY),d=fs();t.isAfter(d,"month")===!1?D(Cs(y,{month:A,year:c})):N(`/${i}/month_end_close_checks/review`)}}}),[se,i,y]),P.useEffect((()=>{L||(we(!0),O(F.TENANT_FETCHING))}),[L,Z,ie,I,D,f]),P.useLayoutEffect((()=>{!vs(ie,Z)&&f.isSignedIn()&&(O(F.TENANT_FETCHING),(function(a,A,c,t){if(ge(A?.userId,A?.zeniSessionId,a.tenantId),c(zs(!0)),c(Re(a.tenantId)),a.tenantId!=null&&_.clearTenant(a.tenantId),a.tenantId!=null){const d=f.getSignedInUserTenantWithId(a.tenantId);t&&Ae.updateAppLocaleID(it(t)),d?.tenantEmailDomain!=null&&f.saveActiveTenantDomainForUser(d?.tenantEmailDomain)}a.userId!=null?ne.identify(a.userId,{tenant_id:a.tenantId}):ne.resetUserIdentity()})(Z,I,D,qe))}),[y]),P.useEffect((()=>{f.isSignedIn()&&(O(F.TENANT_FETCHING),(function(a,A,c,t,d,q,B){if(c==null&&t==null)return void console.warn("There is no current tenant selected!!");const W=t!=null&&d?.zeniSessionId!=null,cs=c==null||c.tenantId!==t,ms=c!=null&&c.excludedResources==null,_s=c!=null&&c.externalConnections==null;if(W&&cs){B(Re(t));const Y=f.getSignedInUserTenantWithId(t);Y?.tenantEmailDomain!=null&&f.saveActiveTenantDomainForUser(Y?.tenantEmailDomain),ge(d?.userId,d?.zeniSessionId,t),_.shouldFetchExcludedResources(t)&&(_.markExcludedResourcesFetchStarted(t),B(je(d.userId,t))),_.shouldFetchConnections(t)&&(_.markConnectionsFetchStarted(t),B(Ie(d.userId,t)))}else W&&ms&&_.shouldFetchExcludedResources(t)&&(_.markExcludedResourcesFetchStarted(t),B(je(d.userId,t))),W&&_s&&_.shouldFetchConnections(t)&&(_.markConnectionsFetchStarted(t),B(Ie(d.userId,t)));if(W){ne.identify(d.userId,{tenant_id:t});const Y=t==null||t!=null&&(A==="Completed"||A==="Error");a==="Completed"||A!=="Not-Started"&&A!=="Error"||t==null||!_.shouldFetchActiveTenant(t)||(_.markActiveTenantFetchStarted(t),q(F.TENANT_FETCHING),B($s(d.userId,t,d.zeniSessionId))),Y&&(a==="Not-Started"||a==="Error")&&_.shouldFetchAllTenants()&&(_.markAllTenantsFetchStarted(),B(xe(d.userId,d.zeniSessionId)))}})(T,p,r,y,I,O,D))}),[y,p]),P.useEffect((()=>{f.isSignedIn()&&T==="Completed"&&G.tenantsBaseInOrder.length>0&&(H(F.TENANT_FETCHING),f.saveSignedInUserTenants(Os(G.tenantsBaseInOrder)),I!=null&&be(I,r,V,void 0,G.tenantsBaseInOrder))}),[G,T,r,I]),P.useEffect((()=>{p==="In-Progress"&&O(F.TENANT_FETCHING),p!=="Completed"&&p!=="Error"||(p==="Completed"&&y!=null?(v(),_.markActiveTenantFetchCompleted(y)):p==="Error"&&y!=null&&(_.markActiveTenantFetchFailed(y),H(F.TENANT_FETCHING),H(F.TENANT_SWITCHING))),T!=="Completed"&&T!=="Error"||(T==="Completed"?_.markAllTenantsFetchCompleted():T==="Error"&&_.markAllTenantsFetchFailed())}),[p,T,y,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],q=ct[d];q!=null?q().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:We}=k(S.isReferralFeatureEnabled),{isFeatureEnabled:Ye}=k(S.isAccrualEnabled),Je=r?.userRole!=null&&r.userRole.includes("charge_card_user"),Ke=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=!Be&&!U,Xe=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&&Vs(h?.loggedInUserRoleMap),os=Hs(h?.loggedInUserRoleMap),rs=ks(h?.loggedInUserRoleMap),is=Bs(h?.loggedInUserRoleMap),ls=Ss(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||Xe===!0||os===!0||rs===!0;return f.isSignedIn()?y==null?T==="Completed"?e.jsx(u,{to:"/",replace:!0,state:{...$.state,message:"...",origin:$.pathname}}):(I!=null&&T!=="In-Progress"&&D(xe(I.userId,I.zeniSessionId)),null):p!=="In-Progress"&&p!=="Not-Started"||T==="Completed"?(te===!0||J&&!ee)&&es&&Qe!==!0&&E===!1&&X===!1&&re===!1?(o(void 0),e.jsx(u,{to:"/connection/auth",replace:!0})):!L||re!==!0||te!==!0||ee||J?!L||te!==!1||ee||J?L&&r?.userRole&&E!=null&&X!=null&&i!=null&&Object.keys(h.loggedInUserRoleMap).length>0?e.jsx(Js,{children:e.jsxs(n,{element:e.jsx(at,{}),children:[e.jsx(n,{path:"/",element:e.jsx(Lt,{isDashboardAccess:w,showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,isTenantCardsOnly:X,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||Je||Ke?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(Dt,{}):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:K===!0?e.jsx(Ct,{}):e.jsx(Pe,{tenantEmailDomain:i})}),e.jsx(n,{path:"month_end_close_checks/review/*",element:K===!0&&U===!1?e.jsx(vt,{}):e.jsx(Pe,{tenantEmailDomain:i})}),e.jsx(n,{path:"expense-automation/actual-matching/:matchId",element:K===!0&&U===!1&&Ye===!0?e.jsx(Ot,{}):e.jsx(b,{})}),e.jsx(n,{path:"notifications/*",element:e.jsx(ft,{})}),e.jsx(n,{path:"vendors/*",element:ze?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:Se?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(yt,{}):e.jsx(b,{})}),e.jsx(n,{path:"rewards/*",element:We?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,zt as S};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as f}from"./liveblocks-DwoS2LTS.js";import{a as u,R as T,t as A}from"./sentry-BF2EAQwc.js";import{u as z,h as D,j as c,g as j,N as M,l as O}from"./core-Beu9kTtR.js";import{u as P,z as s,j as w,G as F,O as N,Q as _,R as B,S as G,T as R,U as v}from"./index-BfNeAGgC.js";import{fI as V,Uf as $,Uz as H,gl as J,gn as Q,UE as W,gY as Y,dk as q,UF as y,UG as K,UH as X,c0 as U}from"./zeni-epic-state-1d5RmIXy.js";import{u as Z}from"./mui-DEiF_Hb4.js";import{u as ee}from"./useDeviceId-gZ0JJcev.js";import{f as te}from"./analyticsHelper-CnJWG9bB.js";import{t as ne}from"./getLocaleForTenant-YwW4TLUd.js";import"./recharts-MD3a-5g4.js";import"./analytics-k_LuQgHs.js";import"./plaid-UFuUhVwC.js";import"./dnd-BD4CdaiB.js";import"./stripe-cKAAJElX.js";import"./lottie-BGwNmPax.js";import"./lexical-ae4wZrjx.js";import"./pdf-CuKXyKjy.js";import"./utils-CaDQp8mU.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]="4155bd1f-448e-4dcf-92c8-6288ca78f4f9",t._sentryDebugIdIdentifier="sentry-dbid-4155bd1f-448e-4dcf-92c8-6288ca78f4f9")}catch{}})();const ie=O((function(t,i){const d=t.tenantState.fetchState,g=t.tenantState.sendEmailMagicLinkFetchState,{magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:l}=i;return{googleClientId:v.googleClientId,microsoftClientId:v.microsoftClientId,signInError:t.tenantState.error?.error,fetchState:d,sendMagicLinkStatus:g,magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:l}}),(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 l=a==="google"?window.location.origin:window.location.origin+window.location.pathname;t(X({authCode:n,oauthProvider:a,appType:"web",redirectUri:U(l),sourceUri:U(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(K(n,a)))},clearSignInError:()=>{t(y())}}}))(R),ae=T.memo(ie);function ve({setTenantEmailDomain:t}){const i=z(),d=D(),{clearAllLoading:g}=P(),n=s.getSignedInUser();u.useLayoutEffect((()=>{g()}),[g]);const a=ee(),l=c((e=>e.tenantState.magicLinkCodeVerifier)),{sendEmailMagicLinkFetchState:k,accountLocked:C,accountUnlockTime:L}=c((e=>e.tenantState)),p=c((e=>e.tenantState.fetchState)),h=c((e=>e.tenantState.activeTenantFetchState.fetchState)),S=c((e=>e.tenantState.signInState)),o=c((e=>e.tenantState.loggedInUser)),r=c((e=>V(e))),I=c((e=>$(e))),m=j(),E=Z().mode,b=m.state?.magicLinkExpired,x=m.state?.magicLinkAlreadyUsed;if(u.useEffect((()=>{k.fetchState==="Completed"&&l!=null&&(w.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(l))}),[k.fetchState,l]),u.useEffect((()=>{t(void 0)}),[]),u.useEffect((()=>{S!=="In-Progress"||p!=="Completed"&&h!=="Completed"||o?.zeniSessionId==null||r==null||(s.savePayNowInfoTooltip(!0,o.zeniSessionId),s.saveSignedInUserWithSession(o,o.zeniSessionId),s.saveSignedInUserTenants(H(I.tenantsInOrder),o.zeniSessionId),J(o.userId,o.zeniSessionId,r.tenantId),i(Q(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(W("Completed")),F.updateAppLocaleID(ne(r)),te(o,r,E,void 0,I.tenantsInOrder),Y().then((()=>{const e=G();e!=null&&N(e)})),setTimeout((()=>{w.trackLogin(_.Event.loginSuccess,o.authProvider??"google",q(r.productSettings))}),2e3))}),[S,p,h,o,r,I,E,m.state,i]),S==="In-Progress"&&p==="Completed"&&o?.zeniSessionId!=null&&r!=null||n!=null){const e=m.state?.origin??"/";return f.jsx(M,{to:e,state:{...m.state,origin:""}})}return f.jsxs(f.Fragment,{children:[f.jsx(ae,{magicLinkExpired:!!b,magicLinkAlreadyUsed:!!x,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),C===!0&&L!=null?f.jsx(B,{onClose:()=>i(y()),unlockDate:L}):null]})}export{ve as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-DwoS2LTS.js";import{a as i}from"./sentry-BF2EAQwc.js";import{u as f,g as l,N as u}from"./core-Beu9kTtR.js";import{z as n,j as a,Q as m,a5 as p}from"./index-BfNeAGgC.js";import{g$ as g,UV as b}from"./zeni-epic-state-1d5RmIXy.js";import{n as y}from"./mui-DEiF_Hb4.js";import"./recharts-MD3a-5g4.js";import"./analytics-k_LuQgHs.js";import"./plaid-UFuUhVwC.js";import"./dnd-BD4CdaiB.js";import"./stripe-cKAAJElX.js";import"./lottie-BGwNmPax.js";import"./lexical-ae4wZrjx.js";import"./pdf-CuKXyKjy.js";import"./utils-CaDQp8mU.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]="8cddc8e9-9b2e-44f1-9bd1-634b8ce6dceb",e._sentryDebugIdIdentifier="sentry-dbid-8cddc8e9-9b2e-44f1-9bd1-634b8ce6dceb")}catch{}})();function L(){const e=f(),t=l(),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()),b(),a.trackLogout(m.Event.logoutSuccess),a.resetUserIdentity(),n.clearAll()}catch(d){console.error("Error during sign out:",d)}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=y.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{L as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as G}from"./liveblocks-DwoS2LTS.js";import{a as u}from"./sentry-BF2EAQwc.js";import{u as J,k as X,j as C,h as ma,g as Sa,i as ya,l as Da}from"./core-Beu9kTtR.js";import{z as Z,W as Ea,A as I,aq as ba,a6 as ha,j as Ca,Q as Aa,e3 as Ga,p as F,a2 as Ia}from"./index-BfNeAGgC.js";import{Qr as Ra,Rf as va,fI as Ba,a2t as na,gQ as q,a2u as ra,a2p as La,QJ as H,a2v as Ka,QX as Y,Qt as wa,Q5 as Ua,Rr as aa,a2w as ea,gk as Pa,Ri as Fa,Rn as ja,Ra as xa,R8 as ta,Ro as $a,R5 as Oa,a2x as Na,a2y as Qa,a2z as za,a2A as Za,a2B as R,dy as qa,dx as Ma,a2C as Va,Qq as Wa}from"./zeni-epic-state-1d5RmIXy.js";import{n as Ja}from"./mui-DEiF_Hb4.js";import{u as Xa}from"./useAskAiCfoHostNavButtonProps-B4mYX3VH.js";import{M as Ha}from"./MobileAppDrawer-CgJ60E2m.js";import{u as Ya}from"./useTaskManagerPusherEvents-DIUFIhyQ.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="9499c063-4a39-4858-9f61-3da703692190",a._sentryDebugIdIdentifier="sentry-dbid-9499c063-4a39-4858-9f61-3da703692190")}catch{}})();const _={TASK_CREATED:"task-created",TASK_UPDATED:"task-updated",TASK_SNOOZE_RESURFACED:"task-snooze-resurfaced",TASKS_BULK_UPDATED:"tasks-bulk-updated",TASKS_BULK_DELETED:"tasks-bulk-deleted"},ae=(a,t)=>a==null||a===""?[]:t.map((n=>`private-encrypted-${a}.${n}`)),ee=(a,t)=>a==null||a===""?[]:t.map((n=>`private-encrypted-${a}.${n}`)),j=a=>Array.isArray(a)&&a.every((t=>typeof t=="string")),oa=a=>typeof a.task_id=="string"?a.task_id:typeof a.id=="string"?a.id:null,ge=a=>{if(a==null||typeof a!="object")return null;const t=a,n=oa(t);if(n==null)return null;const c={task_id:n};return typeof t.parent_task_id=="string"&&(c.parent_task_id=t.parent_task_id),typeof t.sync_token=="string"&&(c.sync_token=t.sync_token),typeof t.is_deleted=="boolean"&&(c.is_deleted=t.is_deleted),typeof t.is_private=="boolean"&&(c.is_private=t.is_private),c},te=a=>{if(a==null||typeof a!="object")return null;const t=a;return j(t.task_ids)?{task_ids:t.task_ids}:null},_e=a=>{if(a==null||typeof a!="object")return null;const t=a;return typeof t.task_id!="string"?null:{task_id:t.task_id}},se=Ja.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: ${a=>a.theme.colors.grey4};
|
|
9
|
-
`,ne=Da((function(a,t){const n=na(a,t.isTaskTemplatesEnabled),{taskGroupId:c}=t,p=c!=null&&c!==""?{...n,taskGroupsWithTasksList:n.taskGroupsWithTasksList.map((e=>({...e,tasks:e.tasks.filter((s=>s.taskGroupIds.includes(c)))}))).filter((e=>e.tasks.length>0))}:n,y=La(a),f=Z.isZeniUser(),v=a.taskDetailState?.subTaskCreateStatus?.fetchState;return{taskListView:p,tagListView:y,localData:p.localData,isTaskTemplatesEnabled:t.isTaskTemplatesEnabled,isZeniUser:f,subTaskCreateStatus:v}}),(function(a,t){const{navigate:n,currentTenant:c,location:p,isTaskTemplatesEnabled:y}=t,{tenantEmailDomain:f}=c,{groupByKey:v}=t.uiState;return{onTaskManagementRowClick:e=>{const s=sa(f,e),D=F(p.state?.pathnameStackToGoBack,p.pathname);n(s,{state:{pathnameStackToGoBack:D}})},onReloadTasks:()=>{a(q(!0,y))},onTabChange:e=>{a(Za(e))},onParentTaskClick:e=>{const s=sa(f,e);window.open(s,"_blank","noopener")},bulkUpdateTasks:(e,s)=>{a(ta(e,null,s))},onNewTaskClick:()=>{if(t.localData.defaultTaskGroupId!=null){const e=z(f,t.localData.defaultTaskGroupId),s=F(p.state?.pathnameStackToGoBack,p.pathname);n(e,{state:{pathnameStackToGoBack:s,message:"comingFromTaskListPage"}})}},onColumnSortConfigChanged:(e,s)=>{a(ea({uiState:{sortKey:e,sortOrder:s}}))},onFiltersChange:e=>{a(za({filters:e}))},onSearchTextChanged:e=>{a(Qa({searchText:e}))},onReloadCards:()=>{a(q(!0,y))},onBackClick:()=>{if(p.state?.message==="triggerBackClick"){const e=Ia(p.state?.pathnameStackToGoBack),s=e.poppedPathname??"../";n(s,{state:{pathnameStackToGoBack:e.newStack}})}else n("../")},updateLocalData:e=>{a(Na({localData:e}))},resetLocalData:()=>{a(ra({taskGroupById:t.taskGroupState.taskGroupById}))},handleCreateGroup:e=>{a(Oa(t.localData.newTaskGroupName,e))},assignGroupToTasks:e=>{a(ta(t.localData.selectedTaskIds,e,$a(t.uiState.groupByKey,e)))},onDeleteTaskGroup:e=>{a(xa(e))},onAddNewTaskToTaskGroup:e=>{if(t.localData.defaultTaskGroupId!=null){const s=oe(v,e);a(H({taskDetailLocalData:s}));const D=z(f,t.uiState.groupByKey==="groupName"?e:t.localData.defaultTaskGroupId),x=F(p.state?.pathnameStackToGoBack,p.pathname);n(D,{state:{pathnameStackToGoBack:x,message:"comingFromTaskListPage"}})}},onDragNDrop:(e,s)=>{a(ja(t.localData.selectedTaskIds.length>0?t.localData.selectedTaskIds:[e],s))},onTaskGroupRename:(e,s)=>{a(Fa(e,s))},onTimeSpentUpdate:(e,s)=>{a(aa({task:e,updates:s}))},onShowToast:e=>{a(Pa(e))},onGroupByFilterChange:e=>{a(ea({uiState:{groupByKey:e}}))},updateTask:(e,s)=>{a(aa({task:e,updates:s}))},onCreateTagClick:(e,s)=>{a(Ua(e,s))},onSubtaskCreation:(e,s)=>{a(wa({...s,parentTaskId:e}))},handleGroupTemplateClick:e=>{a(Y(e,[]))},handleGroupTemplateTaskClick:(e,s)=>{a(Y(e,[s]))},handleNewTaskInitialization:e=>{if(a(H({taskDetailLocalData:{...Ka,name:e}})),t.localData.defaultTaskGroupId!=null){const s=z(f,t.localData.defaultTaskGroupId),D=F(p.state?.pathnameStackToGoBack,p.pathname);n(s,{state:{pathnameStackToGoBack:D,message:"comingFromTaskListPage"}})}},onTaskGroupNameClick:e=>{n(`/${f}/tasks/group/${e}`)},onQuickResponsesClick:()=>{n(`/${f}/tasks/quick-responses`)}}}))(Ga);function re(){const a=ma(),t=J(),n=Sa(),c=Z.getSignedInUser(),p=Z.isZeniUser(),y=X(),f=C((d=>Ba(d))),{taskGroupId:v}=ya(),{useFeatureGate:e}=Ea(),{isFeatureEnabled:s}=e(I.isTaskTemplatesEnabled),{isFeatureEnabled:D}=e(I.isTaskCannedResponsesEnabled),{isFeatureEnabled:x}=e(I.isTaskCategorizationEnabled),{isFeatureEnabled:ia}=e(I.isTaskBulkResolutionEnabled),{isFeatureEnabled:la}=e(I.isTaskGroupAssigneesEnabled),{isFeatureEnabled:ua}=e(I.isTaskRecurringParentEnabled),[ca,da]=u.useState(!1),$=C((d=>na(d,s))),O=C((d=>d.taskGroupState)),B=$.fetchState,{isAiCfoAccessEnabled:ka,onAskAiCfoClick:pa}=Xa({mobileExploreReferrer:"Task Checklist"});ba({isDataReady:B==="Completed"});const{markBoardFetchInFlight:M,requestTaskRefetch:N}=(function(d){const m=J(),r=X(),T=u.useRef(!1),o=u.useRef(!1),k=u.useRef(!1),g=u.useRef(),l=u.useRef(),S=u.useRef(!1),L=u.useRef(),K=u.useCallback((()=>{L.current=r.getState().taskListState.byTab.live,S.current=!0}),[r]),w=u.useCallback((()=>{K(),m(Ra())}),[m,K]),E=u.useCallback((()=>{g.current=r.getState().taskGroupState.taskGroupById,k.current=!0,m(va())}),[m,r]),b=u.useCallback((()=>{T.current=!1,l.current!=null&&(clearTimeout(l.current),l.current=void 0),w(),k.current||r.getState().taskGroupViewState.fetchState==="In-Progress"?o.current=!0:E()}),[w,E,r]),Q=u.useCallback((()=>{S.current?(T.current=!0,l.current==null&&(l.current=setTimeout((()=>{l.current=void 0,T.current&&r.getState().taskListState.fetchState!=="In-Progress"&&(S.current=!1,b())}),6e3))):b()}),[b,r]);u.useEffect((()=>{l.current!=null&&(clearTimeout(l.current),l.current=void 0),T.current=!1,o.current=!1,k.current=!1}),[d]);const h=C((i=>i.taskListState.fetchState)),A=C((i=>i.taskGroupViewState.fetchState)),U=C((i=>i.taskListState.byTab.live)),P=C((i=>i.taskGroupState.taskGroupById));return u.useEffect((()=>{h!=="In-Progress"&&(!S.current||U!==L.current||h==="Error")&&(S.current=!1,T.current&&(h!=="Completed"?h==="Error"&&(T.current=!1,l.current!=null&&(clearTimeout(l.current),l.current=void 0)):b()))}),[h,U,b]),u.useEffect((()=>{A!=="In-Progress"&&(!k.current||P!==g.current||A==="Error")&&(k.current=!1,o.current&&(o.current=!1,A!=="Error"&&E()))}),[A,P,E]),u.useEffect((()=>()=>{l.current!=null&&(clearTimeout(l.current),l.current=void 0)}),[]),{markBoardFetchInFlight:K,requestTaskRefetch:Q}})(f?.tenantId);u.useEffect((()=>{y.getState().taskListState.hasValidState()||M(),t(q(!1,s))}),[f?.tenantId,t,s,M,y]);const fa=u.useMemo((()=>{const d=[_.TASK_CREATED,_.TASK_UPDATED,_.TASKS_BULK_UPDATED,_.TASKS_BULK_DELETED],m=[_.TASK_CREATED,_.TASK_UPDATED,_.TASK_SNOOZE_RESURFACED,_.TASKS_BULK_UPDATED];return[...ae(f?.companyId,d),...ee(c?.userId,m)]}),[f?.companyId,c?.userId]);if(Ya({events:fa,onEvent:(d,m)=>{switch(d){case _.TASK_CREATED:case _.TASK_UPDATED:{const r=(T=>{if(T==null||typeof T!="object")return null;const o=T,k=oa(o);if(k==null||typeof o.tenant_id!="string"||typeof o.event_type!="string")return null;const g={task_id:k,tenant_id:o.tenant_id,event_type:o.event_type};return typeof o.is_private=="boolean"&&(g.is_private=o.is_private),j(o.assignees)&&(g.assignees=o.assignees),j(o.direct_assignees)&&(g.direct_assignees=o.direct_assignees),typeof o.created_by=="string"&&(g.created_by=o.created_by),j(o.task_group_ids)&&(g.task_group_ids=o.task_group_ids),typeof o.name=="string"&&(g.name=o.name),typeof o.parent_task_id=="string"&&(g.parent_task_id=o.parent_task_id),g})(m);if(r!=null){const T=y.getState(),o=r.task_id,k=o!=null?T.taskState.taskByID?.[o]:void 0,g=k!=null;if(!p)if(r.is_private===!0){if(!g)return}else{const l=c?.userId,S=new Set([...r.assignees??[],...r.direct_assignees??[]]);if(r.created_by!=null&&r.created_by!==""&&S.add(r.created_by),!(l!=null&&S.has(l))&&!g)return}if(d===_.TASK_UPDATED&&g&&k!=null&&Array.isArray(r.task_group_ids)){const l=new Set(Object.values(T.taskGroupState.taskGroupById??{}).filter((i=>i!=null&&!i.isDeleted)).map((i=>i.id))),S=(k.taskGroupIds??[]).filter((i=>l.has(i))),L=(r.task_group_ids??[]).filter((i=>l.has(i))),K=S.length===L.length&&S.every((i=>L.includes(i))),w=k.taskGroupIds??[],E=r.task_group_ids??[],b=w.length!==E.length||!w.every((i=>E.includes(i))),Q=(i,Ta)=>{const V=i??[],W=Ta??[];if(V.length!==W.length)return!1;const ga=new Set(W);return V.every((_a=>ga.has(_a)))},h=r.name==null||r.name===k.name,A=r.is_private==null||r.is_private===k.isPrivate,U=r.assignees==null||Q(r.assignees,k.assignees),P=r.direct_assignees==null;if(K&&b&&h&&A&&U&&P)return}}return void N()}case _.TASKS_BULK_DELETED:{const r=te(m);return r==null?void 0:void r.task_ids.forEach((T=>t(Wa(T))))}case _.TASKS_BULK_UPDATED:case _.TASK_SNOOZE_RESURFACED:return void N()}},onSubscribed:()=>{N()}}),u.useEffect((()=>{B==="Completed"&&t(ra({taskGroupById:O.taskGroupById}))}),[B,O.taskGroupById]),c==null)throw Error("Can't access task list page without signing in...");return G.jsxs(G.Fragment,{children:[B==="Completed"?G.jsx(ha,{analytics:Ca,onLoad:d=>(m=>m.trackPageLoaded(Aa.Event.taskListPage))(d)}):null,G.jsxs(se,{children:[G.jsx(Ha,{isAppContentDrawerOpen:ca,handleDrawerToggle:d=>{da(d)}}),G.jsx(ne,{location:n,navigate:a,currentTenant:f,taskGroupId:v,taskGroupState:O,localData:$.localData,uiState:$.uiState,isTaskTemplatesEnabled:s,taskListFetchState:B,isTaskCategorizationEnabled:x,isTaskCannedResponsesEnabled:D,isTaskBulkResolutionEnabled:ia,isTaskGroupAssigneesEnabled:la,isTaskRecurringParentEnabled:ua,isAiCfoAccessEnabled:ka,onAskAiCfoClick:pa})]})]})}const sa=(a,t)=>`/${a}/tasks/${encodeURIComponent(t)}`,z=(a,t)=>`/${a}/tasks/new/${t}`,oe=(a,t)=>{if(a==="assignee"){const n=t.split(",");return{...R.taskDetailLocalData,assignee:n}}if(a==="priority"){const n=qa(t);return{...R.taskDetailLocalData,priority:n}}if(a==="status"){const n=Ma(t);return{...R.taskDetailLocalData,status:n}}if(a==="tag"){const n=t.split(",");return{...R.taskDetailLocalData,tagIds:n}}if(a==="dueDate"){const n=Va(t);return{...R.taskDetailLocalData,dueDate:n}}return{...R.taskDetailLocalData}},me=Object.freeze(Object.defineProperty({__proto__:null,default:re},Symbol.toStringTag,{value:"Module"}));export{_ as T,ee as a,ae as b,_e as c,te as d,re as e,me as f,ge as t};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-DwoS2LTS.js";import ge from"./NotFoundScreen-DK36JFcR.js";import{a as k}from"./sentry-BF2EAQwc.js";import{h as te,u as ne,j as h,g as Ee,i as be,N as De,l as Ie,n as Ce,o as E}from"./core-Beu9kTtR.js";import{Qi as oe,Ql as Ge,Qf as _e,a2o as ye,fI as re,a2p as ie,QM as D,Qz as b,Qc as Ue,Rf as Ae,R8 as Re,a2q as ce,gk as le,a2r as H,Q8 as ve,Q5 as xe,v2 as Be,uS as we,mD as je,Qx as Pe,a2s as Fe,Rr as Ke,Qt as Le,QW as Qe,QT as Ne,Qo as $e,QQ as Ze,QJ as ze}from"./zeni-epic-state-1d5RmIXy.js";import{z as I,e1 as Oe,K as Ve,W as qe,A as y,a2 as ue,p as U,a6 as Me,j as X,Q as Je,e2 as We,U as Y,ac as He}from"./index-BfNeAGgC.js";import{n as Xe}from"./mui-DEiF_Hb4.js";import{u as Ye}from"./useInitialThreadRequest-BhgsGG5D.js";import{M as ea}from"./MobileAppDrawer-CgJ60E2m.js";import{T as m,t as aa,b as sa,a as ta,c as na,d as ee,e as oa}from"./TaskListScreen-uIZd6Y1d.js";import{u as ra}from"./useTaskManagerPusherEvents-DIUFIhyQ.js";import"./recharts-MD3a-5g4.js";import"./analytics-k_LuQgHs.js";import"./plaid-UFuUhVwC.js";import"./dnd-BD4CdaiB.js";import"./stripe-cKAAJElX.js";import"./lottie-BGwNmPax.js";import"./lexical-ae4wZrjx.js";import"./pdf-CuKXyKjy.js";import"./utils-CaDQp8mU.js";import"./InboxNotificationsProvider-EoJhdrtc.js";import"./useTaskManagerAccess-IxEInAYM.js";import"./useAskAiCfoHostNavButtonProps-B4mYX3VH.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]="244b39cd-c729-4faa-8024-7b4f2b419f96",e._sentryDebugIdIdentifier="sentry-dbid-244b39cd-c729-4faa-8024-7b4f2b419f96")}catch{}})();function ia(){const e=te(),a=ne(),n=I.getSignedInUser(),{cannedResponses:c,fetchState:t,saveFetchState:l}=h((r=>r.cannedResponsesState)),u=k.useCallback((()=>{a(oe())}),[a]),S=k.useCallback(((r,C,G)=>{a(Ge({name:r,content:C,cannedResponseId:G}))}),[a]),s=k.useCallback((r=>{a(_e({cannedResponseId:r}))}),[a]);if(n==null)throw Error("Can't access quick responses page without signing in...");return i.jsx(Oe,{cannedResponses:c,isLoading:t==="In-Progress"||t==="Not-Started",isSaving:l==="In-Progress",onBackClick:()=>e(-1),onDelete:s,onFetch:u,onSave:S})}const Q=e=>e?.taskState?.taskByID,K=(e,a)=>{const n=Q(e);if(a!=null&&n!=null)return n[a]?.parentTaskId??void 0},ca=ye([K,(e,a)=>{const n=K(e,a),c=Q(e);if(n!=null&&c!=null)return c[n]?.name},(e,a)=>{const n=K(e,a),c=Q(e);return n!=null&&c!=null&&c[n]!=null}],((e,a,n)=>{if(e!=null&&n===!0)return{id:e,name:a??""}}));let ae,se=[];const la=Ie((function(e,a){const{location:n,taskGroupId:c}=a,t=ce(e,a.taskId),l=re(e),u=ca(e,a.taskId),S=t.taskGroupId??c,s=S!=null?H(e.taskGroupState,S):void 0,r=I.getSignedInUser(),C=l.tenantId,G={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:C??""},x=ie(e),{tenantEmailDomain:B}=l,A=t.recurringSourceTaskId,w=A!=null?`${Y.appUrl}/${B}/tasks/${encodeURIComponent(A)}`:void 0;var g;return{taskDetailSelectorView:t,authParams:G,isZeniUser:I.isZeniUser(),userGroupList:((g=e.userGroupsState.userGroupByUserGroupId)!==ae&&(ae=g,se=Object.values(g)),se),isNewClicked:n.state?.message==="comingFromTaskListPage",filesEndPoint:He.fileMicroServiceBaseUrl,companyName:a.currentTenant.companyName,companyId:a.currentTenant.companyId,currentUrl:`${Y.appUrl}${a.location.pathname}`,cannedResponses:e.cannedResponsesState.cannedResponses,isCannedResponsesLoading:e.cannedResponsesState.fetchState==="In-Progress",recurringSourceTaskUrl:w,tagListView:x,taskGroupName:S!=null&&s!=null&&s.isDefault===!1?s.name:void 0,taskGroupList:e.taskGroupViewState.taskGroupsIds.map((f=>H(e.taskGroupState,f))).filter((f=>f!=null&&!f.isDeleted)).map((f=>({id:f.id,name:f.name,isDefault:f.isDefault}))),subtasks:t.subtasks,parentTaskRef:u,subTaskCreateStatus:e.taskDetailState?.subTaskCreateStatus?.fetchState}}),(function(e,a){const{taskId:n,navigate:c,currentTenant:t,location:l,taskGroupId:u}=a,{tenantEmailDomain:S}=t;return{onSaveChangesToLocalStore:s=>{e(ze({taskDetailLocalData:s,taskId:n}))},onSaveDetailClick:s=>{e(Ze(n,s??u))},onArchiveTaskClick:()=>{a.taskId!=null&&e($e(a.taskId))},onSnoozeTask:(s,r)=>{e(Ne(s,r))},onUnsnoozeTask:s=>{e(Qe(s))},onCreateSubtask:(s,r)=>{e(Le({...r,parentTaskId:s}))},onSubtaskUpdate:(s,r)=>{e(Ke({task:s,updates:r}))},onShowToast:s=>{e(le(s))},onSubtaskRowClick:s=>{c(`/${S}/tasks/${s}`,{state:{pathnameStackToGoBack:U(l.state?.pathnameStackToGoBack,l.pathname)}})},onParentBreadcrumbClick:s=>{c(`/${S}/tasks/${s}`,{state:{pathnameStackToGoBack:U(l.state?.pathnameStackToGoBack,l.pathname)}})},onDismissClick:()=>{if(l.state?.message==="triggerBackClick"){const s=ue(l.state?.pathnameStackToGoBack),r=s.poppedPathname??"../../dashboard";c(r,{state:{pathnameStackToGoBack:s.newStack}})}else{const s=v(S),r=U(l.state?.pathnameStackToGoBack,l.pathname);c(s,{state:{pathnameStackToGoBack:r}})}e(Fe({taskId:n}))},onDeleteTaskClick:()=>{e(Pe(n))},updateFilesEntity:s=>{e(je({files:s}))},onDeleteFile:s=>{e(we(s))},onEditFileName:(s,r)=>{e(Be(s,r.split(".")[0]))},onReloadTaskDetailPage:()=>{e(D(!1,n))},onCreateTagClick:s=>{e(xe(s,n))},onDeleteTagClick:s=>{e(ve(s,n))},onFetchCannedResponses:()=>{e(oe())},onManageTemplatesClick:()=>{c(`/${t.tenantEmailDomain}/tasks/quick-responses`)}}}))(We);function L(){const e=te(),a=ne(),n=Ee(),c=Ve(),{taskId:t,taskGroupId:l}=be(),u=h((o=>re(o))),S=Ye(u?.companyId),{useFeatureGate:s}=qe(),{isFeatureEnabled:r}=s(y.isTaskSnoozeEnabled),{isFeatureEnabled:C}=s(y.isTaskVisibilityEnabled),{isFeatureEnabled:G}=s(y.isTaskCannedResponsesEnabled),{isFeatureEnabled:x}=s(y.isTaskRecurringParentEnabled),{isFeatureEnabled:B}=s(y.isTaskGroupAssigneesEnabled),[A,w]=k.useState(!1),[g,f]=k.useState(!1),[N,de]=k.useState(!1),[$,j]=k.useState(!1),_=k.useRef(!1),R=h((o=>o.taskListState.updateTasksFetchState.fetchState)),Z=h((o=>ie(o))),z=h((o=>o.taskGroupViewState.fetchState));k.useEffect((()=>{a(D(!1,t)),t!=null&&a(b(t))}),[a,t]);const O=I.getSignedInUser()?.userId,ke=I.isZeniUser(),pe=h((o=>t!=null?o.taskState.taskByID[t]?.syncToken:void 0)),V=()=>{u?.tenantEmailDomain!=null&&e(v(u.tenantEmailDomain))},q=()=>{a(le({messageSection:"delete_task",messageText:"success",type:"success"})),V()},me=k.useMemo((()=>{const o=[m.TASK_CREATED,m.TASK_UPDATED,m.TASKS_BULK_UPDATED,m.TASKS_BULK_DELETED],d=[...o,m.TASK_SNOOZE_RESURFACED];return[...sa(u?.companyId,o),...ta(O,d)]}),[u?.companyId,O]);ra({events:me,onSubscribed:()=>{t!=null&&(a(D(!0,t)),a(b(t)))},onEvent:(o,d)=>{if(t!=null)switch(o){case m.TASK_CREATED:case m.TASK_UPDATED:{const p=((F,fe,{isZeniUser:Te,storedSyncToken:he,taskId:W})=>{if(F!==m.TASK_CREATED&&F!==m.TASK_UPDATED)return"none";const T=aa(fe);return T==null?"none":T.parent_task_id===W?"refreshSubtasks":F!==m.TASK_UPDATED||T.task_id!==W?"none":T.is_deleted===!0?"leaveDeleted":T.is_private!==!0||Te?T.sync_token!=null&&T.sync_token===he?"none":"refreshTask":"leaveNoAccess"})(o,d,{isZeniUser:ke,storedSyncToken:pe,taskId:t});p==="refreshTask"?(a(D(!0,t)),a(b(t))):p==="refreshSubtasks"?a(b(t)):p==="leaveDeleted"?q():p==="leaveNoAccess"&&V();break}case m.TASKS_BULK_UPDATED:{const p=ee(d);if(p==null)break;p.task_ids.includes(t)&&a(D(!0,t)),a(b(t));break}case m.TASKS_BULK_DELETED:{const p=ee(d);if(p==null)break;if(p.task_ids.includes(t)){q();break}a(b(t));break}case m.TASK_SNOOZE_RESURFACED:{na(d)?.task_id===t&&a(D(!0,t));break}}}}),k.useEffect((()=>{g||Z.fetchState==="Completed"||(f(!0),a(Ue()))}),[g,a,Z.fetchState]),k.useEffect((()=>{N||z==="Completed"||(de(!0),a(Ae()))}),[N,a,z]);const Se=k.useCallback((()=>{t!=null&&(_.current=!1,a(Re([t],null,{isArchived:!1})),j(!0))}),[a,t]);k.useEffect((()=>{if($)if(R!=="In-Progress"){if(_.current){if(R==="Error")return j(!1),void(_.current=!1);if(R==="Completed"){j(!1),_.current=!1;const{tenantEmailDomain:o}=u;if(n.state?.message==="triggerBackClick"){const d=ue(n.state?.pathnameStackToGoBack);e(d.poppedPathname??"../../dashboard",{state:{pathnameStackToGoBack:d.newStack}})}else{const d=v(o);e(d,{state:{pathnameStackToGoBack:U(n.state?.pathnameStackToGoBack,n.pathname)}})}}}}else _.current=!0}),[$,R,u,n,e]);const M=h((o=>ce(o,t))),P=M.fetchState,J=I.getSignedInUser();if(J==null)throw Error("Can't access task detail page without signing in...");if(P==="Error"&&M.error?.code===400){const{tenantEmailDomain:o}=u,d=v(o),p=U(n.state?.pathnameStackToGoBack,n.pathname);return i.jsx(De,{to:d,state:{pathnameStackToGoBack:p}})}return i.jsxs(i.Fragment,{children:[P==="Completed"?i.jsx(Me,{analytics:X,onLoad:o=>(d=>d.trackPageLoaded(Je.Event.taskDetailPage))(o)}):null,i.jsxs(ua,{children:[i.jsx(ea,{isAppContentDrawerOpen:A,handleDrawerToggle:o=>{w(o)}}),i.jsx(la,{analytics:X,currentTenant:u,handleZeniLogoClick:()=>{c.toggle()},initialOpenThreadRequest:S,location:n,loggedInUser:J,navigate:e,taskGroupId:l,taskId:t,taskDetailFetchState:P,onUnarchiveTaskClick:Se,isTaskSnoozeEnabled:r,isTaskVisibilityEnabled:C,isTaskCannedResponsesEnabled:G,isTaskRecurringParentEnabled:x,isTaskGroupAssigneesEnabled:B})]})]})}const ua=Xe.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
|
-
`,v=e=>`/${e}/tasks`;function wa(){return i.jsxs(Ce,{children:[i.jsx(E,{path:"/new",element:i.jsx(L,{})}),i.jsx(E,{path:"/new/:taskGroupId",element:i.jsx(L,{})}),i.jsx(E,{path:"/group/:taskGroupId",element:i.jsx(oa,{})}),i.jsx(E,{path:"/quick-responses",element:i.jsx(ia,{})}),i.jsx(E,{path:"/:taskId",element:i.jsx(L,{})}),i.jsx(E,{path:"*",element:i.jsx(ge,{})})]})}export{wa as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-DwoS2LTS.js";import i from"./NotFoundScreen-DK36JFcR.js";import{T as r}from"./TransactionDetailScreen-JD8O14oY.js";import"./sentry-BF2EAQwc.js";import{n as a,o as e}from"./core-Beu9kTtR.js";import"./zeni-epic-state-1d5RmIXy.js";import"./recharts-MD3a-5g4.js";import"./index-BfNeAGgC.js";import"./mui-DEiF_Hb4.js";import"./analytics-k_LuQgHs.js";import"./plaid-UFuUhVwC.js";import"./dnd-BD4CdaiB.js";import"./stripe-cKAAJElX.js";import"./lottie-BGwNmPax.js";import"./lexical-ae4wZrjx.js";import"./pdf-CuKXyKjy.js";import"./utils-CaDQp8mU.js";import"./useAskAiCfoHostNavButtonProps-B4mYX3VH.js";import"./decodeURIComponentSafe-0ml5lsEu.js";import"./useInitialThreadRequest-BhgsGG5D.js";import"./routePaths-uZogBPDo.js";import"./expenseAutomationHelper-dXFQtPOw.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,37 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-DwoS2LTS.js";import{h as L,g as U,u as B,i as V,j as y,N as D,l as M,n as xe,o as k}from"./core-Beu9kTtR.js";import{cw as N,fI as E,ZC as F,OL as ae,Os as Z,Ot as ne,ZE as Ie,OO as Te,ZA as we,ZB as se,ZQ as Ce,MP as ke,Cp as je,ZG as Ae,OV as be,ZD as oe,de as q,GW as re,d$ as ve,e0 as Ee,$_ as De,$$ as Le,Ou as Ue,a00 as Be,Ov as Fe,OE as Pe,bq as Oe,bK as Re,cH as Ve,bL as Me,cv as Ne,bu as _e,UA as $e,cu as ze}from"./zeni-epic-state-1d5RmIXy.js";import{V as _,h as Ge,z as v,a6 as $,j as A,d4 as Ze,d5 as qe,d6 as G,_ as H,ao as He,aq as We,W as ie,A as R,a9 as Ke,a5 as Je,d7 as Qe,ac as W,p as Ye,d8 as Xe,a2 as K,d9 as et,ag as tt,Y,da as at,f as nt}from"./index-BfNeAGgC.js";import{u as st,D as ot,n as O,S as rt}from"./mui-DEiF_Hb4.js";import it from"./NotFoundScreen-DK36JFcR.js";import{S as X}from"./SetupPagesScreen-B2ZhtNLX.js";import{a as p}from"./sentry-BF2EAQwc.js";import{u as ct}from"./useAskAiCfoHostNavButtonProps-B4mYX3VH.js";import{u as lt}from"./useInitialThreadRequest-BhgsGG5D.js";import{M as ce}from"./MobileAppDrawer-CgJ60E2m.js";import{F as ut}from"./FeaturePreviewScreen-C6K1_63v.js";import{a as ee}from"./analyticsHelper-CnJWG9bB.js";import"./recharts-MD3a-5g4.js";import"./analytics-k_LuQgHs.js";import"./plaid-UFuUhVwC.js";import"./dnd-BD4CdaiB.js";import"./stripe-cKAAJElX.js";import"./lottie-BGwNmPax.js";import"./lexical-ae4wZrjx.js";import"./pdf-CuKXyKjy.js";import"./utils-CaDQp8mU.js";import"./BusinessVerificationPageScreen-CRJRFoBF.js";import"./routePaths-uZogBPDo.js";import"./InboxNotificationsProvider-EoJhdrtc.js";import"./useTaskManagerAccess-IxEInAYM.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="5632cbb9-cca8-41c2-bdee-c7f4b9c253b6",t._sentryDebugIdIdentifier="sentry-dbid-5632cbb9-cca8-41c2-bdee-c7f4b9c253b6")}catch{}})();const dt=M((function(t,a){const{companyId:n}=a;return{treasurySetupView:F(t,n),analytics:A}}),(function(t,a){const{navigate:n,analytics:r,treasurySetupView:i}=a;return{onBackClick:()=>{n("../")},onNextClick:()=>{const o=i.fundAllocationLocalData;r.trackTreasuryPortfolioConfirm(o.riskScore,ee(o)),t(Te(!0))},onUpdateFundAllocation:o=>{r.trackTreasuryAllocationAction("update",ee(o)),t(Ie(o))}}}))(Ze);function pt(){const t=L(),a=U(),n=B(),{tenantEmailDomain:r}=V(),i=_(),o=y((w=>w.treasurySetupViewState.portfolioAllocationUpdateStatus?.fetchState)),m=Ge(o),s=N(i?.loggedInUserRoleMap),[d,c]=p.useState(!1),[S,I]=p.useState(!1),[l,u]=p.useState(!1),x=y((w=>E(w))),f=v.getSignedInUserTenant(r)?.companyId??x.companyId,C=v.getSignedInUser(),h=y((w=>F(w,f))),g=y((w=>w.treasurySetupViewState.fetchState)),j=y((w=>w.treasurySetupViewState.currentAllocation.fetchStatus?.fetchState)),T=y((w=>w.treasurySetupViewState.treasuryFundsDetails?.fetchStatus?.fetchState));if(C==null)throw Error("Can't access treasury portfolio allocation page without signing in...");if(p.useEffect((()=>{d||g!=="Not-Started"||f==null||(c(!0),n(ae(f,!0,!1)))}),[d,g,f,n]),p.useEffect((()=>{l||T!=="Not-Started"||f==null||(u(!0),n(Z()))}),[l,T,f,n]),p.useEffect((()=>{S||j!=="Not-Started"||f==null||(I(!0),n(ne()))}),[S,j,f,n]),p.useEffect((()=>{m==="In-Progress"&&o==="Completed"&&t("../")}),[m,o,t]),x.companyTreasuryInfo?.info?.isTreasuryTOSAccepted===!1)return e.jsx(D,{to:"../promo"});const P=x.companyTreasuryInfo?.info?.isTreasuryTOSAccepted!==!0||g!=="Completed";return e.jsxs(e.Fragment,{children:[!P&&e.jsx($,{analytics:A,onLoad:()=>{}}),e.jsx(dt,{navigate:t,location:a,companyId:f,isEditMode:!0,isLoading:P,isReadOnly:!s,treasurySetupView:h,analytics:A})]})}const mt=M((function(t,a){const n=a.currentTenant?.companyId;return{plaidConnectionDetails:Ce(t,n,"zeni_treasury","treasury_setup").plaidConnectionDetails,treasurySetupView:F(t,n)}}),(function(t,a){const{navigate:n,transferDetails:r,treasurySetupView:i}=a,o=r.treasuryTransferMoneyLocalData,m=i.fundAllocationLocalData;return{onCancelClick:()=>{G(a.analytics,"cancel",o,m,"Transfer"),t(se()),n("../")},onTransferClick:()=>{G(a.analytics,"confirm",o,m,"Transfer"),t(be())},onSaveChangesToLocalStore:s=>{t(Ae(s))},onFetchLinkTokenClick:s=>{t(je("treasury_setup",s))},onEstablishConnectionClick:s=>{t(ke(s,a.currentTenant?.companyId,"treasury_setup","zeni_treasury"))}}}))(qe),ft=({isFirstTransfer:t,isTransactionsLoaded:a})=>{const n=L(),{tenantEmailDomain:r}=V(),i=B(),[o,m]=p.useState(!1),[s,d]=p.useState(!1),[c,S]=p.useState(!1),[I,l]=p.useState(!1),u=y((T=>T.treasurySetupViewState.fetchState)),x=y((T=>T.treasurySetupViewState.treasuryFundsDetails?.fetchStatus?.fetchState)),f=y((T=>T.treasurySetupViewState.currentAllocation.fetchStatus?.fetchState)),C=y((T=>E(T))),h=v.getSignedInUserTenant(r)?.companyId??C.companyId,g=y((T=>we(T))),j=y((T=>F(T,h)));if(v.getSignedInUser()==null)throw Error("Can't access treasury transfer page without signing in...");return p.useEffect((()=>{s||u!=="Not-Started"||h==null||(d(!0),i(ae(h,!0,!1)))}),[s,u,h,i]),p.useEffect((()=>{c||x!=="Not-Started"||h==null||(S(!0),i(Z()))}),[c,x,h,i]),p.useEffect((()=>{I||f!=="Not-Started"||h==null||(l(!0),i(ne()))}),[I,f,h,i]),e.jsxs(e.Fragment,{children:[e.jsx($,{analytics:A,onLoad:()=>{}}),e.jsx(mt,{analytics:A,navigate:n,transferDetails:g,onAnotherTransferClick:()=>{m(!1),i(se())},currentTenant:C,treasurySetupView:j,showReviewContent:o,maxInsuredAmount:5e5,onReviewClick:()=>{G(A,"review",g.treasuryTransferMoneyLocalData,j.fundAllocationLocalData,"Transfer"),m(!0)},isFirstTransfer:t,isTransactionsLoaded:a,setShowReviewContent:m,onBackClick:()=>{}})]})},yt=O.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: ${t=>t.theme.colors.grey4};
|
|
9
|
-
`,gt={overlayWidth:new Ke(100,100,48)},St=M((function(t,a){const n=oe(t),{companyId:r}=a;return{treasuryDetail:n,treasurySetupView:F(t,r),downloadEndPoint:`${W.bankingMicroServiceBaseUrl}/1.0/treasury-account/statements?query={"statement_type":"tax_statement"}`}}),(function(t,a){const{navigate:n,currentTenant:r,location:i,handleDrawerToggle:o,analytics:m}=a,{tenantEmailDomain:s}=r;return{onSettingsClick:()=>{m.trackAccountsListPageClicked("Settings Icon"),n("setup")},onReloadTransactions:()=>{t(re(!0))},handleTreasuryOptionSelection:d=>{let c="page-not-found";d==="editPortfolio"?c=ht(s):d==="statements"?c=xt(s):d==="taxLetter"?c=It(s):d==="settings"&&(c=Tt(s));const S=Ye(i.state?.pathnameStackToGoBack,i.pathname);n(c,{state:{pathnameStackToGoBack:S}})},onColumnSortConfigChanged:(d,c)=>{t(De({uiState:{sortKey:d,sortOrder:c}}))},onTransferClick:()=>{n("./transfer")},onBackClick:()=>{n("../../")},onClickMenuIcon:()=>{o(!0)},onAutoTransferClick:()=>{n("../../checking/auto-transfer")}}}))(Qe);function z({isTransferDrawerOpen:t,isEditPortfolioDrawerOpen:a}){const n=U(),r=L(),i=B(),o=H(),m=st(),s=y((b=>E(b))),{tenantEmailDomain:d}=V(),c=s.companyId??v.getSignedInUserTenant(d)?.companyId,[S,I]=p.useState(!1),l=y((b=>oe(b))),u=l.fetchState,x=l.accountSummary?.totalBalance?.amount,f=y((b=>b.treasurySetupViewState.treasuryFundsDetails?.fetchStatus)),C=s.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",h=_(),g=!!s.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,j=N(h?.loggedInUserRoleMap),T=q(h?.loggedInUserRoleMap),{areTenantIdsInSync:P}=He();p.useEffect((()=>{u==="Not-Started"&&!S&&P&&(I(!0),i(re(!0)))}),[S,i,u,P]),p.useEffect((()=>{l.transactionsFetchState.fetchState==="Completed"&&l.transactions.length===0&&!n.pathname.includes("transfer")&&j&&r("./transfer")}),[l.transactionsFetchState.fetchState,l.transactions.length,n.pathname,j,r]);const w=()=>{r("..")},[le,ue]=p.useState(!1),J=b=>{ue(b)},{isAiCfoAccessEnabled:de,onAskAiCfoClick:pe}=ct({mobileExploreReferrer:"Treasury"});We({isDataReady:u==="Completed"});const{useFeatureGate:Q}=ie(),{isFeatureEnabled:me}=Q(R.isDebitCardFeatureEnabled),{isFeatureEnabled:fe}=Q(R.isAutoTransferRuleEnabled),ye=lt(c,{clearParams:u==="Completed"&&f?.fetchState==="Completed"}),ge=ve(s),Se=Ee(me,s);if(ge===!0&&Se!==!0)return e.jsx(ut,{});if(C){const b=f?.fetchState!=="Completed"||l.accountSummaryFetchState.fetchState!=="Completed";return e.jsxs(e.Fragment,{children:[l.accountSummaryFetchState.fetchState==="Completed"&&f?.fetchState==="Completed"&&t===!1&&a===!1?e.jsx($,{analytics:A,onLoad:()=>{}}):null,e.jsx(ot,{onClose:w,anchor:"right",open:a||t,transitionDuration:250,PaperProps:{style:{width:gt.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:m.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsxs(wt,{onClick:he=>he.stopPropagation(),children:[t===!0?e.jsx(ft,{isFirstTransfer:l.transactions.length===0||x===0,isTransactionsLoaded:l.transactionsFetchState.fetchState!=="In-Progress"&&l.transactionsFetchState.fetchState!=="Not-Started"}):null,a===!0?e.jsx(pt,{}):null]})}),e.jsxs(yt,{windowSize:o,children:[e.jsx(ce,{isAppContentDrawerOpen:le,handleDrawerToggle:J}),e.jsx(St,{treasuryDetailsView:l,isAutoTransferRuleEnabled:fe,navigate:r,currentTenant:s,location:n,companyId:c,analytics:A,handleDrawerToggle:J,initialOpenThreadRequest:ye,isLoading:b,isAiCfoAccessEnabled:de,onAskAiCfoClick:pe})]})]})}return g&&j?e.jsx(D,{to:"../setup"}):s.companyTreasuryInfo?.info&&!g&&T?e.jsx(D,{to:"../promo",state:n.state}):e.jsx(Je,{fetchState:"In-Progress",style:{backgroundColor:m.colors.grey5}})}const ht=t=>`/${t}/treasury/edit-portfolio`,xt=t=>`/${t}/treasury/statements`,It=t=>`/${t}/treasury/tax-letter`,Tt=t=>`/${t}/treasury/setup`,wt=O(rt)`
|
|
10
|
-
display: flex;
|
|
11
|
-
min-height: 100%;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
`,Ct=O.div`
|
|
14
|
-
display: flex;
|
|
15
|
-
height: 100vh;
|
|
16
|
-
width: 100%;
|
|
17
|
-
flex: 1 1 auto;
|
|
18
|
-
flex-direction: column;
|
|
19
|
-
align-items: center;
|
|
20
|
-
background-color: ${t=>t.theme.colors.grey4};
|
|
21
|
-
`;function kt(){const t=L(),a=B(),n=H(),r=U(),i=`${W.bankingMicroServiceBaseUrl}/1.0/treasury-account`,[o,m]=p.useState(!1),s=y((u=>Le(u)));p.useEffect((()=>{o||s.fetchState!=="Not-Started"||(m(!0),a(Ue(!1)))}),[o,s.fetchState,a]);const d=v.getSignedInUser(),c=y((u=>E(u))),S={userId:d?.userId??"",sessionId:d?.zeniSessionId??"",tenantId:c.tenantId??""},I=c.company?.companyInfo.companyLegalName??c.companyName;if(d==null)throw Error("Can't access statements page without signing in...");const l=s.fetchState!=="Completed";return e.jsx(Ct,{windowSize:n,children:e.jsx(Xe,{currentTenantCompanyName:I,statementListView:s,isLoading:l,onBackClick:()=>{const u=K(r.state?.pathnameStackToGoBack),x=u.poppedPathname??"..";t(x,{state:{pathnameStackToGoBack:u.newStack}})},authParams:S,downloadEndPoint:i})})}const jt=O.div`
|
|
22
|
-
display: flex;
|
|
23
|
-
height: 100vh;
|
|
24
|
-
width: 100%;
|
|
25
|
-
flex: 1 1 auto;
|
|
26
|
-
flex-direction: column;
|
|
27
|
-
align-items: center;
|
|
28
|
-
background-color: ${t=>t.theme.colors.grey4};
|
|
29
|
-
`;function At(){const t=L(),a=H(),n=U(),r=B(),i=`${W.bankingMicroServiceBaseUrl}/1.0/treasury-account`,[o,m]=p.useState(!1),s=y((u=>Be(u)));p.useEffect((()=>{o||s.fetchState!=="Not-Started"||(m(!0),r(Fe(!1)))}),[o,s.fetchState,r]);const d=v.getSignedInUser(),c=y((u=>E(u))),S={userId:d?.userId??"",sessionId:d?.zeniSessionId??"",tenantId:c.tenantId??""},I=c.company?.companyInfo.companyLegalName??c.companyName;if(d==null)throw Error("Can't access tax letter page without signing in...");const l=s.fetchState!=="Completed";return e.jsx(jt,{windowSize:a,children:e.jsx(et,{currentTenantCompanyName:I,taxLetterListView:s,isLoading:l,onBackClick:()=>{const u=K(n.state?.pathnameStackToGoBack),x=u.poppedPathname??"..";t(x,{state:{pathnameStackToGoBack:u.newStack}})},authParams:S,downloadEndPoint:i})})}const bt=M((function(t,a){const{companyId:n}=a,r=F(t,n);return{treasurySetupView:r,isSetupComplete:r.companyTreasuryInfo?.businessVerificationStatus?.code==="verified",videoUrl:"https://www.youtube.com/watch?v=sqvJWKCMZgk"}}),(function(t,a){const{navigate:n,companyId:r}=a;return{onSetupButtonClick:()=>{t(Pe(r))},onBackClick:()=>{n("../..",{relative:"path"})},onTreasurySetupSuccess:i=>{n(i?"..":"../setup",{relative:"path"})}}}))(at),vt=()=>{const t=tt(),a=L(),n=U(),r=B(),{tenantEmailDomain:i}=V(),[o,m]=p.useState(!1),s=y((g=>E(g))),[d,c]=p.useState(!1),S=y((g=>g.treasurySetupViewState.treasuryFundsDetails?.fetchStatus));p.useEffect((()=>{d||S?.fetchState!=="Not-Started"||I==null||(c(!0),r(Z()))}),[S,r]);const I=v.getSignedInUserTenant(i)?.companyId??s.companyId,l=v.getSignedInUser(),u=!!s.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,x=g=>{m(g)};if(l==null)throw Error("Can't access treasury promo page without signing in...");const f=_(),C=N(f?.loggedInUserRoleMap),h=q(f?.loggedInUserRoleMap);if(u&&C)return e.jsx(D,{to:"../../treasury/setup"});if(s.company?.companyTreasuryInfo&&(!u&&C||h)){if(n.state?.message==="activation"){const g=K(n.state?.pathnameStackToGoBack);a(n.pathname,{state:{...n.state,message:void 0,pathnameStackToGoBack:g.newStack}})}return S?.fetchState!=="Completed"?e.jsx(te,{children:e.jsx(Y,{size:"ExtraLarge",start:!0})}):e.jsxs(e.Fragment,{children:[e.jsx($,{analytics:A,onLoad:g=>(j=>j.trackTreasuryPromoView("Treasury Promo Page"))(g)}),e.jsx(ce,{isAppContentDrawerOpen:o,handleDrawerToggle:x}),e.jsx(bt,{analytics:A,navigate:a,companyId:I,meetingUrl:t("treasury_promo"),onClickMenuIcon:()=>{x(!0)}})]})}return e.jsx(te,{children:e.jsx(Y,{size:"ExtraLarge",start:!0})})},te=O.div`
|
|
30
|
-
display: flex;
|
|
31
|
-
width: 100%;
|
|
32
|
-
height: 100%;
|
|
33
|
-
flex-direction: row;
|
|
34
|
-
justify-content: center;
|
|
35
|
-
align-items: center;
|
|
36
|
-
background-color: ${t=>t.theme.colors.grey5};
|
|
37
|
-
`;function ta(){const t=U(),a=y((g=>E(g))),{useFeatureGate:n}=ie(),r=a.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",i=!!a.company?.companyTreasuryInfo?.isTreasuryTOSAccepted,o=_(),m=q(o?.loggedInUserRoleMap),s=a?.userRole!=null&&Oe(a?.userRole),d=(a?.company==null||a.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!s)&&Re(o?.loggedInUserRoleMap),c=Ve(o?.loggedInUserRoleMap),S=(a?.company==null||a.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!s)&&Me(o?.loggedInUserRoleMap),I=!!a.company?.companyZeniAccountInfo?.isZeniAccountEnabled&&!s&&Ne(o?.loggedInUserRoleMap),l=r&&!s&&N(o?.loggedInUserRoleMap),{isFeatureEnabled:u}=n(R.isChargeCardFeatureEnabled),{isFeatureEnabled:x}=n(R.isDebitCardFeatureEnabled),f=nt(a,u,x)&&!s&&_e(o?.loggedInUserRoleMap),C=$e(o?.loggedInUserRoleMap),h=ze(o?.loggedInUserRoleMap);return e.jsxs(xe,{children:[h?null:e.jsx(k,{path:"setup",element:e.jsx(X,{isBillPayAdminLevelAccess:d,isReimbursementAdminLevelAccess:S,isZeniAccountAdminLevelAccess:I,isChargeCardAdminLevelAccess:f,isTreasuryAdminLevelAccess:l,isUserHasOnlyCardAccess:C,isUserHasOnlyBillPayAccess:c,productType:"zeni_treasury",type:"setup"})}),h?null:e.jsx(k,{path:"verification",element:e.jsx(X,{isBillPayAdminLevelAccess:d,isUserHasOnlyBillPayAccess:c,isReimbursementAdminLevelAccess:S,isZeniAccountAdminLevelAccess:I,isChargeCardAdminLevelAccess:f,isTreasuryAdminLevelAccess:l,isUserHasOnlyCardAccess:C,productType:"zeni_treasury",type:"verification"})}),e.jsx(k,{path:"promo",element:e.jsx(vt,{})}),e.jsx(k,{path:"statements",element:e.jsx(kt,{})}),e.jsx(k,{path:"tax-letter",element:e.jsx(At,{})}),r?e.jsxs(e.Fragment,{children:[e.jsx(k,{path:"/",element:e.jsx(z,{isTransferDrawerOpen:!1,isEditPortfolioDrawerOpen:!1})}),l?e.jsxs(e.Fragment,{children:[e.jsx(k,{path:"edit-portfolio",element:e.jsx(z,{isEditPortfolioDrawerOpen:!0,isTransferDrawerOpen:!1})}),e.jsx(k,{path:"transfer",element:e.jsx(z,{isTransferDrawerOpen:!0,isEditPortfolioDrawerOpen:!1})})]}):null,e.jsx(k,{path:"*",element:e.jsx(it,{})})]}):i&&l?e.jsx(k,{path:"*",element:e.jsx(D,{to:"../setup"})}):a.company?.companyZeniAccountInfo&&m?e.jsx(k,{path:"*",element:e.jsx(D,{to:"../promo",state:t.state})}):e.jsx(k,{path:"*",element:null})]})}export{ta as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./liveblocks-DwoS2LTS.js";import{a as f}from"./sentry-BF2EAQwc.js";import{t as u,u as h,j as y,N as I}from"./core-Beu9kTtR.js";import{US as b,gl as w,JP as j}from"./zeni-epic-state-1d5RmIXy.js";import{z as l,a5 as x,ad as S,ae as D}from"./index-BfNeAGgC.js";import{n as g}from"./mui-DEiF_Hb4.js";import"./recharts-MD3a-5g4.js";import"./analytics-k_LuQgHs.js";import"./plaid-UFuUhVwC.js";import"./dnd-BD4CdaiB.js";import"./stripe-cKAAJElX.js";import"./lottie-BGwNmPax.js";import"./lexical-ae4wZrjx.js";import"./pdf-CuKXyKjy.js";import"./utils-CaDQp8mU.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]="b3e51e19-9239-4636-a23a-618661fc5503",e._sentryDebugIdIdentifier="sentry-dbid-b3e51e19-9239-4636-a23a-618661fc5503")}catch{}})();const B=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",p=e.get("profileId")??"",[n,c]=f.useState(!1),a=h(),i=y((m=>b(m))),r=l.getSignedInUser(),d=l.getSignedInUserTenantWithId(s);if(r==null||d==null)return o.jsx(I,{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||(c(!0),a(j(t,p,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=g.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
|
-
`,_=g(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-DwoS2LTS.js";import{a as m}from"./sentry-BF2EAQwc.js";import{h as $,u as x,g as T,i as j,j as p}from"./core-Beu9kTtR.js";import{TA as s,Tz as v,$Y as z,fI as B,$Z as C}from"./zeni-epic-state-1d5RmIXy.js";import{_ as D,ac as g,z as E,a5 as L,d3 as P,a2 as _}from"./index-BfNeAGgC.js";import{u as N,n as U}from"./mui-DEiF_Hb4.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]="5e9817f2-c45b-47cb-a074-555c52c50ee6",e._sentryDebugIdIdentifier="sentry-dbid-5e9817f2-c45b-47cb-a074-555c52c50ee6")}catch{}})();const A=U.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 F(){const e=$(),n=x(),d=D(),l=T();let{accountId:a}=j(),u=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&l.pathname.includes(`${s}/statements`)&&(a=s,u=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[f,y]=m.useState(!1),h=N();m.useEffect((()=>{f||(y(!0),n(v(a??"",!1)))}),[f,n]);const o=p((t=>z(t,a??""))),b=()=>{const t=_(l.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},c=E.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(L,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}}):i.jsx(A,{windowSize:d,children:i.jsx(P,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:b,authParams:I,downloadEndPoint:u})})}export{F as Z};
|