@zeniai/web-app-ui 5.3.55-dev → 5.3.56-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 (141) hide show
  1. package/dist/assets/{AccountMappingScreen-DdQz2lM1.js → AccountMappingScreen-BJKuQUQK.js} +2 -2
  2. package/dist/assets/{ActualMatchingMatchDetailScreen-CGBN-Q-7.js → ActualMatchingMatchDetailScreen-CkH9aaHO.js} +1 -1
  3. package/dist/assets/AddressRoutes-CHBmN4QX.js +1 -0
  4. package/dist/assets/AddressScreen-DVcm6rtP.js +9 -0
  5. package/dist/assets/AiCfoScreen-DLhxVK3m.js +22 -0
  6. package/dist/assets/{AppDrawer-CKP6jrbF.js → AppDrawer-DFw9ygHT.js} +1 -1
  7. package/dist/assets/{BillPayApprovalRoutes-BpoA_nrV.js → BillPayApprovalRoutes-CrSvpjTF.js} +1 -1
  8. package/dist/assets/{BillPayRoutes-B9NE4VxB.js → BillPayRoutes-D25IkCRG.js} +7 -7
  9. package/dist/assets/BusinessVerificationPageScreen-C3i585S_.js +9 -0
  10. package/dist/assets/{CardsAiCfoScreen-oYxLbDwZ.js → CardsAiCfoScreen-CGVXrGo3.js} +1 -1
  11. package/dist/assets/{ChargeCardRoutes-ljOxkkUf.js → ChargeCardRoutes-Be1yd7vs.js} +10 -10
  12. package/dist/assets/{CompanyPassportScreen-CamQRzbi.js → CompanyPassportScreen-BbxvKQ4h.js} +1 -1
  13. package/dist/assets/ConnectionAuthScreen-DW_RpnUG.js +11 -0
  14. package/dist/assets/CustomerOnboardingAuthScreen-B9oqAEpw.js +1 -0
  15. package/dist/assets/{CustomerOnboardingRoutes-UN9_koR-.js → CustomerOnboardingRoutes-DZPhXsuR.js} +2 -2
  16. package/dist/assets/{DashboardRoutes-B00G02__.js → DashboardRoutes-BNQ_G2Ja.js} +3 -3
  17. package/dist/assets/{DefaultTenantHome-BvquDIuf.js → DefaultTenantHome-CQb3BNY_.js} +1 -1
  18. package/dist/assets/DomesticWireDetailScreen-B1WqjoYC.js +18 -0
  19. package/dist/assets/{DrawerScreen-2p7xfq2O.js → DrawerScreen-BjVCvYOx.js} +1 -1
  20. package/dist/assets/EntityDetailRoutes-DPPxLcP3.js +1 -0
  21. package/dist/assets/ExpenseAutomationRoutes-Beqj_B98.js +38 -0
  22. package/dist/assets/FeaturePreviewScreen-DrZBk8z9.js +1 -0
  23. package/dist/assets/HubSpotOAuthCallbackScreen-uMS-Wn41.js +1 -0
  24. package/dist/assets/{InboxNotificationsProvider-CvLL3Xda.js → InboxNotificationsProvider-0KkUrcUF.js} +1 -1
  25. package/dist/assets/{InvoicingRoutes-BXUW-5w1.js → InvoicingRoutes-B7hVOPnd.js} +2 -2
  26. package/dist/assets/{MagicLinkRoutes-BxAzMNve.js → MagicLinkRoutes-0XNlBf8h.js} +6 -6
  27. package/dist/assets/MagicLinkSignInScreen-CmEuq8yZ.js +12 -0
  28. package/dist/assets/{MobileAppDrawer-fNaMEqpG.js → MobileAppDrawer-C4BbqfYY.js} +1 -1
  29. package/dist/assets/NotFoundScreen-BudPMncf.js +1 -0
  30. package/dist/assets/NotificationRoutes-ui3la9Pl.js +1 -0
  31. package/dist/assets/OAuthConsentScreen-BxSGmmYb.js +1 -0
  32. package/dist/assets/PandLWithForecastRoutes-CQxitPGl.js +1 -0
  33. package/dist/assets/{PaymentLinkScreen-0thjtbfK.js → PaymentLinkScreen-DZFH9-Dr.js} +3 -3
  34. package/dist/assets/PeopleRoutes-CTbqr9KR.js +22 -0
  35. package/dist/assets/PerformanceRoutes-DqqsTiLL.js +1 -0
  36. package/dist/assets/{Preview-CudBKEb3.js → Preview-CUqbKJrc.js} +1 -1
  37. package/dist/assets/{QBOConnectionScreen-a_jxuJVg.js → QBOConnectionScreen-83wGiY1-.js} +1 -1
  38. package/dist/assets/{ReimbursementApprovalRoutes-DHL_6iez.js → ReimbursementApprovalRoutes-CefdRKJA.js} +1 -1
  39. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-j72H8n28.js → ReimbursementApprovalRuleDetailScreen-DVIQ0iGz.js} +1 -1
  40. package/dist/assets/{ReimbursementRoutes-Cyrl2qi_.js → ReimbursementRoutes-CYSobdK2.js} +4 -4
  41. package/dist/assets/{ReportsRoutes-DSY4nYh6.js → ReportsRoutes-C0_U8cPe.js} +1 -1
  42. package/dist/assets/RewardsRoutes-Cuv6zmgH.js +1 -0
  43. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-C4z4GiyE.js → ScheduleDetailsPrepaidExpensesScreen-BQ_Jeykv.js} +5 -5
  44. package/dist/assets/ScreenRoutes-CWs8sPE7.js +2 -0
  45. package/dist/assets/{SettingsRoutes-DfnQIw3N.js → SettingsRoutes-tupY8NX6.js} +6 -6
  46. package/dist/assets/{SetupPagesScreen-Zigm3cB1.js → SetupPagesScreen-IP9GnMvD.js} +5 -5
  47. package/dist/assets/SignInScreen-C_QB0DLT.js +1 -0
  48. package/dist/assets/SignOutScreen-Dlg2jHAz.js +9 -0
  49. package/dist/assets/{TaskListScreen-WGfeq9_a.js → TaskListScreen-BLrDzaze.js} +2 -2
  50. package/dist/assets/TaskRoutes-D1AnOebo.js +9 -0
  51. package/dist/assets/TransactionDetailRoutes-aJqQLpSX.js +1 -0
  52. package/dist/assets/{TransactionDetailScreen-BDWEHK1J.js → TransactionDetailScreen-DVTW16A1.js} +2 -2
  53. package/dist/assets/{TransactionListRoutes-COxnLE0l.js → TransactionListRoutes-7PO54jHW.js} +1 -1
  54. package/dist/assets/{TreasuryRoutes-DmSouKJP.js → TreasuryRoutes-BLoMlu93.js} +5 -5
  55. package/dist/assets/{VendorsRoutes-OsvLnOdY.js → VendorsRoutes-u3UbdNbB.js} +12 -12
  56. package/dist/assets/WiseConfirmationScreen-BwqpmX8S.js +12 -0
  57. package/dist/assets/{ZeniAccountRoutes-O9BxDbbv.js → ZeniAccountRoutes-CDbRnTrg.js} +11 -11
  58. package/dist/assets/ZeniAccountStatementScreen-lhzrOeGm.js +9 -0
  59. package/dist/assets/{accountMappingHelper-DTr2dybD.js → accountMappingHelper-DAAt9xyM.js} +1 -1
  60. package/dist/assets/{analytics-BLHCH9ZW.js → analytics-B3pE_Rhv.js} +1 -1
  61. package/dist/assets/{analyticsHelper-DhzoozKy.js → analyticsHelper-DvdruwkE.js} +1 -1
  62. package/dist/assets/{core-_lmxLuL7.js → core-BtMsWhj9.js} +1 -1
  63. package/dist/assets/{decodeURIComponentSafe-CNj7wDd5.js → decodeURIComponentSafe-roe2OgG2.js} +1 -1
  64. package/dist/assets/{dnd-4_dRT_p_.js → dnd-NbF88ub7.js} +1 -1
  65. package/dist/assets/{empty-Bz6Du369.js → empty-CaVGMRjr.js} +1 -1
  66. package/dist/assets/{empty-B3p_skJy.js → empty-Cx0IX9BK.js} +1 -1
  67. package/dist/assets/{emptyVideoElement-DVls5c-N.js → emptyVideoElement-BixupcUv.js} +1 -1
  68. package/dist/assets/epic-CvUAcLT0.js +2 -0
  69. package/dist/assets/expenseAutomationHelper-oTNGiYVa.js +1 -0
  70. package/dist/assets/{getLocaleForTenant-DiPOVD9Y.js → getLocaleForTenant-omtGYMrM.js} +1 -1
  71. package/dist/assets/{index-BqEaHxIT.js → index-BdE3bEFg.js} +11876 -11875
  72. package/dist/assets/{index-Cg11XXLq.js → index-CgkBXLPm.js} +1 -1
  73. package/dist/assets/{index-DMJTTbIe.js → index-CscHaeoB.js} +1 -1
  74. package/dist/assets/{index-sGFH656b.js → index-D4z6ymU4.js} +1 -1
  75. package/dist/assets/{index-DYybIBq-.js → index-DH8aYJll.js} +1 -1
  76. package/dist/assets/{index-DLV1sgpa.js → index-De8Bm1rc.js} +1 -1
  77. package/dist/assets/{index-BXkbHEmr.js → index-Dh_E8szn.js} +2 -2
  78. package/dist/assets/{index-hIpaHuHG.js → index-Dpw9AdmE.js} +1 -1
  79. package/dist/assets/{lexical-BibO8P7-.js → lexical-OFbGuPVJ.js} +1 -1
  80. package/dist/assets/{liveblocks-C_txwMxP.js → liveblocks-CVtnm86a.js} +1 -1
  81. package/dist/assets/{lottie-CyJj6i4R.js → lottie-DX_KUXtr.js} +1 -1
  82. package/dist/assets/{mui-DbFwPEO7.js → mui-DdZ2UeI1.js} +1 -1
  83. package/dist/assets/{pathToGoBack-W4B39XGQ.js → pathToGoBack-DUa0cp7d.js} +1 -1
  84. package/dist/assets/{pdf-BfgO0ZZE.js → pdf-Ck6JVYdq.js} +3 -3
  85. package/dist/assets/{pdf-lib-B5AjOY9Z.js → pdf-lib-BXXBaukU.js} +1 -1
  86. package/dist/assets/{plaid-DHbQ1Fnc.js → plaid-nsaMWH8B.js} +1 -1
  87. package/dist/assets/{pusher--5P9Uwc_.js → pusher-D5GzcojU.js} +1 -1
  88. package/dist/assets/{react-DrxoeICl.js → react-0n9ZpUxt.js} +1 -1
  89. package/dist/assets/{react-BmknZowZ.js → react-BgVq8Vpa.js} +1 -1
  90. package/dist/assets/{react-CUz7FHyX.js → react-C-0cdt-e.js} +1 -1
  91. package/dist/assets/{react-h8fTHwLe.js → react-CWdFYh5J.js} +1 -1
  92. package/dist/assets/{react-IBoMtt1b.js → react-DXmkD3ns.js} +1 -1
  93. package/dist/assets/{react-BKa7fZpZ.js → react-DhgbPzuh.js} +1 -1
  94. package/dist/assets/{recharts-B43pV0TY.js → recharts-DhwkC6iY.js} +1 -1
  95. package/dist/assets/{routePaths-C1I3AVBw.js → routePaths-znAFGC3M.js} +1 -1
  96. package/dist/assets/{sentry-D_60LtUS.js → sentry-BzkfMVrG.js} +1 -1
  97. package/dist/assets/{stripSplatSuffix-BWXYYZxG.js → stripSplatSuffix-BORWr7jN.js} +1 -1
  98. package/dist/assets/{url-BryZycM8.js → url-B1VibTls.js} +1 -1
  99. package/dist/assets/{url-CvufulZn.js → url-DLwy6QED.js} +1 -1
  100. package/dist/assets/{useActualMatchingMatchDetail-BOc11rCC.js → useActualMatchingMatchDetail-BATx-hw7.js} +1 -1
  101. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-DfcdcxeV.js → useAiCfoDashboardSuggestedQuestionsChips-RBwji9iv.js} +1 -1
  102. package/dist/assets/{useAskAiCfoHostNavButtonProps-Biynu986.js → useAskAiCfoHostNavButtonProps-yiVAQfVL.js} +1 -1
  103. package/dist/assets/{useChargeCardPusherEvents-N9Kbq9gN.js → useChargeCardPusherEvents-D6w93u1p.js} +1 -1
  104. package/dist/assets/{useDeviceId-Dks2onQn.js → useDeviceId-Cvm1S2SE.js} +1 -1
  105. package/dist/assets/{useEmailConnectResultRefresh-BtvKv8-C.js → useEmailConnectResultRefresh-BuXXdg7d.js} +1 -1
  106. package/dist/assets/{useInitialThreadRequest-CyHRajCC.js → useInitialThreadRequest-CRJTlzEQ.js} +1 -1
  107. package/dist/assets/{useTaskManagerAccess-Cs4MVKyS.js → useTaskManagerAccess-CtzHb9vx.js} +1 -1
  108. package/dist/assets/{useTaskManagerPusherEvents-BPWIyNie.js → useTaskManagerPusherEvents-BsdLgh09.js} +1 -1
  109. package/dist/assets/{utils-CPbtTTqo.js → utils-BrzWPNCR.js} +1 -1
  110. package/dist/assets/{withTransactionSidePanel-Dxu14DPo.js → withTransactionSidePanel-BrwXnQ2x.js} +4 -4
  111. package/dist/assets/{zeni-epic-state-CtlpRqoe.js → zeni-epic-state-xhG_euwn.js} +5 -5
  112. package/dist/index.html +1 -1
  113. package/package.json +3 -3
  114. package/dist/assets/AddressRoutes-CynmpoQu.js +0 -1
  115. package/dist/assets/AddressScreen-DqZYCoSs.js +0 -9
  116. package/dist/assets/AiCfoScreen-CtsJ7cDT.js +0 -22
  117. package/dist/assets/BusinessVerificationPageScreen-BldrMJdh.js +0 -9
  118. package/dist/assets/ConnectionAuthScreen-BoP4m4L6.js +0 -11
  119. package/dist/assets/CustomerOnboardingAuthScreen-CDb5FCfJ.js +0 -1
  120. package/dist/assets/DomesticWireDetailScreen-BBhvylGY.js +0 -18
  121. package/dist/assets/EntityDetailRoutes-CLBqzGEu.js +0 -1
  122. package/dist/assets/ExpenseAutomationRoutes-CsO9a4nX.js +0 -38
  123. package/dist/assets/FeaturePreviewScreen-8gjXA436.js +0 -1
  124. package/dist/assets/HubSpotOAuthCallbackScreen-CdBNaEnB.js +0 -1
  125. package/dist/assets/MagicLinkSignInScreen-CBQx4xWX.js +0 -12
  126. package/dist/assets/NotFoundScreen-BeP62Nz9.js +0 -1
  127. package/dist/assets/NotificationRoutes-GCk-IahK.js +0 -1
  128. package/dist/assets/OAuthConsentScreen-DECI8j0I.js +0 -1
  129. package/dist/assets/PandLWithForecastRoutes-Ca12AKcd.js +0 -1
  130. package/dist/assets/PeopleRoutes-DYtmtMXx.js +0 -22
  131. package/dist/assets/PerformanceRoutes-DP4OW2qD.js +0 -1
  132. package/dist/assets/RewardsRoutes-DvJjiZGU.js +0 -1
  133. package/dist/assets/ScreenRoutes-C7oLHktw.js +0 -2
  134. package/dist/assets/SignInScreen-BRoXT-HL.js +0 -1
  135. package/dist/assets/SignOutScreen-DkRfW28z.js +0 -9
  136. package/dist/assets/TaskRoutes-C5PxGl6p.js +0 -9
  137. package/dist/assets/TransactionDetailRoutes-BBdrsyNq.js +0 -1
  138. package/dist/assets/WiseConfirmationScreen-taiB3VxF.js +0 -12
  139. package/dist/assets/ZeniAccountStatementScreen-DzQsPHni.js +0 -9
  140. package/dist/assets/epic-Dg8E5zC1.js +0 -2
  141. package/dist/assets/expenseAutomationHelper-C8o4PBoS.js +0 -1
@@ -1 +0,0 @@
1
- import{j as a}from"./liveblocks-C_txwMxP.js";import{z as j,a9 as b,j as d,W as D,e3 as E,c as k,v as I}from"./index-BqEaHxIT.js";import"./mui-DbFwPEO7.js";import g from"./NotFoundScreen-BeP62Nz9.js";import{a as m}from"./sentry-D_60LtUS.js";import{u as C,j as h,h as F,g as L,l as T,n as U,o as f,N as y}from"./core-_lmxLuL7.js";import{fF as V,a1T as w,a1U as p,DM as _,p$ as P,a1V as z,DK as G}from"./zeni-epic-state-CtlpRqoe.js";import"./recharts-B43pV0TY.js";import"./analytics-BLHCH9ZW.js";import"./plaid-DHbQ1Fnc.js";import"./dnd-4_dRT_p_.js";import"./stripe-cKAAJElX.js";import"./lottie-CyJj6i4R.js";import"./lexical-BibO8P7-.js";import"./pdf-BfgO0ZZE.js";import"./utils-CPbtTTqo.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]="65486545-d227-4c33-8a70-6c4ffc6ef044",e._sentryDebugIdIdentifier="sentry-dbid-65486545-d227-4c33-8a70-6c4ffc6ef044")}catch{}})();const K=T((function(e,t){const n=w(e);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}}),(function(e,t){const{navigate:n}=t,i=j.getSignedInUser();return{onDismissClick:()=>{e(p()),n("/")},onSendClick:()=>{if(i!=null){const s=[],r=[];t.inviteFormCompayData.forEach((c=>{s.push(c.companyName),r.push(c.emailIds[0])})),d.trackInviteEmailClicked("send",s,r,s.length)}e(G())},onUpdateInviteFormLocalData:s=>{e(z({localData:s}))},onSubmitSuccess:()=>{e(p())},onCancelClick:()=>{i!=null&&d.trackInviteEmailClicked("cancel")}}}))(E),M=()=>{const e=C(),[t,n]=m.useState(!1),[i,s]=m.useState(!1),r=h((o=>V(o))),c=F(),x=L(),u=j.getSignedInUser();if(u==null)throw Error("Can't access invite referral screen without signing in...");const l=h((o=>w(o))),v=u?.firstName!=null?u.firstName:"User";m.useEffect((()=>{e(p()),r?.rewardsLastViewedTime==null&&i===!1&&(e(_()),s(!0))}),[]),m.useEffect((()=>{t||l.fetchState!=="Not-Started"||(n(!0),e(P(!0)))}),[l.fetchState,e]);const N=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[l.fetchState==="Completed"?a.jsx(b,{analytics:d,onLoad:o=>(S=>S.trackPageLoaded(D.Event.inviteEmailViewed))(o)}):null,a.jsx(K,{navigate:c,location:x,currentTenant:r,companyName:N,userName:v,inviteFormCompayData:l.localData})]})};function ne(){const{useFeatureGate:e}=k(),{isFeatureEnabled:t}=e(I.isReferralFeatureEnabled);return a.jsxs(U,{children:[a.jsx(f,{path:"/",element:a.jsx(y,{to:"refer",replace:!0})}),a.jsx(f,{path:"how-it-works",element:a.jsx(y,{to:"refer",replace:!0})}),a.jsx(f,{path:"refer/*",element:t?a.jsx(M,{}):a.jsx(g,{})}),a.jsx(f,{path:"*",element:a.jsx(g,{})})]})}export{ne as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/NotFoundScreen-BeP62Nz9.js","assets/sentry-D_60LtUS.js","assets/core-_lmxLuL7.js","assets/zeni-epic-state-CtlpRqoe.js","assets/index-BqEaHxIT.js","assets/mui-DbFwPEO7.js","assets/analytics-BLHCH9ZW.js","assets/utils-CPbtTTqo.js","assets/index-BhC2LNQw.css","assets/DashboardRoutes-B00G02__.js","assets/withTransactionSidePanel-Dxu14DPo.js","assets/useAskAiCfoHostNavButtonProps-Biynu986.js","assets/TransactionDetailScreen-BDWEHK1J.js","assets/decodeURIComponentSafe-CNj7wDd5.js","assets/useInitialThreadRequest-CyHRajCC.js","assets/routePaths-C1I3AVBw.js","assets/expenseAutomationHelper-C8o4PBoS.js","assets/stripSplatSuffix-BWXYYZxG.js","assets/analyticsHelper-DhzoozKy.js","assets/CompanyPassportScreen-CamQRzbi.js","assets/MobileAppDrawer-fNaMEqpG.js","assets/InboxNotificationsProvider-CvLL3Xda.js","assets/useTaskManagerAccess-Cs4MVKyS.js","assets/useAiCfoDashboardSuggestedQuestionsChips-DfcdcxeV.js","assets/FeaturePreviewScreen-8gjXA436.js","assets/BillPayRoutes-B9NE4VxB.js","assets/AddressScreen-DqZYCoSs.js","assets/DomesticWireDetailScreen-BBhvylGY.js","assets/BusinessVerificationPageScreen-BldrMJdh.js","assets/DrawerScreen-2p7xfq2O.js","assets/SetupPagesScreen-Zigm3cB1.js","assets/BillPayApprovalRoutes-BpoA_nrV.js","assets/ReimbursementApprovalRuleDetailScreen-j72H8n28.js","assets/getLocaleForTenant-DiPOVD9Y.js","assets/ReimbursementRoutes-Cyrl2qi_.js","assets/ReimbursementApprovalRoutes-DHL_6iez.js","assets/TransactionListRoutes-COxnLE0l.js","assets/ZeniAccountStatementScreen-DzQsPHni.js","assets/SettingsRoutes-DfnQIw3N.js","assets/AccountMappingScreen-DdQz2lM1.js","assets/QBOConnectionScreen-a_jxuJVg.js","assets/empty-B3p_skJy.js","assets/index-sGFH656b.js","assets/url-BryZycM8.js","assets/index-Cg11XXLq.js","assets/accountMappingHelper-DTr2dybD.js","assets/useEmailConnectResultRefresh-BtvKv8-C.js","assets/ReportsRoutes-DSY4nYh6.js","assets/ChargeCardRoutes-ljOxkkUf.js","assets/useChargeCardPusherEvents-N9Kbq9gN.js","assets/PeopleRoutes-DYtmtMXx.js","assets/ExpenseAutomationRoutes-CsO9a4nX.js","assets/useActualMatchingMatchDetail-BOc11rCC.js","assets/ScheduleDetailsPrepaidExpensesScreen-C4z4GiyE.js","assets/pathToGoBack-W4B39XGQ.js","assets/TreasuryRoutes-DmSouKJP.js","assets/VendorsRoutes-OsvLnOdY.js","assets/ZeniAccountRoutes-O9BxDbbv.js","assets/AddressRoutes-CynmpoQu.js","assets/PandLWithForecastRoutes-Ca12AKcd.js","assets/CustomerOnboardingRoutes-UN9_koR-.js","assets/TransactionDetailRoutes-BBdrsyNq.js","assets/EntityDetailRoutes-CLBqzGEu.js","assets/InvoicingRoutes-BXUW-5w1.js","assets/NotificationRoutes-GCk-IahK.js","assets/PerformanceRoutes-DP4OW2qD.js","assets/ActualMatchingMatchDetailScreen-CGBN-Q-7.js","assets/RewardsRoutes-DvJjiZGU.js","assets/TaskRoutes-C5PxGl6p.js","assets/TaskListScreen-WGfeq9_a.js","assets/useTaskManagerPusherEvents-BPWIyNie.js","assets/AiCfoScreen-CtsJ7cDT.js","assets/CardsAiCfoScreen-oYxLbDwZ.js"])))=>i.map(i=>d[i]);
2
- import{_ as s,bn as hs,fF as ps,d_ as xs,dZ as gs,AZ as Rs,di as js,c8 as Is,gJ as Ts,g9 as As,df as pe,cG as fs,gn as bs,cy as Ds,bE as ys,br as vs,U8 as Cs,v as Os,Ub as Us,bq as Ps,Uc as ws,bK as Fs,bJ as Ls,bt as ks,cu as Hs,Ud as Vs,Ue as Ss,da as Bs,dd as Ns,dc as Ms,cF as Zs,cM as Gs,pS as xe,gi as ge,gY as $s,gk as Re,gL as je,gM as Ie,gl as zs}from"./zeni-epic-state-CtlpRqoe.js";import{j as e}from"./liveblocks-C_txwMxP.js";import{a as P}from"./sentry-D_60LtUS.js";import{N as u,u as Ys,h as qs,i as Js,g as Ws,j as G,q as Te,n as Ks,o as n}from"./core-_lmxLuL7.js";import{J as l,E as Qs,u as Xs,z as y,c as et,e as st,H as tt,v as B,g as nt,N as at,Q as ot,L as F,G as Ae,t as _,O as rt,P as it,S as lt,j as ne}from"./index-BqEaHxIT.js";import"./mui-DbFwPEO7.js";import{f as fe}from"./analyticsHelper-DhzoozKy.js";import{t as ut}from"./getLocaleForTenant-DiPOVD9Y.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},b=new o.Error().stack;b&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[b]="4409e8bd-fca3-40ff-9996-386a2505e85f",o._sentryDebugIdIdentifier="sentry-dbid-4409e8bd-fca3-40ff-9996-386a2505e85f")}catch{}})();const dt=l((()=>s((()=>import("./NotFoundScreen-BeP62Nz9.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8])))),ct=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/reimbursements`}),mt=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/bills`}),be=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/treasury`}),De=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/checking`}),ye=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/cards`}),v=({showZeniAccountRoute:o,isUserHasBillPayAccess:b,isUserHasReimbursementAccess:N,showTreasuryRoute:i,isTenantBankingOnly:k,showChargeCardRoute:O,tenantEmailDomain:C})=>{if(k===!0){if(o)return e.jsx(De,{tenantEmailDomain:C});if(i)return e.jsx(be,{tenantEmailDomain:C});if(O)return e.jsx(ye,{tenantEmailDomain:C})}return o?e.jsx(De,{tenantEmailDomain:C}):i?e.jsx(be,{tenantEmailDomain:C}):O?e.jsx(ye,{tenantEmailDomain:C}):b?e.jsx(mt,{tenantEmailDomain:C}):N?e.jsx(ct,{tenantEmailDomain:C}):e.jsx(dt,{})},_t={dashboard:()=>s((()=>import("./DashboardRoutes-B00G02__.js")),__vite__mapDeps([9,1,2,3,4,5,6,7,10,11,12,13,14,15,16,17,0,18,19,20,21,22,23,24,8])),bills:()=>s((()=>import("./BillPayRoutes-B9NE4VxB.js")),__vite__mapDeps([25,1,2,3,4,5,6,7,26,0,27,11,14,28,15,20,21,22,29,24,30,18,31,32,33,8])),reimbursement:()=>s((()=>import("./ReimbursementRoutes-Cyrl2qi_.js")),__vite__mapDeps([34,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,24,11,14,29,35,32,33,8])),transactions:()=>s((()=>import("./TransactionListRoutes-COxnLE0l.js")),__vite__mapDeps([36,1,2,3,4,5,6,7,10,11,12,13,14,15,16,17,37,8])),settings:()=>s((()=>import("./SettingsRoutes-DfnQIw3N.js")),__vite__mapDeps([38,1,2,3,4,5,6,7,22,39,20,21,40,41,42,43,44,13,45,26,0,18,28,15,19,46,31,32,35,8])),reports:()=>s((()=>import("./ReportsRoutes-DSY4nYh6.js")),__vite__mapDeps([47,1,2,3,4,5,6,7,0,24,14,15,20,21,22,8])),chargeCards:()=>s((()=>import("./ChargeCardRoutes-ljOxkkUf.js")),__vite__mapDeps([48,1,2,3,4,5,6,7,11,20,21,22,30,28,15,0,18,14,49,26,8])),people:()=>s((()=>import("./PeopleRoutes-DYtmtMXx.js")),__vite__mapDeps([50,1,2,3,4,5,6,7,0,11,20,21,22,8])),expenseAutomation:()=>s((()=>import("./ExpenseAutomationRoutes-CsO9a4nX.js")),__vite__mapDeps([51,1,2,3,0,4,5,6,7,11,12,13,14,15,16,52,17,10,53,54,45,29,8])),treasury:()=>s((()=>import("./TreasuryRoutes-DmSouKJP.js")),__vite__mapDeps([55,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,11,14,24,8])),vendors:()=>s((()=>import("./VendorsRoutes-OsvLnOdY.js")),__vite__mapDeps([56,1,2,3,4,5,6,7,26,0,24,53,54,15,11,20,21,22,29,45,8])),zeniAccounts:()=>s((()=>import("./ZeniAccountRoutes-O9BxDbbv.js")),__vite__mapDeps([57,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,24,27,26,11,37,8]))},Et=["bills","transactions","settings","reimbursement","reports","chargeCards","people"],ae=o=>{"requestIdleCallback"in window?requestIdleCallback(o):setTimeout(o,100)},ht=l((()=>s((()=>import("./ReportsRoutes-DSY4nYh6.js")),__vite__mapDeps([47,1,2,3,4,5,6,7,0,24,14,15,20,21,22,8])))),pt=l((()=>s((()=>import("./AddressRoutes-CynmpoQu.js")),__vite__mapDeps([58,1,2,3,26,4,5,6,7,0,8])))),xt=l((()=>s((()=>import("./PeopleRoutes-DYtmtMXx.js")),__vite__mapDeps([50,1,2,3,4,5,6,7,0,11,20,21,22,8])))),gt=l((()=>s((()=>import("./PandLWithForecastRoutes-Ca12AKcd.js")),__vite__mapDeps([59,1,2,3,4,5,6,7,0,24,11,14,15,20,21,22,8])))),Rt=l((()=>s((()=>import("./CustomerOnboardingRoutes-UN9_koR-.js")),__vite__mapDeps([60,1,2,3,26,4,5,6,7,0,40,41,42,43,44,13,46,49,8])))),jt=l((()=>s((()=>import("./VendorsRoutes-OsvLnOdY.js")),__vite__mapDeps([56,1,2,3,4,5,6,7,26,0,24,53,54,15,11,20,21,22,29,45,8])))),It=l((()=>s((()=>import("./TransactionDetailRoutes-BBdrsyNq.js")),__vite__mapDeps([61,1,2,3,0,4,5,6,7,12,11,13,14,15,16,8])))),ve=l((()=>s((()=>import("./EntityDetailRoutes-CLBqzGEu.js")),__vite__mapDeps([62,1,2,3,4,5,6,7,13,10,11,12,14,15,16,17,8])))),Tt=l((()=>s((()=>import("./DashboardRoutes-B00G02__.js")),__vite__mapDeps([9,1,2,3,4,5,6,7,10,11,12,13,14,15,16,17,0,18,19,20,21,22,23,24,8])))),Ce=l((()=>s((()=>import("./BillPayRoutes-B9NE4VxB.js")),__vite__mapDeps([25,1,2,3,4,5,6,7,26,0,27,11,14,28,15,20,21,22,29,24,30,18,31,32,33,8])))),At=l((()=>s((()=>import("./SettingsRoutes-DfnQIw3N.js")),__vite__mapDeps([38,1,2,3,4,5,6,7,22,39,20,21,40,41,42,43,44,13,45,26,0,18,28,15,19,46,31,32,35,8])))),ft=l((()=>s((()=>import("./InvoicingRoutes-BXUW-5w1.js")),__vite__mapDeps([63,1,2,3,4,5,6,7,26,0,20,21,22,40,41,42,43,44,13,8])))),Oe=l((()=>s((()=>import("./ReimbursementRoutes-Cyrl2qi_.js")),__vite__mapDeps([34,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,24,11,14,29,35,32,33,8])))),bt=l((()=>s((()=>import("./ZeniAccountRoutes-O9BxDbbv.js")),__vite__mapDeps([57,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,24,27,26,11,37,8])))),Dt=l((()=>s((()=>import("./TreasuryRoutes-DmSouKJP.js")),__vite__mapDeps([55,1,2,3,4,5,6,7,0,30,28,15,20,21,22,18,11,14,24,8])))),yt=l((()=>s((()=>import("./TransactionListRoutes-COxnLE0l.js")),__vite__mapDeps([36,1,2,3,4,5,6,7,10,11,12,13,14,15,16,17,37,8])))),vt=l((()=>s((()=>import("./ChargeCardRoutes-ljOxkkUf.js")),__vite__mapDeps([48,1,2,3,4,5,6,7,11,20,21,22,30,28,15,0,18,14,49,26,8])))),Ct=l((()=>s((()=>import("./NotificationRoutes-GCk-IahK.js")),__vite__mapDeps([64,1,2,3,0,4,5,6,7,11,22,8])))),Ot=l((()=>s((()=>import("./PerformanceRoutes-DP4OW2qD.js")),__vite__mapDeps([65,1,2,3,0,4,5,6,7,11,20,21,22,8])))),Ut=l((()=>s((()=>import("./ExpenseAutomationRoutes-CsO9a4nX.js")),__vite__mapDeps([51,1,2,3,0,4,5,6,7,11,12,13,14,15,16,52,17,10,53,54,45,29,8])))),Pt=l((()=>s((()=>import("./ActualMatchingMatchDetailScreen-CGBN-Q-7.js")),__vite__mapDeps([66,1,2,3,4,5,6,7,52,17,13,15,0,8])))),wt=l((()=>s((()=>import("./RewardsRoutes-DvJjiZGU.js")),__vite__mapDeps([67,1,2,3,4,5,6,7,0,8])))),Ft=l((()=>s((()=>import("./TaskRoutes-C5PxGl6p.js")),__vite__mapDeps([68,1,2,3,0,4,5,6,7,14,20,21,22,69,11,70,8])))),Lt=l((()=>s((()=>import("./AiCfoScreen-CtsJ7cDT.js")),__vite__mapDeps([71,1,2,3,4,5,6,7,23,54,15,70,8])))),Ue=l((()=>s((()=>import("./CardsAiCfoScreen-oYxLbDwZ.js")),__vite__mapDeps([72,1,2,3,4,5,6,7,8])))),f=l((()=>s((()=>import("./NotFoundScreen-BeP62Nz9.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8])))),kt=l((()=>s((()=>import("./TaskListScreen-WGfeq9_a.js").then((o=>o.f))),__vite__mapDeps([69,1,2,3,4,5,6,7,11,20,21,22,70,8])))),Ht=({isDashboardAccess:o,showZeniAccountRoute:b,isUserHasBillPayAccess:N,isUserHasReimbursementAccess:i,showTreasuryRoute:k,isTenantBankingOnly:O,isTenantCardsOnly:C,showChargeCardRoute:H})=>{if(O===!0){if(b)return e.jsx(u,{to:"checking"});if(k)return e.jsx(u,{to:"treasury"});if(H)return e.jsx(u,{to:"cards"})}return C===!0&&H?e.jsx(u,{to:"cards"}):o?e.jsx(u,{to:"dashboard"}):b?e.jsx(u,{to:"checking"}):k?e.jsx(u,{to:"treasury"}):H?e.jsx(u,{to:"cards"}):N?e.jsx(u,{to:"bills"}):i?e.jsx(u,{to:"reimbursements"}):e.jsx(u,{to:"dashboard"})},Pe=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/dashboard`}),zt=Object.freeze(Object.defineProperty({__proto__:null,default:function({setTenantEmailDomain:o}){const b=Ys(),N=qs(),{tenantEmailDomain:i}=Js(),k=Qs().mode,{setLoading:O,clearAllLoading:C,clearLoading:H}=Xs(),D=y.getSignedInUserTenant(i)?.tenantId,I=y.getSignedInUser(),W=hs(I),$=Ws(),[L,we]=P.useState(!1),r=G((a=>ps(a))),{useFeatureGate:V}=et(),M=st(),K=tt(),Fe=!!r.company?.companyZeniAccountInfo?.isZeniAccountEnabled,Le=r.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",{isFeatureEnabled:ke}=V(B.isChargeCardFeatureEnabled),{isFeatureEnabled:oe}=V(B.isDebitCardFeatureEnabled),T=G((a=>a.tenantState.fetchState)),p=G((a=>a.tenantState.activeTenantFetchState.fetchState)),E=p==="Completed"||T==="Completed"?xs(oe,r):void 0,Q=p==="Completed"||T==="Completed"?gs(r):void 0,re=p==="Completed"||T==="Completed"?Rs(r)&&!js(r):void 0,He=nt(r,ke,oe),{isCardsHidden:Ve}=at(r?.tenantId),Se=!He||!!Ve,{isFeatureEnabled:Be}=V(B.isSettingsFeatureEnabled),{isFeatureEnabled:X}=V(B.isAiCfoFileUploadEnabled),{isFeatureEnabled:Ne}=V(B.isInvoicingFeatureEnabled??"is_invoicing_feature_enabled"),Me=Ne||lt==="DEV",Ze=r?.userRole!=null&&Is(r.userRole),z=G((a=>Ts(a)));if(i!=null){const a=y.getSignedInUserTenant(i);I!=null&&a!=null&&fe(I,r,k)}const Z={tenantId:D,userId:I?.userId,sessionId:I?.zeniSessionId},ie=As(),h=ot(),Ge=r.company==null||h?.loggedInUserRoleMap!=null&&pe(h.loggedInUserRole),$e=fs(h?.loggedInUserRoleMap),ee=Te("/:tenantEmailDomain/onboarding/*")!==null,ze=Te("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*"),se=ze?.params.selectedPeriod,Ye=G((a=>Z.tenantId!=null?bs(a,Z.tenantId):void 0));P.useEffect((()=>{O(F.TENANT_FETCHING),o(i)}),[i]),P.useEffect((()=>{if(se!=null&&D!=null){const a=se.split("-");if(a.length===2){const A=Ds(Number(a[0])),c=Number(a[1]),t=ys(`01-${A<10?`0${A}`:A}-${c}`,Ae.getLocalizedStrings().dateFormat.analytics.DDDashMMDashYYYY),d=vs();t.isAfter(d,"month")===!1?b(Cs(D,{month:A,year:c})):N(`/${i}/month_end_close_checks/review`)}}}),[se,i,D]),P.useEffect((()=>{L||(we(!0),O(F.TENANT_FETCHING))}),[L,Z,ie,I,b,y]),P.useLayoutEffect((()=>{!Os(ie,Z)&&y.isSignedIn()&&(O(F.TENANT_FETCHING),(function(a,A,c,t){if(ge(A?.userId,A?.zeniSessionId,a.tenantId),c($s(!0)),c(Re(a.tenantId)),a.tenantId!=null&&_.clearTenant(a.tenantId),a.tenantId!=null){const d=y.getSignedInUserTenantWithId(a.tenantId);t&&Ae.updateAppLocaleID(ut(t)),d?.tenantEmailDomain!=null&&y.saveActiveTenantDomainForUser(d?.tenantEmailDomain)}a.userId!=null?ne.identify(a.userId,{tenant_id:a.tenantId}):ne.resetUserIdentity()})(Z,I,b,Ye))}),[D]),P.useEffect((()=>{y.isSignedIn()&&(O(F.TENANT_FETCHING),(function(a,A,c,t,d,Y,S){if(c==null&&t==null)return void console.warn("There is no current tenant selected!!");const q=t!=null&&d?.zeniSessionId!=null,ms=c==null||c.tenantId!==t,_s=c!=null&&c.excludedResources==null,Es=c!=null&&c.externalConnections==null;if(q&&ms){S(Re(t));const J=y.getSignedInUserTenantWithId(t);J?.tenantEmailDomain!=null&&y.saveActiveTenantDomainForUser(J?.tenantEmailDomain),ge(d?.userId,d?.zeniSessionId,t),_.shouldFetchExcludedResources(t)&&(_.markExcludedResourcesFetchStarted(t),S(je(d.userId,t))),_.shouldFetchConnections(t)&&(_.markConnectionsFetchStarted(t),S(Ie(d.userId,t)))}else q&&_s&&_.shouldFetchExcludedResources(t)&&(_.markExcludedResourcesFetchStarted(t),S(je(d.userId,t))),q&&Es&&_.shouldFetchConnections(t)&&(_.markConnectionsFetchStarted(t),S(Ie(d.userId,t)));if(q){ne.identify(d.userId,{tenant_id:t});const J=t==null||t!=null&&(A==="Completed"||A==="Error");a==="Completed"||A!=="Not-Started"&&A!=="Error"||t==null||!_.shouldFetchActiveTenant(t)||(_.markActiveTenantFetchStarted(t),Y(F.TENANT_FETCHING),S(zs(d.userId,t,d.zeniSessionId))),J&&(a==="Not-Started"||a==="Error")&&_.shouldFetchAllTenants()&&(_.markAllTenantsFetchStarted(),S(xe(d.userId,d.zeniSessionId)))}})(T,p,r,D,I,O,b))}),[D,p]),P.useEffect((()=>{y.isSignedIn()&&T==="Completed"&&z.tenantsBaseInOrder.length>0&&(H(F.TENANT_FETCHING),y.saveSignedInUserTenants(Us(z.tenantsBaseInOrder)),I!=null&&fe(I,r,k,void 0,z.tenantsBaseInOrder))}),[z,T,r,I]),P.useEffect((()=>{p==="In-Progress"&&O(F.TENANT_FETCHING),p!=="Completed"&&p!=="Error"||(p==="Completed"&&D!=null?(C(),_.markActiveTenantFetchCompleted(D)):p==="Error"&&D!=null&&(_.markActiveTenantFetchFailed(D),H(F.TENANT_FETCHING),H(F.TENANT_SWITCHING))),T!=="Completed"&&T!=="Error"||(T==="Completed"?_.markAllTenantsFetchCompleted():T==="Error"&&_.markAllTenantsFetchFailed())}),[p,T,D,L]);const le=P.useRef(!1);P.useEffect((()=>{!le.current&&p==="Completed"&&L&&(le.current=!0,(function(a=Et,A=3e3){setTimeout((()=>{const c=t=>{if(t>=a.length)return;const d=a[t],Y=_t[d];Y!=null?Y().then((()=>ae((()=>c(t+1))))).catch((()=>ae((()=>c(t+1))))):c(t+1)};ae((()=>c(0)))}),A)})())}),[p,L]);const U=r?.userRole!=null&&Ps(r?.userRole),{isFeatureEnabled:qe}=V(B.isReferralFeatureEnabled),{isFeatureEnabled:Je}=V(B.isAccrualEnabled),We=rt(),Ke=r?.userRole!=null&&r.userRole.includes("charge_card_user"),Qe=r?.userRole!=null&&r.userRole.includes("charge_card_admin"),w=r?.userRole!=null&&pe(r.userRole),ue=r?.company==null||r.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!U,de=!Se&&!U,Xe=ws(h?.loggedInUserRoleMap),es=r.externalConnections?.accounting[0]?.isValid,ss=r.externalConnections?.fetchState==="Completed",te=r.company?.companyOnboardingInfo.isOnboardingCompleted,ce=r?.company==null||r.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!U,me=ce&&Fs(h?.loggedInUserRoleMap),_e=Fe&&!U,ts=Le&&!U,ns=ue&&Ls(h?.loggedInUserRoleMap),as=de&&ks(h?.loggedInUserRoleMap),os=_e&&Hs(h?.loggedInUserRoleMap),rs=Vs(h?.loggedInUserRoleMap),is=Ss(h?.loggedInUserRoleMap),ls=Bs(h?.loggedInUserRoleMap),us=Ns(h?.loggedInUserRoleMap),ds=Ms(h?.loggedInUserRoleMap),x=Zs(h?.loggedInUserRoleMap),g=Gs(h?.loggedInUserRoleMap),Ee=ue&&x,he=ce&&g,R=_e&&ls,j=ts&&us,m=de&&ds,cs=r.excludedResources?.resources?.find((a=>a.resource==="/invites"))!=null||$e===!0||Xe===!0||rs===!0||is===!0;return y.isSignedIn()?D==null?T==="Completed"?e.jsx(u,{to:"/",replace:!0,state:{...$.state,message:"...",origin:$.pathname}}):(I!=null&&T!=="In-Progress"&&b(xe(I.userId,I.zeniSessionId)),null):p!=="In-Progress"&&p!=="Not-Started"||T==="Completed"?(te===!0||W&&!ee)&&ss&&es!==!0&&E===!1&&Q===!1&&re===!1?(o(void 0),e.jsx(u,{to:"/connection/auth",replace:!0})):!L||re!==!0||te!==!0||ee||W?!L||te!==!1||ee||W?L&&r?.userRole&&E!=null&&Q!=null&&i!=null&&Object.keys(h.loggedInUserRoleMap).length>0?e.jsx(Ks,{children:e.jsxs(n,{element:e.jsx(it,{}),children:[e.jsx(n,{path:"/",element:e.jsx(Ht,{isDashboardAccess:w,showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,isTenantCardsOnly:Q,showChargeCardRoute:m})}),e.jsx(n,{path:"dashboard/*",element:w?e.jsx(Tt,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"reports/*",element:w?e.jsx(ht,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"people/*",element:cs||w?e.jsx(xt,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"forecast/*",element:w?e.jsx(gt,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"onboarding/*",element:e.jsx(Rt,{})}),e.jsx(n,{path:"transaction/*",element:w&&U===!1||Ke||Qe?e.jsx(It,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"transactions/*",element:w&&U===!1?e.jsx(yt,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"customer/*",element:w&&U===!1?e.jsx(ve,{entityType:"customer"}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,isTenantBankingOnly:E,showTreasuryRoute:j,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"vendor/*",element:w&&U===!1?e.jsx(ve,{entityType:"vendor"}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"tasks",element:e.jsx(kt,{})}),e.jsx(n,{path:"tasks/*",element:e.jsx(Ft,{})}),e.jsx(n,{path:"address/*",element:ns||me||os||as?e.jsx(pt,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"checking/*",element:R?e.jsx(bt,{}):e.jsx(f,{})}),e.jsx(n,{path:"treasury/*",element:j?e.jsx(Dt,{}):e.jsx(f,{})}),e.jsx(n,{path:"performance",element:K===!0?e.jsx(Ot,{}):e.jsx(Pe,{tenantEmailDomain:i})}),e.jsx(n,{path:"month_end_close_checks/review/*",element:K===!0&&U===!1?e.jsx(Ut,{}):e.jsx(Pe,{tenantEmailDomain:i})}),e.jsx(n,{path:"expense-automation/actual-matching/:matchId",element:K===!0&&U===!1&&Je===!0&&We===!0?e.jsx(Pt,{}):e.jsx(f,{})}),e.jsx(n,{path:"notifications/*",element:e.jsx(Ct,{})}),e.jsx(n,{path:"vendors/*",element:Ge?e.jsx(jt,{}):e.jsx(f,{})}),e.jsx(n,{path:"bill/*",element:Ee?e.jsx(Ce,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"bills/*",element:Ee?e.jsx(Ce,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"reimbursement/*",element:he?e.jsx(Oe,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"reimbursements/*",element:he?e.jsx(Oe,{}):e.jsx(v,{showZeniAccountRoute:R,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:g,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"settings/*",element:Be?e.jsx(At,{hasAdminLevelAccess:me}):e.jsx(f,{})}),e.jsx(n,{path:"invoicing/*",element:Me&&Ze?e.jsx(ft,{}):e.jsx(f,{})}),e.jsx(n,{path:"cards/ask",element:m&&M?e.jsx(Ue,{isFileUploadEnabled:X}):e.jsx(f,{})}),e.jsx(n,{path:"cards/ask/:session_id",element:m&&M?e.jsx(Ue,{isFileUploadEnabled:X}):e.jsx(f,{})}),e.jsx(n,{path:"cards/*",element:m?e.jsx(vt,{}):e.jsx(f,{})}),e.jsx(n,{path:"rewards/*",element:qe?e.jsx(wt,{}):e.jsx(f,{})}),e.jsx(n,{path:"/ai-cfo",element:M?e.jsx(u,{to:"explore"}):e.jsx(f,{})}),e.jsx(n,{path:"/ai-cfo/",element:M?e.jsx(u,{to:"explore"}):e.jsx(f,{})}),e.jsx(n,{path:"/ai-cfo/:session_id",element:M?e.jsx(Lt,{isFileUploadEnabled:X}):e.jsx(f,{})}),e.jsx(n,{path:"*",element:e.jsx(f,{})})]})}):null:(o(void 0),e.jsx(u,{to:`/${i}/onboarding`,replace:!0})):(o(void 0),e.jsx(u,{to:`/${i}/onboarding/thankyou`,replace:!0})):null:(console.warn("User logged out!!"),o(void 0),e.jsx(u,{to:"/signin/auth",replace:!0,state:{...$.state,message:"...",origin:$.pathname}}))}},Symbol.toStringTag,{value:"Module"}));export{v as F,zt as S};
@@ -1 +0,0 @@
1
- import{j as f}from"./liveblocks-C_txwMxP.js";import{a as u,R as T,q as A}from"./sentry-D_60LtUS.js";import{u as j,h as z,j as l,g as D,N as F,l as M}from"./core-_lmxLuL7.js";import{u as O,z as s,E as P,j as w,G as _,U as N,W as B,X as $,Y as V,Z as W,_ as v}from"./index-BqEaHxIT.js";import{fF as q,TT as J,Ub as R,gi as X,gk as G,Ug as H,gU as Y,dj as Z,Uh as y,Ui as K,Uj as Q,b$ as U}from"./zeni-epic-state-CtlpRqoe.js";import"./mui-DbFwPEO7.js";import{u as ee}from"./useDeviceId-Dks2onQn.js";import{f as te}from"./analyticsHelper-DhzoozKy.js";import{t as ne}from"./getLocaleForTenant-DiPOVD9Y.js";import"./recharts-B43pV0TY.js";import"./analytics-BLHCH9ZW.js";import"./plaid-DHbQ1Fnc.js";import"./dnd-4_dRT_p_.js";import"./stripe-cKAAJElX.js";import"./lottie-CyJj6i4R.js";import"./lexical-BibO8P7-.js";import"./pdf-BfgO0ZZE.js";import"./utils-CPbtTTqo.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]="0d3ff2b3-076d-4833-a40e-57b5d00f8584",t._sentryDebugIdIdentifier="sentry-dbid-0d3ff2b3-076d-4833-a40e-57b5d00f8584")}catch{}})();const ie=M((function(t,i){const d=t.tenantState.fetchState,g=t.tenantState.sendEmailMagicLinkFetchState,{magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:c}=i;return{googleClientId:v.googleClientId,microsoftClientId:v.microsoftClientId,signInError:t.tenantState.error?.error,fetchState:d,sendMagicLinkStatus:g,magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:c}}),(function(t,i){const{location:d,navigate:g}=i;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,a)=>{A({message:`OAuth error from provider ${a} with error ${n}`,level:"error",tags:{authProvider:a,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,a)=>{const c=a==="google"?window.location.origin:window.location.origin+window.location.pathname;t(Q({authCode:n,oauthProvider:a,appType:"web",redirectUri:U(c),sourceUri:U(d.state!=null?d.state.origin:"")}))},getSignedInUser:()=>s.getSignedInUser(),onSignedInCallback:()=>{const n=d.state?.origin;n&&n!=="/"?g(n,{replace:!0}):window.open(window.location.origin,"_self")},sendMagicLink:n=>{const{deviceId:a}=i;a!=null&&(s.saveMagicLinkEmail(n),t(K(n,a)))},clearSignInError:()=>{t(y())}}}))(W),ae=T.memo(ie);function ve({setTenantEmailDomain:t}){const i=j(),d=z(),{clearAllLoading:g}=O(),n=s.getSignedInUser();u.useLayoutEffect((()=>{g()}),[g]);const a=ee(),c=l((e=>e.tenantState.magicLinkCodeVerifier)),{sendEmailMagicLinkFetchState:h,accountLocked:b,accountUnlockTime:k}=l((e=>e.tenantState)),p=l((e=>e.tenantState.fetchState)),L=l((e=>e.tenantState.activeTenantFetchState.fetchState)),S=l((e=>e.tenantState.signInState)),o=l((e=>e.tenantState.loggedInUser)),r=l((e=>q(e))),I=l((e=>J(e))),m=D(),E=P().mode,C=m.state?.magicLinkExpired,x=m.state?.magicLinkAlreadyUsed;if(u.useEffect((()=>{h.fetchState==="Completed"&&c!=null&&(w.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(c))}),[h.fetchState,c]),u.useEffect((()=>{t(void 0)}),[]),u.useEffect((()=>{S!=="In-Progress"||p!=="Completed"&&L!=="Completed"||o?.zeniSessionId==null||r==null||(s.savePayNowInfoTooltip(!0,o.zeniSessionId),s.saveSignedInUserWithSession(o,o.zeniSessionId),s.saveSignedInUserTenants(R(I.tenantsInOrder),o.zeniSessionId),X(o.userId,o.zeniSessionId,r.tenantId),i(G(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(H("Completed")),_.updateAppLocaleID(ne(r)),te(o,r,E,void 0,I.tenantsInOrder),Y().then((()=>{const e=V();e!=null&&N(e)})),setTimeout((()=>{w.trackLogin(B.Event.loginSuccess,o.authProvider??"google",Z(r.productSettings))}),2e3))}),[S,p,L,o,r,I,E,m.state,i]),S==="In-Progress"&&p==="Completed"&&o?.zeniSessionId!=null&&r!=null||n!=null){const e=m.state?.origin??"/";return f.jsx(F,{to:e,state:{...m.state,origin:""}})}return f.jsxs(f.Fragment,{children:[f.jsx(ae,{magicLinkExpired:!!C,magicLinkAlreadyUsed:!!x,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),b===!0&&k!=null?f.jsx($,{onClose:()=>i(y()),unlockDate:k}):null]})}export{ve as default};
@@ -1,9 +0,0 @@
1
- import{j as s}from"./liveblocks-C_txwMxP.js";import{a as i}from"./sentry-D_60LtUS.js";import{u as f,g as l,N as u}from"./core-_lmxLuL7.js";import{z as n,j as a,W as m,a8 as p}from"./index-BqEaHxIT.js";import{gX as g,Ux as b}from"./zeni-epic-state-CtlpRqoe.js";import{n as y}from"./mui-DbFwPEO7.js";import"./recharts-B43pV0TY.js";import"./analytics-BLHCH9ZW.js";import"./plaid-DHbQ1Fnc.js";import"./dnd-4_dRT_p_.js";import"./stripe-cKAAJElX.js";import"./lottie-CyJj6i4R.js";import"./lexical-BibO8P7-.js";import"./pdf-BfgO0ZZE.js";import"./utils-CPbtTTqo.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]="20beedd5-6178-4f71-a2a5-5bcccb68bdba",e._sentryDebugIdIdentifier="sentry-dbid-20beedd5-6178-4f71-a2a5-5bcccb68bdba")}catch{}})();function N(){const e=f(),t=l(),r=i.useRef(!1),c=n.isSignedIn(),o=t.state?.message==="logout"||c;return i.useEffect((()=>{if(o&&!r.current){r.current=!0;try{e(g()),b(),a.trackLogout(m.Event.logoutSuccess),a.resetUserIdentity(),n.clearAll()}catch(d){console.error("Error during sign out:",d)}finally{window.location.replace("/signin/auth")}}}),[o,e]),o?s.jsx(h,{children:s.jsx(p,{fetchState:"In-Progress"})}):s.jsx(u,{to:"../",replace:!0})}const h=y.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `;export{N as default};
@@ -1,9 +0,0 @@
1
- import{j as i}from"./liveblocks-C_txwMxP.js";import ue from"./NotFoundScreen-BeP62Nz9.js";import{a as k}from"./sentry-D_60LtUS.js";import{h as J,u as ee,j as E,g as de,i as ke,N as pe,l as me,n as Se,o as b}from"./core-_lmxLuL7.js";import{PZ as ae,Q0 as fe,PW as Te,a1W as ge,fF as te,a1X as se,Qm as g,Qe as T,PT as he,QS as be,QL as Ee,a1Y as ne,gh as oe,a1Z as Z,PP as Ie,PM as De,uT as Ce,uH as Ge,mz as _e,Qc as Re,a1_ as ye,R3 as Ue,Q8 as xe,Qx as Be,Qu as Pe,Q3 as ve,Qr as we,Qq as je}from"./zeni-epic-state-CtlpRqoe.js";import{z as R,e4 as Ae,V as Fe,c as Le,v as G,a5 as re,p as _,a9 as Ke,j as q,W as Qe,e5 as $e,_ as M,af as Ne}from"./index-BqEaHxIT.js";import{n as ze}from"./mui-DbFwPEO7.js";import{u as Oe}from"./useInitialThreadRequest-CyHRajCC.js";import{M as Ve}from"./MobileAppDrawer-fNaMEqpG.js";import{b as Ze,a as qe,T as f,t as Me,c as H,d as W,e as He}from"./TaskListScreen-WGfeq9_a.js";import{u as We}from"./useTaskManagerPusherEvents-BPWIyNie.js";import"./recharts-B43pV0TY.js";import"./analytics-BLHCH9ZW.js";import"./plaid-DHbQ1Fnc.js";import"./dnd-4_dRT_p_.js";import"./stripe-cKAAJElX.js";import"./lottie-CyJj6i4R.js";import"./lexical-BibO8P7-.js";import"./pdf-BfgO0ZZE.js";import"./utils-CPbtTTqo.js";import"./InboxNotificationsProvider-CvLL3Xda.js";import"./useTaskManagerAccess-Cs4MVKyS.js";import"./useAskAiCfoHostNavButtonProps-Biynu986.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]="1ab8c478-1dfb-498d-9ef6-9d1791e0a7fd",e._sentryDebugIdIdentifier="sentry-dbid-1ab8c478-1dfb-498d-9ef6-9d1791e0a7fd")}catch{}})();function Xe(){const e=J(),a=ee(),n=R.getSignedInUser(),{cannedResponses:c,fetchState:s,saveFetchState:u}=E((o=>o.cannedResponsesState)),d=k.useCallback((()=>{a(ae())}),[a]),m=k.useCallback(((o,I,D)=>{a(fe({name:o,content:I,cannedResponseId:D}))}),[a]),t=k.useCallback((o=>{a(Te({cannedResponseId:o}))}),[a]);if(n==null)throw Error("Can't access quick responses page without signing in...");return i.jsx(Ae,{cannedResponses:c,isLoading:s==="In-Progress"||s==="Not-Started",isSaving:u==="In-Progress",onBackClick:()=>e(-1),onDelete:t,onFetch:d,onSave:m})}const L=e=>e?.taskState?.taskByID,A=(e,a)=>{const n=L(e);if(a!=null&&n!=null)return n[a]?.parentTaskId??void 0},Ye=ge([A,(e,a)=>{const n=A(e,a),c=L(e);if(n!=null&&c!=null)return c[n]?.name},(e,a)=>{const n=A(e,a),c=L(e);return n!=null&&c!=null&&c[n]!=null}],((e,a,n)=>{if(e!=null&&n===!0)return{id:e,name:a??""}}));let X,Y=[];const Je=me((function(e,a){const{location:n,taskGroupId:c}=a,s=ne(e,a.taskId),u=te(e),d=Ye(e,a.taskId),m=s.taskGroupId??c,t=m!=null?Z(e.taskGroupState,m):void 0,o=R.getSignedInUser(),I=u.tenantId,D={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:I??""},B=se(e),{tenantEmailDomain:P}=u,y=s.recurringSourceTaskId,v=y!=null?`${M.appUrl}/${P}/tasks/${encodeURIComponent(y)}`:void 0;var h;return{taskDetailSelectorView:s,authParams:D,isZeniUser:R.isZeniUser(),userGroupList:((h=e.userGroupsState.userGroupByUserGroupId)!==X&&(X=h,Y=Object.values(h)),Y),isNewClicked:n.state?.message==="comingFromTaskListPage",filesEndPoint:Ne.fileMicroServiceBaseUrl,companyName:a.currentTenant.companyName,companyId:a.currentTenant.companyId,currentUrl:`${M.appUrl}${a.location.pathname}`,cannedResponses:e.cannedResponsesState.cannedResponses,isCannedResponsesLoading:e.cannedResponsesState.fetchState==="In-Progress",recurringSourceTaskUrl:v,tagListView:B,taskGroupName:m!=null&&t!=null&&t.isDefault===!1?t.name:void 0,taskGroupList:e.taskGroupViewState.taskGroupsIds.map((S=>Z(e.taskGroupState,S))).filter((S=>S!=null&&!S.isDeleted)).map((S=>({id:S.id,name:S.name,isDefault:S.isDefault}))),subtasks:s.subtasks,parentTaskRef:d,subTaskCreateStatus:e.taskDetailState?.subTaskCreateStatus?.fetchState}}),(function(e,a){const{taskId:n,navigate:c,currentTenant:s,location:u,taskGroupId:d}=a,{tenantEmailDomain:m}=s;return{onSaveChangesToLocalStore:t=>{e(je({taskDetailLocalData:t,taskId:n}))},onSaveDetailClick:t=>{e(we(n,t??d))},onArchiveTaskClick:()=>{a.taskId!=null&&e(ve(a.taskId))},onSnoozeTask:(t,o)=>{e(Pe(t,o))},onUnsnoozeTask:t=>{e(Be(t))},onCreateSubtask:(t,o)=>{e(xe({...o,parentTaskId:t}))},onSubtaskUpdate:(t,o)=>{e(Ue({task:t,updates:o}))},onShowToast:t=>{e(oe(t))},onSubtaskRowClick:t=>{c(`/${m}/tasks/${t}`,{state:{pathnameStackToGoBack:_(u.state?.pathnameStackToGoBack,u.pathname)}})},onParentBreadcrumbClick:t=>{c(`/${m}/tasks/${t}`,{state:{pathnameStackToGoBack:_(u.state?.pathnameStackToGoBack,u.pathname)}})},onDismissClick:()=>{if(u.state?.message==="triggerBackClick"){const t=re(u.state?.pathnameStackToGoBack),o=t.poppedPathname??"../../dashboard";c(o,{state:{pathnameStackToGoBack:t.newStack}})}else{const t=x(m),o=_(u.state?.pathnameStackToGoBack,u.pathname);c(t,{state:{pathnameStackToGoBack:o}})}e(ye({taskId:n}))},onDeleteTaskClick:()=>{e(Re(n))},updateFilesEntity:t=>{e(_e({files:t}))},onDeleteFile:t=>{e(Ge(t))},onEditFileName:(t,o)=>{e(Ce(t,o.split(".")[0]))},onReloadTaskDetailPage:()=>{e(g(!1,n))},onCreateTagClick:t=>{e(De(t,n))},onDeleteTagClick:t=>{e(Ie(t,n))},onFetchCannedResponses:()=>{e(ae())},onManageTemplatesClick:()=>{c(`/${s.tenantEmailDomain}/tasks/quick-responses`)}}}))($e);function F(){const e=J(),a=ee(),n=de(),c=Fe(),{taskId:s,taskGroupId:u}=ke(),d=E((r=>te(r))),m=Oe(d?.companyId),{useFeatureGate:t}=Le(),{isFeatureEnabled:o}=t(G.isTaskSnoozeEnabled),{isFeatureEnabled:I}=t(G.isTaskVisibilityEnabled),{isFeatureEnabled:D}=t(G.isTaskCannedResponsesEnabled),{isFeatureEnabled:B}=t(G.isTaskRecurringParentEnabled),{isFeatureEnabled:P}=t(G.isTaskGroupAssigneesEnabled),[y,v]=k.useState(!1),[h,S]=k.useState(!1),[K,ie]=k.useState(!1),[Q,w]=k.useState(!1),C=k.useRef(!1),U=E((r=>r.taskListState.updateTasksFetchState.fetchState)),$=E((r=>se(r))),N=E((r=>r.taskGroupViewState.fetchState));k.useEffect((()=>{a(g(!1,s)),s!=null&&a(T(s))}),[a,s]);const z=R.getSignedInUser()?.userId,ce=k.useMemo((()=>{const r=[f.TASK_CREATED,f.TASK_UPDATED,f.TASKS_BULK_UPDATED,f.TASKS_BULK_DELETED],l=[...r,f.TASK_SNOOZE_RESURFACED];return[...Ze(d?.companyId,r),...qe(z,l)]}),[d?.companyId,z]);We({events:ce,onSubscribed:()=>{s!=null&&(a(g(!0,s)),a(T(s)))},onEvent:(r,l)=>{if(s!=null)switch(r){case f.TASK_CREATED:{W(l)?.parent_task_id===s&&(a(g(!0,s)),a(T(s)));break}case f.TASK_UPDATED:{const p=W(l);if(p==null)break;p.task_id===s?(a(g(!0,s)),a(T(s))):p.parent_task_id===s&&a(T(s));break}case f.TASKS_BULK_UPDATED:{const p=H(l);if(p==null)break;p.task_ids.includes(s)&&a(g(!0,s)),a(T(s));break}case f.TASKS_BULK_DELETED:{const p=H(l);if(p==null)break;if(p.task_ids.includes(s)){a(oe({messageSection:"delete_task",messageText:"success",type:"success"})),d?.tenantEmailDomain!=null&&e(x(d.tenantEmailDomain));break}a(T(s));break}case f.TASK_SNOOZE_RESURFACED:{Me(l)?.task_id===s&&a(g(!0,s));break}}}}),k.useEffect((()=>{h||$.fetchState==="Completed"||(S(!0),a(he()))}),[h,a,$.fetchState]),k.useEffect((()=>{K||N==="Completed"||(ie(!0),a(be()))}),[K,a,N]);const le=k.useCallback((()=>{s!=null&&(C.current=!1,a(Ee([s],null,{isArchived:!1})),w(!0))}),[a,s]);k.useEffect((()=>{if(Q)if(U!=="In-Progress"){if(C.current){if(U==="Error")return w(!1),void(C.current=!1);if(U==="Completed"){w(!1),C.current=!1;const{tenantEmailDomain:r}=d;if(n.state?.message==="triggerBackClick"){const l=re(n.state?.pathnameStackToGoBack);e(l.poppedPathname??"../../dashboard",{state:{pathnameStackToGoBack:l.newStack}})}else{const l=x(r);e(l,{state:{pathnameStackToGoBack:_(n.state?.pathnameStackToGoBack,n.pathname)}})}}}}else C.current=!0}),[Q,U,d,n,e]);const O=E((r=>ne(r,s))),j=O.fetchState,V=R.getSignedInUser();if(V==null)throw Error("Can't access task detail page without signing in...");if(j==="Error"&&O.error?.code===400){const{tenantEmailDomain:r}=d,l=x(r),p=_(n.state?.pathnameStackToGoBack,n.pathname);return i.jsx(pe,{to:l,state:{pathnameStackToGoBack:p}})}return i.jsxs(i.Fragment,{children:[j==="Completed"?i.jsx(Ke,{analytics:q,onLoad:r=>(l=>l.trackPageLoaded(Qe.Event.taskDetailPage))(r)}):null,i.jsxs(ea,{children:[i.jsx(Ve,{isAppContentDrawerOpen:y,handleDrawerToggle:r=>{v(r)}}),i.jsx(Je,{analytics:q,currentTenant:d,handleZeniLogoClick:()=>{c.toggle()},initialOpenThreadRequest:m,location:n,loggedInUser:V,navigate:e,taskGroupId:u,taskId:s,taskDetailFetchState:j,onUnarchiveTaskClick:le,isTaskSnoozeEnabled:o,isTaskVisibilityEnabled:I,isTaskCannedResponsesEnabled:D,isTaskRecurringParentEnabled:B,isTaskGroupAssigneesEnabled:P})]})]})}const ea=ze.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
- `,x=e=>`/${e}/tasks`;function Ca(){return i.jsxs(Se,{children:[i.jsx(b,{path:"/new",element:i.jsx(F,{})}),i.jsx(b,{path:"/new/:taskGroupId",element:i.jsx(F,{})}),i.jsx(b,{path:"/group/:taskGroupId",element:i.jsx(He,{})}),i.jsx(b,{path:"/quick-responses",element:i.jsx(Xe,{})}),i.jsx(b,{path:"/:taskId",element:i.jsx(F,{})}),i.jsx(b,{path:"*",element:i.jsx(ue,{})})]})}export{Ca as default};
@@ -1 +0,0 @@
1
- import{j as t}from"./liveblocks-C_txwMxP.js";import i from"./NotFoundScreen-BeP62Nz9.js";import{T as r}from"./TransactionDetailScreen-BDWEHK1J.js";import"./sentry-D_60LtUS.js";import{n as a,o as e}from"./core-_lmxLuL7.js";import"./zeni-epic-state-CtlpRqoe.js";import"./recharts-B43pV0TY.js";import"./index-BqEaHxIT.js";import"./mui-DbFwPEO7.js";import"./analytics-BLHCH9ZW.js";import"./plaid-DHbQ1Fnc.js";import"./dnd-4_dRT_p_.js";import"./stripe-cKAAJElX.js";import"./lottie-CyJj6i4R.js";import"./lexical-BibO8P7-.js";import"./pdf-BfgO0ZZE.js";import"./utils-CPbtTTqo.js";import"./useAskAiCfoHostNavButtonProps-Biynu986.js";import"./decodeURIComponentSafe-CNj7wDd5.js";import"./useInitialThreadRequest-CyHRajCC.js";import"./routePaths-C1I3AVBw.js";import"./expenseAutomationHelper-C8o4PBoS.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new o.Error().stack;n&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[n]="bfd19369-9f5a-4875-9ff9-f0a50fe2624d",o._sentryDebugIdIdentifier="sentry-dbid-bfd19369-9f5a-4875-9ff9-f0a50fe2624d")}catch{}})();function z(){return t.jsxs(a,{children:[t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId",element:t.jsx(r,{})}),t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId/page-not-found",element:t.jsx(i,{})}),t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId/vendor/create",element:t.jsx(r,{})}),t.jsx(e,{path:"/*",element:t.jsx(r,{})})]})}export{z as default};
@@ -1,12 +0,0 @@
1
- import{j as o}from"./liveblocks-C_txwMxP.js";import{a as f}from"./sentry-D_60LtUS.js";import{t as u,u as h,j as b,N as y}from"./core-_lmxLuL7.js";import{Uu as I,gi as w,Jx as x}from"./zeni-epic-state-CtlpRqoe.js";import{z as l,a8 as j,ag as S,ah as D}from"./index-BqEaHxIT.js";import{n as g}from"./mui-DbFwPEO7.js";import"./recharts-B43pV0TY.js";import"./analytics-BLHCH9ZW.js";import"./plaid-DHbQ1Fnc.js";import"./dnd-4_dRT_p_.js";import"./stripe-cKAAJElX.js";import"./lottie-CyJj6i4R.js";import"./lexical-BibO8P7-.js";import"./pdf-BfgO0ZZE.js";import"./utils-CPbtTTqo.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]="b07c9e8a-bd08-4121-9e97-1fdd5fb4cff0",e._sentryDebugIdIdentifier="sentry-dbid-b07c9e8a-bd08-4121-9e97-1fdd5fb4cff0")}catch{}})();const B=()=>{const[e]=u(),t=e.get("code")??"",i=e.get("state")??"",c=e.get("profileId")??"",[n,p]=f.useState(!1),a=h(),s=b((m=>I(m))),r=l.getSignedInUser(),d=l.getSignedInUserTenantWithId(i);if(r==null||d==null)return o.jsx(y,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return w(r.userId,r.zeniSessionId,d?.tenantId),f.useEffect((()=>{n||(p(!0),a(x(t,c,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{B as default};
@@ -1,9 +0,0 @@
1
- import{j as i}from"./liveblocks-C_txwMxP.js";import{a as u}from"./sentry-D_60LtUS.js";import{h as $,u as x,g as T,i as j,j as p}from"./core-_lmxLuL7.js";import{Tc as s,Tb as v,$y as z,fF as B,$z as C}from"./zeni-epic-state-CtlpRqoe.js";import{a2 as E,af as g,E as D,z as L,a8 as P,d6 as N,a5 as U}from"./index-BqEaHxIT.js";import{n as _}from"./mui-DbFwPEO7.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]="2d958cc2-2eb6-4eb3-85c4-575ec0a49af4",e._sentryDebugIdIdentifier="sentry-dbid-2d958cc2-2eb6-4eb3-85c4-575ec0a49af4")}catch{}})();const G=_.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `;function H(){const e=$(),n=x(),d=E(),l=T();let{accountId:a}=j(),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),h=D();u.useEffect((()=>{m||(y(!0),n(v(a??"",!1)))}),[m,n]);const o=p((t=>z(t,a??""))),b=()=>{const t=U(l.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},c=L.getSignedInUser(),r=p((t=>B(t))),I={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:r.tenantId??""},w=C(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=r.company?.companyInfo.companyLegalName??r.companyName;if(c==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?i.jsx(P,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}}):i.jsx(G,{windowSize:d,children:i.jsx(N,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:b,authParams:I,downloadEndPoint:f})})}export{H as Z};