@zeniai/web-app-ui 5.4.3-qa → 5.4.4-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 (135) hide show
  1. package/dist/assets/{AccountMappingScreen-B7inS-s5.js → AccountMappingScreen-C0sMMini.js} +2 -2
  2. package/dist/assets/{ActualMatchingMatchDetailScreen-l2lqVR2-.js → ActualMatchingMatchDetailScreen-BfKQWQ-e.js} +1 -1
  3. package/dist/assets/AddressRoutes-DYo3I9gy.js +1 -0
  4. package/dist/assets/AddressScreen-VWWvSvnK.js +9 -0
  5. package/dist/assets/{AiCfoScreen-Cby0GIsa.js → AiCfoScreen-BamobQFS.js} +1 -1
  6. package/dist/assets/{AppDrawer-C-S8Qz_5.js → AppDrawer-B3isfNtc.js} +1 -1
  7. package/dist/assets/{BillPayApprovalRoutes-DW-9rkhD.js → BillPayApprovalRoutes-DML5uyv7.js} +1 -1
  8. package/dist/assets/{BillPayRoutes-Bq5Dgjo2.js → BillPayRoutes-Dz3J41fh.js} +7 -7
  9. package/dist/assets/{BusinessVerificationPageScreen-ZXrkHunt.js → BusinessVerificationPageScreen-CUyBqVMc.js} +2 -2
  10. package/dist/assets/{CardsAiCfoScreen-ldHIAZ9A.js → CardsAiCfoScreen-3kYy1cSH.js} +1 -1
  11. package/dist/assets/{ChargeCardRoutes-BDGLs0Dd.js → ChargeCardRoutes-Ce-nS1EB.js} +6 -6
  12. package/dist/assets/{CompanyPassportScreen-BLjdc-91.js → CompanyPassportScreen-C5Y2nsJz.js} +1 -1
  13. package/dist/assets/{ConnectionAuthScreen-rYb1VkxE.js → ConnectionAuthScreen-BWpiejbj.js} +2 -2
  14. package/dist/assets/CustomerOnboardingAuthScreen-BUex-BSl.js +1 -0
  15. package/dist/assets/{CustomerOnboardingRoutes-nmGY_FZL.js → CustomerOnboardingRoutes-2FkvuUlZ.js} +1 -1
  16. package/dist/assets/{DashboardRoutes-1rtJZ0Ro.js → DashboardRoutes-MBJ2Rwn4.js} +3 -3
  17. package/dist/assets/{DefaultTenantHome-CgyNv-RT.js → DefaultTenantHome-Ckt1T4NG.js} +1 -1
  18. package/dist/assets/DomesticWireDetailScreen-hTt1-04T.js +18 -0
  19. package/dist/assets/{DrawerScreen-D_vSdnBo.js → DrawerScreen-CqE9SdRB.js} +1 -1
  20. package/dist/assets/EntityDetailRoutes-BefrbPGo.js +1 -0
  21. package/dist/assets/{ExpenseAutomationRoutes-Bk2rlVhi.js → ExpenseAutomationRoutes-BpwrasRp.js} +6 -6
  22. package/dist/assets/{FeaturePreviewScreen-DvF-zXjD.js → FeaturePreviewScreen-Co6qUDUn.js} +1 -1
  23. package/dist/assets/HubSpotOAuthCallbackScreen-BX8B9Pey.js +1 -0
  24. package/dist/assets/{InboxNotificationsProvider-BzcLp6EN.js → InboxNotificationsProvider-DK30Cxb5.js} +1 -1
  25. package/dist/assets/{InvoicingRoutes-DA_vQXDL.js → InvoicingRoutes-wjH_4S5b.js} +2 -2
  26. package/dist/assets/{MagicLinkRoutes-BG-VtcU4.js → MagicLinkRoutes-BGZtjWHW.js} +5 -5
  27. package/dist/assets/MagicLinkSignInScreen-Cs9gnZ1G.js +12 -0
  28. package/dist/assets/{MobileAppDrawer-CWX9dOmR.js → MobileAppDrawer-DdKhHPz6.js} +1 -1
  29. package/dist/assets/NotFoundScreen-B-BYYP4T.js +1 -0
  30. package/dist/assets/NotificationRoutes-BJrlVoAS.js +1 -0
  31. package/dist/assets/{OAuthConsentScreen-Bfg5ohhN.js → OAuthConsentScreen-NQWhKp0n.js} +1 -1
  32. package/dist/assets/{PandLWithForecastRoutes-Bt0qrCJ2.js → PandLWithForecastRoutes-BHXDuog4.js} +1 -1
  33. package/dist/assets/{PaymentLinkScreen-C_2x69o3.js → PaymentLinkScreen-DiMYCNqK.js} +1 -1
  34. package/dist/assets/{PeopleRoutes-DYmLAQ6w.js → PeopleRoutes-CQNqQ1me.js} +5 -5
  35. package/dist/assets/PerformanceRoutes-DOHSTCGW.js +1 -0
  36. package/dist/assets/{Preview-BnCqxlCw.js → Preview-CkpRPhZT.js} +1 -1
  37. package/dist/assets/{QBOConnectionScreen-DpmsLWwp.js → QBOConnectionScreen-awYitbDx.js} +1 -1
  38. package/dist/assets/{ReimbursementApprovalRoutes-BrA8Srv9.js → ReimbursementApprovalRoutes-hM97Cpf-.js} +1 -1
  39. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-BBCam2gh.js → ReimbursementApprovalRuleDetailScreen-CkqblogQ.js} +1 -1
  40. package/dist/assets/ReimbursementRoutes-8kNGLexU.js +68 -0
  41. package/dist/assets/{ReportsRoutes-DS-FqYZU.js → ReportsRoutes-BlAnes6-.js} +1 -1
  42. package/dist/assets/RewardsRoutes-CyQwdmPN.js +1 -0
  43. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-CmV6PCSf.js → ScheduleDetailsPrepaidExpensesScreen-BzaDyP8o.js} +5 -5
  44. package/dist/assets/{ScreenRoutes-QzbtraUH.js → ScreenRoutes-B2IjeoFT.js} +2 -2
  45. package/dist/assets/{SettingsRoutes-Ju-ZDgME.js → SettingsRoutes-C-qOYbgc.js} +6 -6
  46. package/dist/assets/{SetupPagesScreen-BGcK0ycG.js → SetupPagesScreen-BRXuNvft.js} +1 -1
  47. package/dist/assets/{SignInScreen-Bur2eBaB.js → SignInScreen-BHelb_vc.js} +1 -1
  48. package/dist/assets/SignOutScreen-1qrT9Vlz.js +9 -0
  49. package/dist/assets/{TaskListScreen-CNXnaA6s.js → TaskListScreen-xVsQI_eD.js} +2 -2
  50. package/dist/assets/{TaskRoutes-DQE3DpAS.js → TaskRoutes-Dp3N4y8R.js} +2 -2
  51. package/dist/assets/TransactionDetailRoutes-D7CnkfZ-.js +1 -0
  52. package/dist/assets/{TransactionDetailScreen-LGGvWhD_.js → TransactionDetailScreen-C5LaW58p.js} +2 -2
  53. package/dist/assets/{TransactionListRoutes-BGtm6eY_.js → TransactionListRoutes-DstR_S7R.js} +1 -1
  54. package/dist/assets/{TreasuryRoutes-CxYNcgO0.js → TreasuryRoutes-B_pMyVCn.js} +5 -5
  55. package/dist/assets/{VendorsRoutes-DWs8cTvB.js → VendorsRoutes-BBAxMr84.js} +10 -10
  56. package/dist/assets/WiseConfirmationScreen-G9VKtOTo.js +12 -0
  57. package/dist/assets/{ZeniAccountRoutes-BUum75W0.js → ZeniAccountRoutes-Dz075FIl.js} +11 -11
  58. package/dist/assets/ZeniAccountStatementScreen-DnyNKaBX.js +9 -0
  59. package/dist/assets/{accountMappingHelper-DWRp27r0.js → accountMappingHelper-Cer8E1sV.js} +1 -1
  60. package/dist/assets/{analytics-DBLR2qf0.js → analytics-CLGfyryt.js} +1 -1
  61. package/dist/assets/{analyticsHelper-BP198oBL.js → analyticsHelper-Czoo9Dek.js} +1 -1
  62. package/dist/assets/{core-ABjOcAeP.js → core-DK2mlr3J.js} +1 -1
  63. package/dist/assets/{decodeURIComponentSafe-B3qYCgAd.js → decodeURIComponentSafe-BKcGsnNf.js} +1 -1
  64. package/dist/assets/{dnd-DwpncCYh.js → dnd-DmMNaNZl.js} +1 -1
  65. package/dist/assets/{empty-CGvsTyLe.js → empty-DOVgNO3g.js} +1 -1
  66. package/dist/assets/{empty-QBmLxeSX.js → empty-sfAxWxLt.js} +1 -1
  67. package/dist/assets/{emptyVideoElement-B9UyJf-a.js → emptyVideoElement-DTYtNwkj.js} +1 -1
  68. package/dist/assets/epic-y78AsHxX.js +2 -0
  69. package/dist/assets/expenseAutomationHelper-Zkyue3Dd.js +1 -0
  70. package/dist/assets/{getLocaleForTenant-B6xydbq0.js → getLocaleForTenant-D5HAIAMI.js} +1 -1
  71. package/dist/assets/{index-5csCHYq-.js → index-BZ4Qj2TG.js} +1 -1
  72. package/dist/assets/{index-P_CV3TWt.js → index-BhJVst5Q.js} +2 -2
  73. package/dist/assets/{index-BEixR-kn.js → index-BtWyAIYh.js} +1 -1
  74. package/dist/assets/{index-C2do5JRM.js → index-C9USztB0.js} +1 -1
  75. package/dist/assets/{index-DvGyIhjq.js → index-CCZBKhvn.js} +1 -1
  76. package/dist/assets/{index-C4u-S9kC.js → index-Dsu8OkDH.js} +1 -1
  77. package/dist/assets/{index-CsNSXQ28.js → index-gWeKimie.js} +2275 -2275
  78. package/dist/assets/{index-C-Kql3o2.js → index-kVHvLKqq.js} +1 -1
  79. package/dist/assets/{lexical-kNqf0ssJ.js → lexical-D8I0sdIn.js} +1 -1
  80. package/dist/assets/{liveblocks-CR_kRbXv.js → liveblocks-B-cSKONY.js} +1 -1
  81. package/dist/assets/{lottie-B6iZNmj2.js → lottie-BeDznxFN.js} +1 -1
  82. package/dist/assets/{mui-5AXMmyb4.js → mui-BJpEKNBi.js} +1 -1
  83. package/dist/assets/{pathToGoBack-D95_M8Mf.js → pathToGoBack-D7_vOHuo.js} +1 -1
  84. package/dist/assets/{pdf-BR5MHuna.js → pdf-BhuhJSrH.js} +3 -3
  85. package/dist/assets/{pdf-lib-Cj9jgg2v.js → pdf-lib-BqU855ht.js} +1 -1
  86. package/dist/assets/{plaid-BjNi0t6-.js → plaid-DunXUDAB.js} +1 -1
  87. package/dist/assets/{pusher-dTvZltaA.js → pusher-BnWPIhw-.js} +1 -1
  88. package/dist/assets/{react-CG41uEaS.js → react-BGClwsYW.js} +1 -1
  89. package/dist/assets/{react-C83tp_V2.js → react-Bae77ap2.js} +1 -1
  90. package/dist/assets/{react-RhV7-PxP.js → react-CBF8F-ZT.js} +1 -1
  91. package/dist/assets/{react-D1zedxLo.js → react-CBzJjLru.js} +1 -1
  92. package/dist/assets/{react-BIlWQake.js → react-Qn7QPAQq.js} +1 -1
  93. package/dist/assets/{react-C6508Z-0.js → react-zHX8D5UO.js} +1 -1
  94. package/dist/assets/{recharts-Dj6alQ6O.js → recharts-Be6UzieB.js} +1 -1
  95. package/dist/assets/{reportTimeframe-jzTDHFmg.js → reportTimeframe-BrIqDmjp.js} +1 -1
  96. package/dist/assets/{routePaths-Duhkra_N.js → routePaths-DgH42pPu.js} +1 -1
  97. package/dist/assets/{sentry-ABHIIEow.js → sentry-CBW8f2n5.js} +1 -1
  98. package/dist/assets/{stripSplatSuffix-D0Sul5YW.js → stripSplatSuffix-BsiGB3YN.js} +1 -1
  99. package/dist/assets/{url-DstgFmrF.js → url-D7y7ILZi.js} +1 -1
  100. package/dist/assets/{url-odJEIJK2.js → url-r_uX_Du7.js} +1 -1
  101. package/dist/assets/useActualMatchingMatchDetail-CIhcpdac.js +1 -0
  102. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-CwSFN0VU.js → useAiCfoDashboardSuggestedQuestionsChips-CuzjEAdK.js} +1 -1
  103. package/dist/assets/{useAskAiCfoHostNavButtonProps-CwABKzO-.js → useAskAiCfoHostNavButtonProps-DFSreI-K.js} +1 -1
  104. package/dist/assets/{useChargeCardPusherEvents-BKGsmTQe.js → useChargeCardPusherEvents-BVk2uSYN.js} +1 -1
  105. package/dist/assets/{useDeviceId-Bh7mtRKP.js → useDeviceId-obcLL4xN.js} +1 -1
  106. package/dist/assets/useEmailConnectResultRefresh-CEI-SlUJ.js +1 -0
  107. package/dist/assets/{useEnsureVendorListLoaded-DfLNcoZI.js → useEnsureVendorListLoaded-BNcE3E-O.js} +1 -1
  108. package/dist/assets/{useInitialThreadRequest-sgGR3rYU.js → useInitialThreadRequest-DMCoEJNN.js} +1 -1
  109. package/dist/assets/{useTaskManagerAccess-YKeu29rq.js → useTaskManagerAccess-w-zZOzku.js} +1 -1
  110. package/dist/assets/{useTaskManagerPusherEvents-B_1Ze5FE.js → useTaskManagerPusherEvents-B4FiXQud.js} +1 -1
  111. package/dist/assets/{utils-oejz8VwT.js → utils-3QzZ60R1.js} +1 -1
  112. package/dist/assets/{withTransactionSidePanel-DmbLzAK6.js → withTransactionSidePanel-BlvW61M9.js} +2 -2
  113. package/dist/assets/{zeni-epic-state-1YQvLmng.js → zeni-epic-state-B2izbHLH.js} +5 -5
  114. package/dist/index.html +1 -1
  115. package/package.json +4 -4
  116. package/dist/assets/AddressRoutes-BbJ8nJvh.js +0 -1
  117. package/dist/assets/AddressScreen-Cpjj3EY8.js +0 -9
  118. package/dist/assets/CustomerOnboardingAuthScreen-CEidyYsM.js +0 -1
  119. package/dist/assets/DomesticWireDetailScreen-DctaVoNp.js +0 -18
  120. package/dist/assets/EntityDetailRoutes-Dcq0hmaJ.js +0 -1
  121. package/dist/assets/HubSpotOAuthCallbackScreen-CYzvuvfH.js +0 -1
  122. package/dist/assets/MagicLinkSignInScreen-BNN0NjDt.js +0 -12
  123. package/dist/assets/NotFoundScreen-CiQiUjjh.js +0 -1
  124. package/dist/assets/NotificationRoutes-B2Mvzbsu.js +0 -1
  125. package/dist/assets/PerformanceRoutes-CbirfvlN.js +0 -1
  126. package/dist/assets/ReimbursementRoutes-3e2gjfbC.js +0 -68
  127. package/dist/assets/RewardsRoutes-BqVdyT0Q.js +0 -1
  128. package/dist/assets/SignOutScreen-DDS24hab.js +0 -9
  129. package/dist/assets/TransactionDetailRoutes-DprDfkD0.js +0 -1
  130. package/dist/assets/WiseConfirmationScreen-wcvXQLeV.js +0 -12
  131. package/dist/assets/ZeniAccountStatementScreen-B6-qCpLd.js +0 -9
  132. package/dist/assets/epic-BGyhMP3t.js +0 -2
  133. package/dist/assets/expenseAutomationHelper-C04g5tKj.js +0 -1
  134. package/dist/assets/useActualMatchingMatchDetail-mPHP7CP0.js +0 -1
  135. package/dist/assets/useEmailConnectResultRefresh-DWB6h_vO.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-CsNSXQ28.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-ABHIIEow.js"><link rel="modulepreload" crossorigin href="/assets/core-ABjOcAeP.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-1YQvLmng.js"><link rel="modulepreload" crossorigin href="/assets/mui-5AXMmyb4.js"><link rel="modulepreload" crossorigin href="/assets/analytics-DBLR2qf0.js"><link rel="modulepreload" crossorigin href="/assets/utils-oejz8VwT.js"><link rel="stylesheet" crossorigin href="/assets/index-BQ3cXEYt.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-gWeKimie.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-CBW8f2n5.js"><link rel="modulepreload" crossorigin href="/assets/core-DK2mlr3J.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-B2izbHLH.js"><link rel="modulepreload" crossorigin href="/assets/mui-BJpEKNBi.js"><link rel="modulepreload" crossorigin href="/assets/analytics-CLGfyryt.js"><link rel="modulepreload" crossorigin href="/assets/utils-3QzZ60R1.js"><link rel="stylesheet" crossorigin href="/assets/index-BQ3cXEYt.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.4.3-qa",
3
+ "version": "5.4.4-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.1.10",
32
- "@zeniai/client-epic-state": "5.2.97",
33
- "@zeniai/web-components": "4.4.39",
31
+ "@zeniai/client-analytics": "2.1.9",
32
+ "@zeniai/client-epic-state": "5.2.98",
33
+ "@zeniai/web-components": "4.4.38",
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-CR_kRbXv.js";import{A as i}from"./AddressScreen-Cpjj3EY8.js";import s from"./NotFoundScreen-CiQiUjjh.js";import"./sentry-ABHIIEow.js";import{n as d,o as r}from"./core-ABjOcAeP.js";import"./zeni-epic-state-1YQvLmng.js";import"./recharts-Dj6alQ6O.js";import"./index-CsNSXQ28.js";import"./mui-5AXMmyb4.js";import"./analytics-DBLR2qf0.js";import"./plaid-BjNi0t6-.js";import"./dnd-DwpncCYh.js";import"./stripe-cKAAJElX.js";import"./lottie-B6iZNmj2.js";import"./lexical-kNqf0ssJ.js";import"./pdf-BR5MHuna.js";import"./utils-oejz8VwT.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]="da3bef66-2720-4570-8362-1786283303d9",t._sentryDebugIdIdentifier="sentry-dbid-da3bef66-2720-4570-8362-1786283303d9")}catch{}})();function _(){return e.jsxs(d,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(i,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(i,{})}),e.jsx(r,{path:"*",element:e.jsx(s,{})})]})}export{_ as default};
@@ -1,9 +0,0 @@
1
- import{j as n}from"./liveblocks-CR_kRbXv.js";import{a as b}from"./sentry-ABHIIEow.js";import{h as T,u as P,g as j,i as E,j as $,l as B}from"./core-ABjOcAeP.js";import{$ as L,z as M,V as D,a5 as K,a6 as R,k as C,R as S,a1 as z,X as h,a2 as F}from"./index-CsNSXQ28.js";import{Wa as _,it as N,fI as U,Wb as V,ca as W,Wc as G,mL as O}from"./zeni-epic-state-1YQvLmng.js";import{u as q,n as H}from"./mui-5AXMmyb4.js";import X from"./NotFoundScreen-CiQiUjjh.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]="7e211f15-4512-43ab-96ff-d9db7e46a443",e._sentryDebugIdIdentifier="sentry-dbid-7e211f15-4512-43ab-96ff-d9db7e46a443")}catch{}})();const J=H.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
- `,Q=B((function(e,s){const{addressId:o,isSubPage:i,addressType:c}=s,l=U(e),a=s.roleMap!=null&&V(s.roleMap),d=i||c==="user_address"||W(l?.userRole??[])||a?void 0:"readonly";if(o==null){const t=G(c,e);return{addressToEdit:t?.addressToCreate,loadingState:t?.status?.fetchState,googleAPIKey:h.googleMapsAPIKey,isDisabled:d,isSubPage:i,dontShowSaveConfirmationPopup:s.dontShowSaveConfirmation}}const r=_(e,o);return{addressToEdit:r.address,loadingState:r.fetchState,googleAPIKey:h.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=F(d?.pathnameStackToGoBack);let t=r.poppedPathname??k();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=Y(a);e(O({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)}}}))(z);function ne({isSubPage:e,hideAddressSubTitle:s=!1,hideAddressBackButton:o=!1,dontShowSaveConfirmation:i,accountContext:c,addressTypeParam:l}){const a=T(),d=P(),r=j(),{addressId:t,addressType:u}=E(),g=L(),v=q(),w=M.getSignedInUser(),[f,I]=b.useState(t==null),p=$((m=>t!=null?_(m,t).fetchState:"Not-Started")),x=D();if(w==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 b.useEffect((()=>{f||t==null||(I(!0),d(N(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:v.colors.grey5}}):t!=null&&p==="Error"?(a(`${k(1)}/new`,{replace:!0}),n.jsx(n.Fragment,{})):n.jsxs(n.Fragment,{children:[n.jsx(R,{analytics:C,onLoad:A}),n.jsx(J,{windowSize:g,children:n.jsx(Q,{location:r,navigate:a,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:s,addressId:t,addressType:y,dontShowSaveConfirmation:i,bankAccountContext:c,roleMap:x?.loggedInUserRoleMap})})]}):n.jsx(X,{})}const k=(e=2)=>{let s="../";for(let o=0;o<e;o++)s=`${s}../`;return s},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{ne as A,Y as t};
@@ -1 +0,0 @@
1
- import{j as i}from"./liveblocks-CR_kRbXv.js";import{z as m}from"./index-CsNSXQ28.js";import{g as n}from"./QBOConnectionScreen-DpmsLWwp.js";import"./sentry-ABHIIEow.js";import{g as p,N as a}from"./core-ABjOcAeP.js";import"./zeni-epic-state-1YQvLmng.js";import"./recharts-Dj6alQ6O.js";import"./mui-5AXMmyb4.js";import"./analytics-DBLR2qf0.js";import"./plaid-BjNi0t6-.js";import"./dnd-DwpncCYh.js";import"./stripe-cKAAJElX.js";import"./lottie-B6iZNmj2.js";import"./lexical-kNqf0ssJ.js";import"./pdf-BR5MHuna.js";import"./utils-oejz8VwT.js";import"./empty-CGvsTyLe.js";import"./pdf-lib-Cj9jgg2v.js";import"./index-C4u-S9kC.js";import"./url-odJEIJK2.js";import"./index-C-Kql3o2.js";import"./decodeURIComponentSafe-B3qYCgAd.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]="a1205b81-d106-415b-bd92-85aeae53ace3",t._sentryDebugIdIdentifier="sentry-dbid-a1205b81-d106-415b-bd92-85aeae53ace3")}catch{}})();const U=()=>{const t=p(),{code:o,realmId:r,state:e}=n(t.search),s=m.getSignedInUser()?.userId??"";if(f(o,r,e,s)===!0){const d=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return i.jsx(a,{to:d})}return i.jsx(a,{to:"../../"})},f=(t,o,r,e)=>t!=""&&o!=""&&r!=""&&e!=null&&e!="";export{U as default,f as hasValidParams};
@@ -1,18 +0,0 @@
1
- import{j as l}from"./liveblocks-CR_kRbXv.js";import{h as w,g as C,j as h,l as A,i as V}from"./core-ABjOcAeP.js";import{ZO as k,ZV as J,gJ as Q,gI as W,gH as X,kT as Y,XF as q,uV as K,fI as B,Zl as D,kR as F,ZP as S,ZY as T,kP as G,la as j}from"./zeni-epic-state-1YQvLmng.js";import{bO as L,$ as R,c as Z,z as N,a2 as p,F as v,a5 as O,bP as M,J as U,bQ as ee,p as te}from"./index-CsNSXQ28.js";import{u as H,n as z}from"./mui-5AXMmyb4.js";import"./sentry-ABHIIEow.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]="0415363e-fa1e-4ff7-abfd-a9b0d9b5e5b2",e._sentryDebugIdIdentifier="sentry-dbid-0415363e-fa1e-4ff7-abfd-a9b0d9b5e5b2")}catch{}})();const ae=A(null,(function(e,t){return{onSaveVendor:a=>{e(Y(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(q("common")),a!=null&&e(K(a))},onGetOtp:a=>{e(X(a,"BillPayVendor"))},onResendOtp:a=>{e(W(a,"BillPayVendor"))},onVerifyOtp:(a,n)=>{e(Q(a,n,"BillPayVendor"))},onVerifyOtpSuccess:(a,n,o)=>{e(J(a,n,o))}}}))(L);function _({vendorId:e,billId:t,isExpressPayPage:a}){const n=w(),o=C(),s=h((d=>k(d,e)));return l.jsx(ae,{location:o,navigate:n,vendorId:e,billId:t,vendorViewDetails:s,isExpressPayPage:a??!1})}const ne=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=A((function(e,t){const{vendorId:a,billId:n}=t,o=k(e,a),s=D(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,n);return{billId:n,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}}),(function(e,t){const{navigate:a,location:n,vendorId:o}=t;return{onFetchBankName:s=>{e(j(s))},onSaveHandler:s=>{e(G(t.bankAccountContext,s,"standard",o))},onCancel:()=>{(()=>{const s=p(n.state?.pathnameStackToGoBack),d=s.poppedPathname??P();a(d,{state:{pathnameStackToGoBack:s.newStack}})})(),e(S())},onACHDetailsUpdated:s=>{const{bankAccountSection:d}=s;e(T({data:d}))},onBackClick:()=>{if(e(F({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")a("../",{relative:"path"});else{const s=p(t.location.state?.pathnameStackToGoBack),d=s.poppedPathname??P(0);t.navigate(d,{state:{pathnameStackToGoBack:s.newStack}})}e(S())}}}))(M);function fe({vendorIdParam:e,accountContext:t}){const a=w(),n=C(),o=R(),{vendorId:s,billId:d}=V(),c=e??s,{useFeatureGate:r}=Z(),i=N.getSignedInUser(),b=h((u=>B(u))),g=H(),I=p(n.state?.pathnameStackToGoBack),f=t??(I.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h((u=>k(u,c))),{isFeatureEnabled:x}=r(v.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=r(v.isDepositAccountsFeatureEnabled);if(i==null)throw Error("Can't access address page without signing in...");return f==="billDetail"&&m.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(O,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:g.colors.grey5}}):l.jsxs(ne,{windowSize:o,children:[l.jsx(_,{vendorId:c,billId:d}),l.jsx(oe,{location:n,navigate:a,billId:d,vendorId:c,currentTenant:b,bankAccountContext:f,isVendorRecommendationEnabled:x,isZeniAccountsFeatureEnabled:y})]})}const P=(e=2)=>{let t="../";for(let a=0;a<e;a++)t=`${t}../`;return t},me=(e,t,a)=>{let n=`/${e}/bill/${encodeURIComponent(t)}`;return a=="draft"&&(n+="/edit"),n},he=e=>`/${e}/bills`,ke=(e,t)=>{let a=`/${e}/bill`;return a=t!=null?a.concat(`/${t}/edit`):a.concat("/new"),a},E=(e,t,a,n)=>{let o=`/${e}/bill`;return o+=a!=null?`/${a}/edit/vendor`:"/new/vendor",o+=n!=null?`/${n}/edit/${t}`:`/create/${t}`,o};function Se(e,t,a){return E(e,"ach",t,a)}function ve(e,t,a){return E(e,"domestic",t,a)}function ge(e,t,a){return E(e,"international",t,a)}const se=(e,t,a)=>{let n=`/${e}/bill/`;return n=a!=null?n.concat(`${encodeURIComponent(a)}/${t}/`):n.concat(`new/${t}/`),n},re=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 ${U.sp1} ${e.theme.colors.dropShadowNormal}`};
18
- `,de=A((function(e,t){const{vendorId:a,billId:n}=t,o=k(e,a),s=D(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,n);return{billId:n,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}}),(function(e,t){const{billId:a,navigate:n,location:o,vendorId:s,currentTenant:d}=t,{tenantEmailDomain:c}=d;return{onFetchBankName:r=>{e(j(r))},onSaveHandler:r=>{e(G(t.bankAccountContext,r,"us-domestic",s))},onWireDetailsUpdated:r=>{const{bankAccountSection:i}=r;e(T({data:i}))},onCancel:()=>{(()=>{const r=p(o.state?.pathnameStackToGoBack),i=r.poppedPathname??$();n(i,{state:{pathnameStackToGoBack:r.newStack}})})(),e(S())},onAddressClick:r=>{if(t.bankAccountContext==="express-pay")n("./add-address");else{const i=se(c,r,a),b=te(o.state?.pathnameStackToGoBack,o.pathname);n(i,{state:{pathnameStackToGoBack:b}})}},onBackClick:()=>{if(e(F({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")n("../",{relative:"path"});else{const r=p(t.location.state?.pathnameStackToGoBack),i=r.poppedPathname??$(0);t.navigate(i,{state:{pathnameStackToGoBack:r.newStack}})}e(S())}}}))(ee);function Ie({vendorIdParam:e,accountContext:t}){const a=w(),n=C(),o=R(),{vendorId:s,billId:d}=V(),c=e??s,r=N.getSignedInUser(),{useFeatureGate:i}=Z(),b=H(),g=h((u=>B(u))),I=p(n.state?.pathnameStackToGoBack),f=t??(I.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h((u=>k(u,c))),{isFeatureEnabled:x}=i(v.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=i(v.isDepositAccountsFeatureEnabled);if(r==null)throw Error("Can't access address page without signing in...");return f==="billDetail"&&m.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(O,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:b.colors.grey5,boxShadow:`0px 2px ${U.sp1} ${b.colors.dropShadowNormal}`}}):l.jsxs(re,{windowSize:o,children:[l.jsx(_,{vendorId:c,billId:d}),l.jsx(de,{location:n,navigate:a,billId:d,vendorId:c,currentTenant:g,bankAccountContext:f,isVendorRecommendationEnabled:x,isZeniAccountsFeatureEnabled:y})]})}const $=(e=2)=>{let t="../";for(let a=0;a<e;a++)t=`${t}../`;return t};export{fe as A,Ie as D,_ as V,me 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-CR_kRbXv.js";import{a as d}from"./sentry-ABHIIEow.js";import{h as A,u as B,g as X,i as F,j as l,N as q,l as W,n as _,o as N}from"./core-ABjOcAeP.js";import{XR as R,fI as $,W$ as O,n3 as M,S_ as k,XW as Y,XE as z,m3 as V,S$ as S,X4 as H,X5 as J,XG as K,XF as L}from"./zeni-epic-state-1YQvLmng.js";import{b9 as Q,k as U,a2 as Z,p as tt}from"./index-CsNSXQ28.js";import"./mui-5AXMmyb4.js";import{d as b}from"./decodeURIComponentSafe-B3qYCgAd.js";import{w as et}from"./withTransactionSidePanel-DmbLzAK6.js";import{f as at,c as nt}from"./routePaths-Duhkra_N.js";import"./recharts-Dj6alQ6O.js";import"./analytics-DBLR2qf0.js";import"./plaid-BjNi0t6-.js";import"./dnd-DwpncCYh.js";import"./stripe-cKAAJElX.js";import"./lottie-B6iZNmj2.js";import"./lexical-kNqf0ssJ.js";import"./pdf-BR5MHuna.js";import"./utils-oejz8VwT.js";import"./useAskAiCfoHostNavButtonProps-CwABKzO-.js";import"./TransactionDetailScreen-LGGvWhD_.js";import"./useInitialThreadRequest-sgGR3rYU.js";import"./expenseAutomationHelper-C04g5tKj.js";import"./stripSplatSuffix-D0Sul5YW.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]="065367fc-66be-4498-812e-c5f36d141ab3",a._sentryDebugIdIdentifier="sentry-dbid-065367fc-66be-4498-812e-c5f36d141ab3")}catch{}})();const ot=W((function(a,t){const e=t.entity,o=Y(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:z(a,"common")},trendWithTransactionsReport:o,analytics:U,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)}`,c=tt(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(o,{state:{pathnameStackToGoBack:c}})},autoCompleteActions:{onAutoCompleteInputChange:e=>{e.trim().length>=2?a(K({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(L("common"))},onAutoCompleteEntity:e=>{const o=at(e,t.tenantEmailDomain);a(H()),a(J()),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(k(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),a(S(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:o}))}}}}))(Q),it=et((function({entityType:a,...t}){const e=A(),o=B(),c=X(),[m,T]=d.useState(!1),[h,D]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:w,entityNameEncoded:x}=F(),r=b(w??""),p=b(x??""),f=rt(r,p),j=[r,p].filter((n=>n!=null)),i={name:p,id:r,type:a,zeniId:r,qboId:r},g=l((n=>R(n.customerIncomeState,n.vendorExpenseState,n.trendState,i,"quarter"))),G=l((n=>$(n).company?.companyInfo.firstMonthOfFY??1)),u=l((n=>O(n.trendWithTransactionsState,i,"EntityDetail")));d.useEffect((()=>{m===!1&&f===!0&&(T(!0),o(M(i)))}),[m,f,i]);const E=l((n=>n.trendState.fetchState)),P=u?.selectedPeriod?.timePeriod??g,v=(function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y})(u?.selectedPeriod?.timePeriod,g);return d.useEffect((()=>{m===!0&&h===!1&&E==="Completed"&&(D(!0),P!=null&&o(k(i,"EntityDetail",{timeframe:u?.selectedPeriod?.timeframe??"quarter",timePeriod:P})))}),[m,h,E]),f?s.jsx(ot,{firstMonthOfFY:G,tenantEmailDomain:C,location:c,navigate:e,entity:i,defaultTransactionTimePeriod:v,resetTrendIsFetchedStates:()=>{T(!1),D(!1)},...t}):s.jsx(q,{to:I(j.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 Gt({entityType:a}){return s.jsx(_,{children:s.jsx(N,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:a})})})}export{Gt as EntityDetailRoutes,Gt as default};
@@ -1 +0,0 @@
1
- import{a as i}from"./sentry-ABHIIEow.js";import{u,h as l,g as m}from"./core-ABjOcAeP.js";import{i0 as p,Vl as g,Vm as _}from"./zeni-epic-state-1YQvLmng.js";import{u as b,L as h,z as y}from"./index-CsNSXQ28.js";import"./liveblocks-CR_kRbXv.js";import"./recharts-Dj6alQ6O.js";import"./mui-5AXMmyb4.js";import"./analytics-DBLR2qf0.js";import"./plaid-BjNi0t6-.js";import"./dnd-DwpncCYh.js";import"./stripe-cKAAJElX.js";import"./lottie-B6iZNmj2.js";import"./lexical-kNqf0ssJ.js";import"./pdf-BR5MHuna.js";import"./utils-oejz8VwT.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]="6cab0f1f-6489-424e-88dc-f890c0fdf0aa",e._sentryDebugIdIdentifier="sentry-dbid-6cab0f1f-6489-424e-88dc-f890c0fdf0aa")}catch{}})();function V(){const e=u(),n=l(),r=m(),{setLoading:o,clearAllLoading:d}=b(),a=i.useRef(!1);return i.useLayoutEffect((()=>{o(h.CONNECTION_AUTH)}),[o]),i.useEffect((()=>{if(a.current)return;a.current=!0;const s=new URLSearchParams(r.search).get("code"),c=sessionStorage.getItem("hubspot_oauth_pending");if(sessionStorage.removeItem("hubspot_oauth_pending"),s!=null&&c!=null){const t=JSON.parse(c);e(p(t.tenant_id,t.connection_id,g("revenue"),_("hubspot"),{authorization_code:s,client_id:t.client_id,client_secret:t.client_secret,redirect_uri:t.redirect_uri}))}d();const f=y.getActiveTenantForUser();n(f?.tenantEmailDomain!=null?`/${f.tenantEmailDomain}/settings/integrations`:"/",{replace:!0})}),[]),null}export{V as default};
@@ -1,12 +0,0 @@
1
- import{j as u}from"./liveblocks-CR_kRbXv.js";import{a as g}from"./sentry-ABHIIEow.js";import{u as F,g as O,h as _,t as w,j as l,N as T}from"./core-ABjOcAeP.js";import{z as r,G as M,Q as P,k as A,R as N,Y as R,Z as Y,T as G}from"./index-CsNSXQ28.js";import{fI as J,UJ as Q,Va as W,V1 as Z,gl as $,gn as q,V6 as B,gY as H,dl as K,Vb as X,Vc as ee}from"./zeni-epic-state-1YQvLmng.js";import{u as te,n as ne}from"./mui-5AXMmyb4.js";import{u as se}from"./useDeviceId-Bh7mtRKP.js";import{f as ae}from"./analyticsHelper-BP198oBL.js";import{t as ie}from"./getLocaleForTenant-B6xydbq0.js";import"./recharts-Dj6alQ6O.js";import"./analytics-DBLR2qf0.js";import"./plaid-BjNi0t6-.js";import"./dnd-DwpncCYh.js";import"./stripe-cKAAJElX.js";import"./lottie-B6iZNmj2.js";import"./lexical-kNqf0ssJ.js";import"./pdf-BR5MHuna.js";import"./utils-oejz8VwT.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]="370e4b9e-0a3f-4b41-ac28-16d899c11636",t._sentryDebugIdIdentifier="sentry-dbid-370e4b9e-0a3f-4b41-ac28-16d899c11636")}catch{}})();const C=(t,a)=>t!=null&&t.length>0&&a==="magic_links";function Ce(){const t=F(),a=O(),f=_(),[k]=w(),n=k.get("token"),p=k.get("stytch_token_type"),m=r.getMagicLinkCodeVerifier(),i=se(),{otpChallenge:d,twoFAPhoneNumber:D,magicLinkEmail:c,verifyDeviceFetchState:x,resendVerifyDeviceOTPFetchState:z}=l((e=>e.tenantState)),S=l((e=>e.tenantState.fetchState)),y=l((e=>e.tenantState.activeTenantFetchState.fetchState)),I=l((e=>e.tenantState.signInState)),h=l((e=>e.tenantState.magicLinkSignInFetchState.fetchState)),s=l((e=>e.tenantState.loggedInUser)),o=l((e=>J(e))),b=l((e=>Q(e))),E=r.getSignedInUser(),v=te().mode;g.useEffect((()=>{s?.zeniSessionId==null&&n!=null&&C(n,p)&&i!=null&&m!=null&&(r.saveMagicLinkTriggered(n),t(W(n,i,m)))}),[n,p,t,i,m,s?.zeniSessionId]),g.useEffect((()=>{I!=="In-Progress"||S!=="Completed"&&y!=="Completed"||s?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(s,s.zeniSessionId),r.saveSignedInUserTenants(Z(b.tenantsInOrder),s.zeniSessionId),$(s.userId,s.zeniSessionId,o.tenantId),t(q(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(B("Completed")),M.updateAppLocaleID(ie(o)),ae(s,o,v,void 0,b.tenantsInOrder),H().then((()=>{const e=G();e!=null&&P(e)})),setTimeout((()=>{A.trackLogin(N.Event.loginSuccess,"email",K(o.productSettings))}),2e3))}),[I,S,y,s,o,b,v,a.state,t]);const V=g.useCallback((()=>{f("/signin/auth")}),[f]),U=g.useCallback((()=>{i!=null&&d!=null&&c!=null&&t(X(i,c,d))}),[i,d,t,c]),j=g.useCallback((e=>{i!=null&&n!=null&&c!=null&&d!=null&&t(ee(e,i,c,d))}),[i,n,t,c,d]);if(h==="Completed"&&d!=null)return u.jsx(R,{phoneNumber:D,verifyOtpFetchState:x.fetchState,resendVerifyDeviceOTPFetchState:z,onResendOtp:U,onVerifyOtp:j,onCancelVerifyDevice:V});if(I==="In-Progress"&&S==="Completed"&&s?.zeniSessionId!=null&&o!=null||E!=null){const e=a.state?.origin??"/";return u.jsx(T,{to:e,state:{...a.state,origin:""}})}if(!C(n,p)||m==null||h==="Error"){const e=a.state?.origin??"/",L=n!=null&&r.getLastUsedMagicLinkToken()===n;return u.jsx(T,{to:e,state:{...a.state,origin:"",magicLinkAlreadyUsed:L,magicLinkExpired:!L&&(r.isMagicLinkTriggered(n??"")||h==="Error"&&s?.zeniSessionId==null)}})}return u.jsx(oe,{"data-testid":"smooth-loader",children:u.jsx(Y,{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{Ce as default};
@@ -1 +0,0 @@
1
- import{j as e}from"./liveblocks-CR_kRbXv.js";import{h as r,l as i}from"./core-ABjOcAeP.js";import{ak as n}from"./index-CsNSXQ28.js";import"./mui-5AXMmyb4.js";import"./sentry-ABHIIEow.js";import"./zeni-epic-state-1YQvLmng.js";import"./recharts-Dj6alQ6O.js";import"./analytics-DBLR2qf0.js";import"./plaid-BjNi0t6-.js";import"./dnd-DwpncCYh.js";import"./stripe-cKAAJElX.js";import"./lottie-B6iZNmj2.js";import"./lexical-kNqf0ssJ.js";import"./pdf-BR5MHuna.js";import"./utils-oejz8VwT.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]="e1fe4b0b-a509-4443-892f-577d1dfd5036",o._sentryDebugIdIdentifier="sentry-dbid-e1fe4b0b-a509-4443-892f-577d1dfd5036")}catch{}})();const a=i(null,(function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}}))(n);function _(){const o=r();return e.jsx(a,{navigate:o})}export{_ as default};
@@ -1 +0,0 @@
1
- import{n as mt,b as lt,o as ft,j as N}from"./liveblocks-CR_kRbXv.js";import ut from"./NotFoundScreen-CiQiUjjh.js";import{a as k}from"./sentry-ABHIIEow.js";import{h as ht,g as pt,i as kt,u as gt,j as S,l as St,n as bt,o as O}from"./core-ABjOcAeP.js";import{cC as It,UN as J,fI as Y,h5 as Tt,UR as b,a1V as z,UX as m,UL as y,AO as $,GB as Ct,a1W as At,UK as yt,UZ as Et,AT as _t,a1X as j,br as F,gk as x,AX as Z,a1Y as Nt,cO as Bt,cH as wt}from"./zeni-epic-state-1YQvLmng.js";import{ao as xt,d as Ut,c as Rt,F as vt,aq as Dt,dL as Gt,p as B,dM as Pt,w as Mt,dN as jt,i as Ft,a2 as $t}from"./index-CsNSXQ28.js";import"./mui-5AXMmyb4.js";import{u as Vt}from"./useAskAiCfoHostNavButtonProps-CwABKzO-.js";import{u as Lt}from"./useTaskManagerAccess-YKeu29rq.js";import"./recharts-Dj6alQ6O.js";import"./analytics-DBLR2qf0.js";import"./plaid-BjNi0t6-.js";import"./dnd-DwpncCYh.js";import"./stripe-cKAAJElX.js";import"./lottie-B6iZNmj2.js";import"./lexical-kNqf0ssJ.js";import"./pdf-BR5MHuna.js";import"./utils-oejz8VwT.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new t.Error().stack;l&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[l]="43cda6e0-d684-4ecf-a109-686bd847864f",t._sentryDebugIdIdentifier="sentry-dbid-43cda6e0-d684-4ecf-a109-686bd847864f")}catch{}})();const Wt=(t,l)=>new Promise(((n,h)=>{const g=t.map((c=>new Promise((o=>{l(c),o()}))));Promise.all(g).then((()=>{setTimeout((()=>{n()}),2e3)})).catch((c=>{h(c)}))})),Xt=St((function(t,l){const n=J(t),{signedInUser:h,isDebitCardFeatureEnabled:g,isTaskManagerAccessEnabled:c}=l,o=b(t),f=Y(t),{currentTab:I}=o;return{notificationView:o,isNotificationSettingsVisible:h.userEmail!=null&&Et(n.notificationSettings,h.userEmail,g,f,c),isDisabled:o.notificationDetailsByTab[I].fetchState==="In-Progress"?"disabled":void 0}}),(function(t,l){const{location:n,tenantEmailDomain:h,loggedInUserRoleMap:g,externalNotificationsUnreadCount:c,allUnreadCommentsNotificationIds:o,navigate:f,markInboxNotificationAsRead:I,fetchMoreCommentsNotifications:R}=l;return{onNotificationClick:(a,s,d,r)=>{if(r==="task_deleted"){const i=`/${h}/tasks`,T=B(n.state?.pathnameStackToGoBack,n.pathname);f(i,{state:{pathnameStackToGoBack:T,message:"triggerBackClick"}})}else{const i=`/${h}/tasks/${s}`,T=B(n.state?.pathnameStackToGoBack,n.pathname);f(i,{state:{pathnameStackToGoBack:T,message:"triggerBackClick"}})}d==="unread"&&t(Z("task_manager","read",[a],!1))},onCommentNotificationClick:(a,s,d)=>{const r=s.toString().split(`/${h}/`);if(r[1]!=null){d==="unread"&&(I(a),t(j([a],F())));let i=`/${h}/${r[1]}`;const T=B(n.state?.pathnameStackToGoBack,n.pathname);r[1].startsWith("reimbursement")&&!Bt(g)&&(i="not-found"),r[1].startsWith("bill")&&!wt(g)&&(i="not-found"),f(i,{state:{pathnameStackToGoBack:T,message:"triggerBackClick"}})}},onUpdateNotificationViewUIState:(a,s)=>{t(y(a,s))},onUpdateNotificationTabState:(a,s)=>{t(m(a,s))},onUpdateNotificationViewCurrentTabAndSubTab:(a,s)=>{t(z(a,s));const d=`../${a}`,r=B(n.state?.pathnameStackToGoBack,n.pathname);f(d,{state:{pathnameStackToGoBack:r}})},onUpdateNotificationViewSubTab:a=>{t(Nt(a))},onFetchMoreNotifications:(a,s)=>{if(a==="tasks"){const d=[];s==="all"?d.push("read","unread"):s!=="mentions"&&d.push(s),t($("task_manager","dashboard",d))}else R?.()},onUpdateNotificationStatus:(a,s,d,r)=>{a==="tasks"?t(Z("task_manager",d,r)):(t(m({markAsReadState:{fetchState:"In-Progress",error:void 0}},"comments")),Promise.all(r.map((i=>{d==="read"&&(I(i),t(j([i],F())))}))).then((()=>{t(m({markAsReadState:{fetchState:"Completed",error:void 0},selectedNotificationIds:[]},"comments")),t(y({unreadCount:c-r.length>0?c-r.length:0},"comments")),t(x({messageSection:"notification_mark_as_read",messageText:"success",type:"success",showStatusIcon:!0}))}),(i=>{t(m({markAsReadState:{fetchState:"Error",error:i}},"comments")),t(x({messageSection:"notification_mark_as_read",messageText:"failed",type:"error",showStatusIcon:!0}))})).catch((i=>{t(m({markAsReadState:{fetchState:"Error",error:i}},"comments")),t(x({messageSection:"notification_mark_as_read",messageText:"failed",type:"error",showStatusIcon:!0}))})))},onMarkAllNotificationsAsRead:a=>{a==="tasks"?t(_t("task_manager","read")):(t(m({markAsAllReadState:{fetchState:"In-Progress",error:void 0}},"comments")),Wt(o,I).then((()=>{t(j(o,F())),t(m({markAsAllReadState:{fetchState:"Completed",error:void 0}},"comments")),t(y({unreadCount:0},"comments")),t(x({messageSection:"notification_mark_as_read",messageText:"success",type:"success",showStatusIcon:!0}))})).catch((s=>{t(m({markAsAllReadState:{fetchState:"Error",error:s}},"comments")),t(x({messageSection:"notification_mark_as_read",messageText:"failed",type:"error",showStatusIcon:!0}))})))},onBackClick:()=>{const a=$t(n.state?.pathnameStackToGoBack),s=a.poppedPathname??"../../dashboard";f(s,{state:{pathnameStackToGoBack:a.newStack}})},onSettingsClick:()=>{const a=B(n.state?.pathnameStackToGoBack,n.pathname);f("../../settings/notifications",{state:{pathnameStackToGoBack:a}})}}}))(Mt(jt)),qt=()=>{const t=ht(),l=pt(),{tenantEmailDomain:n,selectedTab:h}=kt(),{areTenantIdsInSync:g}=xt(),c=It(h??""),o=gt(),f=Ut(),[I,R]=k.useState(!1),a=S((e=>J(e))),s=S((e=>Y(e))),{useFeatureGate:d}=Rt(),{isFeatureEnabled:r}=d(vt.isDebitCardFeatureEnabled),{isAiCfoAccessEnabled:i,onAskAiCfoClick:T}=Vt({mobileExploreReferrer:"Notifications"});Dt({isDataReady:!0});const Q=Tt(s.userRole);if(s==null||n==null||s.companyId==null)throw Error("Can't access notifications page without current tenant...");if(f==null)throw Error("Can't access notifications page without signed in...");const V=S((e=>b(e).notificationDetailsByTab.tasks.fetchState)),L=S((e=>b(e).currentTab)),v=S((e=>b(e).currentSubTab)),tt=S((e=>b(e).notificationDetailsByTab.comments.fetchCountState)),D=S((e=>b(e).notificationDetailsByTab.comments.fetchState)),et=S((e=>b(e).notificationDetailsByTab.comments.uiState.unreadCount)),at=S((e=>b(e).allExternalNotifications)).filter((e=>e.inboxNotification.readAt==null)).map((e=>e.inboxNotification.id)),st=Gt().allUsers,{inboxNotifications:w,isLoading:E,hasFetchedAll:C,isFetchingMore:G,fetchMore:ot}=mt(),{threads:W,isLoading:X,fetchMore:q,isFetchingMore:H,hasFetchedAll:K}=lt({query:{metadata:{companyId:s.companyId,application:"dashboard"}}});k.useEffect((()=>{if(L!==c&&c!=null&&o(z(c)),c==null){const e=`../${L}`,p=B(l.state?.pathnameStackToGoBack,l.pathname);t(e,{state:{pathnameStackToGoBack:p}})}}),[c]),k.useEffect((()=>{tt.fetchState==="Not-Started"&&o(m({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))}),[]),k.useEffect((()=>{if(E===!1&&C===!0&&s?.companyId!=null&&w!=null){const e=`dashboard_${s.companyId}`,p=w.filter((A=>A.roomId===e&&A.readAt==null)).length;o(m({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),o(y({unreadCount:p},"comments"))}}),[E,C]),k.useEffect((()=>{V!=="In-Progress"&&g&&o($("task_manager","dashboard",["read","unread"]))}),[g]),k.useEffect((()=>{const e=setTimeout((()=>ot?.()),0);return()=>clearTimeout(e)}));const P=E||G===!0||C!==!0||E||G===!0||C!==!0;k.useEffect((()=>{P&&D!=="In-Progress"?o(m({fetchState:"In-Progress",error:void 0},"comments")):P||D!=="In-Progress"||o(m({fetchState:"Completed",error:void 0},"comments"))}),[P,D]),k.useEffect((()=>{o(y({hasMore:C!==!0},"comments"))}),[C]),k.useEffect((()=>{a.fetchState!=="In-Progress"&&a.fetchState!=="Completed"&&I===!1&&(R(!0),o(Ct()))}),[a.fetchState]),k.useEffect((()=>{if(E===!1&&X===!1&&w!=null&&W!=null){const e=`dashboard_${s.companyId}`,p=w.filter((u=>u.roomId===e)).filter((u=>Pt(u.kind))),A=p.filter((u=>u.readAt==null)),_=p.map((u=>u.id)),ct=p.map((u=>{const M=W.find((dt=>{return dt.id===((U=u).kind==="thread"?U.threadId:"subjectId"in U?U.subjectId:void 0);var U}));return M!=null?{inboxNotification:{...u,threadId:M.id},thread:M}:(H||K===!0||q==null||q(),null)})).filter((u=>u!=null));o(m({allNotificationsIds:_},"comments")),o(y({totalCount:_.length,unreadCount:A.length},"comments")),o(At(ct))}}),[E,G,H,C,K,X,w?.length]);const nt={events:s.userRoleId!=null?[`private-encrypted-${s.userRoleId}.dashboard-user-notification`]:[],eventCallback:(e,p)=>{if(Ft(p)){const A=yt(p.mode);if(A==="dashboard"&&o(y({unreadCount:p.data.unread},"tasks")),V!=="In-Progress"){const _=[];v==="all"?_.push("read","unread"):v!=="mentions"&&_.push(v),o($("task_manager",A,_,!0))}}}},it=ft(),{isTaskManagerAccessEnabled:rt}=Lt(f);return N.jsx(Xt,{tenantEmailDomain:n,loggedInUserRoleMap:Q,signedInUser:f,externalNotificationsUnreadCount:et,location:l,navigate:t,isDebitCardFeatureEnabled:r,isTaskManagerAccessEnabled:rt,users:st,markInboxNotificationAsRead:it,allUnreadCommentsNotificationIds:at,isAiCfoAccessEnabled:i,onAskAiCfoClick:T,...nt})};function me(){return N.jsxs(bt,{children:[N.jsx(O,{path:"/:selectedTab",element:N.jsx(qt,{})}),N.jsx(O,{path:"*",element:N.jsx(ut,{})})]})}export{me as default};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-CR_kRbXv.js";import E from"./NotFoundScreen-CiQiUjjh.js";import{a as r}from"./sentry-ABHIIEow.js";import{h as _,g as U,j as p,i as v,u as M,N as P,l as O,n as z,o as b}from"./core-ABjOcAeP.js";import{fI as B,a1Z as h,bo as F,bn as N,iP as V,gk as q}from"./zeni-epic-state-1YQvLmng.js";import{U as Z,z as I,aq as $,dO as G}from"./index-CsNSXQ28.js";import"./mui-5AXMmyb4.js";import{u as H}from"./useAskAiCfoHostNavButtonProps-CwABKzO-.js";import{M as J}from"./MobileAppDrawer-CWX9dOmR.js";import"./recharts-Dj6alQ6O.js";import"./analytics-DBLR2qf0.js";import"./plaid-BjNi0t6-.js";import"./dnd-DwpncCYh.js";import"./stripe-cKAAJElX.js";import"./lottie-B6iZNmj2.js";import"./lexical-kNqf0ssJ.js";import"./pdf-BR5MHuna.js";import"./utils-oejz8VwT.js";import"./InboxNotificationsProvider-BzcLp6EN.js";import"./useTaskManagerAccess-YKeu29rq.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]="c3f5e77b-8f9d-41c9-87b3-e8b0baf73392",e._sentryDebugIdIdentifier="sentry-dbid-c3f5e77b-8f9d-41c9-87b3-e8b0baf73392")}catch{}})();const K=O((function(e){const t=I.getSignedInUser(),c=e.tenantState.currentTenantId,o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:c??""},{aggregatedReportViewState:n}=h(e);return{authParams:o,isDisabled:!1,loggedInUser:t,aggregatedReport:n}}),(function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}}))(G),L=()=>{const e=_(),t=U(),c=Z(),o=p((a=>B(a))),{aggregatedReportViewState:n}=p((a=>h(a))),{tenantEmailDomain:m}=v(),u=M(),l=I.getSignedInUser();if(l==null)throw new Error("Can't access this page without signing in...");const f=r.useRef(!1),[w,S]=r.useState(!1),C=F(o?.userRole??[]),k=o?.userRole?.includes("bookkeeping_admin")??!1,x=N(l),y=C||k||x,d=r.useCallback(((a,i,T)=>{u(V({fromMonth:a,toMonth:i,cacheOverride:T}))}),[]);r.useEffect((()=>{n?.fetchState==="Completed"&&f.current&&(u(q({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),f.current=!1)}),[n?.fetchState]);const D=r.useCallback(((a,i)=>{n!=null&&n?.fetchState==="In-Progress"||d(a,i,!0),f.current=!0}),[n?.fetchState,d]),j=r.useCallback(((a,i)=>{d(a,i,!1)}),[d]),g=a=>{S(a)},{isAiCfoAccessEnabled:R,onAskAiCfoClick:A}=H({mobileExploreReferrer:"Performance"});return $({isDataReady:n?.fetchState==="Completed"}),y?s.jsxs(s.Fragment,{children:[s.jsx(J,{isAppContentDrawerOpen:w,handleDrawerToggle:g}),s.jsx(K,{navigate:e,location:t,themeState:c,currentTenant:o,signedInUser:l,tenantEmailDomain:m,onReload:D,onTimeRangeSelect:j,handleDrawerToggle:g,isAiCfoAccessEnabled:R,onAskAiCfoClick:A})]}):s.jsx(P,{to:`/${m}/dashboard`,replace:!0})};function be(){return s.jsxs(z,{children:[s.jsx(b,{path:"*",element:s.jsx(L,{})}),s.jsx(b,{path:"*",element:s.jsx(E,{})})]})}export{be as default};
@@ -1,68 +0,0 @@
1
- import{j as s}from"./liveblocks-CR_kRbXv.js";import{u as ae,j as v,h as Q,g as J,i as ie,N,l as ee,q as lt,n as ct,o as x}from"./core-ABjOcAeP.js";import{fI as H,Oa as mt,$O as ge,ca as he,Ng as Ue,me as dt,Nv as me,Nu as de,$P as ut,bn as fe,gZ as Le,$Q as pt,XE as bt,m3 as $e,XF as ke,XG as gt,kR as ht,ZP as ft,l4 as St,N4 as It,CA as yt,kY as Rt,NR as Ne,$R as Pe,$S as Ce,$T as At,$U as vt,$V as kt,NB as we,la as Ct,ZY as wt,Nt as Et,Ne as xt,$W as Bt,Nd as Tt,$X as Dt,Nl as Ee,NF as jt,NE as Ft,NA as Ut,$Y as _e,T2 as Lt,bo as $t,No as Nt,O7 as Pt,$Z as _t,$_ as Mt,NN as Ot,NK as xe,Zj as Zt,Nb as zt,$$ as Me,OA as Be,OI as Gt,a00 as Vt,a01 as X,a02 as Ht,a03 as Oe,a04 as Wt,a05 as Ze,a06 as ze,NZ as ue,bv as qt,bM as Se,cO as Ie,e1 as Ge,e0 as Ve,a07 as Xt,gk as Yt,Zw as Jt,a08 as Kt,a09 as He,ZA as Qt,_j as en,a0a as tn,_I as nn,OF as Te,OE as an,a0b as sn,a0c as on,a0d as rn,a0e as ln,a0f as cn,_2 as mn,Ov as dn,Oz as un,bq as pn,bL as bn,cI as gn,cw as hn,bu as fn,V2 as Sn,dc as In,df as yn,de as Rn,cH as An}from"./zeni-epic-state-1YQvLmng.js";import{bU as vn,U as We,$ as qe,c as oe,F as U,z as L,cT as Xe,a6 as re,k as E,aQ as De,J as j,ac as se,ad as kn,G as Ye,cU as Cn,p as Y,aq as Je,cV as wn,V as le,cW as En,ao as xn,a9 as Bn,a5 as ye,R as Ke,w as Tn,bC as Dn,at as jn,ag as Fn,cX as Un,h as Ln}from"./index-CsNSXQ28.js";import{n as P,S as $n,u as Qe}from"./mui-5AXMmyb4.js";import pe from"./NotFoundScreen-CiQiUjjh.js";import{S as je}from"./SetupPagesScreen-BGcK0ycG.js";import{F as et}from"./FeaturePreviewScreen-DvF-zXjD.js";import{a as g}from"./sentry-ABHIIEow.js";import{u as Re}from"./useAskAiCfoHostNavButtonProps-CwABKzO-.js";import{u as tt}from"./useInitialThreadRequest-sgGR3rYU.js";import{D as Nn}from"./DrawerScreen-D_vSdnBo.js";import{M as nt}from"./MobileAppDrawer-CWX9dOmR.js";import{F as Pn}from"./ScreenRoutes-QzbtraUH.js";import{R as _n}from"./ReimbursementApprovalRoutes-BrA8Srv9.js";import"./recharts-Dj6alQ6O.js";import"./analytics-DBLR2qf0.js";import"./plaid-BjNi0t6-.js";import"./dnd-DwpncCYh.js";import"./stripe-cKAAJElX.js";import"./lottie-B6iZNmj2.js";import"./lexical-kNqf0ssJ.js";import"./pdf-BR5MHuna.js";import"./utils-oejz8VwT.js";import"./BusinessVerificationPageScreen-ZXrkHunt.js";import"./routePaths-Duhkra_N.js";import"./analyticsHelper-BP198oBL.js";import"./InboxNotificationsProvider-BzcLp6EN.js";import"./useTaskManagerAccess-YKeu29rq.js";import"./getLocaleForTenant-B6xydbq0.js";import"./useEnsureVendorListLoaded-DfLNcoZI.js";import"./ReimbursementApprovalRuleDetailScreen-BBCam2gh.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]="bc9f73f3-e7f2-4cb8-8dee-f5cab7cc395c",e._sentryDebugIdIdentifier="sentry-dbid-bc9f73f3-e7f2-4cb8-8dee-f5cab7cc395c")}catch{}})();const at=e=>`/${e}/reimbursements`,Mn=e=>g.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",...e},g.createElement("path",{d:"M12.5 3.5L3.5 12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M12.5 12.5L3.5 3.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),{common:q,spendManagement:{reimbursement:{reimbursementDetail:ne}}}=Ye.getLocalizedStrings(),On=ee((function(e,t){const n=t.currentTenant?.companyId,r=ut(e.plaidAccountViewState,"user_reimbursement_account"),c=L.getSignedInUser(),m=fe(c),d=r.plaidConnectionDetails,i=Le(e.companyState,n),a=e.tenantState.currentTenantId,o={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:a??""},l=ge(e,t.reimbursementId),p=pt(e,c?.userId??"");let I=`${c?.firstName} ${c?.lastName}`,u=!0;t.reimbursementId!=null&&(I=`${l.createdBy?.firstName??"Zeni"} ${l.createdBy?.lastName??""}`,u=c?.userId===l.createdBy?.userId);const T=e.entityAutoCompleteState?.autoCompleteText?.common,y=bt(e,"common");return{remiDetails:l,uploadInvoiceEndPoint:`${se.communicationAgentMicroServiceBaseUrl}`,reimbursementId:t.reimbursementId,customerSearchAutoCompleteData:{autoCompleteText:T,entityAutoCompleteView:y},authParams:o,defaultCurrency:{currencySymbol:i?.company.companyLocaleInfo.currencySymbol??"$",currencyCode:i?.company.companyLocaleInfo.currencyCode??"USD"},companyMileageConfigInfo:i?.company.configInfo.mileageRateConfig,createdBy:I,isUserAdmin:he(t.currentTenant?.userRole??[]),isZeniUser:m,plaidConnectionDetails:d,bankNameByRouting:l.bankNameByRouting,bankAccountCreationState:p.bankAccountCreationState,bankAccounts:p.bankAccounts,analytics:E,bankAccountToCreate:l.bankAccountToCreate,fetchBankNameByRoutingStatus:l.fetchBankNameByRoutingStatus,isSignedInUserReimbursementCreator:u,disableInternalOverlay:t.disableInternalOverlay,showSkipAutoFill:t.showSkipAutoFill,setShowSkipAutoFill:t.setShowSkipAutoFill,isAccountingClassesEnabled:$e(e)}}),(function(e,t){const{reimbursementId:n,currentTenant:r,location:c,navigate:m,themeState:d}=t,{tenantEmailDomain:i}=r,a=L.getSignedInUser();return{onReceiptsUpload:(o,l,p)=>{o!=null&&e(de(o,l,p,n,a?.userId))},onExistingMerchantChange:(o,l)=>{e(Ee(!1,l,n,o,void 0))},fetchDuplicateReimbursement:()=>{a?.userId!=null&&e(Ut(a.userId,!0,n))},clearDuplicateReimbursementDetail:()=>{e(Ft())},clearRemiSaveStatus:()=>{e(jt("Not-Started",n))},onDuplicateLineClick:(o,l)=>window.open(`/${i}/reimbursement/${o}#L${l}`),onNewMerchantChange:(o,l)=>{e(Ee(!1,l,n,void 0,o))},removeFileFromLine:o=>{e(Dt({lineId:o,reimbursementId:n}))},onAmountChanged:(o,l)=>{e(Tt(l,o,n))},updateReimbursementType:(o,l,p)=>{e(Bt({reimbursementId:p,lineId:l,reimbursementType:o}))},onHomeCurrencyConversionUpdate:(o,l,p)=>{e(xt({reimbursementId:p,lineId:l,amountPayload:{amount:o.amount,currency_code:o.currencyCode,currency_symbol:o.currencySymbol}}))},onReimbursementDetailsChanged:o=>{e(Et({remiDetailLocalData:o,reimbursementId:n}))},saveRemiDetails:o=>{e(we(o,!1,n))},onUserBankDetailsUpdated:o=>{const{bankAccountSection:l}=o;e(wt({data:l}))},onFetchBankName:o=>{e(Ct(o))},submitRemiDetails:()=>{e(we("pending_approval",!0,n))},discardReimbursementDetailsFromLocalStore:o=>{e(Ce({reimbursementId:o}))},updateInvoiceUploadFetchState:o=>{e(me({reimbursementId:n,fetchState:o}))},clearTentativeNameForLine:o=>{e(kt({reimbursementId:n,lineId:o}))},removeDuplicateReimbursementForLine:o=>{e(vt({lineId:o}))},onZeniLogoClick:()=>{d.toggle()},clearAddRemiAutoFields:o=>{e(At({reimbursementId:n,lineId:o}))},redirectToReimbursementListScreen:()=>{e(Pe()),e(Ce({}));const o=at(i),l=Y(c.state?.pathnameStackToGoBack,c.pathname);m(o,{state:{pathnameStackToGoBack:l}})},redirectToReimbursementDetailScreen:()=>{t.navigate("../")},deleteReimbursement:()=>{n!=null&&(E.trackReimbursementDeleteReimbursement(n),e(Ne(n)))},onSaveBankAccount:()=>{a?.userId&&e(Rt(a?.userId,n))},onFetchLinkTokenClick:o=>{e(yt("user_reimbursement_account",o))},onEstablishConnectionClick:o=>{e(It(o,r.companyId,"user_reimbursement_account",void 0,"link_account_no_microdeposit"))},deleteBankAccount:o=>{e(St(o,a?.userId??""))},onBackClickFromBankAccountPage:()=>{e(ht({fetchState:"Not-Started"})),e(ft())},customerSearchAutoCompleteActions:{onAutoCompleteInputChange:(o,l)=>{o.trim().length>=2?e(gt({searchString:o,entityType:l,searchOrigin:"common"})):e(ke("common"))},onCancelAutoComplete:()=>{e(ke("common"))}}}}))(Cn);function Fe(){const e=Q(),t=ae(),n=J(),{reimbursementId:r}=ie(),c=We(),m=qe(),d=g.useRef(!1),[i,a]=g.useState(r==null),[o,l]=g.useState(1),{useFeatureGate:p}=oe(),{isFeatureEnabled:I}=p(U.isLimitedCategoryForReimbursement),{isFeatureEnabled:u}=p(U.isShowDeletedReimbursementsFeatureEnabled),{isAiCfoAccessEnabled:T,onAskAiCfoClick:y}=Re({mobileExploreReferrer:"Reimbursement Details"}),B=J().pathname,D=B.includes("edit"),k=B.includes("reimbursement/new"),[C,R]=g.useState(!1),S=L.getSignedInUser(),w=v((b=>H(b))),h=v((b=>ge(b,r))),$=tt(w?.companyId,{clearParams:h.fetchState==="Completed"}),F=he(w?.userRole??[]);(function(){const b=ae(),M=v((K=>H(K))),O=M?.tenantId,{isApprovalRulesV3Enabled:Z,isLoading:W}=vn(O),z=v((K=>K.remiSetupApproverViewState.fetchState));g.useEffect((()=>{O==null||W||z==="Not-Started"&&b(mt(!0,!1,!1,Z))}),[O,W,Z,z,b])})(),g.useEffect((()=>{(k&&!C||D&&!C&&h.fetchState!="Completed"&&h.fetchState!="In-Progress")&&(R(!0),t(Ue(!1,I,u,r)))}));const A=v((b=>dt(b.accountState,b.accountListState,"reimbursementAccountList")));if(S==null)throw Error("Can't access address page without signing in...");const _={pathname:`../${r}`,search:n.search};return h.fetchState==="Completed"&&(d.current=!0),h.isDeleted===!0||h.billStage=="paid"||h.billStage=="scheduled"||d.current===!1&&h.fetchState==="Not-Started"||F&&h.billStatus==="rejected"||F===!1&&h.billStage==="pending_approval"&&h.billStatus!=="rejected"?s.jsx(N,{to:_}):d.current!==!1||h.deleteStatus.fetchState!=="In-Progress"&&h.fetchState==="Completed"?s.jsxs(Zn,{windowSize:m,children:[s.jsx(re,{analytics:E,onLoad:b=>(M=>{r!=null&&h.deleteStatus.fetchState!=="Completed"&&M.trackReimbursementEditReimbursement(r)})(b)}),i&&m!=="small"?s.jsx(zn,{}):null,i&&m!=="small"?s.jsx(Gn,{children:s.jsx(De,{showAutofill:i,uploadInvoiceEndPoint:`${se.communicationAgentMicroServiceBaseUrl}`,authParams:{userId:S?.userId??"",sessionId:S?.zeniSessionId??"",tenantId:w?.tenantId??""},onSkipAutofill:()=>a(!1),onInvoiceUpload:b=>{b!=null&&t(de(b,o,!0,r,S?.userId))},updateInvoiceUploadFetchState:b=>{t(me({reimbursementId:r,fetchState:b}))},allowMultiFiles:i,showInfoText:!1,type:"reimbursement",style:{width:"100%",paddingTop:"78px",paddingRight:j.sp3,paddingBottom:"15px",paddingLeft:j.sp5},dropFilePlaceholder:{upload:q.upload,single:ne.dropReceipt.single,or:q.texts.or,multiple:ne.dropReceipt.multiple,receipts:q.texts.receipts2}})}):null,i&&m==="small"?s.jsxs(Vn,{children:[s.jsx(Hn,{onClick:()=>a(!1),children:s.jsx(Mn,{})}),s.jsx(De,{showAutofill:i,uploadInvoiceEndPoint:`${se.communicationAgentMicroServiceBaseUrl}`,authParams:{userId:S?.userId??"",sessionId:S?.zeniSessionId??"",tenantId:w?.tenantId??""},onSkipAutofill:()=>a(!1),onInvoiceUpload:b=>{b!=null&&t(de(b,o,!0,r,S?.userId))},updateInvoiceUploadFetchState:b=>{t(me({reimbursementId:r,fetchState:b}))},allowMultiFiles:i,showInfoText:!1,type:"reimbursement",style:{width:"100%",paddingTop:j.sp5,paddingRight:j.sp3,paddingBottom:j.sp5,paddingLeft:j.sp3},dropFilePlaceholder:{upload:q.upload,single:ne.dropReceipt.single,or:q.texts.or,multiple:ne.dropReceipt.multiple,receipts:q.texts.receipts2}})]}):null,s.jsx(Wn,{windowSize:m,children:s.jsx(On,{initialOpenThreadRequest:$??void 0,location:n,navigate:e,currentTenant:w,reimbursementId:r,themeState:c,uncategorizedAccounts:A,disableInternalOverlay:!0,showSkipAutoFill:i,setShowSkipAutoFill:a,onCurrentLineIdForUploadChange:l,isAiCfoAccessEnabled:T,onAskAiCfoClick:y})})]}):s.jsx(Xe,{isNewReimbursement:r==null})}const Zn=P.div`
2
- display: flex;
3
- position: relative;
4
- height: 100vh;
5
- flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
6
- background-color: ${e=>e.theme.colors.grey4};
7
- `,zn=P.div`
8
- position: fixed;
9
- top: 0;
10
- left: 0;
11
- right: 0;
12
- bottom: 0;
13
- background-color: ${kn.overlayBackgroundBlack};
14
- z-index: 5;
15
- `,Gn=P.div`
16
- position: absolute;
17
- top: 0;
18
- left: 0;
19
- width: 42%;
20
- height: 100%;
21
- z-index: 6;
22
- display: flex;
23
- background-color: transparent;
24
- overflow: hidden;
25
- `,Vn=P.div`
26
- position: fixed;
27
- top: 0;
28
- left: 0;
29
- right: 0;
30
- bottom: 0;
31
- z-index: 11;
32
- display: flex;
33
- flex-direction: column;
34
- overflow-y: auto;
35
- background-color: ${e=>e.theme.colors.grey4};
36
- `,Hn=P.button`
37
- align-self: flex-end;
38
- background: none;
39
- border: none;
40
- cursor: pointer;
41
- padding: ${j.sp2} ${j.sp3};
42
- line-height: 1;
43
- color: ${e=>e.theme.colors.hero};
44
- &:hover {
45
- color: ${e=>e.theme.colors.primary};
46
- }
47
- svg {
48
- width: ${j.sp4};
49
- height: ${j.sp4};
50
- }
51
- `,Wn=P.div`
52
- display: flex;
53
- flex-direction: column;
54
- width: 100%;
55
- ${e=>e.windowSize!=="small"?"overflow: auto;":""}
56
- `,qn=ee((function(e,t){const n=_e(e,t.reimbursementId),r=L.getSignedInUser(),c=fe(r),m=e.tenantState.currentTenantId,d={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:m??""},i=`${n.createdBy?.firstName??"Zeni"} ${n.createdBy?.lastName??""}`;let a=!1;n?.remiActivities.length>0&&(a=_t(n.remiActivities,Mt(t.currentTenant),r));const o=he(t.currentTenant?.userRole??[]),l=r?.userId===n.createdBy?.userId;return{remiDetails:n,uploadInvoiceEndPoint:`${se.communicationAgentMicroServiceBaseUrl}`,authParams:d,signedInUser:r,createdBy:i,isRealTimeApprovalEnabled:t.isRealTimeApprovalEnabled,isAdmin:o,showApproveRejectBtns:a,isZeniUser:c,isSignedInUserReimbursementCreator:l,isAccountingClassesEnabled:$e(e)}}),(function(e,t){const{reimbursementId:n,currentTenant:r,location:c,navigate:m,themeState:d}=t,{tenantEmailDomain:i}=r;return{onDuplicateLineClick:(a,o)=>window.open(`/${i}/reimbursement/${a}#L${o}`),redirectToReimbursementListScreen:()=>{e(Pe());const a=at(i),o=Y(c.state?.pathnameStackToGoBack,c.pathname);m(a,{state:{pathnameStackToGoBack:o}})},onSaveRealTimeApprovals:a=>{e(zt(n,"reimbursement",a))},updateEditRealTimeApproverClicked:a=>{e(Zt({isEdit:a,entityId:n,entityType:"reimbursement"}))},approveOrRejectRemi:a=>{a.type==="approved"?e(xe(n,a.type,"")):e(xe(n,a.type,a.description??""))},redirectToEditableReimbursementScreen:()=>{const a=Y(c.state?.pathnameStackToGoBack,c.pathname);m("./edit",{state:{pathnameStackToGoBack:a}})},deleteReimbursement:()=>{E.trackReimbursementDeleteReimbursement(n),e(Ne(n))},cancelAndDeleteReport:a=>{a===!0?E.trackReimbursementCancelAndDeleteReimbursement(n):E.trackReimbursementCancelReimbursement(n),e(Ot(n,a))},handleZeniLogoClick:()=>{d.toggle()}}}))(wn);function Xn(){const e=Q(),t=ae(),n=J(),r=n.hash.substring(1),c=We(),{reimbursementId:m}=ie(),d=L.getSignedInUser(),i=v((A=>H(A))),a=v((A=>_e(A,m??""))),o=a.remiDetails?.reimbursementInfo.stage.code==="draft",l=tt(i?.companyId,{clearParams:a.fetchState==="Completed"&&!o}),{isAiCfoAccessEnabled:p,onAskAiCfoClick:I}=Re({mobileExploreReferrer:"Reimbursement Details"});Je({isDataReady:a.fetchState==="Completed"});const{useFeatureGate:u}=oe(),{isFeatureEnabled:T}=u(U.isLimitedCategoryForReimbursement),[y,B]=g.useState(!1),[D,k]=g.useState(!1),[C,R]=g.useState(!1),{isFeatureEnabled:S}=u(U.isShowDeletedReimbursementsFeatureEnabled),w=v((A=>ge(A,m??""))),h=Lt(i),$=$t(i.userRole),F=a.fetchState;if(g.useEffect((()=>{y||m==null?y==1&&F==="Error"&&e("page-not-found",{replace:!0}):(B(!0),t(Nt(m,!1,S)))}),[y,m,t,F]),g.useEffect((()=>{S&&a.remiDetails?.isDeleted===!0||i.isZeni===!0&&d?.userEmailDomain==="zeni.ai"&&h===!1?R(!1):R(a.remiActivities[0]?.isRealTimeApprovalEnabled&&($||a.allApprovers.find((A=>A.user.userId===d?.userId))!=null||a.remiDetails?.lastUpdatedBy===d?.userId))}),[a.remiActivities[0]?.isRealTimeApprovalEnabled,a.allApprovers,a.remiDetails?.lastUpdatedBy,$,i.isZeni,h,d]),g.useEffect((()=>{D||a.fetchState!="Completed"||a.remiDetails?.reimbursementInfo.stage.code=="paid"||a.remiDetails?.reimbursementInfo.stage.code=="scheduled"||w.fetchState=="Completed"||w.fetchState=="In-Progress"||(k(!0),t(Ue(!1,T,S,m)),a.remiActivities[0]?.isRealTimeApprovalEnabled===!0&&t(Pt(!1,!0,!0,a.lastUpdatedByUserId)))}),[D,a,m,t]),d==null)throw Error("Can't access address page without signing in...");return a.remiDetails?.reimbursementInfo.stage.code=="draft"&&w.fetchState=="Completed"&&a.remiDetails.isDeleted===!1?s.jsx(N,{to:`./edit${n.search}`}):a.deleteStatus.fetchState==="In-Progress"||a.cancelAndDeleteStatus.fetchState==="In-Progress"||a.remiDetails?.reimbursementInfo.stage.code=="draft"&&w.fetchState!="Completed"||a.fetchState!="Completed"?s.jsx(Xe,{}):s.jsxs(s.Fragment,{children:[s.jsx(re,{analytics:E,onLoad:A=>(_=>{m!=null&&_.trackReimbursementReimbursementDetails(m)})(A)}),s.jsx(qn,{initialOpenThreadRequest:l??void 0,scrollId:r,isShowDeletedReimbursementEnabled:S,location:n,navigate:e,isRealTimeApprovalEnabled:C,currentTenant:i,reimbursementId:m??"",themeState:c,isAiCfoAccessEnabled:p,onAskAiCfoClick:I})]})}const Yn=ee((function(e,t){return{remisReviewView:Me(e),analytics:t.analytics}}),(function(e,t){return{onCloseOverlay:()=>{t.navigate(`/${t.tenantEmailDomain}/reimbursements`),e(X())},onCloseReviewItem:n=>{e(Vt(n))},onProceedForBulkActionClick:(n,r)=>{switch(n){case"send_for_approval":e(Gt());break;case"approve":e(Be("approved",r??""));break;case"reject":e(Be("rejected",r??""))}}}}))(En);function Jn({tenantEmailDomain:e}){const t=Q(),n=v((d=>d.remisBulkActionViewState.bulkSubmissionFetchState.fetchState)),{remisForReview:r}=v((d=>Me(d))),c=le(),m=c?.loggedInUserRole?.includes("admin")===!0;return g.useEffect((()=>{n!=="Completed"&&r.length!==0||t(`/${e}/reimbursements`)}),[n,r.length,e]),s.jsx(Yn,{navigate:t,analytics:E,isAdmin:m,tenantEmailDomain:e})}const V=Qt(),st="bulk-operation-update",be="reimbursement-approval-rule-update",{spendManagement:Kn,common:ce}=Ye.getLocalizedStrings(),Qn=Kn.reimbursement.bulkActions,ea=P.div`
57
- display: flex;
58
- min-height: 100%;
59
- width: 100%;
60
- flex: 1 1 auto;
61
- flex-direction: column;
62
- align-items: center;
63
- background-color: ${e=>e.theme.colors.grey4};
64
- `,ta=ee((function(e,t){const n=ze(e,V,t.isBulkActionEnabled);let r=n.allSubTabs;const c=L.getSignedInUser(),m=fe(c),d=e.tenantState.currentTenantId,i=H(e),a=i?.companyName??"",o={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:d??""},l=e.remiListState.downloadUIState.downloadState;t.isShowDeletedReimbursementEnabled===!1&&(r=r.filter((u=>u!=="deleted")));const p=n.fetchState,I=en(e);return{transactionList:t.isShowDeletedReimbursementEnabled?n.reimbursements:n.reimbursements.filter((u=>u.isDeleted===!1)),isAdmin:t.isAdmin,isZeniUser:m,allSubTabs:r,isEmployee:t.isEmployee,currentTab:n.currentTab,currentSubTab:n.currentSubTab,approvalCount:n.approvalCount,fetchState:p,botEmail:n.reimbursementBotEmail,analytics:E,uiState:n.uiState,searchText:n.searchText,filters:n.filters,downloadParams:{authParams:o,companyName:a,timePeriod:V,spendManagementEndPoint:`${jn}/spendManagement`,isShowDeletedBillsEnabled:t.isShowDeletedBillsEnabled,isShowDeletedReimbursementEnabled:t.isShowDeletedReimbursementEnabled},downloadState:l,isBulkActionAllowed:n.remiListBulkActionInfo?.isBulkActionAllowed,transactionsSelectedForBulkAction:n.remiListBulkActionInfo?.remisSelectedForBulkAction,allowedBulkActions:n.remiListBulkActionInfo?.allowedBulkActions,remiApprovalRulesAffectedEntityIds:I.affectedEntityIds}}),(function(e,t){const{navigate:n,currentTenant:r,location:c,period:m}=t,{tenantEmailDomain:d}=r;return{updateTabToState:i=>{e(X()),e(Oe(i))},onSubtabChange:i=>{e(X()),e(Ze(i))},onTransactionClick:(i,a)=>{const o=sa(d,i,a),l=Y(c.state?.pathnameStackToGoBack,c.pathname);n(o,{state:{pathnameStackToGoBack:l}})},onClickSetupIcon:()=>{const i=aa(d),a=Y(c.state?.pathnameStackToGoBack,c.pathname);n(i,{state:{pathnameStackToGoBack:a}})},onAddTransactionClick:()=>{const{tenantEmailDomain:i}=t.currentTenant;E?.trackReimbursementNewReimbursement();const a=`/${i}/reimbursement/new`,o=Y(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(a,{state:{pathnameStackToGoBack:o}})},onColumnSortConfigChanged:(i,a)=>{e(cn({uiState:{sortKey:i,sortOrder:a},period:t.period}))},onSearchTextChanged:i=>{e(ln(i))},onFiltersChange:i=>{e(rn({filters:i})),i.categories.every((a=>a.field!=null&&a.values?.length!==0))&&E.trackSpendManagmentFilterChange("reimbursement",i.categories.map((a=>`${a.field}-${JSON.stringify(a.values)}`)))},updateDownloadStateHandler:i=>{i==="In-Progress"&&E.trackSpendManagementDownloadClick("reimbursement"),e(on({uiState:{downloadState:i}}))},onReloadTransactions:()=>{e(ue(m,!0,t.isShowDeletedReimbursementEnabled,!1,!0))},onBackClick:()=>{n("../",{relative:"path"})},onNavigateToSettings:()=>{n("../reimbursements/setup")},updateBulkActionList:i=>{e(sn(i))},removeAllTransactionsFromBulkActionList:()=>{e(X())},onProceedForBulkActionClick:(i,a)=>{switch(i){case"delete":case"cancel":e(an(i,a??""));break;case"send_for_approval":e(Te("send_for_approval")),t.navigate("./bulk-review");break;case"review":e(Te("approve")),t.navigate("./bulk-review")}},onReimbursementApprovalRulesEventReceived:i=>{i.endsWith(be)&&e(nn(!1))},onEventReceived:i=>{i===st&&e(tn())}}}))(Tn(Dn));function na(){const e=Q(),t=ae(),n=J(),r=n.state,c=qe(),[m,d]=g.useState(null),i=lt("/:tenantEmailDomain/reimbursements/bulk-review")!=null;g.useEffect((()=>{if(r?.tab!=null&&r?.subTab!=null){const f=Ht(r.tab.toString());f!=null?t(Oe(f)):console.log("Warning:Not a valid remiListTab");const G=Wt(r.subTab.toString());G!=null?t(Ze(G)):console.log("Warning:Not a valid remiListSubTab")}return()=>{t(X())}}),[]);const{useFeatureGate:a}=oe(),{isFeatureEnabled:o}=a(U.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:l}=a(U.isShowDeletedReimbursementsFeatureEnabled),{isFeatureEnabled:p}=a(U.isReimbursementBulkActionEnabled),I=L.getSignedInUser(),u=v((f=>H(f))),[T,y]=g.useState(!1),[B,D]=g.useState(!1),k=le(),C=k?.loggedInUserRole?.includes("admin")===!0,R=v((f=>ze(f,V,p))),{areTenantIdsInSync:S}=xn(),w=R.fetchState,{isAiCfoAccessEnabled:h,onAskAiCfoClick:$}=Re({mobileExploreReferrer:"Reimbursement List"});if(Je({isDataReady:w==="Completed"}),g.useEffect((()=>{!B&&S&&(D(!0),t(ue(V,!0,l,!1,!0)))}),[B,V,t,S]),I==null)throw Error("Can't access address page without signing in...");const F=!!u?.userRole&&qt(u),A=Se(k?.loggedInUserRoleMap),_=Ie(k?.loggedInUserRoleMap),b=!!u.userReimbursementInfo?.isReimbursementTOSAccepted,M=!!u.companyReimbursementInfo?.info?.isReimbursementEnabled,O=!!u.companyReimbursementInfo?.info?.isReimbursementTOSAccepted,Z=v((f=>Le(f.companyState,u.companyId))),W=Z?.company.featuresActivationInfo.connectedAccountProvider,z=f=>{y(f)},{isFeatureEnabled:K}=a(U.isDebitCardFeatureEnabled),it=Ge(K,u),ot=Ve(u),{remisProcessed:te,remisProcessing:Ae}=v((f=>Xt(f)));g.useEffect((()=>{te===Ae&&m!=null&&(t(Yt({messageSection:"reimbursement_bulk_processed",messageText:"success",type:"success",showStatusIcon:!0,variables:[{variableName:"_report_",variableValue:te>1?ce.texts.reports2:Qn.report},{variableName:"_has_",variableValue:te>1?ce.texts.have:ce.texts.has},{variableName:"_action_",variableValue:Jt(m)}]})),t(Kt()),setTimeout((()=>{t(ue(V,!0,l,!1,!0,!0))}),3e3),d(null))}),[te,Ae]);const rt={events:u.companyId!=null?[`private-encrypted-${u.companyId}.${st}`,`private-encrypted-${u.companyId}.${be}`]:[],eventCallback:(f,G,ve)=>{f.endsWith(be)?ve.onReimbursementApprovalRulesEventReceived?.(f):G.entity_type==="reimbursement"&&(d(G.operation_type),ve.onEventReceived(f))}};return n.pathname.endsWith("/reimbursements/")||n.pathname.endsWith("/reimbursements")||n.pathname.endsWith("/reimbursements/bulk-review")?it===!0||ot===!0?s.jsx(et,{}):M&&(!F||A)||_&&b?s.jsxs(s.Fragment,{children:[w==="Completed"?s.jsx(re,{analytics:E,onLoad:f=>(G=>G.trackPageLoaded(Ke.Event.reimbursementHome))(f)}):null,s.jsx(nt,{isAppContentDrawerOpen:T,handleDrawerToggle:z}),s.jsxs(ea,{windowSize:c,children:[s.jsx(Nn,{isOpen:i,drawerLeftMargin:new Bn(0,0,300,600),onClose:()=>{e(`/${u.tenantEmailDomain}/reimbursements`),t(X())},children:s.jsx(ia,{onClick:f=>f.stopPropagation(),children:s.jsx(Jn,{tenantEmailDomain:u.tenantEmailDomain})})}),s.jsx(ta,{isShowDeletedBillsEnabled:o,isShowDeletedReimbursementEnabled:l,location:n,navigate:e,currentTenant:u,period:V,isAdmin:C,isEmployee:F,entity:"reimbursement",onClickMenuIcon:()=>{z(!0)},createdByUserList:R.createdByUserList,createdByUserListFetchState:R.createdByUserListFetchState,isDownloadEnabled:R.isDownloadEnabled,connectedAccountProvider:W,isBulkActionEnabled:p,bulkSubmissionLimit:R.remiBulkSubmissionLimit,bulkSubmissionFetchState:R.remiListBulkActionInfo.bulkSubmissionFetchState,isAiCfoAccessEnabled:h,onAskAiCfoClick:$,...rt})]})]}):O&&A?s.jsx(N,{to:"../setup"}):k!=null&&He(u,k.loggedInUserRoleMap)?s.jsx(N,{to:"../promo"}):s.jsx(ye,{fetchState:"In-Progress"}):s.jsx(pe,{})}const aa=e=>`/${e}/reimbursements/setup`,sa=(e,t,n)=>{let r=`/${e}/reimbursement/${encodeURIComponent(t)}`;return n=="draft"&&(r+="/edit"),r},ia=P($n)`
65
- display: flex;
66
- min-height: 100%;
67
- flex-direction: column;
68
- `,oa=ee((function(e,t){const{companyId:n}=t;return{reimbursementSetupView:mn(e,n),analytics:E,videoUrl:"https://player.vimeo.com/video/814821498?h=e7fd11e13e&badge=0&autopause=0&player_id=0&app_id=122963"}}),(function(e,t){const{companyId:n,navigate:r}=t;return{onSetupButtonClick:()=>{e(un(n))},onCreateNewRemiButtonClick:()=>{e(dn(t.userRoleId))},onBackClick:()=>{r("../..",{relative:"path"})},onSetupReimbursementSuccess:()=>{t.isEmployee?r("../../reimbursement/new",{relative:"path"}):r("../reimbursements/setup",{relative:"path"})}}}))(Un),ra=()=>{const e=Fn(),t=Q(),n=J(),{tenantEmailDomain:r}=ie(),c=Qe(),[m,d]=g.useState(!1),i=v((C=>H(C))),a=L.getSignedInUserTenant(r)?.companyId??i.companyId,o=L.getSignedInUser(),l=i.userRoleId,p=!!i.userRole?.includes("reimbursements_user"),I=le(),u=Se(I?.loggedInUserRoleMap),T=Ie(I?.loggedInUserRoleMap),y=!!i.userReimbursementInfo?.isReimbursementTOSAccepted,B=!!i.companyReimbursementInfo?.info?.isReimbursementEnabled,D=!!i.companyReimbursementInfo?.info?.isReimbursementTOSAccepted,k=C=>{d(C)};if(o==null)throw Error("Can't access reimbursement promo page without signing in...");return B&&T&&y?s.jsx(N,{to:"../../../reimbursements"}):D&&u?s.jsx(N,{to:"../../reimbursements/setup"}):i.companyReimbursementInfo&&!D||i.userReimbursementInfo&&T&&y===!1?s.jsxs(s.Fragment,{children:[s.jsx(re,{analytics:E,onLoad:C=>(R=>R.trackPageLoaded(Ke.Event.reimbursementPromoPage))(C)}),s.jsx(nt,{isAppContentDrawerOpen:m,handleDrawerToggle:k}),s.jsx(oa,{companyId:a,navigate:t,meetingUrl:e("reimbursement_promo"),location:n,userReimbursementInfo:i.userReimbursementInfo,userRoleId:l,isEmployee:p,onClickMenuIcon:()=>{k(!0)}})]}):s.jsx(ye,{fetchState:"In-Progress",style:{backgroundColor:c.colors.grey5}})};function Ma(){const e=v((z=>H(z))),t=le(),n=!!e.company?.companyReimbursementInfo.isReimbursementEnabled,r=Qe(),c=!!e.company?.companyReimbursementInfo.isReimbursementTOSAccepted,m=!!e.userReimbursementInfo?.isReimbursementTOSAccepted,{useFeatureGate:d}=oe(),{isFeatureEnabled:i}=d(U.isChargeCardFeatureEnabled),{isFeatureEnabled:a}=d(U.isDebitCardFeatureEnabled),o=Ge(a,e),l=Ve(e),p=e?.userRole!=null&&pn(e?.userRole),I=(e?.company==null||e.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!p)&&bn(t?.loggedInUserRoleMap),u=gn(t?.loggedInUserRoleMap),T=e?.company==null||e.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!p,y=Se(t?.loggedInUserRoleMap),B=T&&y,D=!!e.company?.companyZeniAccountInfo?.isZeniAccountEnabled&&!p,k=D&&hn(t?.loggedInUserRoleMap),C=Ln(e,i,a)&&!p,R=C&&fn(t?.loggedInUserRoleMap),S=Sn(t?.loggedInUserRoleMap),w=In(t?.loggedInUserRoleMap),h=yn(t?.loggedInUserRoleMap),$=D&&w,F=e.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified"&&!p&&h,A=Rn(t?.loggedInUserRoleMap),_=An(t?.loggedInUserRoleMap),b=Ie(t?.loggedInUserRoleMap),M=C&&A,{tenantEmailDomain:O}=ie(),Z=J(),W=n===!0&&(y||b&&m);return s.jsxs(ct,{children:[Z.pathname.includes("/reimbursements")?s.jsxs(s.Fragment,{children:[s.jsx(x,{path:"verification",element:s.jsx(je,{isBillPayAdminLevelAccess:I,isUserHasOnlyBillPayAccess:u,isReimbursementAdminLevelAccess:B,isZeniAccountAdminLevelAccess:k,isChargeCardAdminLevelAccess:R,isUserHasOnlyCardAccess:S,productType:"reimbursement",type:"verification"})}),s.jsx(x,{path:"setup",element:s.jsx(je,{isBillPayAdminLevelAccess:I,isUserHasOnlyBillPayAccess:u,isReimbursementAdminLevelAccess:B,isZeniAccountAdminLevelAccess:k,isChargeCardAdminLevelAccess:R,isUserHasOnlyCardAccess:S,productType:"reimbursement",type:"setup"})}),s.jsx(x,{path:"promo",element:s.jsx(ra,{})}),s.jsx(x,{path:"approval-rules/*",element:B?s.jsx(_n,{}):s.jsx(Pn,{showZeniAccountRoute:$,isUserHasBillPayAccess:_,isUserHasReimbursementAccess:b,showTreasuryRoute:F,isTenantBankingOnly:o,showChargeCardRoute:M,tenantEmailDomain:O??""})}),W&&s.jsx(x,{path:"*",element:s.jsx(na,{})}),(o===!0||l===!0)&&s.jsx(x,{path:"/*",element:s.jsx(et,{})}),t!=null&&He(e,t?.loggedInUserRoleMap)&&s.jsx(x,{path:"*",element:s.jsx(N,{to:"../promo"})}),c&&y&&s.jsx(x,{path:"*",element:s.jsx(N,{to:"../setup"})})]}):Z.pathname.includes("/reimbursement")?s.jsxs(s.Fragment,{children:[s.jsx(x,{path:"new",element:s.jsx(Fe,{})}),s.jsx(x,{path:":reimbursementId",element:s.jsx(Xn,{})}),s.jsx(x,{path:":reimbursementId/edit",element:s.jsx(Fe,{})}),s.jsx(x,{path:"*",element:s.jsx(pe,{})})]}):s.jsx(x,{path:"*",element:s.jsx(ye,{fetchState:"In-Progress",style:{backgroundColor:r.colors.grey5,boxShadow:`0px 2px ${j.sp1} ${r.colors.dropShadowNormal}`}})}),s.jsx(x,{path:"*",element:s.jsx(pe,{})})]})}export{Ma as default};
@@ -1 +0,0 @@
1
- import{j as a}from"./liveblocks-CR_kRbXv.js";import{z as j,a6 as N,k as u,R as S,e5 as k,c as I,F as C}from"./index-CsNSXQ28.js";import"./mui-5AXMmyb4.js";import g from"./NotFoundScreen-CiQiUjjh.js";import{a as c}from"./sentry-ABHIIEow.js";import{u as D,j as h,h as F,g as L,l as T,n as U,o as d,N as y}from"./core-ABjOcAeP.js";import{fI as _,a30 as w,a31 as p,Ei as P,q3 as V,a32 as R,Eg as q}from"./zeni-epic-state-1YQvLmng.js";import"./recharts-Dj6alQ6O.js";import"./analytics-DBLR2qf0.js";import"./plaid-BjNi0t6-.js";import"./dnd-DwpncCYh.js";import"./stripe-cKAAJElX.js";import"./lottie-B6iZNmj2.js";import"./lexical-kNqf0ssJ.js";import"./pdf-BR5MHuna.js";import"./utils-oejz8VwT.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]="8857480d-4bd5-47d1-8a8f-aafa0c1cf9d7",e._sentryDebugIdIdentifier="sentry-dbid-8857480d-4bd5-47d1-8a8f-aafa0c1cf9d7")}catch{}})();const z=T((function(e,t){const n=w(e);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}}),(function(e,t){const{navigate:n}=t,i=j.getSignedInUser();return{onDismissClick:()=>{e(p()),n("/")},onSendClick:()=>{if(i!=null){const s=[],r=[];t.inviteFormCompayData.forEach((l=>{s.push(l.companyName),r.push(l.emailIds[0])})),u.trackInviteEmailClicked("send",s,r,s.length)}e(q())},onUpdateInviteFormLocalData:s=>{e(R({localData:s}))},onSubmitSuccess:()=>{e(p())},onCancelClick:()=>{i!=null&&u.trackInviteEmailClicked("cancel")}}}))(k),G=()=>{const e=D(),[t,n]=c.useState(!1),[i,s]=c.useState(!1),r=h((o=>_(o))),l=F(),x=L(),f=j.getSignedInUser();if(f==null)throw Error("Can't access invite referral screen without signing in...");const m=h((o=>w(o))),b=f?.firstName!=null?f.firstName:"User";c.useEffect((()=>{e(p()),r?.rewardsLastViewedTime==null&&i===!1&&(e(P()),s(!0))}),[]),c.useEffect((()=>{t||m.fetchState!=="Not-Started"||(n(!0),e(V(!0)))}),[m.fetchState,e]);const E=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[m.fetchState==="Completed"?a.jsx(N,{analytics:u,onLoad:o=>(v=>v.trackPageLoaded(S.Event.inviteEmailViewed))(o)}):null,a.jsx(z,{navigate:l,location:x,currentTenant:r,companyName:E,userName:b,inviteFormCompayData:m.localData})]})};function ne(){const{useFeatureGate:e}=I(),{isFeatureEnabled:t}=e(C.isReferralFeatureEnabled);return a.jsxs(U,{children:[a.jsx(d,{path:"/",element:a.jsx(y,{to:"refer",replace:!0})}),a.jsx(d,{path:"how-it-works",element:a.jsx(y,{to:"refer",replace:!0})}),a.jsx(d,{path:"refer/*",element:t?a.jsx(G,{}):a.jsx(g,{})}),a.jsx(d,{path:"*",element:a.jsx(g,{})})]})}export{ne as default};
@@ -1,9 +0,0 @@
1
- import{j as s}from"./liveblocks-CR_kRbXv.js";import{a as i}from"./sentry-ABHIIEow.js";import{u as c,g as d,N as u}from"./core-ABjOcAeP.js";import{z as n,k as a,R as m,a5 as p}from"./index-CsNSXQ28.js";import{g$ as g,Vn as y}from"./zeni-epic-state-1YQvLmng.js";import{n as b}from"./mui-5AXMmyb4.js";import"./recharts-Dj6alQ6O.js";import"./analytics-DBLR2qf0.js";import"./plaid-BjNi0t6-.js";import"./dnd-DwpncCYh.js";import"./stripe-cKAAJElX.js";import"./lottie-B6iZNmj2.js";import"./lexical-kNqf0ssJ.js";import"./pdf-BR5MHuna.js";import"./utils-oejz8VwT.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]="556ab88e-1a7f-49a7-b52c-920d63000332",e._sentryDebugIdIdentifier="sentry-dbid-556ab88e-1a7f-49a7-b52c-920d63000332")}catch{}})();function L(){const e=c(),t=d(),r=i.useRef(!1),f=n.isSignedIn(),o=t.state?.message==="logout"||f;return i.useEffect((()=>{if(o&&!r.current){r.current=!0;try{e(g()),y(),a.trackLogout(m.Event.logoutSuccess),a.resetUserIdentity(),n.clearAll()}catch(l){console.error("Error during sign out:",l)}finally{window.location.replace("/signin/auth")}}}),[o,e]),o?s.jsx(h,{children:s.jsx(p,{fetchState:"In-Progress"})}):s.jsx(u,{to:"../",replace:!0})}const h=b.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{L as default};
@@ -1 +0,0 @@
1
- import{j as c}from"./liveblocks-CR_kRbXv.js";import O from"./NotFoundScreen-CiQiUjjh.js";import{a as n}from"./sentry-ABHIIEow.js";import{u as ft,h as yt,g as bt,i as St,j as o,n as ht,o as f}from"./core-ABjOcAeP.js";import{fI as It,gZ as Lt,m3 as Tt,uh as Et,XJ as jt,XE as Ct,XK as gt,S1 as At,S2 as kt,i3 as L,m1 as vt,ui as xt,RT as Dt,Ss as _t,XL as Nt,XM as Rt,R_ as Mt,RX as Xt,XN as Ft,XO as wt,XP as Pt}from"./zeni-epic-state-1YQvLmng.js";import{c as Ht,V as Ut,F as U,b0 as qt,z as zt,g as Bt,b1 as Ot,k as q,b2 as Vt,ac as Gt,G as $t}from"./index-CsNSXQ28.js";import"./mui-5AXMmyb4.js";import{d as Zt}from"./decodeURIComponentSafe-B3qYCgAd.js";import{u as Jt}from"./useEnsureVendorListLoaded-DfLNcoZI.js";import{u as Kt,T}from"./TransactionDetailScreen-LGGvWhD_.js";import{c as Qt}from"./routePaths-Duhkra_N.js";import"./recharts-Dj6alQ6O.js";import"./analytics-DBLR2qf0.js";import"./plaid-BjNi0t6-.js";import"./dnd-DwpncCYh.js";import"./stripe-cKAAJElX.js";import"./lottie-B6iZNmj2.js";import"./lexical-kNqf0ssJ.js";import"./pdf-BR5MHuna.js";import"./utils-oejz8VwT.js";import"./useAskAiCfoHostNavButtonProps-CwABKzO-.js";import"./useInitialThreadRequest-sgGR3rYU.js";import"./expenseAutomationHelper-C04g5tKj.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="ec043859-3c44-44d6-98ed-4067d6a98699",e._sentryDebugIdIdentifier="sentry-dbid-ec043859-3c44-44d6-98ed-4067d6a98699")}catch{}})();const Wt=["bank","credit_card","other_current_assets"],z=e=>`/${e}/month_end_close_checks/review/transaction_categorization`,{common:{currency:B}}=$t.getLocalizedStrings();function Yt(){const e=ft(),d=yt(),m=bt(),{tenantEmailDomain:u,transactionTypeEncoded:V}=St(),{useFeatureGate:E}=Ht(),G=Ut(),{isFeatureEnabled:$}=E(U.isCreateTransactionEnabled),{isFeatureEnabled:j}=E(U.isProjectsTransactionsEnabled),Z=Zt(V??""),a=Pt.find((t=>t===Z)),S=o((t=>It(t))),C=qt(S.companyId,a),g=o((t=>Lt(t.companyState,S.companyId)?.company.companyLocaleInfo)),J=g?.currencyCode??B.currencyCode,K=g?.currencySymbol??B.currencySymbol,A=o((t=>t.tenantState.currentTenantId)),k=zt.getSignedInUser(),v=k?.userId??"",x=k?.zeniSessionId??"",Q=n.useMemo((()=>({userId:v,sessionId:x,tenantId:A??""})),[v,x,A]),W=o((t=>Tt(t))),D=o((t=>Et(t))),_=D&&j===!0,h=o((t=>t.projectListState)),N=o((t=>t.projectState)),Y=n.useMemo((()=>jt(N,h).projects),[N,h]),I=o((t=>Ct(t,"common"))),R=o((t=>t.accountListState.byReportId.accountList.fetchState)),M=o((t=>t.accountListState.byReportId.createTransactionLineAccountList.fetchState)),X=o((t=>t.accountListState.byReportId.createTransactionPaymentAccountList.fetchState)),F=o((t=>t.classListState.fetchState)),s=o((t=>a!=null?gt(t,a):void 0));n.useEffect((()=>{if(a!=null)return e(At(a)),()=>{e(kt(a))}}),[e,a]);const tt=Bt(),et=o((t=>{const{activeTenantFetchState:i,currentTenantId:b,fetchState:mt,tenantsById:pt}=t.tenantState;return b!=null&&pt[b]!=null&&(i.fetchState==="Completed"||mt==="Completed")})),r=tt&&et;n.useEffect((()=>{r&&a==="transfer"&&R==="Not-Started"&&e(L("accountList"))}),[e,r,a,R]),n.useEffect((()=>{r&&M==="Not-Started"&&e(L("createTransactionLineAccountList"))}),[e,r,M]),n.useEffect((()=>{r&&X==="Not-Started"&&e(L("createTransactionPaymentAccountList",!1,!1,!1,!1,Wt))}),[e,r,X]),n.useEffect((()=>{r&&F==="Not-Started"&&e(vt())}),[e,r,F]);const w=h.fetchState;n.useEffect((()=>{r&&_&&w==="Not-Started"&&e(xt())}),[e,r,_,w]),Jt(r),Kt(r&&a==="transfer",!1);const at=n.useCallback(((t,i=[])=>{if(i.length>0&&e(Dt(i)),u==null)return;const b=Ot(m.state)??[z(u)];d(Qt(t,u),{replace:!0,state:{pathnameStackToGoBack:b}})}),[e,u,d,m.state]),nt=n.useCallback((()=>{m.key==="default"?u!=null&&d(z(u)):d(-1)}),[m.key,d,u]),ot=n.useCallback((t=>{e(_t(t))}),[e]),P=n.useRef(void 0),p=s?.createStatus.error;n.useEffect((()=>{if(a==null||p==null)return;const t=`${p.code??""}-${p.message??""}`;P.current!==t&&(P.current=t,q.trackCreateTransactionFailed({transactionType:a,errorCode:p.code}))}),[p,a]);const y=n.useCallback((t=>t),[]),l=n.useMemo((()=>(s?.vendorList??[]).filter((t=>!t.isDeleted)).sort(((t,i)=>t.name.localeCompare(i.name)))),[s?.vendorList]),H=s?.localData.vendorId,st=n.useMemo((()=>{const t=l.find((i=>i.id===H));if(t!=null)return t.qboId!==""&&t.qboId!==t.name?t.qboId:t.name}),[l,H]),ct=o((t=>Nt(t,st))),rt=n.useMemo((()=>y(l.map((t=>({id:t.id,label:t.name}))))),[l,y]),it=n.useMemo((()=>({...I,vendor:[...l.map((t=>({id:t.id,name:t.name,qboId:t.qboId,type:"vendor",zeniId:t.id}))),...I.vendor]})),[I,l]),dt=n.useMemo((()=>y((s?.transferAccountsList??[]).map((t=>({id:t.accountId,label:t.accountName}))))),[s?.transferAccountsList,y]),ut=n.useCallback((t=>{a!=null&&e(Rt(a,t))}),[e,a]),lt=n.useCallback(((t,i)=>{a!=null&&e(Mt(a,i,t))}),[e,a]);return C==null?null:a!=null&&s!=null&&$===!0&&C&&G?.connectionName!=="netsuite"?c.jsx(Vt,{analytics:q,attachmentUploadEndpoint:Gt.accountMicroServiceBaseUrl,authParams:Q,createdTransactionId:s.createdTransactionId,transactionType:a,localData:s.localData,createStatus:s.createStatus,accountsHierarchyList:s.accountListNestedAccountHierarchy,paymentAccountsHierarchyList:s.paymentAccountListNestedAccountHierarchy,classHierarchyList:s.classListNestedAccountHierarchy,vendorOptions:rt,transferAccountOptions:dt,isAccountingClassesEnabled:W,isAccountingProjectsEnabled:D,isProjectsTransactionsEnabled:j===!0,projects:Y,currencyCode:J,currencySymbol:K,bookCloseDate:S.bookCloseDate?.toDate(),entityAutoCompleteView:it,vendorRecommendationFetchState:ct.fetchState,onUpdateLocalData:ut,onAddLine:()=>e(wt(a)),onRemoveLine:t=>e(Ft(a,t)),onSubmit:()=>e(Xt(a)),onCancel:nt,onCreateTransactionComplete:at,onUploadAttachmentAttachment:ot,onFetchRecommendationsForVendor:lt}):c.jsx(O,{})}function je(){return c.jsxs(ht,{children:[c.jsx(f,{path:"/new/:transactionTypeEncoded",element:c.jsx(Yt,{})}),c.jsx(f,{path:"/:transactionTypeEncoded/:transactionId",element:c.jsx(T,{})}),c.jsx(f,{path:"/:transactionTypeEncoded/:transactionId/page-not-found",element:c.jsx(O,{})}),c.jsx(f,{path:"/:transactionTypeEncoded/:transactionId/vendor/create",element:c.jsx(T,{})}),c.jsx(f,{path:"/*",element:c.jsx(T,{})})]})}export{je as default};
@@ -1,12 +0,0 @@
1
- import{j as o}from"./liveblocks-CR_kRbXv.js";import{a as f}from"./sentry-ABHIIEow.js";import{t as u,u as h,j as y,N as b}from"./core-ABjOcAeP.js";import{Vk as I,gl as w,K4 as j}from"./zeni-epic-state-1YQvLmng.js";import{z as l,a5 as x,ad as S,ae as D}from"./index-CsNSXQ28.js";import{n as c}from"./mui-5AXMmyb4.js";import"./recharts-Dj6alQ6O.js";import"./analytics-DBLR2qf0.js";import"./plaid-BjNi0t6-.js";import"./dnd-DwpncCYh.js";import"./stripe-cKAAJElX.js";import"./lottie-B6iZNmj2.js";import"./lexical-kNqf0ssJ.js";import"./pdf-BR5MHuna.js";import"./utils-oejz8VwT.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]="fa295d66-447f-4c37-8d02-033cdbb2d3f2",e._sentryDebugIdIdentifier="sentry-dbid-fa295d66-447f-4c37-8d02-033cdbb2d3f2")}catch{}})();const A=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",g=e.get("profileId")??"",[n,p]=f.useState(!1),a=h(),i=y((m=>I(m))),r=l.getSignedInUser(),d=l.getSignedInUserTenantWithId(s);if(r==null||d==null)return o.jsx(b,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return w(r.userId,r.zeniSessionId,d?.tenantId),f.useEffect((()=>{n||(p(!0),a(j(t,g,s)))}),[n,a]),i.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(x,{fetchState:"In-Progress"}))},E=c.div`
2
- display: flex;
3
- width: 100%;
4
- height: 100vh;
5
- flex-direction: row;
6
- justify-content: center;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey5};
9
- `,_=c(D.LargeRegular)`
10
- display: flex;
11
- color: ${S.important};
12
- `;export{A as default};
@@ -1,9 +0,0 @@
1
- import{j as i}from"./liveblocks-CR_kRbXv.js";import{a as m}from"./sentry-ABHIIEow.js";import{h as x,u as $,g as j,i as v,j as p}from"./core-ABjOcAeP.js";import{U2 as s,U1 as z,a0z as B,fI as C,a0A as T}from"./zeni-epic-state-1YQvLmng.js";import{$ as U,ac as g,z as D,a5 as E,d6 as L,a2 as P}from"./index-CsNSXQ28.js";import{u as N,n as _}from"./mui-5AXMmyb4.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]="1e320fe9-9c53-4fbe-8cd4-a64a2e1dc2cf",e._sentryDebugIdIdentifier="sentry-dbid-1e320fe9-9c53-4fbe-8cd4-a64a2e1dc2cf")}catch{}})();const A=_.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `;function H(){const e=x(),n=$(),d=U(),f=j();let{accountId:a}=v(),l=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&f.pathname.includes(`${s}/statements`)&&(a=s,l=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[u,y]=m.useState(!1),h=N();m.useEffect((()=>{u||(y(!0),n(z(a??"",!1)))}),[u,n]);const o=p((t=>B(t,a??""))),I=()=>{const t=P(f.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},c=D.getSignedInUser(),r=p((t=>C(t))),b={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:r.tenantId??""},w=T(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=r.company?.companyInfo.companyLegalName??r.companyName;if(c==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?i.jsx(E,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}}):i.jsx(A,{windowSize:d,children:i.jsx(L,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:I,authParams:b,downloadEndPoint:l})})}export{H as Z};