@zeniai/web-app-ui 5.0.85-dev → 5.0.85-next
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/AddressRoutes-BTrd57s2.js +1 -0
- package/dist/assets/{AddressScreen-iadLC3wL.js → AddressScreen-BvMQB8FF.js} +1 -1
- package/dist/assets/{AiCfoScreen-DnNvzRXg.js → AiCfoScreen-DNmotkk5.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-aEVqsC6X.js → BillPayApprovalRoutes-BqycijzY.js} +1 -1
- package/dist/assets/{BillPayRoutes-OhgtAqt5.js → BillPayRoutes-DcPzz5vY.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-Bpcf42MJ.js → BusinessVerificationPageScreen-x0C706ZJ.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-CC3rUcEx.js → ChargeCardRoutes-BZN_rT-F.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-Bo8U2F7k.js → CompanyPassportScreen-D6yPFCfS.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-B8zFmWwE.js → ConnectionAuthScreen-BpVpKcdb.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-NQu_T9jk.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-oUdkgm9z.js → CustomerOnboardingRoutes-BGlngZ6e.js} +1 -1
- package/dist/assets/{DashboardRoutes-CIv9TwmX.js → DashboardRoutes-W9H9Wk5O.js} +1 -1
- package/dist/assets/{DefaultTenantHome-CzfX63rA.js → DefaultTenantHome-CaDzFVa8.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-cxtSnsYA.js → DomesticWireDetailScreen-D0UoKqzj.js} +1 -1
- package/dist/assets/{DrawerScreen-ZPO4Ypa0.js → DrawerScreen-DTAMBHDh.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-DmfoaR8r.js → EntityDetailRoutes-CwZL3vFL.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-70ubL0r1.js → ExpenseAutomationRoutes-C8rYvumd.js} +1 -1
- package/dist/assets/{FeaturePreviewScreen-D78u7iOi.js → FeaturePreviewScreen-IL56yObW.js} +1 -1
- package/dist/assets/{HubSpotOAuthCallbackScreen-C9fFwBcJ.js → HubSpotOAuthCallbackScreen-Bn1S03Qv.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-DhAnytU9.js → MagicLinkRoutes-C5zFGH0x.js} +1 -1
- package/dist/assets/{MagicLinkSignInScreen-ni2a4_kD.js → MagicLinkSignInScreen-C_AC7KhO.js} +1 -1
- package/dist/assets/{MobileAppDrawer-DuLLFVYe.js → MobileAppDrawer-CuP4fq1B.js} +1 -1
- package/dist/assets/NotFoundScreen-YKkxofho.js +1 -0
- package/dist/assets/{NotificationRoutes-DHzbPPiF.js → NotificationRoutes-Bg72dHqS.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-Dck3ttsM.js → OAuthConsentScreen-ClYHEuXL.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-j7pNIg3t.js → PandLWithForecastRoutes-DLv_fyFO.js} +1 -1
- package/dist/assets/{PeopleRoutes-BKKvfS70.js → PeopleRoutes-DYVLissD.js} +1 -1
- package/dist/assets/{PerformanceRoutes-DSCVYWBr.js → PerformanceRoutes-CGjcWKBJ.js} +1 -1
- package/dist/assets/{Preview-DHZ-1chc.js → Preview-OfbNwl97.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-eKsh6fZL.js → QBOConnectionScreen-DOLdLoS0.js} +1 -1
- package/dist/assets/{ReferralListScreen-De_dGEop.js → ReferralListScreen-vfg1s_YP.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-uuEexwT2.js → ReimbursementApprovalRoutes-jiOOsHvW.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-BOkWTXGa.js → ReimbursementApprovalRuleDetailScreen-Bbsz8QQ6.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-CcnOfRVK.js → ReimbursementRoutes-B5Sw13Ed.js} +1 -1
- package/dist/assets/{ReportsRoutes-BSCnGMpO.js → ReportsRoutes-LZJ0MKKr.js} +1 -1
- package/dist/assets/{RewardsRoutes-SW6jGQWJ.js → RewardsRoutes-D5g_M2XG.js} +1 -1
- package/dist/assets/{ScreenRoutes-D7t2GB4Z.js → ScreenRoutes-BNgaE4bd.js} +2 -2
- package/dist/assets/{SettingsRoutes-C7bM-RTm.js → SettingsRoutes-Dv_Ka7i6.js} +1 -1
- package/dist/assets/{SetupPagesScreen-BbrLzo4b.js → SetupPagesScreen-DeN_QNf8.js} +1 -1
- package/dist/assets/{SignInScreen-B8X6mEk8.js → SignInScreen-Xb-rwCEV.js} +1 -1
- package/dist/assets/{SignOutScreen-DDvMBRd7.js → SignOutScreen-7Dwf7rnU.js} +1 -1
- package/dist/assets/{TaskListScreen-CUOhqgD-.js → TaskListScreen-BwXGWL1j.js} +1 -1
- package/dist/assets/{TaskRoutes-v8AsLlq0.js → TaskRoutes-B2WWoSAP.js} +1 -1
- package/dist/assets/TransactionDetailRoutes-DY2UJC6b.js +1 -0
- package/dist/assets/{TransactionDetailScreen-718LSRWk.js → TransactionDetailScreen-CxbLldkU.js} +1 -1
- package/dist/assets/{TransactionListRoutes-BhS0v3iK.js → TransactionListRoutes-CasY9nUL.js} +1 -1
- package/dist/assets/{TreasuryRoutes-Dde0CrN8.js → TreasuryRoutes-BWDk7gT_.js} +1 -1
- package/dist/assets/{VendorsRoutes-CRJAC3dc.js → VendorsRoutes-nJ4B-tBU.js} +1 -1
- package/dist/assets/{WiseConfirmationScreen-CUB6U8zj.js → WiseConfirmationScreen-BszKriUp.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-BPbGWjLj.js → ZeniAccountRoutes-DyN4j1Qq.js} +1 -1
- package/dist/assets/{ZeniAccountStatementScreen-DOfTHOXY.js → ZeniAccountStatementScreen-BRW8WxDR.js} +1 -1
- package/dist/assets/{accountMappingHelper-DIs9XlFT.js → accountMappingHelper-4acz-SwQ.js} +1 -1
- package/dist/assets/{analytics-cU6JjHUB.js → analytics-DyMyvTxh.js} +1 -1
- package/dist/assets/{analyticsHelper-1nvJW90-.js → analyticsHelper-DN-X1P8T.js} +1 -1
- package/dist/assets/{core-CjgV1pRV.js → core-aR0qKEiV.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-N2eflqcZ.js → decodeURIComponentSafe-imXO9fsR.js} +1 -1
- package/dist/assets/{dnd-DHtwlo1Y.js → dnd-CZ0pE10o.js} +1 -1
- package/dist/assets/{empty-DDprIUHc.js → empty-9TGazCdO.js} +1 -1
- package/dist/assets/{empty-CyGd8cnQ.js → empty-DcODLT1b.js} +1 -1
- package/dist/assets/{emptyVideoElement-DNVEo2Xc.js → emptyVideoElement-BQz-nkII.js} +1 -1
- package/dist/assets/{epic-D4aEg97H.js → epic-uNwbwWI4.js} +1 -1
- package/dist/assets/{getLocaleForTenant-D5dw7iAh.js → getLocaleForTenant-DhBtn3Ee.js} +1 -1
- package/dist/assets/{index-vm-rweqa.js → index-4FSocmrF.js} +1 -1
- package/dist/assets/{index-6IUOh0lu.js → index-B7d7MSWD.js} +1 -1
- package/dist/assets/{index-DFlDlBb4.js → index-BkZ9kaZ9.js} +1 -1
- package/dist/assets/{index-CEFWvyAZ.js → index-ChczZgz4.js} +1 -1
- package/dist/assets/{index-BcVOuC0n.js → index-Cy593RGQ.js} +7 -7
- package/dist/assets/{index-BnsuU_HD.js → index-DH1VA1sJ.js} +1 -1
- package/dist/assets/{index-DLy2V-c8.js → index-ooKt2AnX.js} +1 -1
- package/dist/assets/{index-CWaji86e.js → index-zeRn3DGw.js} +2 -2
- package/dist/assets/{lexical-MibAVFD6.js → lexical-oQNXHxEc.js} +1 -1
- package/dist/assets/{liveblocks-FqlsN9l2.js → liveblocks-CLqAhud6.js} +1 -1
- package/dist/assets/{lottie-wdoglqbL.js → lottie-Bz1bpTt2.js} +1 -1
- package/dist/assets/{mui-DV0w8xOn.js → mui-BY8zvgs4.js} +1 -1
- package/dist/assets/{pathToGoBack-DjdAyrK6.js → pathToGoBack-BgMfa4Fs.js} +1 -1
- package/dist/assets/{pdf-FCPcIMVR.js → pdf-DGbhE1eo.js} +3 -3
- package/dist/assets/{pdf-lib-CMxizmxK.js → pdf-lib-BYGY-M64.js} +1 -1
- package/dist/assets/{plaid-BkGpAOW9.js → plaid-BgClSQ5E.js} +1 -1
- package/dist/assets/{pusher-BEl5dYf3.js → pusher-CtTjQ1YW.js} +1 -1
- package/dist/assets/{react-CxQwwzka.js → react-CMnFYwb8.js} +1 -1
- package/dist/assets/{react-jKiqoE8I.js → react-CV_JpCVX.js} +1 -1
- package/dist/assets/{react-D-sP_7d_.js → react-DW03PVpd.js} +1 -1
- package/dist/assets/{react-D83iag70.js → react-DdvtD_V9.js} +1 -1
- package/dist/assets/{react-CNcx_TR6.js → react-DhBpDFIR.js} +1 -1
- package/dist/assets/{react-DgxhZd-z.js → react-eqWonw_S.js} +1 -1
- package/dist/assets/{recharts-Bc1ZLC_I.js → recharts-RPqam0Wx.js} +1 -1
- package/dist/assets/{routePaths-em7mZQJi.js → routePaths-Cr_t1xHP.js} +1 -1
- package/dist/assets/{sentry-D49LOZ1j.js → sentry-Cx_bjk1I.js} +1 -1
- package/dist/assets/{url-DR56GGlL.js → url-DTcdHmle.js} +1 -1
- package/dist/assets/{url-CmiyMP1N.js → url-TomWfXax.js} +1 -1
- package/dist/assets/{useAskAiCfoHostNavButtonProps-CjtZhD5y.js → useAskAiCfoHostNavButtonProps-BHH5iUyl.js} +1 -1
- package/dist/assets/{useDeviceId-204emeAp.js → useDeviceId-BYnqlZ2w.js} +1 -1
- package/dist/assets/{useFetchSuggestedQuestionsWhenReady-CM8iKDtd.js → useFetchSuggestedQuestionsWhenReady-Csr1Wwy2.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-CFG3lo7l.js → useInitialThreadRequest-B-1U2ylt.js} +1 -1
- package/dist/assets/{utils-RiJ_hKSI.js → utils-B5-1mb3v.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-BevSoIGb.js → withTransactionSidePanel-4Qi1EecU.js} +1 -1
- package/dist/assets/{zeni-epic-state-CZMuxCUG.js → zeni-epic-state-deE-VpAu.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/AddressRoutes-ph_CA4HZ.js +0 -1
- package/dist/assets/CustomerOnboardingAuthScreen-B4vyHJSH.js +0 -1
- package/dist/assets/NotFoundScreen-Bjx2V_hY.js +0 -1
- package/dist/assets/TransactionDetailRoutes-LD__juBl.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardRoutes-
|
|
2
|
-
import{_ as n,bn as os,eQ as ls,eW as cs,eU as ds,eV as ms,fF as us,eS as _s,cQ as Ee,cx as Es,fb as As,cp as ps,bE as Is,bq as xs,fg as gs,v as Ts,IT as hs,bv as js,IU as Us,bG as bs,fd as Hs,bF as Rs,bs as Ds,cl as ys,IV as fs,IW as Cs,cN as vs,cP as Os,cO as Ps,cw as Fs,cC as Ls,mx as Ae,eR as pe,fP as Bs,fk as Ie,fM as xe,fN as ge,fl as ks}from"./zeni-epic-state-CZMuxCUG.js";import{j as e}from"./liveblocks-FqlsN9l2.js";import{a as v}from"./sentry-D49LOZ1j.js";import{h as Vs,j as Ss,l as Ns,u as Ms,g as G,i as Te,N as c,n as Zs,o as t}from"./core-CjgV1pRV.js";import{m as ws,u as Gs,z as H,y as zs,a as $s,c as Ws,S as L,d as Ys,L as B,D as he,t as _,P as qs,e as X,l}from"./index-BcVOuC0n.js";import"./mui-DV0w8xOn.js";import{f as je}from"./analyticsHelper-1nvJW90-.js";import{t as Qs}from"./getLocaleForTenant-D5dw7iAh.js";import"./recharts-Bc1ZLC_I.js";import"./analytics-cU6JjHUB.js";import"./plaid-BkGpAOW9.js";import"./dnd-DHtwlo1Y.js";import"./stripe-DMRn4zHo.js";import"./lottie-wdoglqbL.js";import"./lexical-MibAVFD6.js";import"./pdf-FCPcIMVR.js";import"./utils-RiJ_hKSI.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},U=new i.Error().stack;U&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[U]="164a8179-d1f8-440b-9b0d-a8f4fd09d6d5",i._sentryDebugIdIdentifier="sentry-dbid-164a8179-d1f8-440b-9b0d-a8f4fd09d6d5")}catch{}})();const Js={dashboard:()=>n(()=>import("./DashboardRoutes-CIv9TwmX.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20])),bills:()=>n(()=>import("./BillPayRoutes-OhgtAqt5.js"),__vite__mapDeps([21,1,2,3,4,5,6,7,22,14,23,9,10,24,25,17,18,26,15,13,27,28,29,30,20])),reimbursement:()=>n(()=>import("./ReimbursementRoutes-CcnOfRVK.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,14,26,17,15,13,27,18,9,10,24,25,32,29,30,20])),transactions:()=>n(()=>import("./TransactionListRoutes-BhS0v3iK.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,34,20])),settings:()=>n(()=>import("./SettingsRoutes-C7bM-RTm.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,17,36,22,14,15,27,13,16,37,38,39,40,41,12,28,29,32,20])),reports:()=>n(()=>import("./ReportsRoutes-BSCnGMpO.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,14,18,10,24,13,17,20])),chargeCards:()=>n(()=>import("./ChargeCardRoutes-CC3rUcEx.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,26,17,14,15,13,27,9,10,22,20])),people:()=>n(()=>import("./PeopleRoutes-BKKvfS70.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,14,9,10,17,20])),expenseAutomation:()=>n(()=>import("./ExpenseAutomationRoutes-70ubL0r1.js"),__vite__mapDeps([45,1,2,3,14,4,5,6,7,9,10,11,12,13,8,36,25,20])),treasury:()=>n(()=>import("./TreasuryRoutes-Dde0CrN8.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,14,26,17,15,13,27,9,10,18,20])),vendors:()=>n(()=>import("./VendorsRoutes-CRJAC3dc.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,22,14,18,13,48,9,10,17,25,36,20])),zeniAccounts:()=>n(()=>import("./ZeniAccountRoutes-BPbGWjLj.js"),__vite__mapDeps([49,1,2,3,4,5,6,7,14,26,17,15,13,27,18,23,22,9,10,34,20]))},Ks=["bills","transactions","settings","reimbursement","reports","chargeCards","people"],ee=i=>{"requestIdleCallback"in window?requestIdleCallback(i):setTimeout(i,100)},Xs=l(()=>n(()=>import("./ReportsRoutes-BSCnGMpO.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,14,18,10,24,13,17,20]))),en=l(()=>n(()=>import("./AddressRoutes-ph_CA4HZ.js"),__vite__mapDeps([50,1,2,3,22,4,5,6,7,14,20]))),sn=l(()=>n(()=>import("./PeopleRoutes-BKKvfS70.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,14,9,10,17,20]))),nn=l(()=>n(()=>import("./PandLWithForecastRoutes-j7pNIg3t.js"),__vite__mapDeps([51,1,2,3,4,5,6,7,14,18,9,10,24,13,17,20]))),an=l(()=>n(()=>import("./CustomerOnboardingRoutes-oUdkgm9z.js"),__vite__mapDeps([52,1,2,3,22,4,5,6,7,14,37,38,39,40,41,12,20]))),tn=l(()=>n(()=>import("./VendorsRoutes-CRJAC3dc.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,22,14,18,13,48,9,10,17,25,36,20]))),rn=l(()=>n(()=>import("./TransactionDetailRoutes-LD__juBl.js"),__vite__mapDeps([53,1,2,3,14,4,5,6,7,11,9,10,12,13,20]))),Ue=l(()=>n(()=>import("./EntityDetailRoutes-DmfoaR8r.js"),__vite__mapDeps([54,1,2,3,4,5,6,7,12,8,9,10,11,13,20]))),on=l(()=>n(()=>import("./DashboardRoutes-CIv9TwmX.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]))),be=l(()=>n(()=>import("./BillPayRoutes-OhgtAqt5.js"),__vite__mapDeps([21,1,2,3,4,5,6,7,22,14,23,9,10,24,25,17,18,26,15,13,27,28,29,30,20]))),ln=l(()=>n(()=>import("./SettingsRoutes-C7bM-RTm.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,17,36,22,14,15,27,13,16,37,38,39,40,41,12,28,29,32,20]))),He=l(()=>n(()=>import("./ReimbursementRoutes-CcnOfRVK.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,14,26,17,15,13,27,18,9,10,24,25,32,29,30,20]))),cn=l(()=>n(()=>import("./ZeniAccountRoutes-BPbGWjLj.js"),__vite__mapDeps([49,1,2,3,4,5,6,7,14,26,17,15,13,27,18,23,22,9,10,34,20]))),dn=l(()=>n(()=>import("./TreasuryRoutes-Dde0CrN8.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,14,26,17,15,13,27,9,10,18,20]))),mn=l(()=>n(()=>import("./TransactionListRoutes-BhS0v3iK.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,34,20]))),un=l(()=>n(()=>import("./ChargeCardRoutes-CC3rUcEx.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,26,17,14,15,13,27,9,10,22,20]))),_n=l(()=>n(()=>import("./NotificationRoutes-DHzbPPiF.js"),__vite__mapDeps([55,1,2,3,14,4,5,6,7,9,10,20]))),En=l(()=>n(()=>import("./PerformanceRoutes-DSCVYWBr.js"),__vite__mapDeps([56,1,2,3,14,4,5,6,7,9,10,17,20]))),An=l(()=>n(()=>import("./ExpenseAutomationRoutes-70ubL0r1.js"),__vite__mapDeps([45,1,2,3,14,4,5,6,7,9,10,11,12,13,8,36,25,20]))),pn=l(()=>n(()=>import("./RewardsRoutes-SW6jGQWJ.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,14,19,9,10,17,20]))),In=l(()=>n(()=>import("./TaskRoutes-v8AsLlq0.js"),__vite__mapDeps([58,1,2,3,14,4,5,6,7,24,17,59,9,10,20]))),xn=l(()=>n(()=>import("./AiCfoScreen-DnNvzRXg.js"),__vite__mapDeps([60,1,2,3,4,5,6,7,48,20]))),y=l(()=>n(()=>import("./NotFoundScreen-Bjx2V_hY.js"),__vite__mapDeps([14,1,2,3,4,5,6,7,20]))),gn=l(()=>n(()=>import("./TaskListScreen-CUOhqgD-.js"),__vite__mapDeps([59,1,2,3,4,5,6,7,9,10,17,20])));function wn({setTenantEmailDomain:i}){const U=Vs(),V=Ss(),{tenantEmailDomain:o}=Ns(),S=ws().mode,{setLoading:f,clearAllLoading:O,clearLoading:Z}=Gs(),D=H.getSignedInUserTenant(o)?.tenantId,h=H.getSignedInUser(),Q=os(h),z=Ms(),[N,De]=v.useState(!1),r=G(a=>ls(a)),{useFeatureGate:P}=zs(),J=$s(),ye=Ws(),{isFeatureEnabled:fe}=P(L.isExpenseAutomationEnabled),{isFeatureEnabled:Ce}=P(L.isExpenseAutomationEnabledV2),ve=Ce||fe&&Q,{isFeatureEnabled:Oe}=P(L.isDepositAccountsFeatureEnabled),{isFeatureEnabled:Pe}=P(L.isTreasuryEnabled),{isFeatureEnabled:Fe}=P(L.isChargeCardFeatureEnabled),{isFeatureEnabled:se}=P(L.isDebitCardFeatureEnabled),j=G(a=>a.tenantState.fetchState),A=G(a=>a.tenantState.activeTenantFetchState.fetchState),u=A==="Completed"||j==="Completed"?cs(se,r):void 0,$=A==="Completed"||j==="Completed"?ds(r):void 0,Le=A==="Completed"||j==="Completed"?ms(r):void 0,Be=Fe||se||!!Le||!!$||!!u,{isFeatureEnabled:ke}=P(L.isSettingsFeatureEnabled),{isFeatureEnabled:Ve}=P(L.isAiCfoFileUploadEnabled),W=G(a=>us(a));if(o!=null){const a=H.getSignedInUserTenant(o);h!=null&&a!=null&&je(h,r,S)}const w={tenantId:D,userId:h?.userId,sessionId:h?.zeniSessionId},ne=_s(),E=Ys(),Se=r.company==null||E?.loggedInUserRoleMap!=null&&Ee(E.loggedInUserRole),Ne=Es(E?.loggedInUserRoleMap),ae=v.useRef(!0),te=Te("/:tenantEmailDomain/onboarding/*")!==null,K=Te("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*"),Me=G(a=>w.tenantId!=null?As(a,w.tenantId):void 0);v.useEffect(()=>{f(B.TENANT_FETCHING),i(o)},[o]),v.useEffect(()=>{if(K!=null&&D!=null){const a=K.params.selectedPeriod;if(a!=null){const b=a.split("-");if(b.length===2){const d=ps(Number(b[0])),s=Number(b[1]),m=Is(`01-${d<10?`0${d}`:d}-${s}`,he.getLocalizedStrings().dateFormat.analytics.DDDashMMDashYYYY),M=xs();m.isAfter(M,"month")===!1?U(gs(D,{month:d,year:s})):V("./month_end_close_checks/review")}}}},[K,D]),v.useEffect(()=>{N||(De(!0),f(B.TENANT_FETCHING)),ae.current?ae.current=!1:!Ts(ne,w)&&H.isSignedIn()&&(f(B.TENANT_FETCHING),function(a,b,d,s){if(pe(b?.userId,b?.zeniSessionId,a.tenantId),d(Bs(!0)),d(Ie(a.tenantId)),a.tenantId!=null&&_.clearTenant(a.tenantId),a.tenantId!=null){const m=H.getSignedInUserTenantWithId(a.tenantId);s&&he.updateAppLocaleID(Qs(s)),m?.tenantEmailDomain!=null&&H.saveActiveTenantDomainForUser(m?.tenantEmailDomain)}a.userId!=null?X.identify(a.userId,{tenant_id:a.tenantId}):X.resetUserIdentity()}(w,h,U,Me))},[w,ne,h,U,H]),v.useEffect(()=>{H.isSignedIn()&&(f(B.TENANT_FETCHING),function(a,b,d,s,m,M,k){if(d==null&&s==null)return void console.warn("There is no current tenant selected!!");const Y=s!=null&&m?.zeniSessionId!=null,ts=d==null||d.tenantId!==s,is=d!=null&&d.excludedResources==null,rs=d!=null&&d.externalConnections==null;if(Y&&ts){k(Ie(s));const q=H.getSignedInUserTenantWithId(s);q?.tenantEmailDomain!=null&&H.saveActiveTenantDomainForUser(q?.tenantEmailDomain),pe(m?.userId,m?.zeniSessionId,s),_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),k(xe(m.userId,s))),_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),k(ge(m.userId,s)))}else Y&&is&&_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),k(xe(m.userId,s))),Y&&rs&&_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),k(ge(m.userId,s)));if(Y){X.identify(m.userId,{tenant_id:s});const q=s==null||s!=null&&(b==="Completed"||b==="Error");a==="Completed"||b!=="Not-Started"&&b!=="Error"||s==null||!_.shouldFetchActiveTenant(s)||(_.markActiveTenantFetchStarted(s),M(B.TENANT_FETCHING),k(ks(m.userId,s,m.zeniSessionId))),q&&(a==="Not-Started"||a==="Error")&&_.shouldFetchAllTenants()&&(_.markAllTenantsFetchStarted(),k(Ae(m.userId,m.zeniSessionId)))}}(j,A,r,D,h,f,U))},[D,A]),v.useEffect(()=>{H.isSignedIn()&&j==="Completed"&&W.tenantsBaseInOrder.length>0&&(Z(B.TENANT_FETCHING),H.saveSignedInUserTenants(hs(W.tenantsBaseInOrder)),h!=null&&je(h,r,S,void 0,W.tenantsBaseInOrder))},[W,j,r,h]),v.useEffect(()=>{A==="In-Progress"&&f(B.TENANT_FETCHING),A!=="Completed"&&A!=="Error"||(A==="Completed"&&D!=null?(O(),_.markActiveTenantFetchCompleted(D)):A==="Error"&&D!=null&&(_.markActiveTenantFetchFailed(D),Z(B.TENANT_FETCHING),Z(B.TENANT_SWITCHING))),j!=="Completed"&&j!=="Error"||(j==="Completed"?_.markAllTenantsFetchCompleted():j==="Error"&&_.markAllTenantsFetchFailed())},[A,j,D,N]);const ie=v.useRef(!1);v.useEffect(()=>{!ie.current&&A==="Completed"&&N&&(ie.current=!0,function(a=Ks,b=3e3){setTimeout(()=>{const d=s=>{if(s>=a.length)return;const m=a[s],M=Js[m];M!=null?M().then(()=>ee(()=>d(s+1))).catch(()=>ee(()=>d(s+1))):d(s+1)};ee(()=>d(0))},b)}())},[A,N]);const C=r?.userRole!=null&&js(r?.userRole),{isFeatureEnabled:Ze}=P(L.isReferralFeatureEnabled),we=r?.userRole!=null&&r.userRole.includes("charge_card_user"),Ge=r?.userRole!=null&&r.userRole.includes("charge_card_admin"),F=r?.userRole!=null&&Ee(r.userRole),re=r?.company==null||r.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!C,oe=Be&&!C,ze=Us(E?.loggedInUserRoleMap),$e=r.externalConnections?.accounting[0]?.isValid,le=r.company?.companyOnboardingInfo.isOnboardingCompleted,ce=r?.company==null||r.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!C,de=ce&&bs(E?.loggedInUserRoleMap),me=Oe&&!C,We=r.company!=null&&Hs(r.company),Ye=Pe&&We===!0&&!C,qe=re&&Rs(E?.loggedInUserRoleMap),Qe=oe&&Ds(E?.loggedInUserRoleMap),Je=me&&ys(E?.loggedInUserRoleMap),Ke=fs(E?.loggedInUserRoleMap),Xe=Cs(E?.loggedInUserRoleMap),p=vs(E?.loggedInUserRoleMap),I=Os(E?.loggedInUserRoleMap),x=Ps(E?.loggedInUserRoleMap),g=Fs(E?.loggedInUserRoleMap),T=Ls(E?.loggedInUserRoleMap),ue=re&&g,_e=ce&&T,es=me&&p,ss=Ye&&I,ns=oe&&x,as=r.excludedResources?.resources?.find(a=>a.resource==="/invites")!=null||Ne===!0||ze===!0||Ke===!0||Xe===!0;return H.isSignedIn()?D==null?j==="Completed"?e.jsx(c,{to:"/",replace:!0,state:{...z.state,message:"...",origin:z.pathname}}):(h!=null&&j!=="In-Progress"&&U(Ae(h.userId,h.zeniSessionId)),null):A!=="In-Progress"&&A!=="Not-Started"||j==="Completed"?(le===!0||Q&&!te)&&$e===!1&&u===!1&&$===!1?(i(void 0),e.jsx(c,{to:"/connection/auth",replace:!0})):!N||le!==!1||te||Q?N&&r?.userRole&&u!=null&&$!=null&&o!=null&&Object.keys(E.loggedInUserRoleMap).length>0?e.jsx(Zs,{children:e.jsxs(t,{element:e.jsx(qs,{}),children:[e.jsx(t,{path:"/",element:e.jsx(Tn,{isDashboardAccess:F,isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,isTenantCardsOnly:$})}),e.jsx(t,{path:"dashboard/*",element:F?e.jsx(on,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reports/*",element:F?e.jsx(Xs,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"people/*",element:as||F?e.jsx(sn,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"forecast/*",element:F?e.jsx(nn,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"onboarding/*",element:e.jsx(an,{})}),e.jsx(t,{path:"transaction/*",element:F&&C===!1||we||Ge?e.jsx(rn,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"transactions/*",element:F&&C===!1?e.jsx(mn,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"customer/*",element:F&&C===!1?e.jsx(Ue,{entityType:"customer"}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isTenantBankingOnly:u,isUserHasTreasuryAccess:I,tenantEmailDomain:o})}),e.jsx(t,{path:"vendor/*",element:F&&C===!1?e.jsx(Ue,{entityType:"vendor"}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"tasks",element:e.jsx(gn,{})}),e.jsx(t,{path:"tasks/*",element:e.jsx(In,{})}),e.jsx(t,{path:"address/*",element:qe||de||Je||Qe?e.jsx(en,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"checking/*",element:es?e.jsx(cn,{}):e.jsx(y,{})}),e.jsx(t,{path:"treasury/*",element:ss?e.jsx(dn,{}):e.jsx(y,{})}),e.jsx(t,{path:"performance",element:ye?e.jsx(En,{}):e.jsx(Re,{tenantEmailDomain:o})}),e.jsx(t,{path:"month_end_close_checks/review/*",element:ve&&C===!1?e.jsx(An,{}):e.jsx(Re,{tenantEmailDomain:o})}),e.jsx(t,{path:"notifications/*",element:e.jsx(_n,{})}),e.jsx(t,{path:"vendors/*",element:Se?e.jsx(tn,{}):e.jsx(y,{})}),e.jsx(t,{path:"bill/*",element:ue?e.jsx(be,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"bills/*",element:ue?e.jsx(be,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursement/*",element:_e?e.jsx(He,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursements/*",element:_e?e.jsx(He,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"settings/*",element:ke?e.jsx(ln,{hasAdminLevelAccess:de}):e.jsx(y,{})}),e.jsx(t,{path:"cards/*",element:ns?e.jsx(un,{}):e.jsx(y,{})}),e.jsx(t,{path:"rewards/*",element:Ze?e.jsx(pn,{}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo",element:J?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/",element:J?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/:session_id",element:J?e.jsx(xn,{isFileUploadEnabled:Ve}):e.jsx(y,{})}),e.jsx(t,{path:"*",element:e.jsx(y,{})})]})}):null:(i(void 0),e.jsx(c,{to:"onboarding",replace:!0})):null:(console.warn("User logged out!!"),i(void 0),e.jsx(c,{to:"/signin/auth",replace:!0,state:{...z.state,message:"...",origin:z.pathname}}))}const Tn=({isDashboardAccess:i,isUserHasZeniAccountsAccess:U,isUserHasChargeCardAccess:V,isUserHasBillPayAccess:o,isUserHasReimbursementAccess:S,isUserHasTreasuryAccess:f,isTenantBankingOnly:O,isTenantCardsOnly:Z})=>O===!0&&U?e.jsx(c,{to:"checking"}):Z===!0?e.jsx(c,{to:"cards"}):i?e.jsx(c,{to:"dashboard"}):U?e.jsx(c,{to:"checking"}):f?e.jsx(c,{to:"treasury"}):V?e.jsx(c,{to:"cards"}):o?e.jsx(c,{to:"bills"}):S?e.jsx(c,{to:"reimbursements"}):e.jsx(c,{to:"dashboard"}),R=({isUserHasZeniAccountsAccess:i,isUserHasChargeCardAccess:U,isUserHasBillPayAccess:V,isUserHasReimbursementAccess:o,isUserHasTreasuryAccess:S,isTenantBankingOnly:f,tenantEmailDomain:O})=>f===!0||i?e.jsx(bn,{tenantEmailDomain:O}):S?e.jsx(Un,{tenantEmailDomain:O}):U?e.jsx(Hn,{tenantEmailDomain:O}):V?e.jsx(jn,{tenantEmailDomain:O}):o?e.jsx(hn,{tenantEmailDomain:O}):e.jsx(y,{}),hn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/reimbursements`}),jn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/bills`}),Un=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/treasury`}),bn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/checking`}),Hn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/cards`}),Re=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/dashboard`});export{R as FallBackRoute,wn as default};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardRoutes-W9H9Wk5O.js","assets/sentry-Cx_bjk1I.js","assets/core-aR0qKEiV.js","assets/zeni-epic-state-deE-VpAu.js","assets/index-Cy593RGQ.js","assets/mui-BY8zvgs4.js","assets/analytics-DyMyvTxh.js","assets/utils-B5-1mb3v.js","assets/withTransactionSidePanel-4Qi1EecU.js","assets/useAskAiCfoHostNavButtonProps-BHH5iUyl.js","assets/useFetchSuggestedQuestionsWhenReady-Csr1Wwy2.js","assets/TransactionDetailScreen-CxbLldkU.js","assets/decodeURIComponentSafe-imXO9fsR.js","assets/routePaths-Cr_t1xHP.js","assets/NotFoundScreen-YKkxofho.js","assets/analyticsHelper-DN-X1P8T.js","assets/CompanyPassportScreen-D6yPFCfS.js","assets/MobileAppDrawer-CuP4fq1B.js","assets/FeaturePreviewScreen-IL56yObW.js","assets/ReferralListScreen-vfg1s_YP.js","assets/index-Bc34frN_.css","assets/BillPayRoutes-DcPzz5vY.js","assets/AddressScreen-BvMQB8FF.js","assets/DomesticWireDetailScreen-D0UoKqzj.js","assets/useInitialThreadRequest-B-1U2ylt.js","assets/DrawerScreen-DTAMBHDh.js","assets/SetupPagesScreen-DeN_QNf8.js","assets/BusinessVerificationPageScreen-x0C706ZJ.js","assets/BillPayApprovalRoutes-BqycijzY.js","assets/ReimbursementApprovalRuleDetailScreen-Bbsz8QQ6.js","assets/getLocaleForTenant-DhBtn3Ee.js","assets/ReimbursementRoutes-B5Sw13Ed.js","assets/ReimbursementApprovalRoutes-jiOOsHvW.js","assets/TransactionListRoutes-CasY9nUL.js","assets/ZeniAccountStatementScreen-BRW8WxDR.js","assets/SettingsRoutes-Dv_Ka7i6.js","assets/accountMappingHelper-4acz-SwQ.js","assets/QBOConnectionScreen-DOLdLoS0.js","assets/empty-DcODLT1b.js","assets/index-ChczZgz4.js","assets/url-DTcdHmle.js","assets/index-B7d7MSWD.js","assets/ReportsRoutes-LZJ0MKKr.js","assets/ChargeCardRoutes-BZN_rT-F.js","assets/PeopleRoutes-DYVLissD.js","assets/ExpenseAutomationRoutes-C8rYvumd.js","assets/TreasuryRoutes-BWDk7gT_.js","assets/VendorsRoutes-nJ4B-tBU.js","assets/pathToGoBack-BgMfa4Fs.js","assets/ZeniAccountRoutes-DyN4j1Qq.js","assets/AddressRoutes-BTrd57s2.js","assets/PandLWithForecastRoutes-DLv_fyFO.js","assets/CustomerOnboardingRoutes-BGlngZ6e.js","assets/TransactionDetailRoutes-DY2UJC6b.js","assets/EntityDetailRoutes-CwZL3vFL.js","assets/NotificationRoutes-Bg72dHqS.js","assets/PerformanceRoutes-CGjcWKBJ.js","assets/RewardsRoutes-D5g_M2XG.js","assets/TaskRoutes-B2WWoSAP.js","assets/TaskListScreen-BwXGWL1j.js","assets/AiCfoScreen-DNmotkk5.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as n,bn as os,eQ as ls,eW as cs,eU as ds,eV as ms,fF as us,eS as _s,cQ as Ee,cx as Es,fb as As,cp as ps,bE as Is,bq as xs,fg as gs,v as Ts,IT as hs,bv as js,IU as Us,bG as bs,fd as Hs,bF as Rs,bs as Ds,cl as ys,IV as fs,IW as Cs,cN as vs,cP as Os,cO as Ps,cw as Fs,cC as Ls,mx as Ae,eR as pe,fP as Bs,fk as Ie,fM as xe,fN as ge,fl as ks}from"./zeni-epic-state-deE-VpAu.js";import{j as e}from"./liveblocks-CLqAhud6.js";import{a as v}from"./sentry-Cx_bjk1I.js";import{h as Vs,j as Ss,l as Ns,u as Ms,g as G,i as Te,N as c,n as Zs,o as t}from"./core-aR0qKEiV.js";import{m as ws,u as Gs,z as H,y as zs,a as $s,c as Ws,S as L,d as Ys,L as B,D as he,t as _,P as qs,e as X,l}from"./index-Cy593RGQ.js";import"./mui-BY8zvgs4.js";import{f as je}from"./analyticsHelper-DN-X1P8T.js";import{t as Qs}from"./getLocaleForTenant-DhBtn3Ee.js";import"./recharts-RPqam0Wx.js";import"./analytics-DyMyvTxh.js";import"./plaid-BgClSQ5E.js";import"./dnd-CZ0pE10o.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bz1bpTt2.js";import"./lexical-oQNXHxEc.js";import"./pdf-DGbhE1eo.js";import"./utils-B5-1mb3v.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},U=new i.Error().stack;U&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[U]="164a8179-d1f8-440b-9b0d-a8f4fd09d6d5",i._sentryDebugIdIdentifier="sentry-dbid-164a8179-d1f8-440b-9b0d-a8f4fd09d6d5")}catch{}})();const Js={dashboard:()=>n(()=>import("./DashboardRoutes-W9H9Wk5O.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20])),bills:()=>n(()=>import("./BillPayRoutes-DcPzz5vY.js"),__vite__mapDeps([21,1,2,3,4,5,6,7,22,14,23,9,10,24,25,17,18,26,15,13,27,28,29,30,20])),reimbursement:()=>n(()=>import("./ReimbursementRoutes-B5Sw13Ed.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,14,26,17,15,13,27,18,9,10,24,25,32,29,30,20])),transactions:()=>n(()=>import("./TransactionListRoutes-CasY9nUL.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,34,20])),settings:()=>n(()=>import("./SettingsRoutes-Dv_Ka7i6.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,17,36,22,14,15,27,13,16,37,38,39,40,41,12,28,29,32,20])),reports:()=>n(()=>import("./ReportsRoutes-LZJ0MKKr.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,14,18,10,24,13,17,20])),chargeCards:()=>n(()=>import("./ChargeCardRoutes-BZN_rT-F.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,26,17,14,15,13,27,9,10,22,20])),people:()=>n(()=>import("./PeopleRoutes-DYVLissD.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,14,9,10,17,20])),expenseAutomation:()=>n(()=>import("./ExpenseAutomationRoutes-C8rYvumd.js"),__vite__mapDeps([45,1,2,3,14,4,5,6,7,9,10,11,12,13,8,36,25,20])),treasury:()=>n(()=>import("./TreasuryRoutes-BWDk7gT_.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,14,26,17,15,13,27,9,10,18,20])),vendors:()=>n(()=>import("./VendorsRoutes-nJ4B-tBU.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,22,14,18,13,48,9,10,17,25,36,20])),zeniAccounts:()=>n(()=>import("./ZeniAccountRoutes-DyN4j1Qq.js"),__vite__mapDeps([49,1,2,3,4,5,6,7,14,26,17,15,13,27,18,23,22,9,10,34,20]))},Ks=["bills","transactions","settings","reimbursement","reports","chargeCards","people"],ee=i=>{"requestIdleCallback"in window?requestIdleCallback(i):setTimeout(i,100)},Xs=l(()=>n(()=>import("./ReportsRoutes-LZJ0MKKr.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,14,18,10,24,13,17,20]))),en=l(()=>n(()=>import("./AddressRoutes-BTrd57s2.js"),__vite__mapDeps([50,1,2,3,22,4,5,6,7,14,20]))),sn=l(()=>n(()=>import("./PeopleRoutes-DYVLissD.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,14,9,10,17,20]))),nn=l(()=>n(()=>import("./PandLWithForecastRoutes-DLv_fyFO.js"),__vite__mapDeps([51,1,2,3,4,5,6,7,14,18,9,10,24,13,17,20]))),an=l(()=>n(()=>import("./CustomerOnboardingRoutes-BGlngZ6e.js"),__vite__mapDeps([52,1,2,3,22,4,5,6,7,14,37,38,39,40,41,12,20]))),tn=l(()=>n(()=>import("./VendorsRoutes-nJ4B-tBU.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,22,14,18,13,48,9,10,17,25,36,20]))),rn=l(()=>n(()=>import("./TransactionDetailRoutes-DY2UJC6b.js"),__vite__mapDeps([53,1,2,3,14,4,5,6,7,11,9,10,12,13,20]))),Ue=l(()=>n(()=>import("./EntityDetailRoutes-CwZL3vFL.js"),__vite__mapDeps([54,1,2,3,4,5,6,7,12,8,9,10,11,13,20]))),on=l(()=>n(()=>import("./DashboardRoutes-W9H9Wk5O.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]))),be=l(()=>n(()=>import("./BillPayRoutes-DcPzz5vY.js"),__vite__mapDeps([21,1,2,3,4,5,6,7,22,14,23,9,10,24,25,17,18,26,15,13,27,28,29,30,20]))),ln=l(()=>n(()=>import("./SettingsRoutes-Dv_Ka7i6.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,17,36,22,14,15,27,13,16,37,38,39,40,41,12,28,29,32,20]))),He=l(()=>n(()=>import("./ReimbursementRoutes-B5Sw13Ed.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,14,26,17,15,13,27,18,9,10,24,25,32,29,30,20]))),cn=l(()=>n(()=>import("./ZeniAccountRoutes-DyN4j1Qq.js"),__vite__mapDeps([49,1,2,3,4,5,6,7,14,26,17,15,13,27,18,23,22,9,10,34,20]))),dn=l(()=>n(()=>import("./TreasuryRoutes-BWDk7gT_.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,14,26,17,15,13,27,9,10,18,20]))),mn=l(()=>n(()=>import("./TransactionListRoutes-CasY9nUL.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,34,20]))),un=l(()=>n(()=>import("./ChargeCardRoutes-BZN_rT-F.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,26,17,14,15,13,27,9,10,22,20]))),_n=l(()=>n(()=>import("./NotificationRoutes-Bg72dHqS.js"),__vite__mapDeps([55,1,2,3,14,4,5,6,7,9,10,20]))),En=l(()=>n(()=>import("./PerformanceRoutes-CGjcWKBJ.js"),__vite__mapDeps([56,1,2,3,14,4,5,6,7,9,10,17,20]))),An=l(()=>n(()=>import("./ExpenseAutomationRoutes-C8rYvumd.js"),__vite__mapDeps([45,1,2,3,14,4,5,6,7,9,10,11,12,13,8,36,25,20]))),pn=l(()=>n(()=>import("./RewardsRoutes-D5g_M2XG.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,14,19,9,10,17,20]))),In=l(()=>n(()=>import("./TaskRoutes-B2WWoSAP.js"),__vite__mapDeps([58,1,2,3,14,4,5,6,7,24,17,59,9,10,20]))),xn=l(()=>n(()=>import("./AiCfoScreen-DNmotkk5.js"),__vite__mapDeps([60,1,2,3,4,5,6,7,48,20]))),y=l(()=>n(()=>import("./NotFoundScreen-YKkxofho.js"),__vite__mapDeps([14,1,2,3,4,5,6,7,20]))),gn=l(()=>n(()=>import("./TaskListScreen-BwXGWL1j.js"),__vite__mapDeps([59,1,2,3,4,5,6,7,9,10,17,20])));function wn({setTenantEmailDomain:i}){const U=Vs(),V=Ss(),{tenantEmailDomain:o}=Ns(),S=ws().mode,{setLoading:f,clearAllLoading:O,clearLoading:Z}=Gs(),D=H.getSignedInUserTenant(o)?.tenantId,h=H.getSignedInUser(),Q=os(h),z=Ms(),[N,De]=v.useState(!1),r=G(a=>ls(a)),{useFeatureGate:P}=zs(),J=$s(),ye=Ws(),{isFeatureEnabled:fe}=P(L.isExpenseAutomationEnabled),{isFeatureEnabled:Ce}=P(L.isExpenseAutomationEnabledV2),ve=Ce||fe&&Q,{isFeatureEnabled:Oe}=P(L.isDepositAccountsFeatureEnabled),{isFeatureEnabled:Pe}=P(L.isTreasuryEnabled),{isFeatureEnabled:Fe}=P(L.isChargeCardFeatureEnabled),{isFeatureEnabled:se}=P(L.isDebitCardFeatureEnabled),j=G(a=>a.tenantState.fetchState),A=G(a=>a.tenantState.activeTenantFetchState.fetchState),u=A==="Completed"||j==="Completed"?cs(se,r):void 0,$=A==="Completed"||j==="Completed"?ds(r):void 0,Le=A==="Completed"||j==="Completed"?ms(r):void 0,Be=Fe||se||!!Le||!!$||!!u,{isFeatureEnabled:ke}=P(L.isSettingsFeatureEnabled),{isFeatureEnabled:Ve}=P(L.isAiCfoFileUploadEnabled),W=G(a=>us(a));if(o!=null){const a=H.getSignedInUserTenant(o);h!=null&&a!=null&&je(h,r,S)}const w={tenantId:D,userId:h?.userId,sessionId:h?.zeniSessionId},ne=_s(),E=Ys(),Se=r.company==null||E?.loggedInUserRoleMap!=null&&Ee(E.loggedInUserRole),Ne=Es(E?.loggedInUserRoleMap),ae=v.useRef(!0),te=Te("/:tenantEmailDomain/onboarding/*")!==null,K=Te("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*"),Me=G(a=>w.tenantId!=null?As(a,w.tenantId):void 0);v.useEffect(()=>{f(B.TENANT_FETCHING),i(o)},[o]),v.useEffect(()=>{if(K!=null&&D!=null){const a=K.params.selectedPeriod;if(a!=null){const b=a.split("-");if(b.length===2){const d=ps(Number(b[0])),s=Number(b[1]),m=Is(`01-${d<10?`0${d}`:d}-${s}`,he.getLocalizedStrings().dateFormat.analytics.DDDashMMDashYYYY),M=xs();m.isAfter(M,"month")===!1?U(gs(D,{month:d,year:s})):V("./month_end_close_checks/review")}}}},[K,D]),v.useEffect(()=>{N||(De(!0),f(B.TENANT_FETCHING)),ae.current?ae.current=!1:!Ts(ne,w)&&H.isSignedIn()&&(f(B.TENANT_FETCHING),function(a,b,d,s){if(pe(b?.userId,b?.zeniSessionId,a.tenantId),d(Bs(!0)),d(Ie(a.tenantId)),a.tenantId!=null&&_.clearTenant(a.tenantId),a.tenantId!=null){const m=H.getSignedInUserTenantWithId(a.tenantId);s&&he.updateAppLocaleID(Qs(s)),m?.tenantEmailDomain!=null&&H.saveActiveTenantDomainForUser(m?.tenantEmailDomain)}a.userId!=null?X.identify(a.userId,{tenant_id:a.tenantId}):X.resetUserIdentity()}(w,h,U,Me))},[w,ne,h,U,H]),v.useEffect(()=>{H.isSignedIn()&&(f(B.TENANT_FETCHING),function(a,b,d,s,m,M,k){if(d==null&&s==null)return void console.warn("There is no current tenant selected!!");const Y=s!=null&&m?.zeniSessionId!=null,ts=d==null||d.tenantId!==s,is=d!=null&&d.excludedResources==null,rs=d!=null&&d.externalConnections==null;if(Y&&ts){k(Ie(s));const q=H.getSignedInUserTenantWithId(s);q?.tenantEmailDomain!=null&&H.saveActiveTenantDomainForUser(q?.tenantEmailDomain),pe(m?.userId,m?.zeniSessionId,s),_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),k(xe(m.userId,s))),_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),k(ge(m.userId,s)))}else Y&&is&&_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),k(xe(m.userId,s))),Y&&rs&&_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),k(ge(m.userId,s)));if(Y){X.identify(m.userId,{tenant_id:s});const q=s==null||s!=null&&(b==="Completed"||b==="Error");a==="Completed"||b!=="Not-Started"&&b!=="Error"||s==null||!_.shouldFetchActiveTenant(s)||(_.markActiveTenantFetchStarted(s),M(B.TENANT_FETCHING),k(ks(m.userId,s,m.zeniSessionId))),q&&(a==="Not-Started"||a==="Error")&&_.shouldFetchAllTenants()&&(_.markAllTenantsFetchStarted(),k(Ae(m.userId,m.zeniSessionId)))}}(j,A,r,D,h,f,U))},[D,A]),v.useEffect(()=>{H.isSignedIn()&&j==="Completed"&&W.tenantsBaseInOrder.length>0&&(Z(B.TENANT_FETCHING),H.saveSignedInUserTenants(hs(W.tenantsBaseInOrder)),h!=null&&je(h,r,S,void 0,W.tenantsBaseInOrder))},[W,j,r,h]),v.useEffect(()=>{A==="In-Progress"&&f(B.TENANT_FETCHING),A!=="Completed"&&A!=="Error"||(A==="Completed"&&D!=null?(O(),_.markActiveTenantFetchCompleted(D)):A==="Error"&&D!=null&&(_.markActiveTenantFetchFailed(D),Z(B.TENANT_FETCHING),Z(B.TENANT_SWITCHING))),j!=="Completed"&&j!=="Error"||(j==="Completed"?_.markAllTenantsFetchCompleted():j==="Error"&&_.markAllTenantsFetchFailed())},[A,j,D,N]);const ie=v.useRef(!1);v.useEffect(()=>{!ie.current&&A==="Completed"&&N&&(ie.current=!0,function(a=Ks,b=3e3){setTimeout(()=>{const d=s=>{if(s>=a.length)return;const m=a[s],M=Js[m];M!=null?M().then(()=>ee(()=>d(s+1))).catch(()=>ee(()=>d(s+1))):d(s+1)};ee(()=>d(0))},b)}())},[A,N]);const C=r?.userRole!=null&&js(r?.userRole),{isFeatureEnabled:Ze}=P(L.isReferralFeatureEnabled),we=r?.userRole!=null&&r.userRole.includes("charge_card_user"),Ge=r?.userRole!=null&&r.userRole.includes("charge_card_admin"),F=r?.userRole!=null&&Ee(r.userRole),re=r?.company==null||r.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!C,oe=Be&&!C,ze=Us(E?.loggedInUserRoleMap),$e=r.externalConnections?.accounting[0]?.isValid,le=r.company?.companyOnboardingInfo.isOnboardingCompleted,ce=r?.company==null||r.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!C,de=ce&&bs(E?.loggedInUserRoleMap),me=Oe&&!C,We=r.company!=null&&Hs(r.company),Ye=Pe&&We===!0&&!C,qe=re&&Rs(E?.loggedInUserRoleMap),Qe=oe&&Ds(E?.loggedInUserRoleMap),Je=me&&ys(E?.loggedInUserRoleMap),Ke=fs(E?.loggedInUserRoleMap),Xe=Cs(E?.loggedInUserRoleMap),p=vs(E?.loggedInUserRoleMap),I=Os(E?.loggedInUserRoleMap),x=Ps(E?.loggedInUserRoleMap),g=Fs(E?.loggedInUserRoleMap),T=Ls(E?.loggedInUserRoleMap),ue=re&&g,_e=ce&&T,es=me&&p,ss=Ye&&I,ns=oe&&x,as=r.excludedResources?.resources?.find(a=>a.resource==="/invites")!=null||Ne===!0||ze===!0||Ke===!0||Xe===!0;return H.isSignedIn()?D==null?j==="Completed"?e.jsx(c,{to:"/",replace:!0,state:{...z.state,message:"...",origin:z.pathname}}):(h!=null&&j!=="In-Progress"&&U(Ae(h.userId,h.zeniSessionId)),null):A!=="In-Progress"&&A!=="Not-Started"||j==="Completed"?(le===!0||Q&&!te)&&$e===!1&&u===!1&&$===!1?(i(void 0),e.jsx(c,{to:"/connection/auth",replace:!0})):!N||le!==!1||te||Q?N&&r?.userRole&&u!=null&&$!=null&&o!=null&&Object.keys(E.loggedInUserRoleMap).length>0?e.jsx(Zs,{children:e.jsxs(t,{element:e.jsx(qs,{}),children:[e.jsx(t,{path:"/",element:e.jsx(Tn,{isDashboardAccess:F,isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,isTenantCardsOnly:$})}),e.jsx(t,{path:"dashboard/*",element:F?e.jsx(on,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reports/*",element:F?e.jsx(Xs,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"people/*",element:as||F?e.jsx(sn,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"forecast/*",element:F?e.jsx(nn,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"onboarding/*",element:e.jsx(an,{})}),e.jsx(t,{path:"transaction/*",element:F&&C===!1||we||Ge?e.jsx(rn,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"transactions/*",element:F&&C===!1?e.jsx(mn,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"customer/*",element:F&&C===!1?e.jsx(Ue,{entityType:"customer"}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isTenantBankingOnly:u,isUserHasTreasuryAccess:I,tenantEmailDomain:o})}),e.jsx(t,{path:"vendor/*",element:F&&C===!1?e.jsx(Ue,{entityType:"vendor"}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"tasks",element:e.jsx(gn,{})}),e.jsx(t,{path:"tasks/*",element:e.jsx(In,{})}),e.jsx(t,{path:"address/*",element:qe||de||Je||Qe?e.jsx(en,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"checking/*",element:es?e.jsx(cn,{}):e.jsx(y,{})}),e.jsx(t,{path:"treasury/*",element:ss?e.jsx(dn,{}):e.jsx(y,{})}),e.jsx(t,{path:"performance",element:ye?e.jsx(En,{}):e.jsx(Re,{tenantEmailDomain:o})}),e.jsx(t,{path:"month_end_close_checks/review/*",element:ve&&C===!1?e.jsx(An,{}):e.jsx(Re,{tenantEmailDomain:o})}),e.jsx(t,{path:"notifications/*",element:e.jsx(_n,{})}),e.jsx(t,{path:"vendors/*",element:Se?e.jsx(tn,{}):e.jsx(y,{})}),e.jsx(t,{path:"bill/*",element:ue?e.jsx(be,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"bills/*",element:ue?e.jsx(be,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursement/*",element:_e?e.jsx(He,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursements/*",element:_e?e.jsx(He,{}):e.jsx(R,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:x,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"settings/*",element:ke?e.jsx(ln,{hasAdminLevelAccess:de}):e.jsx(y,{})}),e.jsx(t,{path:"cards/*",element:ns?e.jsx(un,{}):e.jsx(y,{})}),e.jsx(t,{path:"rewards/*",element:Ze?e.jsx(pn,{}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo",element:J?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/",element:J?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/:session_id",element:J?e.jsx(xn,{isFileUploadEnabled:Ve}):e.jsx(y,{})}),e.jsx(t,{path:"*",element:e.jsx(y,{})})]})}):null:(i(void 0),e.jsx(c,{to:"onboarding",replace:!0})):null:(console.warn("User logged out!!"),i(void 0),e.jsx(c,{to:"/signin/auth",replace:!0,state:{...z.state,message:"...",origin:z.pathname}}))}const Tn=({isDashboardAccess:i,isUserHasZeniAccountsAccess:U,isUserHasChargeCardAccess:V,isUserHasBillPayAccess:o,isUserHasReimbursementAccess:S,isUserHasTreasuryAccess:f,isTenantBankingOnly:O,isTenantCardsOnly:Z})=>O===!0&&U?e.jsx(c,{to:"checking"}):Z===!0?e.jsx(c,{to:"cards"}):i?e.jsx(c,{to:"dashboard"}):U?e.jsx(c,{to:"checking"}):f?e.jsx(c,{to:"treasury"}):V?e.jsx(c,{to:"cards"}):o?e.jsx(c,{to:"bills"}):S?e.jsx(c,{to:"reimbursements"}):e.jsx(c,{to:"dashboard"}),R=({isUserHasZeniAccountsAccess:i,isUserHasChargeCardAccess:U,isUserHasBillPayAccess:V,isUserHasReimbursementAccess:o,isUserHasTreasuryAccess:S,isTenantBankingOnly:f,tenantEmailDomain:O})=>f===!0||i?e.jsx(bn,{tenantEmailDomain:O}):S?e.jsx(Un,{tenantEmailDomain:O}):U?e.jsx(Hn,{tenantEmailDomain:O}):V?e.jsx(jn,{tenantEmailDomain:O}):o?e.jsx(hn,{tenantEmailDomain:O}):e.jsx(y,{}),hn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/reimbursements`}),jn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/bills`}),Un=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/treasury`}),bn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/checking`}),Hn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/cards`}),Re=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/dashboard`});export{R as FallBackRoute,wn as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-
|
|
1
|
+
import{j as a}from"./liveblocks-CLqAhud6.js";import{a as p}from"./sentry-Cx_bjk1I.js";import{j as _,u as R,h as v,g as h,k as T,l as F,n as Q,o as C}from"./core-aR0qKEiV.js";import{bn as xe,eQ as j,gI as de,KZ as Ee,Jm as Ae,jC as ue,lV as we,gK as je,K$ as ke,K_ as ve,No as Pe,xl as De,BQ as Ue,MZ as Me,N6 as _e,c2 as Y,cH as Be,cI as Re,J3 as Te,Np as Fe,J4 as Ne,vN as Ve,Nq as Oe,E4 as Le,Bw as $e,Bn as pe,Bk as Je,vR as ge,Bq as me,Bt as fe,Bz as ee,so as ne,vQ as Ke,je as W,jh as he,Nr as ze,ki as Ze,w4 as Ge,JU as He,JV as qe,jc as Qe,Ns as We,jf as Xe,qO as Ye,Nt as en,Nu as nn,qS as tn,gk as an,Jc as se,gr as sn,Jd as on,w1 as cn,Nv as rn,Nw as ln,BN as dn,eU as be,eW as Se,Nx as un,fy as pn,Jn as gn,w0 as oe,fD as ie,fC as mn,v$ as fn,fB as hn,fA as bn,Ny as Sn,eZ as ye,Nz as yn,NA as In,w7 as Cn,v_ as ce,NB as xn,ff as En,vX as An,bV as wn,c1 as jn,c0 as kn,bW as vn,b_ as Pn,bZ as Dn,bY as Un,b$ as Mn,bX as _n}from"./zeni-epic-state-deE-VpAu.js";import{y as te,S as U,z as x,ac as Ie,bB as Bn,e as J,g as Rn,d as N,x as ae,bC as Tn,bD as Fn,an as Nn,j as Ce,bE as Vn,bF as On,bG as Ln,a6 as $n,U as Jn,bH as Kn,r as zn,bI as Zn}from"./index-Cy593RGQ.js";import{n as M}from"./mui-BY8zvgs4.js";import{M as P}from"./MobileAppDrawer-CuP4fq1B.js";import{a as L,g as $,m as Gn}from"./accountMappingHelper-4acz-SwQ.js";import{t as Hn,A as qn}from"./AddressScreen-BvMQB8FF.js";import B from"./NotFoundScreen-YKkxofho.js";import{g as Qn}from"./analyticsHelper-DN-X1P8T.js";import{B as Wn}from"./BusinessVerificationPageScreen-x0C706ZJ.js";import{C as Xn}from"./CompanyPassportScreen-D6yPFCfS.js";import{q as re}from"./QBOConnectionScreen-DOLdLoS0.js";import{B as Yn}from"./BillPayApprovalRoutes-BqycijzY.js";import{R as et}from"./ReimbursementApprovalRoutes-jiOOsHvW.js";import"./recharts-RPqam0Wx.js";import"./analytics-DyMyvTxh.js";import"./plaid-BgClSQ5E.js";import"./dnd-CZ0pE10o.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bz1bpTt2.js";import"./lexical-oQNXHxEc.js";import"./pdf-DGbhE1eo.js";import"./utils-B5-1mb3v.js";import"./routePaths-Cr_t1xHP.js";import"./empty-DcODLT1b.js";import"./pdf-lib-BYGY-M64.js";import"./index-ChczZgz4.js";import"./url-DTcdHmle.js";import"./index-B7d7MSWD.js";import"./decodeURIComponentSafe-imXO9fsR.js";import"./ReimbursementApprovalRuleDetailScreen-Bbsz8QQ6.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]="236ab51c-af4f-4f9c-ab3b-81ceb93bfb7d",e._sentryDebugIdIdentifier="sentry-dbid-236ab51c-af4f-4f9c-ab3b-81ceb93bfb7d")}catch{}})();const nt=M.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-
|
|
1
|
+
import{j as u}from"./liveblocks-CLqAhud6.js";import{j as J,u as Y,h as X,l as W,g as E,N as j,k as H,q as Ye}from"./core-aR0qKEiV.js";import{bF as Xe,cl as Ie,MN as ye,eQ as x,cx as en,xw as Z,xl as nn,MZ as tn,N0 as an,pQ as ee,pE as ne,ka as te,rW as z,N2 as Ae,fC as $e,fB as We,fA as He,N3 as sn,xF as on,Bw as ke,Bn as _e,Bk as ve,Bb as K,Bq as Pe,Bt as Ee,Bz as we,so as Te,fR as cn,cs as rn,eW as un,eU as dn,eV as ln,bs as pn,N4 as mn,Ad as le,AR as yn,N5 as fn,bG as gn,CM as pe,BQ as Sn,N6 as bn,N7 as hn,CQ as Cn,CU as In,rP as An,Hc as kn,Dp as Ce,Ei as me,N8 as _n,N9 as vn,Na as Pn,Nb as Ge,Nc as En,JH as wn,Ma as Tn,JT as Dn,Nd as qe,Ne as Fe,DD as Ke,ki as Un,pH as Qe,rY as On,bE as Ne,s8 as je,cv as Bn,Nf as Je,fe as Fn,D7 as xn,Db as Vn,Ng as Nn,Ds as Re,Nh as jn,Ni as Rn,Nj as zn,Nk as Ln,fK as Mn,yQ as Zn,Nl as $n,yV as Wn,yU as Hn}from"./zeni-epic-state-deE-VpAu.js";import{d as ae,y as ie,S as de,m as De,aK as Q,z as T,A as se,e as w,x as Ue,g as $,bq as Gn,aq as oe,br as V,bs as qn,bt as Kn,ac as Ve,bu as Qn,r as ze,ar as Le,Z as Jn,F as Yn,bv as Xn,bw as et,bx as nt,a3 as tt}from"./index-Cy593RGQ.js";import{a as C}from"./sentry-Cx_bjk1I.js";import{n as xe,D as at,S as it}from"./mui-BY8zvgs4.js";import{M as fe}from"./MobileAppDrawer-CuP4fq1B.js";import R from"./NotFoundScreen-YKkxofho.js";import{a as Me}from"./analyticsHelper-DN-X1P8T.js";import{c as Ze}from"./routePaths-Cr_t1xHP.js";import{B as Be}from"./BusinessVerificationPageScreen-x0C706ZJ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="5c12aa8e-d3c0-4632-b3e1-f78ed17a7d01",e._sentryDebugIdIdentifier="sentry-dbid-5c12aa8e-d3c0-4632-b3e1-f78ed17a7d01")}catch{}})();const st=xe.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as f}from"./liveblocks-
|
|
1
|
+
import{j as f}from"./liveblocks-CLqAhud6.js";import{a as u,b as T,q as A}from"./sentry-Cx_bjk1I.js";import{h as D,j as z,g as l,u as M,N as j,k as O}from"./core-aR0qKEiV.js";import{u as P,z as s,m as _,e as E,D as F,f as N,g as B,N as $,h as J,i as V,j as v}from"./index-Cy593RGQ.js";import{eQ as q,IS as Q,IT as R,eR as W,fk as H,IY as Y,fJ as Z,cU as G,IZ as b,I_ as K,I$ as X,bT as y}from"./zeni-epic-state-deE-VpAu.js";import"./mui-BY8zvgs4.js";import{u as ee}from"./useDeviceId-BYnqlZ2w.js";import{f as te}from"./analyticsHelper-DN-X1P8T.js";import{t as ne}from"./getLocaleForTenant-DhBtn3Ee.js";import"./recharts-RPqam0Wx.js";import"./analytics-DyMyvTxh.js";import"./plaid-BgClSQ5E.js";import"./dnd-CZ0pE10o.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bz1bpTt2.js";import"./lexical-oQNXHxEc.js";import"./pdf-DGbhE1eo.js";import"./utils-B5-1mb3v.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]="89a64993-7eb2-408a-9de3-d8da2f21dcf3",t._sentryDebugIdIdentifier="sentry-dbid-89a64993-7eb2-408a-9de3-d8da2f21dcf3")}catch{}})();const ie=O(function(t,i){const d=t.tenantState.fetchState,g=t.tenantState.sendEmailMagicLinkFetchState,{magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:c}=i;return{googleClientId:v.googleClientId,microsoftClientId:v.microsoftClientId,signInError:t.tenantState.error?.error,fetchState:d,sendMagicLinkStatus:g,magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:c}},function(t,i){const{location:d,navigate:g}=i;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,a)=>{A({message:`OAuth error from provider ${a} with error ${n}`,level:"error",tags:{authProvider:a,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,a)=>{const c=a==="google"?window.location.origin:window.location.origin+window.location.pathname;t(X({authCode:n,oauthProvider:a,appType:"web",redirectUri:y(c),sourceUri:y(d.state!=null?d.state.origin:"")}))},getSignedInUser:()=>s.getSignedInUser(),onSignedInCallback:()=>{const n=d.state?.origin;n&&n!=="/"?g(n,{replace:!0}):window.open(window.location.origin,"_self")},sendMagicLink:n=>{const{deviceId:a}=i;a!=null&&(s.saveMagicLinkEmail(n),t(K(n,a)))},clearSignInError:()=>{t(b())}}})(V),ae=T.memo(ie);function ve({setTenantEmailDomain:t}){const i=D(),d=z(),{clearAllLoading:g}=P(),n=s.getSignedInUser();u.useLayoutEffect(()=>{g()},[g]);const a=ee(),c=l(e=>e.tenantState.magicLinkCodeVerifier),{sendEmailMagicLinkFetchState:h,accountLocked:U,accountUnlockTime:k}=l(e=>e.tenantState),p=l(e=>e.tenantState.fetchState),L=l(e=>e.tenantState.activeTenantFetchState.fetchState),I=l(e=>e.tenantState.signInState),o=l(e=>e.tenantState.loggedInUser),r=l(e=>q(e)),S=l(e=>Q(e)),m=M(),w=_().mode,C=m.state?.magicLinkExpired,x=m.state?.magicLinkAlreadyUsed;if(u.useEffect(()=>{h.fetchState==="Completed"&&c!=null&&(E.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(c))},[h.fetchState,c]),u.useEffect(()=>{t(void 0)},[]),u.useEffect(()=>{I!=="In-Progress"||p!=="Completed"&&L!=="Completed"||o?.zeniSessionId==null||r==null||(s.savePayNowInfoTooltip(!0,o.zeniSessionId),s.saveSignedInUserWithSession(o,o.zeniSessionId),s.saveSignedInUserTenants(R(S.tenantsInOrder),o.zeniSessionId),W(o.userId,o.zeniSessionId,r.tenantId),i(H(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(Y("Completed")),F.updateAppLocaleID(ne(r)),te(o,r,w,void 0,S.tenantsInOrder),Z().then(()=>{const e=J();e!=null&&N(e)}),setTimeout(()=>{E.trackLogin(B.Event.loginSuccess,o.authProvider??"google",G(r.productSettings))},2e3))},[I,p,L,o,r,S,w,m.state,i]),I==="In-Progress"&&p==="Completed"&&o?.zeniSessionId!=null&&r!=null||n!=null){const e=m.state?.origin??"/";return f.jsx(j,{to:e,state:{...m.state,origin:""}})}return f.jsxs(f.Fragment,{children:[f.jsx(ae,{magicLinkExpired:!!C,magicLinkAlreadyUsed:!!x,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),U===!0&&k!=null?f.jsx($,{onClose:()=>i(b()),unlockDate:k}):null]})}export{ve as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-
|
|
1
|
+
import{j as s}from"./liveblocks-CLqAhud6.js";import{a}from"./sentry-Cx_bjk1I.js";import{h as u,u as m,j as p,N as g}from"./core-aR0qKEiV.js";import{z as f,x as y,t as b,e as d,g as h}from"./index-Cy593RGQ.js";import{fO as x,fP as I,Je as j}from"./zeni-epic-state-deE-VpAu.js";import{n as w}from"./mui-BY8zvgs4.js";import"./recharts-RPqam0Wx.js";import"./analytics-DyMyvTxh.js";import"./plaid-BgClSQ5E.js";import"./dnd-CZ0pE10o.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bz1bpTt2.js";import"./lexical-oQNXHxEc.js";import"./pdf-DGbhE1eo.js";import"./utils-B5-1mb3v.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]="0fc95035-e226-4c45-9ddf-b58b1dadcfce",e._sentryDebugIdIdentifier="sentry-dbid-0fc95035-e226-4c45-9ddf-b58b1dadcfce")}catch{}})();function $(){const e=u(),t=m(),i=p(),n=a.useRef(!1),c=f.isSignedIn(),r=t.state?.message==="logout",o=r||c;return a.useEffect(()=>{o&&!n.current&&(n.current=!0,setTimeout(()=>{try{f.clearAll(),e(x()),e(I(!1)),j(),b.reset(),d.trackLogout(h.Event.logoutSuccess),d.resetUserIdentity()}catch(l){console.error("Error during sign out:",l)}finally{r||i("/signin/auth",{replace:!0})}},0))},[o,r]),o?s.jsx(v,{children:s.jsx(y,{fetchState:"In-Progress"})}):s.jsx(g,{to:"../",replace:!0})}const v=w.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100vh;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as d}from"./liveblocks-
|
|
1
|
+
import{j as d}from"./liveblocks-CLqAhud6.js";import{a as g}from"./sentry-Cx_bjk1I.js";import{j as z,h as K,u as _,g as b,l as M,k as O}from"./core-aR0qKEiV.js";import{z as R,y as V,S as p,A as W,e as Z,g as q,cI as H,r as f,k as J}from"./index-Cy593RGQ.js";import{eQ as X,Q3 as Q,FQ as y,Q4 as x,P$ as Y,Fg as S,Q5 as aa,Fk as I,EP as ea,FR as B,Q6 as F,gO as ta,FH as sa,FM as oa,Fz as na,Fx as w,FN as ia,Fu as la,Q7 as ra,Q8 as ka,Q9 as ca,Qa as ua,Qb as m,ec as da,Qc as pa,Qd as ma}from"./zeni-epic-state-deE-VpAu.js";import{n as Ta}from"./mui-BY8zvgs4.js";import{u as ga}from"./useAskAiCfoHostNavButtonProps-BHH5iUyl.js";import{c as fa}from"./useFetchSuggestedQuestionsWhenReady-Csr1Wwy2.js";import{M as ha}from"./MobileAppDrawer-CuP4fq1B.js";import"./recharts-RPqam0Wx.js";import"./analytics-DyMyvTxh.js";import"./plaid-BgClSQ5E.js";import"./dnd-CZ0pE10o.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bz1bpTt2.js";import"./lexical-oQNXHxEc.js";import"./pdf-DGbhE1eo.js";import"./utils-B5-1mb3v.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]="fd463dae-d90e-4983-a588-876b67038e26",e._sentryDebugIdIdentifier="sentry-dbid-fd463dae-d90e-4983-a588-876b67038e26")}catch{}})();const Da=Ta.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as n}from"./liveblocks-
|
|
1
|
+
import{j as n}from"./liveblocks-CLqAhud6.js";import se from"./NotFoundScreen-YKkxofho.js";import{a as c}from"./sentry-Cx_bjk1I.js";import{j as Z,h as _,g,u as ne,l as oe,N as ie,k as re,n as ce,o as f}from"./core-aR0qKEiV.js";import{FU as O,FX as le,F_ as de,eQ as M,P$ as H,Fc as W,EW as pe,FE as ue,Fx as ke,Q0 as J,Q1 as z,ES as me,EP as fe,pQ as ge,pE as he,ka as Se,F2 as Ie,Q2 as Te,F7 as Ee,F4 as be,EZ as Ge,Fh as Ce,Fg as De}from"./zeni-epic-state-deE-VpAu.js";import{z as C,cG as Fe,v as xe,y as ye,S as E,k as K,r as v,A as je,e as A,g as ve,cH as we,j as V,aq as Re}from"./index-Cy593RGQ.js";import{n as Pe}from"./mui-BY8zvgs4.js";import{u as Be}from"./useInitialThreadRequest-B-1U2ylt.js";import{M as Ue}from"./MobileAppDrawer-CuP4fq1B.js";import Le from"./TaskListScreen-BwXGWL1j.js";import"./recharts-RPqam0Wx.js";import"./analytics-DyMyvTxh.js";import"./plaid-BgClSQ5E.js";import"./dnd-CZ0pE10o.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bz1bpTt2.js";import"./lexical-oQNXHxEc.js";import"./pdf-DGbhE1eo.js";import"./utils-B5-1mb3v.js";import"./useAskAiCfoHostNavButtonProps-BHH5iUyl.js";import"./useFetchSuggestedQuestionsWhenReady-Csr1Wwy2.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]="9908615f-781c-4e5f-a765-4eaedecf8d98",e._sentryDebugIdIdentifier="sentry-dbid-9908615f-781c-4e5f-a765-4eaedecf8d98")}catch{}})();function $e(){const e=Z(),t=_(),s=C.getSignedInUser(),{cannedResponses:u,fetchState:r,saveFetchState:d}=g(o=>o.cannedResponsesState),l=c.useCallback(()=>{t(O())},[t]),k=c.useCallback((o,h,S)=>{t(le({name:o,content:h,cannedResponseId:S}))},[t]),a=c.useCallback(o=>{t(de({cannedResponseId:o}))},[t]);if(s==null)throw Error("Can't access quick responses page without signing in...");return n.jsx(Fe,{cannedResponses:u,isLoading:r==="In-Progress"||r==="Not-Started",isSaving:d==="In-Progress",onBackClick:()=>e(-1),onDelete:a,onFetch:l,onSave:k})}let q,Q=[];const Ne=re(function(e,t){const{location:s,taskGroupId:u}=t,r=J(e,t.taskId),d=M(e),l=r.taskGroupId??u,k=l!=null?z(e.taskGroupState,l):void 0,a=C.getSignedInUser(),o=d.tenantId,h={userId:a?.userId??"",sessionId:a?.zeniSessionId??"",tenantId:o??""},S=H(e),{tenantEmailDomain:D}=d,b=r.recurringSourceTaskId,F=b!=null?`${V.appUrl}/${D}/tasks/${encodeURIComponent(b)}`:void 0;var I;return{taskDetailSelectorView:r,authParams:h,isZeniUser:C.isZeniUser(),userGroupList:((I=e.userGroupsState.userGroupByUserGroupId)!==q&&(q=I,Q=Object.values(I)),Q),isNewClicked:s.state?.message==="comingFromTaskListPage",filesEndPoint:Re.fileMicroServiceBaseUrl,companyName:t.currentTenant.companyName,companyId:t.currentTenant.companyId,currentUrl:`${V.appUrl}${t.location.pathname}`,cannedResponses:e.cannedResponsesState.cannedResponses,isCannedResponsesLoading:e.cannedResponsesState.fetchState==="In-Progress",recurringSourceTaskUrl:F,tagListView:S,taskGroupName:l!=null&&k!=null&&k.isDefault===!1?k.name:void 0,taskGroupList:e.taskGroupViewState.taskGroupsIds.map(p=>z(e.taskGroupState,p)).filter(p=>p!=null&&!p.isDeleted).map(p=>({id:p.id,name:p.name,isDefault:p.isDefault}))}},function(e,t){const{taskId:s,navigate:u,currentTenant:r,location:d,taskGroupId:l}=t,{tenantEmailDomain:k}=r;return{onSaveChangesToLocalStore:a=>{e(De({taskDetailLocalData:a,taskId:s}))},onSaveDetailClick:a=>{e(Ce(s,a??l))},onArchiveTaskClick:()=>{t.taskId!=null&&e(Ge(t.taskId))},onSnoozeTask:(a,o)=>{e(be(a,o))},onUnsnoozeTask:a=>{e(Ee(a))},onDismissClick:()=>{if(d.state?.message==="triggerBackClick"){const a=K(d.state?.pathnameStackToGoBack),o=a.poppedPathname??"../../dashboard";u(o,{state:{pathnameStackToGoBack:a.newStack}})}else{const a=w(k),o=v(d.state?.pathnameStackToGoBack,d.pathname);u(a,{state:{pathnameStackToGoBack:o}})}e(Te({taskId:s}))},onDeleteTaskClick:()=>{e(Ie(s))},updateFilesEntity:a=>{e(Se({files:a}))},onDeleteFile:a=>{e(he(a))},onEditFileName:(a,o)=>{e(ge(a,o.split(".")[0]))},onReloadTaskDetailPage:()=>{e(W(!1,s))},onCreateTagClick:a=>{e(fe(a,s))},onDeleteTagClick:a=>{e(me(a,s))},onFetchCannedResponses:()=>{e(O())},onManageTemplatesClick:()=>{u(`/${r.tenantEmailDomain}/tasks/quick-responses`)}}})(we);function j(){const e=Z(),t=_(),s=ne(),u=xe(),{taskId:r,taskGroupId:d}=oe(),l=g(i=>M(i)),k=Be(l?.companyId),{useFeatureGate:a}=ye(),{isFeatureEnabled:o}=a(E.isTaskSnoozeEnabled),{isFeatureEnabled:h}=a(E.isTaskVisibilityEnabled),{isFeatureEnabled:S}=a(E.isTaskCannedResponsesEnabled),{isFeatureEnabled:D}=a(E.isTaskRecurringParentEnabled),{isFeatureEnabled:b}=a(E.isTaskGroupAssigneesEnabled),[F,I]=c.useState(!1),[p,X]=c.useState(!1),[R,Y]=c.useState(!1),[P,ee]=c.useState(!1),[B,x]=c.useState(!1),T=c.useRef(!1),G=g(i=>i.taskListState.updateTasksFetchState.fetchState),U=g(i=>H(i)),L=g(i=>i.taskGroupViewState.fetchState);c.useEffect(()=>{p||(X(!0),t(W(!1,r)))},[p,t]),c.useEffect(()=>{R||U.fetchState==="Completed"||(Y(!0),t(pe()))},[R,t,U.fetchState]),c.useEffect(()=>{P||L==="Completed"||(ee(!0),t(ue()))},[P,t,L]);const ae=c.useCallback(()=>{r!=null&&(T.current=!1,t(ke([r],null,{isArchived:!1})),x(!0))},[t,r]);c.useEffect(()=>{if(B)if(G!=="In-Progress"){if(T.current){if(G==="Error")return x(!1),void(T.current=!1);if(G==="Completed"){x(!1),T.current=!1;const{tenantEmailDomain:i}=l;if(s.state?.message==="triggerBackClick"){const m=K(s.state?.pathnameStackToGoBack);e(m.poppedPathname??"../../dashboard",{state:{pathnameStackToGoBack:m.newStack}})}else{const m=w(i);e(m,{state:{pathnameStackToGoBack:v(s.state?.pathnameStackToGoBack,s.pathname)}})}}}}else T.current=!0},[B,G,l,s,e]);const $=g(i=>J(i,r)),y=$.fetchState,N=C.getSignedInUser();if(N==null)throw Error("Can't access task detail page without signing in...");if(y==="Error"&&$.error?.code===400){const{tenantEmailDomain:i}=l,m=w(i),te=v(s.state?.pathnameStackToGoBack,s.pathname);return n.jsx(ie,{to:m,state:{pathnameStackToGoBack:te}})}return n.jsxs(n.Fragment,{children:[y==="Completed"?n.jsx(je,{analytics:A,onLoad:i=>(m=>m.trackPageLoaded(ve.Event.taskDetailPage))(i)}):null,n.jsxs(ze,{children:[n.jsx(Ue,{isAppContentDrawerOpen:F,handleDrawerToggle:i=>{I(i)}}),n.jsx(Ne,{analytics:A,currentTenant:l,handleZeniLogoClick:()=>{u.toggle()},initialOpenThreadRequest:k,location:s,loggedInUser:N,navigate:e,taskGroupId:d,taskId:r,taskDetailFetchState:y,onUnarchiveTaskClick:ae,isTaskSnoozeEnabled:o,isTaskVisibilityEnabled:h,isTaskCannedResponsesEnabled:S,isTaskRecurringParentEnabled:D,isTaskGroupAssigneesEnabled:b})]})]})}const ze=Pe.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as t}from"./liveblocks-CLqAhud6.js";import i from"./NotFoundScreen-YKkxofho.js";import{T as r}from"./TransactionDetailScreen-CxbLldkU.js";import"./sentry-Cx_bjk1I.js";import{n as a,o}from"./core-aR0qKEiV.js";import"./zeni-epic-state-deE-VpAu.js";import"./recharts-RPqam0Wx.js";import"./index-Cy593RGQ.js";import"./mui-BY8zvgs4.js";import"./analytics-DyMyvTxh.js";import"./plaid-BgClSQ5E.js";import"./dnd-CZ0pE10o.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bz1bpTt2.js";import"./lexical-oQNXHxEc.js";import"./pdf-DGbhE1eo.js";import"./utils-B5-1mb3v.js";import"./useAskAiCfoHostNavButtonProps-BHH5iUyl.js";import"./useFetchSuggestedQuestionsWhenReady-Csr1Wwy2.js";import"./decodeURIComponentSafe-imXO9fsR.js";import"./routePaths-Cr_t1xHP.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]="eb8d9915-3f2e-47a0-a713-5db167080b95",e._sentryDebugIdIdentifier="sentry-dbid-eb8d9915-3f2e-47a0-a713-5db167080b95")}catch{}})();function q(){return t.jsxs(a,{children:[t.jsx(o,{path:"/:transactionTypeEncoded/:transactionId",element:t.jsx(r,{})}),t.jsx(o,{path:"/:transactionTypeEncoded/:transactionId/page-not-found",element:t.jsx(i,{})}),t.jsx(o,{path:"/:transactionTypeEncoded/:transactionId/vendor/create",element:t.jsx(r,{})}),t.jsx(o,{path:"/*",element:t.jsx(r,{})})]})}export{q as default};
|
package/dist/assets/{TransactionDetailScreen-718LSRWk.js → TransactionDetailScreen-CxbLldkU.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as I}from"./liveblocks-
|
|
1
|
+
import{j as I}from"./liveblocks-CLqAhud6.js";import{a as d}from"./sentry-Cx_bjk1I.js";import{h as j,g as S,u as re,j as le,l as de,N as ze,k as Ge}from"./core-aR0qKEiV.js";import{bn as je,eQ as K,cQ as ue,bv as me,pv as Y,K5 as P,L6 as pe,L7 as Q,Kv as he,jN as fe,L8 as ge,KA as J,KB as X,kC as Se,H4 as Z,J$ as x,jH as ve,jF as ye,jR as $e,L9 as Me,La as He,tr as G,jM as Te,Gr as Ee,cV as We,cW as qe,Lb as Ke,J_ as Ye,Lc as Qe,tv as Je,Ld as Xe,Le as Ze,Lf as ea,Lg as aa,Lh as ta,jQ as na,Li as oa,Lj as sa,K0 as ia,Lk as ca,Ll as ra,Lm as la,Gl as da,G9 as ua,GD as ma,jS as pa,H5 as ie,Gi as ha}from"./zeni-epic-state-deE-VpAu.js";import{z as De,y as ee,S as _,aK as Ce,m as fa,Z as ga,aL as Sa,F as va,k as W,d as ya,aM as Ta,r as q,e as be,aN as Ea,aq as Da,X as H}from"./index-Cy593RGQ.js";import{n as Ca,S as ba,D as Ia}from"./mui-BY8zvgs4.js";import{u as ka}from"./useAskAiCfoHostNavButtonProps-BHH5iUyl.js";import{c as La}from"./useFetchSuggestedQuestionsWhenReady-Csr1Wwy2.js";import{d as Ie}from"./decodeURIComponentSafe-imXO9fsR.js";import{h as ke,g as Aa,d as Ua,b as xa}from"./routePaths-Cr_t1xHP.js";import{t as _a}from"./utils-B5-1mb3v.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new a.Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="6061acc5-43f5-4f8f-99c2-91cdc7e980b9",a._sentryDebugIdIdentifier="sentry-dbid-6061acc5-43f5-4f8f-99c2-91cdc7e980b9")}catch{}})();const ae=()=>{const a=De.getSignedInUser(),{useFeatureGate:e}=ee(),{isFeatureEnabled:s}=e(_.isChainOfThoughtEnabled);return d.useMemo(()=>je(a)&&s,[a,s])};function Le(a){if(a!=null){if("customer"in a&&a.customer!=null){const{customer:e}=a;return{id:e.id,name:e.name,logo:e.logo,type:"customer",zeniId:e.id,qboId:e.id}}if("vendor"in a&&a.vendor!=null){const{vendor:e}=a;return{id:e.id,name:e.name,logo:e.logo,type:"vendor",zeniId:e.id,qboId:e.id}}}}function Qa(a,e){const s=j(),{useFeatureGate:t,useDynamicConfig:n}=ee(),o=S(u=>K(u)),i=o.userRole.includes("charge_card_user")||o.userRole.includes("charge_card_admin"),l=o.userRole!=null&&ue(o.userRole),g=o.userRole!=null&&me(o.userRole),{isFeatureEnabled:v}=t(_.isVendorBulkUpdateOnTransactionEnabled),{isFeatureEnabled:b}=t(_.isExpenseAutomationEnabled),{configValue:h}=n(Ce.enableUncategorizedExpenseCategory),f=h?.uncategorized_expense_category_enabled===!0,k=ae(),y=d.useMemo(()=>({id:a,type:Y(e)}),[a,e]),m=S(u=>P(u,y)),C=S(u=>{const R=P(u,y)?.transactionDetailLocalData.vendorUpdates?.id;return R==null?"Not-Started":u.transactionVendorViewState.editVendorStateById[R]?.saveStatus.fetchState??"Not-Started"}),p=d.useMemo(()=>m?.fetchState==="Completed"?Le(m?.transaction):void 0,[m?.fetchState,m?.transaction]),E=S(u=>{if(p!=null)return pe(u.customerIncomeState,u.vendorExpenseState,u.trendState,p,"month")}),L=S(u=>Q(u)),V=S(u=>{if(p!=null)return he(u.trendWithTransactionsState,p,"TransactionDetail")}),$=o.company?.companyInfo.firstMonthOfFY??1,M=S(u=>fe(u.accountState,u.accountListState,"accountList")),[w,B]=d.useState(!1),[F,T]=d.useState(!1),[c,N]=d.useState(!1);d.useEffect(()=>{B(!1),T(!1),N(!1)},[a,e]);const D=d.useCallback(()=>{B(!1),T(!1)},[]),[A,U]=d.useState(!1),O=V?.selectedPeriod?.timePeriod;return d.useEffect(()=>{c||m==null||m.transaction==null||(s(ge({id:m.transaction.id,type:m.transaction.type})),N(!0)),p!=null&&(!i||l&&g===!1)&&(w?F||E==null||(T(!0),s(Z(p,"TransactionDetail",{timeframe:"month",timePeriod:O??E}))):(s(J()),s(X()),B(!0),s(Se(p))))},[s,c,m?.fetchState,m?.transaction,p,i,l,g,w,F,E,O]),d.useEffect(()=>{L.newVendorState?.vendorDetailLocalData?.vendorName!=null?U(!0):U(!1)},[L.newVendorState?.vendorDetailLocalData?.vendorName]),d.useEffect(()=>()=>{s(x("common"))},[s]),{currentTenant:o,loggedInUserHasCardUserOrAdminRole:i,isUserHasDashboardAccess:l,isUserHasInvestorOrBankerAccess:g,isVendorBulkUpdateOnTransactionEnabled:v,isExpenseAutomationEnabled:b,isUncategorizedExpenseCategoryEnabled:f,isChainOfThoughtEnabled:k,selectedTransaction:y,transactionDetail:m,vendorSaveStatus:C,tranEntity:p,defaultTrendTransactionTimePeriod:E,vendorViewDetails:L,uiState:V,firstMonthOfFY:$,uncategorizedAccounts:M,resetTrendIsFetchedStates:D,isCreateVendorDrawerOpen:A,setIsCreateVendorDrawerOpen:U}}const Va={overlayWidth:new va(100,100,58)},Ba=({isOpen:a,onSaveVendor:e,onSaveSuccess:s,onCancel:t,vendorViewDetails:n})=>{const o=fa(),i=ga(),l=j(),g=S(h=>Q(h)),v=()=>{t()},b={vendorDetailView:n??g,onSaveSuccess:()=>{l(ye()),l($e("Not-Started")),s()},onSaveVendor:e,onCancelClick:v,saveVendorDetailLocalData:h=>{l(ve({vendorId:void 0,localData:h}))}};return I.jsx(Ia,{anchor:"right",open:a,PaperProps:{style:{width:Va.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.4,cursor:"pointer"}}},onClose:v,children:I.jsx(Pa,{onClick:h=>h.stopPropagation(),children:I.jsx(Sa,{...b})})})},Pa=Ca(ba)`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-FqlsN9l2.js";import{j as J,u as R,h as N,l as Q,g as j,N as z,k as Z,n as Ae,o as b}from"./core-CjgV1pRV.js";import{eQ as $,i$ as T,Ou as K,GX as ue,bq as ie,Ov as he,jC as X,Kx as H,Ow as se,Ox as Se,bE as Y,GU as me,Oy as ke,Oz as re,OA as Ie,OB as pe,OC as be,OD as ve,OE as de,I8 as xe,bn as Ye}from"./zeni-epic-state-CZMuxCUG.js";import{D as W,e as C,c6 as ee,r as w,k as te,y as fe,S as q,U as Ee,z as Pe}from"./index-BcVOuC0n.js";import"./mui-DV0w8xOn.js";import{a as y}from"./sentry-D49LOZ1j.js";import{w as ae}from"./withTransactionSidePanel-BevSoIGb.js";import{p as ne,b as ce}from"./routePaths-em7mZQJi.js";import{u as Oe}from"./utils-RiJ_hKSI.js";import{d as O}from"./decodeURIComponentSafe-N2eflqcZ.js";import{Z as je}from"./ZeniAccountStatementScreen-DOfTHOXY.js";import"./recharts-Bc1ZLC_I.js";import"./analytics-cU6JjHUB.js";import"./plaid-BkGpAOW9.js";import"./dnd-DHtwlo1Y.js";import"./stripe-DMRn4zHo.js";import"./lottie-wdoglqbL.js";import"./lexical-MibAVFD6.js";import"./pdf-FCPcIMVR.js";import"./useAskAiCfoHostNavButtonProps-CjtZhD5y.js";import"./useFetchSuggestedQuestionsWhenReady-CM8iKDtd.js";import"./TransactionDetailScreen-718LSRWk.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new a.Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="04bc8104-286c-44d6-a622-f3158abd63a1",a._sentryDebugIdIdentifier="sentry-dbid-04bc8104-286c-44d6-a622-f3158abd63a1")}catch{}})();const Le=["uncategorized-income","uncategorized-expense","miscategorized-income","miscategorized-expense","missing-receipts"],_=a=>Oe(a),ze=Z(function(a,e){const t=he(a.transactionState,a.transactionListState,e.selectedAccount.period,e.selectedAccount.timeframe,_(e.selectedAccount.tranListType));return{title:e.selectedAccount.title,subTitle:e.selectedAccount.subTitle,timeframe:e.selectedAccount.timeframe,timePeriod:H(e.selectedAccount.period),dataAvailableForPeriod:e.dataAvailableForPeriod,report:t,currentScrollYOffset:t.uiState?.scrollYOffset??0,isAccountingClassesEnabled:X(a)}},function(a,e){return{onBackClick:()=>{const t=te(e.location.state?.pathnameStackToGoBack),n=t.poppedPathname??"../../";e.navigate(n,{state:{pathnameStackToGoBack:t.newStack}})},onTimePeriodChange:(t,n,c)=>{e.closeSidePanel?.();const o=W.getLocalizedStrings(),s=_(e.selectedAccount.tranListType),r=Me(t,n,c,s,e.bookCloseDate);C.trackTransactionList(void 0,void 0,void 0,e.selectedAccount.title,void 0,!0),a(se({uiState:{dateRange:r},type:_(e.selectedAccount.tranListType)})),a(ue(s,T(r),!1,s==="missingReceipts"?o.uncategorizedTransactionList.missingReceipt.missingReceiptMinAmount:void 0)),e.onSelectedTimePeriodChange(T(r))},onTransactionItemClick:t=>{if(e.openTransactionPanel)return void e.openTransactionPanel(t.id,t.type);const n=ce(t,e.tenantEmailDomain),c=w(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(n,{state:{pathnameStackToGoBack:c}})},onTransactionListScroll:t=>{a(se({uiState:{scrollYOffset:t},type:_(e.selectedAccount.tranListType)}))}}})(ee),G=ae(function({...a}){const e=J(),t=R(),n=N(),c=t.pathname.split("/").find(d=>Le.includes(d)),o=c??"uncategorized-expense",{tenantEmailDomain:s}=Q(),r=W.getLocalizedStrings(),{accountType:p,title:A,subTitle:h}=Ce(o),S="month",k=j(d=>$(d)),D=k.company?.companyInfo.firstMonthOfFY??1,{dataAvailable:g,initialTimeframeTick:v}=Be(o,D,k.bookCloseDate),[E,B]=y.useState(!1),[x,M]=y.useState(void 0),l=y.useMemo(()=>{const d=T(v);return{tranListType:o,accountType:K(p),title:A,subTitle:h,timeframe:S,period:d}},[o,S,p,g]);y.useEffect(()=>{if(!E&&l!=null){B(!0),C.trackTransactionList(void 0,void 0,void 0,l.title);const d=_(l.tranListType);n(ue(d,l.period,!0,d==="missingReceipts"?r.uncategorizedTransactionList.missingReceipt.missingReceiptMinAmount:void 0))}},[E,l,n]);let P=l;return l!=null&&x!=null&&(P={...l,period:x}),c==null||P==null?i.jsx(z,{to:"../"}):i.jsx(ze,{firstMonthOfFY:D,tenantEmailDomain:s,location:t,useFixedPeriod:{timeframe:"month",numberOfPeriods:12},dataAvailableForPeriod:g,navigate:e,selectedAccount:P,referrerType:o,bookCloseDate:k.bookCloseDate,onSelectedTimePeriodChange:d=>M(d),...a})}),Ce=a=>{let e="",t="";const n=W.getLocalizedStrings();switch(a){case"uncategorized-income":e="income",t=n.uncategorizedTransactionList.income.title;break;case"uncategorized-expense":e="expenses",t=n.uncategorizedTransactionList.expense.title;break;case"miscategorized-expense":e="expenses",t=n.miscategorizedTransactionList.expense.title;break;case"miscategorized-income":e="income",t=n.miscategorizedTransactionList.income.title;break;case"missing-receipts":t=n.uncategorizedTransactionList.missingReceipt.title}return{accountType:e,title:t,subTitle:""}},Be=(a,e,t)=>{const n=ie();let c=ie().startOf("month").subtract(11,"month");return t!=null&&a!=="missing-receipts"?t.add(1,"day").isBefore(c)?{dataAvailable:{startDate:t.add(1,"day"),endDate:n},initialTimeframeTick:{startDate:c,endDate:n}}:(c=t.add(1,"day"),{dataAvailable:{startDate:c,endDate:n},initialTimeframeTick:{startDate:c,endDate:n}}):{dataAvailable:ne(5,e),initialTimeframeTick:{startDate:c,endDate:n}}},Me=(a,e,t,n,c)=>{let o=e;return n==="missingReceipts"||c==null?a.startDate.isBefore(e.startDate,t)?o={startDate:a.startDate,endDate:e.endDate}:a.startDate.isAfter(e.endDate,t)?o={startDate:e.startDate,endDate:a.endDate}:console.error(`Invalid addTimePeriod ${JSON.stringify(a)}`):o=a.startDate.isBefore(c,t)?{startDate:c.add(1,"day"),endDate:e.endDate}:{startDate:a.startDate,endDate:e.endDate},o},Fe=Z(function(a,e){const t=ke(a.transactionState,a.transactionListState,e.selectedAccount.accountId,e.selectedAccount.accountType,e.selectedAccount.classId,e.selectedAccount.timeframe,e.selectedAccount.period);return{accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,title:e.selectedAccount.title,timeframe:e.selectedAccount.timeframe,timePeriod:H(e.selectedAccount.period),dataAvailableForPeriod:ne(5,e.firstMonthOfFY),report:t,currentScrollYOffset:t.uiState?.scrollYOffset??0,isAccountingClassesEnabled:X(a)}},function(a,e){return{onBackClick:()=>{const t=te(e.location.state?.pathnameStackToGoBack),n=t.poppedPathname??Te();e.navigate(n,{state:{pathnameStackToGoBack:t.newStack}})},onTimePeriodChange:(t,n,c)=>{e.closeSidePanel?.();let o=n;t.startDate.isBefore(n.startDate,c)?o={startDate:t.startDate,endDate:n.endDate}:t.startDate.isAfter(n.endDate,c)?o={startDate:n.startDate,endDate:t.endDate}:console.error(`Invalid addTimePeriod ${JSON.stringify(t)}`),C.trackTransactionList(e.selectedAccount.accountId,void 0,e.referrerType,e.selectedAccount.title,void 0,!0),a(re({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,classId:e.selectedAccount.classId,uiState:{dateRange:o}})),a(me(e.selectedAccount.accountId,e.selectedAccount.accountType,e.selectedAccount.classId,T(o))),e.onSelectedTimePeriodChange(T(o))},onTransactionItemClick:t=>{if(e.openTransactionPanel)return void e.openTransactionPanel(t.id,t.type);const n=ce(t,e.tenantEmailDomain),c=w(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(n,{state:{pathnameStackToGoBack:c}})},onTransactionListScroll:t=>{a(re({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,classId:e.selectedAccount.classId,uiState:{scrollYOffset:t}}))}}})(ee),Ge=ae(function({referrerType:a,...e}){const t=J(),n=R(),c=N(),{tenantEmailDomain:o,accountTypeEncoded:s,accountIdEncoded:r,classIdEncoded:p,timeframe:A,startDate:h,endDate:S,titleEncoded:k}=Q(),D=O(s??""),g=O(r??""),v=O(p??""),E=O(k??""),B=j(f=>Se(f.transactionListState,g,D,v)),[x,M]=y.useState(!1),[l,P]=y.useState(void 0),d=j(f=>$(f)),V=d.company?.companyInfo.firstMonthOfFY??1;let u;const m=_e(D,g,v,A,h,S,E);if(m){const f={startDate:Y(h,"YYYY-MM-DD"),endDate:Y(S,"YYYY-MM-DD")},U=we(B?.dateRange,f);u={accountId:g,accountType:K(D),classId:v,title:E,timeframe:A,period:U}}y.useEffect(()=>{x||u==null||(M(!0),C.trackTransactionList(u.accountId,void 0,a,u.title),c(me(u.accountId,u.accountType,u.classId,u.period)))},[x,u,c]);let L=u;u!=null&&l!=null&&(L={...u,period:l});const F=[s,r,p,A,h,S,k].filter(f=>f!=null);return m&&L!=null?i.jsx(Fe,{firstMonthOfFY:V,tenantEmailDomain:o,location:n,navigate:t,selectedAccount:L,referrerType:a,onSelectedTimePeriodChange:f=>P(f),...e}):i.jsx(z,{to:Te(F.length)})}),Te=(a=7)=>{let e="../";for(let t=0;t<a;t++)e=`${e}../`;return e},_e=(a,e,t,n,c,o,s)=>a!=null&&e!=null&&t!=null&&n!=null&&c!=null&&o!=null&&(n==="month"||n==="quarter")&&Y(c,"YYYY-MM-DD").isValid()&&Y(o,"YYYY-MM-DD").isValid()&&s!=null,we=(a,e)=>a!=null&&a.endDate.isSame(e.endDate,"day")&&a.startDate.isBefore(e.startDate,"day")?T(a):T(e),Re=Z(function(a,e){const t=be(a.transactionState,a.transactionListState,e.selectedAccount.accountId,e.selectedAccount.accountType,e.selectedAccount.timeframe,e.selectedAccount.period),n=t.account?.coaId,c=e.isConnectedAccountProviderUnit&&ve(n??"");return{accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,title:e.selectedAccount.title,timeframe:e.selectedAccount.timeframe,timePeriod:H(e.selectedAccount.period),dataAvailableForPeriod:ne(5,e.firstMonthOfFY),report:t,currentScrollYOffset:t.uiState?.scrollYOffset??0,showStatementPageIcon:c,isAccountingClassesEnabled:X(a)}},function(a,e){return{onBackClick:()=>{const t=te(e.location.state?.pathnameStackToGoBack),n=t.poppedPathname??De();e.navigate(n,{state:{pathnameStackToGoBack:t.newStack}})},onTimePeriodChange:(t,n,c)=>{e.closeSidePanel?.();let o=n;t.startDate.isBefore(n.startDate,c)?o={startDate:t.startDate,endDate:n.endDate}:t.startDate.isAfter(n.endDate,c)?o={startDate:n.startDate,endDate:t.endDate}:console.error(`Invalid addTimePeriod ${JSON.stringify(t)}`),C.trackTransactionList(e.selectedAccount.accountId,void 0,e.referrerType,e.selectedAccount.title,void 0,!0),a(de({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,uiState:{dateRange:o}})),a(pe(e.selectedAccount.accountId,e.selectedAccount.accountType,T(o))),e.onSelectedTimePeriodChange(T(o))},onTransactionItemClick:t=>{if(e.openTransactionPanel)return void e.openTransactionPanel(t.id,t.type);const n=ce(t,e.tenantEmailDomain),c=w(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(n,{state:{pathnameStackToGoBack:c}})},onTransactionListScroll:t=>{a(de({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,uiState:{scrollYOffset:t}}))},onStatementPageIconClick:()=>{const t=Ue(e.tenantEmailDomain),n=w(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(t,{state:{pathnameStackToGoBack:n}})}}})(ee),le=ae(function({referrerType:a,...e}){const t=J(),n=R(),c=N(),{tenantEmailDomain:o,accountTypeEncoded:s,accountIdEncoded:r,timeframe:p,startDate:A,endDate:h,titleEncoded:S,excludeSubAccounts:k}=Q(),D=O(s??""),g=O(r??""),v=O(S??""),E=!(k!=null&&k==="exclude_subaccounts"),B=j(I=>Ie(I.transactionListState,g,D)),[x,M]=y.useState(!1),[l,P]=y.useState(void 0),d=j(I=>$(I)),V=d.company?.featuresActivationInfo.connectedAccountProvider==="unit",u=d.company?.companyInfo.firstMonthOfFY??1;let m;const L=$e(D,g,p,A,h,v);if(L){const I={startDate:Y(A,"YYYY-MM-DD"),endDate:Y(h,"YYYY-MM-DD")},ye=Ve(B?.dateRange,I);m={accountId:g,accountType:K(D),title:v,timeframe:p,period:ye}}let F=m;m!=null&&l!=null&&(F={...m,period:l});const{useFeatureGate:f}=fe(),{isFeatureEnabled:U}=f(q.isTransactionCommentingEnabled),{areTenantIdsInSync:oe}=Ee();y.useEffect(()=>{!x&&m!=null&&oe&&(M(!0),C.trackTransactionList(m.accountId,void 0,a,m.title),c(pe(m.accountId,m.accountType,m.period,void 0,!1,E)))},[x,m,c,oe]);const ge=[s,r,p,A,h,S].filter(I=>I!=null);return L&&F!=null?i.jsx(Re,{firstMonthOfFY:u,tenantEmailDomain:o,location:n,navigate:t,isConnectedAccountProviderUnit:V,isTransactionCommentingEnabled:U,selectedAccount:F,referrerType:a,onSelectedTimePeriodChange:I=>P(I),...e}):i.jsx(z,{to:De(ge.length)})}),De=(a=7)=>{let e="../";for(let t=0;t<a;t++)e=`${e}../`;return e},$e=(a,e,t,n,c,o)=>a!=null&&e!=null&&t!=null&&n!=null&&c!=null&&(t==="month"||t==="quarter")&&Y(n,"YYYY-MM-DD").isValid()&&Y(c,"YYYY-MM-DD").isValid()&&o!=null,Ve=(a,e)=>a!=null&&a.endDate.isSame(e.endDate,"day")&&a.startDate.isBefore(e.startDate,"day")?T(a):T(e),Ue=a=>`/${a}/transactions/${xe}/statements`;function pt(){const a=R().state?.referrer,e=Pe.getSignedInUser(),t=Ye(e),{useFeatureGate:n}=fe(),{isFeatureEnabled:c}=n(q.isExpenseAutomationEnabled),o=j(p=>p.expenseAutomationViewState.selectedPeriodByTenantId)[j(p=>$(p)).tenantId],{isFeatureEnabled:s}=n(q.isExpenseAutomationEnabledV2),r=s||c&&t;return i.jsxs(Ae,{children:[i.jsx(b,{path:"/:accountTypeEncoded/:accountIdEncoded/:timeframe/:startDate/:endDate/:titleEncoded/:excludeSubAccounts/*",element:i.jsx(le,{referrerType:a})}),i.jsx(b,{path:"/zeni-clearing-account/statements",element:i.jsx(je,{})}),i.jsx(b,{path:"/*",element:i.jsx(le,{referrerType:a})}),i.jsx(b,{path:"/uncategorized-income/*",element:i.jsx(G,{})}),i.jsx(b,{path:"/uncategorized-expense/*",element:r?i.jsx(z,{to:`../../month_end_close_checks/review/transaction_categorization/${o.month}-${o.year}`}):i.jsx(G,{})}),i.jsx(b,{path:"/miscategorized-income/*",element:i.jsx(G,{})}),i.jsx(b,{path:"/miscategorized-expense/*",element:r?i.jsx(z,{to:`../../month_end_close_checks/review/transaction_categorization/${o.month}-${o.year}`}):i.jsx(G,{})}),i.jsx(b,{path:"/missing-receipts/*",element:r?i.jsx(z,{to:`../../month_end_close_checks/review/missing_receipts/${o.month}-${o.year}`}):i.jsx(G,{})}),i.jsx(b,{path:"/by-class/:accountTypeEncoded/:accountIdEncoded/:classIdEncoded/:timeframe/:startDate/:endDate/:titleEncoded/*",element:i.jsx(Ge,{referrerType:a})})]})}export{pt as default};
|
|
1
|
+
import{j as i}from"./liveblocks-CLqAhud6.js";import{j as J,u as R,h as N,l as Q,g as j,N as z,k as Z,n as Ae,o as b}from"./core-aR0qKEiV.js";import{eQ as $,i$ as T,Ou as K,GX as ue,bq as ie,Ov as he,jC as X,Kx as H,Ow as se,Ox as Se,bE as Y,GU as me,Oy as ke,Oz as re,OA as Ie,OB as pe,OC as be,OD as ve,OE as de,I8 as xe,bn as Ye}from"./zeni-epic-state-deE-VpAu.js";import{D as W,e as C,c6 as ee,r as w,k as te,y as fe,S as q,U as Ee,z as Pe}from"./index-Cy593RGQ.js";import"./mui-BY8zvgs4.js";import{a as y}from"./sentry-Cx_bjk1I.js";import{w as ae}from"./withTransactionSidePanel-4Qi1EecU.js";import{p as ne,b as ce}from"./routePaths-Cr_t1xHP.js";import{u as Oe}from"./utils-B5-1mb3v.js";import{d as O}from"./decodeURIComponentSafe-imXO9fsR.js";import{Z as je}from"./ZeniAccountStatementScreen-BRW8WxDR.js";import"./recharts-RPqam0Wx.js";import"./analytics-DyMyvTxh.js";import"./plaid-BgClSQ5E.js";import"./dnd-CZ0pE10o.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bz1bpTt2.js";import"./lexical-oQNXHxEc.js";import"./pdf-DGbhE1eo.js";import"./useAskAiCfoHostNavButtonProps-BHH5iUyl.js";import"./useFetchSuggestedQuestionsWhenReady-Csr1Wwy2.js";import"./TransactionDetailScreen-CxbLldkU.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new a.Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="04bc8104-286c-44d6-a622-f3158abd63a1",a._sentryDebugIdIdentifier="sentry-dbid-04bc8104-286c-44d6-a622-f3158abd63a1")}catch{}})();const Le=["uncategorized-income","uncategorized-expense","miscategorized-income","miscategorized-expense","missing-receipts"],_=a=>Oe(a),ze=Z(function(a,e){const t=he(a.transactionState,a.transactionListState,e.selectedAccount.period,e.selectedAccount.timeframe,_(e.selectedAccount.tranListType));return{title:e.selectedAccount.title,subTitle:e.selectedAccount.subTitle,timeframe:e.selectedAccount.timeframe,timePeriod:H(e.selectedAccount.period),dataAvailableForPeriod:e.dataAvailableForPeriod,report:t,currentScrollYOffset:t.uiState?.scrollYOffset??0,isAccountingClassesEnabled:X(a)}},function(a,e){return{onBackClick:()=>{const t=te(e.location.state?.pathnameStackToGoBack),n=t.poppedPathname??"../../";e.navigate(n,{state:{pathnameStackToGoBack:t.newStack}})},onTimePeriodChange:(t,n,c)=>{e.closeSidePanel?.();const o=W.getLocalizedStrings(),s=_(e.selectedAccount.tranListType),r=Me(t,n,c,s,e.bookCloseDate);C.trackTransactionList(void 0,void 0,void 0,e.selectedAccount.title,void 0,!0),a(se({uiState:{dateRange:r},type:_(e.selectedAccount.tranListType)})),a(ue(s,T(r),!1,s==="missingReceipts"?o.uncategorizedTransactionList.missingReceipt.missingReceiptMinAmount:void 0)),e.onSelectedTimePeriodChange(T(r))},onTransactionItemClick:t=>{if(e.openTransactionPanel)return void e.openTransactionPanel(t.id,t.type);const n=ce(t,e.tenantEmailDomain),c=w(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(n,{state:{pathnameStackToGoBack:c}})},onTransactionListScroll:t=>{a(se({uiState:{scrollYOffset:t},type:_(e.selectedAccount.tranListType)}))}}})(ee),G=ae(function({...a}){const e=J(),t=R(),n=N(),c=t.pathname.split("/").find(d=>Le.includes(d)),o=c??"uncategorized-expense",{tenantEmailDomain:s}=Q(),r=W.getLocalizedStrings(),{accountType:p,title:A,subTitle:h}=Ce(o),S="month",k=j(d=>$(d)),D=k.company?.companyInfo.firstMonthOfFY??1,{dataAvailable:g,initialTimeframeTick:v}=Be(o,D,k.bookCloseDate),[E,B]=y.useState(!1),[x,M]=y.useState(void 0),l=y.useMemo(()=>{const d=T(v);return{tranListType:o,accountType:K(p),title:A,subTitle:h,timeframe:S,period:d}},[o,S,p,g]);y.useEffect(()=>{if(!E&&l!=null){B(!0),C.trackTransactionList(void 0,void 0,void 0,l.title);const d=_(l.tranListType);n(ue(d,l.period,!0,d==="missingReceipts"?r.uncategorizedTransactionList.missingReceipt.missingReceiptMinAmount:void 0))}},[E,l,n]);let P=l;return l!=null&&x!=null&&(P={...l,period:x}),c==null||P==null?i.jsx(z,{to:"../"}):i.jsx(ze,{firstMonthOfFY:D,tenantEmailDomain:s,location:t,useFixedPeriod:{timeframe:"month",numberOfPeriods:12},dataAvailableForPeriod:g,navigate:e,selectedAccount:P,referrerType:o,bookCloseDate:k.bookCloseDate,onSelectedTimePeriodChange:d=>M(d),...a})}),Ce=a=>{let e="",t="";const n=W.getLocalizedStrings();switch(a){case"uncategorized-income":e="income",t=n.uncategorizedTransactionList.income.title;break;case"uncategorized-expense":e="expenses",t=n.uncategorizedTransactionList.expense.title;break;case"miscategorized-expense":e="expenses",t=n.miscategorizedTransactionList.expense.title;break;case"miscategorized-income":e="income",t=n.miscategorizedTransactionList.income.title;break;case"missing-receipts":t=n.uncategorizedTransactionList.missingReceipt.title}return{accountType:e,title:t,subTitle:""}},Be=(a,e,t)=>{const n=ie();let c=ie().startOf("month").subtract(11,"month");return t!=null&&a!=="missing-receipts"?t.add(1,"day").isBefore(c)?{dataAvailable:{startDate:t.add(1,"day"),endDate:n},initialTimeframeTick:{startDate:c,endDate:n}}:(c=t.add(1,"day"),{dataAvailable:{startDate:c,endDate:n},initialTimeframeTick:{startDate:c,endDate:n}}):{dataAvailable:ne(5,e),initialTimeframeTick:{startDate:c,endDate:n}}},Me=(a,e,t,n,c)=>{let o=e;return n==="missingReceipts"||c==null?a.startDate.isBefore(e.startDate,t)?o={startDate:a.startDate,endDate:e.endDate}:a.startDate.isAfter(e.endDate,t)?o={startDate:e.startDate,endDate:a.endDate}:console.error(`Invalid addTimePeriod ${JSON.stringify(a)}`):o=a.startDate.isBefore(c,t)?{startDate:c.add(1,"day"),endDate:e.endDate}:{startDate:a.startDate,endDate:e.endDate},o},Fe=Z(function(a,e){const t=ke(a.transactionState,a.transactionListState,e.selectedAccount.accountId,e.selectedAccount.accountType,e.selectedAccount.classId,e.selectedAccount.timeframe,e.selectedAccount.period);return{accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,title:e.selectedAccount.title,timeframe:e.selectedAccount.timeframe,timePeriod:H(e.selectedAccount.period),dataAvailableForPeriod:ne(5,e.firstMonthOfFY),report:t,currentScrollYOffset:t.uiState?.scrollYOffset??0,isAccountingClassesEnabled:X(a)}},function(a,e){return{onBackClick:()=>{const t=te(e.location.state?.pathnameStackToGoBack),n=t.poppedPathname??Te();e.navigate(n,{state:{pathnameStackToGoBack:t.newStack}})},onTimePeriodChange:(t,n,c)=>{e.closeSidePanel?.();let o=n;t.startDate.isBefore(n.startDate,c)?o={startDate:t.startDate,endDate:n.endDate}:t.startDate.isAfter(n.endDate,c)?o={startDate:n.startDate,endDate:t.endDate}:console.error(`Invalid addTimePeriod ${JSON.stringify(t)}`),C.trackTransactionList(e.selectedAccount.accountId,void 0,e.referrerType,e.selectedAccount.title,void 0,!0),a(re({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,classId:e.selectedAccount.classId,uiState:{dateRange:o}})),a(me(e.selectedAccount.accountId,e.selectedAccount.accountType,e.selectedAccount.classId,T(o))),e.onSelectedTimePeriodChange(T(o))},onTransactionItemClick:t=>{if(e.openTransactionPanel)return void e.openTransactionPanel(t.id,t.type);const n=ce(t,e.tenantEmailDomain),c=w(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(n,{state:{pathnameStackToGoBack:c}})},onTransactionListScroll:t=>{a(re({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,classId:e.selectedAccount.classId,uiState:{scrollYOffset:t}}))}}})(ee),Ge=ae(function({referrerType:a,...e}){const t=J(),n=R(),c=N(),{tenantEmailDomain:o,accountTypeEncoded:s,accountIdEncoded:r,classIdEncoded:p,timeframe:A,startDate:h,endDate:S,titleEncoded:k}=Q(),D=O(s??""),g=O(r??""),v=O(p??""),E=O(k??""),B=j(f=>Se(f.transactionListState,g,D,v)),[x,M]=y.useState(!1),[l,P]=y.useState(void 0),d=j(f=>$(f)),V=d.company?.companyInfo.firstMonthOfFY??1;let u;const m=_e(D,g,v,A,h,S,E);if(m){const f={startDate:Y(h,"YYYY-MM-DD"),endDate:Y(S,"YYYY-MM-DD")},U=we(B?.dateRange,f);u={accountId:g,accountType:K(D),classId:v,title:E,timeframe:A,period:U}}y.useEffect(()=>{x||u==null||(M(!0),C.trackTransactionList(u.accountId,void 0,a,u.title),c(me(u.accountId,u.accountType,u.classId,u.period)))},[x,u,c]);let L=u;u!=null&&l!=null&&(L={...u,period:l});const F=[s,r,p,A,h,S,k].filter(f=>f!=null);return m&&L!=null?i.jsx(Fe,{firstMonthOfFY:V,tenantEmailDomain:o,location:n,navigate:t,selectedAccount:L,referrerType:a,onSelectedTimePeriodChange:f=>P(f),...e}):i.jsx(z,{to:Te(F.length)})}),Te=(a=7)=>{let e="../";for(let t=0;t<a;t++)e=`${e}../`;return e},_e=(a,e,t,n,c,o,s)=>a!=null&&e!=null&&t!=null&&n!=null&&c!=null&&o!=null&&(n==="month"||n==="quarter")&&Y(c,"YYYY-MM-DD").isValid()&&Y(o,"YYYY-MM-DD").isValid()&&s!=null,we=(a,e)=>a!=null&&a.endDate.isSame(e.endDate,"day")&&a.startDate.isBefore(e.startDate,"day")?T(a):T(e),Re=Z(function(a,e){const t=be(a.transactionState,a.transactionListState,e.selectedAccount.accountId,e.selectedAccount.accountType,e.selectedAccount.timeframe,e.selectedAccount.period),n=t.account?.coaId,c=e.isConnectedAccountProviderUnit&&ve(n??"");return{accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,title:e.selectedAccount.title,timeframe:e.selectedAccount.timeframe,timePeriod:H(e.selectedAccount.period),dataAvailableForPeriod:ne(5,e.firstMonthOfFY),report:t,currentScrollYOffset:t.uiState?.scrollYOffset??0,showStatementPageIcon:c,isAccountingClassesEnabled:X(a)}},function(a,e){return{onBackClick:()=>{const t=te(e.location.state?.pathnameStackToGoBack),n=t.poppedPathname??De();e.navigate(n,{state:{pathnameStackToGoBack:t.newStack}})},onTimePeriodChange:(t,n,c)=>{e.closeSidePanel?.();let o=n;t.startDate.isBefore(n.startDate,c)?o={startDate:t.startDate,endDate:n.endDate}:t.startDate.isAfter(n.endDate,c)?o={startDate:n.startDate,endDate:t.endDate}:console.error(`Invalid addTimePeriod ${JSON.stringify(t)}`),C.trackTransactionList(e.selectedAccount.accountId,void 0,e.referrerType,e.selectedAccount.title,void 0,!0),a(de({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,uiState:{dateRange:o}})),a(pe(e.selectedAccount.accountId,e.selectedAccount.accountType,T(o))),e.onSelectedTimePeriodChange(T(o))},onTransactionItemClick:t=>{if(e.openTransactionPanel)return void e.openTransactionPanel(t.id,t.type);const n=ce(t,e.tenantEmailDomain),c=w(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(n,{state:{pathnameStackToGoBack:c}})},onTransactionListScroll:t=>{a(de({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,uiState:{scrollYOffset:t}}))},onStatementPageIconClick:()=>{const t=Ue(e.tenantEmailDomain),n=w(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(t,{state:{pathnameStackToGoBack:n}})}}})(ee),le=ae(function({referrerType:a,...e}){const t=J(),n=R(),c=N(),{tenantEmailDomain:o,accountTypeEncoded:s,accountIdEncoded:r,timeframe:p,startDate:A,endDate:h,titleEncoded:S,excludeSubAccounts:k}=Q(),D=O(s??""),g=O(r??""),v=O(S??""),E=!(k!=null&&k==="exclude_subaccounts"),B=j(I=>Ie(I.transactionListState,g,D)),[x,M]=y.useState(!1),[l,P]=y.useState(void 0),d=j(I=>$(I)),V=d.company?.featuresActivationInfo.connectedAccountProvider==="unit",u=d.company?.companyInfo.firstMonthOfFY??1;let m;const L=$e(D,g,p,A,h,v);if(L){const I={startDate:Y(A,"YYYY-MM-DD"),endDate:Y(h,"YYYY-MM-DD")},ye=Ve(B?.dateRange,I);m={accountId:g,accountType:K(D),title:v,timeframe:p,period:ye}}let F=m;m!=null&&l!=null&&(F={...m,period:l});const{useFeatureGate:f}=fe(),{isFeatureEnabled:U}=f(q.isTransactionCommentingEnabled),{areTenantIdsInSync:oe}=Ee();y.useEffect(()=>{!x&&m!=null&&oe&&(M(!0),C.trackTransactionList(m.accountId,void 0,a,m.title),c(pe(m.accountId,m.accountType,m.period,void 0,!1,E)))},[x,m,c,oe]);const ge=[s,r,p,A,h,S].filter(I=>I!=null);return L&&F!=null?i.jsx(Re,{firstMonthOfFY:u,tenantEmailDomain:o,location:n,navigate:t,isConnectedAccountProviderUnit:V,isTransactionCommentingEnabled:U,selectedAccount:F,referrerType:a,onSelectedTimePeriodChange:I=>P(I),...e}):i.jsx(z,{to:De(ge.length)})}),De=(a=7)=>{let e="../";for(let t=0;t<a;t++)e=`${e}../`;return e},$e=(a,e,t,n,c,o)=>a!=null&&e!=null&&t!=null&&n!=null&&c!=null&&(t==="month"||t==="quarter")&&Y(n,"YYYY-MM-DD").isValid()&&Y(c,"YYYY-MM-DD").isValid()&&o!=null,Ve=(a,e)=>a!=null&&a.endDate.isSame(e.endDate,"day")&&a.startDate.isBefore(e.startDate,"day")?T(a):T(e),Ue=a=>`/${a}/transactions/${xe}/statements`;function pt(){const a=R().state?.referrer,e=Pe.getSignedInUser(),t=Ye(e),{useFeatureGate:n}=fe(),{isFeatureEnabled:c}=n(q.isExpenseAutomationEnabled),o=j(p=>p.expenseAutomationViewState.selectedPeriodByTenantId)[j(p=>$(p)).tenantId],{isFeatureEnabled:s}=n(q.isExpenseAutomationEnabledV2),r=s||c&&t;return i.jsxs(Ae,{children:[i.jsx(b,{path:"/:accountTypeEncoded/:accountIdEncoded/:timeframe/:startDate/:endDate/:titleEncoded/:excludeSubAccounts/*",element:i.jsx(le,{referrerType:a})}),i.jsx(b,{path:"/zeni-clearing-account/statements",element:i.jsx(je,{})}),i.jsx(b,{path:"/*",element:i.jsx(le,{referrerType:a})}),i.jsx(b,{path:"/uncategorized-income/*",element:i.jsx(G,{})}),i.jsx(b,{path:"/uncategorized-expense/*",element:r?i.jsx(z,{to:`../../month_end_close_checks/review/transaction_categorization/${o.month}-${o.year}`}):i.jsx(G,{})}),i.jsx(b,{path:"/miscategorized-income/*",element:i.jsx(G,{})}),i.jsx(b,{path:"/miscategorized-expense/*",element:r?i.jsx(z,{to:`../../month_end_close_checks/review/transaction_categorization/${o.month}-${o.year}`}):i.jsx(G,{})}),i.jsx(b,{path:"/missing-receipts/*",element:r?i.jsx(z,{to:`../../month_end_close_checks/review/missing_receipts/${o.month}-${o.year}`}):i.jsx(G,{})}),i.jsx(b,{path:"/by-class/:accountTypeEncoded/:accountIdEncoded/:classIdEncoded/:timeframe/:startDate/:endDate/:titleEncoded/*",element:i.jsx(Ge,{referrerType:a})})]})}export{pt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-
|
|
1
|
+
import{j as e}from"./liveblocks-CLqAhud6.js";import{j as B,u as L,h as P,l as O,g as f,N as U,k as M,n as xe,o as C}from"./core-aR0qKEiV.js";import{cm as V,eQ as v,Nf as R,Dp as ae,fe as H,D7 as ne,Nh as we,Ds as Te,Nd as Ie,Ne as se,Nw as ke,Bz as Ce,so as je,Nj as be,DD as Ae,Ng as re,cP as Z,wu as oe,eU as Ee,eW as De,Or as ve,Os as Fe,D8 as Ue,Ot as Be,D9 as Le,Di as Pe,bv as Re,bF as Ne,cx as Oe,bG as Me,cl as Ve,fd as ze,bs as _e,IU as $e,ck as Ge}from"./zeni-epic-state-deE-VpAu.js";import{d as z,an as We,z as A,A as _,e as j,b$ as He,c0 as Ze,c1 as W,Z as q,m as qe,U as Je,y as ie,S as D,F as Ke,x as Qe,c2 as Xe,aq as J,r as Ye,c3 as et,k as K,c4 as tt,B as X,c5 as at,a6 as nt}from"./index-Cy593RGQ.js";import{D as st,n as N,S as rt}from"./mui-BY8zvgs4.js";import ot from"./NotFoundScreen-YKkxofho.js";import{S as Y}from"./SetupPagesScreen-DeN_QNf8.js";import{a as d}from"./sentry-Cx_bjk1I.js";import{u as it}from"./useAskAiCfoHostNavButtonProps-BHH5iUyl.js";import{c as ct}from"./useFetchSuggestedQuestionsWhenReady-Csr1Wwy2.js";import{M as ce}from"./MobileAppDrawer-CuP4fq1B.js";import{F as lt}from"./FeaturePreviewScreen-IL56yObW.js";import{a as ee}from"./analyticsHelper-DN-X1P8T.js";import"./recharts-RPqam0Wx.js";import"./analytics-DyMyvTxh.js";import"./plaid-BgClSQ5E.js";import"./dnd-CZ0pE10o.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bz1bpTt2.js";import"./lexical-oQNXHxEc.js";import"./pdf-DGbhE1eo.js";import"./utils-B5-1mb3v.js";import"./routePaths-Cr_t1xHP.js";import"./BusinessVerificationPageScreen-x0C706ZJ.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]="05260296-60d5-40ba-ad19-1a4835f13f29",t._sentryDebugIdIdentifier="sentry-dbid-05260296-60d5-40ba-ad19-1a4835f13f29")}catch{}})();const ut=M(function(t,a){const{companyId:n}=a;return{treasurySetupView:R(t,n),analytics:j}},function(t,a){const{navigate:n,analytics:o,treasurySetupView:p}=a;return{onBackClick:()=>{n("../")},onNextClick:()=>{const r=p.fundAllocationLocalData;o.trackTreasuryPortfolioConfirm(r.riskScore,ee(r)),t(Te(!0))},onUpdateFundAllocation:r=>{o.trackTreasuryAllocationAction("update",ee(r)),t(we(r))}}})(He);function dt(){const t=B(),a=L(),n=P(),{tenantEmailDomain:o}=O(),p=z(),r=f(k=>k.treasurySetupViewState.portfolioAllocationUpdateStatus?.fetchState),m=We(r),s=V(p?.loggedInUserRoleMap),[c,i]=d.useState(!1),[y,I]=d.useState(!1),[u,l]=d.useState(!1),g=f(k=>v(k)),h=A.getSignedInUserTenant(o)?.companyId??g.companyId,w=A.getSignedInUser(),S=f(k=>R(k,h)),T=f(k=>k.treasurySetupViewState.fetchState),x=f(k=>k.treasurySetupViewState.currentAllocation.fetchStatus?.fetchState),F=f(k=>k.treasurySetupViewState.treasuryFundsDetails?.fetchStatus?.fetchState);if(w==null)throw Error("Can't access treasury portfolio allocation page without signing in...");if(d.useEffect(()=>{c||T!=="Not-Started"||h==null||(i(!0),n(ae(h,!0,!1)))},[c,T,h,n]),d.useEffect(()=>{u||F!=="Not-Started"||h==null||(l(!0),n(H()))},[u,F,h,n]),d.useEffect(()=>{y||x!=="Not-Started"||h==null||(I(!0),n(ne()))},[y,x,h,n]),d.useEffect(()=>{m==="In-Progress"&&r==="Completed"&&t("../")},[m,r,t]),g.companyTreasuryInfo?.info?.isTreasuryTOSAccepted===!1)return e.jsx(U,{to:"../promo"});const E=g.companyTreasuryInfo?.info?.isTreasuryTOSAccepted!==!0||T!=="Completed";return e.jsxs(e.Fragment,{children:[!E&&e.jsx(_,{analytics:j,onLoad:()=>{}}),e.jsx(ut,{navigate:t,location:a,companyId:h,isEditMode:!0,isLoading:E,isReadOnly:!s,treasurySetupView:S,analytics:j})]})}const pt=M(function(t,a){const n=a.currentTenant?.companyId;return{plaidConnectionDetails:ke(t,n,"zeni_treasury","treasury_setup").plaidConnectionDetails,treasurySetupView:R(t,n)}},function(t,a){const{navigate:n,transferDetails:o,treasurySetupView:p}=a,r=o.treasuryTransferMoneyLocalData,m=p.fundAllocationLocalData;return{onCancelClick:()=>{W(a.analytics,"cancel",r,m,"Transfer"),t(se()),n("../")},onTransferClick:()=>{W(a.analytics,"confirm",r,m,"Transfer"),t(Ae())},onSaveChangesToLocalStore:s=>{t(be(s))},onFetchLinkTokenClick:s=>{t(je("treasury_setup",s))},onEstablishConnectionClick:s=>{t(Ce(s,a.currentTenant?.companyId,"treasury_setup","zeni_treasury"))}}})(Ze),mt=({isFirstTransfer:t})=>{const a=B(),{tenantEmailDomain:n}=O(),o=P(),[p,r]=d.useState(!1),[m,s]=d.useState(!1),[c,i]=d.useState(!1),[y,I]=d.useState(!1),u=f(x=>x.treasurySetupViewState.fetchState),l=f(x=>x.treasurySetupViewState.treasuryFundsDetails?.fetchStatus?.fetchState),g=f(x=>x.treasurySetupViewState.currentAllocation.fetchStatus?.fetchState),h=f(x=>v(x)),w=A.getSignedInUserTenant(n)?.companyId??h.companyId,S=f(x=>Ie(x)),T=f(x=>R(x,w));if(A.getSignedInUser()==null)throw Error("Can't access treasury transfer page without signing in...");return d.useEffect(()=>{m||u!=="Not-Started"||w==null||(s(!0),o(ae(w,!0,!1)))},[m,u,w,o]),d.useEffect(()=>{c||l!=="Not-Started"||w==null||(i(!0),o(H()))},[c,l,w,o]),d.useEffect(()=>{y||g!=="Not-Started"||w==null||(I(!0),o(ne()))},[y,g,w,o]),e.jsxs(e.Fragment,{children:[e.jsx(_,{analytics:j,onLoad:()=>{}}),e.jsx(pt,{analytics:j,navigate:a,transferDetails:S,onAnotherTransferClick:()=>{r(!1),o(se())},currentTenant:h,treasurySetupView:T,showReviewContent:p,maxInsuredAmount:5e5,onReviewClick:()=>{W(j,"review",S.treasuryTransferMoneyLocalData,T.fundAllocationLocalData,"Transfer"),r(!0)},isFirstTransfer:t,setShowReviewContent:r,onBackClick:()=>{}})]})},ft=N.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-
|
|
1
|
+
import{j as l}from"./liveblocks-CLqAhud6.js";import{a as g}from"./sentry-Cx_bjk1I.js";import{j as M,u as Y,l as U,g as S,k as J,h as z,n as at,o as B,N as G}from"./core-aR0qKEiV.js";import{eQ as L,JX as Ee,JY as Ke,fR as X,cs as Ie,ct as be,v3 as St,JZ as nt,v7 as zt,H$ as ee,jC as te,v1 as Yt,uX as qt,J_ as Re,uP as Ht,uO as Wt,uI as Qt,uU as Zt,v8 as Xt,J$ as he,K0 as Ne,uQ as ea,K1 as pe,e$ as ft,vn as gt,vg as vt,K2 as xt,o3 as Tt,vb as yt,v9 as Dt,K3 as Ct,vu as Et,vr as It,vc as bt,vt as Me,Gr as kt,K4 as ta,K5 as aa,cv as na,K6 as sa,K7 as oa,K8 as me,K9 as ie,Ka as ke,I0 as Je,vJ as ye,H_ as De,vw as wt,v4 as Ge,Kb as la,I1 as H,Kc as $e,u_ as ia,Kd as ca,Ke as da,Kf as ze,Kg as Ye,Kh as qe,Ki as He,vD as we,Kj as At,vk as jt,Kk as ra,Kl as ua,Km as ha,Kn as pa,Ko as ma,Kp as Sa,Kq as fa,Kr as ga,sA as va,sB as xa,H5 as je,Ks as Ta,Kt as ya,i$ as Fe,bq as Da,Ku as Ca,Kv as Ea,kA as Ia,kJ as ba,H4 as Pe,bE as st,Kw as Ft,GM as Pt,Kx as ka,Ky as wa,Kz as Aa,kL as ja,KA as ot,KB as lt,KC as it,KD as ct,KE as Fa,kH as Pa,KF as _a,kK as Va,KG as La,KH as _t,Hr as Vt,j_ as Ba,KI as Oa,KJ as _e,KK as Lt,Hp as Bt,xW as Ua,KL as Ka,KM as Ra,ki as Ot,KN as Na,KO as Ma,HD as Ja,q9 as Ga,KP as Ut,KQ as dt,HA as Ve,KR as rt,KS as $a,HF as za,KT as Ya,KU as qa,KV as Ha,KW as Wa,KX as Qa,qc as Za,KY as Xa,I2 as en,KZ as tn,Hi as Le,gK as an,K_ as nn,K$ as sn,gI as on,L0 as ln,L1 as cn,x_ as dn,L2 as rn,L3 as un,L4 as hn,L5 as pn,k2 as mn,bn as Sn,eW as fn,eU as gn}from"./zeni-epic-state-deE-VpAu.js";import{z as K,an as Be,x as Kt,A as Q,e as j,X as Z,at as vn,r as N,D as Ce,v as ce,au as We,av as xn,aw as Tn,k as Qe,ax as yn,m as Dn,Z as de,F as Ze,y as ae,S as $,ay as Cn,j as Xe,az as En,aA as Rt,U as In,aB as bn,d as kn,aC as wn,aq as Nt,aD as An,o as W,C as jn,I as Mt,O as Fn,aE as Pn,aF as _n,g as et,aG as Vn,aH as Ln,p as Bn,aI as On,aJ as Un}from"./index-Cy593RGQ.js";import{n as R,D as Kn,S as Jt}from"./mui-BY8zvgs4.js";import{t as Rn,A as Nn}from"./AddressScreen-BvMQB8FF.js";import le from"./NotFoundScreen-YKkxofho.js";import{F as Mn}from"./FeaturePreviewScreen-IL56yObW.js";import{b as q,v as tt,c as Jn}from"./routePaths-Cr_t1xHP.js";import{p as Gt}from"./pathToGoBack-BgMfa4Fs.js";import{u as Se}from"./useAskAiCfoHostNavButtonProps-BHH5iUyl.js";import{c as fe}from"./useFetchSuggestedQuestionsWhenReady-Csr1Wwy2.js";import{M as ge}from"./MobileAppDrawer-CuP4fq1B.js";import{D as Gn}from"./DrawerScreen-DTAMBHDh.js";import{g as $n,m as zn}from"./accountMappingHelper-4acz-SwQ.js";import"./recharts-RPqam0Wx.js";import"./analytics-DyMyvTxh.js";import"./plaid-BgClSQ5E.js";import"./dnd-CZ0pE10o.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bz1bpTt2.js";import"./lexical-oQNXHxEc.js";import"./pdf-DGbhE1eo.js";import"./utils-B5-1mb3v.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]="73d604a3-e365-4c9c-88cd-f10b48a46e8a",e._sentryDebugIdIdentifier="sentry-dbid-73d604a3-e365-4c9c-88cd-f10b48a46e8a")}catch{}})();const Yn=Ce.getLocalizedStrings(),qn=J(function(e,a){const s=Ke(e,a.scheduleTab),t=e.tenantState.currentTenantId;return{authParams:{userId:a.signedInUser.userId??"",sessionId:a.signedInUser.zeniSessionId??"",tenantId:t??""},linkBillExpenseView:s.linkBillExpenseView,transactions:s.linkBillExpenseView.transactions}},function(e,a){const{navigate:s,location:t}=a;return{onTransactionSelect(n){e(nt({selectedTransaction:n}))},onBackClick:()=>{s("..",{relative:"path"})},onCancel(){e(nt({selectedTransaction:void 0})),e(zt()),s("..",{relative:"path"})},onTransactionClick:n=>{const o=`${q(n,a.tenantEmailDomain)}`,c=N(t.state?.pathnameStackToGoBack,t.pathname);s(o,{state:{pathnameStackToGoBack:c}})},onLinkSave(){a.setShouldNavigateBack(!1),e(St(a.scheduleTab,a.scheduleAccruedDetailsView.selectedJEAccruedSchedule?.jeScheduleId))}}})(vn),Hn=({setShouldNavigateBack:e})=>{const a=M(),s=Y(),{scheduleDetailId:t,tenantEmailDomain:n}=U(),{scheduleType:o}=U();if(n==null)throw Error("Can't access Link Bill Expense page without tenant Email Domain");const c=S(f=>L(f)),r=Ee(o)??"accrued_expenses",h=K.getSignedInUser();if(h==null)throw Error("Can't access Link Bill Expensedetail page without signing in...");if(t==null)throw Error("Invalid Schedule Detail Id");const i=S(f=>Ke(f,r)),m=i.selectedJELinkRowIndex,d=S(f=>X(f,c.companyId)),u=Be(i.updateStatus.fetchState);g.useEffect(()=>{u==="In-Progress"&&i.updateStatus.fetchState==="Completed"&&a("..",{relative:"path"})},[u,i.updateStatus.fetchState]),g.useEffect(()=>{i.fetchState==="Not-Started"&&a("..",{relative:"path"})},[]),g.useEffect(()=>{i.selectedJEAccruedSchedule!=null&&i.selectedJELinkRowIndex!=null||a("..",{relative:"path"})},[i.selectedJEAccruedSchedule,i.selectedJELinkRowIndex]);const p=i.linkBillExpenseView.fetchState==="Completed";return l.jsx(l.Fragment,{children:i.linkBillExpenseView.fetchState==="In-Progress"?l.jsx(Kt,{fetchState:i.linkBillExpenseView.fetchState}):i.selectedJEAccruedSchedule!=null&&m!=null?l.jsxs(l.Fragment,{children:[p===!0?l.jsx(Q,{analytics:j,onLoad:()=>{Wn(i,r,d)}}):null,l.jsx(qn,{signedInUser:h,attachmentEndPoint:`${Z}/vendor_attachments`,setShouldNavigateBack:e,scheduleVendorId:i.selectedJEAccruedSchedule.vendor.id??"",location:s,tenantEmailDomain:n,scheduleAccruedDetailsView:i,saveFetchState:i.updateStatus.fetchState,scheduleTab:r,navigate:a,analytics:j,controllerUserDetails:d,saveStatus:i.updateStatus.fetchState,jeAccruedSchedule:i.selectedJEAccruedSchedule,localData:i.scheduleAccruedDetailsLocalData.jeScheduleDetails[m]})]}):null})},$t=e=>{const a=Yn.dateFormat.analytics.YYYYDashMMDashDDFormat;return{scheduleCreateDate:e.createTime.format(a)??null,scheduleMonthlyAmount:e.recurringAmount??null,startingBalance:e.otherAttributes.startingBalance??null,scheduleAccountCategory:e.jeCredit.account?.accountName??null,description:e.memo,runningBalance:e.balanceAsOfToday??null,currentBalance:e.balanceAsOfToday??null,currentStatus:e.status.label,period:e.period??null,startMonth:e.startDate?.format(a)??null,endMonth:e.endDate?.format(a)??null}},Wn=(e,a,s)=>{const t=e.selectedJEAccruedSchedule,n=e.selectedJELinkRowIndex;let o;n!=null&&t!=null&&(o=t.scheduledJournalEntry[n]);const{transactions:c}=e.linkBillExpenseView,r=c.some(m=>m.isRecommendedTransaction===!0),h=Ie(s.controllers),i=be(s.controllerUserIds);t!=null&&j.trackScheduleAccruedDetailsJournalEntryLinkedLoaded({scheduleType:a,schedule:{...$t(t)},scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:{wasRecommendationAvailable:r,journalEntryPostingStatus:o?.status.label??""},vendorName:t.vendor.name??null,controllerEmails:h,controllerUserIds:i})},Qn=R.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
width: 100%;
|
package/dist/assets/{WiseConfirmationScreen-CUB6U8zj.js → WiseConfirmationScreen-BszKriUp.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as o}from"./liveblocks-
|
|
1
|
+
import{j as o}from"./liveblocks-CLqAhud6.js";import{a as f}from"./sentry-Cx_bjk1I.js";import{q as u,h,g as y,N as I}from"./core-aR0qKEiV.js";import{Jb as b,eR as w,zf as x}from"./zeni-epic-state-deE-VpAu.js";import{z as l,x as j,I as S,O as D}from"./index-Cy593RGQ.js";import{n as g}from"./mui-BY8zvgs4.js";import"./recharts-RPqam0Wx.js";import"./analytics-DyMyvTxh.js";import"./plaid-BgClSQ5E.js";import"./dnd-CZ0pE10o.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bz1bpTt2.js";import"./lexical-oQNXHxEc.js";import"./pdf-DGbhE1eo.js";import"./utils-B5-1mb3v.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]="522e62f3-6073-4bd1-961d-52d3d50561a8",e._sentryDebugIdIdentifier="sentry-dbid-522e62f3-6073-4bd1-961d-52d3d50561a8")}catch{}})();const A=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",p=e.get("profileId")??"",[n,m]=f.useState(!1),a=h(),i=y(c=>b(c)),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||(m(!0),a(x(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(j,{fetchState:"In-Progress"}))},E=g.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100vh;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as n}from"./liveblocks-
|
|
1
|
+
import{j as n}from"./liveblocks-CLqAhud6.js";import{j as Y,u as K,h as z,l as N,g as w,k as J,N as ne,n as Ve,o as k}from"./core-aR0qKEiV.js";import{eQ as M,O6 as Ce,O7 as $e,cl as te,cm as Ze,fd as Ne,ws as ke,AF as Ge,wm as Tn,O8 as On,O9 as Bn,wp as Fn,ww as fe,wj as Un,wg as Rn,MU as le,Oa as Ln,DZ as zn,J_ as Mn,D$ as _n,kj as Oe,Ob as Vn,pQ as He,pE as We,ka as Ye,kd as Be,J$ as Fe,K0 as $n,Oc as Zn,kc as Nn,kz as Gn,k1 as Hn,iA as Wn,iz as Yn,Od as Kn,Oe as ye,DG as Jn,Of as Qn,Og as Xn,MN as we,Oh as Ue,Oi as qn,Ea as et,Nw as nt,Bz as Ke,so as Je,Oj as tt,E7 as at,Ok as Qe,cN as Ae,Ee as Xe,fe as ot,eU as qe,eW as De,Ec as st,Bt as rt,E4 as it,Ol as en,Om as nn,DI as tn,DS as Re,On as ct,DM as lt,Oo as dt,Nk as ut,Ef as pt,bv as mt,bF as ht,cx as gt,bG as ft,bs as yt,IU as xt}from"./zeni-epic-state-deE-VpAu.js";import{d as ae,y as $,z as D,S as O,m as _,x as de,bP as Ct,X as Ie,Z as V,F as Q,k as an,an as kt,ac as Le,e as U,bQ as wt,aq as Se,bR as At,A as ue,bS as Dt,g as be,aK as W,bT as It,U as St,a9 as bt,bU as ze,bV as Et,r as ee,bW as vt,bX as jt,bY as Pt,bZ as Tt,a6 as Ot,o as Bt}from"./index-Cy593RGQ.js";import{n as R,D as X,S as q}from"./mui-BY8zvgs4.js";import ce from"./NotFoundScreen-YKkxofho.js";import{S as Me}from"./SetupPagesScreen-DeN_QNf8.js";import{F as on}from"./FeaturePreviewScreen-IL56yObW.js";import{a as u}from"./sentry-Cx_bjk1I.js";import{M as pe}from"./MobileAppDrawer-CuP4fq1B.js";import{A as Ft,D as Ut,V as Rt}from"./DomesticWireDetailScreen-D0UoKqzj.js";import{A as Lt}from"./AddressScreen-BvMQB8FF.js";import{u as sn}from"./useAskAiCfoHostNavButtonProps-BHH5iUyl.js";import{c as rn}from"./useFetchSuggestedQuestionsWhenReady-Csr1Wwy2.js";import{Z as zt}from"./ZeniAccountStatementScreen-BRW8WxDR.js";import"./recharts-RPqam0Wx.js";import"./analytics-DyMyvTxh.js";import"./plaid-BgClSQ5E.js";import"./dnd-CZ0pE10o.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bz1bpTt2.js";import"./lexical-oQNXHxEc.js";import"./pdf-DGbhE1eo.js";import"./utils-B5-1mb3v.js";import"./analyticsHelper-DN-X1P8T.js";import"./routePaths-Cr_t1xHP.js";import"./BusinessVerificationPageScreen-x0C706ZJ.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]="2f69bdd5-2fee-4186-a5bd-a7dd22300bb6",e._sentryDebugIdIdentifier="sentry-dbid-2f69bdd5-2fee-4186-a5bd-a7dd22300bb6")}catch{}})();const Mt=R.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-
|
|
1
|
+
import{j as i}from"./liveblocks-CLqAhud6.js";import{a as f}from"./sentry-Cx_bjk1I.js";import{j as x,h as j,u as $,l as v,g as p}from"./core-aR0qKEiV.js";import{I8 as s,I7 as B,Op as C,eQ as T,Oq as z}from"./zeni-epic-state-deE-VpAu.js";import{Z as D,aq as g,m as E,z as L,x as P,b_ as _,k as N}from"./index-Cy593RGQ.js";import{n as U}from"./mui-BY8zvgs4.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]="0e9229f6-aac8-49e6-851b-84a447de1b50",e._sentryDebugIdIdentifier="sentry-dbid-0e9229f6-aac8-49e6-851b-84a447de1b50")}catch{}})();const q=U.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100vh;
|
|
4
4
|
width: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./sentry-
|
|
1
|
+
import"./sentry-Cx_bjk1I.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]="aeade864-8999-4b65-a5fe-284d93c9cae4",e._sentryDebugIdIdentifier="sentry-dbid-aeade864-8999-4b65-a5fe-284d93c9cae4")}catch{}})();function d(e,t){if(t!=null)return e.find(n=>n.qboId===t)}function i(e,t){return e.filter(n=>n.qboId!=null&&t.includes(n.qboId))}function a(e,t){return t.map(n=>({accountId:d(e,n.accountId.selectedOption)?.accountId??"",expenseType:n.expenseType.selectedOption??"",type1099:n.type1099.selectedOption??"",boxType:n.boxType.selectedOption??""}))}export{d as a,i as g,a as m};
|