@zeniai/web-app-ui 5.0.58-qa → 5.0.59-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/AddressRoutes-DCzR8OCn.js +1 -0
- package/dist/assets/AddressScreen-wOBj-HCv.js +9 -0
- package/dist/assets/AiCfoScreen-mgggtkaf.js +11 -0
- package/dist/assets/BillPayApprovalRoutes-DpOlIs0w.js +1 -0
- package/dist/assets/{BillPayRoutes-D2Tg7wgV.js → BillPayRoutes-DsOASVf6.js} +17 -17
- package/dist/assets/{BusinessVerificationPageScreen-C6k9jXdD.js → BusinessVerificationPageScreen-sQFRd4a5.js} +2 -2
- package/dist/assets/{ChargeCardRoutes-DGM8_WGU.js → ChargeCardRoutes-BvjCZCM1.js} +8 -8
- package/dist/assets/CompanyPassportScreen-Bb3QEa8g.js +1 -0
- package/dist/assets/ConnectionAuthScreen-HAkvQi0a.js +11 -0
- package/dist/assets/CustomerOnboardingAuthScreen-C9kq-4yR.js +1 -0
- package/dist/assets/CustomerOnboardingRoutes-DgVb7oFC.js +23 -0
- package/dist/assets/{DashboardRoutes-Uo4GBKC0.js → DashboardRoutes-CbYO314V.js} +3 -3
- package/dist/assets/DefaultTenantHome-Cl3oeble.js +1 -0
- package/dist/assets/DomesticWireDetailScreen-BxjPgW4g.js +18 -0
- package/dist/assets/DrawerScreen-fnMWGCDN.js +1 -0
- package/dist/assets/EntityDetailRoutes-CRR-Co7H.js +1 -0
- package/dist/assets/{ExpenseAutomationRoutes-CXWvtRVx.js → ExpenseAutomationRoutes-1fQl0Xke.js} +4 -4
- package/dist/assets/FeaturePreviewScreen-DnTS-oKF.js +1 -0
- package/dist/assets/MagicLinkRoutes-B6rzPuXL.js +72 -0
- package/dist/assets/MagicLinkSignInScreen-Db1eJapB.js +12 -0
- package/dist/assets/MobileAppDrawer-CdvHcp3y.js +1 -0
- package/dist/assets/NotFoundScreen-dHkDEiYr.js +1 -0
- package/dist/assets/{NotificationRoutes-mnrF3FTe.js → NotificationRoutes-BJKu4JAu.js} +1 -1
- package/dist/assets/PandLWithForecastRoutes-CENmGG3d.js +1 -0
- package/dist/assets/{PeopleRoutes-CsuYvtlQ.js → PeopleRoutes-Bhy26jxp.js} +11 -11
- package/dist/assets/PerformanceRoutes-Dop8yWip.js +1 -0
- package/dist/assets/{Preview-wXrzgSff.js → Preview-BdiNXgsl.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-wABXktJg.js → QBOConnectionScreen-DUt8At1u.js} +1 -1
- package/dist/assets/ReferralListScreen-uHn3C3WN.js +5 -0
- package/dist/assets/ReimbursementApprovalRoutes-zxxsM58f.js +1 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-DzObIyx1.js → ReimbursementApprovalRuleDetailScreen-DRMJhziI.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-CCQVaplO.js → ReimbursementRoutes-BGbkr_F4.js} +10 -10
- package/dist/assets/ReportsRoutes--1_1buzs.js +1 -0
- package/dist/assets/RewardsRoutes-k-C7L1W1.js +1 -0
- package/dist/assets/ScreenRoutes-Bhtgp3oM.js +2 -0
- package/dist/assets/SettingsRoutes-CxkCoLng.js +57 -0
- package/dist/assets/{SetupPagesScreen-COv_gua1.js → SetupPagesScreen-t1qwVo9B.js} +5 -5
- package/dist/assets/SignInScreen-Ce31CJwl.js +1 -0
- package/dist/assets/SignOutScreen-CMhG0BW7.js +9 -0
- package/dist/assets/TaskListScreen-CtXjgdNK.js +9 -0
- package/dist/assets/TaskRoutes-BQRwFTHJ.js +9 -0
- package/dist/assets/TransactionDetailRoutes-BVTiA3QH.js +1 -0
- package/dist/assets/TransactionDetailScreen-BTI7Hev7.js +5 -0
- package/dist/assets/{TransactionListRoutes-Bx_mLk9x.js → TransactionListRoutes-CU8hzJNJ.js} +1 -1
- package/dist/assets/TreasuryRoutes-BYqjnRDC.js +37 -0
- package/dist/assets/{VendorsRoutes-C0uM8Aew.js → VendorsRoutes-5EVc2YXe.js} +15 -15
- package/dist/assets/WiseConfirmationScreen-ZkjgO4dq.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-BGWOkOQ-.js → ZeniAccountRoutes-BnXOljzp.js} +12 -12
- package/dist/assets/ZeniAccountStatementScreen-BqQv0Mce.js +9 -0
- package/dist/assets/{accountMappingHelper--WZjwY60.js → accountMappingHelper-CQTlmwyE.js} +1 -1
- package/dist/assets/{analytics-C-ZLKS9f.js → analytics-ByHRVeCB.js} +1 -1
- package/dist/assets/{analyticsHelper-P5_UP7e6.js → analyticsHelper-B_6gZROP.js} +1 -1
- package/dist/assets/{core-BQj7M3th.js → core-lRY8q-SH.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-Dx9zGDr_.js → decodeURIComponentSafe-0eiRE7c4.js} +1 -1
- package/dist/assets/{dnd-BYpXi-Dk.js → dnd-CMhEp_mV.js} +1 -1
- package/dist/assets/{empty-BFJN2IH3.js → empty-CZq7_yQf.js} +1 -1
- package/dist/assets/{empty-DBK1yAAC.js → empty-ah5a6CVJ.js} +1 -1
- package/dist/assets/{emptyVideoElement-CwDIvg9a.js → emptyVideoElement-By9zh8D8.js} +1 -1
- package/dist/assets/epic--tiFVypJ.js +2 -0
- package/dist/assets/getLocaleForTenant-DH__PKwo.js +1 -0
- package/dist/assets/{index-lPKfREcR.js → index-BQU54aX-.js} +1 -1
- package/dist/assets/{index-CjveyV3c.js → index-CHj7ka4F.js} +1 -1
- package/dist/assets/{index-Bm779pez.js → index-CS4Vz_Fp.js} +1 -1
- package/dist/assets/{index-CJBs8ioM.js → index-DIK11NcN.js} +1 -1
- package/dist/assets/{index-D-qVvPZr.js → index-DiIyLceg.js} +2 -2
- package/dist/assets/{index-BQ7khhyZ.js → index-Dnsz_nQf.js} +16580 -15569
- package/dist/assets/{index-BzKHSzkl.js → index-zZ7NY9vy.js} +1 -1
- package/dist/assets/{lexical-BaPJckwm.js → lexical-BmtgeH39.js} +1 -1
- package/dist/assets/{liveblocks-CSh9szRw.js → liveblocks-D9Sx1e8B.js} +1 -1
- package/dist/assets/{lottie--J-ULoDN.js → lottie-DzfKCG62.js} +1 -1
- package/dist/assets/{mui-DMFdcGMc.js → mui-Cmn0yvCy.js} +1 -1
- package/dist/assets/{pathToGoBack-CnSjU9UU.js → pathToGoBack-Cz43dcn6.js} +1 -1
- package/dist/assets/{pdf-DL0jKvKA.js → pdf-D0NW3LZJ.js} +3 -3
- package/dist/assets/{pdf-lib-dmJ6Rh_Z.js → pdf-lib-DeAE1iiD.js} +1 -1
- package/dist/assets/{plaid-Cotnt2Mn.js → plaid-DXs7JLSQ.js} +1 -1
- package/dist/assets/{pusher-B_NS064G.js → pusher-Bwusat-w.js} +1 -1
- package/dist/assets/{react-z8VmJ9hA.js → react-C0Emr0BF.js} +1 -1
- package/dist/assets/{react-DxEIAu6S.js → react-CiMvLbNh.js} +1 -1
- package/dist/assets/{react-XeV-ibmg.js → react-DMqPUVNq.js} +1 -1
- package/dist/assets/{react-DM6H-bCy.js → react-DsWw4QR8.js} +1 -1
- package/dist/assets/{react-b_yODjzg.js → react-DxOuIgsx.js} +1 -1
- package/dist/assets/{react-CbbZInsP.js → react-t0Ctas_F.js} +1 -1
- package/dist/assets/{recharts-CxcSvx_6.js → recharts-D0iRu1gV.js} +1 -1
- package/dist/assets/{routePaths-DVCbD1as.js → routePaths-C3HgDUd-.js} +1 -1
- package/dist/assets/{sentry-D9Y14zld.js → sentry-COVXlYUV.js} +1 -1
- package/dist/assets/{url-vwYwiNiZ.js → url-DbIKZPfx.js} +1 -1
- package/dist/assets/{url-C5MmWyLm.js → url-cK4WeZz8.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-BmcCsdUi.js +1 -0
- package/dist/assets/{useDeviceId-DisF7Ygt.js → useDeviceId-DQnlXnbu.js} +1 -1
- package/dist/assets/useFetchSuggestedQuestionsWhenReady-C6W2meRJ.js +1 -0
- package/dist/assets/useInitialThreadRequest--4GxT9so.js +1 -0
- package/dist/assets/{utils-DR9lX595.js → utils-CM-ExQDe.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-672jz7Vz.js → withTransactionSidePanel-DrxENSVz.js} +3 -3
- package/dist/assets/{zeni-epic-state-CQBcHxM0.js → zeni-epic-state-Dl7wxqBX.js} +7 -7
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/AddressRoutes-Bma0OfiA.js +0 -1
- package/dist/assets/AddressScreen-CafHmsdE.js +0 -9
- package/dist/assets/AiCfoScreen-Bmx6U0Rp.js +0 -11
- package/dist/assets/BillPayApprovalRoutes-BfnixDIc.js +0 -1
- package/dist/assets/CompanyPassportScreen-6bJBtnFy.js +0 -1
- package/dist/assets/ConnectionAuthScreen-BJz7YCTh.js +0 -11
- package/dist/assets/CustomerOnboardingAuthScreen-TG4VX17r.js +0 -1
- package/dist/assets/CustomerOnboardingRoutes-vZ4GZoYS.js +0 -23
- package/dist/assets/DefaultTenantHome-zjiLdRDr.js +0 -1
- package/dist/assets/DomesticWireDetailScreen-Blul-YPy.js +0 -18
- package/dist/assets/DrawerScreen-DYyPEmVC.js +0 -1
- package/dist/assets/EntityDetailRoutes-Fs1wxaU0.js +0 -1
- package/dist/assets/FeaturePreviewScreen-DOiJZe3G.js +0 -1
- package/dist/assets/MagicLinkRoutes-C0x0ECA-.js +0 -72
- package/dist/assets/MagicLinkSignInScreen-CKAAe33-.js +0 -12
- package/dist/assets/MobileAppDrawer-Cbf6eKaT.js +0 -1
- package/dist/assets/NotFoundScreen-BqN9xCy_.js +0 -1
- package/dist/assets/PandLWithForecastRoutes-D8b1Uyrc.js +0 -1
- package/dist/assets/PerformanceRoutes-CpkDwR47.js +0 -1
- package/dist/assets/ReferralListScreen-B5AVlzsF.js +0 -5
- package/dist/assets/ReimbursementApprovalRoutes-C_QtyZuv.js +0 -1
- package/dist/assets/ReportsRoutes-DHItSFDF.js +0 -1
- package/dist/assets/RewardsRoutes-SDWucbtM.js +0 -1
- package/dist/assets/ScreenRoutes-B5jhk5OY.js +0 -2
- package/dist/assets/SettingsRoutes-CGXQ4b0U.js +0 -57
- package/dist/assets/SignInScreen-CnFzddbd.js +0 -1
- package/dist/assets/SignOutScreen-BJnV-qr8.js +0 -9
- package/dist/assets/TaskListScreen-BEbP6MV_.js +0 -9
- package/dist/assets/TaskRoutes-CGpSZs94.js +0 -9
- package/dist/assets/TransactionDetailRoutes-BqrKmgWY.js +0 -1
- package/dist/assets/TransactionDetailScreen-BmICv2Q4.js +0 -5
- package/dist/assets/TreasuryRoutes-DYbLf4n6.js +0 -37
- package/dist/assets/WiseConfirmationScreen-C2MD3OAK.js +0 -12
- package/dist/assets/ZeniAccountStatementScreen-BZs8jx4o.js +0 -9
- package/dist/assets/epic-ChV_kVNy.js +0 -2
- package/dist/assets/getLocaleForTenant-N9soJqF6.js +0 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-Bvqw93U6.js +0 -1
- package/dist/assets/useFetchSuggestedQuestionsWhenReady-Z9FWtkNt.js +0 -1
- package/dist/assets/useInitialThreadRequest-JVMOcCBt.js +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardRoutes-Uo4GBKC0.js","assets/sentry-D9Y14zld.js","assets/core-BQj7M3th.js","assets/zeni-epic-state-CQBcHxM0.js","assets/index-BQ7khhyZ.js","assets/mui-DMFdcGMc.js","assets/analytics-C-ZLKS9f.js","assets/utils-DR9lX595.js","assets/withTransactionSidePanel-672jz7Vz.js","assets/useAskAiCfoHostNavButtonProps-Bvqw93U6.js","assets/useFetchSuggestedQuestionsWhenReady-Z9FWtkNt.js","assets/TransactionDetailScreen-BmICv2Q4.js","assets/decodeURIComponentSafe-Dx9zGDr_.js","assets/routePaths-DVCbD1as.js","assets/NotFoundScreen-BqN9xCy_.js","assets/analyticsHelper-P5_UP7e6.js","assets/CompanyPassportScreen-6bJBtnFy.js","assets/MobileAppDrawer-Cbf6eKaT.js","assets/FeaturePreviewScreen-DOiJZe3G.js","assets/ReferralListScreen-B5AVlzsF.js","assets/index-Bc34frN_.css","assets/BillPayRoutes-D2Tg7wgV.js","assets/AddressScreen-CafHmsdE.js","assets/DomesticWireDetailScreen-Blul-YPy.js","assets/useInitialThreadRequest-JVMOcCBt.js","assets/DrawerScreen-DYyPEmVC.js","assets/SetupPagesScreen-COv_gua1.js","assets/BusinessVerificationPageScreen-C6k9jXdD.js","assets/BillPayApprovalRoutes-BfnixDIc.js","assets/ReimbursementApprovalRuleDetailScreen-DzObIyx1.js","assets/getLocaleForTenant-N9soJqF6.js","assets/ReimbursementRoutes-CCQVaplO.js","assets/ReimbursementApprovalRoutes-C_QtyZuv.js","assets/TransactionListRoutes-Bx_mLk9x.js","assets/ZeniAccountStatementScreen-BZs8jx4o.js","assets/SettingsRoutes-CGXQ4b0U.js","assets/accountMappingHelper--WZjwY60.js","assets/QBOConnectionScreen-wABXktJg.js","assets/empty-DBK1yAAC.js","assets/index-Bm779pez.js","assets/url-vwYwiNiZ.js","assets/index-lPKfREcR.js","assets/ReportsRoutes-DHItSFDF.js","assets/ChargeCardRoutes-DGM8_WGU.js","assets/PeopleRoutes-CsuYvtlQ.js","assets/ExpenseAutomationRoutes-CXWvtRVx.js","assets/TreasuryRoutes-DYbLf4n6.js","assets/VendorsRoutes-C0uM8Aew.js","assets/pathToGoBack-CnSjU9UU.js","assets/ZeniAccountRoutes-BGWOkOQ-.js","assets/AddressRoutes-Bma0OfiA.js","assets/PandLWithForecastRoutes-D8b1Uyrc.js","assets/CustomerOnboardingRoutes-vZ4GZoYS.js","assets/TransactionDetailRoutes-BqrKmgWY.js","assets/EntityDetailRoutes-Fs1wxaU0.js","assets/NotificationRoutes-mnrF3FTe.js","assets/PerformanceRoutes-CpkDwR47.js","assets/RewardsRoutes-SDWucbtM.js","assets/TaskRoutes-CGpSZs94.js","assets/TaskListScreen-BEbP6MV_.js","assets/AiCfoScreen-Bmx6U0Rp.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as n,bn as os,eN as ls,eT as cs,eR as ds,eS as ms,fC as us,eP as _s,cO as Ae,cv as As,f8 as Es,cn as ps,bC as Is,bq as gs,fd as xs,v as Ts,Ij as hs,bv as js,Ik as Us,bE as Hs,fa as Rs,bD as Ds,bs,cj as ys,Il as fs,Im as Cs,cL as vs,cN as Os,cM as Ps,cu as Fs,cA as Ls,ml as Ee,eO as pe,fM as Bs,fh as Ie,fJ as ge,fK as xe,fi as ks}from"./zeni-epic-state-CQBcHxM0.js";import{j as e}from"./liveblocks-CSh9szRw.js";import{a as v}from"./sentry-D9Y14zld.js";import{h as Vs,j as Ss,l as Ns,u as Ms,g as z,i as Te,N as c,n as Zs,o as t}from"./core-BQj7M3th.js";import{h as ws,u as zs,z as R,a as Gs,c as $s,H as Ys,p as L,j as qs,L as B,D as he,t as _,P as Ws,d as X,l}from"./index-BQ7khhyZ.js";import"./mui-DMFdcGMc.js";import{f as je}from"./analyticsHelper-P5_UP7e6.js";import{t as Js}from"./getLocaleForTenant-N9soJqF6.js";import"./recharts-CxcSvx_6.js";import"./analytics-C-ZLKS9f.js";import"./plaid-Cotnt2Mn.js";import"./dnd-BYpXi-Dk.js";import"./stripe-DMRn4zHo.js";import"./lottie--J-ULoDN.js";import"./lexical-BaPJckwm.js";import"./pdf-DL0jKvKA.js";import"./utils-DR9lX595.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]="72f91958-afb5-425a-9c36-6093c5c66440",i._sentryDebugIdIdentifier="sentry-dbid-72f91958-afb5-425a-9c36-6093c5c66440")}catch{}})();const Ks={dashboard:()=>n(()=>import("./DashboardRoutes-Uo4GBKC0.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-D2Tg7wgV.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-CCQVaplO.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-Bx_mLk9x.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,34,20])),settings:()=>n(()=>import("./SettingsRoutes-CGXQ4b0U.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-DHItSFDF.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,14,18,10,24,13,17,20])),chargeCards:()=>n(()=>import("./ChargeCardRoutes-DGM8_WGU.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-CsuYvtlQ.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,14,9,10,17,20])),expenseAutomation:()=>n(()=>import("./ExpenseAutomationRoutes-CXWvtRVx.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-DYbLf4n6.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-C0uM8Aew.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-BGWOkOQ-.js"),__vite__mapDeps([49,1,2,3,4,5,6,7,14,26,17,15,13,27,18,23,22,9,10,34,20]))},Qs=["bills","transactions","settings","reimbursement","reports","chargeCards","people"],ee=i=>{"requestIdleCallback"in window?requestIdleCallback(i):setTimeout(i,100)},Xs=l(()=>n(()=>import("./ReportsRoutes-DHItSFDF.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,14,18,10,24,13,17,20]))),en=l(()=>n(()=>import("./AddressRoutes-Bma0OfiA.js"),__vite__mapDeps([50,1,2,3,22,4,5,6,7,14,20]))),sn=l(()=>n(()=>import("./PeopleRoutes-CsuYvtlQ.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,14,9,10,17,20]))),nn=l(()=>n(()=>import("./PandLWithForecastRoutes-D8b1Uyrc.js"),__vite__mapDeps([51,1,2,3,4,5,6,7,14,18,9,10,24,13,17,20]))),an=l(()=>n(()=>import("./CustomerOnboardingRoutes-vZ4GZoYS.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-C0uM8Aew.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-BqrKmgWY.js"),__vite__mapDeps([53,1,2,3,14,4,5,6,7,11,9,10,12,13,20]))),Ue=l(()=>n(()=>import("./EntityDetailRoutes-Fs1wxaU0.js"),__vite__mapDeps([54,1,2,3,4,5,6,7,12,8,9,10,11,13,20]))),on=l(()=>n(()=>import("./DashboardRoutes-Uo4GBKC0.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]))),He=l(()=>n(()=>import("./BillPayRoutes-D2Tg7wgV.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-CGXQ4b0U.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]))),Re=l(()=>n(()=>import("./ReimbursementRoutes-CCQVaplO.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-BGWOkOQ-.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-DYbLf4n6.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-Bx_mLk9x.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,34,20]))),un=l(()=>n(()=>import("./ChargeCardRoutes-DGM8_WGU.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-mnrF3FTe.js"),__vite__mapDeps([55,1,2,3,14,4,5,6,7,9,10,20]))),An=l(()=>n(()=>import("./PerformanceRoutes-CpkDwR47.js"),__vite__mapDeps([56,1,2,3,14,4,5,6,7,9,10,17,20]))),En=l(()=>n(()=>import("./ExpenseAutomationRoutes-CXWvtRVx.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-SDWucbtM.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,14,19,9,10,17,20]))),In=l(()=>n(()=>import("./TaskRoutes-CGpSZs94.js"),__vite__mapDeps([58,1,2,3,14,4,5,6,7,24,17,59,9,10,20]))),gn=l(()=>n(()=>import("./AiCfoScreen-Bmx6U0Rp.js"),__vite__mapDeps([60,1,2,3,4,5,6,7,48,20]))),y=l(()=>n(()=>import("./NotFoundScreen-BqN9xCy_.js"),__vite__mapDeps([14,1,2,3,4,5,6,7,20]))),xn=l(()=>n(()=>import("./TaskListScreen-BEbP6MV_.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}=zs(),b=R.getSignedInUserTenant(o)?.tenantId,h=R.getSignedInUser(),J=os(h),G=Ms(),[N,be]=v.useState(!1),r=z(a=>ls(a)),{useFeatureGate:P}=Gs(),K=$s(),ye=Ys(),{isFeatureEnabled:fe}=P(L.isExpenseAutomationEnabled),{isFeatureEnabled:Ce}=P(L.isExpenseAutomationEnabledV2),ve=Ce||fe&&J,{isFeatureEnabled:Oe}=P(L.isDepositAccountsFeatureEnabled),{isFeatureEnabled:Pe}=P(L.isTreasuryEnabled),{isFeatureEnabled:Fe}=P(L.isChargeCardFeatureEnabled),{isFeatureEnabled:se}=P(L.isDebitCardFeatureEnabled),j=z(a=>a.tenantState.fetchState),E=z(a=>a.tenantState.activeTenantFetchState.fetchState),u=E==="Completed"||j==="Completed"?cs(se,r):void 0,$=E==="Completed"||j==="Completed"?ds(r):void 0,Le=E==="Completed"||j==="Completed"?ms(r):void 0,Be=Fe||se||!!Le||!!$||!!u,{isFeatureEnabled:ke}=P(L.isSettingsFeatureEnabled),{isFeatureEnabled:Ve}=P(L.isAiCfoFileUploadEnabled),Y=z(a=>us(a));if(o!=null){const a=R.getSignedInUserTenant(o);h!=null&&a!=null&&je(h,r,S)}const w={tenantId:b,userId:h?.userId,sessionId:h?.zeniSessionId},ne=_s(),A=qs(),Se=r.company==null||A?.loggedInUserRoleMap!=null&&Ae(A.loggedInUserRole),Ne=As(A?.loggedInUserRoleMap),ae=v.useRef(!0),te=Te("/:tenantEmailDomain/onboarding/*")!==null,Q=Te("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*"),Me=z(a=>w.tenantId!=null?Es(a,w.tenantId):void 0);v.useEffect(()=>{f(B.TENANT_FETCHING),i(o)},[o]),v.useEffect(()=>{if(Q!=null&&b!=null){const a=Q.params.selectedPeriod;if(a!=null){const H=a.split("-");if(H.length===2){const d=ps(Number(H[0])),s=Number(H[1]),m=Is(`01-${d<10?`0${d}`:d}-${s}`,he.getLocalizedStrings().dateFormat.analytics.DDDashMMDashYYYY),M=gs();m.isAfter(M,"month")===!1?U(xs(b,{month:d,year:s})):V("./month_end_close_checks/review")}}}},[Q,b]),v.useEffect(()=>{N||(be(!0),f(B.TENANT_FETCHING)),ae.current?ae.current=!1:!Ts(ne,w)&&R.isSignedIn()&&(f(B.TENANT_FETCHING),function(a,H,d,s){if(pe(H?.userId,H?.zeniSessionId,a.tenantId),d(Bs(!0)),d(Ie(a.tenantId)),a.tenantId!=null&&_.clearTenant(a.tenantId),a.tenantId!=null){const m=R.getSignedInUserTenantWithId(a.tenantId);s&&he.updateAppLocaleID(Js(s)),m?.tenantEmailDomain!=null&&R.saveActiveTenantDomainForUser(m?.tenantEmailDomain)}a.userId!=null?X.identify(a.userId,{tenant_id:a.tenantId}):X.resetUserIdentity()}(w,h,U,Me))},[w,ne,h,U,R]),v.useEffect(()=>{R.isSignedIn()&&(f(B.TENANT_FETCHING),function(a,H,d,s,m,M,k){if(d==null&&s==null)return void console.warn("There is no current tenant selected!!");const q=s!=null&&m?.zeniSessionId!=null,ts=d==null||d.tenantId!==s,is=d!=null&&d.excludedResources==null,rs=d!=null&&d.externalConnections==null;if(q&&ts){k(Ie(s));const W=R.getSignedInUserTenantWithId(s);W?.tenantEmailDomain!=null&&R.saveActiveTenantDomainForUser(W?.tenantEmailDomain),pe(m?.userId,m?.zeniSessionId,s),_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),k(ge(m.userId,s))),_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),k(xe(m.userId,s)))}else q&&is&&_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),k(ge(m.userId,s))),q&&rs&&_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),k(xe(m.userId,s)));if(q){X.identify(m.userId,{tenant_id:s});const W=s==null||s!=null&&(H==="Completed"||H==="Error");a==="Completed"||H!=="Not-Started"&&H!=="Error"||s==null||!_.shouldFetchActiveTenant(s)||(_.markActiveTenantFetchStarted(s),M(B.TENANT_FETCHING),k(ks(m.userId,s,m.zeniSessionId))),W&&(a==="Not-Started"||a==="Error")&&_.shouldFetchAllTenants()&&(_.markAllTenantsFetchStarted(),k(Ee(m.userId,m.zeniSessionId)))}}(j,E,r,b,h,f,U))},[b,E]),v.useEffect(()=>{R.isSignedIn()&&j==="Completed"&&Y.tenantsBaseInOrder.length>0&&(Z(B.TENANT_FETCHING),R.saveSignedInUserTenants(hs(Y.tenantsBaseInOrder)),h!=null&&je(h,r,S,void 0,Y.tenantsBaseInOrder))},[Y,j,r,h]),v.useEffect(()=>{E==="In-Progress"&&f(B.TENANT_FETCHING),E!=="Completed"&&E!=="Error"||(E==="Completed"&&b!=null?(O(),_.markActiveTenantFetchCompleted(b)):E==="Error"&&b!=null&&(_.markActiveTenantFetchFailed(b),Z(B.TENANT_FETCHING),Z(B.TENANT_SWITCHING))),j!=="Completed"&&j!=="Error"||(j==="Completed"?_.markAllTenantsFetchCompleted():j==="Error"&&_.markAllTenantsFetchFailed())},[E,j,b,N]);const ie=v.useRef(!1);v.useEffect(()=>{!ie.current&&E==="Completed"&&N&&(ie.current=!0,function(a=Qs,H=3e3){setTimeout(()=>{const d=s=>{if(s>=a.length)return;const m=a[s],M=Ks[m];M!=null?M().then(()=>ee(()=>d(s+1))).catch(()=>ee(()=>d(s+1))):d(s+1)};ee(()=>d(0))},H)}())},[E,N]);const C=r?.userRole!=null&&js(r?.userRole),{isFeatureEnabled:Ze}=P(L.isReferralFeatureEnabled),we=r?.userRole!=null&&r.userRole.includes("charge_card_user"),ze=r?.userRole!=null&&r.userRole.includes("charge_card_admin"),F=r?.userRole!=null&&Ae(r.userRole),re=r?.company==null||r.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!C,oe=Be&&!C,Ge=Us(A?.loggedInUserRoleMap),$e=r.externalConnections?.accounting[0]?.isValid,le=r.company?.companyOnboardingInfo.isOnboardingCompleted,ce=r?.company==null||r.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!C,de=ce&&Hs(A?.loggedInUserRoleMap),me=Oe&&!C,Ye=r.company!=null&&Rs(r.company),qe=Pe&&Ye===!0&&!C,We=re&&Ds(A?.loggedInUserRoleMap),Je=oe&&bs(A?.loggedInUserRoleMap),Ke=me&&ys(A?.loggedInUserRoleMap),Qe=fs(A?.loggedInUserRoleMap),Xe=Cs(A?.loggedInUserRoleMap),p=vs(A?.loggedInUserRoleMap),I=Os(A?.loggedInUserRoleMap),g=Ps(A?.loggedInUserRoleMap),x=Fs(A?.loggedInUserRoleMap),T=Ls(A?.loggedInUserRoleMap),ue=re&&x,_e=ce&&T,es=me&&p,ss=qe&&I,ns=oe&&g,as=r.excludedResources?.resources?.find(a=>a.resource==="/invites")!=null||Ne===!0||Ge===!0||Qe===!0||Xe===!0;return R.isSignedIn()?b==null?j==="Completed"?e.jsx(c,{to:"/",replace:!0,state:{...G.state,message:"...",origin:G.pathname}}):(h!=null&&j!=="In-Progress"&&U(Ee(h.userId,h.zeniSessionId)),null):E!=="In-Progress"&&E!=="Not-Started"||j==="Completed"?(le===!0||J&&!te)&&$e===!1&&u===!1&&$===!1?(i(void 0),e.jsx(c,{to:"/connection/auth",replace:!0})):!N||le!==!1||te||J?N&&r?.userRole&&u!=null&&$!=null&&o!=null&&Object.keys(A.loggedInUserRoleMap).length>0?e.jsx(Zs,{children:e.jsxs(t,{element:e.jsx(Ws,{}),children:[e.jsx(t,{path:"/",element:e.jsx(Tn,{isDashboardAccess:F,isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,isTenantCardsOnly:$})}),e.jsx(t,{path:"dashboard/*",element:F?e.jsx(on,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reports/*",element:F?e.jsx(Xs,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"people/*",element:as||F?e.jsx(sn,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"forecast/*",element:F?e.jsx(nn,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,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||ze?e.jsx(rn,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"transactions/*",element:F&&C===!1?e.jsx(mn,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"customer/*",element:F&&C===!1?e.jsx(Ue,{entityType:"customer"}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isTenantBankingOnly:u,isUserHasTreasuryAccess:I,tenantEmailDomain:o})}),e.jsx(t,{path:"vendor/*",element:F&&C===!1?e.jsx(Ue,{entityType:"vendor"}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"tasks",element:e.jsx(xn,{})}),e.jsx(t,{path:"tasks/*",element:e.jsx(In,{})}),e.jsx(t,{path:"address/*",element:We||de||Ke||Je?e.jsx(en,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,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(An,{}):e.jsx(De,{tenantEmailDomain:o})}),e.jsx(t,{path:"month_end_close_checks/review/*",element:ve&&C===!1?e.jsx(En,{}):e.jsx(De,{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(He,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"bills/*",element:ue?e.jsx(He,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursement/*",element:_e?e.jsx(Re,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursements/*",element:_e?e.jsx(Re,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,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:K?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/",element:K?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/:session_id",element:K?e.jsx(gn,{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:{...G.state,message:"...",origin:G.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"}),D=({isUserHasZeniAccountsAccess:i,isUserHasChargeCardAccess:U,isUserHasBillPayAccess:V,isUserHasReimbursementAccess:o,isUserHasTreasuryAccess:S,isTenantBankingOnly:f,tenantEmailDomain:O})=>f===!0||i?e.jsx(Hn,{tenantEmailDomain:O}):S?e.jsx(Un,{tenantEmailDomain:O}):U?e.jsx(Rn,{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`}),Hn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/checking`}),Rn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/cards`}),De=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/dashboard`});export{D as FallBackRoute,wn as default};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-CSh9szRw.js";import{a as u}from"./sentry-D9Y14zld.js";import{j as T,u as R,h as P,g as m,k as B,l as _,n as q,o as x}from"./core-BQj7M3th.js";import{bn as Ie,eN as k,gv as ce,Ki as xe,IG as Ce,jq as le,lJ as Ee,gx as Ae,Kk as je,Kj as ke,MJ as we,x2 as Pe,Bx as ve,Mi as Me,Mr as De,c0 as re,cF as Ue,cG as Te,Iv as Fe,MK as Re,Iw as Be,vu as _e,ML as Ve,DN as Le,Bd as Oe,B4 as de,B1 as Ne,vy as ue,B7 as pe,Ba as ge,Bg as X,s5 as Y,vx as $e,j2 as W,j5 as me,MM as Ge,k6 as Ke,vN as ze,Jd as Je,Je as Ze,j0 as He,MN as Qe,j3 as qe,MO as We,vK as Xe,MP as Ye,MQ as en,Bu as nn,eR as fe,eT as he,MR as tn,fv as an,IH as sn,vJ as te,fA as ae,fz as on,vI as cn,fy as ln,fx as rn,MS as dn,eW as be,MT as un,MU as pn,vQ as gn,vH as se,MV as mn,fc as fn,vE as hn,bT as bn,b$ as Sn,b_ as yn,bU as In,bY as xn,bX as Cn,bW as En,bZ as An,bV as jn}from"./zeni-epic-state-CQBcHxM0.js";import{a as ee,p as D,z as C,ab as Se,bB as kn,d as G,f as wn,j as V,w as ne,bC as Pn,bD as vn,am as Mn,k as ye,bE as Dn,bF as Un,bG as Tn,a5 as Fn,M as Rn,bH as Bn,s as _n,bI as Vn}from"./index-BQ7khhyZ.js";import{n as U}from"./mui-DMFdcGMc.js";import{M as v}from"./MobileAppDrawer-Cbf6eKaT.js";import{a as N,g as $,m as Ln}from"./accountMappingHelper--WZjwY60.js";import{t as On,A as Nn}from"./AddressScreen-CafHmsdE.js";import F from"./NotFoundScreen-BqN9xCy_.js";import{g as $n}from"./analyticsHelper-P5_UP7e6.js";import{B as Gn}from"./BusinessVerificationPageScreen-C6k9jXdD.js";import{C as Kn}from"./CompanyPassportScreen-6bJBtnFy.js";import{q as oe}from"./QBOConnectionScreen-wABXktJg.js";import{B as zn}from"./BillPayApprovalRoutes-BfnixDIc.js";import{R as Jn}from"./ReimbursementApprovalRoutes-C_QtyZuv.js";import"./recharts-CxcSvx_6.js";import"./analytics-C-ZLKS9f.js";import"./plaid-Cotnt2Mn.js";import"./dnd-BYpXi-Dk.js";import"./stripe-DMRn4zHo.js";import"./lottie--J-ULoDN.js";import"./lexical-BaPJckwm.js";import"./pdf-DL0jKvKA.js";import"./utils-DR9lX595.js";import"./routePaths-DVCbD1as.js";import"./empty-DBK1yAAC.js";import"./pdf-lib-dmJ6Rh_Z.js";import"./index-Bm779pez.js";import"./url-vwYwiNiZ.js";import"./index-lPKfREcR.js";import"./decodeURIComponentSafe-Dx9zGDr_.js";import"./ReimbursementApprovalRuleDetailScreen-DzObIyx1.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]="6f9dafd9-d095-4b7e-b39c-ef8e47d3be38",e._sentryDebugIdIdentifier="sentry-dbid-6f9dafd9-d095-4b7e-b39c-ef8e47d3be38")}catch{}})();const Zn=U.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100%;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`,Hn=B(function(e,a){return{accountMappingView:a.accountMappingView,isFiling1099FeatureEnabled:a.isFiling1099FeatureEnabled,isAccruedExpensesFeatureEnabled:a.isAccruedExpensesFeatureEnabled,isAccountingClassesEnabled:le(e),isAccountingClassesUpdateInProgress:e.companyViewState.passportView?.accountingClassesUpdateStatus?.fetchState==="In-Progress",isAccountingProjectsEnabled:Ce(e),meetingUrl:"https://meetings.hubspot.com/niharn/zeni-onboarding-overview?embed=true"}},function(e,a){const{navigate:i,location:c,isFiling1099FeatureEnabled:o}=a;return{onAccountMappingChange:n=>{const{uncategorizedAccountSection:s,billsAccountSection:r,reimbursementsAccountSection:p,vendorsAccountSection:d,filing1099Section:f}=n,{incomeAccount:b,expenseAccount:g}=s,{billPayAccount:l}=r,{reimbursementsAccount:E}=p,{prepaidExpensesAccount:y,fixedAssetsAccount:j,accruedExpensesAccount:S}=d,{bankAccount:I,expenseCategory1099:L}=f,A=N(a.accountMappingView.incomeAccountList,b.selectedOption),K=N(a.accountMappingView.expenseAccountList,g.selectedOption),z=N(a.accountMappingView.billPayAccountList,l.selectedOption),J=N(a.accountMappingView.reimbursementsAccountList,E.selectedOption),O=$(a.accountMappingView.prepaidExpensesAccountList,y.selectedOptions),h=$(a.accountMappingView.fixedAssetsAccountList,j.selectedOptions),M=$(a.accountMappingView.accruedExpensesAccountList,S.selectedOptions),Z=$(a.accountMappingView.bankAccounts1099FilingAccountList,I.selectedOptions),H=Ln(a.accountMappingView.expenseAccounts1099FilingAccountList,L),Q={selectedIncomeAccountId:A?.accountId,selectedExpenseAccountId:K?.accountId,selectedBillPayAccountId:z?.accountId,selectedReimbursementsAccountId:J?.accountId,selectedPrepaidExpensesAccountIds:O.map(w=>w.accountId),selectedFixedAssetsAccountIds:h.map(w=>w.accountId),selectedAccruedExpensesAccountIds:M.map(w=>w.accountId),selectedBankAccounts1099FilingAccountIds:Z.map(w=>w.accountId),selectedExpenseAccounts1099FilingAccountIds:H};e(ke({data:Q}))},onBackClick:()=>{Se(c)===!1?(i("../../dashboard"),e(je())):e(ce())},onSaveClick:()=>{e(Ae()),o&&G.track(wn.Event.vendor1099AccountingSettingsSave)},onAccountingClassesToggle:n=>{e(Ee(a.currentTenant.companyId,n))}}})(kn),Qn=()=>{const e=T(),a=R(),i=P(),{useFeatureGate:c}=ee(),{isFeatureEnabled:o}=c(D.isFiling1099FeatureEnabled),{isFeatureEnabled:n}=c(D.isScheduledJEAccruedExpensesFeatureEnabled),s=C.getSignedInUser(),r=Ie(s),p=m(y=>k(y)),[d,f]=u.useState(!1),[b,g]=u.useState(!1);u.useEffect(()=>{d===!1&&(i(ce()),f(!0))},[d]);const l=m(y=>xe(y)),E=y=>{g(y)};return t.jsxs(Zn,{children:[t.jsx(v,{isAppContentDrawerOpen:b,handleDrawerToggle:E}),t.jsx(Hn,{currentTenant:p,navigate:e,accountMappingView:l,isFiling1099FeatureEnabled:o&&r,isAccruedExpensesFeatureEnabled:n,location:a,isSettings:Se(a),onClickMenuIcon:()=>E(!0)})]})},qn=U.div`
|
|
10
|
-
display: flex;
|
|
11
|
-
height: 100%;
|
|
12
|
-
width: 100%;
|
|
13
|
-
flex: 1 1 auto;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
align-items: center;
|
|
16
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
17
|
-
`,Wn=B(function(e,a){const i=k(e),c=Me(e),o=De(e),n=a.roleMap.bill_pay_admin;return{isDisabled:(re(i?.userRole??[])||n)&&"readonly",billpayApprovalView:c,remiApproverView:o,analytics:G}},function(e,a){const{navigate:i,currentTenant:c}=a;return{onSetupApprovalRulesBillPaySectionClick:()=>{i("bills/approval-rules")},onSetupApprovalRulesRemiSectionClick:()=>{i("reimbursements/approval-rules")},onBackClick:()=>{c?.companyBillPayInfo?.info?.isBillPayEnabled!=null&&c.companyBillPayInfo.info.isBillPayEnabled===!1?i("../.."):i("../")},onNavigateToDashboard:()=>{i("../dashboard")}}})(Pn),Xn=()=>{const e=T(),a=R(),i=P(),{tenantEmailDomain:c}=_(),[o,n]=u.useState(!1),[s,r]=u.useState(!1),[p,d]=u.useState(!1),f=m(S=>k(S)),b=m(S=>S.billPaySetupApproverViewState.fetchState),g=m(S=>S.remiSetupApproverViewState.fetchState),l=m(S=>we(S)),E=f.companyId??C.getSignedInUserTenant(c)?.companyId;if(C.getSignedInUser()==null)throw Error("Can't access Approval Rules settings page without signing in...");const y=V();u.useEffect(()=>{p||b!=="Not-Started"||(d(!0),i(Pe(!0)))},[p,b,i]),u.useEffect(()=>{s||g!=="Not-Started"||(r(!0),i(ve(!0)))},[s,g,i]);const j=S=>{n(S)};return y?.loggedInUserRoleMap!=null?t.jsxs(qn,{children:[t.jsx(v,{isAppContentDrawerOpen:o,handleDrawerToggle:j}),t.jsx(Wn,{navigate:e,location:a,companyId:E,currentTenant:f,roleMap:y.loggedInUserRoleMap,onClickMenuIcon:()=>{j(!0)}})]}):t.jsx(ne,{fetchState:l.fetchState})},Yn=U.div`
|
|
18
|
-
display: flex;
|
|
19
|
-
height: 100%;
|
|
20
|
-
width: 100%;
|
|
21
|
-
flex: 1 1 auto;
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
align-items: center;
|
|
24
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
25
|
-
`,et=B(function(e,a){const{companyId:i,isZeniAccountEnabled:c,isChargeCardEnabled:o,isBillPayEnabled:n,isRemiEnabled:s,isTreasuryEnabled:r}=a,p=k(e);return{bankSetupView:Ve(e,i,n,s,c,o,r),connectedAccountProvider:p.company?.featuresActivationInfo.connectedAccountProvider??"",analytics:G}},function(e,a){const{navigate:i,currentTenant:c,companyId:o}=a;return{onFetchLinkTokenClick:(n,s,r)=>{e(Y(s,n,r))},onEstablishConnectionClick:(n,s,r)=>{e(X(n,o,s,r))},onUpdatePaymentAccountStatus:(n,s,r,p,d)=>{e(ge(n,s,d,p,r))},onUpdatePaymentAccountLoginStatus:(n,s,r,p)=>{e(pe(!1,n,p,r,s))},onEstablishConnectionSuccess:(n,s)=>{e(ue(s,n))},onUpdateAccountClick:(n,s,r,p,d)=>{e(d==="paymentAccount"?de(n,s,r,p):Ne(p,n,s))},onUpdatePrimaryFundingAccount:(n,s,r)=>{e(Oe(o,s,n,r))},onRemoveConnection:n=>{e(Le(n))},onBackClick:()=>{c?.companyBillPayInfo?.info?.isBillPayEnabled!=null&&c.companyBillPayInfo.info.isBillPayEnabled===!1?i("../.."):i("../")},onNavigateToDashboard:()=>{i("../dashboard")}}})(vn),nt=()=>{const e=T(),a=R(),i=P(),{tenantEmailDomain:c}=_(),o=V(),[n,s]=u.useState(!1),[r,p]=u.useState(!1),d=m(I=>k(I)),f=m(I=>I.settingsViewState.bankConnection.fetchState),b=Ue(d,o?.loggedInUserRoleMap),g=Te(d,o?.loggedInUserRoleMap),l=Fe(d,o?.loggedInUserRoleMap),E=Re(d,o?.loggedInUserRoleMap),y=Be(d,o?.loggedInUserRoleMap),j=d.companyId??C.getSignedInUserTenant(c)?.companyId;if(C.getSignedInUser()==null)throw Error("Can't access bank connections page without signing in...");u.useEffect(()=>{r||f==="Completed"||(p(!0),i(_e(!1)))},[r,i,f]);const S=I=>{s(I)};return b||l||g||y?t.jsxs(Yn,{children:[t.jsx(v,{isAppContentDrawerOpen:n,handleDrawerToggle:S}),t.jsx(et,{navigate:e,location:a,companyId:j,currentTenant:d,roleMap:o.loggedInUserRoleMap,isBillPayEnabled:b,isRemiEnabled:g,isZeniAccountEnabled:l,isChargeCardEnabled:y,isTreasuryEnabled:E,onClickMenuIcon:()=>{S(!0)}})]}):t.jsx(F,{})},tt=U.div`
|
|
26
|
-
display: flex;
|
|
27
|
-
height: 100%;
|
|
28
|
-
width: 100%;
|
|
29
|
-
flex: 1 1 auto;
|
|
30
|
-
flex-direction: column;
|
|
31
|
-
align-items: center;
|
|
32
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
33
|
-
`,at=B(function(e,a){const{companyId:i}=a,c=k(e),o=a.roleMap.bill_pay_admin,n=Ge(e,i),{uiState:s}=n,r=(re(c?.userRole??[])||o)&&n.setupView.accountFetchStatus.fetchState!=="In-Progress"&&n.setupView.plaidConnectionDetails.link_account.updateStatus.fetchState!=="In-Progress"&&n.setupView.plaidConnectionDetails.update_account.updateStatus.fetchState!=="In-Progress"&&n.setupView.accountUpdateStatus.fetchState!=="In-Progress"?void 0:"readonly";return{billingSetupView:n,uiState:s,stripeKey:ye.stripeKey,isCardPaymentPopupOpen:!1,connectedAccountProvider:c.company?.featuresActivationInfo.connectedAccountProvider??"",isDisabled:r,analytics:G}},function(e,a){const{navigate:i,currentTenant:c,companyId:o}=a;return{onFetchLinkTokenClick:(n,s)=>{e(Y("billing_setup",n,s))},onEstablishConnectionClick:n=>{e(X(n,o,"billing_setup","billing"))},onEstablishConnectionSuccess:()=>{e(ue("billing","billing_setup"))},onUpdatePaymentAccountStatus:(n,s,r)=>{e(ge(n,s,"billing","billing_setup",r))},onUpdatePaymentAccountLoginStatus:(n,s)=>{e(pe(!1,n,"billing","billing_setup",s))},onUpdateAccountClick:(n,s)=>{e(de(n,s,"billing","billing_setup"))},onBackClick:()=>{c?.companyBillPayInfo?.info?.isBillPayEnabled!=null&&c.companyBillPayInfo.info.isBillPayEnabled===!1?i("../.."):i("../")},onNavigateToDashboard:()=>{i("../dashboard")},handleCreateCardSetupIntent:n=>{e(me(n))},handleConfirmCardSetupIntent:n=>{e(qe(n))},updateCardPaymentModalState:n=>{e(Qe({isCardPaymentPopupOpen:n}))},handleAddCardPaymentSource:(n,s,r)=>{e(He(n,s,r))},handleFetchPaymentSources:()=>{e(W())},resetCardPaymentViewState:()=>{e(Ze())},handleResetCardPaymentErrorStatuses:()=>{e(Je())},onBillingAddressSave:n=>{e(ze(n))},onAddressEditHandler:n=>{if(n!=null){const s=On(n);e(Ke({addressType:"subscription_billing_address",addressToCreate:s}))}}}})(Dn),st=()=>{const e=T(),a=R(),i=P(),{tenantEmailDomain:c}=_(),[o,n]=u.useState(!1),[s,r]=u.useState(!1),[p,d]=u.useState(!1),f=m(I=>k(I)),b=m(I=>I.cardPaymentViewState),g=m(I=>I.plaidAccountViewState.billing_setup.accountDetails.fetchStatus.fetchState),l=Mn(b.addCardPaymentSourceStatus.fetchState),E=b.addCardPaymentSourceStatus.fetchState,y=f.companyId??C.getSignedInUserTenant(c)?.companyId;if(C.getSignedInUser()==null)throw Error("Can't access bank connections page without signing in...");const j=V();u.useEffect(()=>{y!=null&&i($e(y,!1))},[y,i]),u.useEffect(()=>{s||(r(!0),i(W()))},[s,i]),u.useEffect(()=>{p||(me(["card"]),d(!0))},[p]),u.useEffect(()=>{l==="In-Progress"&&E==="Completed"&&i(W())},[l,E]);const S=I=>{n(I)};return j?.loggedInUserRoleMap!=null?t.jsxs(tt,{children:[t.jsx(v,{isAppContentDrawerOpen:o,handleDrawerToggle:S}),t.jsx(at,{navigate:e,location:a,companyId:y,currentTenant:f,roleMap:j.loggedInUserRoleMap,onClickMenuIcon:()=>{S(!0)},googleAPIKey:ye.googleMapsAPIKey})]}):t.jsx(ne,{fetchState:g})},ot=B(function(){return{meetingUrl:"https://meetings.hubspot.com/niharn/zeni-onboarding-overview?embed=true"}},function(e,a){const{navigate:i,integrationsView:c,tenantEmailDomain:o}=a;return{onBackClick:()=>{i("../")},onNavigateToDashboard:()=>{i("../dashboard")},onReconnectQBO:()=>{oe.init("/connection/auth",o),oe.handleClick()},onRefreshClick:()=>{c.integrations.refreshQBO.fetchState!=="In-Progress"&&e(Xe())}}})(Un),it=()=>{const e=T(),{tenantEmailDomain:a}=_(),[i,c]=u.useState(!1),o=m(g=>g.tenantState.fetchState),n=m(g=>k(g)),s=n.companyId??C.getSignedInUserTenant(a)?.companyId,r=C.getSignedInUser(),p=V(),d=p?.loggedInUserRole.includes("admin")===!0;if(r==null)throw Error("Can't access Integrations page without signing in...");const f=g=>{c(g)},b=m(g=>We(g,s));return p?.loggedInUserRoleMap!=null?t.jsxs(ct,{children:[t.jsx(v,{isAppContentDrawerOpen:i,handleDrawerToggle:f}),t.jsx(ot,{navigate:e,onClickMenuIcon:()=>{f(!0)},isAdmin:d,integrationsView:b,isLoading:o==="In-Progress",tenantEmailDomain:n.tenantEmailDomain})]}):t.jsx(ne,{fetchState:o})},ct=U.div`
|
|
34
|
-
display: flex;
|
|
35
|
-
height: 100%;
|
|
36
|
-
width: 100%;
|
|
37
|
-
flex: 1 1 auto;
|
|
38
|
-
flex-direction: column;
|
|
39
|
-
align-items: center;
|
|
40
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
41
|
-
`,lt=U.div`
|
|
42
|
-
display: flex;
|
|
43
|
-
height: 100%;
|
|
44
|
-
width: 100%;
|
|
45
|
-
flex: 1 1 auto;
|
|
46
|
-
flex-direction: column;
|
|
47
|
-
align-items: center;
|
|
48
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
49
|
-
`,rt=()=>{const e=P(),{tenantEmailDomain:a}=_(),[i,c]=u.useState(!1),o=m(l=>k(l)).companyId??C.getSignedInUserTenant(a)?.companyId,n=C.getSignedInUser();if(n==null)throw Error("Can't access my bank connections page without signing in...");const s=m(l=>Ye(l,n.userId)),r=m(l=>en(l,o,"bill_pay","user_reimbursement_account")),{plaidConnectionDetails:p}=r,d=l=>{c(l)},f=u.useCallback(l=>{e(Y("user_reimbursement_account",l))},[]),b=u.useCallback(l=>{e(X(l,o,"user_reimbursement_account",void 0,"link_account_no_microdeposit"))},[]);u.useEffect(()=>{s.fetchState!=="Completed"&&s.fetchState!=="In-Progress"&&e(nn(n.userId))},[n.userId,s.fetchState]);const g=s.fetchState==="Not-Started"||s.fetchState==="In-Progress";return t.jsxs(lt,{children:[t.jsx(v,{isAppContentDrawerOpen:i,handleDrawerToggle:d}),t.jsx(Tn,{plaidConnectionDetails:p,isLoading:g,myBankConnectionsView:s,onFetchLinkTokenClick:f,onEstablishConnectionClick:b,onClickMenuIcon:()=>{d(!0)}})]})},dt=U.div`
|
|
50
|
-
display: flex;
|
|
51
|
-
height: 100%;
|
|
52
|
-
width: 100%;
|
|
53
|
-
flex: 1 1 auto;
|
|
54
|
-
flex-direction: column;
|
|
55
|
-
align-items: center;
|
|
56
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
57
|
-
`,ie=({appContent:e})=>{const a=P(),i=T(),c=R(),[o,n]=u.useState(!1),s=m(h=>k(h)),{tenantEmailDomain:r}=s,p=s.companyId??C.getSignedInUserTenant(r)?.companyId;if(C.getSignedInUser()==null)throw Error("Can't access My Profile page without signing in...");const{useFeatureGate:d}=ee(),{isFeatureEnabled:f}=d(D.isDepositAccountsFeatureEnabled),{isFeatureEnabled:b}=d(D.isChargeCardFeatureEnabled),{isFeatureEnabled:g}=d(D.isDebitCardFeatureEnabled),{isFeatureEnabled:l}=d(D.isTreasuryEnabled),E=m(h=>le(h)),y=fe(s),j=he(g,s),S=!j&&E,I=Fn(s,b,g),{areTenantIdsInSync:L}=Rn();u.useEffect(()=>{L&&a(tn(p,S))},[p,a,S,L]);const A=m(h=>an(h,S)),K=A.fetchState==="Not-Started"||A.fetchState==="In-Progress"||p==null,z=sn(s),J=!!s.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,O=h=>{n(h)};return t.jsxs(dt,{children:[t.jsx(v,{isAppContentDrawerOpen:o,handleDrawerToggle:O}),e!=null?t.jsx(t.Fragment,{children:e}):t.jsx(Bn,{myProfileView:A,isAccountingClassesEnabled:E,isReimbursementDisabled:J===!1,isZeniAccountsDisabled:f===!1,isChargeCardDisabled:I===!1,isTreasuryDisabled:l===!1,isLiteRoleDisabled:z===!1,onClickMenuIcon:()=>{O(!0)},isLoading:K,isBankingOnlyTenant:j,isCardsOnlyTenant:y,onAddressClick:h=>{const M=function(H,Q){let w=`/${H}/settings/my_profile`;return w=w.concat(`/new/${Q}`),w}(r,h),Z=_n(c.state?.pathnameStackToGoBack,c.pathname);i(M,{state:{pathnameStackToGoBack:Z}})},onGetOtp:h=>{const M={...A.myProfileLocalData,phone:h};a(te({localData:M})),a(rn(h,"MyProfile"))},onResendOtp:h=>{a(ln(h,"MyProfile"))},onCancelClick:()=>{a(cn())},onSaveClick:()=>{a(ae("MyProfile",A.myProfileLocalData.phone,A.myProfileLocalData.otpChallenge,A.myProfileLocalData.dateOfBirth,A.addressData?.addressToCreate))},onVerifyOtp:(h,M)=>{a(on(h,M,"MyProfile"))},onVerifyOtpSuccess:h=>{h!=null&&C.saveZeniOtpToken(h),a(ae("MyProfile",A.myProfileLocalData.phone,A.myProfileLocalData.otpChallenge,A.myProfileLocalData.dateOfBirth,A.addressData?.addressToCreate))},updateMyProfileLocalData:h=>{a(te({localData:h}))}})]})};function ut(){const e=P(),a=m(l=>k(l)).companyId,i=m(l=>dn(l)),c=m(l=>be(l)),o=C.getSignedInUser(),[n,s]=u.useState(!1),r=u.useCallback(l=>{s(l)},[]),p=u.useCallback(l=>{e(un(l))},[]),d=u.useCallback(()=>{o?.userEmail!=null&&e(pn({loggedInUserEmail:o.userEmail}))},[o?.userEmail]),f=u.useCallback(()=>{e(gn())},[]);if(o==null)throw Error("Can't access Notification Settings page without signing in...");const b=u.useCallback(()=>{const l=c.notificationSettings.monthEndInsightsNotificationSettings.enabled!=null;e(se(l,a))},[a,c.notificationSettings.monthEndInsightsNotificationSettings.enabled]),g=u.useCallback(()=>{e(mn())},[]);return u.useEffect(()=>{if(c.fetchState==="Completed"&&i.fetchState!=="In-Progress"&&i.fetchState!=="Completed"){const l=c.notificationSettings.monthEndInsightsNotificationSettings.enabled!=null;e(se(l,a))}},[i.fetchState,a,c.notificationSettings.monthEndInsightsNotificationSettings.enabled,c.fetchState]),t.jsxs(t.Fragment,{children:[t.jsx(v,{isAppContentDrawerOpen:n,handleDrawerToggle:r}),t.jsx(Vn,{notificationSettingsView:i,onFormDataChange:p,onCancel:d,onSave:f,onClickMenuIcon:()=>{r(!0)},signedInUser:o,onRefresh:b,resetUpdateStatus:g})]})}function Jt(e){const[a,i]=u.useState(!1),c=m(l=>be(l)),o=m(l=>k(l)),n=V(),s=C.getSignedInUser(),r=P(),{useFeatureGate:p}=ee(),{isFeatureEnabled:d}=p(D.isDebitCardFeatureEnabled),f=s?.userEmail==null||c.fetchState!=="Completed"||fn(c.notificationSettings,s.userEmail,d,o);u.useEffect(()=>{c.fetchState!=="In-Progress"&&c.fetchState!=="Completed"&&a===!1&&(i(!0),r(hn()))},[c.fetchState,a]);const b=he(d,o),g=fe(o);return c.fetchState!=="In-Progress"&&c.fetchState!=="Not-Started"||f!==!0?bn(o)?t.jsxs(q,{children:[Sn(n?.loggedInUserRole??[],d,o,n?.loggedInUserRoleMap)&&t.jsx(x,{path:"accounting/*",element:t.jsx(Qn,{})}),yn(n?.loggedInUserRole??[],d,o,n?.loggedInUserRoleMap)&&t.jsx(x,{path:"approval_rules/*",element:t.jsx(pt,{hasAdminLevelAccess:e.hasAdminLevelAccess})}),In(o,n?.loggedInUserRoleMap)&&t.jsx(x,{path:"my_bank_connections",element:t.jsx(rt,{})}),xn(o,n?.loggedInUserRoleMap)&&t.jsx(x,{path:"bank_connections",element:t.jsx(nt,{})}),Cn(o,n?.loggedInUserRoleMap)&&t.jsx(x,{path:"business_verification",element:t.jsx(Gn,{productType:b?"zeni_accounts":g?"charge_cards":$n(o,n?.loggedInUserRoleMap)})}),En(n?.loggedInUserRole??[],o,n?.loggedInUserRoleMap)&&t.jsx(x,{path:"company_details",element:t.jsx(Kn,{})}),An(n?.loggedInUserRole??[],o)&&t.jsx(x,{path:"billing",element:t.jsx(st,{})}),jn(n?.loggedInUserRole??[],d,o)&&t.jsx(x,{path:"integrations",element:t.jsx(it,{})}),t.jsx(x,{path:"my_profile/new/:addressType",element:t.jsx(ie,{appContent:t.jsx(Nn,{isSubPage:!1})})}),t.jsx(x,{path:"my_profile",element:t.jsx(ie,{})}),f&&t.jsx(x,{path:"notifications",element:t.jsx(ut,{})}),t.jsx(x,{path:"*",element:t.jsx(F,{})})]}):t.jsx(q,{children:t.jsx(x,{path:"*",element:t.jsx(F,{})})}):null}function pt(e){return t.jsxs(q,{children:[t.jsx(x,{path:"/",element:t.jsx(Xn,{})}),t.jsx(x,{path:"bills/approval-rules/*",element:t.jsx(zn,{})}),t.jsx(x,{path:"reimbursements/approval-rules/*",element:e.hasAdminLevelAccess?t.jsx(Jn,{}):t.jsx(F,{})}),t.jsx(x,{path:"*",element:t.jsx(F,{})})]})}export{Jt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as f}from"./liveblocks-CSh9szRw.js";import{a as u,b as T,q as A}from"./sentry-D9Y14zld.js";import{h as D,j as z,g as c,u as j,N as M,k as O}from"./core-BQj7M3th.js";import{u as F,z as s,h as P,d as E,D as N,e as _,f as B,g as q,i as V,X as $,k as v}from"./index-BQ7khhyZ.js";import{eN as G,Ii as J,Ij as R,eO as W,fh as X,Io as H,fG as K,cS as Q,Ip as b,Iq as Y,Ir as Z,bR as y}from"./zeni-epic-state-CQBcHxM0.js";import"./mui-DMFdcGMc.js";import{u as ee}from"./useDeviceId-DisF7Ygt.js";import{f as te}from"./analyticsHelper-P5_UP7e6.js";import{t as ne}from"./getLocaleForTenant-N9soJqF6.js";import"./recharts-CxcSvx_6.js";import"./analytics-C-ZLKS9f.js";import"./plaid-Cotnt2Mn.js";import"./dnd-BYpXi-Dk.js";import"./stripe-DMRn4zHo.js";import"./lottie--J-ULoDN.js";import"./lexical-BaPJckwm.js";import"./pdf-DL0jKvKA.js";import"./utils-DR9lX595.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]="2710ab9d-fb3f-4866-9860-8c63eddcd81a",t._sentryDebugIdIdentifier="sentry-dbid-2710ab9d-fb3f-4866-9860-8c63eddcd81a")}catch{}})();const ie=O(function(t,i){const d=t.tenantState.fetchState,g=t.tenantState.sendEmailMagicLinkFetchState,{magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:l}=i;return{googleClientId:v.googleClientId,microsoftClientId:v.microsoftClientId,signInError:t.tenantState.error?.error,fetchState:d,sendMagicLinkStatus:g,magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:l}},function(t,i){const{location:d,navigate:g}=i;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,a)=>{A({message:`OAuth error from provider ${a} with error ${n}`,level:"error",tags:{authProvider:a,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,a)=>{const l=a==="google"?window.location.origin:window.location.origin+window.location.pathname;t(Z({authCode:n,oauthProvider:a,appType:"web",redirectUri:y(l),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(Y(n,a)))},clearSignInError:()=>{t(b())}}})($),ae=T.memo(ie);function ve({setTenantEmailDomain:t}){const i=D(),d=z(),{clearAllLoading:g}=F(),n=s.getSignedInUser();u.useLayoutEffect(()=>{g()},[g]);const a=ee(),l=c(e=>e.tenantState.magicLinkCodeVerifier),{sendEmailMagicLinkFetchState:h,accountLocked:C,accountUnlockTime:k}=c(e=>e.tenantState),p=c(e=>e.tenantState.fetchState),L=c(e=>e.tenantState.activeTenantFetchState.fetchState),I=c(e=>e.tenantState.signInState),o=c(e=>e.tenantState.loggedInUser),r=c(e=>G(e)),S=c(e=>J(e)),m=j(),w=P().mode,U=m.state?.magicLinkExpired,x=m.state?.magicLinkAlreadyUsed;if(u.useEffect(()=>{h.fetchState==="Completed"&&l!=null&&(E.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(l))},[h.fetchState,l]),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(X(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(H("Completed")),N.updateAppLocaleID(ne(r)),te(o,r,w,void 0,S.tenantsInOrder),K().then(()=>{const e=V();e!=null&&_(e)}),setTimeout(()=>{E.trackLogin(B.Event.loginSuccess,o.authProvider??"google",Q(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(M,{to:e,state:{...m.state,origin:""}})}return f.jsxs(f.Fragment,{children:[f.jsx(ae,{magicLinkExpired:!!U,magicLinkAlreadyUsed:!!x,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),C===!0&&k!=null?f.jsx(q,{onClose:()=>i(b()),unlockDate:k}):null]})}export{ve as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CSh9szRw.js";import{a}from"./sentry-D9Y14zld.js";import{h as c,u as m,j as p,N as g}from"./core-BQj7M3th.js";import{z as f,w as y,t as h,d,f as b}from"./index-BQ7khhyZ.js";import{fL as I,fM as x,IE as w}from"./zeni-epic-state-CQBcHxM0.js";import{n as j}from"./mui-DMFdcGMc.js";import"./recharts-CxcSvx_6.js";import"./analytics-C-ZLKS9f.js";import"./plaid-Cotnt2Mn.js";import"./dnd-BYpXi-Dk.js";import"./stripe-DMRn4zHo.js";import"./lottie--J-ULoDN.js";import"./lexical-BaPJckwm.js";import"./pdf-DL0jKvKA.js";import"./utils-DR9lX595.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]="d4164945-5231-40f4-a374-8f913310e2e0",e._sentryDebugIdIdentifier="sentry-dbid-d4164945-5231-40f4-a374-8f913310e2e0")}catch{}})();function q(){const e=c(),t=m(),i=p(),n=a.useRef(!1),l=f.isSignedIn(),r=t.state?.message==="logout",o=r||l;return a.useEffect(()=>{o&&!n.current&&(n.current=!0,setTimeout(()=>{try{f.clearAll(),e(I()),e(x(!1)),w(),h.reset(),d.trackLogout(b.Event.logoutSuccess),d.resetUserIdentity()}catch(u){console.error("Error during sign out:",u)}finally{r||i("/signin/auth",{replace:!0})}},0))},[o,r]),o?s.jsx(E,{children:s.jsx(y,{fetchState:"In-Progress"})}):s.jsx(g,{to:"../",replace:!0})}const E=j.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`;export{q as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as k}from"./liveblocks-CSh9szRw.js";import{a as T}from"./sentry-D9Y14zld.js";import{j as x,h as A,u as j,g as G,l as N,k as R}from"./core-BQj7M3th.js";import{z as $,a as v,p as K,y as U,d as _,f as z,cF as M,s as g,r as O}from"./index-BQ7khhyZ.js";import{eN as V,Pn as B,Fs as C,Po as L,Pj as W,ET as S,Pp as q,EX as I,Ew as X,Ft as b,Pq as w,gC as H,Fi as J,Fn as Q,Fa as Y,F8 as Z,Fo as aa,F5 as ta,Pr as ea,Ps as sa,Pt as oa,Pu as p,e9 as na,Pv as la,Pw as ra}from"./zeni-epic-state-CQBcHxM0.js";import{n as ia}from"./mui-DMFdcGMc.js";import{u as ca}from"./useAskAiCfoHostNavButtonProps-Bvqw93U6.js";import{c as da}from"./useFetchSuggestedQuestionsWhenReady-Z9FWtkNt.js";import{M as ka}from"./MobileAppDrawer-Cbf6eKaT.js";import"./recharts-CxcSvx_6.js";import"./analytics-C-ZLKS9f.js";import"./plaid-Cotnt2Mn.js";import"./dnd-BYpXi-Dk.js";import"./stripe-DMRn4zHo.js";import"./lottie--J-ULoDN.js";import"./lexical-BaPJckwm.js";import"./pdf-DL0jKvKA.js";import"./utils-DR9lX595.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="29ea01db-0cd8-453b-bd10-e80d119ddd70",t._sentryDebugIdIdentifier="sentry-dbid-29ea01db-0cd8-453b-bd10-e80d119ddd70")}catch{}})();const pa=ia.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${t=>t.theme.colors.grey4};
|
|
9
|
-
`,ua=R(function(t,e){const o=B(t,e.isTaskTemplatesEnabled),{taskGroupId:c}=e,n=c!=null&&c!==""?{...o,taskGroupsWithTasksList:o.taskGroupsWithTasksList.map(l=>({...l,tasks:l.tasks.filter(r=>r.taskGroupIds.includes(c))})).filter(l=>l.tasks.length>0)}:o;return{taskListView:n,tagListView:W(t),localData:n.localData,isTaskTemplatesEnabled:e.isTaskTemplatesEnabled}},function(t,e){const{navigate:o,currentTenant:c,location:n,isTaskTemplatesEnabled:l}=e,{tenantEmailDomain:r}=c,{groupByKey:u}=e.uiState;return{onTaskManagementRowClick:a=>{const s=ma(r,a),d=g(n.state?.pathnameStackToGoBack,n.pathname);o(s,{state:{pathnameStackToGoBack:d}})},onReloadTasks:()=>{t(C(!0,l))},onNewTaskClick:()=>{if(e.localData.defaultTaskGroupId!=null){const a=y(r,e.localData.defaultTaskGroupId),s=g(n.state?.pathnameStackToGoBack,n.pathname);o(a,{state:{pathnameStackToGoBack:s,message:"comingFromTaskListPage"}})}},onColumnSortConfigChanged:(a,s)=>{t(w({uiState:{sortKey:a,sortOrder:s}}))},onFiltersChange:a=>{t(oa({filters:a}))},onSearchTextChanged:a=>{t(sa({searchText:a}))},onReloadCards:()=>{t(C(!0,l))},onBackClick:()=>{if(n.state?.message==="triggerBackClick"){const a=O(n.state?.pathnameStackToGoBack),s=a.poppedPathname??"../";o(s,{state:{pathnameStackToGoBack:a.newStack}})}else o("../")},updateLocalData:a=>{t(ea({localData:a}))},resetLocalData:()=>{t(L({taskGroupById:e.taskGroupState.taskGroupById}))},handleCreateGroup:a=>{t(ta(e.localData.newTaskGroupName,a))},assignGroupToTasks:a=>{t(Z(e.localData.selectedTaskIds,a,aa(e.uiState.groupByKey,a)))},onDeleteTaskGroup:a=>{t(Y(a))},onAddNewTaskToTaskGroup:a=>{if(e.localData.defaultTaskGroupId!=null){const s=Ta(u,a);t(S({taskDetailLocalData:s}));const d=y(r,e.uiState.groupByKey==="groupName"?a:e.localData.defaultTaskGroupId),f=g(n.state?.pathnameStackToGoBack,n.pathname);o(d,{state:{pathnameStackToGoBack:f,message:"comingFromTaskListPage"}})}},onDragNDrop:(a,s)=>{t(Q(e.localData.selectedTaskIds.length>0?e.localData.selectedTaskIds:[a],s))},onTaskGroupRename:(a,s)=>{t(J(a,s))},onTimeSpentUpdate:(a,s)=>{t(b({task:a,updates:s}))},onShowToast:a=>{t(H(a))},onGroupByFilterChange:a=>{t(w({uiState:{groupByKey:a}}))},updateTask:(a,s)=>{t(b({task:a,updates:s}))},onCreateTagClick:(a,s)=>{t(X(a,s))},handleGroupTemplateClick:a=>{t(I(a,[]))},handleGroupTemplateTaskClick:(a,s)=>{t(I(a,[s]))},handleNewTaskInitialization:a=>{if(t(S({taskDetailLocalData:{...q,name:a}})),e.localData.defaultTaskGroupId!=null){const s=y(r,e.localData.defaultTaskGroupId),d=g(n.state?.pathnameStackToGoBack,n.pathname);o(s,{state:{pathnameStackToGoBack:d,message:"comingFromTaskListPage"}})}},onTaskGroupNameClick:a=>{o(`/${r}/tasks/group/${a}`)}}})(M);function ja(){const t=x(),e=A(),o=j(),c=$.getSignedInUser(),n=G(i=>V(i)),{taskGroupId:l}=N(),{useFeatureGate:r}=v(),{isFeatureEnabled:u}=r(K.isTaskTemplatesEnabled),[a,s]=T.useState(!1),[d,f]=T.useState(!1),h=G(i=>B(i,u)),D=G(i=>i.taskGroupState),m=h.fetchState,{isAiCfoAccessEnabled:E,onAskAiCfoClick:F}=ca({mobileExploreReferrer:"Task Checklist"});if(da({isDataReady:m==="Completed"}),T.useEffect(()=>{a||(s(!0),e(C(!1,u)))},[a,e]),T.useEffect(()=>{m==="Completed"&&e(L({taskGroupById:D.taskGroupById}))},[m,D.taskGroupById]),c==null)throw Error("Can't access task list page without signing in...");return k.jsxs(k.Fragment,{children:[m==="Completed"?k.jsx(U,{analytics:_,onLoad:i=>(P=>P.trackPageLoaded(z.Event.taskListPage))(i)}):null,k.jsxs(pa,{children:[k.jsx(ka,{isAppContentDrawerOpen:d,handleDrawerToggle:i=>{f(i)}}),k.jsx(ua,{location:o,navigate:t,currentTenant:n,taskGroupId:l,taskGroupState:D,localData:h.localData,uiState:h.uiState,isTaskTemplatesEnabled:u,taskListFetchState:m,isAiCfoAccessEnabled:E,onAskAiCfoClick:F})]})]})}const ma=(t,e)=>`/${t}/tasks/${encodeURIComponent(e)}`,y=(t,e)=>`/${t}/tasks/new/${e}`,Ta=(t,e)=>{if(t==="assignee"){const o=e.split(",");return{...p.taskDetailLocalData,assignee:o}}if(t==="priority"){const o=na(e);return{...p.taskDetailLocalData,priority:o}}if(t==="status"){const o=la(e);return{...p.taskDetailLocalData,status:o}}if(t==="tag"){const o=e.split(",");return{...p.taskDetailLocalData,tagIds:o}}if(t==="dueDate"){const o=ra(e);return{...p.taskDetailLocalData,dueDate:o}}return{...p.taskDetailLocalData}};export{ja as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CSh9szRw.js";import $ from"./NotFoundScreen-BqN9xCy_.js";import{a as m}from"./sentry-D9Y14zld.js";import{j as z,h as V,u as _,l as A,g as f,N as O,k as R,n as q,o as u}from"./core-BQj7M3th.js";import{$ as J,z as w,s as C,y as M,d as D,f as H,cE as Q,k as Z,ap as K,r as W}from"./index-BQ7khhyZ.js";import{eN as G,Pj as P,EP as b,ED as X,Ff as Y,Pk as v,Pl as ee,Ez as ae,Ew as te,pE as se,ps as ne,j_ as oe,EJ as ie,Pm as re,EG as le,EU as ce,ET as de}from"./zeni-epic-state-CQBcHxM0.js";import{n as me}from"./mui-DMFdcGMc.js";import{u as pe}from"./useInitialThreadRequest-JVMOcCBt.js";import{M as ue}from"./MobileAppDrawer-Cbf6eKaT.js";import ke from"./TaskListScreen-BEbP6MV_.js";import"./recharts-CxcSvx_6.js";import"./analytics-C-ZLKS9f.js";import"./plaid-Cotnt2Mn.js";import"./dnd-BYpXi-Dk.js";import"./stripe-DMRn4zHo.js";import"./lottie--J-ULoDN.js";import"./lexical-BaPJckwm.js";import"./pdf-DL0jKvKA.js";import"./utils-DR9lX595.js";import"./useAskAiCfoHostNavButtonProps-Bvqw93U6.js";import"./useFetchSuggestedQuestionsWhenReady-Z9FWtkNt.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]="15ec37e1-f4aa-4912-89fa-6175de2c2886",e._sentryDebugIdIdentifier="sentry-dbid-15ec37e1-f4aa-4912-89fa-6175de2c2886")}catch{}})();const fe=R(function(e,t){const{location:n,taskGroupId:l}=t,d=v(e,t.taskId),c=G(e),i=l!=null?ee(e.taskGroupState,l):void 0,p=w.getSignedInUser(),a=c.tenantId,r={userId:p?.userId??"",sessionId:p?.zeniSessionId??"",tenantId:a??""},k=P(e);return{taskDetailSelectorView:d,authParams:r,isNewClicked:n.state?.message==="comingFromTaskListPage",filesEndPoint:K.fileMicroServiceBaseUrl,companyName:t.currentTenant.companyName,companyId:t.currentTenant.companyId,currentUrl:`${Z.appUrl}${t.location.pathname}`,tagListView:k,taskGroupName:l!=null&&i!=null&&i.isDefault===!1?i.name:void 0}},function(e,t){const{taskId:n,navigate:l,currentTenant:d,location:c,taskGroupId:i}=t,{tenantEmailDomain:p}=d;return{onSaveChangesToLocalStore:a=>{e(de({taskDetailLocalData:a,taskId:n}))},onSaveDetailClick:()=>{e(ce(n,i))},onArchiveTaskClick:()=>{t.taskId!=null&&e(le(t.taskId))},onDismissClick:()=>{if(c.state?.message==="triggerBackClick"){const a=W(c.state?.pathnameStackToGoBack),r=a.poppedPathname??"../../dashboard";l(r,{state:{pathnameStackToGoBack:a.newStack}})}else{const a=B(p),r=C(c.state?.pathnameStackToGoBack,c.pathname);l(a,{state:{pathnameStackToGoBack:r}})}e(re({taskId:n}))},onDeleteTaskClick:()=>{e(ie(n))},updateFilesEntity:a=>{e(oe({files:a}))},onDeleteFile:a=>{e(ne(a))},onEditFileName:(a,r)=>{e(se(a,r.split(".")[0]))},onReloadTaskDetailPage:()=>{e(b(!1,n))},onCreateTagClick:a=>{e(te(a,n))},onDeleteTagClick:a=>{e(ae(a,n))}}})(Q);function I(){const e=z(),t=V(),n=_(),l=J(),{taskId:d,taskGroupId:c}=A(),i=f(o=>G(o)),p=pe(i?.companyId),[a,r]=m.useState(!1),[k,F]=m.useState(!1),[S,L]=m.useState(!1),[x,N]=m.useState(!1),y=f(o=>P(o)),E=f(o=>o.taskGroupViewState.fetchState);m.useEffect(()=>{k||(F(!0),t(b(!1,d)))},[k,t]),m.useEffect(()=>{S||y.fetchState==="Completed"||(L(!0),t(X()))},[S,t,y.fetchState]),m.useEffect(()=>{x||E==="Completed"||(N(!0),t(Y()))},[x,t,E]);const T=f(o=>v(o,d)),g=T.fetchState,j=w.getSignedInUser();if(j==null)throw Error("Can't access task detail page without signing in...");if(g==="Error"&&T.error?.code===400){const{tenantEmailDomain:o}=i,h=B(o),U=C(n.state?.pathnameStackToGoBack,n.pathname);return s.jsx(O,{to:h,state:{pathnameStackToGoBack:U}})}return s.jsxs(s.Fragment,{children:[g==="Completed"?s.jsx(M,{analytics:D,onLoad:o=>(h=>h.trackPageLoaded(H.Event.taskDetailPage))(o)}):null,s.jsxs(ge,{children:[s.jsx(ue,{isAppContentDrawerOpen:a,handleDrawerToggle:o=>{r(o)}}),s.jsx(fe,{analytics:D,currentTenant:i,handleZeniLogoClick:()=>{l.toggle()},initialOpenThreadRequest:p,location:n,loggedInUser:j,navigate:e,taskGroupId:c,taskId:d,taskDetailFetchState:g})]})]})}const ge=me.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`,B=e=>`/${e}/tasks`;function ze(){return s.jsxs(q,{children:[s.jsx(u,{path:"/new",element:s.jsx(I,{})}),s.jsx(u,{path:"/new/:taskGroupId",element:s.jsx(I,{})}),s.jsx(u,{path:"/group/:taskGroupId",element:s.jsx(ke,{})}),s.jsx(u,{path:"/:taskId",element:s.jsx(I,{})}),s.jsx(u,{path:"*",element:s.jsx($,{})})]})}export{ze as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-CSh9szRw.js";import i from"./NotFoundScreen-BqN9xCy_.js";import{T as r}from"./TransactionDetailScreen-BmICv2Q4.js";import"./sentry-D9Y14zld.js";import{n as d,o as e}from"./core-BQj7M3th.js";import"./zeni-epic-state-CQBcHxM0.js";import"./recharts-CxcSvx_6.js";import"./index-BQ7khhyZ.js";import"./mui-DMFdcGMc.js";import"./analytics-C-ZLKS9f.js";import"./plaid-Cotnt2Mn.js";import"./dnd-BYpXi-Dk.js";import"./stripe-DMRn4zHo.js";import"./lottie--J-ULoDN.js";import"./lexical-BaPJckwm.js";import"./pdf-DL0jKvKA.js";import"./utils-DR9lX595.js";import"./useAskAiCfoHostNavButtonProps-Bvqw93U6.js";import"./useFetchSuggestedQuestionsWhenReady-Z9FWtkNt.js";import"./decodeURIComponentSafe-Dx9zGDr_.js";import"./routePaths-DVCbD1as.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new o.Error().stack;n&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[n]="256f287b-7a3d-4d6d-890e-a8cb9db8b86d",o._sentryDebugIdIdentifier="sentry-dbid-256f287b-7a3d-4d6d-890e-a8cb9db8b86d")}catch{}})();function q(){return t.jsxs(d,{children:[t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId",element:t.jsx(r,{})}),t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId/page-not-found",element:t.jsx(i,{})}),t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId/vendor/create",element:t.jsx(r,{})}),t.jsx(e,{path:"/*",element:t.jsx(r,{})})]})}export{q as default};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{j as I}from"./liveblocks-CSh9szRw.js";import{a as d}from"./sentry-D9Y14zld.js";import{h as j,g as S,u as re,j as le,l as de,N as Re,k as Ge}from"./core-BQj7M3th.js";import{bn as je,eN as J,cO as ue,bv as me,pj as H,Jq as w,Kr as pe,Ks as Q,JQ as he,jB as fe,Kt as ge,JV as Y,JW as X,kq as Se,Gz as Z,Jk as _,jv as Te,jt as ve,jF as Ke,Ku as $e,Kv as qe,t8 as G,jA as ye,FW as Ee,cT as Me,cU as We,Kw as Je,Jj as He,Kx as Qe,tc as Ye,Ky as Xe,Kz as Ze,KA as ea,KB as aa,KC as ta,jE as na,KD as oa,KE as sa,Jl as ia,KF as ca,KG as ra,KH as la,FQ as da,FE as ua,G6 as ma,jG as pa,GA as ie,FN as ha}from"./zeni-epic-state-CQBcHxM0.js";import{z as De,a as ee,p as V,aJ as be,h as fa,q as ga,aK as Sa,C as Ta,r as M,j as va,aL as ya,s as W,d as Ce,aM as Ea,ap as Da,Q as q}from"./index-BQ7khhyZ.js";import{n as ba,S as Ca,D as Ia}from"./mui-DMFdcGMc.js";import{u as ka}from"./useAskAiCfoHostNavButtonProps-Bvqw93U6.js";import{c as Aa}from"./useFetchSuggestedQuestionsWhenReady-Z9FWtkNt.js";import{d as Ie}from"./decodeURIComponentSafe-Dx9zGDr_.js";import{h as ke,g as Ua,d as xa,b as _a}from"./routePaths-DVCbD1as.js";import{t as Va}from"./utils-DR9lX595.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]="6b9b2073-5e1d-49f8-a9f8-59ecb7571e92",a._sentryDebugIdIdentifier="sentry-dbid-6b9b2073-5e1d-49f8-a9f8-59ecb7571e92")}catch{}})();const ae=()=>{const a=De.getSignedInUser(),{useFeatureGate:e}=ee(),{isFeatureEnabled:s}=e(V.isChainOfThoughtEnabled);return d.useMemo(()=>je(a)&&s,[a,s])};function Ae(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=>J(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:T}=t(V.isVendorBulkUpdateOnTransactionEnabled),{isFeatureEnabled:C}=t(V.isExpenseAutomationEnabled),{configValue:h}=n(be.enableUncategorizedExpenseCategory),f=h?.uncategorized_expense_category_enabled===!0,k=ae(),v=d.useMemo(()=>({id:a,type:H(e)}),[a,e]),m=S(u=>w(u,v)),b=S(u=>{const N=w(u,v)?.transactionDetailLocalData.vendorUpdates?.id;return N==null?"Not-Started":u.transactionVendorViewState.editVendorStateById[N]?.saveStatus.fetchState??"Not-Started"}),p=d.useMemo(()=>m?.fetchState==="Completed"?Ae(m?.transaction):void 0,[m?.fetchState,m?.transaction]),E=S(u=>{if(p!=null)return pe(u.customerIncomeState,u.vendorExpenseState,u.trendState,p,"month")}),A=S(u=>Q(u)),B=S(u=>{if(p!=null)return he(u.trendWithTransactionsState,p,"TransactionDetail")}),K=o.company?.companyInfo.firstMonthOfFY??1,$=S(u=>fe(u.accountState,u.accountListState,"accountList")),[P,F]=d.useState(!1),[L,y]=d.useState(!1),[c,z]=d.useState(!1);d.useEffect(()=>{F(!1),y(!1),z(!1)},[a,e]);const D=d.useCallback(()=>{F(!1),y(!1)},[]),[U,x]=d.useState(!1),O=B?.selectedPeriod?.timePeriod;return d.useEffect(()=>{c||m==null||m.transaction==null||(s(ge({id:m.transaction.id,type:m.transaction.type})),z(!0)),p!=null&&(!i||l&&g===!1)&&(P?L||E==null||(y(!0),s(Z(p,"TransactionDetail",{timeframe:"month",timePeriod:O??E}))):(s(Y()),s(X()),F(!0),s(Se(p))))},[s,c,m?.fetchState,m?.transaction,p,i,l,g,P,L,E,O]),d.useEffect(()=>{A.newVendorState?.vendorDetailLocalData?.vendorName!=null?x(!0):x(!1)},[A.newVendorState?.vendorDetailLocalData?.vendorName]),d.useEffect(()=>()=>{s(_("common"))},[s]),{currentTenant:o,loggedInUserHasCardUserOrAdminRole:i,isUserHasDashboardAccess:l,isUserHasInvestorOrBankerAccess:g,isVendorBulkUpdateOnTransactionEnabled:T,isExpenseAutomationEnabled:C,isUncategorizedExpenseCategoryEnabled:f,isChainOfThoughtEnabled:k,selectedTransaction:v,transactionDetail:m,vendorSaveStatus:b,tranEntity:p,defaultTrendTransactionTimePeriod:E,vendorViewDetails:A,uiState:B,firstMonthOfFY:K,uncategorizedAccounts:$,resetTrendIsFetchedStates:D,isCreateVendorDrawerOpen:U,setIsCreateVendorDrawerOpen:x}}const Ba={overlayWidth:new Ta(100,100,58)},Fa=({isOpen:a,onSaveVendor:e,onSaveSuccess:s,onCancel:t,vendorViewDetails:n})=>{const o=fa(),i=ga(),l=j(),g=S(h=>Q(h)),T=()=>{t()},C={vendorDetailView:n??g,onSaveSuccess:()=>{l(ve()),l(Ke("Not-Started")),s()},onSaveVendor:e,onCancelClick:T,saveVendorDetailLocalData:h=>{l(Te({vendorId:void 0,localData:h}))}};return I.jsx(Ia,{anchor:"right",open:a,PaperProps:{style:{width:Ba.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.4,cursor:"pointer"}}},onClose:T,children:I.jsx(wa,{onClick:h=>h.stopPropagation(),children:I.jsx(Sa,{...C})})})},wa=ba(Ca)`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`,Pa=({closeDrawerHandler:a,overrideTransactionId:e,overrideTransactionType:s})=>{const t=re(),n=le(),o=j(),i=ae(),{transactionTypeEncoded:l,transactionId:g}=de(),T=e??g,C=s??Ie(l??"");let h;ke(T,C)&&(h={id:T,type:H(C)});const f=h!=null?S(v=>w(v,h)):void 0,k=()=>{const v=M(t.state?.pathnameStackToGoBack),m=v.poppedPathname??((b=2)=>{let p="../";for(let E=0;E<b;E++)p=`${p}../`;return p})(1);n(m,{state:{pathnameStackToGoBack:v.newStack}})};return{transactionId:h,onSaveVendor:()=>{o(ye(h,void 0))},onSaveSuccess:()=>{if(f!=null&&f?.transaction&&f?.transactionDetailLocalData.vendorUpdates?.qboId!=null&&f?.transactionDetailLocalData.vendorUpdates?.id!=null){const v=f?.transactionDetailLocalData.vendorUpdates,m={id:f?.transactionDetailLocalData.vendorUpdates?.qboId,zeniId:f?.transactionDetailLocalData.vendorUpdates?.id,type:"vendor",name:v?.name,qboId:f?.transactionDetailLocalData.vendorUpdates?.qboId??""},b={transactionId:{id:f?.transaction?.id,type:f?.transaction?.type},transaction:f?.transaction,lineIds:f?.transaction?.lines?.map(p=>p.id)??[]};o(G(m,f?.transaction?.amount.amount,b,!1,!1,i))}k()},onCancel:()=>{h!=null&&o($e({transactionId:h})),o(ve()),o(qe()),a(!0),k()}}},La=Ge(function(a,e){const s=w(a,e.selectedTransaction);let t;s==null&&console.warn("Check if the you've selected the transaction before getting the details");const n=De.getSignedInUser(),o=a.tenantState.currentTenantId,i={userId:n?.userId??"",sessionId:n?.zeniSessionId??"",tenantId:o??""};s!=null&&s.fetchState==="Completed"&&s.transaction!=null&&e.entity!=null&&(t=Je(a,e.entity,"TransactionDetail"));const l=a.entityAutoCompleteState.autoCompleteText.common,g=He(a,"common"),T=J(a);return{transactionDetail:s,transactionAttachmentEndpointToDownload:`${q}/transaction_attachment`,transactionAttachmentsEndpointToFetch:T.externalConnections?.accounting[0]?.connectionName==="netsuite"?`${q}/transaction_attachments_accounting_provider`:`${q}/transaction_attachments`,attachmentUploadEndpoint:`${Da.accountMicroServiceBaseUrl}`,isCOTEnabled:e.isCOTEnabled,authParams:i,trendReport:t,analytics:Ce,uncategorizedAccounts:e.uncategorizedAccounts,autoCompleteData:{autoCompleteText:l,entityAutoCompleteView:g},isVendorBulkUpdateOnTransactionEnabled:e.isVendorBulkUpdateOnTransactionEnabled,isExpenseAutomationEnabled:e.isExpenseAutomationEnabled,isUncategorizedExpenseCategoryEnabled:e.isUncategorizedExpenseCategoryEnabled,enableBackClickOnSave:e.location.state?.message?.startsWith("comingFromScheduleDetails")}},function(a,e){const{isCOTEnabled:s}=e;return{onBackClick:()=>{if(a(_("common")),e.onBackClick!=null)return void e.onBackClick();const t=M(e.location.state?.pathnameStackToGoBack),n=t.poppedPathname??Ue(2);e.navigate(n,{state:{pathnameStackToGoBack:t.newStack,message:"comingFromTransactionDetail"}})},discardTransactionDetailLocalData:(t,n)=>{e.transaction!=null&&a(ha({transactionId:{id:e.transaction.id,type:e.transaction.type},vendorId:t,customerId:n}))},onTransactionClick:t=>{e.resetTrendIsFetchedStates(),a(Y()),a(X());const n=W(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(_a(t,e.tenantEmailDomain),{state:{pathnameStackToGoBack:n}})},onTrendSelectedPeriodChange:t=>{if(t==null)e.defaultTrendTransactionTimePeriod!=null&&a(ie(e.entity,"TransactionDetail",{timeframe:"month",timePeriod:e.defaultTrendTransactionTimePeriod}));else{const n=t.currentTimePeriod==null?t.addTimePeriod:{startDate:t.addTimePeriod.startDate,endDate:t.currentTimePeriod.endDate};a(Z(e.entity,"TransactionDetail",{timeframe:t.timeframe,timePeriod:t.addTimePeriod})),a(ie(e.entity,"TransactionDetail",{timeframe:t.timeframe,timePeriod:n}))}},onSaveUpdates:(t,n,o,i)=>{a(i===!0&&o!=null?ye(t,o,!0,e.isExpenseAutomationEnabled,e.isUncategorizedExpenseCategoryEnabled):pa({transactionId:t,isExpenseAutomationEnabled:e.isExpenseAutomationEnabled,cotTransactionTracking:n,isUncategorizedExpenseCategoryEnabled:e.isUncategorizedExpenseCategoryEnabled})),a(_("common"))},onUploadAttachmentAttachment:t=>{a(ma(t))},onDeleteAttachment:t=>{e.transaction!=null&&a(ua(t,{id:e.transaction.id,type:e.transaction.type}))},onSaveTransactionDetailLocalData:(t,n)=>{a(da({transactionId:t,transactionLocalData:n}))},onUpdateAllChecked:(t,n,o,i)=>{e.transaction!=null&&a(la(e.selectedTransaction,e.transaction,t,n,o,i))},onResetLineItemsCategoryClassInLocalData:(t,n,o,i,l,g)=>{a(ra(t,n,o,i,l,g))},onChangeCategoryClassWhenUpdateAllIsChecked:(t,n)=>{e.transaction!=null&&a(ca({id:e.transaction.id,type:e.transaction.type},e.transaction,t,n))},onSaveSuccess:()=>{const t=M(e.location.state?.pathnameStackToGoBack);if(t.poppedPathname!=null){const n=Va(t.poppedPathname,"/").split("/"),o=n[n.length-1];if(["uncategorized-income","uncategorized-expense","missing-receipts"].includes(o)&&e.navigate(t.poppedPathname,{state:{pathnameStackToGoBack:t.newStack}}),e.location.state?.message==="comingFromScheduleDetails"){const i=`${Ua(e.tenantEmailDomain)}`;e.navigate(i)}else if(e.location.state?.message==="comingFromScheduleDetailsFixedAssets"){const i=`${xa(e.tenantEmailDomain)}`;e.navigate(i)}}},onPageRefresh:()=>{a(Ee(e.selectedTransaction,!0))},autoCompleteActions:{onAutoCompleteInputChange:(t,n)=>{t.trim().length>=2?a(ia({searchString:t,entityType:n,searchOrigin:"common"})):t.trim().length===0&&a(_("common"))},onCancelAutoComplete:()=>{a(_("common"))}},onFetchRecommendationsForEntity:(t,n,o,i)=>{a(G(t,n,o,i,!1,s))},clearRecommendationForLineId:t=>{const{transactionId:n,transaction:o,lineId:i}=t;a(sa(n,o,i))},resetUpdateErrorState:()=>{const t={id:e.selectedTransaction.id,type:e.selectedTransaction.type};a(oa(t))},onSaveVendorInLocalData:(t,n,o,i,l)=>{if(a(na({transactionId:t,vendorUpdates:n,entity:o})),n.id!=null&&o!=null&&i!=null&&l!=null&&a(G(o,i,l,!1,!1,s)),a(Te({vendorId:n.id?n.id:void 0,localData:{vendorName:n.name,vendorId:n.id?n.id:void 0}})),!n.id&&e.transaction!=null){const g=e.transaction,T=W(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(`/${e.tenantEmailDomain}/transaction/${encodeURIComponent(g.type??"")}/${g.id}/vendor/create`,{state:{pathnameStackToGoBack:T}})}},onSaveCustomerInLocalData:(t,n,o,i,l)=>{a(ta({transactionId:t,customerUpdates:n,entity:o})),n.id!=null&&o!=null&&i!=null&&l!=null&&a(G(o,i,l,!1,!1,s))},onUpdateAllTranactionsWithCurrentVendorChecked:t=>{a(aa({transactionId:{id:e.selectedTransaction.id,type:e.selectedTransaction.type},isUpdateEnabled:t}))},onClickUpdateVendorToAllLineItems:(t,n,o)=>{a(ea(t,n,o))},onResetVendorToAllLineItems:(t,n,o)=>{a(Ze(t,n,o))},saveLatestSelectedEntity:(t,n,o)=>{a(Xe({transactionId:t,lineId:n,entity:o}))},updateVendorBulkRecommendationsFetchStatus:(t,n)=>{a(Ye(t,n))},setIsVendorUpdateAllChecked:(t,n,o)=>{a(Qe(t,n,o))}}})(Ea);function Ya(){const a=le(),e=j(),s=re(),{useFeatureGate:t,useDynamicConfig:n}=ee(),o=va(),i=S(r=>J(r)),l=i.userRole.includes("charge_card_user")||i.userRole.includes("charge_card_admin"),g=i.userRole!=null&&ue(i.userRole),T=i.userRole!=null&&me(i.userRole),{isFeatureEnabled:C}=t(V.isVendorBulkUpdateOnTransactionEnabled),{isFeatureEnabled:h}=t(V.isExpenseAutomationEnabled),{configValue:f}=n(be.enableUncategorizedExpenseCategory),k=f?.uncategorized_expense_category_enabled===!0,{tenantEmailDomain:v,transactionTypeEncoded:m,transactionId:b}=de(),[p,E]=d.useState(!1),A=Ie(m??""),B=ke(b,A),K=S(r=>r.transactionVendorViewState),$=ae(),{isFeatureEnabled:P}=t(V.isTransactionCommentingEnabled),F=o?.currentTenant?.companyId,L=o?.currentTenant?.companyName;let y;B&&(y={id:b,type:H(A)});const c=y!=null?S(r=>w(r,y)):void 0,z=c?.transactionDetailLocalData.vendorUpdates?.id!=null?K.editVendorStateById[c?.transactionDetailLocalData.vendorUpdates.id]?.saveStatus.fetchState:"Not-Started",D=c?.fetchState==="Completed"?Ae(c?.transaction):void 0,U=S(r=>D!=null?pe(r.customerIncomeState,r.vendorExpenseState,r.trendState,D,"month"):void 0),x=S(r=>Q(r)),O=S(r=>D!=null?he(r.trendWithTransactionsState,D,"TransactionDetail"):void 0),u=i.company?.companyInfo.firstMonthOfFY??1,N=S(r=>fe(r.accountState,r.accountListState,"accountList")),[xe,te]=d.useState(!1),[_e,ne]=d.useState(!1),[Ve,Be]=d.useState(!1),oe=()=>{te(!1),ne(!1)},Fe=ya();d.useEffect(()=>{if(y!=null&&c!=null&&c.fetchState==="Not-Started")e(Ee(y)),oe();else if(y!=null&&c!=null&&c.fetchState==="Error"){const r=W(s.state?.pathnameStackToGoBack,s.pathname),R={pathnameStackToGoBack:r,message:"pageNotFound",origin:"transaction_detail"};Fe&&(R.message="expenseAutomation",R.origin="transaction_categorization",R.pathnameStackToGoBack=r),a("page-not-found",{replace:!0,state:R})}},[y]),d.useEffect(()=>{Ve||c==null||c.transaction==null||(e(ge({id:c.transaction.id,type:c.transaction.type})),Be(!0)),D==null&&c?.fetchState==="Completed"&&ce(c?.transaction),D!=null&&(!l||g&&T===!1)&&(xe?_e||U==null||(ne(!0),e(Z(D,"TransactionDetail",{timeframe:"month",timePeriod:O?.selectedPeriod?.timePeriod??U}))):(e(Y()),e(X()),ce(c?.transaction),te(!0),e(Se(D))))},[c?.fetchState,c?.transaction,U,l]),d.useEffect(()=>{x.newVendorState?.vendorDetailLocalData?.vendorName!=null?E(!0):E(!1)},[x.newVendorState?.vendorDetailLocalData?.vendorName]),d.useEffect(()=>()=>{e(_("common"))},[]);const we=[m,b].filter(r=>r!=null),{transactionId:se,onSaveVendor:Pe,onSaveSuccess:Le,onCancel:ze}=Pa({closeDrawerHandler:r=>{E(!1),a(r?"../":"../..")}}),{isAiCfoAccessEnabled:Oe,onAskAiCfoClick:Ne}=ka({mobileExploreReferrer:"Transaction Details"});return Aa({isDataReady:c?.fetchState==="Completed"}),B?I.jsxs(I.Fragment,{children:[se!=null&&p&&I.jsx(Fa,{isOpen:p,transactionId:se,onSaveVendor:Pe,onSaveSuccess:Le,onCancel:ze}),I.jsx(La,{hideDeleteAttachment:!0,firstMonthOfFY:u,isDisabled:c?.transaction?.type==="transfer"&&o?.connectionName==="netsuite"?"readonly":void 0,tenantEmailDomain:v,location:s,navigate:a,selectedTransaction:y,entity:D,isCOTEnabled:$,defaultTrendTransactionTimePeriod:U,resetTrendIsFetchedStates:oe,transaction:c?.transaction,uncategorizedAccounts:N,vendorSaveStatus:z,isVendorBulkUpdateOnTransactionEnabled:C,isExpenseAutomationEnabled:h,isUncategorizedExpenseCategoryEnabled:k,isAiCfoAccessEnabled:Oe,onAskAiCfoClick:Ne,isTransactionCommentingEnabled:P,companyId:F,companyName:L})]}):I.jsx(Re,{to:Ue(we.length)})}const Ue=(a=2)=>{let e="../";for(let s=0;s<a;s++)e=`${e}../`;return e},ce=a=>{if(a!=null){const{transactionCategory:e,transactionClass:s}=za(a),t=Oa(a);Ce.trackTransactionDetails(a.account?.accountId,a.account?.accountName,a.id,t,e.length>0?e:void 0,s.length>0?s:void 0,a.type,a.amount,a.memo,a.lines?.length??0,a.attachments?.map(n=>n.fileName))}},za=a=>{const e=[],s=[];return a.lines?.forEach(t=>{switch(t.type){case"transaction_with_account_and_class_line":case"transaction_with_product_or_service_line":case"journal_entry_transaction_line":case"linked_transaction_line":{const n=t;n!=null&&n.account!=null&&n.account.accountName?.length>0&&e.push(n.account.accountName),n.class!=null&&n.class.className?.length>0&&s.push(n.class.className);break}}}),{transactionCategory:e,transactionClass:s}},Oa=a=>Me(a)===!0?a.customer?.name??"":We(a)===!0?a.vendor?.name??"":a.memo!=null?a.memo:a.type;export{Fa as C,Ya as T,Pa as a,La as b,ae as c,Qa as u};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-CSh9szRw.js";import{j as B,u as M,h as U,l as N,g as f,N as L,k as V,n as xe,o as k}from"./core-BQj7M3th.js";import{ck as O,eN as D,MA as R,D6 as ae,fb as W,CQ as ne,MC as we,D9 as Te,My as Ce,Mz as se,MQ as Ie,Bg as ke,s5 as je,ME as be,Dk as Ae,MB as re,cN as Z,wb as oe,eR as Ee,eT as ve,NL as De,NM as Fe,CR as Le,NN as Be,CS as Me,C$ as Ue,bv as Re,bD as Pe,cv as Ne,bE as Ve,cj as Oe,fa as ze,bs as _e,Ik as $e,ci as Ge}from"./zeni-epic-state-CQBcHxM0.js";import{j as z,am as He,z as A,y as _,d as j,b$ as We,c0 as Ze,c1 as H,q,h as qe,M as Ke,a as ie,p as v,C as Je,w as Qe,c2 as Xe,ap as K,s as Ye,c3 as et,r as J,c4 as tt,I as X,c5 as at,a5 as nt}from"./index-BQ7khhyZ.js";import{D as st,n as P,S as rt}from"./mui-DMFdcGMc.js";import ot from"./NotFoundScreen-BqN9xCy_.js";import{S as Y}from"./SetupPagesScreen-COv_gua1.js";import{a as d}from"./sentry-D9Y14zld.js";import{u as it}from"./useAskAiCfoHostNavButtonProps-Bvqw93U6.js";import{c as ct}from"./useFetchSuggestedQuestionsWhenReady-Z9FWtkNt.js";import{M as ce}from"./MobileAppDrawer-Cbf6eKaT.js";import{F as lt}from"./FeaturePreviewScreen-DOiJZe3G.js";import{a as ee}from"./analyticsHelper-P5_UP7e6.js";import"./recharts-CxcSvx_6.js";import"./analytics-C-ZLKS9f.js";import"./plaid-Cotnt2Mn.js";import"./dnd-BYpXi-Dk.js";import"./stripe-DMRn4zHo.js";import"./lottie--J-ULoDN.js";import"./lexical-BaPJckwm.js";import"./pdf-DL0jKvKA.js";import"./utils-DR9lX595.js";import"./routePaths-DVCbD1as.js";import"./BusinessVerificationPageScreen-C6k9jXdD.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]="c3f14a5f-636f-4ec2-95d5-7329dd2f07ca",t._sentryDebugIdIdentifier="sentry-dbid-c3f14a5f-636f-4ec2-95d5-7329dd2f07ca")}catch{}})();const ut=V(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))}}})(We);function dt(){const t=B(),a=M(),n=U(),{tenantEmailDomain:o}=N(),p=z(),r=f(I=>I.treasurySetupViewState.portfolioAllocationUpdateStatus?.fetchState),m=He(r),s=O(p?.loggedInUserRoleMap),[c,i]=d.useState(!1),[y,C]=d.useState(!1),[u,l]=d.useState(!1),g=f(I=>D(I)),h=A.getSignedInUserTenant(o)?.companyId??g.companyId,w=A.getSignedInUser(),S=f(I=>R(I,h)),T=f(I=>I.treasurySetupViewState.fetchState),x=f(I=>I.treasurySetupViewState.currentAllocation.fetchStatus?.fetchState),F=f(I=>I.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(W()))},[u,F,h,n]),d.useEffect(()=>{y||x!=="Not-Started"||h==null||(C(!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(L,{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=V(function(t,a){const n=a.currentTenant?.companyId;return{plaidConnectionDetails:Ie(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:()=>{H(a.analytics,"cancel",r,m,"Transfer"),t(se()),n("../")},onTransferClick:()=>{H(a.analytics,"confirm",r,m,"Transfer"),t(Ae())},onSaveChangesToLocalStore:s=>{t(be(s))},onFetchLinkTokenClick:s=>{t(je("treasury_setup",s))},onEstablishConnectionClick:s=>{t(ke(s,a.currentTenant?.companyId,"treasury_setup","zeni_treasury"))}}})(Ze),mt=({isFirstTransfer:t})=>{const a=B(),{tenantEmailDomain:n}=N(),o=U(),[p,r]=d.useState(!1),[m,s]=d.useState(!1),[c,i]=d.useState(!1),[y,C]=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=>D(x)),w=A.getSignedInUserTenant(n)?.companyId??h.companyId,S=f(x=>Ce(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(W()))},[c,l,w,o]),d.useEffect(()=>{y||g!=="Not-Started"||w==null||(C(!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:()=>{H(j,"review",S.treasuryTransferMoneyLocalData,T.fundAllocationLocalData,"Transfer"),r(!0)},isFirstTransfer:t,setShowReviewContent:r,onBackClick:()=>{}})]})},ft=P.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${t=>t.theme.colors.grey4};
|
|
9
|
-
`,yt={overlayWidth:new Je(100,100,48)},gt=V(function(t,a){const n=re(t),{companyId:o}=a;return{treasuryDetail:n,treasurySetupView:R(t,o),downloadEndPoint:`${K.bankingMicroServiceBaseUrl}/1.0/treasury-account/statements?query={"statement_type":"tax_statement"}`}},function(t,a){const{navigate:n,currentTenant:o,location:p,handleDrawerToggle:r,analytics:m}=a,{tenantEmailDomain:s}=o;return{onSettingsClick:()=>{m.trackAccountsListPageClicked("Settings Icon"),n("setup")},onReloadTransactions:()=>{t(oe(!0))},handleTreasuryOptionSelection:c=>{let i="page-not-found";c==="editPortfolio"?i=ht(s):c==="statements"?i=St(s):c==="taxLetter"?i=xt(s):c==="settings"&&(i=wt(s));const y=Ye(p.state?.pathnameStackToGoBack,p.pathname);n(i,{state:{pathnameStackToGoBack:y}})},onColumnSortConfigChanged:(c,i)=>{t(De({uiState:{sortKey:c,sortOrder:i}}))},onTransferClick:()=>{n("./transfer")},onBackClick:()=>{n("../../")},onClickMenuIcon:()=>{r(!0)},onAutoTransferClick:()=>{n("../../checking/auto-transfer")}}})(Xe);function G({isTransferDrawerOpen:t,isEditPortfolioDrawerOpen:a}){const n=M(),o=B(),p=U(),r=q(),m=qe(),s=f(b=>D(b)),{tenantEmailDomain:c}=N(),i=s.companyId??A.getSignedInUserTenant(c)?.companyId,[y,C]=d.useState(!1),u=f(b=>re(b)),l=u.fetchState,g=u.accountSummary?.totalBalance?.amount,h=f(b=>b.treasurySetupViewState.treasuryFundsDetails?.fetchStatus),w=s.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",S=z(),T=!!s.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,x=O(S?.loggedInUserRoleMap),F=Z(S?.loggedInUserRoleMap),{areTenantIdsInSync:E}=Ke();d.useEffect(()=>{l==="Not-Started"&&!y&&E&&(C(!0),p(oe(!0)))},[y,p,l,E]),d.useEffect(()=>{u.transactionsFetchState.fetchState==="Completed"&&u.transactions.length===0&&!n.pathname.includes("transfer")&&x&&o("./transfer")},[u.transactionsFetchState.fetchState,u.transactions.length]);const I=()=>{o("..")},[le,ue]=d.useState(!1),Q=b=>{ue(b)},{isAiCfoAccessEnabled:de,onAskAiCfoClick:pe}=it({mobileExploreReferrer:"Treasury"});ct({isDataReady:l==="Completed"});const{useFeatureGate:$}=ie(),{isFeatureEnabled:me}=$(v.isDebitCardFeatureEnabled),{isFeatureEnabled:fe}=$(v.isAutoTransferRuleEnabled),{isFeatureEnabled:ye}=$(v.isTreasuryCommentingEnabled),ge=Ee(s),he=ve(me,s);if(ge===!0&&he!==!0)return e.jsx(lt,{});if(w){const b=h?.fetchState!=="Completed"||u.accountSummaryFetchState.fetchState!=="Completed";return e.jsxs(e.Fragment,{children:[u.accountSummaryFetchState.fetchState==="Completed"&&h?.fetchState==="Completed"&&t===!1&&a===!1?e.jsx(_,{analytics:j,onLoad:()=>{}}):null,e.jsx(st,{onClose:I,anchor:"right",open:a||t,transitionDuration:250,PaperProps:{style:{width:yt.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:m.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsxs(Tt,{onClick:Se=>Se.stopPropagation(),children:[t===!0?e.jsx(mt,{isFirstTransfer:u.transactions.length===0||g===0}):null,a===!0?e.jsx(dt,{}):null]})}),e.jsxs(ft,{windowSize:r,children:[e.jsx(ce,{isAppContentDrawerOpen:le,handleDrawerToggle:Q}),e.jsx(gt,{treasuryDetailsView:u,isAutoTransferRuleEnabled:fe,navigate:o,currentTenant:s,location:n,companyId:i,analytics:j,isTreasuryCommentingEnabled:ye,handleDrawerToggle:Q,isLoading:b,isAiCfoAccessEnabled:de,onAskAiCfoClick:pe})]})]})}return T&&x?e.jsx(L,{to:"../setup"}):s.companyTreasuryInfo?.info&&!T&&F?e.jsx(L,{to:"../promo",state:n.state}):e.jsx(Qe,{fetchState:"In-Progress",style:{backgroundColor:m.colors.grey5}})}const ht=t=>`/${t}/treasury/edit-portfolio`,St=t=>`/${t}/treasury/statements`,xt=t=>`/${t}/treasury/tax-letter`,wt=t=>`/${t}/treasury/setup`,Tt=P(rt)`
|
|
10
|
-
display: flex;
|
|
11
|
-
min-height: 100%;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
`,Ct=P.div`
|
|
14
|
-
display: flex;
|
|
15
|
-
height: 100vh;
|
|
16
|
-
width: 100%;
|
|
17
|
-
flex: 1 1 auto;
|
|
18
|
-
flex-direction: column;
|
|
19
|
-
align-items: center;
|
|
20
|
-
background-color: ${t=>t.theme.colors.grey4};
|
|
21
|
-
`;function It(){const t=B(),a=U(),n=q(),o=M(),p=`${K.bankingMicroServiceBaseUrl}/1.0/treasury-account`,[r,m]=d.useState(!1),s=f(l=>Fe(l));d.useEffect(()=>{r||s.fetchState!=="Not-Started"||(m(!0),a(Le(!1)))},[r,s.fetchState,a]);const c=A.getSignedInUser(),i=f(l=>D(l)),y={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:i.tenantId??""},C=i.company?.companyInfo.companyLegalName??i.companyName;if(c==null)throw Error("Can't access statements page without signing in...");const u=s.fetchState!=="Completed";return e.jsx(Ct,{windowSize:n,children:e.jsx(et,{currentTenantCompanyName:C,statementListView:s,isLoading:u,onBackClick:()=>{const l=J(o.state?.pathnameStackToGoBack),g=l.poppedPathname??"..";t(g,{state:{pathnameStackToGoBack:l.newStack}})},authParams:y,downloadEndPoint:p})})}const kt=P.div`
|
|
22
|
-
display: flex;
|
|
23
|
-
height: 100vh;
|
|
24
|
-
width: 100%;
|
|
25
|
-
flex: 1 1 auto;
|
|
26
|
-
flex-direction: column;
|
|
27
|
-
align-items: center;
|
|
28
|
-
background-color: ${t=>t.theme.colors.grey4};
|
|
29
|
-
`;function jt(){const t=B(),a=q(),n=M(),o=U(),p=`${K.bankingMicroServiceBaseUrl}/1.0/treasury-account`,[r,m]=d.useState(!1),s=f(l=>Be(l));d.useEffect(()=>{r||s.fetchState!=="Not-Started"||(m(!0),o(Me(!1)))},[r,s.fetchState,o]);const c=A.getSignedInUser(),i=f(l=>D(l)),y={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:i.tenantId??""},C=i.company?.companyInfo.companyLegalName??i.companyName;if(c==null)throw Error("Can't access tax letter page without signing in...");const u=s.fetchState!=="Completed";return e.jsx(kt,{windowSize:a,children:e.jsx(tt,{currentTenantCompanyName:C,taxLetterListView:s,isLoading:u,onBackClick:()=>{const l=J(n.state?.pathnameStackToGoBack),g=l.poppedPathname??"..";t(g,{state:{pathnameStackToGoBack:l.newStack}})},authParams:y,downloadEndPoint:p})})}const bt=V(function(t,a){const{companyId:n}=a,o=R(t,n);return{treasurySetupView:o,isSetupComplete:o.companyTreasuryInfo?.businessVerificationStatus?.code==="verified",videoUrl:"https://www.youtube.com/watch?v=sqvJWKCMZgk",meetingUrl:"https://meetings.hubspot.com/yoshi-araki/treasury-product-schedule-demo-link?embed=true"}},function(t,a){const{navigate:n,companyId:o}=a;return{onSetupButtonClick:()=>{t(Ue(o))},onBackClick:()=>{n("../..",{relative:"path"})},onTreasurySetupSuccess:p=>{n(p?"..":"../setup",{relative:"path"})}}})(at),At=()=>{const t=B(),a=M(),n=U(),{tenantEmailDomain:o}=N(),[p,r]=d.useState(!1),m=f(S=>D(S)),[s,c]=d.useState(!1),i=f(S=>S.treasurySetupViewState.treasuryFundsDetails?.fetchStatus);d.useEffect(()=>{s||i?.fetchState!=="Not-Started"||y==null||(c(!0),n(W()))},[i,n]);const y=A.getSignedInUserTenant(o)?.companyId??m.companyId,C=A.getSignedInUser(),u=!!m.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,l=S=>{r(S)};if(C==null)throw Error("Can't access treasury promo page without signing in...");const g=z(),h=O(g?.loggedInUserRoleMap),w=Z(g?.loggedInUserRoleMap);if(u&&h)return e.jsx(L,{to:"../../treasury/setup"});if(m.company?.companyTreasuryInfo&&(!u&&h||w)){if(a.state?.message==="activation"){const S=J(a.state?.pathnameStackToGoBack);t(a.pathname,{state:{...a.state,message:void 0,pathnameStackToGoBack:S.newStack}})}return i?.fetchState!=="Completed"?e.jsx(te,{children:e.jsx(X,{size:"ExtraLarge",start:!0})}):e.jsxs(e.Fragment,{children:[e.jsx(_,{analytics:j,onLoad:S=>(T=>T.trackTreasuryPromoView("Treasury Promo Page"))(S)}),e.jsx(ce,{isAppContentDrawerOpen:p,handleDrawerToggle:l}),e.jsx(bt,{analytics:j,navigate:t,companyId:y,onClickMenuIcon:()=>{l(!0)}})]})}return e.jsx(te,{children:e.jsx(X,{size:"ExtraLarge",start:!0})})},te=P.div`
|
|
30
|
-
display: flex;
|
|
31
|
-
width: 100%;
|
|
32
|
-
height: 100%;
|
|
33
|
-
flex-direction: row;
|
|
34
|
-
justify-content: center;
|
|
35
|
-
align-items: center;
|
|
36
|
-
background-color: ${t=>t.theme.colors.grey5};
|
|
37
|
-
`;function Xt(){const t=M(),a=f(E=>D(E)),{useFeatureGate:n}=ie(),{isFeatureEnabled:o}=n(v.isTreasuryEnabled),p=!!a.company?.companyTreasuryInfo?.isTreasuryTOSAccepted,r=z(),m=Z(r?.loggedInUserRoleMap),s=a?.userRole!=null&&Re(a?.userRole),c=(a?.company==null||a.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!s)&&Pe(r?.loggedInUserRoleMap),i=Ne(r?.loggedInUserRoleMap),y=(a?.company==null||a.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!s)&&Ve(r?.loggedInUserRoleMap),{isFeatureEnabled:C}=n(v.isDepositAccountsFeatureEnabled),u=C&&!s&&Oe(r?.loggedInUserRoleMap),l=a.company!=null&&ze(a.company),g=o&&l===!0&&!s&&O(r?.loggedInUserRoleMap),{isFeatureEnabled:h}=n(v.isChargeCardFeatureEnabled),{isFeatureEnabled:w}=n(v.isDebitCardFeatureEnabled),S=nt(a,h,w)&&!s&&_e(r?.loggedInUserRoleMap),T=$e(r?.loggedInUserRoleMap),x=Ge(r?.loggedInUserRoleMap),F=a.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified";return e.jsxs(xe,{children:[x?null:e.jsx(k,{path:"setup",element:e.jsx(Y,{isBillPayAdminLevelAccess:c,isReimbursementAdminLevelAccess:y,isZeniAccountAdminLevelAccess:u,isChargeCardAdminLevelAccess:S,isTreasuryAdminLevelAccess:g,isUserHasOnlyCardAccess:T,isUserHasOnlyBillPayAccess:i,productType:"zeni_treasury",type:"setup"})}),x?null:e.jsx(k,{path:"verification",element:e.jsx(Y,{isBillPayAdminLevelAccess:c,isUserHasOnlyBillPayAccess:i,isReimbursementAdminLevelAccess:y,isZeniAccountAdminLevelAccess:u,isChargeCardAdminLevelAccess:S,isTreasuryAdminLevelAccess:g,isUserHasOnlyCardAccess:T,productType:"zeni_treasury",type:"verification"})}),e.jsx(k,{path:"promo",element:e.jsx(At,{})}),e.jsx(k,{path:"statements",element:e.jsx(It,{})}),e.jsx(k,{path:"tax-letter",element:e.jsx(jt,{})}),F?e.jsxs(e.Fragment,{children:[e.jsx(k,{path:"/",element:e.jsx(G,{isTransferDrawerOpen:!1,isEditPortfolioDrawerOpen:!1})}),g?e.jsxs(e.Fragment,{children:[e.jsx(k,{path:"edit-portfolio",element:e.jsx(G,{isEditPortfolioDrawerOpen:!0,isTransferDrawerOpen:!1})}),e.jsx(k,{path:"transfer",element:e.jsx(G,{isTransferDrawerOpen:!0,isEditPortfolioDrawerOpen:!1})})]}):null,e.jsx(k,{path:"*",element:e.jsx(ot,{})})]}):p&&g?e.jsx(k,{path:"*",element:e.jsx(L,{to:"../setup"})}):a.company?.companyZeniAccountInfo&&m?e.jsx(k,{path:"*",element:e.jsx(L,{to:"../promo",state:t.state})}):e.jsx(k,{path:"*",element:null})]})}export{Xt as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./liveblocks-CSh9szRw.js";import{a as l}from"./sentry-D9Y14zld.js";import{q as u,h,g as y,N as I}from"./core-BQj7M3th.js";import{ID as w,eO as b,yY as x}from"./zeni-epic-state-CQBcHxM0.js";import{z as f,w as j,F as S,G as D}from"./index-BQ7khhyZ.js";import{n as c}from"./mui-DMFdcGMc.js";import"./recharts-CxcSvx_6.js";import"./analytics-C-ZLKS9f.js";import"./plaid-Cotnt2Mn.js";import"./dnd-BYpXi-Dk.js";import"./stripe-DMRn4zHo.js";import"./lottie--J-ULoDN.js";import"./lexical-BaPJckwm.js";import"./pdf-DL0jKvKA.js";import"./utils-DR9lX595.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]="4c0958ee-ac1d-4e6e-9736-5ee5cb08e5a1",e._sentryDebugIdIdentifier="sentry-dbid-4c0958ee-ac1d-4e6e-9736-5ee5cb08e5a1")}catch{}})();const W=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",g=e.get("profileId")??"",[n,p]=l.useState(!1),a=h(),i=y(m=>w(m)),r=f.getSignedInUser(),d=f.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 b(r.userId,r.zeniSessionId,d?.tenantId),l.useEffect(()=>{n||(p(!0),a(x(t,g,s)))},[n,a]),i.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(j,{fetchState:"In-Progress"}))},E=c.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: 100vh;
|
|
5
|
-
flex-direction: row;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
9
|
-
`,_=c(D.LargeRegular)`
|
|
10
|
-
display: flex;
|
|
11
|
-
color: ${S.important};
|
|
12
|
-
`;export{W as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-CSh9szRw.js";import{a as u}from"./sentry-D9Y14zld.js";import{j as x,h as C,u as N,l as $,g as p}from"./core-BQj7M3th.js";import{HD as s,HC as j,NJ as v,eN as B,NK as D}from"./zeni-epic-state-CQBcHxM0.js";import{q as T,ap as g,h as z,z as E,w as L,b_ as P,r as _}from"./index-BQ7khhyZ.js";import{n as U}from"./mui-DMFdcGMc.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]="01f7909a-c7f9-483b-a2cd-6410b3bdbcd0",e._sentryDebugIdIdentifier="sentry-dbid-01f7909a-c7f9-483b-a2cd-6410b3bdbcd0")}catch{}})();const G=U.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`;function V(){const e=x(),n=C(),d=T(),l=N();let{accountId:a}=$(),f=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&l.pathname.includes(`${s}/statements`)&&(a=s,f=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[m,b]=u.useState(!1),h=z();u.useEffect(()=>{m||(b(!0),n(j(a??"",!1)))},[m,n]);const o=p(t=>v(t,a??"")),y=()=>{const t=_(l.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},c=E.getSignedInUser(),r=p(t=>B(t)),I={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:r.tenantId??""},w=D(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=r.company?.companyInfo.companyLegalName??r.companyName;if(c==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?i.jsx(L,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}}):i.jsx(G,{windowSize:d,children:i.jsx(P,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:y,authParams:I,downloadEndPoint:f})})}export{V as Z};
|