@zeniai/web-app-ui 5.1.50-qa → 5.1.51-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/dist/assets/AddressRoutes-Ce-3Jhw7.js +1 -0
  2. package/dist/assets/AddressScreen-BUUFD2sw.js +9 -0
  3. package/dist/assets/{AiCfoScreen-CU17MHVZ.js → AiCfoScreen-BNnlPT55.js} +1 -1
  4. package/dist/assets/{BillPayApprovalRoutes-DI3GeN36.js → BillPayApprovalRoutes-CInNrMhS.js} +1 -1
  5. package/dist/assets/{BillPayRoutes-P7Y6TLRl.js → BillPayRoutes-DRVXy7kE.js} +1 -1
  6. package/dist/assets/{BusinessVerificationPageScreen-B6nnpXHm.js → BusinessVerificationPageScreen-Cz8yHsjg.js} +2 -2
  7. package/dist/assets/{CardsAiCfoScreen-C86bVfoq.js → CardsAiCfoScreen-CaiLWTLU.js} +1 -1
  8. package/dist/assets/{ChargeCardRoutes-B7sSoo6a.js → ChargeCardRoutes-BneUma9C.js} +8 -8
  9. package/dist/assets/CompanyPassportScreen-DWoq6mXR.js +1 -0
  10. package/dist/assets/ConnectionAuthScreen-CT8-mjmO.js +11 -0
  11. package/dist/assets/CustomerOnboardingAuthScreen-Bvb-H6kB.js +1 -0
  12. package/dist/assets/{CustomerOnboardingRoutes-p6Uk3iSA.js → CustomerOnboardingRoutes-evT_peP3.js} +5 -5
  13. package/dist/assets/{DashboardRoutes-DNmUL7Mt.js → DashboardRoutes-BWyE-0Hc.js} +1 -1
  14. package/dist/assets/{DefaultTenantHome-CArToClw.js → DefaultTenantHome-DHX37VDX.js} +1 -1
  15. package/dist/assets/{DomesticWireDetailScreen-Du8m5leq.js → DomesticWireDetailScreen-CiuugoEE.js} +4 -4
  16. package/dist/assets/DrawerScreen-DzI09EaZ.js +1 -0
  17. package/dist/assets/EntityDetailRoutes-C5vKBtdx.js +1 -0
  18. package/dist/assets/{ExpenseAutomationRoutes-c8htRkth.js → ExpenseAutomationRoutes-QRseaMBK.js} +3 -3
  19. package/dist/assets/FeaturePreviewScreen-LQn2_3HO.js +1 -0
  20. package/dist/assets/{HubSpotOAuthCallbackScreen-Bz7yvuoV.js → HubSpotOAuthCallbackScreen-BeylWL-h.js} +1 -1
  21. package/dist/assets/MagicLinkRoutes-BSczbLrK.js +72 -0
  22. package/dist/assets/{MagicLinkSignInScreen-B6HjyZXP.js → MagicLinkSignInScreen-Dd8yoUFv.js} +1 -1
  23. package/dist/assets/{MobileAppDrawer-Di4Asbvj.js → MobileAppDrawer-Dos6aPiF.js} +1 -1
  24. package/dist/assets/NotFoundScreen-DhKhgQXf.js +1 -0
  25. package/dist/assets/{NotificationRoutes-D30uoziM.js → NotificationRoutes-Di4tIjQV.js} +1 -1
  26. package/dist/assets/OAuthConsentScreen-BAC_yIQg.js +1 -0
  27. package/dist/assets/{PandLWithForecastRoutes-BNImskJm.js → PandLWithForecastRoutes-C8hCBik3.js} +1 -1
  28. package/dist/assets/{PeopleRoutes-iIMj8eLi.js → PeopleRoutes-9gxadS-C.js} +1 -1
  29. package/dist/assets/PerformanceRoutes-CATOeT7z.js +1 -0
  30. package/dist/assets/{Preview-CKm-UT5u.js → Preview-OiplHjn8.js} +1 -1
  31. package/dist/assets/{QBOConnectionScreen-BRLzEkDk.js → QBOConnectionScreen-D9SI3hOs.js} +1 -1
  32. package/dist/assets/ReferralListScreen-CYFKfVX3.js +5 -0
  33. package/dist/assets/{ReimbursementApprovalRoutes-f5ArhwXZ.js → ReimbursementApprovalRoutes-BzPo26FL.js} +1 -1
  34. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-T0juC1PH.js → ReimbursementApprovalRuleDetailScreen-Dq4iE7Qu.js} +1 -1
  35. package/dist/assets/{ReimbursementRoutes-BSjsp3vu.js → ReimbursementRoutes-DQ5VSfjH.js} +5 -5
  36. package/dist/assets/{ReportsRoutes-DCLcYlo7.js → ReportsRoutes-Bx4klC09.js} +1 -1
  37. package/dist/assets/RewardsRoutes-Cd5tFxOd.js +1 -0
  38. package/dist/assets/{ScreenRoutes-DdzWD1U9.js → ScreenRoutes-BRlfVBVN.js} +2 -2
  39. package/dist/assets/{SettingsRoutes-XvLWREEF.js → SettingsRoutes-Cl1dDHc6.js} +1 -1
  40. package/dist/assets/{SetupPagesScreen-BHoPLick.js → SetupPagesScreen-CV2uB6tM.js} +5 -5
  41. package/dist/assets/SignInScreen-BovmFV_F.js +1 -0
  42. package/dist/assets/SignOutScreen-BG35SYwp.js +9 -0
  43. package/dist/assets/TaskListScreen-D3R7s1AA.js +9 -0
  44. package/dist/assets/{TaskRoutes-Cl6WmGjc.js → TaskRoutes-B4YKOfNB.js} +2 -2
  45. package/dist/assets/{TransactionDetailRoutes-DG6Ytg87.js → TransactionDetailRoutes-DYnfzuyZ.js} +1 -1
  46. package/dist/assets/{TransactionDetailScreen-wFSRY2vY.js → TransactionDetailScreen-DCUgWZCw.js} +1 -1
  47. package/dist/assets/{TransactionListRoutes-CwzK16MP.js → TransactionListRoutes-D69NliNs.js} +1 -1
  48. package/dist/assets/{TreasuryRoutes-B9PQeIn4.js → TreasuryRoutes-D9fs3Ecf.js} +6 -6
  49. package/dist/assets/{VendorsRoutes-CWH9LrHd.js → VendorsRoutes-B5vPHlE6.js} +10 -10
  50. package/dist/assets/WiseConfirmationScreen-BXGKMLxP.js +12 -0
  51. package/dist/assets/{ZeniAccountRoutes-Du2IGRi6.js → ZeniAccountRoutes-FlMIOWJK.js} +11 -11
  52. package/dist/assets/ZeniAccountStatementScreen-BM5LaChl.js +9 -0
  53. package/dist/assets/{accountMappingHelper-D75TOEDA.js → accountMappingHelper-DDqSB3xQ.js} +1 -1
  54. package/dist/assets/{analytics-CkXhIYGA.js → analytics-DoyQ8ezf.js} +1 -1
  55. package/dist/assets/{analyticsHelper-BTLx1JWo.js → analyticsHelper-DvY5NpaM.js} +1 -1
  56. package/dist/assets/{core-B5TeChD4.js → core-CQnSJ9vO.js} +1 -1
  57. package/dist/assets/{decodeURIComponentSafe-DXB7OyA3.js → decodeURIComponentSafe-BprI0TcI.js} +1 -1
  58. package/dist/assets/{dnd-CWnSyq9-.js → dnd-DoHm848q.js} +1 -1
  59. package/dist/assets/{empty-r-IKwqcp.js → empty-BZMPWXIo.js} +1 -1
  60. package/dist/assets/{empty-D1f-cCDu.js → empty-DjW_4H8B.js} +1 -1
  61. package/dist/assets/{emptyVideoElement-B8V1wuPO.js → emptyVideoElement-CD9clJu_.js} +1 -1
  62. package/dist/assets/{epic-DuAKKq3W.js → epic-2G17lmbK.js} +1 -1
  63. package/dist/assets/{getLocaleForTenant-yKPZZnim.js → getLocaleForTenant-Cwvzl8db.js} +1 -1
  64. package/dist/assets/{index-B0QsCXA7.js → index-B6GtF9yZ.js} +2 -2
  65. package/dist/assets/{index-CGTF1rlJ.js → index-BtlQ6O6E.js} +1 -1
  66. package/dist/assets/{index-DDl-KBgR.js → index-C6MtcitK.js} +1 -1
  67. package/dist/assets/{index-C_NwT3-k.js → index-CF7DasjB.js} +1 -1
  68. package/dist/assets/{index-DLvmOqpd.js → index-CKi6vsOO.js} +14061 -13986
  69. package/dist/assets/{index-BfRRBBMI.js → index-Ci7GqulV.js} +1 -1
  70. package/dist/assets/{index-R3BgB7Uo.js → index-DgHQU_66.js} +1 -1
  71. package/dist/assets/{index-Kq1a616O.js → index-KsPtT3xm.js} +1 -1
  72. package/dist/assets/{lexical-D7c0ykAW.js → lexical-WXHH1XHj.js} +1 -1
  73. package/dist/assets/{liveblocks-C-n95g0A.js → liveblocks-DvKPzrwo.js} +1 -1
  74. package/dist/assets/{lottie-zNHYqEBz.js → lottie-DNsrs-P3.js} +1 -1
  75. package/dist/assets/{mui-Da8iY16Z.js → mui-sKCdI-e6.js} +1 -1
  76. package/dist/assets/{pathToGoBack-nrN7wX5B.js → pathToGoBack-DDBtlyQ4.js} +1 -1
  77. package/dist/assets/{pdf-BM7gJkYi.js → pdf-iXI4qQyj.js} +4 -4
  78. package/dist/assets/{pdf-lib-BVCnHm-C.js → pdf-lib-C9eLuUx2.js} +1 -1
  79. package/dist/assets/{plaid-kqYG7b9d.js → plaid-BOu_8LCE.js} +1 -1
  80. package/dist/assets/{pusher-CLZoiBO8.js → pusher-BxMucY8d.js} +1 -1
  81. package/dist/assets/{react-BggCpRGR.js → react-BY08R1tD.js} +1 -1
  82. package/dist/assets/{react-B40ow9gH.js → react-BfWAIeRe.js} +1 -1
  83. package/dist/assets/{react-CbGrXN5I.js → react-Bfv7BUzV.js} +1 -1
  84. package/dist/assets/{react-zGBF6iFI.js → react-CHbhfie6.js} +1 -1
  85. package/dist/assets/{react-C3y2xvic.js → react-DVBLaOmV.js} +1 -1
  86. package/dist/assets/{react-C-sHFsWu.js → react-DW2tK8z_.js} +1 -1
  87. package/dist/assets/{recharts--v-RQjOV.js → recharts-Cv5d-Vxs.js} +1 -1
  88. package/dist/assets/{routePaths-2w3X-cgQ.js → routePaths-DnD95y3h.js} +1 -1
  89. package/dist/assets/{sentry-lku8kjDH.js → sentry-Be8twC83.js} +1 -1
  90. package/dist/assets/{url-CRmtHtjd.js → url-AlENSCVt.js} +1 -1
  91. package/dist/assets/{url-ByXYagPi.js → url-CuDHWvgT.js} +1 -1
  92. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-B3aexdxF.js → useAiCfoDashboardSuggestedQuestionsChips-CjSpjUTS.js} +1 -1
  93. package/dist/assets/useAskAiCfoHostNavButtonProps-vLqybwHr.js +1 -0
  94. package/dist/assets/useCashManagementBanner-CrBaeOUK.js +1 -0
  95. package/dist/assets/{useDeviceId-bV7jqaoy.js → useDeviceId-KC-rY1dP.js} +1 -1
  96. package/dist/assets/{useInitialThreadRequest-CzZzqfSl.js → useInitialThreadRequest-BqamPVgS.js} +1 -1
  97. package/dist/assets/{utils-Dw1Jg_v9.js → utils-BcJ2NV01.js} +1 -1
  98. package/dist/assets/{withTransactionSidePanel-Cey9nHHc.js → withTransactionSidePanel-Ak3Soyd6.js} +4 -4
  99. package/dist/assets/{zeni-epic-state-BzDw8pi_.js → zeni-epic-state-DKeO4Z0C.js} +3 -3
  100. package/dist/index.html +1 -1
  101. package/package.json +2 -2
  102. package/dist/assets/AddressRoutes-g9hsklrH.js +0 -1
  103. package/dist/assets/AddressScreen-CROQK-4n.js +0 -9
  104. package/dist/assets/CompanyPassportScreen-Cgus-IIN.js +0 -1
  105. package/dist/assets/ConnectionAuthScreen-BQrFf5wV.js +0 -11
  106. package/dist/assets/CustomerOnboardingAuthScreen-DPNE702o.js +0 -1
  107. package/dist/assets/DrawerScreen-m2dilTdj.js +0 -1
  108. package/dist/assets/EntityDetailRoutes-BR5FqZ6H.js +0 -1
  109. package/dist/assets/FeaturePreviewScreen-BN_uvK-S.js +0 -1
  110. package/dist/assets/MagicLinkRoutes-DAvXqhJs.js +0 -72
  111. package/dist/assets/NotFoundScreen-C6d7g4SD.js +0 -1
  112. package/dist/assets/OAuthConsentScreen-ChiMp_o9.js +0 -1
  113. package/dist/assets/PerformanceRoutes-Di1aWI-4.js +0 -1
  114. package/dist/assets/ReferralListScreen-qJwU61pa.js +0 -5
  115. package/dist/assets/RewardsRoutes-22WA6TT7.js +0 -1
  116. package/dist/assets/SignInScreen-CNtwWkn8.js +0 -1
  117. package/dist/assets/SignOutScreen-BvFuH3BL.js +0 -9
  118. package/dist/assets/TaskListScreen-CaQaxe3c.js +0 -9
  119. package/dist/assets/WiseConfirmationScreen-2rmdb0s6.js +0 -12
  120. package/dist/assets/ZeniAccountStatementScreen-C6xjVyVS.js +0 -9
  121. package/dist/assets/useAskAiCfoHostNavButtonProps-CKXnZIoK.js +0 -1
  122. package/dist/assets/useCashManagementBanner-H0sv1SAg.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-DLvmOqpd.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-lku8kjDH.js"><link rel="modulepreload" crossorigin href="/assets/core-B5TeChD4.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-BzDw8pi_.js"><link rel="modulepreload" crossorigin href="/assets/mui-Da8iY16Z.js"><link rel="modulepreload" crossorigin href="/assets/analytics-CkXhIYGA.js"><link rel="modulepreload" crossorigin href="/assets/utils-Dw1Jg_v9.js"><link rel="stylesheet" crossorigin href="/assets/index-BUmr5maU.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-CKi6vsOO.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-Be8twC83.js"><link rel="modulepreload" crossorigin href="/assets/core-CQnSJ9vO.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-DKeO4Z0C.js"><link rel="modulepreload" crossorigin href="/assets/mui-sKCdI-e6.js"><link rel="modulepreload" crossorigin href="/assets/analytics-DoyQ8ezf.js"><link rel="modulepreload" crossorigin href="/assets/utils-BcJ2NV01.js"><link rel="stylesheet" crossorigin href="/assets/index-BUmr5maU.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.1.50-qa",
3
+ "version": "5.1.51-dev",
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.21",
31
31
  "@zeniai/client-epic-state": "5.0.99",
32
- "@zeniai/web-components": "4.1.69",
32
+ "@zeniai/web-components": "4.1.70",
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-C-n95g0A.js";import{A as d}from"./AddressScreen-CROQK-4n.js";import i from"./NotFoundScreen-C6d7g4SD.js";import"./sentry-lku8kjDH.js";import{o as s,p as r}from"./core-B5TeChD4.js";import"./zeni-epic-state-BzDw8pi_.js";import"./recharts--v-RQjOV.js";import"./index-DLvmOqpd.js";import"./mui-Da8iY16Z.js";import"./analytics-CkXhIYGA.js";import"./plaid-kqYG7b9d.js";import"./dnd-CWnSyq9-.js";import"./stripe-DMRn4zHo.js";import"./lottie-zNHYqEBz.js";import"./lexical-D7c0ykAW.js";import"./pdf-BM7gJkYi.js";import"./utils-Dw1Jg_v9.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]="cd0ff2b4-1e27-4329-addf-f475e5a9db34",t._sentryDebugIdIdentifier="sentry-dbid-cd0ff2b4-1e27-4329-addf-f475e5a9db34")}catch{}})();function _(){return e.jsxs(s,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(d,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(d,{})}),e.jsx(r,{path:"*",element:e.jsx(i,{})})]})}export{_ as default};
@@ -1,9 +0,0 @@
1
- import{j as r}from"./liveblocks-C-n95g0A.js";import{a as h}from"./sentry-lku8kjDH.js";import{h as T,u as _,g as j,i as M,j as E,n as B}from"./core-B5TeChD4.js";import{K as $,m as D,z as K,j as L,B as R,w as z,c as C,g as S,n as F,i as b,p as N}from"./index-DLvmOqpd.js";import{Ml as w,hP as U,eW as G,Mm as O,c7 as V,Mn as q,l8 as H}from"./zeni-epic-state-BzDw8pi_.js";import{n as W}from"./mui-Da8iY16Z.js";import J from"./NotFoundScreen-C6d7g4SD.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]="e899dd04-fda3-443e-9e7f-413473ec5824",e._sentryDebugIdIdentifier="sentry-dbid-e899dd04-fda3-443e-9e7f-413473ec5824")}catch{}})();const Q=W.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=B(function(e,t){const{addressId:o,isSubPage:i,addressType:c}=t,l=G(e),a=t.roleMap!=null&&O(t.roleMap),d=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:d,isSubPage:i,dontShowSaveConfirmationPopup:t.dontShowSaveConfirmation}}const n=w(e,o);return{addressToEdit:n.address,loadingState:n.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:d}},function(e,t){const{navigate:o,location:i,addressType:c}=t,l=a=>{if(a==="express-pay")o("../express-pay/add-wire");else{const d=i.state,n=N(d?.pathnameStackToGoBack);let s=n.poppedPathname??I();const u=d?.queryParams;if(u){const g=new URLSearchParams(u).toString();g&&(s=`${s}?${g}`)}o(s,{state:{pathnameStackToGoBack:n.newStack}})}};return{onSubmitHandler:a=>{const d=Y(a);e(H({addressType:c,addressToCreate:d})),C?.trackSaveAddressClicked(S.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 re({isSubPage:e,hideAddressSubTitle:t=!1,hideAddressBackButton:o=!1,dontShowSaveConfirmation:i,accountContext:c,addressTypeParam:l}){const a=T(),d=_(),n=j(),{addressId:s,addressType:u}=M(),g=$(),k=D(),v=K.getSignedInUser(),[f,x]=h.useState(s==null),p=E(m=>s!=null?w(m,s).fetchState:"Not-Started"),A=L();if(v==null)throw Error("Can't access address page without signing in...");const P=m=>m.trackPageLoaded(s!=null?S.Event.editAddress:S.Event.addAddress),y=l??u;return h.useEffect(()=>{f||s==null||(x(!0),d(U(s,!1)))},[f,s,d]),y==null||y.match(/(user_address|company_address|company_registered_address|vendor_address|officer_([1-9]|10)_address)$/g)?!f&&p==="Not-Started"||f&&p==="In-Progress"?r.jsx(R,{fetchState:p,style:{backgroundColor:k.colors.grey5}}):s!=null&&p==="Error"?(a(`${I(1)}/new`,{replace:!0}),r.jsx(r.Fragment,{})):r.jsxs(r.Fragment,{children:[r.jsx(z,{analytics:C,onLoad:P}),r.jsx(Q,{windowSize:g,children:r.jsx(X,{location:n,navigate:a,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:t,addressId:s,addressType:y,dontShowSaveConfirmation:i,bankAccountContext:c,roleMap:A?.loggedInUserRoleMap})})]}):r.jsx(J,{})}const I=(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{re as A,Y as t};
@@ -1 +0,0 @@
1
- import{j as m}from"./liveblocks-C-n95g0A.js";import{a as g}from"./sentry-lku8kjDH.js";import{h as w,u as x,g as T,i as k,j as S,n as E}from"./core-B5TeChD4.js";import{z as C,b9 as P,w as F,c as V,g as L,af as b,ba as j,at as A,au as U,r as B}from"./index-DLvmOqpd.js";import{eW as D,gi as M,tp as _,gd as z,c7 as R,OP as G,bn as Y,ry as H,rm as Q,l0 as W,mB as O,OQ as Z,bE as $,cz as N,mL as q,mO as J}from"./zeni-epic-state-BzDw8pi_.js";import"./mui-Da8iY16Z.js";import{d as K}from"./routePaths-2w3X-cgQ.js";import{M as X}from"./MobileAppDrawer-Di4Asbvj.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new n.Error().stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="3a4b5655-73c4-47a5-ba3b-84f800940d6c",n._sentryDebugIdIdentifier="sentry-dbid-3a4b5655-73c4-47a5-ba3b-84f800940d6c")}catch{}})();const ee=E(function(n){const t=z(n),i=C.getSignedInUser(),p=D(n),c=p.tenantId,l={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=R(p?.userRole??[])&&t.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=G(n.companyConfigState),a=n.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:t.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:t,allIndustries:e.companyIndustries??[],allNationalityCountries:a,isDisabled:f,authParams:l,filesEndPoint:`${A.fileMicroServiceBaseUrl}`,isZeniUser:Y(i)}},function(n,t){const{companyId:i,currentTenant:p,navigate:c,location:l}=t,{tenantEmailDomain:f}=p;return{onScheduleClick:e=>{let a=e.href;a.includes("http")||(a="https://".concat(a)),window.open(a,"_blank")},onSaveAll:()=>{n(J())},onAddressClick:e=>{const a=K(f,e),o=B(l.state?.pathnameStackToGoBack,l.pathname);c(a,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{n(q({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:a,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=a,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:h}=r,v={companyInfo:{...a,website:u!=""&&u!=null?N(u):void 0,meetingLink:y!=""&&y!=null?N(y):void 0,industry:a.industry.selectedOption,companyIndustryType:a.companyIndustryType?.selectedOption??void 0,companySubIndustry:a.companySubIndustry?.selectedOption??void 0,businessModel:a.businessModel.selectedOption??"",companySourceOfFunds:a.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:a.companySourceOfFundsDescription??void 0,countriesOfOperations:a.countriesOfOperations?.selectedOptions?.map(I=>I.length===2?I:U(I))??[],transactionVolume:a.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:a.transactionVolumeDescription??void 0,regulatedStatus:a.regulatedStatus??void 0,regulatedStatusDescription:a.regulatedStatusDescription??void 0,usNexus:a.usNexus??void 0,usNexusTypes:a.usNexusTypes?.selectedOptions??[],purposeOfAccount:a.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:a.purposeOfAccountDescription??void 0},incInfo:{typeOfInc:o.typeOfInc.selectedOption??"",stateOfInc:o.stateOfInc.selectedOption??"",incDate:s!=null?$(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:h.selectedOptions.map(I=>parseInt(I)),fileId:r.fileIds[0]}};n(O({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{n(O({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{n(O({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:void 0}]}))},onNewCompanyOfficerRemoved:e=>{n(Z(e))},onCompanyOfficerUpdated:e=>{n(O({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:e.userId}]}))},updateFilesEntity:e=>{n(W({files:e}))},onDeleteFile:e=>{n(Q(e))},onEditFileName:(e,a)=>{n(H(e,a.split(".")[0]))}}})(j);function de(){const n=w(),t=x(),i=T(),{tenantEmailDomain:p}=k(),[c,l]=g.useState(!1),[f,e]=g.useState(!1),a=S(s=>s.companyViewState.passportView.fetchState),o=S(s=>s.companyConfigState.fetchState),r=S(s=>D(s)),d=r.companyId??C.getSignedInUserTenant(p)?.companyId;if(C.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect(()=>{c||a!=="Not-Started"||d==null||(l(!0),t(M(d)))},[c,a,d,t]),g.useEffect(()=>{o==="Not-Started"&&t(_())},[o,t]);const u=s=>{e(s)},y=a==="Not-Started"||a==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&a==="Error"?m.jsx(P,{onGoHome:()=>n("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(F,{analytics:V,onLoad:s=>s.trackPageLoaded(L.Event.companyPassport,b(i)?"Settings":"Company Passport")}),b(i)?m.jsx(X,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:n,location:i,isLoading:y,currentTenant:r,isSettings:b(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
@@ -1,11 +0,0 @@
1
- import{j as C}from"./liveblocks-C-n95g0A.js";import{a}from"./sentry-lku8kjDH.js";import{u as S,g as w,j as c,N as v}from"./core-B5TeChD4.js";import{Lw as A,eW as L,fE as O,o5 as _,gr as h,fD as j,fa as U,LD as F}from"./zeni-epic-state-BzDw8pi_.js";import{u as $,z as m,L as g,D as k,d as H}from"./index-DLvmOqpd.js";import{n as z}from"./mui-Da8iY16Z.js";import{t as R}from"./getLocaleForTenant-yKPZZnim.js";import{g as P,Q as G}from"./QBOConnectionScreen-BRLzEkDk.js";import"./recharts--v-RQjOV.js";import"./analytics-CkXhIYGA.js";import"./plaid-kqYG7b9d.js";import"./dnd-CWnSyq9-.js";import"./stripe-DMRn4zHo.js";import"./lottie-zNHYqEBz.js";import"./lexical-D7c0ykAW.js";import"./pdf-BM7gJkYi.js";import"./utils-Dw1Jg_v9.js";import"./empty-D1f-cCDu.js";import"./pdf-lib-BVCnHm-C.js";import"./index-CGTF1rlJ.js";import"./url-ByXYagPi.js";import"./index-R3BgB7Uo.js";import"./decodeURIComponentSafe-DXB7OyA3.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="629b49ce-d030-4eac-9d15-47ce99ee8885",t._sentryDebugIdIdentifier="sentry-dbid-629b49ce-d030-4eac-9d15-47ce99ee8885")}catch{}})();const Q=z.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 ${H.sp1} ${t.theme.colors.dropShadowNormal}`};
11
- `;function pe(){const t=S(),i=w(),{setLoading:d,clearAllLoading:x}=$(),p=a.useRef(!1),f=a.useRef(!1),{code:b,realmId:T,state:y}=P(i.search),D=b!==""&&T!==""&&y!=="",I=c(l=>A(l)),e=c(l=>L(l)),n=c(l=>l.tenantState.fetchState),r=c(l=>l.tenantState.activeTenantFetchState.fetchState),o=m.getSignedInUser(),u=m.getActiveTenantForUser()?.tenantId,s=e?.externalConnections?.fetchState,E=e?.externalConnections?.saveConnectionState,N=e.externalConnections?.accounting[0]?.isValid;return a.useLayoutEffect(()=>{d(g.CONNECTION_AUTH)},[d]),a.useEffect(()=>{p.current||o==null||u==null||(p.current=!0,n==="Completed"||r!=="Not-Started"&&r!=="Error"||(d(g.TENANT_FETCHING),t(O(o.userId,u))))},[p,n,d]),a.useEffect(()=>{e.tenantId==null&&!f.current&&o!=null&&(f.current=!0,!(u==null||u!=null&&(r==="Completed"||r==="Error"))||n!=="Not-Started"&&n!=="Error"||t(_(o.userId)))},[f,n,r]),a.useEffect(()=>{o==null||e?.tenantId==null||e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||s==="In-Progress"||E!=="Error"||(d(g.CONNECTION_AUTH),t(h(o.userId,e.tenantId)))},[E]),a.useEffect(()=>{n!=="Completed"&&r!=="Completed"||o==null||e?.tenantId==null||(t(j(e.tenantId)),m.saveActiveTenantDomainForUser(e.tenantEmailDomain),U(o?.userId,o?.zeniSessionId,e.tenantId),k.updateAppLocaleID(R(F(e))),e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||s==="In-Progress"||o==null||e==null||t(h(o.userId,e.tenantId)))},[n,r,s]),a.useEffect(()=>{I.tenantsCoreDetailsInOrder.length>0&&n==="Completed"&&m.saveSignedInUserTenants(I.tenantsCoreDetailsInOrder)},[I.tenantsCoreDetailsInOrder.length,n]),a.useEffect(()=>{n!=="Completed"&&n!=="Error"||r!=="Completed"&&r!=="Error"||s!=="Completed"&&s!=="Error"||x()},[n,r,s]),e==null||n!=="Completed"&&r!=="Completed"||s!=="Completed"?null:D||N===!1?C.jsx(Q,{children:C.jsx(G,{})}):C.jsx(v,{to:"/",replace:!0})}export{pe as default};
@@ -1 +0,0 @@
1
- import{j as i}from"./liveblocks-C-n95g0A.js";import{z as n}from"./index-DLvmOqpd.js";import{g as d}from"./QBOConnectionScreen-BRLzEkDk.js";import"./sentry-lku8kjDH.js";import{g as p,N as s}from"./core-B5TeChD4.js";import"./zeni-epic-state-BzDw8pi_.js";import"./recharts--v-RQjOV.js";import"./mui-Da8iY16Z.js";import"./analytics-CkXhIYGA.js";import"./plaid-kqYG7b9d.js";import"./dnd-CWnSyq9-.js";import"./stripe-DMRn4zHo.js";import"./lottie-zNHYqEBz.js";import"./lexical-D7c0ykAW.js";import"./pdf-BM7gJkYi.js";import"./utils-Dw1Jg_v9.js";import"./empty-D1f-cCDu.js";import"./pdf-lib-BVCnHm-C.js";import"./index-CGTF1rlJ.js";import"./url-ByXYagPi.js";import"./index-R3BgB7Uo.js";import"./decodeURIComponentSafe-DXB7OyA3.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]="817363c8-7f1d-4590-b58b-cef70b99ca15",t._sentryDebugIdIdentifier="sentry-dbid-817363c8-7f1d-4590-b58b-cef70b99ca15")}catch{}})();const U=()=>{const t=p(),{code:o,realmId:r,state:e}=d(t.search),m=n.getSignedInUser()?.userId??"";if(f(o,r,e,m)===!0){const a=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return i.jsx(s,{to:a})}return i.jsx(s,{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-C-n95g0A.js";import{K as l,y as c,m as f}from"./index-DLvmOqpd.js";import{D as p}from"./mui-Da8iY16Z.js";import"./sentry-lku8kjDH.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]="b014d833-f465-45ce-8660-0292215c3f96",e._sentryDebugIdIdentifier="sentry-dbid-b014d833-f465-45ce-8660-0292215c3f96")}catch{}})();const u={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)??u.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-C-n95g0A.js";import{a as d}from"./sentry-lku8kjDH.js";import{h as A,u as B,g as G,i as M,j as c,N as F,n as q,o as O,p as R}from"./core-B5TeChD4.js";import{NM as _,eW as W,N9 as J,ls as Y,JO as b,NR as $,ME as z,ks as V,JP as S,Ne as H,Nf as K,MG as L,MF as Q}from"./zeni-epic-state-BzDw8pi_.js";import{aS as U,c as X,p as Z,r as tt}from"./index-DLvmOqpd.js";import"./mui-Da8iY16Z.js";import{d as k}from"./decodeURIComponentSafe-DXB7OyA3.js";import{w as et}from"./withTransactionSidePanel-Cey9nHHc.js";import{f as at,c as nt}from"./routePaths-2w3X-cgQ.js";import"./recharts--v-RQjOV.js";import"./analytics-CkXhIYGA.js";import"./plaid-kqYG7b9d.js";import"./dnd-CWnSyq9-.js";import"./stripe-DMRn4zHo.js";import"./lottie-zNHYqEBz.js";import"./lexical-D7c0ykAW.js";import"./pdf-BM7gJkYi.js";import"./utils-Dw1Jg_v9.js";import"./useAskAiCfoHostNavButtonProps-CKXnZIoK.js";import"./TransactionDetailScreen-wFSRY2vY.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="449bb7de-17c0-4f93-8cd5-0e299d3e8642",a._sentryDebugIdIdentifier="sentry-dbid-449bb7de-17c0-4f93-8cd5-0e299d3e8642")}catch{}})();const ot=q(function(a,t){const e=t.entity,o=$(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:z(a,"common")},trendWithTransactionsReport:o,analytics:X,isAccountingClassesEnabled:V(a)}},function(a,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const o=`${nt(e,t.tenantEmailDomain)}`,l=tt(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(o,{state:{pathnameStackToGoBack:l}})},autoCompleteActions:{onAutoCompleteInputChange:e=>{e.trim().length>=2?a(L({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(Q("common"))},onAutoCompleteEntity:e=>{const o=at(e,t.tenantEmailDomain);a(H()),a(K()),t.resetTrendIsFetchedStates(),t.navigate(o,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=Z(t.location.state?.pathnameStackToGoBack),o=e.poppedPathname??I();t.navigate(o,{state:{pathnameStackToGoBack:e.newStack}})}},onTrendSelectedPeriodChange:e=>{if(t.closeSidePanel?.(),e==null)t.defaultTransactionTimePeriod!=null&&a(S(t.entity,"EntityDetail",{timeframe:"quarter",timePeriod:t.defaultTransactionTimePeriod}));else{const o=e.currentTimePeriod==null?e.addTimePeriod:{startDate:e.addTimePeriod.startDate,endDate:e.currentTimePeriod.endDate};a(b(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),a(S(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:o}))}}}})(U),it=et(function({entityType:a,...t}){const e=A(),o=B(),l=G(),[m,T]=d.useState(!1),[h,D]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:x,entityNameEncoded:j}=M(),r=k(x??""),p=k(j??""),u=rt(r,p),v=[r,p].filter(n=>n!=null),i={name:p,id:r,type:a,zeniId:r,qboId:r},g=c(n=>_(n.customerIncomeState,n.vendorExpenseState,n.trendState,i,"quarter")),w=c(n=>W(n).company?.companyInfo.firstMonthOfFY??1),f=c(n=>J(n.trendWithTransactionsState,i,"EntityDetail"));d.useEffect(()=>{m===!1&&u===!0&&(T(!0),o(Y(i)))},[m,u,i]);const E=c(n=>n.trendState.fetchState),P=f?.selectedPeriod?.timePeriod??g,N=function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y}(f?.selectedPeriod?.timePeriod,g);return d.useEffect(()=>{m===!0&&h===!1&&E==="Completed"&&(D(!0),P!=null&&o(b(i,"EntityDetail",{timeframe:f?.selectedPeriod?.timeframe??"quarter",timePeriod:P})))},[m,h,E]),u?s.jsx(ot,{firstMonthOfFY:w,tenantEmailDomain:C,location:l,navigate:e,entity:i,defaultTransactionTimePeriod:N,resetTrendIsFetchedStates:()=>{T(!1),D(!1)},...t}):s.jsx(F,{to:I(v.length)})}),rt=(a,t)=>t!=null&&t.length>0&&a!=null&&a.length>0,I=(a=2)=>{let t="../";for(let e=0;e<a;e++)t=`${t}../`;return t};function xt({entityType:a}){return s.jsx(O,{children:s.jsx(R,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:a})})})}export{xt as EntityDetailRoutes,xt as default};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-C-n95g0A.js";import{a as r}from"./sentry-lku8kjDH.js";import{a3 as f,a4 as l,a5 as p,p as m}from"./index-DLvmOqpd.js";import"./mui-Da8iY16Z.js";import c from"./NotFoundScreen-C6d7g4SD.js";import{h as u,g as b}from"./core-B5TeChD4.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]="720da2d7-8f85-4925-8f09-ee6187521283",e._sentryDebugIdIdentifier="sentry-dbid-720da2d7-8f85-4925-8f09-ee6187521283")}catch{}})();const _=()=>{const e=u(),a=b(),t=r.useCallback(()=>{window.open("https://www.zeni.ai/demo/request","_blank")},[]),d=r.useCallback(()=>{(()=>{const n=m(a.state?.pathnameStackToGoBack),i=n.poppedPathname??k();e(i,{state:{pathnameStackToGoBack:n.newStack}})})()},[]),o=f(a.pathname);return o!=null?s.jsx(l,{menuItem:p(o),onDemoClick:t,onGoBack:d}):s.jsx(c,{})},k=(e=2)=>{let a="../";for(let t=0;t<e;t++)a=`${a}../`;return a};export{_ as F};
@@ -1,72 +0,0 @@
1
- import{j as t}from"./liveblocks-C-n95g0A.js";import{i as S,n as x,h as C,g as y,u as ee,t as te,j as E,N as ae,o as ne,p}from"./core-B5TeChD4.js";import{LN as k,LO as v,LP as T,A_ as A,AM as M,LQ as B,LR as oe,LS as ie,AQ as se,fa as $,AX as le,AU as re}from"./zeni-epic-state-BzDw8pi_.js";import{K as g,d as r,A as de,c as j,i as G,n as ce,p as me,q as pe,r as H,N as ue,f as he,I as xe,H as ge,m as fe,v as we,B as be,w as Se,M as ye,S as ke,x as ve,y as je,T as $e}from"./index-DLvmOqpd.js";import{n as m}from"./mui-Da8iY16Z.js";import f from"./NotFoundScreen-C6d7g4SD.js";import{a as I}from"./sentry-lku8kjDH.js";import"./recharts--v-RQjOV.js";import"./analytics-CkXhIYGA.js";import"./plaid-kqYG7b9d.js";import"./dnd-CWnSyq9-.js";import"./stripe-DMRn4zHo.js";import"./lottie-zNHYqEBz.js";import"./lexical-D7c0ykAW.js";import"./pdf-BM7gJkYi.js";import"./utils-Dw1Jg_v9.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]="7fe7c90c-bbc9-489f-876c-5eadb84c5794",e._sentryDebugIdIdentifier="sentry-dbid-7fe7c90c-bbc9-489f-876c-5eadb84c5794")}catch{}})();const Ie=m.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 ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
10
- `,Ce=x(function(e){const a=k(e),n=v(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(M(i))},onSaveHandler:i=>{j.trackBillPayMagicLinkSubmitBankAccountDetails(o),e(A(i,"standard",n,o))},onACHDetailsUpdated:i=>{const{bankAccountSection:l}=i;e(T({data:l}))}}})(de);function F(){const e=g(),{vendorId:a,billId:n}=S();return a==null||n==null?t.jsx(f,{}):t.jsx(t.Fragment,{children:t.jsx(Ie,{windowSize:e,children:t.jsx(Ce,{vendorId:a,billId:n})})})}const Ae=m.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 ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
19
- `,Be=x(function(e,a){const{isSubPage:n}=a;return{addressToEdit:B(e),googleAPIKey:G.googleMapsAPIKey,isSubPage:n}},function(e,a){const{navigate:n,location:o}=a,i=()=>{const l=me(o.state?.pathnameStackToGoBack),s=l.poppedPathname??Le();n(s,{state:{pathnameStackToGoBack:l.newStack}})};return{onSubmitHandler:l=>{const s=Pe(l);e(oe({addressToCreate:s})),i()},onCancel:()=>{i()}}})(ce);function De({isSubPage:e}){const a=C(),n=y(),o=g();return t.jsx(t.Fragment,{children:t.jsx(Ae,{windowSize:o,children:t.jsx(Be,{location:n,navigate:a,isSubPage:e===!0,googleAPIKey:G.googleMapsAPIKey})})})}const Le=(e=2)=>{let a="../";for(let n=0;n<e;n++)a=`${a}../`;return a},Pe=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}),ze=m.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 ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
28
- `,Ne=x(function(e){const a=k(e),n=v(e),o=B(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(M(s))},onSaveHandler:s=>{j.trackBillPayMagicLinkSubmitBankAccountDetails(l),e(A(s,"us-domestic",i,l))},onWireDetailsUpdated:s=>{const{bankAccountSection:d}=s;e(T({data:d}))},onAddressClick:()=>{const s=o.pathname.replace("us-domestic","address"),d=H(o.state?.pathnameStackToGoBack,o.pathname);n(s,{state:{pathnameStackToGoBack:d}})}}})(pe);function Ee(){const e=C(),a=y(),n=g(),{vendorId:o,billId:i}=S();return o==null||i==null?t.jsx(f,{}):t.jsx(t.Fragment,{children:t.jsx(ze,{windowSize:n,children:t.jsx(Ne,{location:a,navigate:e,vendorId:o,billId:i})})})}const Fe=m.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 ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
37
- `,Te=x(function(e){const a=k(e),n=v(e),o=B(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(se(s))},onSaveHandler:s=>{j.trackBillPayMagicLinkSubmitBankAccountDetails(l),e(A(s,"international",i,l,a.isLocalCurrencyEnabled))},onBankDetailsUpdated:s=>{const{internationalWireSwiftAccountSection:d}=s;e(ie({data:d}))},onAddressClick:()=>{const s=o.pathname.replace("international","address"),d=H(o.state?.pathnameStackToGoBack,o.pathname);n(s,{state:{pathnameStackToGoBack:d}})}}})(xe);function Me(){const e=C(),a=y(),n=g(),{vendorId:o,billId:i}=S(),{useFeatureGate:l}=ue(),{isFeatureEnabled:s}=l(he.isBillPayLocalCurrencyFeatureEnabled);return o==null||i==null?t.jsx(f,{}):t.jsx(Fe,{windowSize:n,children:t.jsx(Te,{location:a,navigate:e,vendorId:o,billId:i,isLocalCurrencyEnabled:s})})}const Ge={containerWidth:new je(100,58)},He=m(ke)`
38
- width: ${r.sp4};
39
- height: ${r.sp4};
40
- margin-bottom: ${r.sp3};
41
- margin-top: ${r.sp3};
42
- margin-left: ${r.sp8};
43
- cursor: pointer;
44
- position: absolute;
45
- color: ${e=>e.theme.colors.brandColorJade};
46
- `,Ke=m.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
- `,Ve=m.div`
54
- display: flex;
55
- flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
56
- flex-direction: column;
57
- width: ${e=>`${Ge.containerWidth.value(e.windowSize)}%`};
58
- ${e=>e.windowSize!=="small"?"overflow: auto;":""}
59
- box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
60
- padding-top: ${e=>e.windowSize!=="small"?r.sp2:"0px"};
61
- `,_e=m.div`
62
- display: flex;
63
- flex-direction: column;
64
- align-items: center;
65
- justify-content: center;
66
- padding: ${e=>e.windowSize==="small"?r.sp3:`62px ${r.sp6} ${r.sp9} ${r.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
- `,Ue=x(function(e,a){return{file:a.file,type:a.type}})(ve);function h({appContent:e}){const a=ee(),n=y(),{tenantEmailDomain:o,vendorId:i,billId:l}=S(),[s]=te(),d=s.get("token"),K=n.pathname.includes("address"),w=g(),V=ge(),D=fe(),b=we(),_=()=>{V.toggle()},U=E(u=>k(u)),W=E(u=>v(u)),{authParams:O,fetchState:c,billAttachment:q,billFetchState:L,companyName:J,currencySymbol:Q,amount:R}=U,{tenantId:P,userId:z,sessionId:N}=O,{fetchState:X,internationalBankAccountCreateStatus:Y}=W;return I.useEffect(()=>{$()},[]),I.useEffect(()=>{b&&c==="Not-Started"&&i!=null&&o!=null&&d!=null&&a(le(i,o,d))},[b,c,i,o,d,a]),I.useEffect(()=>{b&&c==="Completed"&&($(z,N,P),l!=null&&a(re(l)))},[c,b,z,N,P,l,a]),c==="Error"?t.jsx(f,{}):X==="Completed"||Y.fetchState==="Completed"?($(),t.jsx(ae,{to:"../../../../../../../bank/account/save/success",replace:!0,relative:"path"})):c==="In-Progress"?t.jsx(be,{fetchState:c,style:{height:"100vh",backgroundColor:D.colors.grey5,boxShadow:`0px 2px ${r.sp1} ${D.colors.dropShadowNormal}`}}):t.jsxs(t.Fragment,{children:[c==="Completed"&&L==="Completed"&&t.jsx(Se,{analytics:j,onLoad:u=>(Z=>Z.trackBillPayMagicLinkPageLoad(o??"",i??"",J,l??"",We(n.pathname),Q,R))(u)}),t.jsxs(Ke,{windowSize:w,children:[w!=="small"?t.jsx(He,{onClick:_}):null,t.jsx(_e,{windowSize:w,isAddressPage:K,children:L==="In-Progress"?t.jsx(ye,{size:"ExtraLarge",start:!0}):t.jsx(Ue,{file:q,type:"bill"})}),t.jsx(Ve,{windowSize:w,children:e})]})]})}const We=e=>`${e.split("/").at(-2)}_${e.split("/").at(-1)}`;function Oe(){return t.jsx($e,{})}function dt(){return t.jsxs(ne,{children:[t.jsx(p,{path:"bank/account/save/success",element:t.jsx(Oe,{})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/ach/standard",element:t.jsx(h,{appContent:t.jsx(F,{})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/ach/same-day",element:t.jsx(h,{appContent:t.jsx(F,{})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/address",element:t.jsx(h,{appContent:t.jsx(De,{isSubPage:!0})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/us-domestic",element:t.jsx(h,{appContent:t.jsx(Ee,{})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/international",element:t.jsx(h,{appContent:t.jsx(Me,{})})}),t.jsx(p,{path:"*",element:t.jsx(f,{})})]})}export{dt as default};
@@ -1 +0,0 @@
1
- import{j as r}from"./liveblocks-C-n95g0A.js";import{h as n,n as i}from"./core-B5TeChD4.js";import{O as e}from"./index-DLvmOqpd.js";import"./mui-Da8iY16Z.js";import"./sentry-lku8kjDH.js";import"./zeni-epic-state-BzDw8pi_.js";import"./recharts--v-RQjOV.js";import"./analytics-CkXhIYGA.js";import"./plaid-kqYG7b9d.js";import"./dnd-CWnSyq9-.js";import"./stripe-DMRn4zHo.js";import"./lottie-zNHYqEBz.js";import"./lexical-D7c0ykAW.js";import"./pdf-BM7gJkYi.js";import"./utils-Dw1Jg_v9.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]="d7666c0b-2a75-4baf-97d7-b828025403bf",o._sentryDebugIdIdentifier="sentry-dbid-d7666c0b-2a75-4baf-97d7-b828025403bf")}catch{}})();const a=i(null,function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}})(e);function _(){const o=n();return r.jsx(a,{navigate:o})}export{_ as default};
@@ -1 +0,0 @@
1
- import{j as m}from"./liveblocks-C-n95g0A.js";import{a as r}from"./sentry-lku8kjDH.js";import{u as T,g as A,j as o,N as j}from"./core-B5TeChD4.js";import{LX as C,eW as P,fn as x,LY as z,LZ as D,L_ as M,L$ as R,o5 as k,KU as N}from"./zeni-epic-state-BzDw8pi_.js";import{z as h,F as I}from"./index-DLvmOqpd.js";import"./mui-Da8iY16Z.js";import"./recharts--v-RQjOV.js";import"./analytics-CkXhIYGA.js";import"./plaid-kqYG7b9d.js";import"./dnd-CWnSyq9-.js";import"./stripe-DMRn4zHo.js";import"./lottie-zNHYqEBz.js";import"./lexical-D7c0ykAW.js";import"./pdf-BM7gJkYi.js";import"./utils-Dw1Jg_v9.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new n.Error().stack;s&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[s]="f7dad8ff-7533-4039-8f2d-f5d101dbcae5",n._sentryDebugIdIdentifier="sentry-dbid-f7dad8ff-7533-4039-8f2d-f5d101dbcae5")}catch{}})();function ee(){const n=T(),s=A(),{params:t,error:i}=r.useMemo(()=>C(s.search),[s.search]),w=r.useMemo(()=>new URLSearchParams(s.search).get("client_name")??t?.clientId??"Unknown Application",[s.search,t]),f=h.isSignedIn(),a=h.getSignedInUser(),p=o(e=>P(e)),l=o(e=>x(e)),d=o(e=>e.tenantState.fetchState),y=o(z),v=o(D),u=o(M),[S,b]=r.useState(null),[E,_]=r.useState(null);r.useEffect(()=>{document.querySelector("#app-shell-loader")?.remove()},[]),r.useEffect(()=>()=>{n(R())},[n,s.search]),r.useEffect(()=>{i!=null&&console.warn("[OAuthConsent] invalid params:",i)},[i]);const g=r.useRef(!1);r.useEffect(()=>{f&&a!=null&&!g.current&&(d!=="Not-Started"&&d!=="Error"||(g.current=!0,n(k(a.userId,a.zeniSessionId??void 0))))},[f,a,d,n]),r.useEffect(()=>{u!=null&&u!==""&&(window.location.href=u)},[u]);const U=r.useMemo(()=>{if(p?.tenantId!=null)return p.tenantId;const e=h.getActiveTenantForUser()?.tenantId;return e!=null&&l.some(L=>L.tenantId===e)?e:l.length===1?l[0].tenantId:null},[p?.tenantId,l]),c=S??U;return i!=null?m.jsx(I,{variant:"invalid_params",paramsError:i}):f?m.jsx(I,{variant:"signed_in",clientName:w,userEmail:a?.userEmail,isInitializing:d!=="Completed",tenants:l,selectedTenantId:c,onSelectTenant:b,approveError:E??v,isApproving:y==="In-Progress",showAllowButton:c!=null,onApprove:()=>{t!=null&&a!=null&&c!=null&&n(N(a.userId,a.zeniSessionId??void 0,c,t.clientId,t.redirectUri,t.codeChallenge,t.codeChallengeMethod,t.state,t.responseType))},onDeny:()=>{if(t!=null)try{const e=new URL(t.redirectUri);e.searchParams.set("error","access_denied"),e.searchParams.set("error_description","The user denied the request"),e.searchParams.set("state",t.state),window.location.href=e.toString()}catch{_("Unable to deny: redirect_uri is not a valid URL. Close this window or contact support.")}}}):m.jsx(j,{to:"/signin/auth",state:{origin:s.pathname+s.search},replace:!0})}export{ee as default};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-C-n95g0A.js";import E from"./NotFoundScreen-C6d7g4SD.js";import{a as r}from"./sentry-lku8kjDH.js";import{h as _,g as v,j as p,i as M,u as U,N as P,n as z,o as B,p as b}from"./core-B5TeChD4.js";import{eW as F,Sy as h,bo as H,bn as N,i9 as O,f9 as V}from"./zeni-epic-state-BzDw8pi_.js";import{H as W,z as I,_ as $,cW as q}from"./index-DLvmOqpd.js";import"./mui-Da8iY16Z.js";import{u as G}from"./useAskAiCfoHostNavButtonProps-CKXnZIoK.js";import{M as J}from"./MobileAppDrawer-Di4Asbvj.js";import"./recharts--v-RQjOV.js";import"./analytics-CkXhIYGA.js";import"./plaid-kqYG7b9d.js";import"./dnd-CWnSyq9-.js";import"./stripe-DMRn4zHo.js";import"./lottie-zNHYqEBz.js";import"./lexical-D7c0ykAW.js";import"./pdf-BM7gJkYi.js";import"./utils-Dw1Jg_v9.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]="3cbd2c55-a398-4ae0-910b-8376ba2d3e86",e._sentryDebugIdIdentifier="sentry-dbid-3cbd2c55-a398-4ae0-910b-8376ba2d3e86")}catch{}})();const K=z(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)}}})(q),L=()=>{const e=_(),t=v(),c=W(),o=p(a=>F(a)),{aggregatedReportViewState:n}=p(a=>h(a)),{tenantEmailDomain:u}=M(),f=U(),l=I.getSignedInUser();if(l==null)throw new Error("Can't access this page without signing in...");const m=r.useRef(!1),[S,w]=r.useState(!1),C=H(o?.userRole??[]),k=o?.userRole?.includes("bookkeeping_admin")??!1,y=N(l),x=C||k||y,d=r.useCallback((a,i,T)=>{f(O({fromMonth:a,toMonth:i,cacheOverride:T}))},[]);r.useEffect(()=>{n?.fetchState==="Completed"&&m.current&&(f(V({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),m.current=!1)},[n?.fetchState]);const D=r.useCallback((a,i)=>{n!=null&&n?.fetchState==="In-Progress"||d(a,i,!0),m.current=!0},[n?.fetchState,d]),j=r.useCallback((a,i)=>{d(a,i,!1)},[d]),g=a=>{w(a)},{isAiCfoAccessEnabled:R,onAskAiCfoClick:A}=G({mobileExploreReferrer:"Performance"});return $({isDataReady:n?.fetchState==="Completed"}),x?s.jsxs(s.Fragment,{children:[s.jsx(J,{isAppContentDrawerOpen:S,handleDrawerToggle:g}),s.jsx(K,{navigate:e,location:t,themeState:c,currentTenant:o,signedInUser:l,tenantEmailDomain:u,onReload:D,onTimeRangeSelect:j,handleDrawerToggle:g,isAiCfoAccessEnabled:R,onAskAiCfoClick:A})]}):s.jsx(P,{to:`/${u}/dashboard`,replace:!0})};function ge(){return s.jsxs(B,{children:[s.jsx(b,{path:"*",element:s.jsx(L,{})}),s.jsx(b,{path:"*",element:s.jsx(E,{})})]})}export{ge as default};
@@ -1,5 +0,0 @@
1
- import{j as s}from"./liveblocks-C-n95g0A.js";import{a as o}from"./sentry-lku8kjDH.js";import{j as f,h as V,u as _,g as H,n as W}from"./core-B5TeChD4.js";import{m as F,K as M,z as R,bb as N,y as U,Y as $,_ as z,w as Y,c as l,g as q,a7 as K,bc as G}from"./index-DLvmOqpd.js";import{fi as J,eW as Q,OR as P,OS as X,vt as Z,vj as g,fk as ee,bS as re,vo as ae,OT as ne}from"./zeni-epic-state-BzDw8pi_.js";import{D as te,e as se,n as oe,S as ie}from"./mui-Da8iY16Z.js";import{u as le}from"./useAskAiCfoHostNavButtonProps-CKXnZIoK.js";import{M as de}from"./MobileAppDrawer-Di4Asbvj.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]="625b250c-e144-413a-bdf7-4c994d1ce44d",e._sentryDebugIdIdentifier="sentry-dbid-625b250c-e144-413a-bdf7-4c994d1ce44d")}catch{}})();const ce={overlayWidth:new U(100,100,30)},fe=({isReferralDrawerOpen:e,closeDrawerHandler:r})=>{const a=F(),n=M();if(R.getSignedInUser()==null)throw Error("Can't access How Referral works without signing in...");const i=()=>{r(!0)},u=f(d=>J(d));return s.jsx(te,{anchor:"right",open:e,PaperProps:{style:{width:ce.overlayWidth.valuePercentage(n),boxShadow:"none"}},slotProps:{backdrop:{style:{opacity:.75,backgroundColor:a.colors.black,cursor:"pointer"}}},onClose:()=>i(),children:s.jsx(se,{in:e,direction:"left",children:s.jsx(ue,{onClick:d=>d.stopPropagation(),children:s.jsx(N,{onDismissClick:i,rewardsPlan:u.rewardsPlan})})})})},ue=oe(ie)`
2
- display: flex;
3
- min-height: 100%;
4
- flex-direction: column;
5
- `,I="refer-and-earn-status-update",we=W(function(e){const r=P(e),a=e.referralViewState.rewardsPlanFetchState,n=re([r,a]);return{inviteList:r.invitations,uiState:r.uiState,pendingBonus:r.pendingBonus,earnedBonus:r.earnedBonus,pendingReferrals:r.pendingReferrals,fetchState:n.fetchState,rewardsPlan:r.rewardsPlan}},function(e,r){const{navigate:a}=r;return{onColumnSortConfigChanged:(n,i)=>{e(ne({sortOrder:i,sortkey:n}))},onInviteClick:()=>{l.trackRewardsPageClicked("invite via email"),a("../refer")},onHowItWorksClick:()=>{l.trackRewardsPageClicked("know more"),a("../how-it-works")},onResendInviteClick:n=>{l.trackRewardsPageClicked("resend invite"),e(ae(n))},onBackClick:()=>{a("../",{relative:"path"})},onReloadInvitees:()=>{e(g(!0))},onCopyReferralLink:()=>{l.trackRewardsPageClicked("copy referral link")},onClickRefer:()=>{l.trackRewardsPageClicked("refer")},onEventReceived:n=>{n===I&&e(g(!0,!0))}}})(K(G));function ye({isReferralDrawerOpen:e}){const r=V(),a=_(),n=H(),[i,u]=o.useState(!1),[d,x]=o.useState(!1),[D,E]=o.useState(!1),[k,C]=o.useState(!1),w=R.getSignedInUser(),h=f(t=>Q(t)),m=f(t=>P(t)),v=m.fetchState,p=f(t=>t.referralViewState.rewardsPlanFetchState),b=X([m,p]),{areTenantIdsInSync:c}=$();o.useEffect(()=>{h?.rewardsLastViewedTime==null&&D===!1&&(a(Z()),E(!0))},[]),o.useEffect(()=>{!i&&v==="Not-Started"&&c&&(u(!0),a(g(!0)))},[v,a,c]),o.useEffect(()=>{!d&&p.fetchState==="Not-Started"&&c&&(x(!0),a(ee(!0)))},[p,a,c]),o.useEffect(()=>{C(e!=null&&e===!0)},[e]);const[j,A]=o.useState(!1),y=t=>{A(t)},{isAiCfoAccessEnabled:O,onAskAiCfoClick:T}=le({mobileExploreReferrer:"Rewards"});z({isDataReady:b===!0});const L={events:w?.userId!=null?[`private-encrypted-${w.userId}.${I}`]:[],eventCallback:(t,S,B)=>{B.onEventReceived(t)}};return s.jsxs(s.Fragment,{children:[b===!0?s.jsx(Y,{analytics:l,onLoad:t=>(S=>{w!=null&&S.trackPageLoaded(q.Event.rewardsPageViewed)})(t)}):null,s.jsx(de,{isAppContentDrawerOpen:j,handleDrawerToggle:y}),k===!0?s.jsx(fe,{closeDrawerHandler:()=>{C(!1),r("..")},isReferralDrawerOpen:k}):null,s.jsx(we,{location:n,navigate:r,currentTenant:h,onClickMenuIcon:()=>{y(!0)},isAiCfoAccessEnabled:O,onAskAiCfoClick:T,...L})]})}export{ye as R};
@@ -1 +0,0 @@
1
- import{j as e}from"./liveblocks-C-n95g0A.js";import{N as x,z as j,aN as y,w as I,c as p,g as F,d5 as P,f as T}from"./index-DLvmOqpd.js";import"./mui-Da8iY16Z.js";import m from"./NotFoundScreen-C6d7g4SD.js";import{a as f}from"./sentry-lku8kjDH.js";import{u as L,j as b,h as V,g as A,n as R,o as U,p as u}from"./core-B5TeChD4.js";import{eW as z,Ta as C,Pq as Y,Tb as v,vt as q,fk as G,Tc as O,vr as W}from"./zeni-epic-state-BzDw8pi_.js";import{R as w}from"./ReferralListScreen-qJwU61pa.js";import"./recharts--v-RQjOV.js";import"./analytics-CkXhIYGA.js";import"./plaid-kqYG7b9d.js";import"./dnd-CWnSyq9-.js";import"./stripe-DMRn4zHo.js";import"./lottie-zNHYqEBz.js";import"./lexical-D7c0ykAW.js";import"./pdf-BM7gJkYi.js";import"./utils-Dw1Jg_v9.js";import"./useAskAiCfoHostNavButtonProps-CKXnZIoK.js";import"./MobileAppDrawer-Di4Asbvj.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="823ace6f-0725-48b8-a939-9fa5fc05d647",a._sentryDebugIdIdentifier="sentry-dbid-823ace6f-0725-48b8-a939-9fa5fc05d647")}catch{}})();const B=R(function(a,t){const n=C(a);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}},function(a,t){const{navigate:n}=t,i=j.getSignedInUser();return{onDismissClick:()=>{a(v()),n("..")},onSendClick:()=>{if(i!=null){const s=[],r=[];t.inviteFormCompayData.forEach(c=>{s.push(c.companyName),r.push(c.emailIds[0])}),p.trackInviteEmailClicked("send",s,r,s.length)}a(W())},onUpdateInviteFormLocalData:s=>{a(O({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{i!=null&&p.trackInviteEmailClicked("cancel")}}})(P),H=()=>{const a=L(),[t,n]=f.useState(!1),[i,s]=f.useState(!1),r=b(o=>z(o)),c=V(),_=A(),{useDynamicConfig:g}=x(),d=j.getSignedInUser();if(d==null)throw Error("Can't access invite referral screen without signing in...");const l=b(o=>C(o)),k=d?.firstName!=null?d.firstName:"User",{configValue:h}=g(y.zeniCardsConfig),{configValue:N}=g(y.zeniAccountsConfig),D=Y(N);f.useEffect(()=>{a(v()),r?.rewardsLastViewedTime==null&&i===!1&&(a(q()),s(!0))},[]),f.useEffect(()=>{t||l.fetchState!=="Not-Started"||(n(!0),a(G(!0)))},[l.fetchState,a]);const S=r.company?.companyInfo.companyLegalName??r.companyName;return e.jsxs(e.Fragment,{children:[l.fetchState==="Completed"?e.jsx(I,{analytics:p,onLoad:o=>(E=>E.trackPageLoaded(F.Event.inviteEmailViewed))(o)}):null,e.jsx(B,{navigate:c,location:_,currentTenant:r,companyName:S,userName:k,inviteFormCompayData:l.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:D.maxAnnualPercentageYield})]})};function ua(){const{useFeatureGate:a}=x(),{isFeatureEnabled:t}=a(T.isReferralFeatureEnabled);return e.jsxs(U,{children:[e.jsx(u,{path:"/",element:t?e.jsx(w,{}):e.jsx(m,{})}),e.jsx(u,{path:"how-it-works",element:t?e.jsx(w,{isReferralDrawerOpen:!0}):e.jsx(m,{})}),e.jsx(u,{path:"refer/*",element:t?e.jsx(H,{}):e.jsx(m,{})}),e.jsx(u,{path:"*",element:e.jsx(m,{})})]})}export{ua as default};
@@ -1 +0,0 @@
1
- import{j as f}from"./liveblocks-C-n95g0A.js";import{a as u,b as D,q as T}from"./sentry-lku8kjDH.js";import{u as A,h as z,j as d,g as M,N as O,n as j}from"./core-B5TeChD4.js";import{u as F,z as s,m as P,c as w,D as _,e as B,g as N,s as W,h as V,W as Y,i as v}from"./index-DLvmOqpd.js";import{eW as $,Ly as q,Lz as G,fa as H,fD as J,LE as K,gn as Q,cY as R,LF as b,LG as X,LH as Z,bY as y}from"./zeni-epic-state-BzDw8pi_.js";import"./mui-Da8iY16Z.js";import{u as ee}from"./useDeviceId-bV7jqaoy.js";import{f as te}from"./analyticsHelper-BTLx1JWo.js";import{t as ne}from"./getLocaleForTenant-yKPZZnim.js";import"./recharts--v-RQjOV.js";import"./analytics-CkXhIYGA.js";import"./plaid-kqYG7b9d.js";import"./dnd-CWnSyq9-.js";import"./stripe-DMRn4zHo.js";import"./lottie-zNHYqEBz.js";import"./lexical-D7c0ykAW.js";import"./pdf-BM7gJkYi.js";import"./utils-Dw1Jg_v9.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="3599a22c-9f76-41e9-9fa7-741b639acc16",t._sentryDebugIdIdentifier="sentry-dbid-3599a22c-9f76-41e9-9fa7-741b639acc16")}catch{}})();const ie=j(function(t,i){const c=t.tenantState.fetchState,g=t.tenantState.sendEmailMagicLinkFetchState,{magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:l}=i;return{googleClientId:v.googleClientId,microsoftClientId:v.microsoftClientId,signInError:t.tenantState.error?.error,fetchState:c,sendMagicLinkStatus:g,magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:l}},function(t,i){const{location:c,navigate:g}=i;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,a)=>{T({message:`OAuth error from provider ${a} with error ${n}`,level:"error",tags:{authProvider:a,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,a)=>{const l=a==="google"?window.location.origin:window.location.origin+window.location.pathname;t(Z({authCode:n,oauthProvider:a,appType:"web",redirectUri:y(l),sourceUri:y(c.state!=null?c.state.origin:"")}))},getSignedInUser:()=>s.getSignedInUser(),onSignedInCallback:()=>{const n=c.state?.origin;n&&n!=="/"?g(n,{replace:!0}):window.open(window.location.origin,"_self")},sendMagicLink:n=>{const{deviceId:a}=i;a!=null&&(s.saveMagicLinkEmail(n),t(X(n,a)))},clearSignInError:()=>{t(b())}}})(Y),ae=D.memo(ie);function ve({setTenantEmailDomain:t}){const i=A(),c=z(),{clearAllLoading:g}=F(),n=s.getSignedInUser();u.useLayoutEffect(()=>{g()},[g]);const a=ee(),l=d(e=>e.tenantState.magicLinkCodeVerifier),{sendEmailMagicLinkFetchState:L,accountLocked:C,accountUnlockTime:h}=d(e=>e.tenantState),p=d(e=>e.tenantState.fetchState),k=d(e=>e.tenantState.activeTenantFetchState.fetchState),S=d(e=>e.tenantState.signInState),o=d(e=>e.tenantState.loggedInUser),r=d(e=>$(e)),I=d(e=>q(e)),m=M(),E=P().mode,U=m.state?.magicLinkExpired,x=m.state?.magicLinkAlreadyUsed;if(u.useEffect(()=>{L.fetchState==="Completed"&&l!=null&&(w.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(l))},[L.fetchState,l]),u.useEffect(()=>{t(void 0)},[]),u.useEffect(()=>{S!=="In-Progress"||p!=="Completed"&&k!=="Completed"||o?.zeniSessionId==null||r==null||(s.savePayNowInfoTooltip(!0,o.zeniSessionId),s.saveSignedInUserWithSession(o,o.zeniSessionId),s.saveSignedInUserTenants(G(I.tenantsInOrder),o.zeniSessionId),H(o.userId,o.zeniSessionId,r.tenantId),i(J(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(K("Completed")),_.updateAppLocaleID(ne(r)),te(o,r,E,void 0,I.tenantsInOrder),Q().then(()=>{const e=V();e!=null&&B(e)}),setTimeout(()=>{w.trackLogin(N.Event.loginSuccess,o.authProvider??"google",R(r.productSettings))},2e3))},[S,p,k,o,r,I,E,m.state,i]),S==="In-Progress"&&p==="Completed"&&o?.zeniSessionId!=null&&r!=null||n!=null){const e=m.state?.origin??"/";return f.jsx(O,{to:e,state:{...m.state,origin:""}})}return f.jsxs(f.Fragment,{children:[f.jsx(ae,{magicLinkExpired:!!U,magicLinkAlreadyUsed:!!x,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:c,deviceId:a??void 0,showEmailLogin:!0}),C===!0&&h!=null?f.jsx(W,{onClose:()=>i(b()),unlockDate:h}):null]})}export{ve as default};
@@ -1,9 +0,0 @@
1
- import{j as s}from"./liveblocks-C-n95g0A.js";import{a as n}from"./sentry-lku8kjDH.js";import{u,g,h as m,N as p}from"./core-B5TeChD4.js";import{z as c,B as y,t as h,c as d,g as b}from"./index-DLvmOqpd.js";import{gs as x,gt as I,LW as w}from"./zeni-epic-state-BzDw8pi_.js";import{n as j}from"./mui-Da8iY16Z.js";import"./recharts--v-RQjOV.js";import"./analytics-CkXhIYGA.js";import"./plaid-kqYG7b9d.js";import"./dnd-CWnSyq9-.js";import"./stripe-DMRn4zHo.js";import"./lottie-zNHYqEBz.js";import"./lexical-D7c0ykAW.js";import"./pdf-BM7gJkYi.js";import"./utils-Dw1Jg_v9.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]="06380a20-5037-4396-9df3-8cdaa6963c5c",e._sentryDebugIdIdentifier="sentry-dbid-06380a20-5037-4396-9df3-8cdaa6963c5c")}catch{}})();function $(){const e=u(),t=g(),i=m(),a=n.useRef(!1),f=c.isSignedIn(),r=t.state?.message==="logout",o=r||f;return n.useEffect(()=>{o&&!a.current&&(a.current=!0,setTimeout(()=>{try{c.clearAll(),e(x()),e(I(!1)),w(),h.reset(),d.trackLogout(b.Event.logoutSuccess),d.resetUserIdentity()}catch(l){console.error("Error during sign out:",l)}finally{r||i("/signin/auth",{replace:!0})}},0))},[o,r]),o?s.jsx(v,{children:s.jsx(y,{fetchState:"In-Progress"})}):s.jsx(p,{to:"../",replace:!0})}const v=j.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `;export{$ as default};
@@ -1,9 +0,0 @@
1
- import{j as d}from"./liveblocks-C-n95g0A.js";import{a as G}from"./sentry-lku8kjDH.js";import{h as _,u as v,g as K,j as b,i as z,n as q}from"./core-B5TeChD4.js";import{z as F,N as W,f as p,_ as H,w as M,c as O,g as V,d8 as Z,r as f,p as Q}from"./index-DLvmOqpd.js";import{eW as J,Th as R,IH as C,Ti as x,Td as X,I3 as y,Tj as Y,Ib as E,Hx as aa,II as S,Tk as B,f9 as ea,Iy as ta,ID as sa,Iq as oa,Io as w,IE as na,Il as ia,Tl as la,Tm as ra,Tn as ca,To as ka,Tp as T,ei as ua,Tq as da,Tr as pa}from"./zeni-epic-state-BzDw8pi_.js";import{n as Ta}from"./mui-Da8iY16Z.js";import{u as ma}from"./useAskAiCfoHostNavButtonProps-CKXnZIoK.js";import{M as fa}from"./MobileAppDrawer-Di4Asbvj.js";import"./recharts--v-RQjOV.js";import"./analytics-CkXhIYGA.js";import"./plaid-kqYG7b9d.js";import"./dnd-CWnSyq9-.js";import"./stripe-DMRn4zHo.js";import"./lottie-zNHYqEBz.js";import"./lexical-D7c0ykAW.js";import"./pdf-BM7gJkYi.js";import"./utils-Dw1Jg_v9.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]="deefffa7-1e27-42c9-a5b9-c57682ac04f7",e._sentryDebugIdIdentifier="sentry-dbid-deefffa7-1e27-42c9-a5b9-c57682ac04f7")}catch{}})();const ga=Ta.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
- `,ha=q(function(e,t){const o=R(e,t.isTaskTemplatesEnabled),{taskGroupId:c}=t,n=c!=null&&c!==""?{...o,taskGroupsWithTasksList:o.taskGroupsWithTasksList.map(l=>({...l,tasks:l.tasks.filter(a=>a.taskGroupIds.includes(c))})).filter(l=>l.tasks.length>0)}:o,u=X(e),i=F.isZeniUser();return{taskListView:n,tagListView:u,localData:n.localData,isTaskTemplatesEnabled:t.isTaskTemplatesEnabled,isZeniUser:i}},function(e,t){const{navigate:o,currentTenant:c,location:n,isTaskTemplatesEnabled:u}=t,{tenantEmailDomain:i}=c,{groupByKey:l}=t.uiState;return{onTaskManagementRowClick:a=>{const s=L(i,a),k=f(n.state?.pathnameStackToGoBack,n.pathname);o(s,{state:{pathnameStackToGoBack:k}})},onReloadTasks:()=>{e(C(!0,u))},onTabChange:a=>{e(ka(a))},onParentTaskClick:a=>{const s=L(i,a);window.open(s,"_blank","noopener")},bulkUpdateTasks:(a,s)=>{e(w(a,null,s))},onNewTaskClick:()=>{if(t.localData.defaultTaskGroupId!=null){const a=I(i,t.localData.defaultTaskGroupId),s=f(n.state?.pathnameStackToGoBack,n.pathname);o(a,{state:{pathnameStackToGoBack:s,message:"comingFromTaskListPage"}})}},onColumnSortConfigChanged:(a,s)=>{e(B({uiState:{sortKey:a,sortOrder:s}}))},onFiltersChange:a=>{e(ca({filters:a}))},onSearchTextChanged:a=>{e(ra({searchText:a}))},onReloadCards:()=>{e(C(!0,u))},onBackClick:()=>{if(n.state?.message==="triggerBackClick"){const a=Q(n.state?.pathnameStackToGoBack),s=a.poppedPathname??"../";o(s,{state:{pathnameStackToGoBack:a.newStack}})}else o("../")},updateLocalData:a=>{e(la({localData:a}))},resetLocalData:()=>{e(x({taskGroupById:t.taskGroupState.taskGroupById}))},handleCreateGroup:a=>{e(ia(t.localData.newTaskGroupName,a))},assignGroupToTasks:a=>{e(w(t.localData.selectedTaskIds,a,na(t.uiState.groupByKey,a)))},onDeleteTaskGroup:a=>{e(oa(a))},onAddNewTaskToTaskGroup:a=>{if(t.localData.defaultTaskGroupId!=null){const s=Da(l,a);e(y({taskDetailLocalData:s}));const k=I(i,t.uiState.groupByKey==="groupName"?a:t.localData.defaultTaskGroupId),g=f(n.state?.pathnameStackToGoBack,n.pathname);o(k,{state:{pathnameStackToGoBack:g,message:"comingFromTaskListPage"}})}},onDragNDrop:(a,s)=>{e(sa(t.localData.selectedTaskIds.length>0?t.localData.selectedTaskIds:[a],s))},onTaskGroupRename:(a,s)=>{e(ta(a,s))},onTimeSpentUpdate:(a,s)=>{e(S({task:a,updates:s}))},onShowToast:a=>{e(ea(a))},onGroupByFilterChange:a=>{e(B({uiState:{groupByKey:a}}))},updateTask:(a,s)=>{e(S({task:a,updates:s}))},onCreateTagClick:(a,s)=>{e(aa(a,s))},handleGroupTemplateClick:a=>{e(E(a,[]))},handleGroupTemplateTaskClick:(a,s)=>{e(E(a,[s]))},handleNewTaskInitialization:a=>{if(e(y({taskDetailLocalData:{...Y,name:a}})),t.localData.defaultTaskGroupId!=null){const s=I(i,t.localData.defaultTaskGroupId),k=f(n.state?.pathnameStackToGoBack,n.pathname);o(s,{state:{pathnameStackToGoBack:k,message:"comingFromTaskListPage"}})}},onTaskGroupNameClick:a=>{o(`/${i}/tasks/group/${a}`)},onQuickResponsesClick:()=>{o(`/${i}/tasks/quick-responses`)}}})(Z);function $a(){const e=_(),t=v(),o=K(),c=F.getSignedInUser(),n=b(r=>J(r)),{taskGroupId:u}=z(),{useFeatureGate:i}=W(),{isFeatureEnabled:l}=i(p.isTaskTemplatesEnabled),{isFeatureEnabled:a}=i(p.isTaskCannedResponsesEnabled),{isFeatureEnabled:s}=i(p.isTaskCategorizationEnabled),{isFeatureEnabled:k}=i(p.isTaskBulkResolutionEnabled),{isFeatureEnabled:g}=i(p.isTaskGroupAssigneesEnabled),{isFeatureEnabled:A}=i(p.isTaskRecurringParentEnabled),[P,j]=G.useState(!1),h=b(r=>R(r,l)),D=b(r=>r.taskGroupState),m=h.fetchState,{isAiCfoAccessEnabled:N,onAskAiCfoClick:$}=ma({mobileExploreReferrer:"Task Checklist"});if(H({isDataReady:m==="Completed"}),G.useEffect(()=>{t(C(!1,l))},[n?.tenantId,t,l]),G.useEffect(()=>{m==="Completed"&&t(x({taskGroupById:D.taskGroupById}))},[m,D.taskGroupById]),c==null)throw Error("Can't access task list page without signing in...");return d.jsxs(d.Fragment,{children:[m==="Completed"?d.jsx(M,{analytics:O,onLoad:r=>(U=>U.trackPageLoaded(V.Event.taskListPage))(r)}):null,d.jsxs(ga,{children:[d.jsx(fa,{isAppContentDrawerOpen:P,handleDrawerToggle:r=>{j(r)}}),d.jsx(ha,{location:o,navigate:e,currentTenant:n,taskGroupId:u,taskGroupState:D,localData:h.localData,uiState:h.uiState,isTaskTemplatesEnabled:l,taskListFetchState:m,isTaskCategorizationEnabled:s,isTaskCannedResponsesEnabled:a,isTaskBulkResolutionEnabled:k,isTaskGroupAssigneesEnabled:g,isTaskRecurringParentEnabled:A,isAiCfoAccessEnabled:N,onAskAiCfoClick:$})]})]})}const L=(e,t)=>`/${e}/tasks/${encodeURIComponent(t)}`,I=(e,t)=>`/${e}/tasks/new/${t}`,Da=(e,t)=>{if(e==="assignee"){const o=t.split(",");return{...T.taskDetailLocalData,assignee:o}}if(e==="priority"){const o=ua(t);return{...T.taskDetailLocalData,priority:o}}if(e==="status"){const o=da(t);return{...T.taskDetailLocalData,status:o}}if(e==="tag"){const o=t.split(",");return{...T.taskDetailLocalData,tagIds:o}}if(e==="dueDate"){const o=pa(t);return{...T.taskDetailLocalData,dueDate:o}}return{...T.taskDetailLocalData}};export{$a as default};
@@ -1,12 +0,0 @@
1
- import{j as o}from"./liveblocks-C-n95g0A.js";import{a as f}from"./sentry-lku8kjDH.js";import{t as u,u as h,j as b,N as y}from"./core-B5TeChD4.js";import{LT as I,fa as w,B3 as j}from"./zeni-epic-state-BzDw8pi_.js";import{z as l,B as x,C as S,E}from"./index-DLvmOqpd.js";import{n as c}from"./mui-Da8iY16Z.js";import"./recharts--v-RQjOV.js";import"./analytics-CkXhIYGA.js";import"./plaid-kqYG7b9d.js";import"./dnd-CWnSyq9-.js";import"./stripe-DMRn4zHo.js";import"./lottie-zNHYqEBz.js";import"./lexical-D7c0ykAW.js";import"./pdf-BM7gJkYi.js";import"./utils-Dw1Jg_v9.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]="4bb9904c-e1fd-4cd8-919c-5365b0d6d86b",e._sentryDebugIdIdentifier="sentry-dbid-4bb9904c-e1fd-4cd8-919c-5365b0d6d86b")}catch{}})();const F=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",p=e.get("profileId")??"",[n,g]=f.useState(!1),a=h(),i=b(m=>I(m)),r=l.getSignedInUser(),d=l.getSignedInUserTenantWithId(s);if(r==null||d==null)return o.jsx(y,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return w(r.userId,r.zeniSessionId,d?.tenantId),f.useEffect(()=>{n||(g(!0),a(j(t,p,s)))},[n,a]),i.fetchState==="Error"?o.jsx(D,{children:o.jsx(T,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(x,{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
- `,T=c(E.LargeRegular)`
10
- display: flex;
11
- color: ${S.important};
12
- `;export{F as default};
@@ -1,9 +0,0 @@
1
- import{j as i}from"./liveblocks-C-n95g0A.js";import{a as f}from"./sentry-lku8kjDH.js";import{h as x,u as B,g as $,i as j,j as p}from"./core-B5TeChD4.js";import{KR as s,KQ as v,R7 as C,eW as T,R8 as z}from"./zeni-epic-state-BzDw8pi_.js";import{K as D,at as g,m as E,z as L,B as P,cd as N,p as R}from"./index-DLvmOqpd.js";import{n as _}from"./mui-Da8iY16Z.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]="325650bc-5163-4ed2-8ed7-72f7202602e2",e._sentryDebugIdIdentifier="sentry-dbid-325650bc-5163-4ed2-8ed7-72f7202602e2")}catch{}})();const K=_.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `;function W(){const e=x(),n=B(),d=D(),l=$();let{accountId:a}=j(),m=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&l.pathname.includes(`${s}/statements`)&&(a=s,m=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[u,h]=f.useState(!1),y=E();f.useEffect(()=>{u||(h(!0),n(v(a??"",!1)))},[u,n]);const o=p(t=>C(t,a??"")),I=()=>{const t=R(l.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},r=L.getSignedInUser(),c=p(t=>T(t)),b={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:c.tenantId??""},w=z(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=c.company?.companyInfo.companyLegalName??c.companyName;if(r==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?i.jsx(P,{fetchState:"In-Progress",style:{backgroundColor:y.colors.grey5}}):i.jsx(K,{windowSize:d,children:i.jsx(N,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:I,authParams:b,downloadEndPoint:m})})}export{W as Z};
@@ -1 +0,0 @@
1
- import{a as b}from"./sentry-lku8kjDH.js";import{h as u,g,i as h,j as S}from"./core-B5TeChD4.js";import{eW as y}from"./zeni-epic-state-BzDw8pi_.js";import{V as k,K as C,a as A,Z as T,$ as I,r as w,a1 as D}from"./index-DLvmOqpd.js";import"./mui-Da8iY16Z.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]="206224d8-7148-4f69-9afa-c77fa831194b",e._sentryDebugIdIdentifier="sentry-dbid-206224d8-7148-4f69-9afa-c77fa831194b")}catch{}})();function j(e){const{mobileExploreReferrer:a}=e,{isAiCfoOpen:r,setIsAiCfoOpen:i}=k(),s=u(),o=g(),{tenantEmailDomain:n}=h(),l=C(),f=D(l),d=A(),p=T(),m=S(t=>t.tenantState.fetchState==="Completed"||t.tenantState.activeTenantFetchState.fetchState==="Completed"?y(t):void 0),c=m?.masterTOSInfo?.isMasterTOSAccepted??!1;return{isAiCfoAccessEnabled:p&&d&&!r,onAskAiCfoClick:b.useCallback(()=>{if(n!=null)if(c)if(f){const t=w(o.state?.pathnameStackToGoBack,o.pathname);s(`/${n}/ai-cfo/explore`,{state:{pathnameStackToGoBack:t,referrer:a}})}else i(!0);else I({location:o,navigate:s,mergeState:{referrer:a}})},[c,f,o,a,s,i,n])}}export{j as u};
@@ -1 +0,0 @@
1
- import{a as u}from"./sentry-lku8kjDH.js";import{u as d,h as m,i as l,j as f}from"./core-B5TeChD4.js";import{N as p,f as g}from"./index-DLvmOqpd.js";import"./mui-Da8iY16Z.js";import{QU as c,QM as h,Bb as y}from"./zeni-epic-state-BzDw8pi_.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]="681b3259-27e6-48ab-b204-853ad6d09b79",e._sentryDebugIdIdentifier="sentry-dbid-681b3259-27e6-48ab-b204-853ad6d09b79")}catch{}})();function C(){const e=d(),a=m(),{tenantEmailDomain:s}=l(),{useFeatureGate:i}=p(),{isFeatureEnabled:t}=i(g.isCashManagementFeatureEnabled),o=f(r=>c(r)),b=f(r=>h(r)),n=o.banner.fetchState;if(u.useEffect(()=>{t===!0&&n!=="Completed"&&n!=="In-Progress"&&e(y(!1))},[e,t,n]),t===!0)return{banner:o.banner,bufferAmount:b.formData.bufferAmount,onSetUpAutoSweepClick:()=>{a(`/${s}/checking/cash_management/auto_sweep`,{state:{fromCashManagement:!0}})}}}export{C as u};