@zeniai/web-app-ui 5.0.0-qa → 5.0.1-qa

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 (115) hide show
  1. package/dist/assets/AddressRoutes-Ccdt31hR.js +1 -0
  2. package/dist/assets/AddressScreen-DG9DlRXT.js +9 -0
  3. package/dist/assets/{AiCfoScreen-BR8PoUmU.js → AiCfoScreen-BySJdfdn.js} +2 -2
  4. package/dist/assets/{BillPayApprovalRoutes-BeaWY9ga.js → BillPayApprovalRoutes-7ZgXY6Qr.js} +1 -1
  5. package/dist/assets/{BillPayRoutes-CWbI-3lu.js → BillPayRoutes-B7eECbMR.js} +1 -1
  6. package/dist/assets/{BusinessVerificationPageScreen-B8mXcNLy.js → BusinessVerificationPageScreen-D_IL11BU.js} +2 -2
  7. package/dist/assets/{ChargeCardRoutes-Bgdfn44a.js → ChargeCardRoutes-MbQ6GwxR.js} +8 -8
  8. package/dist/assets/{CompanyPassportScreen-BCPm2c8T.js → CompanyPassportScreen-0tGZqhHr.js} +1 -1
  9. package/dist/assets/ConnectionAuthScreen-Ng7EqaWr.js +11 -0
  10. package/dist/assets/CustomerOnboardingAuthScreen-DHzsN76N.js +1 -0
  11. package/dist/assets/{CustomerOnboardingRoutes-D-_60rGa.js → CustomerOnboardingRoutes-DEmyPEG9.js} +4 -4
  12. package/dist/assets/{DashboardRoutes-B9_-_tPb.js → DashboardRoutes-LUXfYRYr.js} +3 -3
  13. package/dist/assets/{DefaultTenantHome-Cl8vcsiM.js → DefaultTenantHome-CsgBmyY-.js} +1 -1
  14. package/dist/assets/{DomesticWireDetailScreen-DCV6HQRp.js → DomesticWireDetailScreen-Byk3gNE9.js} +3 -3
  15. package/dist/assets/DrawerScreen-CN6TBpYY.js +1 -0
  16. package/dist/assets/{EntityDetailRoutes-CINCnbfR.js → EntityDetailRoutes-BVmRwPcm.js} +1 -1
  17. package/dist/assets/{ExpenseAutomationRoutes-D8G_zp8f.js → ExpenseAutomationRoutes-DzZ2kzOA.js} +5 -5
  18. package/dist/assets/FeaturePreviewScreen-ArEP4se9.js +1 -0
  19. package/dist/assets/MagicLinkRoutes-C8RQWz8N.js +72 -0
  20. package/dist/assets/MagicLinkSignInScreen-raeb9t11.js +12 -0
  21. package/dist/assets/{MobileAppDrawer-eCdBXSxf.js → MobileAppDrawer-CowqUthz.js} +1 -1
  22. package/dist/assets/NotFoundScreen-0ajohMSv.js +1 -0
  23. package/dist/assets/{NotificationRoutes-CxWKZNsp.js → NotificationRoutes-DzMqKa9n.js} +1 -1
  24. package/dist/assets/PandLWithForecastRoutes-DdGQfKKW.js +1 -0
  25. package/dist/assets/{PeopleRoutes-5oajZHVV.js → PeopleRoutes-BswRWZQg.js} +5 -5
  26. package/dist/assets/PerformanceRoutes-ChMRcywH.js +1 -0
  27. package/dist/assets/{Preview-CitTL1Hn.js → Preview--bb5p9Hr.js} +1 -1
  28. package/dist/assets/{QBOConnectionScreen-B4Rcl2XA.js → QBOConnectionScreen-C_qIc23z.js} +1 -1
  29. package/dist/assets/{ReferralListScreen-DHtLnulq.js → ReferralListScreen-BAK4p9-3.js} +2 -2
  30. package/dist/assets/{ReimbursementApprovalRoutes-DdJz0p5l.js → ReimbursementApprovalRoutes-ogcfMEcC.js} +1 -1
  31. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-BVKZCEAO.js → ReimbursementApprovalRuleDetailScreen-Cg7X5Fv7.js} +1 -1
  32. package/dist/assets/{ReimbursementRoutes--zV8t9-V.js → ReimbursementRoutes-0m6W0X2g.js} +9 -9
  33. package/dist/assets/{ReportsRoutes-CRufLdv_.js → ReportsRoutes-1TXSN037.js} +1 -1
  34. package/dist/assets/RewardsRoutes-B8FReE5j.js +1 -0
  35. package/dist/assets/ScreenRoutes-DRzB_14n.js +2 -0
  36. package/dist/assets/{SettingsRoutes-BZwjpejF.js → SettingsRoutes-BGCZcWYL.js} +7 -7
  37. package/dist/assets/{SetupPagesScreen-BJy2d6s1.js → SetupPagesScreen-vY1ujDKJ.js} +1 -1
  38. package/dist/assets/{SignInScreen-Cr0sIFcm.js → SignInScreen-ClbKNS4x.js} +1 -1
  39. package/dist/assets/{SignOutScreen-sgTWJDGb.js → SignOutScreen-Dvb2Qc0l.js} +1 -1
  40. package/dist/assets/{TaskListScreen-BpK-8QnW.js → TaskListScreen-CaGy-z1x.js} +2 -2
  41. package/dist/assets/TaskRoutes-9joFCtVs.js +9 -0
  42. package/dist/assets/TransactionDetailRoutes-CWNaQpCz.js +1 -0
  43. package/dist/assets/{TransactionDetailScreen-BCiX38jP.js → TransactionDetailScreen-DXlYmq7Y.js} +2 -2
  44. package/dist/assets/{TransactionListRoutes-yuwwha-7.js → TransactionListRoutes-FH_uc507.js} +1 -1
  45. package/dist/assets/{TreasuryRoutes-CY_-R9A0.js → TreasuryRoutes-CtBzkTMx.js} +5 -5
  46. package/dist/assets/{VendorsRoutes-k37ZPcgY.js → VendorsRoutes-aBYOoTKe.js} +1 -1
  47. package/dist/assets/WiseConfirmationScreen-s0eoug7u.js +12 -0
  48. package/dist/assets/{ZeniAccountRoutes-BYcGG-cX.js → ZeniAccountRoutes-BcBOPI_A.js} +9 -9
  49. package/dist/assets/{ZeniAccountStatementScreen-DOb1513X.js → ZeniAccountStatementScreen-BOfH7mnf.js} +1 -1
  50. package/dist/assets/{accountMappingHelper-GgTLtZGv.js → accountMappingHelper-CEUIWp7O.js} +1 -1
  51. package/dist/assets/{analytics-BL0geQNn.js → analytics-BkhHPaQ4.js} +1 -1
  52. package/dist/assets/{analyticsHelper-B-IDLpaZ.js → analyticsHelper-CSpNHX-t.js} +1 -1
  53. package/dist/assets/{core-B4ZvHvvY.js → core-C_NeXleM.js} +1 -1
  54. package/dist/assets/{decodeURIComponentSafe-CC7b77eX.js → decodeURIComponentSafe-Drd7YS9D.js} +1 -1
  55. package/dist/assets/{dnd-B2_m6pRT.js → dnd-C0SdDgY2.js} +1 -1
  56. package/dist/assets/{empty-B5RM5mjs.js → empty-5JhUjXJf.js} +1 -1
  57. package/dist/assets/{empty-u93aQEuK.js → empty-CDZc49VR.js} +1 -1
  58. package/dist/assets/{emptyVideoElement-BX5sv6Zg.js → emptyVideoElement-SE9UwlDX.js} +1 -1
  59. package/dist/assets/{epic-h4oM0Sz-.js → epic-CBKcA32L.js} +1 -1
  60. package/dist/assets/getLocaleForTenant-Ab1B3PjW.js +1 -0
  61. package/dist/assets/{index-DZ-RvKDF.js → index-3wKQcxVk.js} +2 -2
  62. package/dist/assets/{index-DgzG0i4n.js → index-BaZ8-9eR.js} +10363 -10346
  63. package/dist/assets/{index-fkmKbMt9.js → index-COcEChnY.js} +1 -1
  64. package/dist/assets/{index-CWllm9J4.js → index-DEiuB93P.js} +1 -1
  65. package/dist/assets/{index-bl3TgQLh.js → index-DYUyEm6J.js} +1 -1
  66. package/dist/assets/{index-ChCWQQ_0.js → index-Dmixh63m.js} +1 -1
  67. package/dist/assets/{index-CAShaDN8.js → index-Y_8J-EV-.js} +1 -1
  68. package/dist/assets/{lexical-DA5yMmPj.js → lexical-B1vtLf4F.js} +1 -1
  69. package/dist/assets/{liveblocks-CVGPqYnR.js → liveblocks-BCZSgQbG.js} +1 -1
  70. package/dist/assets/{lottie-B5aSI3Li.js → lottie-BdeQlKTG.js} +1 -1
  71. package/dist/assets/{mui-DoY7WfR_.js → mui-CgjVMn8C.js} +1 -1
  72. package/dist/assets/{pathToGoBack-BDUkHX_e.js → pathToGoBack-BDpRzqvH.js} +1 -1
  73. package/dist/assets/{pdf-ChIJqwGf.js → pdf-CQPNphc4.js} +4 -4
  74. package/dist/assets/{pdf-lib-DK80DJM9.js → pdf-lib-DznUmqID.js} +1 -1
  75. package/dist/assets/{plaid-C1RHGEem.js → plaid-B3UNGbGB.js} +1 -1
  76. package/dist/assets/{pusher-ChL35Yn7.js → pusher-SrZYiYid.js} +1 -1
  77. package/dist/assets/{react-4HMKyBDf.js → react-B1LuGLWv.js} +1 -1
  78. package/dist/assets/{react-BSF23jTj.js → react-BLym8SqS.js} +1 -1
  79. package/dist/assets/{react-CJCh-4ns.js → react-BR-uiB3M.js} +1 -1
  80. package/dist/assets/{react-CbMg7X0f.js → react-BUr4gNxK.js} +1 -1
  81. package/dist/assets/{react-xvaCLOMn.js → react-CUvZ-QKI.js} +1 -1
  82. package/dist/assets/{react-CTsulPb9.js → react-CkJUroZo.js} +1 -1
  83. package/dist/assets/{recharts-DNFnaP_v.js → recharts-NCr2Pwd1.js} +1 -1
  84. package/dist/assets/{routePaths-WhbiYSxu.js → routePaths-CXa3WNDm.js} +1 -1
  85. package/dist/assets/{sentry-vrLJXbkU.js → sentry-CGkVgbup.js} +1 -1
  86. package/dist/assets/{url-Cw65WvOG.js → url-D7JZ1pkZ.js} +1 -1
  87. package/dist/assets/{url-CcUoq1OV.js → url-ax2xfQkc.js} +1 -1
  88. package/dist/assets/useAskAiCfoHostNavButtonProps-Crpk73sU.js +1 -0
  89. package/dist/assets/{useDeviceId-BMtoTIZs.js → useDeviceId-DxDe1m2N.js} +1 -1
  90. package/dist/assets/useFetchSuggestedQuestionsWhenReady-sxquM27W.js +1 -0
  91. package/dist/assets/{useInitialThreadRequest-C88MW4km.js → useInitialThreadRequest-B7p2SBgg.js} +1 -1
  92. package/dist/assets/{utils-QMlevttK.js → utils-CTLGOmjC.js} +1 -1
  93. package/dist/assets/{withTransactionSidePanel-D3gZnvfm.js → withTransactionSidePanel-CB8Jp1hw.js} +3 -3
  94. package/dist/assets/{zeni-epic-state-Da4VO2lv.js → zeni-epic-state-Dp14ovRw.js} +3 -3
  95. package/dist/index.html +1 -1
  96. package/package.json +2 -2
  97. package/dist/assets/AddressRoutes-D2Yn8dXr.js +0 -1
  98. package/dist/assets/AddressScreen-B-90Ns9M.js +0 -9
  99. package/dist/assets/ConnectionAuthScreen-BYziEpOR.js +0 -11
  100. package/dist/assets/CustomerOnboardingAuthScreen-Dduw6GDH.js +0 -1
  101. package/dist/assets/DrawerScreen-dt2KgJzx.js +0 -1
  102. package/dist/assets/FeaturePreviewScreen-C2dbroTQ.js +0 -1
  103. package/dist/assets/MagicLinkRoutes-CytIPPYS.js +0 -72
  104. package/dist/assets/MagicLinkSignInScreen-BxPvHLB5.js +0 -12
  105. package/dist/assets/NotFoundScreen-jPpbDlQd.js +0 -1
  106. package/dist/assets/PandLWithForecastRoutes-BeER1eMP.js +0 -1
  107. package/dist/assets/PerformanceRoutes-D2L3CFvV.js +0 -1
  108. package/dist/assets/RewardsRoutes-CJ6LAavD.js +0 -1
  109. package/dist/assets/ScreenRoutes-C36ZBPGp.js +0 -2
  110. package/dist/assets/TaskRoutes-DfQABQLR.js +0 -9
  111. package/dist/assets/TransactionDetailRoutes-CM3RR8SH.js +0 -1
  112. package/dist/assets/WiseConfirmationScreen-D_U8eXIb.js +0 -12
  113. package/dist/assets/getLocaleForTenant-C50EFRQ8.js +0 -1
  114. package/dist/assets/useAskAiCfoHostNavButtonProps-DQFYXydp.js +0 -1
  115. package/dist/assets/useFetchSuggestedQuestionsWhenReady-BMFUNkte.js +0 -1
package/dist/index.html CHANGED
@@ -1 +1 @@
1
- <!DOCTYPE html><html lang="en"><head><meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate"><meta http-equiv="expires" content="0"><meta http-equiv="pragma" content="no-cache"><meta charset="UTF-8"><link rel="icon" type="image/svg+xml" href="/assets/favicon-D56XvgAH.ico"><meta name="ROBOTS" content="NOINDEX, NOFOLLOW"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1"><meta name="theme-color" content="#000000"><meta name="description" content="Zeni - Modern Finance Team For Startups"><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&family=Manrope:wght@200..800&display=swap"><link rel="apple-touch-icon" href="/assets/logo192-CqcTe-t4.png"><link rel="manifest" href="/assets/manifest-icT4lOF5.json"><title>Zeni - Modern Finance Team For Startups</title><script src="/theme-detect.js"></script><style>:root{--logo-color-from:#D4DCDD;--logo-color-to:#E9F0F0;--bar-color-from:#E9F0F0;--bar-color-to:#D4DCDD;--sidebar-bg:#F3F7F7;--main-bg:#FAFCFC;--divider-color:#D4DCDD}html{background-color:#f3f7f7}html[data-theme=dark]{background-color:#1b1c1c;--logo-color-from:#545B5C;--logo-color-to:#3E4343;--bar-color-from:#3E4343;--bar-color-to:#545B5C;--sidebar-bg:#1B1C1C;--main-bg:#202222;--divider-color:#545B5C}.app-shell-loader{position:fixed;inset:0;display:flex;background-color:var(--sidebar-bg);z-index:9999}.app-shell-sidebar{width:210px;flex-shrink:0;background-color:var(--sidebar-bg);padding:16px 16px 0;display:flex;flex-direction:column;gap:36px;border-right:1px solid var(--divider-color);box-sizing:border-box}.app-shell-sidebar-group{display:flex;flex-direction:column;gap:10px}.app-shell-bar{height:10px;border-radius:5px;background-color:var(--bar-color-from);animation:app-shell-bar-shimmer 1.6s linear infinite}.app-shell-navbar{height:56px;display:flex;flex-direction:row;border-bottom:1px solid var(--divider-color);padding:0 32px;align-items:center;justify-content:space-between;box-sizing:border-box}@keyframes app-shell-bar-shimmer{0%,100%{background-color:var(--bar-color-from)}50%{background-color:var(--bar-color-to)}}.app-shell-main{flex:1;background-color:var(--main-bg)}.app-shell-logo{display:inline-flex;width:100%;height:calc(100vh - 56px);justify-content:center;align-items:center}.app-shell-logo svg path{animation:app-shell-color-cycle 1.6s linear infinite}@keyframes app-shell-color-cycle{0%,100%{fill:var(--logo-color-from)}50%{fill:var(--logo-color-to)}}@media (max-width:899px){.app-shell-sidebar{display:none}.app-shell-main{background-color:var(--sidebar-bg)}}</style><noscript><style>.app-shell-loader{display:none}</style></noscript><script async type="module" crossorigin src="/assets/index-DgzG0i4n.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-vrLJXbkU.js"><link rel="modulepreload" crossorigin href="/assets/core-B4ZvHvvY.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-Da4VO2lv.js"><link rel="modulepreload" crossorigin href="/assets/mui-DoY7WfR_.js"><link rel="modulepreload" crossorigin href="/assets/analytics-BL0geQNn.js"><link rel="modulepreload" crossorigin href="/assets/utils-QMlevttK.js"><link rel="stylesheet" crossorigin href="/assets/index-D-vub4_t.css"></head><body style="margin:0"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><div class="app-shell-loader" id="app-shell-loader"><div class="app-shell-sidebar"><div class="app-shell-sidebar-group"><div class="app-shell-bar zeni-logo" style="width:96px;height:20px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:78px;height:16px"></div><div class="app-shell-bar" style="width:46px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:110px;height:16px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div><div class="app-shell-bar" style="width:64px;height:16px"></div></div></div><div class="app-shell-main"><div class="app-shell-navbar"><div class="app-shell-bar" style="width:106px;height:27px"></div><div class="app-shell-bar" style="width:111px;height:32px"></div></div><div class="app-shell-logo"><svg width="96" height="96" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.768 0.0270284C16.571 -0.055168 16.348 0.0572476 16.2913 0.267574C16.2713 0.342517 16.2489 0.417461 16.2253 0.491196C16.0094 1.15723 15.6459 1.76645 15.148 2.27776C14.3056 3.14203 13.1847 3.61949 11.9918 3.6207H11.9883C10.7978 3.6207 9.67689 3.14565 8.83445 2.2838C8.33653 1.7737 7.97077 1.16448 7.75367 0.499657C7.73007 0.425922 7.70765 0.350979 7.68641 0.276035C7.62978 0.065709 7.40678 -0.0454978 7.20974 0.0366985C6.05463 0.522624 4.98565 1.17899 4.0323 1.97436C3.91195 2.07468 3.87301 2.24512 3.93083 2.39259C3.9792 2.51589 4.03112 2.63797 4.08539 2.75764C4.51133 3.70894 5.10364 4.5853 5.84815 5.34682C7.48937 7.0246 9.66863 7.9493 11.9871 7.9493H11.9954C14.3162 7.94689 16.4978 7.01855 18.1379 5.33595C18.8812 4.57321 19.4711 3.69564 19.8959 2.74434C19.9502 2.62347 20.0009 2.50138 20.0493 2.37809C20.1071 2.23062 20.0682 2.06018 19.9478 1.95985C18.9933 1.16569 17.9231 0.511745 16.768 0.0270284Z"/><path d="M19.9102 21.2422C19.4843 20.2933 18.8931 19.4194 18.151 18.6603C16.5086 16.9801 14.3223 16.053 12.0038 16.0578C8.50304 16.0614 5.48371 18.1961 4.11031 21.2603C4.05722 21.38 4.0053 21.5009 3.95575 21.623C3.89675 21.7704 3.93569 21.9421 4.05722 22.0436C5.01175 22.8366 6.08073 23.4893 7.23466 23.9728C7.4317 24.055 7.65352 23.9438 7.71134 23.7335C7.73139 23.6573 7.75381 23.5836 7.77859 23.5086C8.37207 21.6979 10.0416 20.3888 12.0073 20.3864H12.012C13.2025 20.3864 14.3234 20.8614 15.1659 21.7233C15.6626 22.231 16.026 22.8378 16.2431 23.5002C16.2679 23.5739 16.2903 23.6489 16.3104 23.7238C16.3682 23.9341 16.59 24.0453 16.787 23.9619C17.9422 23.476 19.01 22.8209 19.9633 22.0255C20.0837 21.9252 20.1226 21.7535 20.0648 21.606C20.0164 21.4828 19.9645 21.3631 19.9102 21.2422Z"/><path d="M0.132148 10.1666C0.158105 9.98769 0.305591 9.85352 0.482575 9.85352L23.5093 9.81726C23.6863 9.81726 23.8338 9.95022 23.8609 10.1291C23.9518 10.7347 23.999 11.3548 23.999 11.9858C24.0001 12.6131 23.9541 13.2284 23.8668 13.8292C23.8408 14.0081 23.6934 14.1422 23.5164 14.1422L0.489654 14.1773C0.312671 14.1773 0.165185 14.0443 0.138047 13.8654C0.0471956 13.2598 0 12.6397 0 12.0088C0 11.3826 0.0448358 10.7673 0.132148 10.1666Z"/></svg></div></div></div></body></html>
1
+ <!DOCTYPE html><html lang="en"><head><meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate"><meta http-equiv="expires" content="0"><meta http-equiv="pragma" content="no-cache"><meta charset="UTF-8"><link rel="icon" type="image/svg+xml" href="/assets/favicon-D56XvgAH.ico"><meta name="ROBOTS" content="NOINDEX, NOFOLLOW"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1"><meta name="theme-color" content="#000000"><meta name="description" content="Zeni - Modern Finance Team For Startups"><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&family=Manrope:wght@200..800&display=swap"><link rel="apple-touch-icon" href="/assets/logo192-CqcTe-t4.png"><link rel="manifest" href="/assets/manifest-icT4lOF5.json"><title>Zeni - Modern Finance Team For Startups</title><script src="/theme-detect.js"></script><style>:root{--logo-color-from:#D4DCDD;--logo-color-to:#E9F0F0;--bar-color-from:#E9F0F0;--bar-color-to:#D4DCDD;--sidebar-bg:#F3F7F7;--main-bg:#FAFCFC;--divider-color:#D4DCDD}html{background-color:#f3f7f7}html[data-theme=dark]{background-color:#1b1c1c;--logo-color-from:#545B5C;--logo-color-to:#3E4343;--bar-color-from:#3E4343;--bar-color-to:#545B5C;--sidebar-bg:#1B1C1C;--main-bg:#202222;--divider-color:#545B5C}.app-shell-loader{position:fixed;inset:0;display:flex;background-color:var(--sidebar-bg);z-index:9999}.app-shell-sidebar{width:210px;flex-shrink:0;background-color:var(--sidebar-bg);padding:16px 16px 0;display:flex;flex-direction:column;gap:36px;border-right:1px solid var(--divider-color);box-sizing:border-box}.app-shell-sidebar-group{display:flex;flex-direction:column;gap:10px}.app-shell-bar{height:10px;border-radius:5px;background-color:var(--bar-color-from);animation:app-shell-bar-shimmer 1.6s linear infinite}.app-shell-navbar{height:56px;display:flex;flex-direction:row;border-bottom:1px solid var(--divider-color);padding:0 32px;align-items:center;justify-content:space-between;box-sizing:border-box}@keyframes app-shell-bar-shimmer{0%,100%{background-color:var(--bar-color-from)}50%{background-color:var(--bar-color-to)}}.app-shell-main{flex:1;background-color:var(--main-bg)}.app-shell-logo{display:inline-flex;width:100%;height:calc(100vh - 56px);justify-content:center;align-items:center}.app-shell-logo svg path{animation:app-shell-color-cycle 1.6s linear infinite}@keyframes app-shell-color-cycle{0%,100%{fill:var(--logo-color-from)}50%{fill:var(--logo-color-to)}}@media (max-width:899px){.app-shell-sidebar{display:none}.app-shell-main{background-color:var(--sidebar-bg)}}</style><noscript><style>.app-shell-loader{display:none}</style></noscript><script async type="module" crossorigin src="/assets/index-BaZ8-9eR.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-CGkVgbup.js"><link rel="modulepreload" crossorigin href="/assets/core-C_NeXleM.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-Dp14ovRw.js"><link rel="modulepreload" crossorigin href="/assets/mui-CgjVMn8C.js"><link rel="modulepreload" crossorigin href="/assets/analytics-BkhHPaQ4.js"><link rel="modulepreload" crossorigin href="/assets/utils-CTLGOmjC.js"><link rel="stylesheet" crossorigin href="/assets/index-D-vub4_t.css"></head><body style="margin:0"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><div class="app-shell-loader" id="app-shell-loader"><div class="app-shell-sidebar"><div class="app-shell-sidebar-group"><div class="app-shell-bar zeni-logo" style="width:96px;height:20px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:78px;height:16px"></div><div class="app-shell-bar" style="width:46px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:110px;height:16px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div><div class="app-shell-bar" style="width:64px;height:16px"></div></div></div><div class="app-shell-main"><div class="app-shell-navbar"><div class="app-shell-bar" style="width:106px;height:27px"></div><div class="app-shell-bar" style="width:111px;height:32px"></div></div><div class="app-shell-logo"><svg width="96" height="96" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.768 0.0270284C16.571 -0.055168 16.348 0.0572476 16.2913 0.267574C16.2713 0.342517 16.2489 0.417461 16.2253 0.491196C16.0094 1.15723 15.6459 1.76645 15.148 2.27776C14.3056 3.14203 13.1847 3.61949 11.9918 3.6207H11.9883C10.7978 3.6207 9.67689 3.14565 8.83445 2.2838C8.33653 1.7737 7.97077 1.16448 7.75367 0.499657C7.73007 0.425922 7.70765 0.350979 7.68641 0.276035C7.62978 0.065709 7.40678 -0.0454978 7.20974 0.0366985C6.05463 0.522624 4.98565 1.17899 4.0323 1.97436C3.91195 2.07468 3.87301 2.24512 3.93083 2.39259C3.9792 2.51589 4.03112 2.63797 4.08539 2.75764C4.51133 3.70894 5.10364 4.5853 5.84815 5.34682C7.48937 7.0246 9.66863 7.9493 11.9871 7.9493H11.9954C14.3162 7.94689 16.4978 7.01855 18.1379 5.33595C18.8812 4.57321 19.4711 3.69564 19.8959 2.74434C19.9502 2.62347 20.0009 2.50138 20.0493 2.37809C20.1071 2.23062 20.0682 2.06018 19.9478 1.95985C18.9933 1.16569 17.9231 0.511745 16.768 0.0270284Z"/><path d="M19.9102 21.2422C19.4843 20.2933 18.8931 19.4194 18.151 18.6603C16.5086 16.9801 14.3223 16.053 12.0038 16.0578C8.50304 16.0614 5.48371 18.1961 4.11031 21.2603C4.05722 21.38 4.0053 21.5009 3.95575 21.623C3.89675 21.7704 3.93569 21.9421 4.05722 22.0436C5.01175 22.8366 6.08073 23.4893 7.23466 23.9728C7.4317 24.055 7.65352 23.9438 7.71134 23.7335C7.73139 23.6573 7.75381 23.5836 7.77859 23.5086C8.37207 21.6979 10.0416 20.3888 12.0073 20.3864H12.012C13.2025 20.3864 14.3234 20.8614 15.1659 21.7233C15.6626 22.231 16.026 22.8378 16.2431 23.5002C16.2679 23.5739 16.2903 23.6489 16.3104 23.7238C16.3682 23.9341 16.59 24.0453 16.787 23.9619C17.9422 23.476 19.01 22.8209 19.9633 22.0255C20.0837 21.9252 20.1226 21.7535 20.0648 21.606C20.0164 21.4828 19.9645 21.3631 19.9102 21.2422Z"/><path d="M0.132148 10.1666C0.158105 9.98769 0.305591 9.85352 0.482575 9.85352L23.5093 9.81726C23.6863 9.81726 23.8338 9.95022 23.8609 10.1291C23.9518 10.7347 23.999 11.3548 23.999 11.9858C24.0001 12.6131 23.9541 13.2284 23.8668 13.8292C23.8408 14.0081 23.6934 14.1422 23.5164 14.1422L0.489654 14.1773C0.312671 14.1773 0.165185 14.0443 0.138047 13.8654C0.0471956 13.2598 0 12.6397 0 12.0088C0 11.3826 0.0448358 10.7673 0.132148 10.1666Z"/></svg></div></div></div></body></html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/web-app-ui",
3
- "version": "5.0.0-qa",
3
+ "version": "5.0.1-qa",
4
4
  "files": [
5
5
  "dist/**/*"
6
6
  ],
@@ -29,7 +29,7 @@
29
29
  "@stripe/stripe-js": "^4.4.0",
30
30
  "@zeniai/client-analytics": "2.0.0",
31
31
  "@zeniai/client-epic-state": "5.0.0",
32
- "@zeniai/web-components": "4.0.0",
32
+ "@zeniai/web-components": "4.0.1",
33
33
  "color": "3.1.3",
34
34
  "cross-fetch": "^4.0.0",
35
35
  "crypto-js": "4.2.0",
@@ -1 +0,0 @@
1
- import{j as e}from"./liveblocks-CVGPqYnR.js";import{A as i}from"./AddressScreen-B-90Ns9M.js";import s from"./NotFoundScreen-jPpbDlQd.js";import"./sentry-vrLJXbkU.js";import{n as d,o as r}from"./core-B4ZvHvvY.js";import"./zeni-epic-state-Da4VO2lv.js";import"./recharts-DNFnaP_v.js";import"./index-DgzG0i4n.js";import"./mui-DoY7WfR_.js";import"./lottie-B5aSI3Li.js";import"./analytics-BL0geQNn.js";import"./plaid-C1RHGEem.js";import"./dnd-B2_m6pRT.js";import"./stripe-DMRn4zHo.js";import"./lexical-DA5yMmPj.js";import"./pdf-ChIJqwGf.js";import"./utils-QMlevttK.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="339d6624-b51b-426b-a0cc-e8e8bd837ae0",t._sentryDebugIdIdentifier="sentry-dbid-339d6624-b51b-426b-a0cc-e8e8bd837ae0")}catch{}})();function _(){return e.jsxs(d,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(i,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(i,{})}),e.jsx(r,{path:"*",element:e.jsx(s,{})})]})}export{_ as default};
@@ -1,9 +0,0 @@
1
- import{j as d}from"./liveblocks-CVGPqYnR.js";import{a as h}from"./sentry-vrLJXbkU.js";import{j as P,h as _,u as j,l as B,g as E,k as $}from"./core-B4ZvHvvY.js";import{K as L,m as M,z as D,S as K,B as G,s as z,c as I,e as m,I as F,h as b,p as N}from"./index-DgzG0i4n.js";import{IA as C,gG as O,eL as R,IB as U,b$ as V,IC as q,jO as H}from"./zeni-epic-state-Da4VO2lv.js";import{n as J}from"./mui-DoY7WfR_.js";import Q from"./NotFoundScreen-jPpbDlQd.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]="75a6f00f-fb19-49fd-9c2b-663680296369",e._sentryDebugIdIdentifier="sentry-dbid-75a6f00f-fb19-49fd-9c2b-663680296369")}catch{}})();const W=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
- `,X=$(function(e,t){const{addressId:o,isSubPage:i,addressType:c}=t,l=R(e),a=t.roleMap!=null&&U(t.roleMap),r=i||c==="user_address"||V(l?.userRole??[])||a?void 0:"readonly";if(o==null){const s=q(c,e);return{addressToEdit:s?.addressToCreate,loadingState:s?.status?.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:r,isSubPage:i,dontShowSaveConfirmationPopup:t.dontShowSaveConfirmation}}const n=C(e,o);return{addressToEdit:n.address,loadingState:n.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:r}},function(e,t){const{navigate:o,location:i,addressType:c}=t,l=a=>{if(a==="express-pay")o("../express-pay/add-wire");else{const r=i.state,n=N(r?.pathnameStackToGoBack);let s=n.poppedPathname??k();const u=r?.queryParams;if(u){const f=new URLSearchParams(u).toString();f&&(s=`${s}?${f}`)}o(s,{state:{pathnameStackToGoBack:n.newStack}})}};return{onSubmitHandler:a=>{const r=Y(a);e(H({addressType:c,addressToCreate:r})),I?.trackSaveAddressClicked(m.Event.saveAddressClicked,{street:a.street.addressString,city:a.city,state:a.state,country:a.country.selectedOption??"",postalCode:a.postalCode,suite:a.suite,secondaryInfo:a.secondaryInfo}),l(t.bankAccountContext)},onCancel:()=>{l(t.bankAccountContext)}}})(F);function de({isSubPage:e,hideAddressSubTitle:t=!1,hideAddressBackButton:o=!1,dontShowSaveConfirmation:i,accountContext:c,addressTypeParam:l}){const a=P(),r=_(),n=j(),{addressId:s,addressType:u}=B(),f=L(),w=M(),A=D.getSignedInUser(),[g,v]=h.useState(s==null),p=E(S=>s!=null?C(S,s).fetchState:"Not-Started"),x=K();if(A==null)throw Error("Can't access address page without signing in...");const T=S=>S.trackPageLoaded(s!=null?m.Event.editAddress:m.Event.addAddress),y=l??u;return h.useEffect(()=>{g||s==null||(v(!0),r(O(s,!1)))},[g,s,r]),y==null||y.match(/(user_address|company_address|company_registered_address|vendor_address|officer_([1-9]|10)_address)$/g)?!g&&p==="Not-Started"||g&&p==="In-Progress"?d.jsx(G,{fetchState:p,style:{backgroundColor:w.colors.grey5}}):s!=null&&p==="Error"?(a(`${k(1)}/new`,{replace:!0}),d.jsx(d.Fragment,{})):d.jsxs(d.Fragment,{children:[d.jsx(z,{analytics:I,onLoad:T}),d.jsx(W,{windowSize:f,children:d.jsx(X,{location:n,navigate:a,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:t,addressId:s,addressType:y,dontShowSaveConfirmation:i,bankAccountContext:c,roleMap:x?.loggedInUserRoleMap})})]}):d.jsx(Q,{})}const k=(e=2)=>{let t="../";for(let o=0;o<e;o++)t=`${t}../`;return t},Y=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng});export{de as A,Y as t};
@@ -1,11 +0,0 @@
1
- import{j as I}from"./liveblocks-CVGPqYnR.js";import{a}from"./sentry-vrLJXbkU.js";import{h as b,g as m,N as S}from"./core-B4ZvHvvY.js";import{HT as T,eL as y,fi as N,m1 as D,fI as E,fh as v,eM as w,H$ as A}from"./zeni-epic-state-Da4VO2lv.js";import{u as O,z as u,L as C,D as L,o as U}from"./index-DgzG0i4n.js";import{n as _}from"./mui-DoY7WfR_.js";import{t as j}from"./getLocaleForTenant-C50EFRQ8.js";import{Q as F}from"./QBOConnectionScreen-B4Rcl2XA.js";import"./recharts-DNFnaP_v.js";import"./lottie-B5aSI3Li.js";import"./analytics-BL0geQNn.js";import"./plaid-C1RHGEem.js";import"./dnd-B2_m6pRT.js";import"./stripe-DMRn4zHo.js";import"./lexical-DA5yMmPj.js";import"./pdf-ChIJqwGf.js";import"./utils-QMlevttK.js";import"./empty-u93aQEuK.js";import"./pdf-lib-DK80DJM9.js";import"./index-CAShaDN8.js";import"./url-CcUoq1OV.js";import"./index-CWllm9J4.js";import"./decodeURIComponentSafe-CC7b77eX.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="dbc215c4-9a98-4d02-8332-7d2636fa91d4",t._sentryDebugIdIdentifier="sentry-dbid-dbc215c4-9a98-4d02-8332-7d2636fa91d4")}catch{}})();const H=_.div`
2
- display: flex;
3
- flex: 1 1 auto;
4
- flex-direction: row;
5
- justify-content: center;
6
- align-items: center;
7
- width: 100%;
8
- height: 100vh;
9
- background-color: ${t=>t.theme.colors.background};
10
- box-shadow: ${t=>`0px 2px ${U.sp1} ${t.theme.colors.dropShadowNormal}`};
11
- `;function se(){const t=b(),{setLoading:s,clearAllLoading:g}=O(),p=a.useRef(!1),f=a.useRef(!1),c=m(d=>T(d)),e=m(d=>y(d)),n=m(d=>d.tenantState.fetchState),r=m(d=>d.tenantState.activeTenantFetchState.fetchState),o=u.getSignedInUser(),i=u.getActiveTenantForUser()?.tenantId,l=e?.externalConnections?.fetchState,h=e?.externalConnections?.saveConnectionState,x=e.externalConnections?.accounting[0]?.isValid;return a.useLayoutEffect(()=>{s(C.CONNECTION_AUTH)},[s]),a.useEffect(()=>{p.current||o==null||i==null||(p.current=!0,n==="Completed"||r!=="Not-Started"&&r!=="Error"||(s(C.TENANT_FETCHING),t(N(o.userId,i))))},[p,n,s]),a.useEffect(()=>{e.tenantId==null&&!f.current&&o!=null&&(f.current=!0,!(i==null||i!=null&&(r==="Completed"||r==="Error"))||n!=="Not-Started"&&n!=="Error"||t(D(o.userId)))},[f,n,r]),a.useEffect(()=>{o==null||e?.tenantId==null||e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||l==="In-Progress"||h!=="Error"||(s(C.CONNECTION_AUTH),t(E(o.userId,e.tenantId)))},[h]),a.useEffect(()=>{n!=="Completed"&&r!=="Completed"||o==null||e?.tenantId==null||(t(v(e.tenantId)),u.saveActiveTenantDomainForUser(e.tenantEmailDomain),w(o?.userId,o?.zeniSessionId,e.tenantId),L.updateAppLocaleID(j(A(e))),e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||l==="In-Progress"||o==null||e==null||t(E(o.userId,e.tenantId)))},[n,r,l]),a.useEffect(()=>{c.tenantsCoreDetailsInOrder.length>0&&n==="Completed"&&u.saveSignedInUserTenants(c.tenantsCoreDetailsInOrder)},[c.tenantsCoreDetailsInOrder.length,n]),a.useEffect(()=>{n!=="Completed"&&n!=="Error"||r!=="Completed"&&r!=="Error"||l!=="Completed"&&l!=="Error"||g()},[n,r,l]),e==null||n!=="Completed"&&r!=="Completed"||l!=="Completed"?null:x===!1?I.jsx(H,{children:I.jsx(F,{})}):I.jsx(S,{to:"/",replace:!0})}export{se as default};
@@ -1 +0,0 @@
1
- import{j as i}from"./liveblocks-CVGPqYnR.js";import{z as m}from"./index-DgzG0i4n.js";import{g as n}from"./QBOConnectionScreen-B4Rcl2XA.js";import"./sentry-vrLJXbkU.js";import{u as p,N as a}from"./core-B4ZvHvvY.js";import"./zeni-epic-state-Da4VO2lv.js";import"./recharts-DNFnaP_v.js";import"./mui-DoY7WfR_.js";import"./lottie-B5aSI3Li.js";import"./analytics-BL0geQNn.js";import"./plaid-C1RHGEem.js";import"./dnd-B2_m6pRT.js";import"./stripe-DMRn4zHo.js";import"./lexical-DA5yMmPj.js";import"./pdf-ChIJqwGf.js";import"./utils-QMlevttK.js";import"./empty-u93aQEuK.js";import"./pdf-lib-DK80DJM9.js";import"./index-CAShaDN8.js";import"./url-CcUoq1OV.js";import"./index-CWllm9J4.js";import"./decodeURIComponentSafe-CC7b77eX.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="34360189-ad08-40f6-93e1-76035a2c6a6d",t._sentryDebugIdIdentifier="sentry-dbid-34360189-ad08-40f6-93e1-76035a2c6a6d")}catch{}})();const U=()=>{const t=p(),{code:o,realmId:r,state:e}=n(t.search),s=m.getSignedInUser()?.userId??"";if(f(o,r,e,s)===!0){const d=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return i.jsx(a,{to:d})}return i.jsx(a,{to:"../../"})},f=(t,o,r,e)=>t!=""&&o!=""&&r!=""&&e!=null&&e!="";export{U as default,f as hasValidParams};
@@ -1 +0,0 @@
1
- import{j as i}from"./liveblocks-CVGPqYnR.js";import{K as l,x as c,m as f}from"./index-DgzG0i4n.js";import{D as p}from"./mui-DoY7WfR_.js";import"./sentry-vrLJXbkU.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="be254b02-e5c0-4dd6-8413-4fa419959976",e._sentryDebugIdIdentifier="sentry-dbid-be254b02-e5c0-4dd6-8413-4fa419959976")}catch{}})();const b={drawerLeftMargin:new c(0,0,240)};function m(e){const{isOpen:r,drawerLeftMargin:o,children:t,onClose:s}=e,n=l(),a=o?.valuePx(n)??b.drawerLeftMargin.valuePx(n),d=f();return i.jsx(p,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${a})`}},slotProps:{backdrop:{style:{backgroundColor:d.colors.black,opacity:.8,cursor:"pointer"}}},onClose:s,children:t})}export{m as D};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-CVGPqYnR.js";import{a as r}from"./sentry-vrLJXbkU.js";import{V as c,X as d,Y as l,p}from"./index-DgzG0i4n.js";import"./mui-DoY7WfR_.js";import m from"./NotFoundScreen-jPpbDlQd.js";import{j as u,u as b}from"./core-B4ZvHvvY.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]="eaf11e13-591f-4afe-82bb-7c7fc7a5da21",e._sentryDebugIdIdentifier="sentry-dbid-eaf11e13-591f-4afe-82bb-7c7fc7a5da21")}catch{}})();const D=()=>{const e=u(),a=b(),t=r.useCallback(()=>{window.open("https://www.zeni.ai/demo/request","_blank")},[]),f=r.useCallback(()=>{(()=>{const n=p(a.state?.pathnameStackToGoBack),i=n.poppedPathname??k();e(i,{state:{pathnameStackToGoBack:n.newStack}})})()},[]),o=c(a.pathname);return o!=null?s.jsx(d,{menuItem:l(o),onDemoClick:t,onGoBack:f}):s.jsx(m,{})},k=(e=2)=>{let a="../";for(let t=0;t<e;t++)a=`${a}../`;return a};export{D as F};
@@ -1,72 +0,0 @@
1
- import{j as t}from"./liveblocks-CVGPqYnR.js";import{l as w,k as x,j,u as y,h as Y,q as ee,g as A,N as te,n as ae,o as p}from"./core-B4ZvHvvY.js";import{I9 as S,Ia as k,Ib as L,yv as $,yh as N,Ic as C,Id as ne,Ie as oe,yl as ie,eM as I,ys as se,yp as le}from"./zeni-epic-state-Da4VO2lv.js";import{K as g,o as d,n as de,c as v,h as E,I as re,p as ce,O as me,q as F,Z as pe,i as ue,r as he,F as xe,m as ge,B as be,s as fe,$ as we,v as ye,w as Se,x as ke,y as ve}from"./index-DgzG0i4n.js";import{n as c}from"./mui-DoY7WfR_.js";import b from"./NotFoundScreen-jPpbDlQd.js";import{a as P}from"./sentry-vrLJXbkU.js";import"./recharts-DNFnaP_v.js";import"./lottie-B5aSI3Li.js";import"./analytics-BL0geQNn.js";import"./plaid-C1RHGEem.js";import"./dnd-B2_m6pRT.js";import"./stripe-DMRn4zHo.js";import"./lexical-DA5yMmPj.js";import"./pdf-ChIJqwGf.js";import"./utils-QMlevttK.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]="81cbcc3b-779b-4b41-ae81-ddf05f93db51",e._sentryDebugIdIdentifier="sentry-dbid-81cbcc3b-779b-4b41-ae81-ddf05f93db51")}catch{}})();const Ie=c.div`
2
- display: flex;
3
- height: 100%;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- box-shadow: ${e=>`0px 2px ${d.sp1} ${e.theme.colors.dropShadowNormal}`};
10
- `,je=x(function(e){const a=S(e),n=k(e),{companyName:o}=a;return{companyName:o,isDisabled:a.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,magicLinkViewState:a}},function(e,a){const{vendorId:n,billId:o}=a;return{onFetchBankName:i=>{e(N(i))},onSaveHandler:i=>{v.trackBillPayMagicLinkSubmitBankAccountDetails(o),e($(i,"standard",n,o))},onACHDetailsUpdated:i=>{const{bankAccountSection:l}=i;e(L({data:l}))}}})(de);function z(){const e=g(),{vendorId:a,billId:n}=w();return a==null||n==null?t.jsx(b,{}):t.jsx(t.Fragment,{children:t.jsx(Ie,{windowSize:e,children:t.jsx(je,{vendorId:a,billId:n})})})}const $e=c.div`
11
- display: flex;
12
- height: 100vh;
13
- width: 100%;
14
- flex: 1 1 auto;
15
- flex-direction: column;
16
- align-items: center;
17
- background-color: ${e=>e.theme.colors.grey4};
18
- box-shadow: ${e=>`0px 2px ${d.sp1} ${e.theme.colors.dropShadowNormal}`};
19
- `,Ce=x(function(e,a){const{isSubPage:n}=a;return{addressToEdit:C(e),googleAPIKey:E.googleMapsAPIKey,isSubPage:n}},function(e,a){const{navigate:n,location:o}=a,i=()=>{const l=ce(o.state?.pathnameStackToGoBack),s=l.poppedPathname??De();n(s,{state:{pathnameStackToGoBack:l.newStack}})};return{onSubmitHandler:l=>{const s=Ae(l);e(ne({addressToCreate:s})),i()},onCancel:()=>{i()}}})(re);function Be({isSubPage:e}){const a=j(),n=y(),o=g();return t.jsx(t.Fragment,{children:t.jsx($e,{windowSize:o,children:t.jsx(Ce,{location:n,navigate:a,isSubPage:e===!0,googleAPIKey:E.googleMapsAPIKey})})})}const De=(e=2)=>{let a="../";for(let n=0;n<e;n++)a=`${a}../`;return a},Ae=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng}),Pe=c.div`
20
- display: flex;
21
- height: 100%;
22
- width: 100%;
23
- flex: 1 1 auto;
24
- flex-direction: column;
25
- align-items: center;
26
- background-color: ${e=>e.theme.colors.grey4};
27
- box-shadow: ${e=>`0px 2px ${d.sp1} ${e.theme.colors.dropShadowNormal}`};
28
- `,ze=x(function(e){const a=S(e),n=k(e),o=C(e),{companyName:i}=a;return{companyName:i,isDisabled:a.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,mailingAddressDetails:o,magicLinkViewState:a}},function(e,a){const{navigate:n,location:o,vendorId:i,billId:l}=a;return{onFetchBankName:s=>{e(N(s))},onSaveHandler:s=>{v.trackBillPayMagicLinkSubmitBankAccountDetails(l),e($(s,"us-domestic",i,l))},onWireDetailsUpdated:s=>{const{bankAccountSection:r}=s;e(L({data:r}))},onAddressClick:()=>{const s=o.pathname.replace("us-domestic","address"),r=F(o.state?.pathnameStackToGoBack,o.pathname);n(s,{state:{pathnameStackToGoBack:r}})}}})(me);function Le(){const e=j(),a=y(),n=g(),{vendorId:o,billId:i}=w();return o==null||i==null?t.jsx(b,{}):t.jsx(t.Fragment,{children:t.jsx(Pe,{windowSize:n,children:t.jsx(ze,{location:a,navigate:e,vendorId:o,billId:i})})})}const Ne=c.div`
29
- display: flex;
30
- height: 100%;
31
- width: 100%;
32
- flex: 1 1 auto;
33
- flex-direction: column;
34
- align-items: center;
35
- background-color: ${e=>e.theme.colors.grey4};
36
- box-shadow: ${e=>`0px 2px ${d.sp1} ${e.theme.colors.dropShadowNormal}`};
37
- `,Ee=x(function(e){const a=S(e),n=k(e),o=C(e),{companyName:i}=a;return{companyName:i,isDisabled:a.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,mailingAddressDetails:o,magicLinkViewState:a}},function(e,a){const{navigate:n,location:o,vendorId:i,billId:l}=a;return{onFetchBankNameBySwift:s=>{e(ie(s))},onSaveHandler:s=>{v.trackBillPayMagicLinkSubmitBankAccountDetails(l),e($(s,"international",i,l,a.isLocalCurrencyEnabled))},onBankDetailsUpdated:s=>{const{internationalWireSwiftAccountSection:r}=s;e(oe({data:r}))},onAddressClick:()=>{const s=o.pathname.replace("international","address"),r=F(o.state?.pathnameStackToGoBack,o.pathname);n(s,{state:{pathnameStackToGoBack:r}})}}})(he);function Fe(){const e=j(),a=y(),n=g(),{vendorId:o,billId:i}=w(),{useFeatureGate:l}=pe(),{isFeatureEnabled:s}=l(ue.isBillPayLocalCurrencyFeatureEnabled);return o==null||i==null?t.jsx(b,{}):t.jsx(Ne,{windowSize:n,children:t.jsx(Ee,{location:a,navigate:e,vendorId:o,billId:i,isLocalCurrencyEnabled:s})})}const Te={containerWidth:new ke(100,58)},Ge=c(ye)`
38
- width: ${d.sp4};
39
- height: ${d.sp4};
40
- margin-bottom: ${d.sp3};
41
- margin-top: ${d.sp3};
42
- margin-left: ${d.sp8};
43
- cursor: pointer;
44
- position: absolute;
45
- color: ${e=>e.theme.colors.brandColorJade};
46
- `,Me=c.div`
47
- display: flex;
48
- height: 100vh;
49
- flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
50
- width: 100vw;
51
- overflow-y: scroll;
52
- background-color: ${e=>e.theme.colors.grey4};
53
- `,He=c.div`
54
- display: flex;
55
- flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
56
- flex-direction: column;
57
- width: ${e=>`${Te.containerWidth.value(e.windowSize)}%`};
58
- ${e=>e.windowSize!=="small"?"overflow: auto;":""}
59
- box-shadow: ${e=>`0px 2px ${d.sp1} ${e.theme.colors.dropShadowNormal}`};
60
- padding-top: ${e=>e.windowSize!=="small"?d.sp2:"0px"};
61
- `,Ke=c.div`
62
- display: flex;
63
- flex-direction: column;
64
- align-items: center;
65
- justify-content: center;
66
- padding: ${e=>e.windowSize==="small"?d.sp3:`62px ${d.sp6} ${d.sp9} ${d.sp8}`};
67
- height: ${e=>e.windowSize==="small"?"490px":"auto"};
68
- overflow: ${e=>e.windowSize==="small"?"unset":"hidden"};
69
- width: ${e=>e.windowSize=="small"?"auto":"42%"};
70
- background-color: ${e=>e.windowSize==="small"?e.theme.colors.grey4:e.theme.colors.background};
71
- margin-top: ${e=>e.windowSize==="small"?e.isAddressPage?"0px":"186px":"unset"};
72
- `,Ve=x(function(e,a){return{file:a.file,type:a.type}})(Se);function h({appContent:e}){const a=Y(),n=y(),{tenantEmailDomain:o,vendorId:i,billId:l}=w(),[s]=ee(),r=s.get("token"),T=n.pathname.includes("address"),f=g(),G=xe(),B=ge(),M=()=>{G.toggle()},H=A(u=>S(u)),K=A(u=>k(u)),{authParams:V,fetchState:m,billAttachment:W,billFetchState:D,companyName:_,currencySymbol:U,amount:q}=H,{tenantId:J,userId:O,sessionId:Z}=V,{fetchState:Q,internationalBankAccountCreateStatus:R}=K;return P.useEffect(()=>{I(),m==="Not-Started"&&i!=null&&o!=null&&r!=null&&a(se(i,o,r))},[]),P.useEffect(()=>{m==="Completed"&&(I(O,Z,J),l!=null&&a(le(l)))},[m]),m==="Error"?t.jsx(b,{}):Q==="Completed"||R.fetchState==="Completed"?(I(),t.jsx(te,{to:"../../../../../../../bank/account/save/success",replace:!0,relative:"path"})):m==="In-Progress"?t.jsx(be,{fetchState:m,style:{height:"100vh",backgroundColor:B.colors.grey5,boxShadow:`0px 2px ${d.sp1} ${B.colors.dropShadowNormal}`}}):t.jsxs(t.Fragment,{children:[m==="Completed"&&D==="Completed"&&t.jsx(fe,{analytics:v,onLoad:u=>(X=>X.trackBillPayMagicLinkPageLoad(o??"",i??"",_,l??"",We(n.pathname),U,q))(u)}),t.jsxs(Me,{windowSize:f,children:[f!=="small"?t.jsx(Ge,{onClick:M}):null,t.jsx(Ke,{windowSize:f,isAddressPage:T,children:D==="In-Progress"?t.jsx(we,{size:"ExtraLarge",start:!0}):t.jsx(Ve,{file:W,type:"bill"})}),t.jsx(He,{windowSize:f,children:e})]})]})}const We=e=>`${e.split("/").at(-2)}_${e.split("/").at(-1)}`;function _e(){return t.jsx(ve,{})}function lt(){return t.jsxs(ae,{children:[t.jsx(p,{path:"bank/account/save/success",element:t.jsx(_e,{})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/ach/standard",element:t.jsx(h,{appContent:t.jsx(z,{})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/ach/same-day",element:t.jsx(h,{appContent:t.jsx(z,{})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/address",element:t.jsx(h,{appContent:t.jsx(Be,{isSubPage:!0})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/us-domestic",element:t.jsx(h,{appContent:t.jsx(Le,{})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/international",element:t.jsx(h,{appContent:t.jsx(Fe,{})})}),t.jsx(p,{path:"*",element:t.jsx(b,{})})]})}export{lt as default};
@@ -1,12 +0,0 @@
1
- import{j as u}from"./liveblocks-CVGPqYnR.js";import{a as g}from"./sentry-vrLJXbkU.js";import{h as U,u as _,j as w,q as M,g as l,N as T}from"./core-B4ZvHvvY.js";import{z as r,m as V,D as P,d as A,c as N,e as H,j as R,$ as W,g as $}from"./index-DgzG0i4n.js";import{eL as q,HV as B,I4 as G,HW as J,eM as K,fh as Q,I0 as X,fE as Y,cR as Z,I5 as ee,I6 as te}from"./zeni-epic-state-Da4VO2lv.js";import{n as ne}from"./mui-DoY7WfR_.js";import{u as se}from"./useDeviceId-BMtoTIZs.js";import{f as ae}from"./analyticsHelper-B-IDLpaZ.js";import{t as ie}from"./getLocaleForTenant-C50EFRQ8.js";import"./recharts-DNFnaP_v.js";import"./lottie-B5aSI3Li.js";import"./analytics-BL0geQNn.js";import"./plaid-C1RHGEem.js";import"./dnd-B2_m6pRT.js";import"./stripe-DMRn4zHo.js";import"./lexical-DA5yMmPj.js";import"./pdf-ChIJqwGf.js";import"./utils-QMlevttK.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="a3027238-f248-4078-ba81-e121f6a37d1b",t._sentryDebugIdIdentifier="sentry-dbid-a3027238-f248-4078-ba81-e121f6a37d1b")}catch{}})();const D=(t,a)=>t!=null&&t.length>0&&a==="magic_links";function De(){const t=U(),a=_(),m=w(),[k]=M(),n=k.get("token"),p=k.get("stytch_token_type"),f=r.getMagicLinkCodeVerifier(),i=se(),{otpChallenge:d,twoFAPhoneNumber:x,magicLinkEmail:c,verifyDeviceFetchState:z,resendVerifyDeviceOTPFetchState:C}=l(e=>e.tenantState),S=l(e=>e.tenantState.fetchState),y=l(e=>e.tenantState.activeTenantFetchState.fetchState),I=l(e=>e.tenantState.signInState),h=l(e=>e.tenantState.magicLinkSignInFetchState.fetchState),s=l(e=>e.tenantState.loggedInUser),o=l(e=>q(e)),b=l(e=>B(e)),E=r.getSignedInUser(),v=V().mode;g.useEffect(()=>{s?.zeniSessionId==null&&n!=null&&D(n,p)&&i!=null&&f!=null&&(r.saveMagicLinkTriggered(n),t(G(n,i,f)))},[n,p,t,i,f,s?.zeniSessionId]),g.useEffect(()=>{I!=="In-Progress"||S!=="Completed"&&y!=="Completed"||s?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(s,s.zeniSessionId),r.saveSignedInUserTenants(J(b.tenantsInOrder),s.zeniSessionId),K(s.userId,s.zeniSessionId,o.tenantId),t(Q(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(X("Completed")),P.updateAppLocaleID(ie(o)),ae(s,o,v,void 0,b.tenantsInOrder),Y().then(()=>{const e=$();e!=null&&A(e)}),setTimeout(()=>{N.trackLogin(H.Event.loginSuccess,"email",Z(o.productSettings))},2e3))},[I,S,y,s,o,b,v,a.state,t]);const j=g.useCallback(()=>{m("/signin/auth")},[m]),F=g.useCallback(()=>{i!=null&&d!=null&&c!=null&&t(ee(i,c,d))},[i,d,t,c]),O=g.useCallback(e=>{i!=null&&n!=null&&c!=null&&d!=null&&t(te(e,i,c,d))},[i,n,t,c,d]);if(h==="Completed"&&d!=null)return u.jsx(R,{phoneNumber:x,verifyOtpFetchState:z.fetchState,resendVerifyDeviceOTPFetchState:C,onResendOtp:F,onVerifyOtp:O,onCancelVerifyDevice:j});if(I==="In-Progress"&&S==="Completed"&&s?.zeniSessionId!=null&&o!=null||E!=null){const e=a.state?.origin??"/";return u.jsx(T,{to:e,state:{...a.state,origin:""}})}if(!D(n,p)||f==null||h==="Error"){const e=a.state?.origin??"/",L=n!=null&&r.getLastUsedMagicLinkToken()===n;return u.jsx(T,{to:e,state:{...a.state,origin:"",magicLinkAlreadyUsed:L,magicLinkExpired:!L&&(r.isMagicLinkTriggered(n??"")||h==="Error"&&s?.zeniSessionId==null)}})}return u.jsx(oe,{"data-testid":"smooth-loader",children:u.jsx(W,{size:"ExtraLarge",start:!0})})}const oe=ne.div`
2
- position: fixed;
3
- top: 0;
4
- left: 0;
5
- right: 0;
6
- bottom: 0;
7
- display: flex;
8
- align-items: center;
9
- justify-content: center;
10
- z-index: 9999;
11
- background-color: ${t=>t.theme.colors.background};
12
- `;export{De as default};
@@ -1 +0,0 @@
1
- import{j as e}from"./liveblocks-CVGPqYnR.js";import{j as r,k as i}from"./core-B4ZvHvvY.js";import{U as n}from"./index-DgzG0i4n.js";import"./mui-DoY7WfR_.js";import"./sentry-vrLJXbkU.js";import"./zeni-epic-state-Da4VO2lv.js";import"./recharts-DNFnaP_v.js";import"./lottie-B5aSI3Li.js";import"./analytics-BL0geQNn.js";import"./plaid-C1RHGEem.js";import"./dnd-B2_m6pRT.js";import"./stripe-DMRn4zHo.js";import"./lexical-DA5yMmPj.js";import"./pdf-ChIJqwGf.js";import"./utils-QMlevttK.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new o.Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="8569e781-4cca-432a-a9cb-bfb8f16b11e6",o._sentryDebugIdIdentifier="sentry-dbid-8569e781-4cca-432a-a9cb-bfb8f16b11e6")}catch{}})();const a=i(null,function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}})(n);function h(){const o=r();return e.jsx(a,{navigate:o})}export{h as default};
@@ -1 +0,0 @@
1
- import{j as n}from"./liveblocks-CVGPqYnR.js";import{j as J,h as z,u as K,l as X,g as l,k as Z,n as H,o as I}from"./core-B4ZvHvvY.js";import{eL as v,pX as R,pv as ee,II as U,pq as S,bu as ae,bQ as te,pr as se,IJ as oe,It as C,dF as ne,td as re,IK as ie,tA as ce,eS as le,eQ as de}from"./zeni-epic-state-Da4VO2lv.js";import{J as me,z as fe,M as pe,S as ue,Z as M,i as w,s as he,c as $,aj as be,q as Fe}from"./index-DgzG0i4n.js";import"./mui-DoY7WfR_.js";import ge from"./NotFoundScreen-jPpbDlQd.js";import{F as Ie}from"./FeaturePreviewScreen-C2dbroTQ.js";import{a as u}from"./sentry-vrLJXbkU.js";import{u as Ce}from"./useAskAiCfoHostNavButtonProps-DQFYXydp.js";import{c as Se}from"./useFetchSuggestedQuestionsWhenReady-BMFUNkte.js";import{t as Ae}from"./routePaths-WhbiYSxu.js";import{M as ye}from"./MobileAppDrawer-eCdBXSxf.js";import"./recharts-DNFnaP_v.js";import"./lottie-B5aSI3Li.js";import"./analytics-BL0geQNn.js";import"./plaid-C1RHGEem.js";import"./dnd-B2_m6pRT.js";import"./stripe-DMRn4zHo.js";import"./lexical-DA5yMmPj.js";import"./pdf-ChIJqwGf.js";import"./utils-QMlevttK.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new s.Error().stack;a&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[a]="b4a13926-b4b5-4ccb-9349-03bcfd94e537",s._sentryDebugIdIdentifier="sentry-dbid-b4a13926-b4b5-4ccb-9349-03bcfd94e537")}catch{}})();const A=(s,a,e)=>{s!=a&&(s!=null&&s.length>0?e(`../${a}`,{replace:!0}):e(a,{replace:!0}))},Te=Z(function(s){const a=oe(s),e={},o=a.pandLReportWithForecast.uiState.nodeCollapseState;return Object.keys(o).forEach(i=>{e[i]=o[i]===!1}),{selectedTimeframe:a.selectedTimeframe,isForecastVsActualOn:a.isForecastVsActualOn,compareMode:a.compareMode,forecastList:a.forecastList,selectedForecast:a.selectedForecast,pandLreport:a.pandLReportWithForecast,scrollPosition:a.pandLReportWithForecast.uiState.scrollPosition,nodeOpenStatus:e,type:"name+balances_forecast",analytics:$}},function(s,a){return{onForecastSelectionChanged:(e,o)=>{s(U(e,o)),a.isPandLReportFetched(e)||s(S(e)),A(a.forecastIdFromUrlPath,e,a.navigate)},onTimeframeChanged:e=>{s(ce(e))},onForecastVsActualsCompareToggle:e=>{s(ie(e)),s(C({forecastId:a.forecastIdFromUrlPath,scrollPosition:{scrollLeft:0,scrollTop:0}}))},onCompareModeChanged:e=>{s(re(a.firstMonthOfFY,e,0,[]))},onAccountBalanceClick:a.hasTransactionAccess!==!0?void 0:(e,o)=>{let i,r;const h=e.accountName===""?e.accountDescription:e.accountName;if(o.balanceTimeFrame==="month"||o.balanceTimeFrame==="quarter"?(i=o.balanceTimeFrame,r=ne(o)):o.balanceTimeFrame==="year"?(i="quarter",r={startDate:o.endDate.startOf("quarter"),endDate:o.endDate}):console.error(`timeframe ${o.balanceTimeFrame} is not supported`),r!=null&&i!=null){const f=Ae(a.tenantEmailDomain,e.accountId,e.accountType,h,i,r),p=Fe(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(f,{state:{pathnameStackToGoBack:p,referrer:"Forecast"}})}},onNodeCollapseToggled:(e,o)=>{s(C({forecastId:a.forecastIdFromUrlPath,nodeCollapseState:{nodeId:e,isCollapsed:o===!1}}))},onTableScroll:e=>{s(C({forecastId:a.forecastIdFromUrlPath,scrollPosition:e}))},onBackClick:()=>{a.navigate("../../")}}})(be);function P(){const{isAiCfoOpen:s,setIsAiCfoOpen:a}=me(),e=J(),o=z(),i=K(),{forecastId:r,tenantEmailDomain:h}=X(),[f,p]=u.useState(!1),[y,T]=u.useState(!1),b=fe.getSignedInUser(),q=l(t=>v(t)),B=q.company?.companyInfo.firstMonthOfFY??1,c=l(t=>R(t.forecastState,t.forecastListState)),d=l(t=>t.forecastListState.fetchState==="Completed"),k=l(t=>t.profitAndLossState),j=l(t=>t.reportUIOptionsState.selectedForecast),x=t=>k.pandLByForecastID[t]!=null&&se(t,k).reducedAllFetchState.fetchState==="Completed",{areTenantIdsInSync:F}=pe();Se({isDataReady:d});const{isAiCfoAccessEnabled:N,onAskAiCfoClick:_}=Ce({isAiCfoOpen:s,setIsAiCfoOpen:a,mobileExploreReferrer:"Forecast"});u.useEffect(()=>{if(!f&&F)p(!0),d||o(ee());else if(d&&!y){T(!0);const t=((m,E,O)=>E!=null?m.forecasts.findIndex(g=>g.id===E):O!=null?m.forecasts.findIndex(g=>g.id===O):m.forecasts.length>0?0:-1)(c,r,j?.id);t===-1&&r!=null?e("page-not-found",{replace:!0}):t!==-1&&t!=j?.index?(o(U(c.forecasts[t].id,t)),A(r,c.forecasts[t].id,e)):r==null&&t!==-1&&A(void 0,c.forecasts[t].id,e),t!==-1&&!x(c.forecasts[t].id)&&F&&o(S(c.forecasts[t].id))}},[f,p,o,d,c,y,T,R,S,F]);const D=ue(),G=D?.loggedInUserRole!=null&&ae(D.loggedInUserRole),{useFeatureGate:V}=M(),{isFeatureEnabled:W}=V(w.isReportsCommentingEnabled),[Q,Y]=u.useState(!1),L=t=>{Y(t)};return n.jsxs(n.Fragment,{children:[d?n.jsx(he,{analytics:$,onLoad:t=>(m=>m.trackForecast())(t)}):null,n.jsx(ye,{isAppContentDrawerOpen:Q,handleDrawerToggle:L}),n.jsx(Te,{firstMonthOfFY:B,tenantEmailDomain:h,forecastIdFromUrlPath:r,navigate:e,location:i,isPandLReportFetched:x,meetingUrl:te(`https://meetings.hubspot.com/svitlana-grankovska?firstname=${b?.firstName}&lastname=${b?.lastName}&email=${b?.userEmail}`),hasTransactionAccess:G,isAiCfoAccessEnabled:N,onAskAiCfoClick:_,isReportsCommentingEnabled:W,onClickMenuIcon:()=>{L(!0)}})]})}function Qe(){const s=l(r=>v(r)),{useFeatureGate:a}=M(),{isFeatureEnabled:e}=a(w.isDebitCardFeatureEnabled),o=le(e,s),i=de(s);return o===!0||i===!0?n.jsx(Ie,{}):n.jsxs(H,{children:[n.jsx(I,{path:"/",element:n.jsx(P,{})}),n.jsx(I,{path:"/:forecastId",element:n.jsx(P,{})}),n.jsx(I,{path:"/:forecastId/*",element:n.jsx(ge,{})})]})}export{Qe as PandLWithForecastRoutes,Qe as default};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-CVGPqYnR.js";import _ from"./NotFoundScreen-jPpbDlQd.js";import{a as r}from"./sentry-vrLJXbkU.js";import{j as v,u as M,g as u,l as U,h as P,N as z,k as F,n as V,o as b}from"./core-B4ZvHvvY.js";import{eL as B,Oi as h,bn as J,bm as N,gO as H,gw as L}from"./zeni-epic-state-Da4VO2lv.js";import{F as $,z as I,J as q,cp as G}from"./index-DgzG0i4n.js";import"./mui-DoY7WfR_.js";import{u as K}from"./useAskAiCfoHostNavButtonProps-DQFYXydp.js";import{c as Q}from"./useFetchSuggestedQuestionsWhenReady-BMFUNkte.js";import{M as W}from"./MobileAppDrawer-eCdBXSxf.js";import"./recharts-DNFnaP_v.js";import"./lottie-B5aSI3Li.js";import"./analytics-BL0geQNn.js";import"./plaid-C1RHGEem.js";import"./dnd-B2_m6pRT.js";import"./stripe-DMRn4zHo.js";import"./lexical-DA5yMmPj.js";import"./pdf-ChIJqwGf.js";import"./utils-QMlevttK.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]="9b7b8a0a-fdab-4fa8-9e39-d3936903b2e6",e._sentryDebugIdIdentifier="sentry-dbid-9b7b8a0a-fdab-4fa8-9e39-d3936903b2e6")}catch{}})();const X=F(function(e){const t=I.getSignedInUser(),c=e.tenantState.currentTenantId,o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:c??""},{aggregatedReportViewState:n}=h(e);return{authParams:o,isDisabled:!1,loggedInUser:t,aggregatedReport:n}},function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}})(G),Y=()=>{const e=v(),t=M(),c=$(),o=u(a=>B(a)),{aggregatedReportViewState:n}=u(a=>h(a)),{tenantEmailDomain:m}=U(),p=P(),l=I.getSignedInUser();if(l==null)throw new Error("Can't access this page without signing in...");const f=r.useRef(!1),[C,w]=r.useState(!1),S=J(o?.userRole??[]),k=o?.userRole?.includes("bookkeeping_admin")??!1,A=N(l),D=S||k||A,d=r.useCallback((a,i,O)=>{p(H({fromMonth:a,toMonth:i,cacheOverride:O}))},[]);r.useEffect(()=>{n?.fetchState==="Completed"&&f.current&&(p(L({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),f.current=!1)},[n?.fetchState]);const x=r.useCallback((a,i)=>{n!=null&&n?.fetchState==="In-Progress"||d(a,i,!0),f.current=!0},[n?.fetchState,d]),y=r.useCallback((a,i)=>{d(a,i,!1)},[d]),g=a=>{w(a)},{isAiCfoOpen:j,setIsAiCfoOpen:R}=q(),{isAiCfoAccessEnabled:T,onAskAiCfoClick:E}=K({isAiCfoOpen:j,setIsAiCfoOpen:R,mobileExploreReferrer:"Performance"});return Q({isDataReady:n?.fetchState==="Completed"}),D?s.jsxs(s.Fragment,{children:[s.jsx(W,{isAppContentDrawerOpen:C,handleDrawerToggle:g}),s.jsx(X,{navigate:e,location:t,themeState:c,currentTenant:o,signedInUser:l,tenantEmailDomain:m,onReload:x,onTimeRangeSelect:y,handleDrawerToggle:g,isAiCfoAccessEnabled:T,onAskAiCfoClick:E})]}):s.jsx(z,{to:`/${m}/dashboard`,replace:!0})};function Ie(){return s.jsxs(V,{children:[s.jsx(b,{path:"*",element:s.jsx(Y,{})}),s.jsx(b,{path:"*",element:s.jsx(_,{})})]})}export{Ie as default};
@@ -1 +0,0 @@
1
- import{j as a}from"./liveblocks-CVGPqYnR.js";import{Z as j,z as w,aI as b,s as E,c as p,e as F,cy as L,i as P}from"./index-DgzG0i4n.js";import"./mui-DoY7WfR_.js";import l from"./NotFoundScreen-jPpbDlQd.js";import{a as u}from"./sentry-vrLJXbkU.js";import{h as R,g as y,j as T,u as V,k as O,n as U,o as d}from"./core-B4ZvHvvY.js";import{eL as z,OR as C,LH as A,OS as k,t3 as Y,eY as G,OT as H,t1 as Z}from"./zeni-epic-state-Da4VO2lv.js";import{R as x}from"./ReferralListScreen-DHtLnulq.js";import"./recharts-DNFnaP_v.js";import"./lottie-B5aSI3Li.js";import"./analytics-BL0geQNn.js";import"./plaid-C1RHGEem.js";import"./dnd-B2_m6pRT.js";import"./stripe-DMRn4zHo.js";import"./lexical-DA5yMmPj.js";import"./pdf-ChIJqwGf.js";import"./utils-QMlevttK.js";import"./useAskAiCfoHostNavButtonProps-DQFYXydp.js";import"./useFetchSuggestedQuestionsWhenReady-BMFUNkte.js";import"./MobileAppDrawer-eCdBXSxf.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]="1bc3a249-ea55-483b-b70e-a2a60a1671c9",e._sentryDebugIdIdentifier="sentry-dbid-1bc3a249-ea55-483b-b70e-a2a60a1671c9")}catch{}})();const q=O(function(e,t){const n=C(e);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}},function(e,t){const{navigate:n}=t,o=w.getSignedInUser();return{onDismissClick:()=>{e(k()),n("..")},onSendClick:()=>{if(o!=null){const s=[],r=[];t.inviteFormCompayData.forEach(c=>{s.push(c.companyName),r.push(c.emailIds[0])}),p.trackInviteEmailClicked("send",s,r,s.length)}e(Z())},onUpdateInviteFormLocalData:s=>{e(H({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{o!=null&&p.trackInviteEmailClicked("cancel")}}})(L),B=()=>{const e=R(),[t,n]=u.useState(!1),[o,s]=u.useState(!1),r=y(i=>z(i)),c=T(),S=V(),{useDynamicConfig:g}=j(),f=w.getSignedInUser();if(f==null)throw Error("Can't access invite referral screen without signing in...");const m=y(i=>C(i)),_=f?.firstName!=null?f.firstName:"User",{configValue:h}=g(b.zeniCardsConfig),{configValue:v}=g(b.zeniAccountsConfig),D=A(v);u.useEffect(()=>{e(k()),r?.rewardsLastViewedTime==null&&o===!1&&(e(Y()),s(!0))},[]),u.useEffect(()=>{t||m.fetchState!=="Not-Started"||(n(!0),e(G(!0)))},[m.fetchState,e]);const I=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[m.fetchState==="Completed"?a.jsx(E,{analytics:p,onLoad:i=>(N=>N.trackPageLoaded(F.Event.inviteEmailViewed))(i)}):null,a.jsx(q,{navigate:c,location:S,currentTenant:r,companyName:I,userName:_,inviteFormCompayData:m.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:D.maxAnnualPercentageYield})]})};function fe(){const{useFeatureGate:e}=j(),{isFeatureEnabled:t}=e(P.isReferralFeatureEnabled);return a.jsxs(U,{children:[a.jsx(d,{path:"/",element:t?a.jsx(x,{}):a.jsx(l,{})}),a.jsx(d,{path:"how-it-works",element:t?a.jsx(x,{isReferralDrawerOpen:!0}):a.jsx(l,{})}),a.jsx(d,{path:"refer/*",element:t?a.jsx(B,{}):a.jsx(l,{})}),a.jsx(d,{path:"*",element:a.jsx(l,{})})]})}export{fe as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardRoutes-B9_-_tPb.js","assets/sentry-vrLJXbkU.js","assets/core-B4ZvHvvY.js","assets/zeni-epic-state-Da4VO2lv.js","assets/index-DgzG0i4n.js","assets/mui-DoY7WfR_.js","assets/analytics-BL0geQNn.js","assets/utils-QMlevttK.js","assets/withTransactionSidePanel-D3gZnvfm.js","assets/useAskAiCfoHostNavButtonProps-DQFYXydp.js","assets/useFetchSuggestedQuestionsWhenReady-BMFUNkte.js","assets/TransactionDetailScreen-BCiX38jP.js","assets/decodeURIComponentSafe-CC7b77eX.js","assets/routePaths-WhbiYSxu.js","assets/NotFoundScreen-jPpbDlQd.js","assets/analyticsHelper-B-IDLpaZ.js","assets/CompanyPassportScreen-BCPm2c8T.js","assets/MobileAppDrawer-eCdBXSxf.js","assets/FeaturePreviewScreen-C2dbroTQ.js","assets/ReferralListScreen-DHtLnulq.js","assets/index-D-vub4_t.css","assets/BillPayRoutes-CWbI-3lu.js","assets/AddressScreen-B-90Ns9M.js","assets/DomesticWireDetailScreen-DCV6HQRp.js","assets/useInitialThreadRequest-C88MW4km.js","assets/DrawerScreen-dt2KgJzx.js","assets/SetupPagesScreen-BJy2d6s1.js","assets/BusinessVerificationPageScreen-B8mXcNLy.js","assets/BillPayApprovalRoutes-BeaWY9ga.js","assets/ReimbursementApprovalRuleDetailScreen-BVKZCEAO.js","assets/getLocaleForTenant-C50EFRQ8.js","assets/ReimbursementRoutes--zV8t9-V.js","assets/ReimbursementApprovalRoutes-DdJz0p5l.js","assets/TransactionListRoutes-yuwwha-7.js","assets/ZeniAccountStatementScreen-DOb1513X.js","assets/SettingsRoutes-BZwjpejF.js","assets/accountMappingHelper-GgTLtZGv.js","assets/ReportsRoutes-CRufLdv_.js","assets/ChargeCardRoutes-Bgdfn44a.js","assets/PeopleRoutes-5oajZHVV.js","assets/ExpenseAutomationRoutes-D8G_zp8f.js","assets/TreasuryRoutes-CY_-R9A0.js","assets/VendorsRoutes-k37ZPcgY.js","assets/pathToGoBack-BDUkHX_e.js","assets/ZeniAccountRoutes-BYcGG-cX.js","assets/AddressRoutes-D2Yn8dXr.js","assets/PandLWithForecastRoutes-BeER1eMP.js","assets/CustomerOnboardingRoutes-D-_60rGa.js","assets/QBOConnectionScreen-B4Rcl2XA.js","assets/empty-u93aQEuK.js","assets/index-CAShaDN8.js","assets/url-CcUoq1OV.js","assets/index-CWllm9J4.js","assets/TransactionDetailRoutes-CM3RR8SH.js","assets/EntityDetailRoutes-CINCnbfR.js","assets/NotificationRoutes-CxWKZNsp.js","assets/PerformanceRoutes-D2L3CFvV.js","assets/RewardsRoutes-CJ6LAavD.js","assets/TaskRoutes-DfQABQLR.js","assets/TaskListScreen-BpK-8QnW.js","assets/AiCfoScreen-BR8PoUmU.js"])))=>i.map(i=>d[i]);
2
- import{_ as a,bm as os,eL as ls,eS as cs,eQ as ds,eR as ms,fC as us,eN as _s,cM as Ae,ct as As,f8 as Es,cl as ps,bB as Is,bp as gs,fd as xs,v as Ts,HW as hs,bu as js,HX as Us,bD as Hs,fa as Rs,bC as Ds,br as ys,cN as bs,HY as fs,HZ as Cs,cJ as vs,cL as Os,cK as Ps,cs as Fs,cy as Ls,m1 as Ee,eM as pe,H_ as Bs,fh as Ie,fH as ge,fI as xe,fi as ks}from"./zeni-epic-state-Da4VO2lv.js";import{j as e}from"./liveblocks-CVGPqYnR.js";import{a as v}from"./sentry-vrLJXbkU.js";import{h as Vs,j as Ss,l as Ns,u as Ms,g as z,i as Te,N as c,n as Zs,o as t}from"./core-B4ZvHvvY.js";import{m as ws,u as zs,z as R,Z as Gs,a as $s,H as Ys,i as L,S as Ws,L as B,D as he,t as _,P as qs,c as X,l}from"./index-DgzG0i4n.js";import"./mui-DoY7WfR_.js";import{f as je}from"./analyticsHelper-B-IDLpaZ.js";import{t as Js}from"./getLocaleForTenant-C50EFRQ8.js";import"./recharts-DNFnaP_v.js";import"./lottie-B5aSI3Li.js";import"./analytics-BL0geQNn.js";import"./plaid-C1RHGEem.js";import"./dnd-B2_m6pRT.js";import"./stripe-DMRn4zHo.js";import"./lexical-DA5yMmPj.js";import"./pdf-ChIJqwGf.js";import"./utils-QMlevttK.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]="f01e063e-513c-43c7-97e6-6edc319e967c",i._sentryDebugIdIdentifier="sentry-dbid-f01e063e-513c-43c7-97e6-6edc319e967c")}catch{}})();const Ks={dashboard:()=>a(()=>import("./DashboardRoutes-B9_-_tPb.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20])),bills:()=>a(()=>import("./BillPayRoutes-CWbI-3lu.js"),__vite__mapDeps([21,1,2,3,4,5,6,7,22,14,23,9,10,24,25,17,18,26,15,13,27,28,29,30,20])),reimbursement:()=>a(()=>import("./ReimbursementRoutes--zV8t9-V.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,14,26,17,15,13,27,18,24,9,10,25,32,29,30,20])),transactions:()=>a(()=>import("./TransactionListRoutes-yuwwha-7.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,34,20])),settings:()=>a(()=>import("./SettingsRoutes-BZwjpejF.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,17,36,22,14,15,27,13,16,28,29,32,20])),reports:()=>a(()=>import("./ReportsRoutes-CRufLdv_.js"),__vite__mapDeps([37,1,2,3,4,5,6,7,14,18,10,24,13,17,20])),chargeCards:()=>a(()=>import("./ChargeCardRoutes-Bgdfn44a.js"),__vite__mapDeps([38,1,2,3,4,5,6,7,26,17,14,15,13,27,9,10,22,20])),people:()=>a(()=>import("./PeopleRoutes-5oajZHVV.js"),__vite__mapDeps([39,1,2,3,4,5,6,7,14,9,10,17,20])),expenseAutomation:()=>a(()=>import("./ExpenseAutomationRoutes-D8G_zp8f.js"),__vite__mapDeps([40,1,2,3,14,4,5,6,7,9,10,11,12,13,8,36,25,20])),treasury:()=>a(()=>import("./TreasuryRoutes-CY_-R9A0.js"),__vite__mapDeps([41,1,2,3,4,5,6,7,14,26,17,15,13,27,9,10,18,20])),vendors:()=>a(()=>import("./VendorsRoutes-k37ZPcgY.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,22,14,18,13,43,9,10,17,25,36,20])),zeniAccounts:()=>a(()=>import("./ZeniAccountRoutes-BYcGG-cX.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,14,26,17,15,13,27,18,23,22,9,10,34,20]))},Qs=["bills","transactions","settings","reimbursement","reports","chargeCards","people"],ee=i=>{"requestIdleCallback"in window?requestIdleCallback(i):setTimeout(i,100)},Xs=l(()=>a(()=>import("./ReportsRoutes-CRufLdv_.js"),__vite__mapDeps([37,1,2,3,4,5,6,7,14,18,10,24,13,17,20]))),ea=l(()=>a(()=>import("./AddressRoutes-D2Yn8dXr.js"),__vite__mapDeps([45,1,2,3,22,4,5,6,7,14,20]))),sa=l(()=>a(()=>import("./PeopleRoutes-5oajZHVV.js"),__vite__mapDeps([39,1,2,3,4,5,6,7,14,9,10,17,20]))),aa=l(()=>a(()=>import("./PandLWithForecastRoutes-BeER1eMP.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,14,18,9,10,13,17,20]))),na=l(()=>a(()=>import("./CustomerOnboardingRoutes-D-_60rGa.js"),__vite__mapDeps([47,1,2,3,22,4,5,6,7,14,48,49,50,51,52,12,20]))),ta=l(()=>a(()=>import("./VendorsRoutes-k37ZPcgY.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,22,14,18,13,43,9,10,17,25,36,20]))),ia=l(()=>a(()=>import("./TransactionDetailRoutes-CM3RR8SH.js"),__vite__mapDeps([53,1,2,3,14,4,5,6,7,11,9,10,12,13,20]))),Ue=l(()=>a(()=>import("./EntityDetailRoutes-CINCnbfR.js"),__vite__mapDeps([54,1,2,3,4,5,6,7,12,8,9,10,11,13,20]))),ra=l(()=>a(()=>import("./DashboardRoutes-B9_-_tPb.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]))),He=l(()=>a(()=>import("./BillPayRoutes-CWbI-3lu.js"),__vite__mapDeps([21,1,2,3,4,5,6,7,22,14,23,9,10,24,25,17,18,26,15,13,27,28,29,30,20]))),oa=l(()=>a(()=>import("./SettingsRoutes-BZwjpejF.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,17,36,22,14,15,27,13,16,28,29,32,20]))),Re=l(()=>a(()=>import("./ReimbursementRoutes--zV8t9-V.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,14,26,17,15,13,27,18,24,9,10,25,32,29,30,20]))),la=l(()=>a(()=>import("./ZeniAccountRoutes-BYcGG-cX.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,14,26,17,15,13,27,18,23,22,9,10,34,20]))),ca=l(()=>a(()=>import("./TreasuryRoutes-CY_-R9A0.js"),__vite__mapDeps([41,1,2,3,4,5,6,7,14,26,17,15,13,27,9,10,18,20]))),da=l(()=>a(()=>import("./TransactionListRoutes-yuwwha-7.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,34,20]))),ma=l(()=>a(()=>import("./ChargeCardRoutes-Bgdfn44a.js"),__vite__mapDeps([38,1,2,3,4,5,6,7,26,17,14,15,13,27,9,10,22,20]))),ua=l(()=>a(()=>import("./NotificationRoutes-CxWKZNsp.js"),__vite__mapDeps([55,1,2,3,14,4,5,6,7,9,10,20]))),_a=l(()=>a(()=>import("./PerformanceRoutes-D2L3CFvV.js"),__vite__mapDeps([56,1,2,3,14,4,5,6,7,9,10,17,20]))),Aa=l(()=>a(()=>import("./ExpenseAutomationRoutes-D8G_zp8f.js"),__vite__mapDeps([40,1,2,3,14,4,5,6,7,9,10,11,12,13,8,36,25,20]))),Ea=l(()=>a(()=>import("./RewardsRoutes-CJ6LAavD.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,14,19,9,10,17,20]))),pa=l(()=>a(()=>import("./TaskRoutes-DfQABQLR.js"),__vite__mapDeps([58,1,2,3,14,4,5,6,7,24,17,59,9,10,20]))),Ia=l(()=>a(()=>import("./AiCfoScreen-BR8PoUmU.js"),__vite__mapDeps([60,1,2,3,4,5,6,7,43,20]))),b=l(()=>a(()=>import("./NotFoundScreen-jPpbDlQd.js"),__vite__mapDeps([14,1,2,3,4,5,6,7,20]))),ga=l(()=>a(()=>import("./TaskListScreen-BpK-8QnW.js"),__vite__mapDeps([59,1,2,3,4,5,6,7,9,10,17,20])));function Za({setTenantEmailDomain:i}){const U=Vs(),V=Ss(),{tenantEmailDomain:o}=Ns(),S=ws().mode,{setLoading:f,clearAllLoading:O,clearLoading:Z}=zs(),y=R.getSignedInUserTenant(o)?.tenantId,h=R.getSignedInUser(),J=os(h),G=Ms(),[N,ye]=v.useState(!1),r=z(n=>ls(n)),{useFeatureGate:P}=Gs(),K=$s(),be=Ys(),{isFeatureEnabled:fe}=P(L.isExpenseAutomationEnabled),{isFeatureEnabled:Ce}=P(L.isExpenseAutomationEnabledV2),ve=Ce||fe&&J,{isFeatureEnabled:Oe}=P(L.isDepositAccountsFeatureEnabled),{isFeatureEnabled:Pe}=P(L.isTreasuryEnabled),{isFeatureEnabled:Fe}=P(L.isChargeCardFeatureEnabled),{isFeatureEnabled:se}=P(L.isDebitCardFeatureEnabled),j=z(n=>n.tenantState.fetchState),E=z(n=>n.tenantState.activeTenantFetchState.fetchState),u=E==="Completed"||j==="Completed"?cs(se,r):void 0,$=E==="Completed"||j==="Completed"?ds(r):void 0,Le=E==="Completed"||j==="Completed"?ms(r):void 0,Be=Fe||se||!!Le||!!$||!!u,{isFeatureEnabled:ke}=P(L.isSettingsFeatureEnabled),{isFeatureEnabled:Ve}=P(L.isAiCfoFileUploadEnabled),Y=z(n=>us(n));if(o!=null){const n=R.getSignedInUserTenant(o);h!=null&&n!=null&&je(h,r,S)}const w={tenantId:y,userId:h?.userId,sessionId:h?.zeniSessionId},ae=_s(),A=Ws(),Se=r.company==null||A?.loggedInUserRoleMap!=null&&Ae(A.loggedInUserRole),Ne=As(A?.loggedInUserRoleMap),ne=v.useRef(!0),te=Te("/:tenantEmailDomain/onboarding/*")!==null,Q=Te("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*"),Me=z(n=>w.tenantId!=null?Es(n,w.tenantId):void 0);v.useEffect(()=>{f(B.TENANT_FETCHING),i(o)},[o]),v.useEffect(()=>{if(Q!=null&&y!=null){const n=Q.params.selectedPeriod;if(n!=null){const H=n.split("-");if(H.length===2){const d=ps(Number(H[0])),s=Number(H[1]),m=Is(`01-${d<10?`0${d}`:d}-${s}`,he.getLocalizedStrings().dateFormat.analytics.DDDashMMDashYYYY),M=gs();m.isAfter(M,"month")===!1?U(xs(y,{month:d,year:s})):V("./month_end_close_checks/review")}}}},[Q,y]),v.useEffect(()=>{N||(ye(!0),f(B.TENANT_FETCHING)),ne.current?ne.current=!1:!Ts(ae,w)&&R.isSignedIn()&&(f(B.TENANT_FETCHING),function(n,H,d,s){if(pe(H?.userId,H?.zeniSessionId,n.tenantId),d(Bs(!0)),d(Ie(n.tenantId)),n.tenantId!=null&&_.clearTenant(n.tenantId),n.tenantId!=null){const m=R.getSignedInUserTenantWithId(n.tenantId);s&&he.updateAppLocaleID(Js(s)),m?.tenantEmailDomain!=null&&R.saveActiveTenantDomainForUser(m?.tenantEmailDomain)}n.userId!=null?X.identify(n.userId,{tenant_id:n.tenantId}):X.resetUserIdentity()}(w,h,U,Me))},[w,ae,h,U,R]),v.useEffect(()=>{R.isSignedIn()&&(f(B.TENANT_FETCHING),function(n,H,d,s,m,M,k){if(d==null&&s==null)return void console.warn("There is no current tenant selected!!");const W=s!=null&&m?.zeniSessionId!=null,ts=d==null||d.tenantId!==s,is=d!=null&&d.excludedResources==null,rs=d!=null&&d.externalConnections==null;if(W&&ts){k(Ie(s));const q=R.getSignedInUserTenantWithId(s);q?.tenantEmailDomain!=null&&R.saveActiveTenantDomainForUser(q?.tenantEmailDomain),pe(m?.userId,m?.zeniSessionId,s),_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),k(ge(m.userId,s))),_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),k(xe(m.userId,s)))}else W&&is&&_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),k(ge(m.userId,s))),W&&rs&&_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),k(xe(m.userId,s)));if(W){X.identify(m.userId,{tenant_id:s});const q=s==null||s!=null&&(H==="Completed"||H==="Error");n==="Completed"||H!=="Not-Started"&&H!=="Error"||s==null||!_.shouldFetchActiveTenant(s)||(_.markActiveTenantFetchStarted(s),M(B.TENANT_FETCHING),k(ks(m.userId,s,m.zeniSessionId))),q&&(n==="Not-Started"||n==="Error")&&_.shouldFetchAllTenants()&&(_.markAllTenantsFetchStarted(),k(Ee(m.userId,m.zeniSessionId)))}}(j,E,r,y,h,f,U))},[y,E]),v.useEffect(()=>{R.isSignedIn()&&j==="Completed"&&Y.tenantsBaseInOrder.length>0&&(Z(B.TENANT_FETCHING),R.saveSignedInUserTenants(hs(Y.tenantsBaseInOrder)),h!=null&&je(h,r,S,void 0,Y.tenantsBaseInOrder))},[Y,j,r,h]),v.useEffect(()=>{E==="In-Progress"&&f(B.TENANT_FETCHING),E!=="Completed"&&E!=="Error"||(E==="Completed"&&y!=null?(O(),_.markActiveTenantFetchCompleted(y)):E==="Error"&&y!=null&&(_.markActiveTenantFetchFailed(y),Z(B.TENANT_FETCHING),Z(B.TENANT_SWITCHING))),j!=="Completed"&&j!=="Error"||(j==="Completed"?_.markAllTenantsFetchCompleted():j==="Error"&&_.markAllTenantsFetchFailed())},[E,j,y,N]);const ie=v.useRef(!1);v.useEffect(()=>{!ie.current&&E==="Completed"&&N&&(ie.current=!0,function(n=Qs,H=3e3){setTimeout(()=>{const d=s=>{if(s>=n.length)return;const m=n[s],M=Ks[m];M!=null?M().then(()=>ee(()=>d(s+1))).catch(()=>ee(()=>d(s+1))):d(s+1)};ee(()=>d(0))},H)}())},[E,N]);const C=r?.userRole!=null&&js(r?.userRole),{isFeatureEnabled:Ze}=P(L.isReferralFeatureEnabled),we=r?.userRole!=null&&r.userRole.includes("charge_card_user"),ze=r?.userRole!=null&&r.userRole.includes("charge_card_admin"),F=r?.userRole!=null&&Ae(r.userRole),re=r?.company==null||r.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!C,oe=Be&&!C,Ge=Us(A?.loggedInUserRoleMap),$e=r.externalConnections?.accounting[0]?.isValid,le=r.company?.companyOnboardingInfo.isOnboardingCompleted,ce=r?.company==null||r.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!C,de=ce&&Hs(A?.loggedInUserRoleMap),me=Oe&&!C,Ye=r.company!=null&&Rs(r.company),We=Pe&&Ye===!0&&!C,qe=re&&Ds(A?.loggedInUserRoleMap),Je=oe&&ys(A?.loggedInUserRoleMap),Ke=me&&bs(A?.loggedInUserRoleMap),Qe=fs(A?.loggedInUserRoleMap),Xe=Cs(A?.loggedInUserRoleMap),p=vs(A?.loggedInUserRoleMap),I=Os(A?.loggedInUserRoleMap),g=Ps(A?.loggedInUserRoleMap),x=Fs(A?.loggedInUserRoleMap),T=Ls(A?.loggedInUserRoleMap),ue=re&&x,_e=ce&&T,es=me&&p,ss=We&&I,as=oe&&g,ns=r.excludedResources?.resources?.find(n=>n.resource==="/invites")!=null||Ne===!0||Ge===!0||Qe===!0||Xe===!0;return R.isSignedIn()?y==null?j==="Completed"?e.jsx(c,{to:"/",replace:!0,state:{...G.state,message:"...",origin:G.pathname}}):(h!=null&&j!=="In-Progress"&&U(Ee(h.userId,h.zeniSessionId)),null):E!=="In-Progress"&&E!=="Not-Started"||j==="Completed"?(le===!0||J&&!te)&&$e===!1&&u===!1&&$===!1?(i(void 0),e.jsx(c,{to:"/connection/auth",replace:!0})):!N||le!==!1||te||J?N&&r?.userRole&&u!=null&&$!=null&&o!=null&&Object.keys(A.loggedInUserRoleMap).length>0?e.jsx(Zs,{children:e.jsxs(t,{element:e.jsx(qs,{}),children:[e.jsx(t,{path:"/",element:e.jsx(xa,{isDashboardAccess:F,isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,isTenantCardsOnly:$})}),e.jsx(t,{path:"dashboard/*",element:F?e.jsx(ra,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reports/*",element:F?e.jsx(Xs,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"people/*",element:ns||F?e.jsx(sa,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"forecast/*",element:F?e.jsx(aa,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"onboarding/*",element:e.jsx(na,{})}),e.jsx(t,{path:"transaction/*",element:F&&C===!1||we||ze?e.jsx(ia,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"transactions/*",element:F&&C===!1?e.jsx(da,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"customer/*",element:F&&C===!1?e.jsx(Ue,{entityType:"customer"}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isTenantBankingOnly:u,isUserHasTreasuryAccess:I,tenantEmailDomain:o})}),e.jsx(t,{path:"vendor/*",element:F&&C===!1?e.jsx(Ue,{entityType:"vendor"}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"tasks",element:e.jsx(ga,{})}),e.jsx(t,{path:"tasks/*",element:e.jsx(pa,{})}),e.jsx(t,{path:"address/*",element:qe||de||Ke||Je?e.jsx(ea,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"checking/*",element:es?e.jsx(la,{}):e.jsx(b,{})}),e.jsx(t,{path:"treasury/*",element:ss?e.jsx(ca,{}):e.jsx(b,{})}),e.jsx(t,{path:"performance",element:be?e.jsx(_a,{}):e.jsx(De,{tenantEmailDomain:o})}),e.jsx(t,{path:"month_end_close_checks/review/*",element:ve&&C===!1?e.jsx(Aa,{}):e.jsx(De,{tenantEmailDomain:o})}),e.jsx(t,{path:"notifications/*",element:e.jsx(ua,{})}),e.jsx(t,{path:"vendors/*",element:Se?e.jsx(ta,{}):e.jsx(b,{})}),e.jsx(t,{path:"bill/*",element:ue?e.jsx(He,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"bills/*",element:ue?e.jsx(He,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursement/*",element:_e?e.jsx(Re,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursements/*",element:_e?e.jsx(Re,{}):e.jsx(D,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"settings/*",element:ke?e.jsx(oa,{hasAdminLevelAccess:de}):e.jsx(b,{})}),e.jsx(t,{path:"cards/*",element:as?e.jsx(ma,{}):e.jsx(b,{})}),e.jsx(t,{path:"rewards/*",element:Ze?e.jsx(Ea,{}):e.jsx(b,{})}),e.jsx(t,{path:"/ai-cfo",element:K?e.jsx(c,{to:"explore"}):e.jsx(b,{})}),e.jsx(t,{path:"/ai-cfo/",element:K?e.jsx(c,{to:"explore"}):e.jsx(b,{})}),e.jsx(t,{path:"/ai-cfo/:session_id",element:K?e.jsx(Ia,{isFileUploadEnabled:Ve}):e.jsx(b,{})}),e.jsx(t,{path:"*",element:e.jsx(b,{})})]})}):null:(i(void 0),e.jsx(c,{to:"onboarding",replace:!0})):null:(console.warn("User logged out!!"),i(void 0),e.jsx(c,{to:"/signin/auth",replace:!0,state:{...G.state,message:"...",origin:G.pathname}}))}const xa=({isDashboardAccess:i,isUserHasZeniAccountsAccess:U,isUserHasChargeCardAccess:V,isUserHasBillPayAccess:o,isUserHasReimbursementAccess:S,isUserHasTreasuryAccess:f,isTenantBankingOnly:O,isTenantCardsOnly:Z})=>O===!0&&U?e.jsx(c,{to:"checking"}):Z===!0?e.jsx(c,{to:"cards"}):i?e.jsx(c,{to:"dashboard"}):U?e.jsx(c,{to:"checking"}):f?e.jsx(c,{to:"treasury"}):V?e.jsx(c,{to:"cards"}):o?e.jsx(c,{to:"bills"}):S?e.jsx(c,{to:"reimbursements"}):e.jsx(c,{to:"dashboard"}),D=({isUserHasZeniAccountsAccess:i,isUserHasChargeCardAccess:U,isUserHasBillPayAccess:V,isUserHasReimbursementAccess:o,isUserHasTreasuryAccess:S,isTenantBankingOnly:f,tenantEmailDomain:O})=>f===!0||i?e.jsx(Ua,{tenantEmailDomain:O}):S?e.jsx(ja,{tenantEmailDomain:O}):U?e.jsx(Ha,{tenantEmailDomain:O}):V?e.jsx(ha,{tenantEmailDomain:O}):o?e.jsx(Ta,{tenantEmailDomain:O}):e.jsx(b,{}),Ta=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/reimbursements`}),ha=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/bills`}),ja=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/treasury`}),Ua=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/checking`}),Ha=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/cards`}),De=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/dashboard`});export{D as FallBackRoute,Za as default};
@@ -1,9 +0,0 @@
1
- import{j as s}from"./liveblocks-CVGPqYnR.js";import O from"./NotFoundScreen-jPpbDlQd.js";import{a as p}from"./sentry-vrLJXbkU.js";import{j as $,h as z,u as V,l as A,g as f,N as _,k as q,n as M,o as u}from"./core-B4ZvHvvY.js";import{F as R,z as D,q as w,s as W,c as j,e as H,cz as Q,h as X,ao as Z,p as J}from"./index-DgzG0i4n.js";import{eL as C,OU as G,Er as v,Ef as K,ET as Y,OV as B,OW as ee,Eb as ae,E8 as te,pl as se,p9 as ne,jG as oe,El as ie,OX as re,Ei as le,Ew as ce,Ev as de}from"./zeni-epic-state-Da4VO2lv.js";import{n as pe}from"./mui-DoY7WfR_.js";import{u as me}from"./useInitialThreadRequest-C88MW4km.js";import{M as ue}from"./MobileAppDrawer-eCdBXSxf.js";import ke from"./TaskListScreen-BpK-8QnW.js";import"./recharts-DNFnaP_v.js";import"./lottie-B5aSI3Li.js";import"./analytics-BL0geQNn.js";import"./plaid-C1RHGEem.js";import"./dnd-B2_m6pRT.js";import"./stripe-DMRn4zHo.js";import"./lexical-DA5yMmPj.js";import"./pdf-ChIJqwGf.js";import"./utils-QMlevttK.js";import"./useAskAiCfoHostNavButtonProps-DQFYXydp.js";import"./useFetchSuggestedQuestionsWhenReady-BMFUNkte.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]="0729b5bd-b3be-40d8-abd2-c519ba5205f9",e._sentryDebugIdIdentifier="sentry-dbid-0729b5bd-b3be-40d8-abd2-c519ba5205f9")}catch{}})();const fe=q(function(e,t){const{location:n,taskGroupId:l}=t,d=B(e,t.taskId),c=C(e),i=l!=null?ee(e.taskGroupState,l):void 0,m=D.getSignedInUser(),a=c.tenantId,r={userId:m?.userId??"",sessionId:m?.zeniSessionId??"",tenantId:a??""},k=G(e);return{taskDetailSelectorView:d,authParams:r,isNewClicked:n.state?.message==="comingFromTaskListPage",filesEndPoint:Z.fileMicroServiceBaseUrl,companyName:t.currentTenant.companyName,companyId:t.currentTenant.companyId,currentUrl:`${X.appUrl}${t.location.pathname}`,tagListView:k,taskGroupName:l!=null&&i!=null&&i.isDefault===!1?i.name:void 0}},function(e,t){const{taskId:n,navigate:l,currentTenant:d,location:c,taskGroupId:i}=t,{tenantEmailDomain:m}=d;return{onSaveChangesToLocalStore:a=>{e(de({taskDetailLocalData:a,taskId:n}))},onSaveDetailClick:()=>{e(ce(n,i))},onArchiveTaskClick:()=>{t.taskId!=null&&e(le(t.taskId))},onDismissClick:()=>{if(c.state?.message==="triggerBackClick"){const a=J(c.state?.pathnameStackToGoBack),r=a.poppedPathname??"../../dashboard";l(r,{state:{pathnameStackToGoBack:a.newStack}})}else{const a=L(m),r=w(c.state?.pathnameStackToGoBack,c.pathname);l(a,{state:{pathnameStackToGoBack:r}})}e(re({taskId:n}))},onDeleteTaskClick:()=>{e(ie(n))},updateFilesEntity:a=>{e(oe({files:a}))},onDeleteFile:a=>{e(ne(a))},onEditFileName:(a,r)=>{e(se(a,r.split(".")[0]))},onReloadTaskDetailPage:()=>{e(v(!1,n))},onCreateTagClick:a=>{e(te(a,n))},onDeleteTagClick:a=>{e(ae(a,n))}}})(Q);function I(){const e=$(),t=z(),n=V(),l=R(),{taskId:d,taskGroupId:c}=A(),i=f(o=>C(o)),m=me(i?.companyId),[a,r]=p.useState(!1),[k,F]=p.useState(!1),[S,P]=p.useState(!1),[b,U]=p.useState(!1),x=f(o=>G(o)),T=f(o=>o.taskGroupViewState.fetchState);p.useEffect(()=>{k||(F(!0),t(v(!1,d)))},[k,t]),p.useEffect(()=>{S||x.fetchState==="Completed"||(P(!0),t(K()))},[S,t,x.fetchState]),p.useEffect(()=>{b||T==="Completed"||(U(!0),t(Y()))},[b,t,T]);const y=f(o=>B(o,d)),g=y.fetchState,E=D.getSignedInUser();if(E==null)throw Error("Can't access task detail page without signing in...");if(g==="Error"&&y.error?.code===400){const{tenantEmailDomain:o}=i,h=L(o),N=w(n.state?.pathnameStackToGoBack,n.pathname);return s.jsx(_,{to:h,state:{pathnameStackToGoBack:N}})}return s.jsxs(s.Fragment,{children:[g==="Completed"?s.jsx(W,{analytics:j,onLoad:o=>(h=>h.trackPageLoaded(H.Event.taskDetailPage))(o)}):null,s.jsxs(ge,{children:[s.jsx(ue,{isAppContentDrawerOpen:a,handleDrawerToggle:o=>{r(o)}}),s.jsx(fe,{analytics:j,currentTenant:i,handleZeniLogoClick:()=>{l.toggle()},initialOpenThreadRequest:m,location:n,loggedInUser:E,navigate:e,taskGroupId:c,taskId:d,taskDetailFetchState:g})]})]})}const ge=pe.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
- `,L=e=>`/${e}/tasks`;function $e(){return s.jsxs(M,{children:[s.jsx(u,{path:"/new",element:s.jsx(I,{})}),s.jsx(u,{path:"/new/:taskGroupId",element:s.jsx(I,{})}),s.jsx(u,{path:"/group/:taskGroupId",element:s.jsx(ke,{})}),s.jsx(u,{path:"/:taskId",element:s.jsx(I,{})}),s.jsx(u,{path:"*",element:s.jsx(O,{})})]})}export{$e as default};
@@ -1 +0,0 @@
1
- import{j as t}from"./liveblocks-CVGPqYnR.js";import i from"./NotFoundScreen-jPpbDlQd.js";import{T as r}from"./TransactionDetailScreen-BCiX38jP.js";import"./sentry-vrLJXbkU.js";import{n as s,o}from"./core-B4ZvHvvY.js";import"./zeni-epic-state-Da4VO2lv.js";import"./recharts-DNFnaP_v.js";import"./index-DgzG0i4n.js";import"./mui-DoY7WfR_.js";import"./lottie-B5aSI3Li.js";import"./analytics-BL0geQNn.js";import"./plaid-C1RHGEem.js";import"./dnd-B2_m6pRT.js";import"./stripe-DMRn4zHo.js";import"./lexical-DA5yMmPj.js";import"./pdf-ChIJqwGf.js";import"./utils-QMlevttK.js";import"./useAskAiCfoHostNavButtonProps-DQFYXydp.js";import"./useFetchSuggestedQuestionsWhenReady-BMFUNkte.js";import"./decodeURIComponentSafe-CC7b77eX.js";import"./routePaths-WhbiYSxu.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]="004616b6-9a8d-4249-8f63-7ccdecb2e86b",e._sentryDebugIdIdentifier="sentry-dbid-004616b6-9a8d-4249-8f63-7ccdecb2e86b")}catch{}})();function q(){return t.jsxs(s,{children:[t.jsx(o,{path:"/:transactionTypeEncoded/:transactionId",element:t.jsx(r,{})}),t.jsx(o,{path:"/:transactionTypeEncoded/:transactionId/page-not-found",element:t.jsx(i,{})}),t.jsx(o,{path:"/:transactionTypeEncoded/:transactionId/vendor/create",element:t.jsx(r,{})}),t.jsx(o,{path:"/*",element:t.jsx(r,{})})]})}export{q as default};
@@ -1,12 +0,0 @@
1
- import{j as o}from"./liveblocks-CVGPqYnR.js";import{a as f}from"./sentry-vrLJXbkU.js";import{q as u,h,g as y,N as I}from"./core-B4ZvHvvY.js";import{If as b,eM as w,yA as x}from"./zeni-epic-state-Da4VO2lv.js";import{z as l,B as j,C as S,E}from"./index-DgzG0i4n.js";import{n as c}from"./mui-DoY7WfR_.js";import"./recharts-DNFnaP_v.js";import"./lottie-B5aSI3Li.js";import"./analytics-BL0geQNn.js";import"./plaid-C1RHGEem.js";import"./dnd-B2_m6pRT.js";import"./stripe-DMRn4zHo.js";import"./lexical-DA5yMmPj.js";import"./pdf-ChIJqwGf.js";import"./utils-QMlevttK.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]="667a627d-5bf5-43a7-a8c5-389cf7f18374",e._sentryDebugIdIdentifier="sentry-dbid-667a627d-5bf5-43a7-a8c5-389cf7f18374")}catch{}})();const W=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",g=e.get("profileId")??"",[n,p]=f.useState(!1),a=h(),i=y(m=>b(m)),r=l.getSignedInUser(),d=l.getSignedInUserTenantWithId(s);if(r==null||d==null)return o.jsx(I,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return w(r.userId,r.zeniSessionId,d?.tenantId),f.useEffect(()=>{n||(p(!0),a(x(t,g,s)))},[n,a]),i.fetchState==="Error"?o.jsx(D,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(j,{fetchState:"In-Progress"}))},D=c.div`
2
- display: flex;
3
- width: 100%;
4
- height: 100vh;
5
- flex-direction: row;
6
- justify-content: center;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey5};
9
- `,_=c(E.LargeRegular)`
10
- display: flex;
11
- color: ${S.important};
12
- `;export{W as default};
@@ -1 +0,0 @@
1
- import{k as n}from"./index-DgzG0i4n.js";import"./mui-DoY7WfR_.js";import"./sentry-vrLJXbkU.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]="5969cfb6-0059-434c-be70-f7becd85f8ad",e._sentryDebugIdIdentifier="sentry-dbid-5969cfb6-0059-434c-be70-f7becd85f8ad")}catch{}})();function d(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{d as t};
@@ -1 +0,0 @@
1
- import{a as b}from"./sentry-vrLJXbkU.js";import{K as c,a as p,q as m,Q as u}from"./index-DgzG0i4n.js";import"./mui-DoY7WfR_.js";import{b as y}from"./useFetchSuggestedQuestionsWhenReady-BMFUNkte.js";import{j as k,u as g,l as h}from"./core-B4ZvHvvY.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]="bd76018d-389e-4804-bd41-5a2a28b3c902",e._sentryDebugIdIdentifier="sentry-dbid-bd76018d-389e-4804-bd41-5a2a28b3c902")}catch{}})();function E(e){const{isAiCfoOpen:a,setIsAiCfoOpen:t,mobileExploreReferrer:n}=e,r=k(),o=g(),{tenantEmailDomain:s}=h(),f=c(),i=u(f),d=p();return{isAiCfoAccessEnabled:y()&&d&&!a,onAskAiCfoClick:b.useCallback(()=>{if(s!=null)if(i){const l=m(o.state?.pathnameStackToGoBack,o.pathname);r(`/${s}/ai-cfo/explore`,{state:{pathnameStackToGoBack:l,referrer:n}})}else t(!0)},[i,o.pathname,o.state,n,r,t,s])}}export{E as u};
@@ -1 +0,0 @@
1
- import{a as c}from"./sentry-vrLJXbkU.js";import{h as i,s as d}from"./core-B4ZvHvvY.js";import{Z as y,i as h,a as g,_ as m,M as C}from"./index-DgzG0i4n.js";import"./mui-DoY7WfR_.js";import{eI as l,hk as p}from"./zeni-epic-state-Da4VO2lv.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]="b3da63d4-b04a-4528-a9bd-ec6204c519d5",e._sentryDebugIdIdentifier="sentry-dbid-b3da63d4-b04a-4528-a9bd-ec6204c519d5")}catch{}})();function I(){const{useFeatureGate:e}=y(),{isFeatureEnabled:t}=e(h.isAiCfoNavButtonEnabled),n=g();return t&&n}function b(e,t){return e!=="Completed"&&e!=="In-Progress"&&!(e==="Error"&&!t)}function x(e){const{areTenantIdsInSync:t}=C(),n=g(),a=I();return t&&e&&a&&n}function _(e){const{pageContexts:t,canFetchSuggestedQuestions:n}=e,a=i(),s=d(),o=c.useRef(null);c.useEffect(()=>{const r=o.current===!1&&n===!0;if(o.current=n,n&&t!=null&&t.length!==0)for(const u of t){const f=l(s.getState(),u)?.fetchState;b(f,r)&&a(p({pageContext:u}))}},[n,a,t,s])}function S(e){(function(t){const{pageContext:n,canFetchSuggestedQuestions:a}=t,s=i(),o=d(),r=c.useRef(null);c.useEffect(()=>{const u=r.current===!1&&a===!0;if(r.current=a,n==null||!a)return;const f=l(o.getState(),n)?.fetchState;b(f,u)&&s(p({pageContext:n}))},[a,s,n,o])})({canFetchSuggestedQuestions:x(e.isDataReady),pageContext:e.pageContext})}function Q(e){S({pageContext:m(),isDataReady:e.isDataReady})}export{_ as a,I as b,Q as c,x as u};