@zeniai/web-app-ui 5.0.94-qa → 5.0.95-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.
Files changed (126) hide show
  1. package/dist/assets/AddressRoutes-0Eyzeqmo.js +1 -0
  2. package/dist/assets/{AddressScreen-BNN0XhH8.js → AddressScreen-C1kNIoFW.js} +2 -2
  3. package/dist/assets/AiCfoScreen-DiEWR7_7.js +22 -0
  4. package/dist/assets/{BillPayApprovalRoutes-BpV8hV9h.js → BillPayApprovalRoutes-BFuKAoJn.js} +1 -1
  5. package/dist/assets/{BillPayRoutes-BnNnXg6p.js → BillPayRoutes-yYgD8ElZ.js} +34 -34
  6. package/dist/assets/{BusinessVerificationPageScreen-fGxnzjnu.js → BusinessVerificationPageScreen-LVeN_2_9.js} +2 -2
  7. package/dist/assets/{ChargeCardRoutes-Cxl-Dfno.js → ChargeCardRoutes-Dqh0dx38.js} +8 -8
  8. package/dist/assets/{CompanyPassportScreen-6oghFs5-.js → CompanyPassportScreen-CoCoQTkp.js} +1 -1
  9. package/dist/assets/ConnectionAuthScreen-B7BFXXXS.js +11 -0
  10. package/dist/assets/CustomerOnboardingAuthScreen-D5Bh3dbO.js +1 -0
  11. package/dist/assets/{CustomerOnboardingRoutes-52j6GlB4.js → CustomerOnboardingRoutes-BeOSK0bV.js} +4 -4
  12. package/dist/assets/DashboardRoutes-DeXVvCqq.js +20 -0
  13. package/dist/assets/{DefaultTenantHome-ChuSwEZz.js → DefaultTenantHome-DZiebdrx.js} +1 -1
  14. package/dist/assets/{DomesticWireDetailScreen-DT1-4XE1.js → DomesticWireDetailScreen-BU_VenPR.js} +3 -3
  15. package/dist/assets/DrawerScreen-BbhUunYL.js +1 -0
  16. package/dist/assets/EntityDetailRoutes-DdiBSVG3.js +1 -0
  17. package/dist/assets/{ExpenseAutomationRoutes-BGsp6tOc.js → ExpenseAutomationRoutes-hIKcsGeT.js} +4 -4
  18. package/dist/assets/FeaturePreviewScreen-C1-h6LMu.js +1 -0
  19. package/dist/assets/{HubSpotOAuthCallbackScreen-BtWyS7u5.js → HubSpotOAuthCallbackScreen-C_sETmGk.js} +1 -1
  20. package/dist/assets/{MagicLinkRoutes-CiL3RYaJ.js → MagicLinkRoutes-DZdU0REk.js} +4 -4
  21. package/dist/assets/MagicLinkSignInScreen-BDghb4vk.js +12 -0
  22. package/dist/assets/MobileAppDrawer-CgbJlL9u.js +1 -0
  23. package/dist/assets/NotFoundScreen-DjvK1NbN.js +1 -0
  24. package/dist/assets/{NotificationRoutes-TuKcUgWz.js → NotificationRoutes-HNy89jXR.js} +1 -1
  25. package/dist/assets/OAuthConsentScreen-BRyPWMqe.js +1 -0
  26. package/dist/assets/{PandLWithForecastRoutes-CU7PJY2i.js → PandLWithForecastRoutes-CBP1v8tZ.js} +1 -1
  27. package/dist/assets/PeopleRoutes-B7-ewz69.js +22 -0
  28. package/dist/assets/PerformanceRoutes-COR3BTZa.js +1 -0
  29. package/dist/assets/{Preview-CX79dadf.js → Preview-DVbW5PS-.js} +1 -1
  30. package/dist/assets/{QBOConnectionScreen-CNoF2iT1.js → QBOConnectionScreen-BRbkYHuP.js} +1 -1
  31. package/dist/assets/ReferralListScreen-C5_wj8jW.js +5 -0
  32. package/dist/assets/ReimbursementApprovalRoutes-DNyMDR4t.js +1 -0
  33. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-DI_WfNSZ.js → ReimbursementApprovalRuleDetailScreen-CO_HtFbP.js} +1 -1
  34. package/dist/assets/{ReimbursementRoutes-B57Ww3xn.js → ReimbursementRoutes-pmb5ZMBe.js} +4 -4
  35. package/dist/assets/ReportsRoutes-C9h_dCJo.js +1 -0
  36. package/dist/assets/RewardsRoutes-COWJicvP.js +1 -0
  37. package/dist/assets/ScreenRoutes-DB3q5PNA.js +2 -0
  38. package/dist/assets/{SettingsRoutes-CvryzcuN.js → SettingsRoutes-DEx1uOuX.js} +7 -7
  39. package/dist/assets/{SetupPagesScreen-Bap8l3lK.js → SetupPagesScreen-DM0dhGt1.js} +5 -5
  40. package/dist/assets/{SignInScreen-C1Bdz5-O.js → SignInScreen-BIF8y6r_.js} +1 -1
  41. package/dist/assets/SignOutScreen-D0ouX99i.js +9 -0
  42. package/dist/assets/{TaskListScreen-BgQVLwxs.js → TaskListScreen-CQTVeDwe.js} +2 -2
  43. package/dist/assets/TaskRoutes-DzCuQY-E.js +9 -0
  44. package/dist/assets/{TransactionDetailRoutes-BtJNx8FU.js → TransactionDetailRoutes-BjnNsU6t.js} +1 -1
  45. package/dist/assets/{TransactionDetailScreen-ZjUg5MTR.js → TransactionDetailScreen-BSarw1vq.js} +2 -2
  46. package/dist/assets/{TransactionListRoutes-CpUzH2wx.js → TransactionListRoutes-CXfUmvjI.js} +1 -1
  47. package/dist/assets/{TreasuryRoutes-DGZRuDr3.js → TreasuryRoutes-CDE_tE4t.js} +6 -6
  48. package/dist/assets/{VendorsRoutes-BmMfshWa.js → VendorsRoutes-Cz9uX3LH.js} +13 -13
  49. package/dist/assets/WiseConfirmationScreen-B9n09x9Y.js +12 -0
  50. package/dist/assets/{ZeniAccountRoutes-Dt7DM9ni.js → ZeniAccountRoutes-DIt49_h_.js} +11 -11
  51. package/dist/assets/ZeniAccountStatementScreen-Dafm8AUT.js +9 -0
  52. package/dist/assets/{accountMappingHelper-ClJz5V9X.js → accountMappingHelper-DdryjbCH.js} +1 -1
  53. package/dist/assets/{analytics-NZ6ROu06.js → analytics-B35UERag.js} +1 -1
  54. package/dist/assets/{analyticsHelper-BTp5Ghm5.js → analyticsHelper-D8sAsSDg.js} +1 -1
  55. package/dist/assets/{core-D-NK-UK9.js → core-B20PugrR.js} +2 -2
  56. package/dist/assets/{decodeURIComponentSafe-C48GZJfu.js → decodeURIComponentSafe-HZX6LUOb.js} +1 -1
  57. package/dist/assets/{dnd-C49i2BE4.js → dnd-CTNaOehy.js} +1 -1
  58. package/dist/assets/{empty-DH2H1-Nx.js → empty-DbjE3Pml.js} +1 -1
  59. package/dist/assets/{empty-CtUkBjnR.js → empty-DqPV1QMu.js} +1 -1
  60. package/dist/assets/{emptyVideoElement-BCGqnPYV.js → emptyVideoElement-D5A8Alvf.js} +1 -1
  61. package/dist/assets/{epic-D64Ymfe0.js → epic-C05Fn23e.js} +1 -1
  62. package/dist/assets/getLocaleForTenant-ht-6GSU5.js +1 -0
  63. package/dist/assets/{index-CppZNJwq.js → index-BJUGjRvu.js} +1 -1
  64. package/dist/assets/{index-B-v2HYWQ.js → index-D8hCAHx9.js} +11630 -11593
  65. package/dist/assets/{index-DUe_bU79.js → index-DDN5QRfh.js} +2 -2
  66. package/dist/assets/{index-Cii2mjSS.js → index-DODLcfP6.js} +1 -1
  67. package/dist/assets/{index-CTaHBGA6.js → index-Dh7l3Ca4.js} +1 -1
  68. package/dist/assets/{index-Bx6iIwrK.js → index-DwJt1swd.js} +1 -1
  69. package/dist/assets/{index-AU1I47Je.js → index-Dx-tgz0s.js} +1 -1
  70. package/dist/assets/{index-DCy8xCNa.js → index-qbNk-Sh2.js} +1 -1
  71. package/dist/assets/{lexical-Bp-0qESw.js → lexical-BDpP_OMn.js} +1 -1
  72. package/dist/assets/{liveblocks-D6iO1SmY.js → liveblocks-BSDLCmF2.js} +1 -1
  73. package/dist/assets/{lottie-BWZi4J-8.js → lottie-DG71PfmK.js} +1 -1
  74. package/dist/assets/{mui-DqRlPgPp.js → mui-BBkBdMVO.js} +1 -1
  75. package/dist/assets/{pathToGoBack-DvdlIQjg.js → pathToGoBack-BJj5tqvK.js} +1 -1
  76. package/dist/assets/{pdf-BpZ3cLIj.js → pdf-Cp8DoYAG.js} +3 -3
  77. package/dist/assets/{pdf-lib-CNmHIzRc.js → pdf-lib-BqwRJQ00.js} +1 -1
  78. package/dist/assets/{plaid-BzyOi-ir.js → plaid-DHvUog4a.js} +1 -1
  79. package/dist/assets/{pusher-BMtiLftw.js → pusher-DsZLo3j0.js} +1 -1
  80. package/dist/assets/{react-CmUCRpgB.js → react-BPL_4xi4.js} +1 -1
  81. package/dist/assets/{react-TFItAO3U.js → react-BUTkVbbW.js} +1 -1
  82. package/dist/assets/{react-D3MVFA0D.js → react-D4RyndA4.js} +1 -1
  83. package/dist/assets/{react-BJh7Ho8n.js → react-DpONCvOo.js} +1 -1
  84. package/dist/assets/{react-Djxq7qii.js → react-Uu6ZW5p-.js} +1 -1
  85. package/dist/assets/{react-DxEGkukB.js → react-zGcoIiO8.js} +1 -1
  86. package/dist/assets/{recharts-Dt8dM4EI.js → recharts-BzjcN9SN.js} +1 -1
  87. package/dist/assets/{routePaths-DPqSbEW8.js → routePaths-XreQojZr.js} +1 -1
  88. package/dist/assets/{sentry-DJeJwz74.js → sentry-67DqaLi1.js} +1 -1
  89. package/dist/assets/{url-CawXuWkK.js → url-D5ovKX_j.js} +1 -1
  90. package/dist/assets/{url-Cab0ioG_.js → url-DgheZiFv.js} +1 -1
  91. package/dist/assets/useAiCfoDashboardSuggestedQuestionsChips-CvDMoudE.js +1 -0
  92. package/dist/assets/useAskAiCfoHostNavButtonProps-CDnIxewv.js +1 -0
  93. package/dist/assets/{useDeviceId-CYAkkrZp.js → useDeviceId-CZrGGxHD.js} +1 -1
  94. package/dist/assets/useInitialThreadRequest-BHiBt2ra.js +1 -0
  95. package/dist/assets/{utils-CGva6Exy.js → utils-C7uJ9upL.js} +1 -1
  96. package/dist/assets/{withTransactionSidePanel-CklFSvII.js → withTransactionSidePanel-C7OFQuvJ.js} +1 -1
  97. package/dist/assets/{zeni-epic-state-22WFBgK9.js → zeni-epic-state-B3AwsZqW.js} +3 -3
  98. package/dist/index.html +1 -1
  99. package/package.json +2 -2
  100. package/dist/assets/AddressRoutes-C4ikWgPo.js +0 -1
  101. package/dist/assets/AiCfoScreen-Bg9ijLCA.js +0 -22
  102. package/dist/assets/ConnectionAuthScreen-rIEFWD8p.js +0 -11
  103. package/dist/assets/CustomerOnboardingAuthScreen-BYdpJPsr.js +0 -1
  104. package/dist/assets/DashboardRoutes-BdO71Zfj.js +0 -20
  105. package/dist/assets/DrawerScreen-ueiFgeV8.js +0 -1
  106. package/dist/assets/EntityDetailRoutes-BDYJNo-V.js +0 -1
  107. package/dist/assets/FeaturePreviewScreen-C2KS_KpA.js +0 -1
  108. package/dist/assets/MagicLinkSignInScreen-GKE3oNCV.js +0 -12
  109. package/dist/assets/MobileAppDrawer-DFwRXpE0.js +0 -1
  110. package/dist/assets/NotFoundScreen-C4a6Q5Lb.js +0 -1
  111. package/dist/assets/OAuthConsentScreen-ChC9fP6N.js +0 -1
  112. package/dist/assets/PeopleRoutes-CeW1yv_N.js +0 -22
  113. package/dist/assets/PerformanceRoutes-COmcQAYA.js +0 -1
  114. package/dist/assets/ReferralListScreen-BaQmHM5w.js +0 -5
  115. package/dist/assets/ReimbursementApprovalRoutes-mwgyiXL7.js +0 -1
  116. package/dist/assets/ReportsRoutes-HX8_E7zU.js +0 -1
  117. package/dist/assets/RewardsRoutes-CszUbBSt.js +0 -1
  118. package/dist/assets/ScreenRoutes-BXmEXdCM.js +0 -2
  119. package/dist/assets/SignOutScreen-DjrE-8HT.js +0 -9
  120. package/dist/assets/TaskRoutes-DmrwyMwf.js +0 -9
  121. package/dist/assets/WiseConfirmationScreen-CAo6wnNv.js +0 -12
  122. package/dist/assets/ZeniAccountStatementScreen-pkvytZBY.js +0 -9
  123. package/dist/assets/getLocaleForTenant-zP94FwPU.js +0 -1
  124. package/dist/assets/useAiCfoDashboardSuggestedQuestionsChips-B_ZCAUsA.js +0 -1
  125. package/dist/assets/useAskAiCfoHostNavButtonProps-h3l_262v.js +0 -1
  126. package/dist/assets/useInitialThreadRequest-DZ6IEgJ5.js +0 -1
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardRoutes-BdO71Zfj.js","assets/sentry-DJeJwz74.js","assets/core-D-NK-UK9.js","assets/zeni-epic-state-22WFBgK9.js","assets/index-B-v2HYWQ.js","assets/mui-DqRlPgPp.js","assets/analytics-NZ6ROu06.js","assets/utils-CGva6Exy.js","assets/withTransactionSidePanel-CklFSvII.js","assets/useAskAiCfoHostNavButtonProps-h3l_262v.js","assets/TransactionDetailScreen-ZjUg5MTR.js","assets/decodeURIComponentSafe-C48GZJfu.js","assets/routePaths-DPqSbEW8.js","assets/NotFoundScreen-C4a6Q5Lb.js","assets/useInitialThreadRequest-DZ6IEgJ5.js","assets/analyticsHelper-BTp5Ghm5.js","assets/CompanyPassportScreen-6oghFs5-.js","assets/MobileAppDrawer-DFwRXpE0.js","assets/useAiCfoDashboardSuggestedQuestionsChips-B_ZCAUsA.js","assets/FeaturePreviewScreen-C2KS_KpA.js","assets/ReferralListScreen-BaQmHM5w.js","assets/index-Bc34frN_.css","assets/BillPayRoutes-BnNnXg6p.js","assets/AddressScreen-BNN0XhH8.js","assets/DomesticWireDetailScreen-DT1-4XE1.js","assets/DrawerScreen-ueiFgeV8.js","assets/SetupPagesScreen-Bap8l3lK.js","assets/BusinessVerificationPageScreen-fGxnzjnu.js","assets/BillPayApprovalRoutes-BpV8hV9h.js","assets/ReimbursementApprovalRuleDetailScreen-DI_WfNSZ.js","assets/getLocaleForTenant-zP94FwPU.js","assets/ReimbursementRoutes-B57Ww3xn.js","assets/ReimbursementApprovalRoutes-mwgyiXL7.js","assets/TransactionListRoutes-CpUzH2wx.js","assets/ZeniAccountStatementScreen-pkvytZBY.js","assets/SettingsRoutes-CvryzcuN.js","assets/accountMappingHelper-ClJz5V9X.js","assets/QBOConnectionScreen-CNoF2iT1.js","assets/empty-DH2H1-Nx.js","assets/index-DCy8xCNa.js","assets/url-CawXuWkK.js","assets/index-AU1I47Je.js","assets/ReportsRoutes-HX8_E7zU.js","assets/ChargeCardRoutes-Cxl-Dfno.js","assets/PeopleRoutes-CeW1yv_N.js","assets/ExpenseAutomationRoutes-BGsp6tOc.js","assets/TreasuryRoutes-DGZRuDr3.js","assets/VendorsRoutes-BmMfshWa.js","assets/pathToGoBack-DvdlIQjg.js","assets/ZeniAccountRoutes-Dt7DM9ni.js","assets/AddressRoutes-C4ikWgPo.js","assets/PandLWithForecastRoutes-CU7PJY2i.js","assets/CustomerOnboardingRoutes-52j6GlB4.js","assets/TransactionDetailRoutes-BtJNx8FU.js","assets/EntityDetailRoutes-BDYJNo-V.js","assets/NotificationRoutes-TuKcUgWz.js","assets/PerformanceRoutes-COmcQAYA.js","assets/RewardsRoutes-CszUbBSt.js","assets/TaskRoutes-DmrwyMwf.js","assets/TaskListScreen-BgQVLwxs.js","assets/AiCfoScreen-Bg9ijLCA.js"])))=>i.map(i=>d[i]);
2
- import{_ as n,bn as os,eQ as ls,eY as cs,eW as ds,eX as ms,fH as us,eR as _s,cP as Ee,cx as Es,fd as As,cp as ps,bE as xs,bq as Is,fi as gs,v as Ts,Jm as hs,bv as js,Jn as Us,bG as Hs,ff as Rs,bF as bs,bs as Ds,cl as ys,Jo as fs,Jp as Cs,cM as vs,cO as Os,cN as Ps,cw as Fs,cC as Ls,mT as Ae,eU as pe,fR as ks,fm as xe,fO as Ie,fP as ge,fn as Bs}from"./zeni-epic-state-22WFBgK9.js";import{j as e}from"./liveblocks-D6iO1SmY.js";import{a as v}from"./sentry-DJeJwz74.js";import{h as Vs,l as Ss,i as Ns,u as Ms,g as G,k as Te,N as c,o as Zs,p as t}from"./core-D-NK-UK9.js";import{m as ws,u as Gs,z as R,w as zs,a as $s,F as Ys,I as L,k as Js,L as k,O as he,t as _,P as Ws,c as K,l}from"./index-B-v2HYWQ.js";import"./mui-DqRlPgPp.js";import{f as je}from"./analyticsHelper-BTp5Ghm5.js";import{t as qs}from"./getLocaleForTenant-zP94FwPU.js";import"./recharts-Dt8dM4EI.js";import"./analytics-NZ6ROu06.js";import"./plaid-BzyOi-ir.js";import"./dnd-C49i2BE4.js";import"./stripe-DMRn4zHo.js";import"./lottie-BWZi4J-8.js";import"./lexical-Bp-0qESw.js";import"./pdf-BpZ3cLIj.js";import"./utils-CGva6Exy.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]="3972d7e5-2d7b-4cf4-92f8-97d2e9e43dea",i._sentryDebugIdIdentifier="sentry-dbid-3972d7e5-2d7b-4cf4-92f8-97d2e9e43dea")}catch{}})();const Qs={dashboard:()=>n(()=>import("./DashboardRoutes-BdO71Zfj.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21])),bills:()=>n(()=>import("./BillPayRoutes-BnNnXg6p.js"),__vite__mapDeps([22,1,2,3,4,5,6,7,23,13,24,9,14,25,17,19,26,15,12,27,28,29,30,21])),reimbursement:()=>n(()=>import("./ReimbursementRoutes-B57Ww3xn.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,13,26,17,15,12,27,19,9,14,25,32,29,30,21])),transactions:()=>n(()=>import("./TransactionListRoutes-CpUzH2wx.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,34,21])),settings:()=>n(()=>import("./SettingsRoutes-CvryzcuN.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,17,36,23,13,15,27,12,16,37,38,39,40,41,11,28,29,32,21])),reports:()=>n(()=>import("./ReportsRoutes-HX8_E7zU.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,13,19,14,12,17,21])),chargeCards:()=>n(()=>import("./ChargeCardRoutes-Cxl-Dfno.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,26,17,13,15,12,27,14,9,23,21])),people:()=>n(()=>import("./PeopleRoutes-CeW1yv_N.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,13,9,17,21])),expenseAutomation:()=>n(()=>import("./ExpenseAutomationRoutes-BGsp6tOc.js"),__vite__mapDeps([45,1,2,3,13,4,5,6,7,9,10,11,12,8,36,25,21])),treasury:()=>n(()=>import("./TreasuryRoutes-DGZRuDr3.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,13,26,17,15,12,27,9,14,19,21])),vendors:()=>n(()=>import("./VendorsRoutes-BmMfshWa.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,23,13,19,12,48,9,17,25,36,21])),zeniAccounts:()=>n(()=>import("./ZeniAccountRoutes-Dt7DM9ni.js"),__vite__mapDeps([49,1,2,3,4,5,6,7,13,26,17,15,12,27,19,24,23,9,34,21]))},Xs=["bills","transactions","settings","reimbursement","reports","chargeCards","people"],ee=i=>{"requestIdleCallback"in window?requestIdleCallback(i):setTimeout(i,100)},Ks=l(()=>n(()=>import("./ReportsRoutes-HX8_E7zU.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,13,19,14,12,17,21]))),en=l(()=>n(()=>import("./AddressRoutes-C4ikWgPo.js"),__vite__mapDeps([50,1,2,3,23,4,5,6,7,13,21]))),sn=l(()=>n(()=>import("./PeopleRoutes-CeW1yv_N.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,13,9,17,21]))),nn=l(()=>n(()=>import("./PandLWithForecastRoutes-CU7PJY2i.js"),__vite__mapDeps([51,1,2,3,4,5,6,7,13,19,9,14,12,17,21]))),an=l(()=>n(()=>import("./CustomerOnboardingRoutes-52j6GlB4.js"),__vite__mapDeps([52,1,2,3,23,4,5,6,7,13,37,38,39,40,41,11,21]))),tn=l(()=>n(()=>import("./VendorsRoutes-BmMfshWa.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,23,13,19,12,48,9,17,25,36,21]))),rn=l(()=>n(()=>import("./TransactionDetailRoutes-BtJNx8FU.js"),__vite__mapDeps([53,1,2,3,13,4,5,6,7,10,9,11,12,21]))),Ue=l(()=>n(()=>import("./EntityDetailRoutes-BDYJNo-V.js"),__vite__mapDeps([54,1,2,3,4,5,6,7,11,8,9,10,12,21]))),on=l(()=>n(()=>import("./DashboardRoutes-BdO71Zfj.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]))),He=l(()=>n(()=>import("./BillPayRoutes-BnNnXg6p.js"),__vite__mapDeps([22,1,2,3,4,5,6,7,23,13,24,9,14,25,17,19,26,15,12,27,28,29,30,21]))),ln=l(()=>n(()=>import("./SettingsRoutes-CvryzcuN.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,17,36,23,13,15,27,12,16,37,38,39,40,41,11,28,29,32,21]))),Re=l(()=>n(()=>import("./ReimbursementRoutes-B57Ww3xn.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,13,26,17,15,12,27,19,9,14,25,32,29,30,21]))),cn=l(()=>n(()=>import("./ZeniAccountRoutes-Dt7DM9ni.js"),__vite__mapDeps([49,1,2,3,4,5,6,7,13,26,17,15,12,27,19,24,23,9,34,21]))),dn=l(()=>n(()=>import("./TreasuryRoutes-DGZRuDr3.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,13,26,17,15,12,27,9,14,19,21]))),mn=l(()=>n(()=>import("./TransactionListRoutes-CpUzH2wx.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,34,21]))),un=l(()=>n(()=>import("./ChargeCardRoutes-Cxl-Dfno.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,26,17,13,15,12,27,14,9,23,21]))),_n=l(()=>n(()=>import("./NotificationRoutes-TuKcUgWz.js"),__vite__mapDeps([55,1,2,3,13,4,5,6,7,9,21]))),En=l(()=>n(()=>import("./PerformanceRoutes-COmcQAYA.js"),__vite__mapDeps([56,1,2,3,13,4,5,6,7,9,17,21]))),An=l(()=>n(()=>import("./ExpenseAutomationRoutes-BGsp6tOc.js"),__vite__mapDeps([45,1,2,3,13,4,5,6,7,9,10,11,12,8,36,25,21]))),pn=l(()=>n(()=>import("./RewardsRoutes-CszUbBSt.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,13,20,9,17,21]))),xn=l(()=>n(()=>import("./TaskRoutes-DmrwyMwf.js"),__vite__mapDeps([58,1,2,3,13,4,5,6,7,14,17,59,9,21]))),In=l(()=>n(()=>import("./AiCfoScreen-Bg9ijLCA.js"),__vite__mapDeps([60,1,2,3,4,5,6,7,18,48,21]))),y=l(()=>n(()=>import("./NotFoundScreen-C4a6Q5Lb.js"),__vite__mapDeps([13,1,2,3,4,5,6,7,21]))),gn=l(()=>n(()=>import("./TaskListScreen-BgQVLwxs.js"),__vite__mapDeps([59,1,2,3,4,5,6,7,9,17,21])));function wn({setTenantEmailDomain:i}){const U=Vs(),V=Ss(),{tenantEmailDomain:o}=Ns(),S=ws().mode,{setLoading:f,clearAllLoading:O,clearLoading:Z}=Gs(),D=R.getSignedInUserTenant(o)?.tenantId,h=R.getSignedInUser(),q=os(h),z=Ms(),[N,De]=v.useState(!1),r=G(a=>ls(a)),{useFeatureGate:P}=zs(),Q=$s(),ye=Ys(),{isFeatureEnabled:fe}=P(L.isExpenseAutomationEnabled),{isFeatureEnabled:Ce}=P(L.isExpenseAutomationEnabledV2),ve=Ce||fe&&q,{isFeatureEnabled:Oe}=P(L.isDepositAccountsFeatureEnabled),{isFeatureEnabled:Pe}=P(L.isTreasuryEnabled),{isFeatureEnabled:Fe}=P(L.isChargeCardFeatureEnabled),{isFeatureEnabled:se}=P(L.isDebitCardFeatureEnabled),j=G(a=>a.tenantState.fetchState),A=G(a=>a.tenantState.activeTenantFetchState.fetchState),u=A==="Completed"||j==="Completed"?cs(se,r):void 0,$=A==="Completed"||j==="Completed"?ds(r):void 0,Le=A==="Completed"||j==="Completed"?ms(r):void 0,ke=Fe||se||!!Le||!!$||!!u,{isFeatureEnabled:Be}=P(L.isSettingsFeatureEnabled),{isFeatureEnabled:Ve}=P(L.isAiCfoFileUploadEnabled),Y=G(a=>us(a));if(o!=null){const a=R.getSignedInUserTenant(o);h!=null&&a!=null&&je(h,r,S)}const w={tenantId:D,userId:h?.userId,sessionId:h?.zeniSessionId},ne=_s(),E=Js(),Se=r.company==null||E?.loggedInUserRoleMap!=null&&Ee(E.loggedInUserRole),Ne=Es(E?.loggedInUserRoleMap),ae=v.useRef(!0),te=Te("/:tenantEmailDomain/onboarding/*")!==null,X=Te("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*"),Me=G(a=>w.tenantId!=null?As(a,w.tenantId):void 0);v.useEffect(()=>{f(k.TENANT_FETCHING),i(o)},[o]),v.useEffect(()=>{if(X!=null&&D!=null){const a=X.params.selectedPeriod;if(a!=null){const H=a.split("-");if(H.length===2){const d=ps(Number(H[0])),s=Number(H[1]),m=xs(`01-${d<10?`0${d}`:d}-${s}`,he.getLocalizedStrings().dateFormat.analytics.DDDashMMDashYYYY),M=Is();m.isAfter(M,"month")===!1?U(gs(D,{month:d,year:s})):V("./month_end_close_checks/review")}}}},[X,D]),v.useEffect(()=>{N||(De(!0),f(k.TENANT_FETCHING)),ae.current?ae.current=!1:!Ts(ne,w)&&R.isSignedIn()&&(f(k.TENANT_FETCHING),function(a,H,d,s){if(pe(H?.userId,H?.zeniSessionId,a.tenantId),d(ks(!0)),d(xe(a.tenantId)),a.tenantId!=null&&_.clearTenant(a.tenantId),a.tenantId!=null){const m=R.getSignedInUserTenantWithId(a.tenantId);s&&he.updateAppLocaleID(qs(s)),m?.tenantEmailDomain!=null&&R.saveActiveTenantDomainForUser(m?.tenantEmailDomain)}a.userId!=null?K.identify(a.userId,{tenant_id:a.tenantId}):K.resetUserIdentity()}(w,h,U,Me))},[w,ne,h,U,R]),v.useEffect(()=>{R.isSignedIn()&&(f(k.TENANT_FETCHING),function(a,H,d,s,m,M,B){if(d==null&&s==null)return void console.warn("There is no current tenant selected!!");const J=s!=null&&m?.zeniSessionId!=null,ts=d==null||d.tenantId!==s,is=d!=null&&d.excludedResources==null,rs=d!=null&&d.externalConnections==null;if(J&&ts){B(xe(s));const W=R.getSignedInUserTenantWithId(s);W?.tenantEmailDomain!=null&&R.saveActiveTenantDomainForUser(W?.tenantEmailDomain),pe(m?.userId,m?.zeniSessionId,s),_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),B(Ie(m.userId,s))),_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),B(ge(m.userId,s)))}else J&&is&&_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),B(Ie(m.userId,s))),J&&rs&&_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),B(ge(m.userId,s)));if(J){K.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(k.TENANT_FETCHING),B(Bs(m.userId,s,m.zeniSessionId))),W&&(a==="Not-Started"||a==="Error")&&_.shouldFetchAllTenants()&&(_.markAllTenantsFetchStarted(),B(Ae(m.userId,m.zeniSessionId)))}}(j,A,r,D,h,f,U))},[D,A]),v.useEffect(()=>{R.isSignedIn()&&j==="Completed"&&Y.tenantsBaseInOrder.length>0&&(Z(k.TENANT_FETCHING),R.saveSignedInUserTenants(hs(Y.tenantsBaseInOrder)),h!=null&&je(h,r,S,void 0,Y.tenantsBaseInOrder))},[Y,j,r,h]),v.useEffect(()=>{A==="In-Progress"&&f(k.TENANT_FETCHING),A!=="Completed"&&A!=="Error"||(A==="Completed"&&D!=null?(O(),_.markActiveTenantFetchCompleted(D)):A==="Error"&&D!=null&&(_.markActiveTenantFetchFailed(D),Z(k.TENANT_FETCHING),Z(k.TENANT_SWITCHING))),j!=="Completed"&&j!=="Error"||(j==="Completed"?_.markAllTenantsFetchCompleted():j==="Error"&&_.markAllTenantsFetchFailed())},[A,j,D,N]);const ie=v.useRef(!1);v.useEffect(()=>{!ie.current&&A==="Completed"&&N&&(ie.current=!0,function(a=Xs,H=3e3){setTimeout(()=>{const d=s=>{if(s>=a.length)return;const m=a[s],M=Qs[m];M!=null?M().then(()=>ee(()=>d(s+1))).catch(()=>ee(()=>d(s+1))):d(s+1)};ee(()=>d(0))},H)}())},[A,N]);const C=r?.userRole!=null&&js(r?.userRole),{isFeatureEnabled:Ze}=P(L.isReferralFeatureEnabled),we=r?.userRole!=null&&r.userRole.includes("charge_card_user"),Ge=r?.userRole!=null&&r.userRole.includes("charge_card_admin"),F=r?.userRole!=null&&Ee(r.userRole),re=r?.company==null||r.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!C,oe=ke&&!C,ze=Us(E?.loggedInUserRoleMap),$e=r.externalConnections?.accounting[0]?.isValid,le=r.company?.companyOnboardingInfo.isOnboardingCompleted,ce=r?.company==null||r.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!C,de=ce&&Hs(E?.loggedInUserRoleMap),me=Oe&&!C,Ye=r.company!=null&&Rs(r.company),Je=Pe&&Ye===!0&&!C,We=re&&bs(E?.loggedInUserRoleMap),qe=oe&&Ds(E?.loggedInUserRoleMap),Qe=me&&ys(E?.loggedInUserRoleMap),Xe=fs(E?.loggedInUserRoleMap),Ke=Cs(E?.loggedInUserRoleMap),p=vs(E?.loggedInUserRoleMap),x=Os(E?.loggedInUserRoleMap),I=Ps(E?.loggedInUserRoleMap),g=Fs(E?.loggedInUserRoleMap),T=Ls(E?.loggedInUserRoleMap),ue=re&&g,_e=ce&&T,es=me&&p,ss=Je&&x,ns=oe&&I,as=r.excludedResources?.resources?.find(a=>a.resource==="/invites")!=null||Ne===!0||ze===!0||Xe===!0||Ke===!0;return R.isSignedIn()?D==null?j==="Completed"?e.jsx(c,{to:"/",replace:!0,state:{...z.state,message:"...",origin:z.pathname}}):(h!=null&&j!=="In-Progress"&&U(Ae(h.userId,h.zeniSessionId)),null):A!=="In-Progress"&&A!=="Not-Started"||j==="Completed"?(le===!0||q&&!te)&&$e===!1&&u===!1&&$===!1?(i(void 0),e.jsx(c,{to:"/connection/auth",replace:!0})):!N||le!==!1||te||q?N&&r?.userRole&&u!=null&&$!=null&&o!=null&&Object.keys(E.loggedInUserRoleMap).length>0?e.jsx(Zs,{children:e.jsxs(t,{element:e.jsx(Ws,{}),children:[e.jsx(t,{path:"/",element:e.jsx(Tn,{isDashboardAccess:F,isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:I,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:x,isTenantBankingOnly:u,isTenantCardsOnly:$})}),e.jsx(t,{path:"dashboard/*",element:F?e.jsx(on,{}):e.jsx(b,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:I,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:x,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reports/*",element:F?e.jsx(Ks,{}):e.jsx(b,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:I,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:x,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"people/*",element:as||F?e.jsx(sn,{}):e.jsx(b,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:I,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:x,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"forecast/*",element:F?e.jsx(nn,{}):e.jsx(b,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:I,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:x,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"onboarding/*",element:e.jsx(an,{})}),e.jsx(t,{path:"transaction/*",element:F&&C===!1||we||Ge?e.jsx(rn,{}):e.jsx(b,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:I,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:x,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"transactions/*",element:F&&C===!1?e.jsx(mn,{}):e.jsx(b,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:I,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:x,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"customer/*",element:F&&C===!1?e.jsx(Ue,{entityType:"customer"}):e.jsx(b,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:I,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isTenantBankingOnly:u,isUserHasTreasuryAccess:x,tenantEmailDomain:o})}),e.jsx(t,{path:"vendor/*",element:F&&C===!1?e.jsx(Ue,{entityType:"vendor"}):e.jsx(b,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:I,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:x,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"tasks",element:e.jsx(gn,{})}),e.jsx(t,{path:"tasks/*",element:e.jsx(xn,{})}),e.jsx(t,{path:"address/*",element:We||de||Qe||qe?e.jsx(en,{}):e.jsx(b,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:I,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:x,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"checking/*",element:es?e.jsx(cn,{}):e.jsx(y,{})}),e.jsx(t,{path:"treasury/*",element:ss?e.jsx(dn,{}):e.jsx(y,{})}),e.jsx(t,{path:"performance",element:ye?e.jsx(En,{}):e.jsx(be,{tenantEmailDomain:o})}),e.jsx(t,{path:"month_end_close_checks/review/*",element:ve&&C===!1?e.jsx(An,{}):e.jsx(be,{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(b,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:I,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:x,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"bills/*",element:ue?e.jsx(He,{}):e.jsx(b,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:I,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:x,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursement/*",element:_e?e.jsx(Re,{}):e.jsx(b,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:I,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:x,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursements/*",element:_e?e.jsx(Re,{}):e.jsx(b,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:I,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:x,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"settings/*",element:Be?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:Q?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/",element:Q?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/:session_id",element:Q?e.jsx(In,{isFileUploadEnabled:Ve}):e.jsx(y,{})}),e.jsx(t,{path:"*",element:e.jsx(y,{})})]})}):null:(i(void 0),e.jsx(c,{to:"onboarding",replace:!0})):null:(console.warn("User logged out!!"),i(void 0),e.jsx(c,{to:"/signin/auth",replace:!0,state:{...z.state,message:"...",origin:z.pathname}}))}const Tn=({isDashboardAccess:i,isUserHasZeniAccountsAccess:U,isUserHasChargeCardAccess:V,isUserHasBillPayAccess:o,isUserHasReimbursementAccess:S,isUserHasTreasuryAccess:f,isTenantBankingOnly:O,isTenantCardsOnly:Z})=>O===!0&&U?e.jsx(c,{to:"checking"}):Z===!0?e.jsx(c,{to:"cards"}):i?e.jsx(c,{to:"dashboard"}):U?e.jsx(c,{to:"checking"}):f?e.jsx(c,{to:"treasury"}):V?e.jsx(c,{to:"cards"}):o?e.jsx(c,{to:"bills"}):S?e.jsx(c,{to:"reimbursements"}):e.jsx(c,{to:"dashboard"}),b=({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`}),be=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/dashboard`});export{b as FallBackRoute,wn as default};
@@ -1,9 +0,0 @@
1
- import{j as s}from"./liveblocks-D6iO1SmY.js";import{a as n}from"./sentry-DJeJwz74.js";import{h as u,u as m,l as p,N as g}from"./core-D-NK-UK9.js";import{z as f,x as y,t as b,c,e as h}from"./index-B-v2HYWQ.js";import{fQ as x,fR as I,JJ as w}from"./zeni-epic-state-22WFBgK9.js";import{n as j}from"./mui-DqRlPgPp.js";import"./recharts-Dt8dM4EI.js";import"./analytics-NZ6ROu06.js";import"./plaid-BzyOi-ir.js";import"./dnd-C49i2BE4.js";import"./stripe-DMRn4zHo.js";import"./lottie-BWZi4J-8.js";import"./lexical-Bp-0qESw.js";import"./pdf-BpZ3cLIj.js";import"./utils-CGva6Exy.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]="81f304c9-3ddc-4c6a-b08f-b22ff10293ca",e._sentryDebugIdIdentifier="sentry-dbid-81f304c9-3ddc-4c6a-b08f-b22ff10293ca")}catch{}})();function $(){const e=u(),t=m(),i=p(),a=n.useRef(!1),d=f.isSignedIn(),r=t.state?.message==="logout",o=r||d;return n.useEffect(()=>{o&&!a.current&&(a.current=!0,setTimeout(()=>{try{f.clearAll(),e(x()),e(I(!1)),w(),b.reset(),c.trackLogout(h.Event.logoutSuccess),c.resetUserIdentity()}catch(l){console.error("Error during sign out:",l)}finally{r||i("/signin/auth",{replace:!0})}},0))},[o,r]),o?s.jsx(v,{children:s.jsx(y,{fetchState:"In-Progress"})}):s.jsx(g,{to:"../",replace:!0})}const v=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{$ as default};
@@ -1,9 +0,0 @@
1
- import{j as n}from"./liveblocks-D6iO1SmY.js";import se from"./NotFoundScreen-C4a6Q5Lb.js";import{a as c}from"./sentry-DJeJwz74.js";import{l as _,h as M,g,u as ne,i as oe,N as ie,n as re,o as ce,p as f}from"./core-D-NK-UK9.js";import{Gi as O,Gl as le,Go as de,eQ as Z,Qw as H,FC as X,Fk as pe,G2 as ue,FX as ke,Qx as W,Qy as z,Fg as me,Fd as fe,qc as ge,q0 as he,kb as Se,Fs as Ie,Qz as Te,Fx as be,Fu as Ge,Fn as Ee,FH as Ce,FG as De}from"./zeni-epic-state-22WFBgK9.js";import{z as C,cL as Fe,s as xe,w as ye,I as b,q as Y,r as j,H as we,c as N,e as je,cM as ve,h as V,at as Re}from"./index-B-v2HYWQ.js";import{n as Be}from"./mui-DqRlPgPp.js";import{u as Pe}from"./useInitialThreadRequest-DZ6IEgJ5.js";import{M as Ue}from"./MobileAppDrawer-DFwRXpE0.js";import Le from"./TaskListScreen-BgQVLwxs.js";import"./recharts-Dt8dM4EI.js";import"./analytics-NZ6ROu06.js";import"./plaid-BzyOi-ir.js";import"./dnd-C49i2BE4.js";import"./stripe-DMRn4zHo.js";import"./lottie-BWZi4J-8.js";import"./lexical-Bp-0qESw.js";import"./pdf-BpZ3cLIj.js";import"./utils-CGva6Exy.js";import"./useAskAiCfoHostNavButtonProps-h3l_262v.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]="554e255f-df77-4608-94a0-50ac1db1f2f1",e._sentryDebugIdIdentifier="sentry-dbid-554e255f-df77-4608-94a0-50ac1db1f2f1")}catch{}})();function $e(){const e=_(),t=M(),s=C.getSignedInUser(),{cannedResponses:u,fetchState:r,saveFetchState:d}=g(o=>o.cannedResponsesState),l=c.useCallback(()=>{t(O())},[t]),k=c.useCallback((o,h,S)=>{t(le({name:o,content:h,cannedResponseId:S}))},[t]),a=c.useCallback(o=>{t(de({cannedResponseId:o}))},[t]);if(s==null)throw Error("Can't access quick responses page without signing in...");return n.jsx(Fe,{cannedResponses:u,isLoading:r==="In-Progress"||r==="Not-Started",isSaving:d==="In-Progress",onBackClick:()=>e(-1),onDelete:a,onFetch:l,onSave:k})}let A,Q=[];const qe=re(function(e,t){const{location:s,taskGroupId:u}=t,r=W(e,t.taskId),d=Z(e),l=r.taskGroupId??u,k=l!=null?z(e.taskGroupState,l):void 0,a=C.getSignedInUser(),o=d.tenantId,h={userId:a?.userId??"",sessionId:a?.zeniSessionId??"",tenantId:o??""},S=H(e),{tenantEmailDomain:D}=d,G=r.recurringSourceTaskId,F=G!=null?`${V.appUrl}/${D}/tasks/${encodeURIComponent(G)}`:void 0;var I;return{taskDetailSelectorView:r,authParams:h,isZeniUser:C.isZeniUser(),userGroupList:((I=e.userGroupsState.userGroupByUserGroupId)!==A&&(A=I,Q=Object.values(I)),Q),isNewClicked:s.state?.message==="comingFromTaskListPage",filesEndPoint:Re.fileMicroServiceBaseUrl,companyName:t.currentTenant.companyName,companyId:t.currentTenant.companyId,currentUrl:`${V.appUrl}${t.location.pathname}`,cannedResponses:e.cannedResponsesState.cannedResponses,isCannedResponsesLoading:e.cannedResponsesState.fetchState==="In-Progress",recurringSourceTaskUrl:F,tagListView:S,taskGroupName:l!=null&&k!=null&&k.isDefault===!1?k.name:void 0,taskGroupList:e.taskGroupViewState.taskGroupsIds.map(p=>z(e.taskGroupState,p)).filter(p=>p!=null&&!p.isDeleted).map(p=>({id:p.id,name:p.name,isDefault:p.isDefault}))}},function(e,t){const{taskId:s,navigate:u,currentTenant:r,location:d,taskGroupId:l}=t,{tenantEmailDomain:k}=r;return{onSaveChangesToLocalStore:a=>{e(De({taskDetailLocalData:a,taskId:s}))},onSaveDetailClick:a=>{e(Ce(s,a??l))},onArchiveTaskClick:()=>{t.taskId!=null&&e(Ee(t.taskId))},onSnoozeTask:(a,o)=>{e(Ge(a,o))},onUnsnoozeTask:a=>{e(be(a))},onDismissClick:()=>{if(d.state?.message==="triggerBackClick"){const a=Y(d.state?.pathnameStackToGoBack),o=a.poppedPathname??"../../dashboard";u(o,{state:{pathnameStackToGoBack:a.newStack}})}else{const a=v(k),o=j(d.state?.pathnameStackToGoBack,d.pathname);u(a,{state:{pathnameStackToGoBack:o}})}e(Te({taskId:s}))},onDeleteTaskClick:()=>{e(Ie(s))},updateFilesEntity:a=>{e(Se({files:a}))},onDeleteFile:a=>{e(he(a))},onEditFileName:(a,o)=>{e(ge(a,o.split(".")[0]))},onReloadTaskDetailPage:()=>{e(X(!1,s))},onCreateTagClick:a=>{e(fe(a,s))},onDeleteTagClick:a=>{e(me(a,s))},onFetchCannedResponses:()=>{e(O())},onManageTemplatesClick:()=>{u(`/${r.tenantEmailDomain}/tasks/quick-responses`)}}})(ve);function w(){const e=_(),t=M(),s=ne(),u=xe(),{taskId:r,taskGroupId:d}=oe(),l=g(i=>Z(i)),k=Pe(l?.companyId),{useFeatureGate:a}=ye(),{isFeatureEnabled:o}=a(b.isTaskSnoozeEnabled),{isFeatureEnabled:h}=a(b.isTaskVisibilityEnabled),{isFeatureEnabled:S}=a(b.isTaskCannedResponsesEnabled),{isFeatureEnabled:D}=a(b.isTaskRecurringParentEnabled),{isFeatureEnabled:G}=a(b.isTaskGroupAssigneesEnabled),[F,I]=c.useState(!1),[p,J]=c.useState(!1),[R,K]=c.useState(!1),[B,ee]=c.useState(!1),[P,x]=c.useState(!1),T=c.useRef(!1),E=g(i=>i.taskListState.updateTasksFetchState.fetchState),U=g(i=>H(i)),L=g(i=>i.taskGroupViewState.fetchState);c.useEffect(()=>{p||(J(!0),t(X(!1,r)))},[p,t]),c.useEffect(()=>{R||U.fetchState==="Completed"||(K(!0),t(pe()))},[R,t,U.fetchState]),c.useEffect(()=>{B||L==="Completed"||(ee(!0),t(ue()))},[B,t,L]);const ae=c.useCallback(()=>{r!=null&&(T.current=!1,t(ke([r],null,{isArchived:!1})),x(!0))},[t,r]);c.useEffect(()=>{if(P)if(E!=="In-Progress"){if(T.current){if(E==="Error")return x(!1),void(T.current=!1);if(E==="Completed"){x(!1),T.current=!1;const{tenantEmailDomain:i}=l;if(s.state?.message==="triggerBackClick"){const m=Y(s.state?.pathnameStackToGoBack);e(m.poppedPathname??"../../dashboard",{state:{pathnameStackToGoBack:m.newStack}})}else{const m=v(i);e(m,{state:{pathnameStackToGoBack:j(s.state?.pathnameStackToGoBack,s.pathname)}})}}}}else T.current=!0},[P,E,l,s,e]);const $=g(i=>W(i,r)),y=$.fetchState,q=C.getSignedInUser();if(q==null)throw Error("Can't access task detail page without signing in...");if(y==="Error"&&$.error?.code===400){const{tenantEmailDomain:i}=l,m=v(i),te=j(s.state?.pathnameStackToGoBack,s.pathname);return n.jsx(ie,{to:m,state:{pathnameStackToGoBack:te}})}return n.jsxs(n.Fragment,{children:[y==="Completed"?n.jsx(we,{analytics:N,onLoad:i=>(m=>m.trackPageLoaded(je.Event.taskDetailPage))(i)}):null,n.jsxs(ze,{children:[n.jsx(Ue,{isAppContentDrawerOpen:F,handleDrawerToggle:i=>{I(i)}}),n.jsx(qe,{analytics:N,currentTenant:l,handleZeniLogoClick:()=>{u.toggle()},initialOpenThreadRequest:k,location:s,loggedInUser:q,navigate:e,taskGroupId:d,taskId:r,taskDetailFetchState:y,onUnarchiveTaskClick:ae,isTaskSnoozeEnabled:o,isTaskVisibilityEnabled:h,isTaskCannedResponsesEnabled:S,isTaskRecurringParentEnabled:D,isTaskGroupAssigneesEnabled:G})]})]})}const ze=Be.div`
2
- display: flex;
3
- min-height: 100%;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `,v=e=>`/${e}/tasks`;function ia(){return n.jsxs(ce,{children:[n.jsx(f,{path:"/new",element:n.jsx(w,{})}),n.jsx(f,{path:"/new/:taskGroupId",element:n.jsx(w,{})}),n.jsx(f,{path:"/group/:taskGroupId",element:n.jsx(Le,{})}),n.jsx(f,{path:"/quick-responses",element:n.jsx($e,{})}),n.jsx(f,{path:"/:taskId",element:n.jsx(w,{})}),n.jsx(f,{path:"*",element:n.jsx(se,{})})]})}export{ia as default};
@@ -1,12 +0,0 @@
1
- import{j as o}from"./liveblocks-D6iO1SmY.js";import{a as f}from"./sentry-DJeJwz74.js";import{s as u,h,g as y,N as b}from"./core-D-NK-UK9.js";import{JG as I,eU as w,zF as x}from"./zeni-epic-state-22WFBgK9.js";import{z as l,x as j,D as S,G as D}from"./index-B-v2HYWQ.js";import{n as g}from"./mui-DqRlPgPp.js";import"./recharts-Dt8dM4EI.js";import"./analytics-NZ6ROu06.js";import"./plaid-BzyOi-ir.js";import"./dnd-C49i2BE4.js";import"./stripe-DMRn4zHo.js";import"./lottie-BWZi4J-8.js";import"./lexical-Bp-0qESw.js";import"./pdf-BpZ3cLIj.js";import"./utils-CGva6Exy.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]="2834f26d-1467-44c5-b5ba-39650ee16df7",e._sentryDebugIdIdentifier="sentry-dbid-2834f26d-1467-44c5-b5ba-39650ee16df7")}catch{}})();const q=()=>{const[e]=u(),t=e.get("code")??"",i=e.get("state")??"",p=e.get("profileId")??"",[n,c]=f.useState(!1),a=h(),s=y(m=>I(m)),r=l.getSignedInUser(),d=l.getSignedInUserTenantWithId(i);if(r==null||d==null)return o.jsx(b,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return w(r.userId,r.zeniSessionId,d?.tenantId),f.useEffect(()=>{n||(c(!0),a(x(t,p,i)))},[n,a]),s.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:s.error?.message??""})}):(s.fetchState==="Completed"&&window.close(),o.jsx(j,{fetchState:"In-Progress"}))},E=g.div`
2
- display: flex;
3
- width: 100%;
4
- height: 100vh;
5
- flex-direction: row;
6
- justify-content: center;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey5};
9
- `,_=g(D.LargeRegular)`
10
- display: flex;
11
- color: ${S.important};
12
- `;export{q as default};
@@ -1,9 +0,0 @@
1
- import{j as i}from"./liveblocks-D6iO1SmY.js";import{a as u}from"./sentry-DJeJwz74.js";import{l as x,h as C,u as T,i as $,g as p}from"./core-D-NK-UK9.js";import{ID as s,IC as v,OT as B,eQ as D,OU as j}from"./zeni-epic-state-22WFBgK9.js";import{n as z,at as g,m as E,z as L,x as P,c3 as U,q as N}from"./index-B-v2HYWQ.js";import{n as _}from"./mui-DqRlPgPp.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]="b276c642-73ee-475a-8bf4-8febd4c68251",e._sentryDebugIdIdentifier="sentry-dbid-b276c642-73ee-475a-8bf4-8febd4c68251")}catch{}})();const G=_.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `;function Z(){const e=x(),n=C(),d=z(),l=T();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,y]=u.useState(!1),b=E();u.useEffect(()=>{m||(y(!0),n(v(a??"",!1)))},[m,n]);const o=p(t=>B(t,a??"")),h=()=>{const t=N(l.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},c=L.getSignedInUser(),r=p(t=>D(t)),I={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:r.tenantId??""},w=j(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=r.company?.companyInfo.companyLegalName??r.companyName;if(c==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?i.jsx(P,{fetchState:"In-Progress",style:{backgroundColor:b.colors.grey5}}):i.jsx(G,{windowSize:d,children:i.jsx(U,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:h,authParams:I,downloadEndPoint:f})})}export{Z};
@@ -1 +0,0 @@
1
- import{j as n}from"./index-B-v2HYWQ.js";import"./mui-DqRlPgPp.js";import"./sentry-DJeJwz74.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="b6b8e9af-f8bc-404b-b199-bcf35ce4c4cd",e._sentryDebugIdIdentifier="sentry-dbid-b6b8e9af-f8bc-404b-b199-bcf35ce4c4cd")}catch{}})();function r(e){if(e.companyLocaleInfo!=null&&e.companyLocaleInfo.languageCode.length>0&&e.companyLocaleInfo.companyIncCountryCode.length>0){const o=`${e.companyLocaleInfo.languageCode.toLowerCase()}-${e.companyLocaleInfo.companyIncCountryCode.toUpperCase()}`;return console.warn(`localeID ${o}`),n(o)??"en"}return"en"}export{r as t};
@@ -1 +0,0 @@
1
- import{b9 as n}from"./index-B-v2HYWQ.js";import"./sentry-DJeJwz74.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},f=new e.Error().stack;f&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[f]="c48ea7f0-137a-41c4-ab93-493fc0bf4f0e",e._sentryDebugIdIdentifier="sentry-dbid-c48ea7f0-137a-41c4-ab93-493fc0bf4f0e")}catch{}})();function t(){return n("dashboard")}export{t as u};
@@ -1 +0,0 @@
1
- import{a as l}from"./sentry-DJeJwz74.js";import{X as p,n as u,a as m,Z as b,r as y,a0 as k}from"./index-B-v2HYWQ.js";import"./mui-DqRlPgPp.js";import{l as g,u as h,i as A}from"./core-D-NK-UK9.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]="02cdc19c-fdd9-46ca-9de0-8350247b64df",e._sentryDebugIdIdentifier="sentry-dbid-02cdc19c-fdd9-46ca-9de0-8350247b64df")}catch{}})();function x(e){const{mobileExploreReferrer:a}=e,{isAiCfoOpen:n,setIsAiCfoOpen:s}=p(),i=g(),t=h(),{tenantEmailDomain:o}=A(),f=u(),r=k(f),d=m();return{isAiCfoAccessEnabled:b()&&d&&!n,onAskAiCfoClick:l.useCallback(()=>{if(o!=null)if(r){const c=y(t.state?.pathnameStackToGoBack,t.pathname);i(`/${o}/ai-cfo/explore`,{state:{pathnameStackToGoBack:c,referrer:a}})}else s(!0)},[r,t.pathname,t.state,a,i,s,o])}}export{x as u};
@@ -1 +0,0 @@
1
- import{a as n}from"./sentry-DJeJwz74.js";import{s as c}from"./core-D-NK-UK9.js";import{a5 as l}from"./index-B-v2HYWQ.js";import"./mui-DqRlPgPp.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]="d4f1a848-23ed-4a76-9f77-e52010516c3b",e._sentryDebugIdIdentifier="sentry-dbid-d4f1a848-23ed-4a76-9f77-e52010516c3b")}catch{}})();function m(e,a){const{clearParams:f=!0}=a??{},[t,d]=c(),[i,o]=n.useState(),s=n.useRef(!1),u=n.useRef(!1);return n.useEffect(()=>{if(s.current||e==null||!(t.has("thread_id")||t.has("entity_type")))return;const r=l(t,e);r!=null&&(o(r),s.current=!0)},[t,e]),n.useEffect(()=>{if(!s.current||u.current||!f||!(t.has("thread_id")||t.has("entity_type")))return;const r=new URLSearchParams(t);r.delete("thread_id"),r.delete("entity_type"),d(r,{replace:!0}),u.current=!0},[t,d,f]),i}export{m as u};