@zeniai/web-app-ui 5.3.36-qa → 5.3.37-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 (125) hide show
  1. package/dist/assets/{AccountMappingScreen-D_yJl2PL.js → AccountMappingScreen-_4EVBZGw.js} +2 -2
  2. package/dist/assets/AddressRoutes-C6JlNrLm.js +1 -0
  3. package/dist/assets/AddressScreen-ComPzmBu.js +9 -0
  4. package/dist/assets/{AiCfoScreen-DTvSqf4B.js → AiCfoScreen-Bvttsr6a.js} +1 -1
  5. package/dist/assets/{AppDrawer-DVLff3oA.js → AppDrawer-Cxjonopq.js} +1 -1
  6. package/dist/assets/{BillPayApprovalRoutes-CLA1JTKv.js → BillPayApprovalRoutes-Be2JdFb6.js} +1 -1
  7. package/dist/assets/{BillPayRoutes-DDsOJ3OO.js → BillPayRoutes-CFRnk7Qv.js} +1 -1
  8. package/dist/assets/{BusinessVerificationPageScreen-BIVW5qKP.js → BusinessVerificationPageScreen--yNhbNZF.js} +2 -2
  9. package/dist/assets/{CardsAiCfoScreen-Dx5Swnot.js → CardsAiCfoScreen-DY2qYkQk.js} +1 -1
  10. package/dist/assets/{ChargeCardRoutes-bPkRsP0v.js → ChargeCardRoutes-D4rH2ugh.js} +1 -1
  11. package/dist/assets/CompanyPassportScreen-Da1QH72q.js +1 -0
  12. package/dist/assets/ConnectionAuthScreen-BhG6R3bg.js +11 -0
  13. package/dist/assets/CustomerOnboardingAuthScreen-DhSpA01b.js +1 -0
  14. package/dist/assets/{CustomerOnboardingRoutes-D6tw_pBe.js → CustomerOnboardingRoutes-B-9UEIGr.js} +1 -1
  15. package/dist/assets/{DashboardRoutes-CfY6NoGs.js → DashboardRoutes-CS50FAzC.js} +1 -1
  16. package/dist/assets/{DefaultTenantHome-BbVMl9p9.js → DefaultTenantHome-a2pDza0D.js} +1 -1
  17. package/dist/assets/DomesticWireDetailScreen-BeePCua8.js +18 -0
  18. package/dist/assets/{DrawerScreen-Cg75D7to.js → DrawerScreen-GzGq_S7g.js} +1 -1
  19. package/dist/assets/{EntityDetailRoutes-DHoHKmYT.js → EntityDetailRoutes-Hlxr9L7_.js} +1 -1
  20. package/dist/assets/{ExpenseAutomationRoutes-D57taOtx.js → ExpenseAutomationRoutes-Dy6sqhAB.js} +5 -5
  21. package/dist/assets/FeaturePreviewScreen-C4P6gBWQ.js +1 -0
  22. package/dist/assets/{HubSpotOAuthCallbackScreen-CZXVXMYZ.js → HubSpotOAuthCallbackScreen-B6ByPirq.js} +1 -1
  23. package/dist/assets/{InboxNotificationsProvider-DpFe93lp.js → InboxNotificationsProvider-DEa_8AVv.js} +1 -1
  24. package/dist/assets/{InvoicingRoutes-DyPYbs7i.js → InvoicingRoutes-Dd1pdXsc.js} +2 -2
  25. package/dist/assets/{MagicLinkRoutes-CltSsEUX.js → MagicLinkRoutes-B0No8CRx.js} +7 -7
  26. package/dist/assets/MagicLinkSignInScreen-dAeqizKV.js +12 -0
  27. package/dist/assets/MobileAppDrawer-BU-k0-97.js +1 -0
  28. package/dist/assets/NotFoundScreen-DZ0EcL3w.js +1 -0
  29. package/dist/assets/{NotificationRoutes-CtFPL0pP.js → NotificationRoutes-WrEpizjn.js} +1 -1
  30. package/dist/assets/{OAuthConsentScreen-BNGnkIM5.js → OAuthConsentScreen-ciivzIvX.js} +1 -1
  31. package/dist/assets/{PandLWithForecastRoutes-CyUpIRLD.js → PandLWithForecastRoutes-lqrbmK3W.js} +1 -1
  32. package/dist/assets/{PaymentLinkScreen-B0SqSoQc.js → PaymentLinkScreen-C13pimFV.js} +3 -3
  33. package/dist/assets/{PeopleRoutes-QL5tCs3Z.js → PeopleRoutes-D3wy3tps.js} +3 -3
  34. package/dist/assets/PerformanceRoutes-mUHDtsOj.js +1 -0
  35. package/dist/assets/{Preview-DZav37Rr.js → Preview-CX3thmz9.js} +1 -1
  36. package/dist/assets/{QBOConnectionScreen-CFjf4K4G.js → QBOConnectionScreen-s6A9jd5F.js} +1 -1
  37. package/dist/assets/{ReimbursementApprovalRoutes-wji5Pto4.js → ReimbursementApprovalRoutes-B1Eaf8R5.js} +1 -1
  38. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-CTZoqGq7.js → ReimbursementApprovalRuleDetailScreen-CfVvNkpm.js} +1 -1
  39. package/dist/assets/{ReimbursementRoutes-BXSgYgvu.js → ReimbursementRoutes-D6Wh5Zab.js} +5 -5
  40. package/dist/assets/{ReportsRoutes-D8DcIWIY.js → ReportsRoutes-Dqg6U4z6.js} +1 -1
  41. package/dist/assets/RewardsRoutes-Z2oqn2Mz.js +1 -0
  42. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-LeNZfW8d.js → ScheduleDetailsPrepaidExpensesScreen-BT1fazQP.js} +4 -4
  43. package/dist/assets/{ScreenRoutes-Cos18eCM.js → ScreenRoutes-BfvWo8n7.js} +2 -2
  44. package/dist/assets/{SettingsRoutes-BihC_GSv.js → SettingsRoutes-BPqAraN0.js} +6 -6
  45. package/dist/assets/{SetupPagesScreen-BcKU6v8h.js → SetupPagesScreen-CdL3mWmh.js} +5 -5
  46. package/dist/assets/SignInScreen-D37W4Vu3.js +1 -0
  47. package/dist/assets/{SignOutScreen-D88s-w1L.js → SignOutScreen-QYzOToVV.js} +1 -1
  48. package/dist/assets/{TaskListScreen-CuSeckK9.js → TaskListScreen-IpjmQCZM.js} +2 -2
  49. package/dist/assets/{TaskRoutes-BWIgySSz.js → TaskRoutes-BSuBns5c.js} +2 -2
  50. package/dist/assets/TransactionDetailRoutes-DVGqIG1K.js +1 -0
  51. package/dist/assets/{TransactionDetailScreen-8aqi-OdB.js → TransactionDetailScreen-ztNW1t0S.js} +2 -2
  52. package/dist/assets/{TransactionListRoutes-CS2LeT-j.js → TransactionListRoutes-FBoKU5cp.js} +1 -1
  53. package/dist/assets/{TreasuryRoutes-CRBadR0F.js → TreasuryRoutes-CCybuieJ.js} +5 -5
  54. package/dist/assets/{VendorsRoutes-CAJ7O3lZ.js → VendorsRoutes-TUOD3QZ-.js} +10 -10
  55. package/dist/assets/{WiseConfirmationScreen-DI--nS2N.js → WiseConfirmationScreen-DmBQRJcI.js} +1 -1
  56. package/dist/assets/{ZeniAccountRoutes-DJcNWG3h.js → ZeniAccountRoutes-Cy6oQuAU.js} +7 -7
  57. package/dist/assets/{ZeniAccountStatementScreen-ZO6aHLYc.js → ZeniAccountStatementScreen-BqYGkSqb.js} +1 -1
  58. package/dist/assets/{accountMappingHelper-DkWE8zWp.js → accountMappingHelper-B7U2cCqS.js} +1 -1
  59. package/dist/assets/{analytics-Vv7iwE-7.js → analytics-CwJdwpYA.js} +1 -1
  60. package/dist/assets/{analyticsHelper-R0vHRTYv.js → analyticsHelper-dK3DOCZ4.js} +1 -1
  61. package/dist/assets/{core-FnF-Uc4O.js → core-BmuD0S3N.js} +1 -1
  62. package/dist/assets/{decodeURIComponentSafe-Dcy3wJS-.js → decodeURIComponentSafe-BxKRdZp_.js} +1 -1
  63. package/dist/assets/{dnd-r2xkhVF6.js → dnd-DlE2O-fD.js} +1 -1
  64. package/dist/assets/{empty-ClAnc2XI.js → empty-C4N1sGNA.js} +1 -1
  65. package/dist/assets/{empty-DQ1o_QD4.js → empty-DWNwnBUu.js} +1 -1
  66. package/dist/assets/{emptyVideoElement-C_Q7qtAB.js → emptyVideoElement-GiQdhxCl.js} +1 -1
  67. package/dist/assets/{epic-B5eMa5H9.js → epic-h6DZWVA3.js} +1 -1
  68. package/dist/assets/{expenseAutomationHelper-VQqpchU0.js → expenseAutomationHelper-DgFVpBsB.js} +1 -1
  69. package/dist/assets/{getLocaleForTenant-Dd-6HaKf.js → getLocaleForTenant-DnI7jDkK.js} +1 -1
  70. package/dist/assets/{index-Dy5h_qvb.js → index-6JALuOxS.js} +1 -1
  71. package/dist/assets/{index-CvV3WXW-.js → index-B10C_aE8.js} +1 -1
  72. package/dist/assets/{index-Dm2xksv6.js → index-CG5GDUuE.js} +1 -1
  73. package/dist/assets/{index-Cq4yq1Os.js → index-CKmtWpp4.js} +1 -1
  74. package/dist/assets/{index-bwrXkHAd.js → index-CSXIBJ_M.js} +25646 -25642
  75. package/dist/assets/{index-D-iD3FJs.js → index-CpsRiKNg.js} +2 -2
  76. package/dist/assets/{index-DwQy9RhB.js → index-DIFunX7I.js} +1 -1
  77. package/dist/assets/{index-DrlR6PPl.js → index-YvDKgUSm.js} +1 -1
  78. package/dist/assets/{lexical-DP-ZRRwN.js → lexical-BTBf0x2F.js} +1 -1
  79. package/dist/assets/{liveblocks-Bqt_XhHh.js → liveblocks-DFmQJs9l.js} +1 -1
  80. package/dist/assets/{lottie-Blhfr6ao.js → lottie-C08AxeP4.js} +1 -1
  81. package/dist/assets/{mui-gvvniK3d.js → mui-BM_3_akP.js} +1 -1
  82. package/dist/assets/{pathToGoBack-oY27p9ir.js → pathToGoBack-DSMtoOXp.js} +1 -1
  83. package/dist/assets/{pdf-DycQGpzo.js → pdf-i0V0lBaH.js} +3 -3
  84. package/dist/assets/{pdf-lib-CefI83Yi.js → pdf-lib-D5sCwB4Y.js} +1 -1
  85. package/dist/assets/{plaid-G8Bxl_Fw.js → plaid-C449LRBC.js} +1 -1
  86. package/dist/assets/{pusher-8Yj5cgDA.js → pusher-B_CEqXn9.js} +1 -1
  87. package/dist/assets/{react-BsNtT8x0.js → react-B6OqNeSK.js} +1 -1
  88. package/dist/assets/{react-BLuOwq7p.js → react-CAZE7TkS.js} +1 -1
  89. package/dist/assets/{react-DLm-_UY4.js → react-CIMZmDkd.js} +1 -1
  90. package/dist/assets/{react-BQrSoQIz.js → react-CQLAjY1C.js} +1 -1
  91. package/dist/assets/{react-CrQ-7Thk.js → react-CS2rsvM8.js} +1 -1
  92. package/dist/assets/{react-DCZHvq8F.js → react-D5102Hin.js} +1 -1
  93. package/dist/assets/{recharts-CUhuZXcR.js → recharts-CoBgaVyZ.js} +1 -1
  94. package/dist/assets/{routePaths-XPpOvOzg.js → routePaths-V8Zj2E12.js} +1 -1
  95. package/dist/assets/{sentry-2yczjdjC.js → sentry-C-wepUYh.js} +1 -1
  96. package/dist/assets/{url-BbsAgfML.js → url-DJ3IUZcx.js} +1 -1
  97. package/dist/assets/{url-Q0BVeI-7.js → url-pet6UZww.js} +1 -1
  98. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-BuRMwNzi.js → useAiCfoDashboardSuggestedQuestionsChips-BpFQvcSU.js} +1 -1
  99. package/dist/assets/useAskAiCfoHostNavButtonProps-9-Fy3nUU.js +1 -0
  100. package/dist/assets/{useChargeCardPusherEvents-Ddwn2FkP.js → useChargeCardPusherEvents-D6rHv_zT.js} +1 -1
  101. package/dist/assets/{useDeviceId-CcCyWvJO.js → useDeviceId-eYjWXyCF.js} +1 -1
  102. package/dist/assets/{useEmailConnectResultRefresh-U6xqHqCu.js → useEmailConnectResultRefresh-CEyJgwAN.js} +1 -1
  103. package/dist/assets/{useInitialThreadRequest-34RRXCJw.js → useInitialThreadRequest-D9t0YCjO.js} +1 -1
  104. package/dist/assets/useTaskManagerAccess-BxZJAj1T.js +1 -0
  105. package/dist/assets/{utils-BW8U-ATx.js → utils-CJuELQS5.js} +1 -1
  106. package/dist/assets/{withTransactionSidePanel-t6MfqVMB.js → withTransactionSidePanel-CzeazBMg.js} +2 -2
  107. package/dist/assets/{zeni-epic-state-Ch0HFr9W.js → zeni-epic-state-BzURQeUK.js} +3 -3
  108. package/dist/index.html +1 -1
  109. package/package.json +4 -4
  110. package/dist/assets/AddressRoutes-BMU5TI0a.js +0 -1
  111. package/dist/assets/AddressScreen-DA1bz_-j.js +0 -9
  112. package/dist/assets/CompanyPassportScreen-CuQNhw3x.js +0 -1
  113. package/dist/assets/ConnectionAuthScreen-DmrKwj0N.js +0 -11
  114. package/dist/assets/CustomerOnboardingAuthScreen-DmUfpsI4.js +0 -1
  115. package/dist/assets/DomesticWireDetailScreen-Dg67Jf2O.js +0 -18
  116. package/dist/assets/FeaturePreviewScreen-yBOR8JJ_.js +0 -1
  117. package/dist/assets/MagicLinkSignInScreen-DNDCtMXp.js +0 -12
  118. package/dist/assets/MobileAppDrawer-Bpo9SSXK.js +0 -1
  119. package/dist/assets/NotFoundScreen-Clm0X0fM.js +0 -1
  120. package/dist/assets/PerformanceRoutes-BBm_0BI7.js +0 -1
  121. package/dist/assets/RewardsRoutes-C0dfEIeV.js +0 -1
  122. package/dist/assets/SignInScreen-Cc6Sl09T.js +0 -1
  123. package/dist/assets/TransactionDetailRoutes-BOzt51Vz.js +0 -1
  124. package/dist/assets/useAskAiCfoHostNavButtonProps-B0woZnci.js +0 -1
  125. package/dist/assets/useTaskManagerAccess-FHaU5wf5.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-bwrXkHAd.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-2yczjdjC.js"><link rel="modulepreload" crossorigin href="/assets/core-FnF-Uc4O.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-Ch0HFr9W.js"><link rel="modulepreload" crossorigin href="/assets/mui-gvvniK3d.js"><link rel="modulepreload" crossorigin href="/assets/analytics-Vv7iwE-7.js"><link rel="modulepreload" crossorigin href="/assets/utils-BW8U-ATx.js"><link rel="stylesheet" crossorigin href="/assets/index-BhC2LNQw.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-CSXIBJ_M.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-C-wepUYh.js"><link rel="modulepreload" crossorigin href="/assets/core-BmuD0S3N.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-BzURQeUK.js"><link rel="modulepreload" crossorigin href="/assets/mui-BM_3_akP.js"><link rel="modulepreload" crossorigin href="/assets/analytics-CwJdwpYA.js"><link rel="modulepreload" crossorigin href="/assets/utils-CJuELQS5.js"><link rel="stylesheet" crossorigin href="/assets/index-BhC2LNQw.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.3.36-qa",
3
+ "version": "5.3.37-dev",
4
4
  "files": [
5
5
  "dist/**/*"
6
6
  ],
@@ -28,9 +28,9 @@
28
28
  "@sentry/core": "^9.42.1",
29
29
  "@sentry/react": "^9.42.1",
30
30
  "@stripe/stripe-js": "^4.4.0",
31
- "@zeniai/client-analytics": "2.0.89",
32
- "@zeniai/client-epic-state": "5.2.38",
33
- "@zeniai/web-components": "4.3.72",
31
+ "@zeniai/client-analytics": "2.0.90",
32
+ "@zeniai/client-epic-state": "5.2.39",
33
+ "@zeniai/web-components": "4.3.73",
34
34
  "color": "3.1.3",
35
35
  "crypto-js": "4.2.0",
36
36
  "dnd-core": "^16.0.1",
@@ -1 +0,0 @@
1
- import{j as e}from"./liveblocks-Bqt_XhHh.js";import{A as o}from"./AddressScreen-DA1bz_-j.js";import i from"./NotFoundScreen-Clm0X0fM.js";import"./sentry-2yczjdjC.js";import{n as s,o as r}from"./core-FnF-Uc4O.js";import"./zeni-epic-state-Ch0HFr9W.js";import"./recharts-CUhuZXcR.js";import"./index-bwrXkHAd.js";import"./mui-gvvniK3d.js";import"./analytics-Vv7iwE-7.js";import"./plaid-G8Bxl_Fw.js";import"./dnd-r2xkhVF6.js";import"./stripe-cKAAJElX.js";import"./lottie-Blhfr6ao.js";import"./lexical-DP-ZRRwN.js";import"./pdf-DycQGpzo.js";import"./utils-BW8U-ATx.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new t.Error().stack;d&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[d]="31d0e0e8-dcf1-419d-b2be-6dc359df28c9",t._sentryDebugIdIdentifier="sentry-dbid-31d0e0e8-dcf1-419d-b2be-6dc359df28c9")}catch{}})();function _(){return e.jsxs(s,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(o,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(o,{})}),e.jsx(r,{path:"*",element:e.jsx(i,{})})]})}export{_ as default};
@@ -1,9 +0,0 @@
1
- import{j as n}from"./liveblocks-Bqt_XhHh.js";import{a as h}from"./sentry-2yczjdjC.js";import{h as T,u as P,g as E,i as j,j as U,l as D}from"./core-FnF-Uc4O.js";import{a1 as B,E as M,z as $,Q as L,a7 as K,a8 as z,j as C,U as S,a3 as F,Y as b,a4 as G}from"./index-bwrXkHAd.js";import{UC as _,io as R,fE as N,UD as O,c8 as V,UE as q,mG as H}from"./zeni-epic-state-Ch0HFr9W.js";import{n as Q}from"./mui-gvvniK3d.js";import Y from"./NotFoundScreen-Clm0X0fM.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="44f44097-d247-41e2-adcf-72134b7a0bfd",e._sentryDebugIdIdentifier="sentry-dbid-44f44097-d247-41e2-adcf-72134b7a0bfd")}catch{}})();const J=Q.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
- `,W=D((function(e,s){const{addressId:o,isSubPage:i,addressType:c}=s,l=N(e),a=s.roleMap!=null&&O(s.roleMap),d=i||c==="user_address"||V(l?.userRole??[])||a?void 0:"readonly";if(o==null){const t=q(c,e);return{addressToEdit:t?.addressToCreate,loadingState:t?.status?.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:d,isSubPage:i,dontShowSaveConfirmationPopup:s.dontShowSaveConfirmation}}const r=_(e,o);return{addressToEdit:r.address,loadingState:r.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:d}}),(function(e,s){const{navigate:o,location:i,addressType:c}=s,l=a=>{if(a==="express-pay")o("../express-pay/add-wire");else{const d=i.state,r=G(d?.pathnameStackToGoBack);let t=r.poppedPathname??v();const u=d?.queryParams;if(u){const g=new URLSearchParams(u).toString();g&&(t=`${t}?${g}`)}o(t,{state:{pathnameStackToGoBack:r.newStack}})}};return{onSubmitHandler:a=>{const d=X(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(s.bankAccountContext)},onCancel:()=>{l(s.bankAccountContext)}}}))(F);function ne({isSubPage:e,hideAddressSubTitle:s=!1,hideAddressBackButton:o=!1,dontShowSaveConfirmation:i,accountContext:c,addressTypeParam:l}){const a=T(),d=P(),r=E(),{addressId:t,addressType:u}=j(),g=B(),I=M(),k=$.getSignedInUser(),[f,w]=h.useState(t==null),p=U((m=>t!=null?_(m,t).fetchState:"Not-Started")),x=L();if(k==null)throw Error("Can't access address page without signing in...");const A=m=>m.trackPageLoaded(t!=null?S.Event.editAddress:S.Event.addAddress),y=l??u;return h.useEffect((()=>{f||t==null||(w(!0),d(R(t,!1)))}),[f,t,d]),y==null||y.match(/(user_address|company_address|company_registered_address|vendor_address|officer_([1-9]|10)_address|invoicing_customer_billing_address|invoicing_subscription_shipping_address|invoicing_business_address)$/g)?!f&&p==="Not-Started"||f&&p==="In-Progress"?n.jsx(K,{fetchState:p,style:{backgroundColor:I.colors.grey5}}):t!=null&&p==="Error"?(a(`${v(1)}/new`,{replace:!0}),n.jsx(n.Fragment,{})):n.jsxs(n.Fragment,{children:[n.jsx(z,{analytics:C,onLoad:A}),n.jsx(J,{windowSize:g,children:n.jsx(W,{location:r,navigate:a,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:s,addressId:t,addressType:y,dontShowSaveConfirmation:i,bankAccountContext:c,roleMap:x?.loggedInUserRoleMap})})]}):n.jsx(Y,{})}const v=(e=2)=>{let s="../";for(let o=0;o<e;o++)s=`${s}../`;return s},X=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{ne as A,X as t};
@@ -1 +0,0 @@
1
- import{j as m}from"./liveblocks-Bqt_XhHh.js";import{a as g}from"./sentry-2yczjdjC.js";import{h as w,u as x,g as T,i as k,j as O,l as E}from"./core-FnF-Uc4O.js";import{z as C,br as F,a8 as P,j as V,U as j,r as N,bs as A,ae as L,aG as U,p as B}from"./index-bwrXkHAd.js";import{fE as h,gH as M,AY as _,gC as G,c8 as R,Xt as z,bn as Y,ul as H,u9 as X,my as Z,o7 as S,Xu as $,bE as q,cE as D,oi as J,os as K}from"./zeni-epic-state-Ch0HFr9W.js";import"./mui-gvvniK3d.js";import{d as Q}from"./routePaths-XPpOvOzg.js";import{M as W}from"./MobileAppDrawer-Bpo9SSXK.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]="66a84316-8310-478d-83d3-55f7af35c8e7",t._sentryDebugIdIdentifier="sentry-dbid-66a84316-8310-478d-83d3-55f7af35c8e7")}catch{}})();const ee=E((function(t){const a=G(t),i=C.getSignedInUser(),l=h(t),c=l.tenantId,p={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=R(l?.userRole??[])&&a.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=z(t.companyConfigState),n=t.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:a.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:a,allIndustries:e.companyIndustries??[],allNationalityCountries:n,isDisabled:f,authParams:p,filesEndPoint:`${L.fileMicroServiceBaseUrl}`,isZeniUser:Y(i)}}),(function(t,a){const{companyId:i,currentTenant:l,navigate:c,location:p}=a,{tenantEmailDomain:f}=l;return{onScheduleClick:e=>{let n=e.href;n.includes("http")||(n="https://".concat(n)),window.open(n,"_blank")},onSaveAll:()=>{t(K())},onAddressClick:e=>{const n=Q(f,e),o=B(p.state?.pathnameStackToGoBack,p.pathname);c(n,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{t(J({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:n,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=n,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:b}=r,v={companyInfo:{...n,website:u!=""&&u!=null?D(u):void 0,meetingLink:y!=""&&y!=null?D(y):void 0,industry:n.industry.selectedOption,companyIndustryType:n.companyIndustryType?.selectedOption??void 0,companySubIndustry:n.companySubIndustry?.selectedOption??void 0,businessModel:n.businessModel.selectedOption??"",companySourceOfFunds:n.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:n.companySourceOfFundsDescription??void 0,countriesOfOperations:n.countriesOfOperations?.selectedOptions?.map((I=>I.length===2?I:U(I)))??[],transactionVolume:n.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:n.transactionVolumeDescription??void 0,regulatedStatus:n.regulatedStatus??void 0,regulatedStatusDescription:n.regulatedStatusDescription??void 0,usNexus:n.usNexus??void 0,usNexusTypes:n.usNexusTypes?.selectedOptions??[],purposeOfAccount:n.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:n.purposeOfAccountDescription??void 0},incInfo:{typeOfInc:o.typeOfInc.selectedOption??"",stateOfInc:o.stateOfInc.selectedOption??"",incDate:s!=null?q(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:b.selectedOptions.map((I=>parseInt(I))),fileId:r.fileIds[0]}};t(S({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{t(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{t(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:void 0}]}))},onNewCompanyOfficerRemoved:e=>{t($(e))},onCompanyOfficerUpdated:e=>{t(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:e.userId}]}))},updateFilesEntity:e=>{t(Z({files:e}))},onDeleteFile:e=>{t(X(e))},onEditFileName:(e,n)=>{t(H(e,n.split(".")[0]))}}}))(A);function de(){const t=w(),a=x(),i=T(),{tenantEmailDomain:l}=k(),[c,p]=g.useState(!1),[f,e]=g.useState(!1),n=O((s=>s.companyViewState.passportView.fetchState)),o=O((s=>s.companyConfigState.fetchState)),r=O((s=>h(s))),d=r.companyId??C.getSignedInUserTenant(l)?.companyId;if(C.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect((()=>{c||n!=="Not-Started"||d==null||(p(!0),a(M(d)))}),[c,n,d,a]),g.useEffect((()=>{o==="Not-Started"&&a(_())}),[o,a]);const u=s=>{e(s)},y=n==="Not-Started"||n==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&n==="Error"?m.jsx(F,{onGoHome:()=>t("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(P,{analytics:V,onLoad:s=>s.trackPageLoaded(j.Event.companyPassport,N(i)?"Settings":"Company Passport")}),N(i)?m.jsx(W,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:t,location:i,isLoading:y,currentTenant:r,isSettings:N(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
@@ -1,11 +0,0 @@
1
- import{j as I}from"./liveblocks-Bqt_XhHh.js";import{a as o}from"./sentry-2yczjdjC.js";import{u as F,h as P,g as z,j as C,N as w}from"./core-FnF-Uc4O.js";import{T9 as H,fE as q,gk as G,pR as K,gL as A,gj as Q,gh as V,Tz as B,gg as O}from"./zeni-epic-state-Ch0HFr9W.js";import{u as J,z as E,L as D,G as M,K as W}from"./index-bwrXkHAd.js";import{n as X}from"./mui-gvvniK3d.js";import{P as h,a as _}from"./AccountMappingScreen-D_yJl2PL.js";import{t as Y}from"./getLocaleForTenant-Dd-6HaKf.js";import{g as Z,Q as ee}from"./QBOConnectionScreen-CFjf4K4G.js";import"./recharts-CUhuZXcR.js";import"./analytics-Vv7iwE-7.js";import"./plaid-G8Bxl_Fw.js";import"./dnd-r2xkhVF6.js";import"./stripe-cKAAJElX.js";import"./lottie-Blhfr6ao.js";import"./lexical-DP-ZRRwN.js";import"./pdf-DycQGpzo.js";import"./utils-BW8U-ATx.js";import"./MobileAppDrawer-Bpo9SSXK.js";import"./InboxNotificationsProvider-DpFe93lp.js";import"./useTaskManagerAccess-FHaU5wf5.js";import"./accountMappingHelper-DkWE8zWp.js";import"./empty-ClAnc2XI.js";import"./pdf-lib-CefI83Yi.js";import"./index-DrlR6PPl.js";import"./url-Q0BVeI-7.js";import"./index-Dy5h_qvb.js";import"./decodeURIComponentSafe-Dcy3wJS-.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]="70807e25-1263-4558-9877-bc7db1a36f16",t._sentryDebugIdIdentifier="sentry-dbid-70807e25-1263-4558-9877-bc7db1a36f16")}catch{}})();const te=X.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 ${W.sp1} ${t.theme.colors.dropShadowNormal}`};
11
- `;function we(){const t=F(),i=P(),v=z(),{setLoading:c,clearAllLoading:m}=J(),S=o.useRef(!1),b=o.useRef(!1),N=o.useRef(!1),p=o.useRef(!1),{code:L,realmId:U,state:$}=Z(v.search),f=L!==""&&U!==""&&$!=="";f&&(N.current=!0);const j=sessionStorage.getItem(h),u=j===_.pending,R=j===_.ready,x=C((s=>H(s))),e=C((s=>q(s))),n=C((s=>s.tenantState.fetchState)),r=C((s=>s.tenantState.activeTenantFetchState.fetchState)),a=E.getSignedInUser(),g=E.getActiveTenantForUser()?.tenantId,l=e?.externalConnections?.fetchState,d=e?.externalConnections?.saveConnectionState,y=e.externalConnections?.accounting[0]?.isValid;o.useLayoutEffect((()=>{c(D.CONNECTION_AUTH)}),[c]),o.useEffect((()=>{S.current||a==null||g==null||(S.current=!0,n==="Completed"||r!=="Not-Started"&&r!=="Error"||(c(D.TENANT_FETCHING),t(G(a.userId,g))))}),[S,n,c]),o.useEffect((()=>{e.tenantId==null&&!b.current&&a!=null&&(b.current=!0,!(g==null||g!=null&&(r==="Completed"||r==="Error"))||n!=="Not-Started"&&n!=="Error"||t(K(a.userId)))}),[b,n,r]),o.useEffect((()=>{a==null||e?.tenantId==null||e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||l==="In-Progress"||d!=="Error"||(c(D.CONNECTION_AUTH),t(A(a.userId,e.tenantId)))}),[d]),o.useEffect((()=>{n!=="Completed"&&r!=="Completed"||a==null||e?.tenantId==null||(t(Q(e.tenantId)),E.saveActiveTenantDomainForUser(e.tenantEmailDomain),V(a?.userId,a?.zeniSessionId,e.tenantId),M.updateAppLocaleID(Y(B(e))),e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||l==="In-Progress"||a==null||e==null||t(A(a.userId,e.tenantId)))}),[n,r,l]),o.useEffect((()=>{x.tenantsCoreDetailsInOrder.length>0&&n==="Completed"&&E.saveSignedInUserTenants(x.tenantsCoreDetailsInOrder)}),[x.tenantsCoreDetailsInOrder.length,n]);const T=e==null||n!=="Completed"&&r!=="Completed"||l!=="Completed";if(o.useEffect((()=>{n!=="Completed"&&n!=="Error"||r!=="Completed"&&r!=="Error"||l!=="Completed"&&l!=="Error"||m()}),[n,r,l]),o.useEffect((()=>{u&&d==="In-Progress"&&(p.current=!0)}),[u,d]),o.useEffect((()=>{if(!u||T)return;const s=e.tenantEmailDomain!=null?`/${e.tenantEmailDomain}/settings/accounting`:"/";return p.current&&d==="Completed"?(sessionStorage.setItem(h,_.ready),m(),void i(s,{replace:!0})):p.current&&d==="Error"?(sessionStorage.removeItem(h),t(O({messageSection:"accounting_projects_qbo_reconnect_failed",messageText:"failed",type:"error"})),m(),void i(s,{replace:!0})):void(f||N.current||p.current||y!==!0||(sessionStorage.removeItem(h),t(O({messageSection:"accounting_projects_qbo_reconnect_failed",messageText:"failed",type:"error"})),m(),i(s,{replace:!0})))}),[u,T,d,f,y,e.tenantEmailDomain,m,t,i]),T)return null;if(f||y!==!0)return I.jsx(te,{children:I.jsx(ee,{})});if(u)return null;const k=e.tenantEmailDomain!=null?`/${e.tenantEmailDomain}/settings/accounting`:"/";return R?I.jsx(w,{to:k,replace:!0}):I.jsx(w,{to:"/",replace:!0})}export{we as default};
@@ -1 +0,0 @@
1
- import{j as i}from"./liveblocks-Bqt_XhHh.js";import{z as a}from"./index-bwrXkHAd.js";import{g as n}from"./QBOConnectionScreen-CFjf4K4G.js";import"./sentry-2yczjdjC.js";import{g as p,N as s}from"./core-FnF-Uc4O.js";import"./zeni-epic-state-Ch0HFr9W.js";import"./recharts-CUhuZXcR.js";import"./mui-gvvniK3d.js";import"./analytics-Vv7iwE-7.js";import"./plaid-G8Bxl_Fw.js";import"./dnd-r2xkhVF6.js";import"./stripe-cKAAJElX.js";import"./lottie-Blhfr6ao.js";import"./lexical-DP-ZRRwN.js";import"./pdf-DycQGpzo.js";import"./utils-BW8U-ATx.js";import"./empty-ClAnc2XI.js";import"./pdf-lib-CefI83Yi.js";import"./index-DrlR6PPl.js";import"./url-Q0BVeI-7.js";import"./index-Dy5h_qvb.js";import"./decodeURIComponentSafe-Dcy3wJS-.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]="c18cd95e-770d-4ff7-92bf-3374948ea538",t._sentryDebugIdIdentifier="sentry-dbid-c18cd95e-770d-4ff7-92bf-3374948ea538")}catch{}})();const U=()=>{const t=p(),{code:o,realmId:r,state:e}=n(t.search),d=a.getSignedInUser()?.userId??"";if(f(o,r,e,d)===!0){const m=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return i.jsx(s,{to:m})}return i.jsx(s,{to:"../../"})},f=(t,o,r,e)=>t!=""&&o!=""&&r!=""&&e!=null&&e!="";export{U as default,f as hasValidParams};
@@ -1,18 +0,0 @@
1
- import{j as l}from"./liveblocks-Bqt_XhHh.js";import{h as w,g as C,j as h,l as E,i as V}from"./core-FnF-Uc4O.js";import{Y6 as k,Yd as _,gF as K,gE as M,gD as W,kO as X,W5 as q,uc as J,fE as B,XF as D,kM as F,Y7 as S,Yg as T,kK as G,l5 as j}from"./zeni-epic-state-Ch0HFr9W.js";import{bM as L,a1 as N,O as R,z as O,E as U,a4 as p,y as v,a7 as Y,bN as Q,K as Z,bO as ee,p as te}from"./index-bwrXkHAd.js";import{n as z}from"./mui-gvvniK3d.js";import"./sentry-2yczjdjC.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]="8cbc9bb5-3a03-4361-9718-584897e68123",e._sentryDebugIdIdentifier="sentry-dbid-8cbc9bb5-3a03-4361-9718-584897e68123")}catch{}})();const ne=E(null,(function(e,t){return{onSaveVendor:n=>{e(X(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(q("common")),n!=null&&e(J(n))},onGetOtp:n=>{e(W(n,"BillPayVendor"))},onResendOtp:n=>{e(M(n,"BillPayVendor"))},onVerifyOtp:(n,a)=>{e(K(n,a,"BillPayVendor"))},onVerifyOtpSuccess:(n,a,o)=>{e(_(n,a,o))}}}))(L);function H({vendorId:e,billId:t,isExpressPayPage:n}){const a=w(),o=C(),s=h((r=>k(r,e)));return l.jsx(ne,{location:o,navigate:a,vendorId:e,billId:t,vendorViewDetails:s,isExpressPayPage:n??!1})}const ae=z.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
- `,oe=E((function(e,t){const{vendorId:n,billId:a}=t,o=k(e,n),s=D(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,a);return{billId:a,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}}),(function(e,t){const{navigate:n,location:a,vendorId:o}=t;return{onFetchBankName:s=>{e(j(s))},onSaveHandler:s=>{e(G(t.bankAccountContext,s,"standard",o))},onCancel:()=>{(()=>{const s=p(a.state?.pathnameStackToGoBack),r=s.poppedPathname??P();n(r,{state:{pathnameStackToGoBack:s.newStack}})})(),e(S())},onACHDetailsUpdated:s=>{const{bankAccountSection:r}=s;e(T({data:r}))},onBackClick:()=>{if(e(F({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")n("../",{relative:"path"});else{const s=p(t.location.state?.pathnameStackToGoBack),r=s.poppedPathname??P(0);t.navigate(r,{state:{pathnameStackToGoBack:s.newStack}})}e(S())}}}))(Q);function me({vendorIdParam:e,accountContext:t}){const n=w(),a=C(),o=N(),{vendorId:s,billId:r}=V(),d=e??s,{useFeatureGate:c}=R(),i=O.getSignedInUser(),b=h((u=>B(u))),g=U(),x=p(a.state?.pathnameStackToGoBack),m=t??(x.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),f=h((u=>k(u,d))),{isFeatureEnabled:I}=c(v.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=c(v.isDepositAccountsFeatureEnabled);if(i==null)throw Error("Can't access address page without signing in...");return m==="billDetail"&&f.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(Y,{fetchState:f.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:g.colors.grey5}}):l.jsxs(ae,{windowSize:o,children:[l.jsx(H,{vendorId:d,billId:r}),l.jsx(oe,{location:a,navigate:n,billId:r,vendorId:d,currentTenant:b,bankAccountContext:m,isVendorRecommendationEnabled:I,isZeniAccountsFeatureEnabled:y})]})}const P=(e=2)=>{let t="../";for(let n=0;n<e;n++)t=`${t}../`;return t},fe=(e,t,n)=>{let a=`/${e}/bill/${encodeURIComponent(t)}`;return n=="draft"&&(a+="/edit"),a},he=e=>`/${e}/bills`,ke=(e,t)=>{let n=`/${e}/bill`;return n=t!=null?n.concat(`/${t}/edit`):n.concat("/new"),n},A=(e,t,n,a)=>{let o=`/${e}/bill`;return o+=n!=null?`/${n}/edit/vendor`:"/new/vendor",o+=a!=null?`/${a}/edit/${t}`:`/create/${t}`,o};function Se(e,t,n){return A(e,"ach",t,n)}function ve(e,t,n){return A(e,"domestic",t,n)}function ge(e,t,n){return A(e,"international",t,n)}const se=(e,t,n)=>{let a=`/${e}/bill/`;return a=n!=null?a.concat(`${encodeURIComponent(n)}/${t}/`):a.concat(`new/${t}/`),a},ce=z.div`
10
- display: flex;
11
- height: 100vh;
12
- width: 100%;
13
- flex: 1 1 auto;
14
- flex-direction: column;
15
- align-items: center;
16
- background-color: ${e=>e.theme.colors.grey4};
17
- box-shadow: ${e=>`0px 2px ${Z.sp1} ${e.theme.colors.dropShadowNormal}`};
18
- `,re=E((function(e,t){const{vendorId:n,billId:a}=t,o=k(e,n),s=D(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,a);return{billId:a,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}}),(function(e,t){const{billId:n,navigate:a,location:o,vendorId:s,currentTenant:r}=t,{tenantEmailDomain:d}=r;return{onFetchBankName:c=>{e(j(c))},onSaveHandler:c=>{e(G(t.bankAccountContext,c,"us-domestic",s))},onWireDetailsUpdated:c=>{const{bankAccountSection:i}=c;e(T({data:i}))},onCancel:()=>{(()=>{const c=p(o.state?.pathnameStackToGoBack),i=c.poppedPathname??$();a(i,{state:{pathnameStackToGoBack:c.newStack}})})(),e(S())},onAddressClick:c=>{if(t.bankAccountContext==="express-pay")a("./add-address");else{const i=se(d,c,n),b=te(o.state?.pathnameStackToGoBack,o.pathname);a(i,{state:{pathnameStackToGoBack:b}})}},onBackClick:()=>{if(e(F({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")a("../",{relative:"path"});else{const c=p(t.location.state?.pathnameStackToGoBack),i=c.poppedPathname??$(0);t.navigate(i,{state:{pathnameStackToGoBack:c.newStack}})}e(S())}}}))(ee);function xe({vendorIdParam:e,accountContext:t}){const n=w(),a=C(),o=N(),{vendorId:s,billId:r}=V(),d=e??s,c=O.getSignedInUser(),{useFeatureGate:i}=R(),b=U(),g=h((u=>B(u))),x=p(a.state?.pathnameStackToGoBack),m=t??(x.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),f=h((u=>k(u,d))),{isFeatureEnabled:I}=i(v.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=i(v.isDepositAccountsFeatureEnabled);if(c==null)throw Error("Can't access address page without signing in...");return m==="billDetail"&&f.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(Y,{fetchState:f.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:b.colors.grey5,boxShadow:`0px 2px ${Z.sp1} ${b.colors.dropShadowNormal}`}}):l.jsxs(ce,{windowSize:o,children:[l.jsx(H,{vendorId:d,billId:r}),l.jsx(re,{location:a,navigate:n,billId:r,vendorId:d,currentTenant:g,bankAccountContext:m,isVendorRecommendationEnabled:I,isZeniAccountsFeatureEnabled:y})]})}const $=(e=2)=>{let t="../";for(let n=0;n<e;n++)t=`${t}../`;return t};export{me as A,xe as D,H as V,fe as a,se as b,ke as c,ve as d,he as g,ge as i,Se as v};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-Bqt_XhHh.js";import{a as r}from"./sentry-2yczjdjC.js";import{aw as d,ax as l,s as p,a4 as m}from"./index-bwrXkHAd.js";import"./mui-gvvniK3d.js";import c from"./NotFoundScreen-Clm0X0fM.js";import{h as u,g as b}from"./core-FnF-Uc4O.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]="052e3476-042d-44ff-b15b-67fe1524a52f",e._sentryDebugIdIdentifier="sentry-dbid-052e3476-042d-44ff-b15b-67fe1524a52f")}catch{}})();const _=()=>{const e=u(),a=b(),t=r.useCallback((()=>{window.open("https://www.zeni.ai/demo/request","_blank")}),[]),f=r.useCallback((()=>{(()=>{const n=m(a.state?.pathnameStackToGoBack),i=n.poppedPathname??k();e(i,{state:{pathnameStackToGoBack:n.newStack}})})()}),[]),o=d(a.pathname);return o!=null?s.jsx(l,{menuItem:p(o),onDemoClick:t,onGoBack:f}):s.jsx(c,{})},k=(e=2)=>{let a="../";for(let t=0;t<e;t++)a=`${a}../`;return a};export{_ as F};
@@ -1,12 +0,0 @@
1
- import{j as u}from"./liveblocks-Bqt_XhHh.js";import{a as g}from"./sentry-2yczjdjC.js";import{u as O,g as _,h as w,t as A,j as l,N as L}from"./core-FnF-Uc4O.js";import{z as r,E as M,G as P,T as V,j as N,U as G,_ as W,$,W as R}from"./index-bwrXkHAd.js";import{fE as q,Tb as B,TE as H,Tv as J,gh as K,gj as Q,TA as X,gT as Y,di as Z,TF as ee,TG as te}from"./zeni-epic-state-Ch0HFr9W.js";import{n as ne}from"./mui-gvvniK3d.js";import{u as ae}from"./useDeviceId-CcCyWvJO.js";import{f as se}from"./analyticsHelper-R0vHRTYv.js";import{t as ie}from"./getLocaleForTenant-Dd-6HaKf.js";import"./recharts-CUhuZXcR.js";import"./analytics-Vv7iwE-7.js";import"./plaid-G8Bxl_Fw.js";import"./dnd-r2xkhVF6.js";import"./stripe-cKAAJElX.js";import"./lottie-Blhfr6ao.js";import"./lexical-DP-ZRRwN.js";import"./pdf-DycQGpzo.js";import"./utils-BW8U-ATx.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]="6a1c68ae-d75d-4b31-ade5-77328376a324",t._sentryDebugIdIdentifier="sentry-dbid-6a1c68ae-d75d-4b31-ade5-77328376a324")}catch{}})();const E=(t,s)=>t!=null&&t.length>0&&s==="magic_links";function Ee(){const t=O(),s=_(),f=w(),[k]=A(),n=k.get("token"),p=k.get("stytch_token_type"),m=r.getMagicLinkCodeVerifier(),i=ae(),{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)),h=l((e=>e.tenantState.signInState)),I=l((e=>e.tenantState.magicLinkSignInFetchState.fetchState)),a=l((e=>e.tenantState.loggedInUser)),o=l((e=>q(e))),b=l((e=>B(e))),D=r.getSignedInUser(),T=M().mode;g.useEffect((()=>{a?.zeniSessionId==null&&n!=null&&E(n,p)&&i!=null&&m!=null&&(r.saveMagicLinkTriggered(n),t(H(n,i,m)))}),[n,p,t,i,m,a?.zeniSessionId]),g.useEffect((()=>{h!=="In-Progress"||S!=="Completed"&&y!=="Completed"||a?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(a,a.zeniSessionId),r.saveSignedInUserTenants(J(b.tenantsInOrder),a.zeniSessionId),K(a.userId,a.zeniSessionId,o.tenantId),t(Q(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(X("Completed")),P.updateAppLocaleID(ie(o)),se(a,o,T,void 0,b.tenantsInOrder),Y().then((()=>{const e=R();e!=null&&V(e)})),setTimeout((()=>{N.trackLogin(G.Event.loginSuccess,"email",Z(o.productSettings))}),2e3))}),[h,S,y,a,o,b,T,s.state,t]);const j=g.useCallback((()=>{f("/signin/auth")}),[f]),F=g.useCallback((()=>{i!=null&&d!=null&&c!=null&&t(ee(i,c,d))}),[i,d,t,c]),U=g.useCallback((e=>{i!=null&&n!=null&&c!=null&&d!=null&&t(te(e,i,c,d))}),[i,n,t,c,d]);if(I==="Completed"&&d!=null)return u.jsx(W,{phoneNumber:x,verifyOtpFetchState:z.fetchState,resendVerifyDeviceOTPFetchState:C,onResendOtp:F,onVerifyOtp:U,onCancelVerifyDevice:j});if(h==="In-Progress"&&S==="Completed"&&a?.zeniSessionId!=null&&o!=null||D!=null){const e=s.state?.origin??"/";return u.jsx(L,{to:e,state:{...s.state,origin:""}})}if(!E(n,p)||m==null||I==="Error"){const e=s.state?.origin??"/",v=n!=null&&r.getLastUsedMagicLinkToken()===n;return u.jsx(L,{to:e,state:{...s.state,origin:"",magicLinkAlreadyUsed:v,magicLinkExpired:!v&&(r.isMagicLinkTriggered(n??"")||I==="Error"&&a?.zeniSessionId==null)}})}return u.jsx(oe,{"data-testid":"smooth-loader",children:u.jsx($,{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{Ee as default};
@@ -1 +0,0 @@
1
- import{j as B}from"./liveblocks-Bqt_XhHh.js";import{a as m}from"./sentry-2yczjdjC.js";import{u as te,j as t,i as $e,g as Ge,h as Me,q as _}from"./core-FnF-Uc4O.js";import{fE as ne,Tc as xe,Td as se,g8 as Ne,fD as Pe,Tm as Re,Tf as Ve,Tg as je,p_ as Oe,gl as Le,Tj as h,To as Ue,Tp as Q,gm as Ze,Tq as qe,Dt as ze,h0 as He,cV as Ye,Tr as We,g7 as Je,gn as Ke}from"./zeni-epic-state-Ch0HFr9W.js";import{w as Qe,i as Xe,Z as ea,O as aa,c as ta,e as na,u as sa,y as c,f as oa,g as ia,z as ra,d as da,k as ca,l as la,v as ua,q as ma,r as X,L as fa,H as ba,I as ha,p as S,j as ee,B as pa,M as ae,D as ga,F as Sa}from"./index-bwrXkHAd.js";import{D as Ta}from"./mui-gvvniK3d.js";import{u as ka}from"./InboxNotificationsProvider-DpFe93lp.js";import{u as Ea}from"./useTaskManagerAccess-FHaU5wf5.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new l.Error().stack;i&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[i]="b7b88097-db6f-478a-942f-3a6b62c56091",l._sentryDebugIdIdentifier="sentry-dbid-b7b88097-db6f-478a-942f-3a6b62c56091")}catch{}})();const Ca=Qe((({isAppContentDrawerOpen:l,handleDrawerToggle:i})=>{const{tenantEmailDomain:s}=$e(),a=Ge(),T=ea(),n=Me(),F=Ne(),r=te(),{useFeatureGate:d}=aa(),p=ta(),{isTaskManagerAccessEnabled:k}=Ea(p),o=t((e=>ne(e))),oe=o.masterTOSInfo?.isMasterTOSAccepted??!1,$=t((e=>Pe(e))),{status:ie}=t(Re),G=$.uiState.currentChatSessionId,E=na(),{setLoading:re}=sa(),[w,M]=m.useState(void 0),v=_("/:tenantEmailDomain/dashboard")!==null,x=_("/:tenantEmailDomain/reports")!==null,f=_("/:tenantEmailDomain/onboarding/*")!==null,de=!!o.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:ce}=d(c.isChargeCardFeatureEnabled),{isFeatureEnabled:N}=d(c.isDebitCardFeatureEnabled),le=oa(o,ce,N),{isFeatureEnabled:ue}=d(c.isSettingsFeatureEnabled),P=t((e=>Ve(e))),{isFeatureEnabled:C}=d(c.isReferralFeatureEnabled),A=t((e=>je(e)));m.useEffect((()=>{E&&C&&!f&&A.fetchState==="Not-Started"&&r(Oe(!0))}),[E,C,A.fetchState,f]);const D=t((e=>e.tenantState)),me=t((e=>D.fetchState==="Completed"?Le(e):[])),g=t((e=>e.expenseAutomationViewState.selectedPeriodByTenantId)),{isFeatureEnabled:fe}=d(c.isApAgingFeatureEnabled),{isFeatureEnabled:be}=d(c.isArAgingFeatureEnabled),R=ia(),{isFeatureEnabled:he}=d(c.isDashboardSidebarHalloweenAnimationEnabled),{isFeatureEnabled:pe}=d(c.isDashboardSidebarThanksGivingAnimationEnabled),{isFeatureEnabled:ge}=d(c.isDashboardSidebarChristmasAnimationEnabled),{isFeatureEnabled:Se}=d(c.isDashboardSidebarNewYearAnimationEnabled),Te=o.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",ke=t((e=>h(e).totalUnreadCount)),Ee=t((e=>h(e).reducedFetchCountState)),V=t((e=>h(e).notificationDetailsByTab.tasks.uiState.unreadCount)),j=t((e=>h(e).notificationDetailsByTab.comments.uiState.unreadCount)),O=t((e=>h(e).notificationDetailsByTab.tasks.fetchCountState)),I=t((e=>h(e).notificationDetailsByTab.comments.fetchCountState)),{inboxNotifications:L,isLoading:U,isFetchingMore:Z,hasFetchedAll:q,fetchMore:Ce}=ka();m.useEffect((()=>{const e=setTimeout((()=>Ce?.()),0);return()=>clearTimeout(e)})),m.useEffect((()=>{if(U===!1&&Z===!1&&q===!0)if(o?.companyId!=null&&L!=null){const e=`dashboard_${o.companyId}`;M(L.filter((u=>u.roomId===e&&u.readAt==null)).length)}else M(0)}),[U,Z,q]),m.useEffect((()=>{E&&k&&!f&&O.fetchState==="Not-Started"&&F.tenantId!=null&&r(Ue("task_manager","dashboard"))}),[E,k,f,O.fetchState,F.tenantId,r]),m.useEffect((()=>{f||I.fetchState!=="Not-Started"||r(Q({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))}),[f,I.fetchState,r]),m.useEffect((()=>{w!=null&&I.fetchState==="In-Progress"&&(r(Q({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),r(se({unreadCount:w},"comments")))}),[w,I.fetchState]);const Ie={fetchStatus:Ee,count:ke},z=s!=null?ra.getSignedInUserTenant(s):null,H=t((e=>z?.tenantId!=null?Ze(e,z.tenantId):void 0)),b=[];fe===!1&&b.push("accounts_payable_aging"),be===!1&&b.push("accounts_receivable_aging"),b.push("zeni_accounts_promo_card","treasury_promo_card"),C===!1&&b.push("rewards_card"),R===!1&&b.push("expense_automation_card");const Y=t((e=>qe(e,b).fetchState)),W=t((e=>ze(e).fetchState)),ye=v&&(Y==="Completed"||Y==="Error")||x&&(W==="Completed"||W==="Error")||!v&&!x?void 0:"disabled",we=m.useMemo((()=>He(o.userRole)),[o.userRole]),ve=Ye(we),Ae=o?.rewardsLastViewedTime==null,De=p?.userEmail!=null&&P.fetchState==="Completed"&&We(P.notificationSettings,p.userEmail,N,o,k),J=da(),_e=J&&ca(a);return B.jsx(Ta,{container:window.document.body,variant:"temporary",open:l,onClose:()=>i(!1),PaperProps:{sx:{width:240,zIndex:8,borderRight:"none",backgroundImage:"none"}},ModalProps:{keepMounted:!0},children:B.jsx(la,{signedInUser:p,currentTenantId:D.currentTenantId??"",tenants:D.fetchState==="Completed"?me:H!=null?[H]:[],currentTenant:o,isTenantDropdownDisabled:ye,isSettings:X(a),isInvoicing:ma(a)&&ie==="completed",isSettingsFeatureEnabled:ue,isVendorsTabVisible:ve,isZeniAccountEnabled:de,isChargeCardEnabled:le,isTreasuryEnabled:Te,isNotificationsTabVisible:De,notificationCountDetails:Ie,isExpenseAutomationEnabledForUser:R,selectedMenu:ua(a),rewardsConfiguration:{isRewardsTabVisible:C,isRewardsAnimated:Ae,rewardsPlan:A.rewardsPlan},isAiCfoAccessEnabled:J,onNotificationIconClick:()=>{i(!1);let e=V===0&&j>0?"notifications/comments":"notifications/tasks";X(a)&&(e=V===0&&j>0?"../../notifications/comments":"../../notifications/tasks");const u=S(a.state?.pathnameStackToGoBack,a.pathname);n(e,{state:{pathnameStackToGoBack:u}})},handleCockpitClick:()=>{window.open("/cockpit")},handleLogOutClick:()=>{i(!1);const e=S(a.state?.pathnameStackToGoBack,a.pathname);n("/signout",{replace:!0,state:{pathnameStackToGoBack:e,message:"logout"}})},handleMenuChange:e=>{if(i(!1),s==null)return;if(e.type==="invoicing")return void n(`../${s}/invoicing/overview`,{state:{pathnameStackToGoBack:S(a.state?.pathnameStackToGoBack,a.pathname),referrer:"Sidebar"}});if(e.type==="ai_cfo"){if(ee.trackAICFOChatScreenStateChanged("viewed","left_menu",G??null,null),!oe)return void pa({location:a,navigate:n,mergeState:{referrer:"Sidebar"}});const y=S(a.state?.pathnameStackToGoBack,a.pathname);return void n(`/${s}/ai-cfo/explore`,{state:{pathnameStackToGoBack:y,referrer:"Sidebar"}})}const u=S(a.state?.pathnameStackToGoBack,a.pathname),K=e.type,Be=ae(K)&&K!=="command_center";if(ae(e.type)&&g[o.tenantId]!=null&&ee.trackMonthEndCloseClicked(g[o.tenantId].month,g[o.tenantId].year,"Sidebar"),Be&&g[o.tenantId]!=null){const y=g[o.tenantId];return void n(`/${s}/month_end_close_checks/review/${e.type}/${y.month}-${y.year}`,{state:{pathnameStackToGoBack:u,referrer:"Sidebar"}})}const Fe=ga(e.type);Sa(e.type)?(G!=null&&r(Ke()),n(`/${s}/ai-cfo/${e.type}`,{state:{pathnameStackToGoBack:u.slice(0,-1),referrer:"Sidebar"}})):n(`/${s}/${Fe}`,{state:{pathnameStackToGoBack:u,referrer:"Sidebar"}})},handleMyProfileClick:()=>{i(!1),n(`/${s}/settings/my_profile`)},handleReferralsClick:()=>{i(!1),n(`/${s}/rewards`)},handleBackClick:()=>{n(`/${s}/dashboard`)},handleTenantSelect:e=>{re(fa.TENANT_SWITCHING),i(!1),ba({dispatch:r,navigate:n,pathToNavigate:ha(e.tenantEmailDomain,a),selectedTenant:e,signedInUser:p})},onZeniLogoClick:()=>{T.toggle()},isAiCfo:_e,aiCfoView:$,isOnDashboard:v,updateCurrentChatSessionId:e=>{r(Je({sessionId:e,agentId:"controller"})),n(`/${s}/ai-cfo/${e}`,{state:{...a.state}})},halloweenAnimationEnabled:he,isTaskManagerAccessEnabled:k,thanksGivingAnimationEnabled:pe,christmasAnimationEnabled:ge,newYearAnimationEnabled:Se})})})),Fa=l=>{const i=te(),s=t((T=>ne(T))),a={events:s.userRoleId!=null?[`private-encrypted-${s.userRoleId}.dashboard-user-notification`]:[],eventCallback:(T,n)=>{Xe(n)&&xe(n.mode)==="dashboard"&&i(se({unreadCount:n.data.unread},"tasks"))}};return B.jsx(Ca,{...l,...a})};export{Fa as M};
@@ -1 +0,0 @@
1
- import{j as e}from"./liveblocks-Bqt_XhHh.js";import{h as r,l as i}from"./core-FnF-Uc4O.js";import{am as n}from"./index-bwrXkHAd.js";import"./mui-gvvniK3d.js";import"./sentry-2yczjdjC.js";import"./zeni-epic-state-Ch0HFr9W.js";import"./recharts-CUhuZXcR.js";import"./analytics-Vv7iwE-7.js";import"./plaid-G8Bxl_Fw.js";import"./dnd-r2xkhVF6.js";import"./stripe-cKAAJElX.js";import"./lottie-Blhfr6ao.js";import"./lexical-DP-ZRRwN.js";import"./pdf-DycQGpzo.js";import"./utils-BW8U-ATx.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]="f2f6ef04-8019-4dfe-8bec-98d5efe59039",o._sentryDebugIdIdentifier="sentry-dbid-f2f6ef04-8019-4dfe-8bec-98d5efe59039")}catch{}})();const f=i(null,(function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}}))(n);function _(){const o=r();return e.jsx(f,{navigate:o})}export{_ as default};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-Bqt_XhHh.js";import T from"./NotFoundScreen-Clm0X0fM.js";import{a as r}from"./sentry-2yczjdjC.js";import{h as _,g as v,j as p,i as M,u as U,N as P,l as z,n as N,o as h}from"./core-FnF-Uc4O.js";import{fE as O,a0h as b,bo as B,bn as F,iK as V,gg as K}from"./zeni-epic-state-Ch0HFr9W.js";import{Z,z as I,as as $,dN as q}from"./index-bwrXkHAd.js";import"./mui-gvvniK3d.js";import{u as G}from"./useAskAiCfoHostNavButtonProps-B0woZnci.js";import{M as H}from"./MobileAppDrawer-Bpo9SSXK.js";import"./recharts-CUhuZXcR.js";import"./analytics-Vv7iwE-7.js";import"./plaid-G8Bxl_Fw.js";import"./dnd-r2xkhVF6.js";import"./stripe-cKAAJElX.js";import"./lottie-Blhfr6ao.js";import"./lexical-DP-ZRRwN.js";import"./pdf-DycQGpzo.js";import"./utils-BW8U-ATx.js";import"./InboxNotificationsProvider-DpFe93lp.js";import"./useTaskManagerAccess-FHaU5wf5.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]="6bd8fea1-fe30-488d-8492-53ca9dd951a7",e._sentryDebugIdIdentifier="sentry-dbid-6bd8fea1-fe30-488d-8492-53ca9dd951a7")}catch{}})();const J=z((function(e){const t=I.getSignedInUser(),d=e.tenantState.currentTenantId,o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:d??""},{aggregatedReportViewState:n}=b(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(),d=Z(),o=p((a=>O(a))),{aggregatedReportViewState:n}=p((a=>b(a))),{tenantEmailDomain:f}=M(),g=U(),l=I.getSignedInUser();if(l==null)throw new Error("Can't access this page without signing in...");const m=r.useRef(!1),[w,S]=r.useState(!1),C=B(o?.userRole??[]),k=o?.userRole?.includes("bookkeeping_admin")??!1,x=F(l),y=C||k||x,c=r.useCallback(((a,i,E)=>{g(V({fromMonth:a,toMonth:i,cacheOverride:E}))}),[]);r.useEffect((()=>{n?.fetchState==="Completed"&&m.current&&(g(K({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"||c(a,i,!0),m.current=!0}),[n?.fetchState,c]),j=r.useCallback(((a,i)=>{c(a,i,!1)}),[c]),u=a=>{S(a)},{isAiCfoAccessEnabled:R,onAskAiCfoClick:A}=G({mobileExploreReferrer:"Performance"});return $({isDataReady:n?.fetchState==="Completed"}),y?s.jsxs(s.Fragment,{children:[s.jsx(H,{isAppContentDrawerOpen:w,handleDrawerToggle:u}),s.jsx(J,{navigate:e,location:t,themeState:d,currentTenant:o,signedInUser:l,tenantEmailDomain:f,onReload:D,onTimeRangeSelect:j,handleDrawerToggle:u,isAiCfoAccessEnabled:R,onAskAiCfoClick:A})]}):s.jsx(P,{to:`/${f}/dashboard`,replace:!0})};function he(){return s.jsxs(N,{children:[s.jsx(h,{path:"*",element:s.jsx(L,{})}),s.jsx(h,{path:"*",element:s.jsx(T,{})})]})}export{he as default};
@@ -1 +0,0 @@
1
- import{j as a}from"./liveblocks-Bqt_XhHh.js";import{z as j,a8 as E,j as d,U as N,e1 as S,O as k,y as C}from"./index-bwrXkHAd.js";import"./mui-gvvniK3d.js";import g from"./NotFoundScreen-Clm0X0fM.js";import{a as m}from"./sentry-2yczjdjC.js";import{u as I,j as y,h as F,g as L,l as U,n as _,o as f,N as h}from"./core-FnF-Uc4O.js";import{fE as T,a17 as w,a18 as p,D8 as P,p_ as V,a19 as z,D6 as G}from"./zeni-epic-state-Ch0HFr9W.js";import"./recharts-CUhuZXcR.js";import"./analytics-Vv7iwE-7.js";import"./plaid-G8Bxl_Fw.js";import"./dnd-r2xkhVF6.js";import"./stripe-cKAAJElX.js";import"./lottie-Blhfr6ao.js";import"./lexical-DP-ZRRwN.js";import"./pdf-DycQGpzo.js";import"./utils-BW8U-ATx.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]="7a892741-556a-46e4-bffd-4c5c67c505a4",e._sentryDebugIdIdentifier="sentry-dbid-7a892741-556a-46e4-bffd-4c5c67c505a4")}catch{}})();const O=U((function(e,t){const n=w(e);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}}),(function(e,t){const{navigate:n}=t,i=j.getSignedInUser();return{onDismissClick:()=>{e(p()),n("/")},onSendClick:()=>{if(i!=null){const s=[],r=[];t.inviteFormCompayData.forEach((c=>{s.push(c.companyName),r.push(c.emailIds[0])})),d.trackInviteEmailClicked("send",s,r,s.length)}e(G())},onUpdateInviteFormLocalData:s=>{e(z({localData:s}))},onSubmitSuccess:()=>{e(p())},onCancelClick:()=>{i!=null&&d.trackInviteEmailClicked("cancel")}}}))(S),R=()=>{const e=I(),[t,n]=m.useState(!1),[i,s]=m.useState(!1),r=y((o=>T(o))),c=F(),x=L(),u=j.getSignedInUser();if(u==null)throw Error("Can't access invite referral screen without signing in...");const l=y((o=>w(o))),b=u?.firstName!=null?u.firstName:"User";m.useEffect((()=>{e(p()),r?.rewardsLastViewedTime==null&&i===!1&&(e(P()),s(!0))}),[]),m.useEffect((()=>{t||l.fetchState!=="Not-Started"||(n(!0),e(V(!0)))}),[l.fetchState,e]);const D=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[l.fetchState==="Completed"?a.jsx(E,{analytics:d,onLoad:o=>(v=>v.trackPageLoaded(N.Event.inviteEmailViewed))(o)}):null,a.jsx(O,{navigate:c,location:x,currentTenant:r,companyName:D,userName:b,inviteFormCompayData:l.localData})]})};function ne(){const{useFeatureGate:e}=k(),{isFeatureEnabled:t}=e(C.isReferralFeatureEnabled);return a.jsxs(_,{children:[a.jsx(f,{path:"/",element:a.jsx(h,{to:"refer",replace:!0})}),a.jsx(f,{path:"how-it-works",element:a.jsx(h,{to:"refer",replace:!0})}),a.jsx(f,{path:"refer/*",element:t?a.jsx(R,{}):a.jsx(g,{})}),a.jsx(f,{path:"*",element:a.jsx(g,{})})]})}export{ne as default};
@@ -1 +0,0 @@
1
- import{j as f}from"./liveblocks-Bqt_XhHh.js";import{a as u,R as x,q as A}from"./sentry-2yczjdjC.js";import{u as D,h as j,j as l,g as z,N as M,l as O}from"./core-FnF-Uc4O.js";import{u as P,z as s,E as B,j as w,G as F,T as _,U as N,V,W as $,X as W,Y as v}from"./index-bwrXkHAd.js";import{fE as q,Tb as J,Tv as R,gh as X,gj as Y,TA as G,gT as H,di as K,TB as y,TC as Q,TD as Z,b$ as b}from"./zeni-epic-state-Ch0HFr9W.js";import"./mui-gvvniK3d.js";import{u as ee}from"./useDeviceId-CcCyWvJO.js";import{f as te}from"./analyticsHelper-R0vHRTYv.js";import{t as ne}from"./getLocaleForTenant-Dd-6HaKf.js";import"./recharts-CUhuZXcR.js";import"./analytics-Vv7iwE-7.js";import"./plaid-G8Bxl_Fw.js";import"./dnd-r2xkhVF6.js";import"./stripe-cKAAJElX.js";import"./lottie-Blhfr6ao.js";import"./lexical-DP-ZRRwN.js";import"./pdf-DycQGpzo.js";import"./utils-BW8U-ATx.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]="abaf509f-1ab8-402f-b528-621223624336",t._sentryDebugIdIdentifier="sentry-dbid-abaf509f-1ab8-402f-b528-621223624336")}catch{}})();const ie=O((function(t,i){const d=t.tenantState.fetchState,g=t.tenantState.sendEmailMagicLinkFetchState,{magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:c}=i;return{googleClientId:v.googleClientId,microsoftClientId:v.microsoftClientId,signInError:t.tenantState.error?.error,fetchState:d,sendMagicLinkStatus:g,magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:c}}),(function(t,i){const{location:d,navigate:g}=i;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,a)=>{A({message:`OAuth error from provider ${a} with error ${n}`,level:"error",tags:{authProvider:a,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,a)=>{const c=a==="google"?window.location.origin:window.location.origin+window.location.pathname;t(Z({authCode:n,oauthProvider:a,appType:"web",redirectUri:b(c),sourceUri:b(d.state!=null?d.state.origin:"")}))},getSignedInUser:()=>s.getSignedInUser(),onSignedInCallback:()=>{const n=d.state?.origin;n&&n!=="/"?g(n,{replace:!0}):window.open(window.location.origin,"_self")},sendMagicLink:n=>{const{deviceId:a}=i;a!=null&&(s.saveMagicLinkEmail(n),t(Q(n,a)))},clearSignInError:()=>{t(y())}}}))(W),ae=x.memo(ie);function ve({setTenantEmailDomain:t}){const i=D(),d=j(),{clearAllLoading:g}=P(),n=s.getSignedInUser();u.useLayoutEffect((()=>{g()}),[g]);const a=ee(),c=l((e=>e.tenantState.magicLinkCodeVerifier)),{sendEmailMagicLinkFetchState:h,accountLocked:T,accountUnlockTime:E}=l((e=>e.tenantState)),p=l((e=>e.tenantState.fetchState)),L=l((e=>e.tenantState.activeTenantFetchState.fetchState)),S=l((e=>e.tenantState.signInState)),o=l((e=>e.tenantState.loggedInUser)),r=l((e=>q(e))),I=l((e=>J(e))),m=z(),k=B().mode,C=m.state?.magicLinkExpired,U=m.state?.magicLinkAlreadyUsed;if(u.useEffect((()=>{h.fetchState==="Completed"&&c!=null&&(w.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(c))}),[h.fetchState,c]),u.useEffect((()=>{t(void 0)}),[]),u.useEffect((()=>{S!=="In-Progress"||p!=="Completed"&&L!=="Completed"||o?.zeniSessionId==null||r==null||(s.savePayNowInfoTooltip(!0,o.zeniSessionId),s.saveSignedInUserWithSession(o,o.zeniSessionId),s.saveSignedInUserTenants(R(I.tenantsInOrder),o.zeniSessionId),X(o.userId,o.zeniSessionId,r.tenantId),i(Y(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(G("Completed")),F.updateAppLocaleID(ne(r)),te(o,r,k,void 0,I.tenantsInOrder),H().then((()=>{const e=$();e!=null&&_(e)})),setTimeout((()=>{w.trackLogin(N.Event.loginSuccess,o.authProvider??"google",K(r.productSettings))}),2e3))}),[S,p,L,o,r,I,k,m.state,i]),S==="In-Progress"&&p==="Completed"&&o?.zeniSessionId!=null&&r!=null||n!=null){const e=m.state?.origin??"/";return f.jsx(M,{to:e,state:{...m.state,origin:""}})}return f.jsxs(f.Fragment,{children:[f.jsx(ae,{magicLinkExpired:!!C,magicLinkAlreadyUsed:!!U,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),T===!0&&E!=null?f.jsx(V,{onClose:()=>i(y()),unlockDate:E}):null]})}export{ve as default};
@@ -1 +0,0 @@
1
- import{j as t}from"./liveblocks-Bqt_XhHh.js";import i from"./NotFoundScreen-Clm0X0fM.js";import{T as r}from"./TransactionDetailScreen-8aqi-OdB.js";import"./sentry-2yczjdjC.js";import{n as d,o}from"./core-FnF-Uc4O.js";import"./zeni-epic-state-Ch0HFr9W.js";import"./recharts-CUhuZXcR.js";import"./index-bwrXkHAd.js";import"./mui-gvvniK3d.js";import"./analytics-Vv7iwE-7.js";import"./plaid-G8Bxl_Fw.js";import"./dnd-r2xkhVF6.js";import"./stripe-cKAAJElX.js";import"./lottie-Blhfr6ao.js";import"./lexical-DP-ZRRwN.js";import"./pdf-DycQGpzo.js";import"./utils-BW8U-ATx.js";import"./useAskAiCfoHostNavButtonProps-B0woZnci.js";import"./decodeURIComponentSafe-Dcy3wJS-.js";import"./useInitialThreadRequest-34RRXCJw.js";import"./routePaths-XPpOvOzg.js";import"./expenseAutomationHelper-VQqpchU0.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]="07c2895c-270d-414b-a4ec-49ceb0cdd05a",e._sentryDebugIdIdentifier="sentry-dbid-07c2895c-270d-414b-a4ec-49ceb0cdd05a")}catch{}})();function z(){return t.jsxs(d,{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{z as default};
@@ -1 +0,0 @@
1
- import{a as b}from"./sentry-2yczjdjC.js";import{h as u,g,i as h,j as S}from"./core-FnF-Uc4O.js";import{fE as y}from"./zeni-epic-state-Ch0HFr9W.js";import{a as k,a1 as C,d as A,ar as T,B as I,p as E,au as w}from"./index-bwrXkHAd.js";import"./mui-gvvniK3d.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]="4b743927-a219-4942-a635-d05c21bb401e",e._sentryDebugIdIdentifier="sentry-dbid-4b743927-a219-4942-a635-d05c21bb401e")}catch{}})();function B(e){const{mobileExploreReferrer:t}=e,{isAiCfoOpen:r,setIsAiCfoOpen:i}=k(),n=u(),o=g(),{tenantEmailDomain:s}=h(),d=C(),f=w(d),l=A(),p=T(),m=S((a=>a.tenantState.fetchState==="Completed"||a.tenantState.activeTenantFetchState.fetchState==="Completed"?y(a):void 0)),c=m?.masterTOSInfo?.isMasterTOSAccepted??!1;return{isAiCfoAccessEnabled:p&&l&&!r,onAskAiCfoClick:b.useCallback((()=>{if(s!=null)if(c)if(f){const a=E(o.state?.pathnameStackToGoBack,o.pathname);n(`/${s}/ai-cfo/explore`,{state:{pathnameStackToGoBack:a,referrer:t}})}else i(!0);else I({location:o,navigate:n,mergeState:{referrer:t}})}),[c,f,o,t,n,i,s])}}export{B as u};
@@ -1 +0,0 @@
1
- import{a as r}from"./sentry-2yczjdjC.js";import{bn as i}from"./zeni-epic-state-Ch0HFr9W.js";import{O as d,y as t}from"./index-bwrXkHAd.js";import"./mui-gvvniK3d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="14997721-7ab1-4396-9c4c-c86a053fff4c",e._sentryDebugIdIdentifier="sentry-dbid-14997721-7ab1-4396-9c4c-c86a053fff4c")}catch{}})();const u=e=>{const{useFeatureGate:s}=d(),{isFeatureEnabled:n}=s(t.isTaskManagerCustomerUserAccessEnabled),{isFeatureEnabled:o}=s(t.isTaskManagerNotificationControlsEnabled),a=r.useMemo((()=>i(e)),[e]);return{isNotificationControlsEnabled:a||o,isTaskManagerAccessEnabled:a||n,isZeniUser:a}};export{u};