@zeniai/web-app-ui 5.0.54-qa → 5.0.55-qa

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/dist/assets/AddressRoutes-DmNqU45X.js +1 -0
  2. package/dist/assets/{AddressScreen-ChjeKEBH.js → AddressScreen-CD02bE7U.js} +2 -2
  3. package/dist/assets/{AiCfoScreen-Bn1ZDZwq.js → AiCfoScreen-twy_oEHo.js} +1 -1
  4. package/dist/assets/{BillPayApprovalRoutes-DrVfWwhS.js → BillPayApprovalRoutes-2MMsFms-.js} +1 -1
  5. package/dist/assets/{BillPayRoutes-BjdJSzTb.js → BillPayRoutes-DabCBXCD.js} +7 -7
  6. package/dist/assets/{BusinessVerificationPageScreen-AcNcSrfm.js → BusinessVerificationPageScreen-DY36UKxh.js} +2 -2
  7. package/dist/assets/{ChargeCardRoutes-BZ-GpRol.js → ChargeCardRoutes-BKvKKz6Y.js} +8 -8
  8. package/dist/assets/CompanyPassportScreen-Deb1Mskj.js +1 -0
  9. package/dist/assets/ConnectionAuthScreen-AkiKcrRN.js +11 -0
  10. package/dist/assets/CustomerOnboardingAuthScreen-B7puRRld.js +1 -0
  11. package/dist/assets/{CustomerOnboardingRoutes-BsfNG_4M.js → CustomerOnboardingRoutes-reDt__4U.js} +3 -3
  12. package/dist/assets/{DashboardRoutes-C4CcYbYI.js → DashboardRoutes-B6YOY8LT.js} +3 -3
  13. package/dist/assets/{DefaultTenantHome-G20Laxjh.js → DefaultTenantHome-CG3A8Zld.js} +1 -1
  14. package/dist/assets/DomesticWireDetailScreen-CHZr0Rwr.js +18 -0
  15. package/dist/assets/DrawerScreen-C9oSGPfX.js +1 -0
  16. package/dist/assets/EntityDetailRoutes-BJ_l6xDX.js +1 -0
  17. package/dist/assets/ExpenseAutomationRoutes-jv6wUEHc.js +25 -0
  18. package/dist/assets/FeaturePreviewScreen-Dvylx-Wk.js +1 -0
  19. package/dist/assets/MagicLinkRoutes-DHuoixGe.js +72 -0
  20. package/dist/assets/MagicLinkSignInScreen-Cy0ox9On.js +12 -0
  21. package/dist/assets/MobileAppDrawer-BCaWgXZQ.js +1 -0
  22. package/dist/assets/NotFoundScreen-B8ppov_c.js +1 -0
  23. package/dist/assets/{NotificationRoutes-BL6Ye5sk.js → NotificationRoutes-CzsQHWBP.js} +1 -1
  24. package/dist/assets/PandLWithForecastRoutes-rl7st3Iq.js +1 -0
  25. package/dist/assets/PeopleRoutes-BGm45BRK.js +22 -0
  26. package/dist/assets/PerformanceRoutes-5okn2Dl7.js +1 -0
  27. package/dist/assets/{Preview-Dd1RgxSx.js → Preview-CPDm5N-k.js} +1 -1
  28. package/dist/assets/{QBOConnectionScreen-CwcXMmNE.js → QBOConnectionScreen-DYw5d1DS.js} +1 -1
  29. package/dist/assets/ReferralListScreen-B2bhjkxb.js +5 -0
  30. package/dist/assets/ReimbursementApprovalRoutes-C_ldCyqW.js +1 -0
  31. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-BoCrHkhT.js → ReimbursementApprovalRuleDetailScreen-BM0wb7RO.js} +1 -1
  32. package/dist/assets/{ReimbursementRoutes-BhSlMM0p.js → ReimbursementRoutes-C1eoHxke.js} +9 -9
  33. package/dist/assets/{ReportsRoutes-R-2ogc4m.js → ReportsRoutes-aH8NyeQL.js} +1 -1
  34. package/dist/assets/RewardsRoutes-BG1TYOwi.js +1 -0
  35. package/dist/assets/{ScreenRoutes-BeF5_NIp.js → ScreenRoutes-Be433Rce.js} +2 -2
  36. package/dist/assets/{SettingsRoutes-BWvITHR2.js → SettingsRoutes-Dkedlq8H.js} +6 -6
  37. package/dist/assets/{SetupPagesScreen-JUPsQ0S4.js → SetupPagesScreen-DrXS3IRK.js} +5 -5
  38. package/dist/assets/SignInScreen-B584l1AV.js +1 -0
  39. package/dist/assets/SignOutScreen--i7fPI83.js +9 -0
  40. package/dist/assets/{TaskListScreen-CMvx-0XC.js → TaskListScreen-CbCuzBgx.js} +2 -2
  41. package/dist/assets/TaskRoutes-C6JGvbta.js +9 -0
  42. package/dist/assets/TransactionDetailRoutes-DWhYtS5p.js +1 -0
  43. package/dist/assets/{TransactionDetailScreen-B-hqlTRL.js → TransactionDetailScreen-B0sPog3q.js} +2 -2
  44. package/dist/assets/{TransactionListRoutes-CtcO3OOT.js → TransactionListRoutes-DbOVYmb-.js} +1 -1
  45. package/dist/assets/{TreasuryRoutes-KBaLMYzC.js → TreasuryRoutes-Bw9U7ZrB.js} +5 -5
  46. package/dist/assets/{VendorsRoutes-DQ6Ab1QZ.js → VendorsRoutes-CYu2rHMN.js} +1 -1
  47. package/dist/assets/WiseConfirmationScreen-CT1Vk2du.js +12 -0
  48. package/dist/assets/{ZeniAccountRoutes-DXq3JSQF.js → ZeniAccountRoutes-C-OLyEIo.js} +11 -11
  49. package/dist/assets/ZeniAccountStatementScreen-Dufb_RXJ.js +9 -0
  50. package/dist/assets/{accountMappingHelper-Bcmi4v71.js → accountMappingHelper-CQSFsM6N.js} +1 -1
  51. package/dist/assets/{analytics-zC4vJBLG.js → analytics-ByrfXPqG.js} +1 -1
  52. package/dist/assets/{analyticsHelper-CYuyeE-z.js → analyticsHelper-xeJXIGDO.js} +1 -1
  53. package/dist/assets/{core-sRr8O2Ja.js → core-DcM32IW_.js} +1 -1
  54. package/dist/assets/{decodeURIComponentSafe-DfA0P9Xn.js → decodeURIComponentSafe-mAxyJdJ8.js} +1 -1
  55. package/dist/assets/{dnd-CZEKCPsp.js → dnd-36WXho_9.js} +1 -1
  56. package/dist/assets/{empty-CwKXvn2c.js → empty-GSTAUqhH.js} +1 -1
  57. package/dist/assets/{empty-CA_4wgdA.js → empty-lHXrwReA.js} +1 -1
  58. package/dist/assets/{emptyVideoElement-SkqYxom1.js → emptyVideoElement-Bsa6If51.js} +1 -1
  59. package/dist/assets/epic-DhZTt5cl.js +2 -0
  60. package/dist/assets/{getLocaleForTenant-CUETA9qT.js → getLocaleForTenant-Fu8c_Haa.js} +1 -1
  61. package/dist/assets/{index-B8scoeQA.js → index-BZDuIo7x.js} +10539 -10509
  62. package/dist/assets/{index-BWlUPwOb.js → index-Bw9qJkeB.js} +1 -1
  63. package/dist/assets/{index-Cu-Qhunl.js → index-CR2DVZE0.js} +2 -2
  64. package/dist/assets/{index-DatNfK53.js → index-CjaQ8-D2.js} +1 -1
  65. package/dist/assets/{index-BnBIcb2M.js → index-DTGcnfLC.js} +1 -1
  66. package/dist/assets/{index-B53H88q7.js → index-Dq0r4E9j.js} +1 -1
  67. package/dist/assets/{index-CkGuUxlY.js → index-p7Us2Fcf.js} +1 -1
  68. package/dist/assets/{lexical-CtDGfH8b.js → lexical-CYAYrhLa.js} +1 -1
  69. package/dist/assets/{liveblocks-XXI3_E1y.js → liveblocks-BeS4QmMp.js} +1 -1
  70. package/dist/assets/{lottie-CbW-xVFB.js → lottie-Bdncx-qB.js} +1 -1
  71. package/dist/assets/{mui-CL-iXERd.js → mui--qrGbwFJ.js} +1 -1
  72. package/dist/assets/{pathToGoBack-DHgKJexU.js → pathToGoBack-Cn4t6MOa.js} +1 -1
  73. package/dist/assets/{pdf-BVi8zWaH.js → pdf-6nmWWkz8.js} +4 -4
  74. package/dist/assets/{pdf-lib-Dkp2Hlcw.js → pdf-lib-rQgtUIvp.js} +1 -1
  75. package/dist/assets/{plaid-BUQgPXGQ.js → plaid-BZ0BFqP0.js} +1 -1
  76. package/dist/assets/{pusher-DAE3v-KB.js → pusher-4QLniNXV.js} +1 -1
  77. package/dist/assets/{react-Bsc5-Np9.js → react-BFaux__7.js} +1 -1
  78. package/dist/assets/{react-CdSc8RjC.js → react-BOWjwOm8.js} +1 -1
  79. package/dist/assets/{react-D4LK66mF.js → react-BszWSDWQ.js} +1 -1
  80. package/dist/assets/{react-CMgbSfhl.js → react-C3zOniDH.js} +1 -1
  81. package/dist/assets/{react-DQEvqRaf.js → react-DCTwOcr5.js} +1 -1
  82. package/dist/assets/{react-C8RqDmaV.js → react-DKUlDjBa.js} +1 -1
  83. package/dist/assets/{recharts-z_5Sq5F0.js → recharts-DoWl4vaN.js} +1 -1
  84. package/dist/assets/{routePaths-0yQK7ZVo.js → routePaths-DLti7tZb.js} +1 -1
  85. package/dist/assets/{sentry-DrlL61Aq.js → sentry-BlmJH5WH.js} +1 -1
  86. package/dist/assets/{url-D3wKu-Ai.js → url-AJ2wpRsW.js} +1 -1
  87. package/dist/assets/{url-CnXg07em.js → url-BG92tf7R.js} +1 -1
  88. package/dist/assets/useAskAiCfoHostNavButtonProps-CHoGbMpp.js +1 -0
  89. package/dist/assets/{useDeviceId-D2RgNqNP.js → useDeviceId-DaD3aMiS.js} +1 -1
  90. package/dist/assets/useFetchSuggestedQuestionsWhenReady-DVUj1bst.js +1 -0
  91. package/dist/assets/useInitialThreadRequest-CV6--y9X.js +1 -0
  92. package/dist/assets/{utils-DCRx3jP7.js → utils-RmRP6xA4.js} +1 -1
  93. package/dist/assets/{withTransactionSidePanel-CiVcMng7.js → withTransactionSidePanel-BOlkvwMK.js} +3 -3
  94. package/dist/assets/{zeni-epic-state-BlOBva0w.js → zeni-epic-state-ChnjRetZ.js} +3 -3
  95. package/dist/index.html +1 -1
  96. package/package.json +4 -4
  97. package/dist/assets/AddressRoutes-Ct3N3W-B.js +0 -1
  98. package/dist/assets/CompanyPassportScreen--lpPP9CU.js +0 -1
  99. package/dist/assets/ConnectionAuthScreen-HswO-C2z.js +0 -11
  100. package/dist/assets/CustomerOnboardingAuthScreen-GS886dgA.js +0 -1
  101. package/dist/assets/DomesticWireDetailScreen-ChnkS-X_.js +0 -18
  102. package/dist/assets/DrawerScreen-CeA1faKQ.js +0 -1
  103. package/dist/assets/EntityDetailRoutes-CR2Mdgzj.js +0 -1
  104. package/dist/assets/ExpenseAutomationRoutes-B566g1Vp.js +0 -25
  105. package/dist/assets/FeaturePreviewScreen-CCmVMubZ.js +0 -1
  106. package/dist/assets/MagicLinkRoutes-BTJQzdvS.js +0 -72
  107. package/dist/assets/MagicLinkSignInScreen-Bt05nG5m.js +0 -12
  108. package/dist/assets/MobileAppDrawer-C7qAXiy5.js +0 -1
  109. package/dist/assets/NotFoundScreen-C3kD1egL.js +0 -1
  110. package/dist/assets/PandLWithForecastRoutes-Do8X3aTE.js +0 -1
  111. package/dist/assets/PeopleRoutes-hAxuAtgj.js +0 -22
  112. package/dist/assets/PerformanceRoutes-CoYX1bLH.js +0 -1
  113. package/dist/assets/ReferralListScreen-ChBnSKTx.js +0 -5
  114. package/dist/assets/ReimbursementApprovalRoutes-CifzxX44.js +0 -1
  115. package/dist/assets/RewardsRoutes-DfIrbqL5.js +0 -1
  116. package/dist/assets/SignInScreen-u7i70eJz.js +0 -1
  117. package/dist/assets/SignOutScreen-CHQKEgxw.js +0 -9
  118. package/dist/assets/TaskRoutes-DHBPZIrq.js +0 -9
  119. package/dist/assets/TransactionDetailRoutes-BPCCZduy.js +0 -1
  120. package/dist/assets/WiseConfirmationScreen-D789SzxE.js +0 -12
  121. package/dist/assets/ZeniAccountStatementScreen-K6t_uhF6.js +0 -9
  122. package/dist/assets/epic-C5JPN_0a.js +0 -2
  123. package/dist/assets/useAskAiCfoHostNavButtonProps-Bt4hMVmk.js +0 -1
  124. package/dist/assets/useFetchSuggestedQuestionsWhenReady-B6OFe2QI.js +0 -1
  125. package/dist/assets/useInitialThreadRequest-oa3yZUCF.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-B8scoeQA.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-DrlL61Aq.js"><link rel="modulepreload" crossorigin href="/assets/core-sRr8O2Ja.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-BlOBva0w.js"><link rel="modulepreload" crossorigin href="/assets/mui-CL-iXERd.js"><link rel="modulepreload" crossorigin href="/assets/analytics-zC4vJBLG.js"><link rel="modulepreload" crossorigin href="/assets/utils-DCRx3jP7.js"><link rel="stylesheet" crossorigin href="/assets/index-Bc34frN_.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-BZDuIo7x.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-BlmJH5WH.js"><link rel="modulepreload" crossorigin href="/assets/core-DcM32IW_.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-ChnjRetZ.js"><link rel="modulepreload" crossorigin href="/assets/mui--qrGbwFJ.js"><link rel="modulepreload" crossorigin href="/assets/analytics-ByrfXPqG.js"><link rel="modulepreload" crossorigin href="/assets/utils-RmRP6xA4.js"><link rel="stylesheet" crossorigin href="/assets/index-Bc34frN_.css"></head><body style="margin:0"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><div class="app-shell-loader" id="app-shell-loader"><div class="app-shell-sidebar"><div class="app-shell-sidebar-group"><div class="app-shell-bar zeni-logo" style="width:96px;height:20px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:78px;height:16px"></div><div class="app-shell-bar" style="width:46px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:110px;height:16px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div><div class="app-shell-bar" style="width:64px;height:16px"></div></div></div><div class="app-shell-main"><div class="app-shell-navbar"><div class="app-shell-bar" style="width:106px;height:27px"></div><div class="app-shell-bar" style="width:111px;height:32px"></div></div><div class="app-shell-logo"><svg width="96" height="96" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.768 0.0270284C16.571 -0.055168 16.348 0.0572476 16.2913 0.267574C16.2713 0.342517 16.2489 0.417461 16.2253 0.491196C16.0094 1.15723 15.6459 1.76645 15.148 2.27776C14.3056 3.14203 13.1847 3.61949 11.9918 3.6207H11.9883C10.7978 3.6207 9.67689 3.14565 8.83445 2.2838C8.33653 1.7737 7.97077 1.16448 7.75367 0.499657C7.73007 0.425922 7.70765 0.350979 7.68641 0.276035C7.62978 0.065709 7.40678 -0.0454978 7.20974 0.0366985C6.05463 0.522624 4.98565 1.17899 4.0323 1.97436C3.91195 2.07468 3.87301 2.24512 3.93083 2.39259C3.9792 2.51589 4.03112 2.63797 4.08539 2.75764C4.51133 3.70894 5.10364 4.5853 5.84815 5.34682C7.48937 7.0246 9.66863 7.9493 11.9871 7.9493H11.9954C14.3162 7.94689 16.4978 7.01855 18.1379 5.33595C18.8812 4.57321 19.4711 3.69564 19.8959 2.74434C19.9502 2.62347 20.0009 2.50138 20.0493 2.37809C20.1071 2.23062 20.0682 2.06018 19.9478 1.95985C18.9933 1.16569 17.9231 0.511745 16.768 0.0270284Z"/><path d="M19.9102 21.2422C19.4843 20.2933 18.8931 19.4194 18.151 18.6603C16.5086 16.9801 14.3223 16.053 12.0038 16.0578C8.50304 16.0614 5.48371 18.1961 4.11031 21.2603C4.05722 21.38 4.0053 21.5009 3.95575 21.623C3.89675 21.7704 3.93569 21.9421 4.05722 22.0436C5.01175 22.8366 6.08073 23.4893 7.23466 23.9728C7.4317 24.055 7.65352 23.9438 7.71134 23.7335C7.73139 23.6573 7.75381 23.5836 7.77859 23.5086C8.37207 21.6979 10.0416 20.3888 12.0073 20.3864H12.012C13.2025 20.3864 14.3234 20.8614 15.1659 21.7233C15.6626 22.231 16.026 22.8378 16.2431 23.5002C16.2679 23.5739 16.2903 23.6489 16.3104 23.7238C16.3682 23.9341 16.59 24.0453 16.787 23.9619C17.9422 23.476 19.01 22.8209 19.9633 22.0255C20.0837 21.9252 20.1226 21.7535 20.0648 21.606C20.0164 21.4828 19.9645 21.3631 19.9102 21.2422Z"/><path d="M0.132148 10.1666C0.158105 9.98769 0.305591 9.85352 0.482575 9.85352L23.5093 9.81726C23.6863 9.81726 23.8338 9.95022 23.8609 10.1291C23.9518 10.7347 23.999 11.3548 23.999 11.9858C24.0001 12.6131 23.9541 13.2284 23.8668 13.8292C23.8408 14.0081 23.6934 14.1422 23.5164 14.1422L0.489654 14.1773C0.312671 14.1773 0.165185 14.0443 0.138047 13.8654C0.0471956 13.2598 0 12.6397 0 12.0088C0 11.3826 0.0448358 10.7673 0.132148 10.1666Z"/></svg></div></div></div></body></html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/web-app-ui",
3
- "version": "5.0.54-qa",
3
+ "version": "5.0.55-qa",
4
4
  "files": [
5
5
  "dist/**/*"
6
6
  ],
@@ -27,9 +27,9 @@
27
27
  "@sentry/core": "^9.42.1",
28
28
  "@sentry/react": "^9.42.1",
29
29
  "@stripe/stripe-js": "^4.4.0",
30
- "@zeniai/client-analytics": "2.0.8",
31
- "@zeniai/client-epic-state": "5.0.26",
32
- "@zeniai/web-components": "4.0.62",
30
+ "@zeniai/client-analytics": "2.0.7",
31
+ "@zeniai/client-epic-state": "5.0.25",
32
+ "@zeniai/web-components": "4.0.63",
33
33
  "color": "3.1.3",
34
34
  "cross-fetch": "^4.0.0",
35
35
  "crypto-js": "4.2.0",
@@ -1 +0,0 @@
1
- import{j as e}from"./liveblocks-XXI3_E1y.js";import{A as d}from"./AddressScreen-ChjeKEBH.js";import i from"./NotFoundScreen-C3kD1egL.js";import"./sentry-DrlL61Aq.js";import{n as s,o as r}from"./core-sRr8O2Ja.js";import"./zeni-epic-state-BlOBva0w.js";import"./recharts-z_5Sq5F0.js";import"./index-B8scoeQA.js";import"./mui-CL-iXERd.js";import"./analytics-zC4vJBLG.js";import"./plaid-BUQgPXGQ.js";import"./dnd-CZEKCPsp.js";import"./stripe-DMRn4zHo.js";import"./lottie-CbW-xVFB.js";import"./lexical-CtDGfH8b.js";import"./pdf-BVi8zWaH.js";import"./utils-DCRx3jP7.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]="4bd15e18-5b5f-4be1-8d33-8bd696c76da2",t._sentryDebugIdIdentifier="sentry-dbid-4bd15e18-5b5f-4be1-8d33-8bd696c76da2")}catch{}})();function _(){return e.jsxs(s,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(d,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(d,{})}),e.jsx(r,{path:"*",element:e.jsx(i,{})})]})}export{_ as default};
@@ -1 +0,0 @@
1
- import{j as m}from"./liveblocks-XXI3_E1y.js";import{a as g}from"./sentry-DrlL61Aq.js";import{j as v,h as x,u as k,l as T,g as O,k as E}from"./core-sRr8O2Ja.js";import{z as b,b0 as F,y as P,d as L,f as V,aa as N,b1 as j,ao as A,ap as U,s as B}from"./index-B8scoeQA.js";import{eN as D,fB as _,rx as M,fw as R,c0 as z,Lw as G,bn as Y,pF as H,pt as Z,j_ as $,lu as S,Lx as q,bC as J,ct as C,lC as K,lF as Q}from"./zeni-epic-state-BlOBva0w.js";import"./mui-CL-iXERd.js";import{c as W}from"./routePaths-0yQK7ZVo.js";import{M as X}from"./MobileAppDrawer-C7qAXiy5.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new n.Error().stack;a&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[a]="6afcd465-ddb3-4e7b-8311-dc55ddd70534",n._sentryDebugIdIdentifier="sentry-dbid-6afcd465-ddb3-4e7b-8311-dc55ddd70534")}catch{}})();const ee=E(function(n){const a=R(n),i=b.getSignedInUser(),l=D(n),c=l.tenantId,p={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=z(l?.userRole??[])&&a.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=G(n.companyConfigState),t=n.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:a.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:a,allIndustries:e.companyIndustries??[],allNationalityCountries:t,isDisabled:f,authParams:p,filesEndPoint:`${A.fileMicroServiceBaseUrl}`,isZeniUser:Y(i)}},function(n,a){const{companyId:i,currentTenant:l,navigate:c,location:p}=a,{tenantEmailDomain:f}=l;return{onScheduleClick:e=>{let t=e.href;t.includes("http")||(t="https://".concat(t)),window.open(t,"_blank")},onSaveAll:()=>{n(Q())},onAddressClick:e=>{const t=W(f,e),o=B(p.state?.pathnameStackToGoBack,p.pathname);c(t,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{n(K({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:t,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=t,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:h}=r,w={companyInfo:{...t,website:u!=""&&u!=null?C(u):void 0,meetingLink:y!=""&&y!=null?C(y):void 0,industry:t.industry.selectedOption,companyIndustryType:t.companyIndustryType?.selectedOption??void 0,companySubIndustry:t.companySubIndustry?.selectedOption??void 0,businessModel:t.businessModel.selectedOption??"",companySourceOfFunds:t.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:t.companySourceOfFundsDescription??void 0,countriesOfOperations:t.countriesOfOperations?.selectedOptions?.map(I=>I.length===2?I:U(I))??[],transactionVolume:t.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:t.transactionVolumeDescription??void 0,regulatedStatus:t.regulatedStatus??void 0,regulatedStatusDescription:t.regulatedStatusDescription??void 0,usNexus:t.usNexus??void 0,usNexusTypes:t.usNexusTypes?.selectedOptions??[],purposeOfAccount:t.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:t.purposeOfAccountDescription??void 0},incInfo:{typeOfInc:o.typeOfInc.selectedOption??"",stateOfInc:o.stateOfInc.selectedOption??"",incDate:s!=null?J(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:h.selectedOptions.map(I=>parseInt(I)),fileId:r.fileIds[0]}};n(S({companyDetails:w}))},onPrimaryContactDetailsUpdated:e=>{n(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{n(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:void 0}]}))},onNewCompanyOfficerRemoved:e=>{n(q(e))},onCompanyOfficerUpdated:e=>{n(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:e.userId}]}))},updateFilesEntity:e=>{n($({files:e}))},onDeleteFile:e=>{n(Z(e))},onEditFileName:(e,t)=>{n(H(e,t.split(".")[0]))}}})(j);function de(){const n=v(),a=x(),i=k(),{tenantEmailDomain:l}=T(),[c,p]=g.useState(!1),[f,e]=g.useState(!1),t=O(s=>s.companyViewState.passportView.fetchState),o=O(s=>s.companyConfigState.fetchState),r=O(s=>D(s)),d=r.companyId??b.getSignedInUserTenant(l)?.companyId;if(b.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect(()=>{c||t!=="Not-Started"||d==null||(p(!0),a(_(d)))},[c,t,d,a]),g.useEffect(()=>{o==="Not-Started"&&a(M())},[o,a]);const u=s=>{e(s)},y=t==="Not-Started"||t==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&t==="Error"?m.jsx(F,{onGoHome:()=>n("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(P,{analytics:L,onLoad:s=>s.trackPageLoaded(V.Event.companyPassport,N(i)?"Settings":"Company Passport")}),N(i)?m.jsx(X,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:n,location:i,isLoading:y,currentTenant:r,isSettings:N(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
@@ -1,11 +0,0 @@
1
- import{j as C}from"./liveblocks-XXI3_E1y.js";import{a}from"./sentry-DrlL61Aq.js";import{h as D,u as v,g as u,N as w}from"./core-sRr8O2Ja.js";import{Ih as O,eN as A,fi as _,ml as U,fK as E,fh as j,eO as L,Io as F}from"./zeni-epic-state-BlOBva0w.js";import{u as $,z as c,L as g,D as k,o as H}from"./index-B8scoeQA.js";import{n as z}from"./mui-CL-iXERd.js";import{t as R}from"./getLocaleForTenant-CUETA9qT.js";import{g as P,Q as G}from"./QBOConnectionScreen-CwcXMmNE.js";import"./recharts-z_5Sq5F0.js";import"./analytics-zC4vJBLG.js";import"./plaid-BUQgPXGQ.js";import"./dnd-CZEKCPsp.js";import"./stripe-DMRn4zHo.js";import"./lottie-CbW-xVFB.js";import"./lexical-CtDGfH8b.js";import"./pdf-BVi8zWaH.js";import"./utils-DCRx3jP7.js";import"./empty-CwKXvn2c.js";import"./pdf-lib-Dkp2Hlcw.js";import"./index-B53H88q7.js";import"./url-CnXg07em.js";import"./index-DatNfK53.js";import"./decodeURIComponentSafe-DfA0P9Xn.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="0ae4bc04-71c6-498a-885b-aaa1e72bddfe",t._sentryDebugIdIdentifier="sentry-dbid-0ae4bc04-71c6-498a-885b-aaa1e72bddfe")}catch{}})();const K=z.div`
2
- display: flex;
3
- flex: 1 1 auto;
4
- flex-direction: row;
5
- justify-content: center;
6
- align-items: center;
7
- width: 100%;
8
- height: 100vh;
9
- background-color: ${t=>t.theme.colors.background};
10
- box-shadow: ${t=>`0px 2px ${H.sp1} ${t.theme.colors.dropShadowNormal}`};
11
- `;function pe(){const t=D(),i=v(),{setLoading:d,clearAllLoading:b}=$(),p=a.useRef(!1),f=a.useRef(!1),{code:x,realmId:N,state:T}=P(i.search),y=x!==""&&N!==""&&T!=="",I=u(l=>O(l)),e=u(l=>A(l)),n=u(l=>l.tenantState.fetchState),r=u(l=>l.tenantState.activeTenantFetchState.fetchState),o=c.getSignedInUser(),m=c.getActiveTenantForUser()?.tenantId,s=e?.externalConnections?.fetchState,h=e?.externalConnections?.saveConnectionState,S=e.externalConnections?.accounting[0]?.isValid;return a.useLayoutEffect(()=>{d(g.CONNECTION_AUTH)},[d]),a.useEffect(()=>{p.current||o==null||m==null||(p.current=!0,n==="Completed"||r!=="Not-Started"&&r!=="Error"||(d(g.TENANT_FETCHING),t(_(o.userId,m))))},[p,n,d]),a.useEffect(()=>{e.tenantId==null&&!f.current&&o!=null&&(f.current=!0,!(m==null||m!=null&&(r==="Completed"||r==="Error"))||n!=="Not-Started"&&n!=="Error"||t(U(o.userId)))},[f,n,r]),a.useEffect(()=>{o==null||e?.tenantId==null||e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||s==="In-Progress"||h!=="Error"||(d(g.CONNECTION_AUTH),t(E(o.userId,e.tenantId)))},[h]),a.useEffect(()=>{n!=="Completed"&&r!=="Completed"||o==null||e?.tenantId==null||(t(j(e.tenantId)),c.saveActiveTenantDomainForUser(e.tenantEmailDomain),L(o?.userId,o?.zeniSessionId,e.tenantId),k.updateAppLocaleID(R(F(e))),e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||s==="In-Progress"||o==null||e==null||t(E(o.userId,e.tenantId)))},[n,r,s]),a.useEffect(()=>{I.tenantsCoreDetailsInOrder.length>0&&n==="Completed"&&c.saveSignedInUserTenants(I.tenantsCoreDetailsInOrder)},[I.tenantsCoreDetailsInOrder.length,n]),a.useEffect(()=>{n!=="Completed"&&n!=="Error"||r!=="Completed"&&r!=="Error"||s!=="Completed"&&s!=="Error"||b()},[n,r,s]),e==null||n!=="Completed"&&r!=="Completed"||s!=="Completed"?null:y||S===!1?C.jsx(K,{children:C.jsx(G,{})}):C.jsx(w,{to:"/",replace:!0})}export{pe as default};
@@ -1 +0,0 @@
1
- import{j as d}from"./liveblocks-XXI3_E1y.js";import{z as n}from"./index-B8scoeQA.js";import{g as p}from"./QBOConnectionScreen-CwcXMmNE.js";import"./sentry-DrlL61Aq.js";import{u as a,N as i}from"./core-sRr8O2Ja.js";import"./zeni-epic-state-BlOBva0w.js";import"./recharts-z_5Sq5F0.js";import"./mui-CL-iXERd.js";import"./analytics-zC4vJBLG.js";import"./plaid-BUQgPXGQ.js";import"./dnd-CZEKCPsp.js";import"./stripe-DMRn4zHo.js";import"./lottie-CbW-xVFB.js";import"./lexical-CtDGfH8b.js";import"./pdf-BVi8zWaH.js";import"./utils-DCRx3jP7.js";import"./empty-CwKXvn2c.js";import"./pdf-lib-Dkp2Hlcw.js";import"./index-B53H88q7.js";import"./url-CnXg07em.js";import"./index-DatNfK53.js";import"./decodeURIComponentSafe-DfA0P9Xn.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]="b68d0d57-e81d-4cfb-97e6-d4dd5e5b7ebd",t._sentryDebugIdIdentifier="sentry-dbid-b68d0d57-e81d-4cfb-97e6-d4dd5e5b7ebd")}catch{}})();const U=()=>{const t=a(),{code:o,realmId:r,state:e}=p(t.search),s=n.getSignedInUser()?.userId??"";if(f(o,r,e,s)===!0){const m=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return d.jsx(i,{to:m})}return d.jsx(i,{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-XXI3_E1y.js";import{j as w,u as C,g as h,k as A,l as B}from"./core-sRr8O2Ja.js";import{Md as k,Mk as _,fz as L,fy as q,fx as J,im as W,Jl as K,pw as Q,eN as V,LL as D,ik as T,Me as S,Mn as F,ii as G,iG as j}from"./zeni-epic-state-BlOBva0w.js";import{bm as X,q as N,a as R,z as U,h as z,r as b,p as v,B as M,bn as Y,o as O,bo as ee,s as te}from"./index-B8scoeQA.js";import{n as Z}from"./mui-CL-iXERd.js";import"./sentry-DrlL61Aq.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]="2e73d22d-f198-4827-8087-3e07d22a0780",e._sentryDebugIdIdentifier="sentry-dbid-2e73d22d-f198-4827-8087-3e07d22a0780")}catch{}})();const ne=A(null,function(e,t){return{onSaveVendor:n=>{e(W(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(K("common")),n!=null&&e(Q(n))},onGetOtp:n=>{e(J(n,"BillPayVendor"))},onResendOtp:n=>{e(q(n,"BillPayVendor"))},onVerifyOtp:(n,a)=>{e(L(n,a,"BillPayVendor"))},onVerifyOtpSuccess:(n,a,o)=>{e(_(n,a,o))}}})(X);function H({vendorId:e,billId:t,isExpressPayPage:n}){const a=w(),o=C(),s=h(d=>k(d,e));return l.jsx(ne,{location:o,navigate:a,vendorId:e,billId:t,vendorViewDetails:s,isExpressPayPage:n??!1})}const ae=Z.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `,oe=A(function(e,t){const{vendorId:n,billId:a}=t,o=k(e,n),s=D(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,a);return{billId:a,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}},function(e,t){const{navigate:n,location:a,vendorId:o}=t;return{onFetchBankName:s=>{e(j(s))},onSaveHandler:s=>{e(G(t.bankAccountContext,s,"standard",o))},onCancel:()=>{(()=>{const s=b(a.state?.pathnameStackToGoBack),d=s.poppedPathname??P();n(d,{state:{pathnameStackToGoBack:s.newStack}})})(),e(S())},onACHDetailsUpdated:s=>{const{bankAccountSection:d}=s;e(F({data:d}))},onBackClick:()=>{if(e(T({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")n("../",{relative:"path"});else{const s=b(t.location.state?.pathnameStackToGoBack),d=s.poppedPathname??P(0);t.navigate(d,{state:{pathnameStackToGoBack:s.newStack}})}e(S())}}})(Y);function fe({vendorIdParam:e,accountContext:t}){const n=w(),a=C(),o=N(),{vendorId:s,billId:d}=B(),c=e??s,{useFeatureGate:r}=R(),i=U.getSignedInUser(),p=h(u=>V(u)),g=z(),x=b(a.state?.pathnameStackToGoBack),f=t??(x.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h(u=>k(u,c)),{isFeatureEnabled:I}=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(M,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:g.colors.grey5}}):l.jsxs(ae,{windowSize:o,children:[l.jsx(H,{vendorId:c,billId:d}),l.jsx(oe,{location:a,navigate:n,billId:d,vendorId:c,currentTenant:p,bankAccountContext:f,isVendorRecommendationEnabled:I,isZeniAccountsFeatureEnabled:y})]})}const P=(e=2)=>{let t="../";for(let n=0;n<e;n++)t=`${t}../`;return t},me=(e,t,n)=>{let a=`/${e}/bill/${encodeURIComponent(t)}`;return n=="draft"&&(a+="/edit"),a},he=e=>`/${e}/bills`,ke=(e,t)=>{let n=`/${e}/bill`;return n=t!=null?n.concat(`/${t}/edit`):n.concat("/new"),n},E=(e,t,n,a)=>{let o=`/${e}/bill`;return o+=n!=null?`/${n}/edit/vendor`:"/new/vendor",o+=a!=null?`/${a}/edit/${t}`:`/create/${t}`,o};function Se(e,t,n){return E(e,"ach",t,n)}function ve(e,t,n){return E(e,"domestic",t,n)}function ge(e,t,n){return E(e,"international",t,n)}const se=(e,t,n)=>{let a=`/${e}/bill/`;return a=n!=null?a.concat(`${encodeURIComponent(n)}/${t}/`):a.concat(`new/${t}/`),a},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 ${O.sp1} ${e.theme.colors.dropShadowNormal}`};
18
- `,de=A(function(e,t){const{vendorId:n,billId:a}=t,o=k(e,n),s=D(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,a);return{billId:a,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}},function(e,t){const{billId:n,navigate:a,location:o,vendorId:s,currentTenant: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(F({data:i}))},onCancel:()=>{(()=>{const r=b(o.state?.pathnameStackToGoBack),i=r.poppedPathname??$();a(i,{state:{pathnameStackToGoBack:r.newStack}})})(),e(S())},onAddressClick:r=>{if(t.bankAccountContext==="express-pay")a("./add-address");else{const i=se(c,r,n),p=te(o.state?.pathnameStackToGoBack,o.pathname);a(i,{state:{pathnameStackToGoBack:p}})}},onBackClick:()=>{if(e(T({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")a("../",{relative:"path"});else{const r=b(t.location.state?.pathnameStackToGoBack),i=r.poppedPathname??$(0);t.navigate(i,{state:{pathnameStackToGoBack:r.newStack}})}e(S())}}})(ee);function xe({vendorIdParam:e,accountContext:t}){const n=w(),a=C(),o=N(),{vendorId:s,billId:d}=B(),c=e??s,r=U.getSignedInUser(),{useFeatureGate:i}=R(),p=z(),g=h(u=>V(u)),x=b(a.state?.pathnameStackToGoBack),f=t??(x.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h(u=>k(u,c)),{isFeatureEnabled:I}=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(M,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:p.colors.grey5,boxShadow:`0px 2px ${O.sp1} ${p.colors.dropShadowNormal}`}}):l.jsxs(re,{windowSize:o,children:[l.jsx(H,{vendorId:c,billId:d}),l.jsx(de,{location:a,navigate:n,billId:d,vendorId:c,currentTenant:g,bankAccountContext:f,isVendorRecommendationEnabled:I,isZeniAccountsFeatureEnabled:y})]})}const $=(e=2)=>{let t="../";for(let n=0;n<e;n++)t=`${t}../`;return t};export{fe as A,xe as D,H 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 c}from"./liveblocks-XXI3_E1y.js";import{q as d,E as l,h as f}from"./index-B8scoeQA.js";import{D as p}from"./mui-CL-iXERd.js";import"./sentry-DrlL61Aq.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="ec2bc9ec-0ace-462e-8f78-09350484a4a5",e._sentryDebugIdIdentifier="sentry-dbid-ec2bc9ec-0ace-462e-8f78-09350484a4a5")}catch{}})();const u={drawerLeftMargin:new l(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:a,onClose:t}=e,n=d(),s=o?.valuePx(n)??u.drawerLeftMargin.valuePx(n),i=f();return c.jsx(p,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${s})`}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.8,cursor:"pointer"}}},onClose:t,children:a})}export{h as D};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-XXI3_E1y.js";import{a as d}from"./sentry-DrlL61Aq.js";import{j as B,h as A,u as J,l as q,g as l,N,k as F,n as R,o as W}from"./core-sRr8O2Ja.js";import{Ks as _,eN as M,JR as O,kq as K,GA as b,Kx as Y,Jk as $,jq as z,GB as S,JW as V,JX as X,Jm as H,Jl as L}from"./zeni-epic-state-BlOBva0w.js";import{aM as Q,d as U,r as Z,s as tt}from"./index-B8scoeQA.js";import"./mui-CL-iXERd.js";import{d as k}from"./decodeURIComponentSafe-DfA0P9Xn.js";import{w as et}from"./withTransactionSidePanel-CiVcMng7.js";import{e as at,b as nt}from"./routePaths-0yQK7ZVo.js";import"./recharts-z_5Sq5F0.js";import"./analytics-zC4vJBLG.js";import"./plaid-BUQgPXGQ.js";import"./dnd-CZEKCPsp.js";import"./stripe-DMRn4zHo.js";import"./lottie-CbW-xVFB.js";import"./lexical-CtDGfH8b.js";import"./pdf-BVi8zWaH.js";import"./utils-DCRx3jP7.js";import"./useAskAiCfoHostNavButtonProps-Bt4hMVmk.js";import"./useFetchSuggestedQuestionsWhenReady-B6OFe2QI.js";import"./TransactionDetailScreen-B-hqlTRL.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]="00c21b80-4744-4c18-8735-2b5153fd0a43",a._sentryDebugIdIdentifier="sentry-dbid-00c21b80-4744-4c18-8735-2b5153fd0a43")}catch{}})();const ot=F(function(a,t){const e=t.entity,o=Y(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:$(a,"common")},trendWithTransactionsReport:o,analytics:U,isAccountingClassesEnabled:z(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(H({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(L("common"))},onAutoCompleteEntity:e=>{const o=at(e,t.tenantEmailDomain);a(V()),a(X()),t.resetTrendIsFetchedStates(),t.navigate(o,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=Z(t.location.state?.pathnameStackToGoBack),o=e.poppedPathname??I();t.navigate(o,{state:{pathnameStackToGoBack:e.newStack}})}},onTrendSelectedPeriodChange:e=>{if(t.closeSidePanel?.(),e==null)t.defaultTransactionTimePeriod!=null&&a(S(t.entity,"EntityDetail",{timeframe:"quarter",timePeriod:t.defaultTransactionTimePeriod}));else{const o=e.currentTimePeriod==null?e.addTimePeriod:{startDate:e.addTimePeriod.startDate,endDate:e.currentTimePeriod.endDate};a(b(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),a(S(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:o}))}}}})(Q),it=et(function({entityType:a,...t}){const e=B(),o=A(),c=J(),[m,T]=d.useState(!1),[h,D]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:x,entityNameEncoded:j}=q(),r=k(x??""),p=k(j??""),u=rt(r,p),G=[r,p].filter(n=>n!=null),i={name:p,id:r,type:a,zeniId:r,qboId:r},g=l(n=>_(n.customerIncomeState,n.vendorExpenseState,n.trendState,i,"quarter")),v=l(n=>M(n).company?.companyInfo.firstMonthOfFY??1),f=l(n=>O(n.trendWithTransactionsState,i,"EntityDetail"));d.useEffect(()=>{m===!1&&u===!0&&(T(!0),o(K(i)))},[m,u,i]);const E=l(n=>n.trendState.fetchState),P=f?.selectedPeriod?.timePeriod??g,w=function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y}(f?.selectedPeriod?.timePeriod,g);return d.useEffect(()=>{m===!0&&h===!1&&E==="Completed"&&(D(!0),P!=null&&o(b(i,"EntityDetail",{timeframe:f?.selectedPeriod?.timeframe??"quarter",timePeriod:P})))},[m,h,E]),u?s.jsx(ot,{firstMonthOfFY:v,tenantEmailDomain:C,location:c,navigate:e,entity:i,defaultTransactionTimePeriod:w,resetTrendIsFetchedStates:()=>{T(!1),D(!1)},...t}):s.jsx(N,{to:I(G.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 jt({entityType:a}){return s.jsx(R,{children:s.jsx(W,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:a})})})}export{jt as EntityDetailRoutes,jt as default};
@@ -1,25 +0,0 @@
1
- import{j as p}from"./liveblocks-XXI3_E1y.js";import xn from"./NotFoundScreen-C3kD1egL.js";import{a as s,b as Pt}from"./sentry-DrlL61Aq.js";import{n as De,S as Rn}from"./mui-CL-iXERd.js";import{h as se,j as wt,u as qe,g as F,k as Dn,l as rt,n as Un,o as je}from"./core-sRr8O2Ja.js";import{eN as we,OL as On,mv as Ce,fd as Fn,q7 as Bn,mN as xt,n6 as Rt,OM as Dt,ng as _n,ON as Ut,mG as Mn,pF as Vn,eY as he,OO as xe,s6 as Ot,Bh as Ft,OP as Bt,OQ as jn,pk as Ge,Kt as dt,Kv as zn,jt as Ln,Kw as $n,jA as qn,cU as Gn,t9 as Je,jq as Jn,mT as _t,nl as Re,OR as Nn,Jm as ut,Jl as Ae,OS as mt,jR as Yn,OT as Kn,OU as Wn,OV as Zn,OW as Hn,m_ as Qn,mL as ce,no as Te,OX as Xn,OY as ea,OZ as ta,nv as na,jE as aa,jv as oa,O_ as sa,jD as ht,KD as ca,O$ as ia,P0 as la,pg as ra,oX as da,nm as pe,oW as ze,P1 as ua,P2 as ma,l8 as ha,bq as pa,l3 as pt,kR as ga,P3 as Ca,gC as gt,fP as Sa,l0 as fa,v2 as Ia,P4 as ka,nW as Ea,nR as va,nV as ya,nG as ba,P5 as Aa,e$ as Mt,n9 as Ta,mW as Pa,fe as Ct,nq as wa,P6 as xa,nn as Vt,P7 as Ra,P8 as Da,P9 as Ua,Pa as Oa,Pb as St,ps as Fa,oM as Ba,Jk as _a,jC as Ma,Pc as Va,FB as ja,jB as za,e_ as La,ol as jt,oE as $a,nk as ft,np as qa,bC as Ga,kZ as Ja,kW as Na,Pd as Ya,nF as It,oC as kt,oA as Ka,oq as Wa,o5 as Za,oD as Ha,Pe as Qa,Pf as Xa,o9 as eo,Pg as to,n$ as no,o8 as ao,o6 as oo,oH as so}from"./zeni-epic-state-BlOBva0w.js";import{K as zt,a as Lt,p as ge,d as L,s as H,M as $t,ct as co,z as Ue,cu as io,ao as Pe,cv as lo,aO as Et,B as qt,cw as ro,al as Le,D as uo,cx as mo,R as ho,cy as po,cz as go,cA as Co,x as So,A as fo,aI as Io,b0 as ko,E as Eo,cB as vo}from"./index-B8scoeQA.js";import{u as Gt}from"./useAskAiCfoHostNavButtonProps-Bt4hMVmk.js";import{c as Jt}from"./useFetchSuggestedQuestionsWhenReady-B6OFe2QI.js";import{c as vt,C as yo}from"./TransactionDetailScreen-B-hqlTRL.js";import{w as bo}from"./withTransactionSidePanel-CiVcMng7.js";import{h as Ao,v as To}from"./routePaths-0yQK7ZVo.js";import{g as $e}from"./accountMappingHelper-Bcmi4v71.js";import{D as Po}from"./DrawerScreen-CeA1faKQ.js";import"./recharts-z_5Sq5F0.js";import"./analytics-zC4vJBLG.js";import"./plaid-BUQgPXGQ.js";import"./dnd-CZEKCPsp.js";import"./stripe-DMRn4zHo.js";import"./lottie-CbW-xVFB.js";import"./lexical-CtDGfH8b.js";import"./pdf-BVi8zWaH.js";import"./utils-DCRx3jP7.js";import"./decodeURIComponentSafe-DfA0P9Xn.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new t.Error().stack;d&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[d]="d8f650e1-6e88-402a-84f3-4e645e4fcbe1",t._sentryDebugIdIdentifier="sentry-dbid-d8f650e1-6e88-402a-84f3-4e645e4fcbe1")}catch{}})();const wo=()=>{const{isAiCfoOpen:t,setIsAiCfoOpen:d}=zt(),U=se(),E=wt(),S=qe(),u=F(g=>we(g)),{useFeatureGate:c}=Lt(),{isFeatureEnabled:B}=c(ge.isRealtimeInsightsFeatureEnabled),m=F(g=>g.expenseAutomationViewState.selectedPeriodByTenantId),o=F(g=>On(g,u.tenantId)),{isAiCfoAccessEnabled:v,onAskAiCfoClick:I}=Gt({isAiCfoOpen:t,setIsAiCfoOpen:d,mobileExploreReferrer:"Month-End Close Overview"}),y=s.useCallback((g,T,_=!1)=>{U(Ce({tenantId:T,period:{month:g.month,year:g.year},refreshViewInBackground:_}))},[]),M=s.useCallback(g=>{const T=S.state?.referrer;o.monthEndCloseChecks?.auditSummary!=null&&L.trackMonthCloseAuditPage(g.month,g.year,o.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",o.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,T??null),U(Fn(u.tenantId,g))},[u.tenantId,o.monthEndCloseChecks?.auditSummary,o.monthEndCloseChecks?.reportEmailSentDate]),i=m[u.tenantId],h=s.useCallback(()=>{const g=S.state?.referrer;o.monthEndCloseChecks?.auditSummary!=null&&L.trackMonthCloseAuditPage(i.month,i.year,o.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",o.monthEndCloseChecks.auditSummary.auditScorePercentage,!0,g??null),y(i,u.tenantId,!0)},[y,i,u.tenantId,o.monthEndCloseChecks?.auditSummary,o.monthEndCloseChecks?.reportEmailSentDate]),w=H(S.state?.pathnameStackToGoBack,S.pathname),A=s.useCallback(()=>{if(o.monthEndCloseChecks!=null&&i!=null){const g=o.monthEndCloseChecks.monthEndCloseCheckList.find(T=>T.progress<100);if(g!=null)return void E(`./${g.id}/${i.month}-${i.year}`,{state:{pathnameStackToGoBack:w,message:"comingFromOverview"}});E(`./month_end_insights/${i.month}-${i.year}`,{state:{pathnameStackToGoBack:w,message:"comingFromOverview"}})}},[o.monthEndCloseChecks,i]),{areTenantIdsInSync:x}=$t();return Jt({isDataReady:o.fetchState==="Completed"}),s.useEffect(()=>{i!=null&&o.fetchState!=="In-Progress"&&o.fetchState!=="Completed"&&x&&y(i,u.tenantId)},[y,i,o.fetchState,u.tenantId,x]),s.useEffect(()=>{i!=null&&o.monthClosePerformanceTrendFetchStatus.fetchState!=="In-Progress"&&o.monthClosePerformanceTrendFetchStatus.fetchState!=="Completed"&&x&&U(Bn(i))},[i,o.monthClosePerformanceTrendFetchStatus.fetchState,x]),s.useEffect(()=>{const g=setInterval(()=>{o.fetchState!=="In-Progress"&&o.fetchState==="Completed"&&h()},3e5);return()=>clearInterval(g)},[o.fetchState]),s.useEffect(()=>{if(o.fetchState==="Completed"&&o.monthEndCloseChecks?.auditSummary!=null){const g=S.state?.referrer;L.trackMonthCloseAuditPage(o.selectedPeriod.month,o.selectedPeriod.year,o.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",o.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,g??null)}},[o.fetchState,o.selectedPeriod,o.monthEndCloseChecks?.auditSummary,o.monthEndCloseChecks?.reportEmailSentDate]),p.jsx(xo,{children:p.jsx(co,{monthEndCloseChecksView:o,isRealtimeInsightsFeatureEnabled:B,onMonthEndCheckClick:g=>{E(`./${g}/${i.month}-${i.year}`,{state:{pathnameStackToGoBack:w,message:"comingFromOverview",referrer:"Expense Automation - Overview"}})},onPeriodChange:M,handleReviewButtonClick:A,onBackClick:()=>{E("../../dashboard")},onReload:h,isAiCfoAccessEnabled:v,onAskAiCfoClick:I})})},xo=De.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- background-color: ${t=>t.theme.colors.grey4};
8
- `,Ro=Pt.memo(({reconciliation:t,selectedDrawerAccountId:d,onClose:U,onFetchLinkTokenClick:E,onEstablishConnectionClick:S})=>{const u=se(),c=Ue.getSignedInUser(),B=F(n=>we(n)),m=t.excludedAccountIDs,o=s.useMemo(()=>({userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:B?.tenantId??""}),[c?.userId,c?.zeniSessionId,B?.tenantId]),{accountReconciliationsByAccountID:v,monthYearPeriod:I,statementUploadChosen:y}=t,M=v[d],i=M?.accountReconEntity.statementMetaData?.statementUploadId,h=(n,a)=>{u(Vn(n,a.split(".")[0]))},w=n=>{i!=null&&u(Mn({accountId:d,selectedPeriod:I,fileId:n,statementUploadId:i}))},A=()=>{u(Dt({statementUploadChosen:!1}))},x=n=>{u(_n({accountId:d,selectedPeriod:I,payload:n}))},g=n=>{u(Ut({accountId:d,selectedPeriod:I,localData:{accountSource:n}}))},T=s.useCallback(()=>{u(xt({accountId:d}))},[u,d]),_=s.useCallback(()=>{u(Rt({accountId:d}))},[u,d]),e=m.includes(d)?t.excludedAccountReconciliationByAccountID[d]:void 0;return M!=null?p.jsx(yt,{children:p.jsx(bt,{children:p.jsx(io,{excludeAccountFetch:t.excludeAccountFetchState,accountReconciliation:M,monthYearPeriod:I,onDismissClick:U,plaidConnectionDetails:t.plaidConnectionDetails,onFetchLinkTokenClick:E,onEstablishConnectionClick:S,onEditFileName:h,onDeleteFile:w,onSelectSourceType:g,filesEndPoint:Pe.fileMicroServiceBaseUrl,authParams:o,openFilePicker:y,onStatementUploadSuccess:x,onUploadWindowOpenedOnce:A,onExcludeFromReconciliation:T})})}):e!=null?p.jsx(yt,{children:p.jsx(bt,{children:p.jsx(lo,{excludedAccountReconciliation:e,includeAccountFetch:t.includeAccountFetchState,onIncludeIntoReconciliation:_})})}):null}),yt=De.div`
9
- display: flex;
10
- flex-direction: column;
11
- height: 100%;
12
- `,bt=De.div`
13
- flex: 1;
14
- min-height: 0;
15
- display: flex;
16
- flex-direction: column;
17
- box-sizing: border-box;
18
- min-width: 0;
19
- overflow-x: hidden;
20
- overflow-y: auto;
21
- `;function Do({companyId:t,closeCustomerRequestDrawer:d,addCustomerRequest:U,resetCustomerRequest:E}){const S=Ue.getSignedInUser();if(S==null)throw Error("Can't access Customer Request page without signing in...");const u=F(c=>jn(c,t,S));return s.useEffect(()=>{E()},[]),p.jsx(p.Fragment,{children:u.fetchState==="In-Progress"||u.companyMonthEndReportTemplatesData.fetchState==="In-Progress"?p.jsx(qt,{fetchState:"In-Progress"}):p.jsx(ro,{onCloseClick:d,addCustomerRequest:U,snippets:u.companyMonthEndReportTemplatesData,bulletPoints:u.zeniRequestsData??[]})})}const Uo=t=>t.sections.generalExpense.vendors.length+t.sections.reimbursement.vendors.length,{common:{strings:{hyphen:Oo,comma:At,space:Fo}},dateFormat:Nt}=uo.getLocalizedStrings(),Tt=so,Bo=Dn(function(t,d){const{uncategorizedAccounts:U,vendorSearchAutoCompleteData:E,monthEndInsightsCustomerRequestData:S,monthEndInsightsPreviewMode:u,companyId:c,isMissingReceiptsBulkUploadEnabled:B,isTransactionActivityEnabled:m}=d,o=Ue.getSignedInUser(),v=t.tenantState.currentTenantId,I={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:v??""},y=he(t),{selectedTransactionCategorizationTab:M}=y;return{expenseAutomationViewSelector:y,bulkUploadSelector:B===!0?y.missingReceipts.bulkUpload:void 0,vendorSearchAutoCompleteData:E,authParams:I,receiptUploadEndpoint:`${Pe.accountMicroServiceBaseUrl}`,transactionAttachmentsEndpoint:`${ho}/transaction_attachments`,bulkUploadEndpoint:B===!0?`${Pe.communicationAgentMicroServiceBaseUrl}/1.0/receipts/bulk-upload`:void 0,isDisabled:!1,currentTab:M,monthEndInsightsCustomerRequestData:S,monthEndInsightsPreviewMode:u,allThreadsSectionOpen:!1,enableMonthEndInsightsZeniGPTFeature:!1,loggedInUser:o,uncategorizedAccounts:U,companyId:c,isTransactionActivityEnabled:m,isAccountingClassesEnabled:Jn(t)}},function(t,d){const{themeState:U,isCOTEnabled:E,isUncategorizedExpenseCategoryEnabled:S,isMissingReceiptsBulkUploadEnabled:u,location:c,vendorSearchAutoCompleteData:B,expenseAutomationViewSelector:m,currentTenant:o,uncategorizedAccounts:v,navigate:I,onClickCustomerRequest:y,handleEditClick:M,setActivityLogTransactionId:i}=d,{selectedPeriod:h,currentSelectedView:w,reconciliation:{selectedAccountId:A}}=m,{accountSettingsView:x}=m.jeSchedules,g=_t(h),T=Re(g.start),_=Re(g.end);return{onZeniLogoClick:()=>{U.toggle()},onUploadReceiptAttachment:e=>{L.trackMissingReceiptAttached(h.month,h.year),t(Ba(e))},onUploadTransactionReceipt:(e,n,a,r,f,C)=>{t(St(e,n,{fetchState:"In-Progress"}));const k=()=>t(St(e,n,{fetchState:"Error"}));po(`${Pe.accountMicroServiceBaseUrl}/1.0/transactions/${n}/attachments`,C,n,a,r,f).then(R=>{R!=null?t(Fa(e,R)):k()}).catch(k)},onMissingReceiptsRowClick:(e,n)=>{if(d.openTransactionPanel)return void d.openTransactionPanel(e,n);const a=H(c.state?.pathnameStackToGoBack,c.pathname);I(`../../transaction/${n}/${e}`,{state:{pathnameStackToGoBack:a,message:"expenseAutomation",origin:"missing_receipts"}})},onUploadReceiptComplete:(e,n)=>{t(Oa(e,n)),o!=null&&t(Ce({tenantId:o.tenantId,period:n,refreshViewInBackground:!0}))},onUploadReceiptFetchStatus:(e,n,a,r)=>{t(Ua(e,{fetchState:n,error:a})),a!=null&&t(gt({messageSection:"missing_receipts_attachment",messageText:"failed",type:"error",showStatusIcon:!0,variables:[{variableName:"__message__",variableValue:r!=null?Fo+Oo+r+At:At}]}))},onUpdateJESchedulesUIState:e=>{t(Da(e))},onUpdateMissingReceiptsUIState:e=>{t(Ra(e))},onFetchMissingReceiptsList:()=>{_!=null&&T!=null&&t(Vt({start:T,end:_},{amount:75,currencyCode:"USD",currencySymbol:"$"},!0,!1))},...u===!0?{onBulkUploadFiles:e=>{t(oo(e))},onBulkUploadProgress:e=>{t(ao(e))},onBulkUploadSuccess:e=>{t(no({batchId:e}))},onBulkUploadUploadedFileCount:e=>{t(to(e))},onConfirmBulkUploadMatch:(e,n,a,r,f)=>{t(eo(e,n,a,r,f))},onBulkUploadConfirmMatchAcknowledged:()=>{t(Xa())},onSetBulkUploadResultsTab:e=>{t(Qa(e))},onSetBulkUploadCompletedSubTab:e=>{t(Ha(e))},onSetBulkUploadSortConfig:(e,n)=>{t(kt({sortKey:e,sortOrder:n}))},onClearBulkUpload:()=>{t(Za())},onSearchTransactionsForManualMatch:(e,n)=>{t(Tt(e,n??void 0))},onLoadMoreManualSearch:()=>{const{manualSearch:e}=m.missingReceipts.bulkUpload;e.nextPageToken!=null&&e.searchQuery!==""&&t(Tt(e.searchQuery,e.nextPageToken))},onFetchCompletedTransactions:(e,n)=>{t(Wa(e,n))},onFetchBulkUploadBatches:e=>{t(jt(e))},onFetchMoreBatchDetails:()=>{t(Ka())},onResetBulkUploadSort:()=>{t(kt({sortKey:"date",sortOrder:"descending"}))}}:{},onClearMissingReceiptsTabNavigation:()=>{t(xa())},onSearchTextChanged:e=>{const n=m.currentSelectedView,a=m.selectedTransactionCategorizationTab;n==="transaction_categorization"&&(t(ze({selectedTab:a,uiState:{searchString:e}})),_!=null&&T!=null&&t(pe(a,{start:T,end:_},!0,!1,e,void 0,!0)))},onRefresh:()=>{d.trackExpenseAutomationTabAnalytics(!0),t(wa(S))},onClose:()=>{w==="reconciliation"&&A!=null&&t(Ct({selectedAccountId:void 0})),I("../")},onBack:()=>{w==="reconciliation"&&A!=null&&t(Ct({selectedAccountId:void 0}))},onSaveReconciliation:e=>{t(Pa(e))},onSaveReconciliationReview:e=>{t(Ta(e))},onUpdateStep:e=>{const{selectedPeriod:n}=m,a=H(c.state?.pathnameStackToGoBack,c.pathname);I(`../${e}/${n.month}-${n.year}`,{state:{pathnameStackToGoBack:a,referrer:m.currentSelectedView}}),t(Mt(e))},handleLogOutClick:()=>{const e=H(c.state?.pathnameStackToGoBack,c.pathname);I("/signout",{replace:!0,state:{pathnameStackToGoBack:e,message:"logout"}})},onJeAccountSettingsChange:e=>{const{vendorsAccountSection:n}=e,{prepaidExpensesAccount:a,fixedAssetsAccount:r,accruedExpensesAccount:f}=n,C=$e(x.prepaidExpensesAccountList,a.selectedOptions),k=$e(x.fixedAssetsAccountList,r.selectedOptions),R=$e(x.accruedExpensesAccountList,f.selectedOptions),q={selectedPrepaidExpensesAccountIds:C.map(b=>b.accountId),selectedFixedAssetsAccountIds:k.map(b=>b.accountId),selectedAccruedExpensesAccountIds:R.map(b=>b.accountId)};t(Aa({data:q}))},onSaveJeAccountSettingsClick:()=>{t(ba())},onJESchedulesFormDataChange(e,n){const{jeScheduleID:a,accumulatedDepreciationCategory:r,scheduleClass:f,scheduleExpenseCategory:C,vendor:k}=n,{allAccountList:R,allClassList:q,allDepreciationAccountList:b}=m.jeSchedules,G=B.entityAutoCompleteView.vendor.length>0?B.entityAutoCompleteView.vendor.find(j=>j.id===k?.selectedOption):void 0,W={id:G?.zeniId??k?.selectedOption??"",name:G?.name??k?.defaultOptions.find(j=>j.value===k?.selectedOption)?.label??"",logo:G?.logo},Oe=C?.selectedOption!=null?R.find(j=>j.qboId===C.selectedOption):void 0,Se=f?.selectedOption!=null?q.find(j=>j.classId===f.selectedOption):void 0,fe=r?.selectedOption!=null?b.find(j=>j.qboId===r.selectedOption):void 0;t(ya({scheduledJournalEntryID:e,localData:{jeScheduleID:a,scheduledJournalEntryID:e,updatedCategoryId:Oe?.accountId,updatedClassId:Se?.classId,updatedAccumulatedDepreciationCategoryID:fe?.accountId,updatedVendor:{id:W.id,name:W.name}}}))},ignoreRecommendedJeSchedule(e,n){t(va(e,n))},vendorSearchAutoCompleteActions:{onAutoCompleteInputChange:(e,n)=>{e.trim().length>=2?t(ut({searchString:e,entityType:n,searchOrigin:"common"})):e.trim().length===0&&t(Ae("common"))},onCancelAutoComplete:()=>{t(Ae("common"))}},onPostJESchedule(e,n){t(Ea({scheduledJournalEntryID:e,jeScheduleTransactionKey:n}))},clearJeScheduleLocalData(){t(ka())},handleJeScheduleClick:(e,n,a)=>{t(Ia({selectedJEScheduleKey:n}));const r=H(c.state?.pathnameStackToGoBack,c.pathname);I(`../../vendors/schedules/${a}/details/${e}`,{state:{pathnameStackToGoBack:r,message:"expenseAutomation",origin:"je_schedules"}})},improveMonthEndInsightsUsingZeniGPTClick:e=>{o!=null&&t(fa(e,o.companyId,o.tenantId))},onClickCustomerRequest:y,setActivityLogTransactionId:i,onCloseAllThreadsSection:()=>{},onCloseFileAttachmentSnackBar:()=>{t(Sa())},onOpenFileAttachmentSnackBar:()=>{t(gt({messageSection:"cockpit_month_end_email_attachment_upload",messageText:"failed",type:"error",showStatusIcon:!0}))},onRemoveFileAttachment:e=>{t(Ca(e))},onUpdateFileAttachment:e=>{t(ga({files:e}))},previewMonthEndReport:(e,n,a,r)=>{o!=null&&t(pt(e,o.companyId,n,!0,a,r,o.tenantId))},saveMonthEndReport:(e,n,a,r)=>{o!=null&&t(pt(e,o.companyId,n,!1,a,r,o.tenantId))},onEditMonthEndInsightsClick:M,sendMonthEndReport:e=>{const n=c.state?.referrer,{selectedPeriod:a,auditSummary:r}=m;o!=null&&r?.auditScorePercentage!=null&&(t(ha(o.companyId,e,o.tenantId)),L.trackInsightsEmailPage(a.month,a.year,!1,"draft",r.auditScorePercentage,pa().format(Nt.analytics.MMMDDCommaYYYYformat),n??null))},onTransactionCategorizationRowClick:(e,n)=>{if(d.openTransactionPanel)return void d.openTransactionPanel(e,n);const a=H(c.state?.pathnameStackToGoBack,c.pathname);I(`../../transaction/${n}/${e}`,{state:{pathnameStackToGoBack:a,message:"expenseAutomation",origin:"transaction_categorization"}})},setLocalDataForCategoryAndClass:(e,n,a,r,f,C,k,R,q,b,G)=>{t(ma(e,n,a,r,v,f,C,k,R,q,b,G))},onCancelAutoComplete:()=>{t(Ae("common"))},updateExpenseAutomationReconListScrollPosition:e=>{t(mt({scrollPosition:e}))},onUpdateTab:e=>{d.closeSidePanel?.(),_!=null&&T!=null&&(t(pe(e,{start:T,end:_},!1,!1)),t(ua(e)))},onUpdateTransactionCategorizationUIState:(e,n)=>{t(ze({selectedTab:e,uiState:n})),_!=null&&T!=null&&t(pe(e,{start:T,end:_},!1,!1,n.searchString,null,!0))},onUpdateScrollYOffSetTransactionCategorizationUIState:(e,n)=>{t(ze({selectedTab:e,uiState:n}))},onFetchTransactionCategorizationList:(e,n,a,r,f,C,k)=>{_!=null&&T!=null&&t(pe(e,{start:T,end:_},!0,a,n,r,f,C,k))},resetTransactionCategorizationLocalData:(e,n,a,r,f,C,k,R)=>{t(da(e,n,a,r,R??null,f,C,!1,k))},updateSelectedVendorForTransaction:(e,n,a,r,f)=>{t(ht({selectedTab:e,transactionId:n,lineId:a,selectedTransaction:r,uncategorizedAccounts:v,updatedVendor:f}))},onSaveUpdateTransactionCategorization:(e,n,a)=>{const r=c.state?.referrer;e==="autoCategorized"?L.trackTransactionsAutoCategorisedPage(h.month,h.year,m.transactionView.totalCountByTab.autoCategorized,n.length,!1,r??null):L.trackTransactionsReviewPage(h.month,h.year,m.transactionView.totalCountByTab.review,n.length,!1,r??null),t(ra(e,n,a,S))},onUpdateSelectedCheckboxTransactionIds:(e,n)=>{t(la({selectedTab:e,transactionIds:n}))},onFetchRecommendationsForEntityCategorizationWithCustomer:(e,n,a,r,f,C,k)=>{const{transactionId:R,transaction:q,lineIds:b}=n;C!=null&&t(ca({transactionId:R,customerUpdates:C})),t(ia({selectedTab:r,transactionId:R.id,lineId:b[0],selectedTransaction:q,uncategorizedAccounts:v,updatedCustomer:C,selectedEntity:f,isUncategorizedExpenseCategoryEnabled:k})),f!=null&&t(Je(f,e,n,a,!0,E,k))},onFetchRecommendationsForEntityCategorization:(e,n,a,r,f,C,k)=>{const{transactionId:R,transaction:q,lineIds:b}=n;C!=null&&(t(aa({transactionId:R,vendorUpdates:{name:C.name,id:C.id?C.id:void 0}})),t(oa({vendorId:C.id?C.id:void 0,localData:{vendorName:C.name,vendorId:C.id?C.id:void 0}}))),C?.id?(t(ht({selectedTab:r,transactionId:R.id,lineId:b[0],selectedTransaction:q,uncategorizedAccounts:v,updatedVendor:C,selectedEntity:f,isUncategorizedExpenseCategoryEnabled:k})),f!=null&&t(Je(f,e,n,a,!0,E,k))):t(sa({selectedTab:r,transactionId:R.id,lineId:b[0]}))},fetchFluxViewOnScroll:(e,n)=>{t(Te(e,!0,!1,n,!1,!0))},onFetchFluxViewList:()=>{t(Te(h,!0,!1,null,!1,!1))},markAsReview:(e,n,a,r)=>{L.trackFluxAnalysisReviewed(a.month,a.year,r??!1,e),t(na(n,e,a,r??!1))},onUpdateFluxAnalysisUIState:e=>{t(ta(e))},updateOperatingExpensesIdsForReview:e=>{t(ea({operatingExpenseIds:e,selectedPeriod:h}))},redirectToVendorDetailPage:e=>{if(d.tenantEmailDomain!=null){const n=To(e.id,e.qboId,d.tenantEmailDomain),a=H(d.location.state?.pathnameStackToGoBack,d.location.pathname);d.navigate(n,{state:{pathnameStackToGoBack:a,message:"expenseAutomation",referrer:"Vendor List",origin:"flux_analysis"}})}},updateSectionIdsForReview:e=>{t(Xn({sectionId:e,selectedPeriod:h}))},onFetchReimbursementView:(e,n,a)=>{t(Te(e,!0,!1,n,!0,a))},onReviewClicked:e=>{t(ce(h,e))},setOpenDrawerClicked:e=>{t(xe({selectedDrawerAccountId:e}))},onFetchLinkTokenClick:(e,n)=>{t(Ot("expense_automation_reconcile",e,n))},onEstablishConnectionClick:(e,n)=>{const a=o?.companyId;a!=null&&(t(Ft(e,a,"expense_automation_reconcile",void 0,"link_account_no_microdeposit",n)),t(Bt({accountId:n,connectionInProgress:!0})))},onAddStatementClick:e=>{t(xe({selectedDrawerAccountId:e})),t(Ut({accountId:e,selectedPeriod:h,localData:{accountSource:"bank_statement"}})),t(Dt({statementUploadChosen:!0}))},onReloadReconciliationListPage:()=>{t(ce(h,void 0,!0,!1))},onUpdateReconcileTabLocalData:e=>{t(Qn({selectedTransactionIds:e}))},onReconTabColumnSortConfigChanged:(e,n)=>{t(Hn({sortKey:e,sortOrder:n}))},onReconReviewTabColumnSortConfigChanged:(e,n)=>{t(Zn({sortKey:e,sortOrder:n}))},onReconTabUpdate:e=>{d.closeSidePanel?.(),t(Wn({selectedTab:e}))},updateReconReviewTabLocalData:(e,n,a)=>{const r=e.vendor?.id;a&&r!=null&&t(Yn(r)),t(Kn({data:e,transactionId:n}))},onReconMatchedTransactionClick:e=>{if(d.openTransactionPanel)return void d.openTransactionPanel(e,Ge("bill"));const n=H(c.state?.pathnameStackToGoBack,c.pathname);I(`../../transaction/bill/${e}`,{state:{pathnameStackToGoBack:n,message:"expenseAutomation",origin:"reconciliation"}})},onReloadPage:()=>{window.location.reload()},onBackClick:()=>{I(-1)},onReconListPageScroll:e=>{t(mt({scrollPosition:e}))},onVendorAutoCompleteInputChange:e=>{e.trim().length>=2?t(ut({searchString:e,searchOrigin:"common"})):e.trim().length===0&&t(Ae("common"))},onReconNodeCollapseToggled:(e,n)=>{t(Nn({nodeId:e,collapsed:n}))},updateSectionCollapseStatus:()=>{},onExcludeAccountFromReconciliation:e=>{t(xt({accountId:e}))},onIncludeAccountIntoReconciliation:e=>{t(Rt({accountId:e}))}}},(t,d,U)=>{const{isMissingReceiptsBulkUploadEnabled:E,...S}=U;return function(u,c,B){return{...u,...c,...B,onUploadTransactionReceipt:(m,o,v,I,y)=>{c.onUploadTransactionReceipt(m,o,v,I,y,u.authParams)}}}(t,d,S)})(mo),_o=bo(function(t){const d=t.displayName??t.name??"Component",U=Pt.memo(t),E=S=>{const u=se(),c=function(){const h=se(),w=F(A=>he(A).reconciliation.selectedDrawerAccountId);return{isOpen:w!=null,selectedAccountId:w,openPanel:s.useCallback(A=>{h(xe({selectedDrawerAccountId:A}))},[h]),closePanel:s.useCallback(()=>{h(xe({selectedDrawerAccountId:void 0}))},[h])}}(),B=F(h=>he(h).reconciliation),m=F(h=>we(h)),o=s.useCallback((h,w)=>{u(Ot("expense_automation_reconcile",h,w))},[u]),v=s.useCallback((h,w)=>{const A=m?.companyId;A!=null&&(u(Ft(h,A,"expense_automation_reconcile",void 0,"link_account_no_microdeposit",w)),u(Bt({accountId:w,connectionInProgress:!0})))},[u,m?.companyId]),I=s.useMemo(()=>{if(c.isOpen&&c.selectedAccountId!=null)return p.jsx(Ro,{reconciliation:B,selectedDrawerAccountId:c.selectedAccountId,onClose:c.closePanel,onFetchLinkTokenClick:o,onEstablishConnectionClick:v})},[c.isOpen,c.selectedAccountId,c.closePanel,B,o,v]),y=s.useMemo(()=>({reconPanelContent:I,reconSidePanelIsOpen:c.isOpen,closeReconSidePanel:c.closePanel}),[I,c.isOpen,c.closePanel]),M=s.useContext(Et),i=s.useMemo(()=>c.isOpen?{closePanel:c.closePanel,selectedItemId:c.selectedAccountId}:M,[c.isOpen,c.closePanel,c.selectedAccountId,M]);return p.jsx(Et.Provider,{value:i,children:p.jsx(U,{...S,...y})})};return E.displayName=`withReconSidePanel(${d})`,E}(({closeSidePanel:t,openTransactionPanel:d,panelContent:U,sidePanelIsFullView:E,sidePanelIsOpen:S,reconPanelContent:u,reconSidePanelIsOpen:c,closeReconSidePanel:B})=>{const{isAiCfoOpen:m,setIsAiCfoOpen:o}=zt(),v=go(),{isOpen:I}=Co(),y=wt(),M=qe(),i=se(),{isAiCfoAccessEnabled:h,onAskAiCfoClick:w}=Gt({isAiCfoOpen:m,setIsAiCfoOpen:o,mobileExploreReferrer:"Transaction categorization"}),A=s.useCallback(()=>{S===!0&&E!==!0&&t?.()},[t,S,E]),{areTenantIdsInSync:x}=$t(),g=(()=>{const l=F(J=>he(J)),z=qe(),{currentSelectedViewFetchState:K,currentSelectedView:V,selectedPeriod:O}=l,me=Le(V),ee=Le(K.fetchState),ve=s.useCallback(J=>{const Z=z.state?.referrer;V==="transaction_categorization"&&(l.selectedTransactionCategorizationTab==="review"?L.trackTransactionsReviewPage(O.month,O.year,l.transactionView.totalCountByTab.review,0,J,Z??null):L.trackTransactionsAutoCategorisedPage(O.month,O.year,l.transactionView.totalCountByTab.autoCategorized,0,J,Z??null)),V==="missing_receipts"&&L.trackMissingReceiptsPage(O.month,O.year,J,l.missingReceipts.transactions.length,Z??null),V==="je_schedules"&&L.trackMonthCloseScheduleListPage(O.month,O.year,J,l.jeSchedules.draftSchedules.length,l.jeSchedules.resolveSchedules.length,Z??null),V==="flux_analysis"&&L.trackFluxAnalysisPage(O.month,O.year,J,Uo(l.fluxAnalysis),Z??null),V==="month_end_insights"&&l.auditSummary?.auditScorePercentage!=null&&L.trackInsightsEmailPage(O.month,O.year,J,"draft",l.auditSummary.auditScorePercentage,null,Z??null)},[O,l]);return s.useEffect(()=>{ee===K.fetchState&&V===me||K.fetchState!=="Completed"||ve(!1)},[V,K.fetchState,me]),ve})(),T=So(),[_,e]=s.useState(!1),n=F(l=>dt(l)),a=F(l=>we(l)),[r,f]=s.useState(!1),[C,k]=s.useState(!1),[R,q]=s.useState([]),[b,G]=s.useState(void 0),W=s.useCallback(l=>{l!=null&&(m&&o(!1),v(),A()),G(l)},[A,m,v,o]),Oe=s.useCallback(()=>{v(),G(void 0),A(),w()},[A,w,v]),Se=s.useRef(m);s.useEffect(()=>{m===!0&&Se.current===!1&&(v(),G(void 0),A()),Se.current=m},[A,m,v]);const fe=s.useRef(I);s.useEffect(()=>{I===!0&&fe.current===!1&&(m&&o(!1),G(void 0),S===!0&&E!==!0&&t?.()),fe.current=I},[t,I,m,o,E,S]);const j=S===!0&&E!==!0,Ne=s.useRef(j);s.useEffect(()=>{j&&!Ne.current&&(m&&o(!1),v(),G(void 0)),Ne.current=j},[m,j,v,o]);const[Ye,Yt]=s.useState(!1),Ke=s.useRef(!1),{selectedTab:We}=rt(),{tenantEmailDomain:Kt}=rt(),[Fe,Ze]=s.useState(M.state?.message==="comingFromTransactionDetail"),He=M.state?.message==="comingFromOverview",Wt=fo(),Be=Ue.getSignedInUser(),{useDynamicConfig:Zt,useFeatureGate:Ie}=Lt(),{configValue:Ht}=Zt(Io.enableUncategorizedExpenseCategory),Q=Ht?.uncategorized_expense_category_enabled===!0,{isFeatureEnabled:Qe}=Ie(ge.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:ie}=Ie(ge.isMissingReceiptsBulkUploadEnabled),{isFeatureEnabled:Xe}=Ie(ge.isTransactionActivityEnabled),{isFeatureEnabled:Qt}=Ie(ge.isExpenseAutomationCommentingEnabled),Xt=s.useCallback(l=>{const z=Ge(l.view==="reconciliation"?"bill":"expense");d?.(l.entityId,z)},[d]),en=F(l=>_a(l,"common")),$=F(l=>he(l)),{monthEndCloseChecksView:Y,currentSelectedView:P,selectedPeriod:D,selectedTransactionCategorizationTab:ne,currentSelectedViewBackgroundRefreshFetchState:tn,currentSelectedViewFetchState:X,jeSchedules:_e,reconciliation:nn}=$;s.useEffect(()=>{P==="transaction_categorization"&&S!==!0||W(void 0)},[P,W,S]);const ke=s.useRef(null);s.useEffect(()=>{ke.current!==null?ke.current!==ne&&(ke.current=ne,P==="transaction_categorization"&&W(void 0)):ke.current=ne},[P,ne,W]);const an=F(l=>b==null?void 0:Ma(l.transactionState,b)),ae=an?.qboId,on=F(l=>ae==null?void 0:Va(l,ae));s.useEffect(()=>{ae!=null&&i(ja(ae))},[i,ae]);const{selectedAccountId:le}=nn,et=Le(_e.accountSettingsView.saveState.fetchState),sn=F(l=>za(l.accountState,l.accountListState,"accountList")),re=We!=null?La(We):P,cn=F(l=>l.entityAutoCompleteState.autoCompleteText.common);if(Jt({isDataReady:X.fetchState==="Completed"}),Be==null)throw Error("Can't access expense automation screen without signing in...");const tt=_t(D),de=Re(tt.start),ue=Re(tt.end);if(de==null||ue==null)throw Error(`Invalid start - ${de} and end - ${ue} period from given ${D}`);const ln=s.useCallback(()=>{f(!1)},[]),rn=s.useCallback(()=>{k(!0)},[]),dn=s.useCallback(l=>{q(l),k(!1)},[]),un=s.useCallback(()=>{q([])},[]),Ee=$.missingReceipts.bulkUpload.phase,nt=$.missingReceipts.bulkUpload.currentBatchId;s.useEffect(()=>{ie===!0&&P==="missing_receipts"&&Ee==="matching"&&nt!=null&&i(jt({cacheOverride:!0}))},[ie,P,Ee,nt,i]);const at=Be?.userId,mn=D.month,hn=D.year,ot=a?.tenantId;s.useEffect(()=>{P==="missing_receipts"&&ie!==!1&&Ee==="idle"&&at!=null&&ot!=null&&i($a())},[P,ie,Ee,at,ot,mn,hn,i]),s.useEffect(()=>{n.newVendorState?.vendorDetailLocalData?.vendorName!=null?e(!0):e(!1)},[n.newVendorState?.vendorDetailLocalData?.vendorName]),s.useEffect(()=>{re!=null&&P!==re&&i(Mt(re))},[re]),s.useEffect(()=>{Ye!==!1||X.fetchState!=="Completed"&&X.fetchState!=="Error"||!x||(Yt(!0),i(ft(!1,!1,Q)))},[Ye,X,x,Q]),s.useEffect(()=>{!He&&x&&(i(ft(!1,!1,Q)),i(ce(D,le,!1,!1)))},[D.month,D.year,x,Q]);const st=s.useCallback((l=!1,z=!1)=>{const K={start:de,end:ue};switch(P){case"transaction_categorization":i(pe(ne,K,l,!Fe,void 0,void 0,z,void 0,Q)),Ze(!1);break;case"flux_analysis":i(Te(D,l,z,null));break;case"month_end_insights":if(z===!1){const V=new Date(D.year,D.month,0),O=Ga(V.toDateString()).format(Nt.analytics.YYYYDashMMDashDDFormat);i(Ja(!0,a.companyId,a.tenantId,O)),i(Na(a.companyId,a.tenantId))}break;case"je_schedules":i(qa(K,z));break;case"missing_receipts":i(Vt(K,{amount:75,currencyCode:"USD",currencySymbol:"$"},l,z));break;default:i(ce(D,le,l,z))}},[P,de,ue,a.companyId,a.tenantId,ne,D,le,Fe,Ze,Q]);s.useEffect(()=>{P===re&&X.fetchState==="Not-Started"&&x&&st(!0)},[X,de,ue,a.companyId,a.tenantId,x]),s.useEffect(()=>{He||Fe||Ke.current||tn.fetchState==="In-Progress"||X.fetchState!=="Completed"||(Ke.current=!0,st(!0,!0))},[]),s.useEffect(()=>{Y.fetchState!=="In-Progress"&&Y.fetchState!=="Completed"&&i(Ce({tenantId:a.tenantId,period:D,refreshViewInBackground:!1}))},[Y.fetchState,a.tenantId]),s.useEffect(()=>{$.monthEndInsights?.previewMonthEndReportStatus?.fetchState==="Completed"?f(!0):f(!1)},[$.monthEndInsights?.previewMonthEndReportStatus?.fetchState]),s.useEffect(()=>{$.monthEndInsights?.sendMonthEndReportStatus?.fetchState==="Completed"&&x&&(i(Ce({tenantId:a.tenantId,period:D,refreshViewInBackground:!0})),i(Ya({companyId:a.companyId})),y("../"))},[$.monthEndInsights?.sendMonthEndReportStatus?.fetchState,a.tenantId,D,a.companyId,x]),s.useEffect(()=>{const l=setInterval(()=>{Y.fetchState!=="In-Progress"&&Y.fetchState==="Completed"&&i(Ce({tenantId:a.tenantId,period:D,refreshViewInBackground:!0}))},3e5);return()=>clearInterval(l)},[Y.fetchState,a.tenantId,D,i]),s.useEffect(()=>{const l=setInterval(()=>{P==="reconciliation"&&le==null&&$.reconciliation.fetchStatus.fetchState==="Completed"&&$.reconciliation.refreshStatus.fetchState!=="In-Progress"&&i(ce(D,void 0,!0,!0))},3e5);return()=>clearInterval(l)},[P,i,$.reconciliation.fetchStatus.fetchState,$.reconciliation.refreshStatus.fetchState,ce,le,D]);const pn=vt();s.useEffect(()=>{const l=(Y.monthEndCloseChecks?.monthEndCloseCheckList.find(z=>z.id==="month_end_insights")?.isDisabled??!1)&&!Qe;P!=="month_end_insights"||!l&&Y.monthEndCloseChecks?.reportEmailSentDate==null||y("../")},[P,Y.monthEndCloseChecks]);const gn=c===!0?u:U,Cn=c===!0||S===!0,Sn=c===!0?B:t;s.useEffect(()=>{et==="In-Progress"&&_e.accountSettingsView.saveState.fetchState==="Completed"&&i(It())},[et,_e.accountSettingsView.saveState.fetchState,It]);const{transactionId:ct,onSaveVendor:fn,onSaveSuccess:In,onCancel:kn,vendorViewDetails:En}=(({expenseAutomationViewSelector:l,closeDrawerHandler:z,currentSelectedView:K})=>{const V=se();let O,me,ee;const ve=vt(),J=l.transactionView;let Z=()=>{};const{transactions:vn,selectedTransactionId:oe,selectedTransactionLineId:ye,transactionLocalData:yn}=J;if(K==="transaction_categorization"){const Me=yn.find(te=>te.transactionId===oe),N=vn.find(te=>te.id===oe),it=ye!=null?Me?.transactionReviewLocalData?.lineItemById[ye]:void 0,lt=it?.account;me=it?.class?.classId,O=["Uncategorized Income","Uncategorized Expense"].includes(lt?.accountName??"")?void 0:lt?.accountId;const An=Ao(oe,N?.typeOfTransaction);N!=null&&An&&(ee={id:oe,type:Ge(N.typeOfTransaction)}),Z=()=>{if(oe!=null&&ye!=null&&N!=null){const te=J.transactionLocalData.find(be=>be.transactionId===oe)?.transactionReviewLocalData;if(te!=null&&N.lines!=null&&N.lines.length>0){const be=te.lineItemById[ye];let Ve=te.selectedEntity;if(Gn(N)||(Ve=be.selectedEntityLine),Ve!=null){const Tn=Ve,Pn={transactionId:{id:N.id,type:N.type},transaction:N,lineIds:N.lines.map(wn=>wn.id)??[]};V(Je(Tn,be.amount.amount,Pn,!1,!0,ve))}}}}}const bn=F(Me=>dt(Me,void 0,O,me));return{transactionId:ee,onSaveVendor:()=>{V(qn(ee,void 0,!1,!0))},onSaveSuccess:Z,onCancel:()=>{ee!=null&&V(zn({transactionId:ee})),V(Ln()),V($n()),z()},vendorViewDetails:bn}})({expenseAutomationViewSelector:$,closeDrawerHandler:()=>{e(!1)},currentSelectedView:P});return Wt?.loggedInUserRoleMap==null?Y.fetchState==="Error"?p.jsx(ko,{onGoHome:()=>y("../",{replace:!0}),onReload:()=>window.location.reload()}):p.jsx(qt,{fetchState:"In-Progress"}):p.jsxs(p.Fragment,{children:[p.jsx(Po,{isOpen:C,drawerLeftMargin:new Eo(0,0,300,650),onClose:()=>{k(!1)},children:p.jsx(Mo,{onClick:l=>l.stopPropagation(),children:p.jsx(Do,{companyId:a.companyId,closeCustomerRequestDrawer:()=>k(!1),addCustomerRequest:dn,resetCustomerRequest:un})})}),ct!=null&&_&&p.jsx(yo,{isOpen:_,transactionId:ct,onSaveVendor:fn,onSaveSuccess:In,onCancel:kn,vendorViewDetails:En}),p.jsx(Bo,{navigate:y,location:M,themeState:T,vendorSearchAutoCompleteData:{autoCompleteText:cn,entityAutoCompleteView:en},expenseAutomationViewSelector:$,isMissingReceiptsBulkUploadEnabled:ie,monthEndInsightsPreviewMode:r,monthEndInsightsCustomerRequestData:R,isRealtimeInsightsFeatureEnabled:Qe,isUncategorizedExpenseCategoryEnabled:Q,isCOTEnabled:pn,currentTenant:a,companyId:a.companyId,signedInUser:Be,isTransactionActivityEnabled:Xe,activityLogTransactionId:P==="transaction_categorization"?b:void 0,activityLogPanel:P==="transaction_categorization"&&Xe===!0&&b!=null?p.jsx(vo,{activityLogView:on,qboId:ae,onClose:()=>W(void 0),selectedTransactionId:b},String(b)):null,uncategorizedAccounts:sn,onClickCustomerRequest:rn,handleEditClick:ln,tenantEmailDomain:Kt,trackExpenseAutomationTabAnalytics:g,setActivityLogTransactionId:W,closeSidePanel:Sn,openTransactionPanel:d,sidePanelIsOpen:Cn,sidePanelIsFullView:c!==!0&&E,panelContent:gn,isAiCfoAccessEnabled:h,onAskAiCfoClick:Oe,isExpenseAutomationCommentingEnabled:Qt,onExpenseAutomationCommentingThreadClick:Xt,sidePanelListPercent:c===!0?66:void 0})]})})),Mo=De(Rn)`
22
- display: flex;
23
- min-height: 100%;
24
- flex-direction: column;
25
- `;function ls(){return p.jsxs(Un,{children:[p.jsx(je,{path:"*",element:p.jsx(wo,{})}),p.jsx(je,{path:"/:selectedTab/:selectedPeriod/*",element:p.jsx(_o,{})}),p.jsx(je,{path:"*",element:p.jsx(xn,{})})]})}export{ls as default};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-XXI3_E1y.js";import{a as r}from"./sentry-DrlL61Aq.js";import{Y as l,Z as p,$ as d,r as f}from"./index-B8scoeQA.js";import"./mui-CL-iXERd.js";import m from"./NotFoundScreen-C3kD1egL.js";import{j as b,u}from"./core-sRr8O2Ja.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]="2cf080bc-2454-4742-b1ce-34c3b2964144",e._sentryDebugIdIdentifier="sentry-dbid-2cf080bc-2454-4742-b1ce-34c3b2964144")}catch{}})();const D=()=>{const e=b(),t=u(),o=r.useCallback(()=>{window.open("https://www.zeni.ai/demo/request","_blank")},[]),c=r.useCallback(()=>{(()=>{const n=f(t.state?.pathnameStackToGoBack),i=n.poppedPathname??k();e(i,{state:{pathnameStackToGoBack:n.newStack}})})()},[]),a=l(t.pathname);return a!=null?s.jsx(p,{menuItem:d(a),onDemoClick:o,onGoBack:c}):s.jsx(m,{})},k=(e=2)=>{let t="../";for(let o=0;o<e;o++)t=`${t}../`;return t};export{D as F};
@@ -1,72 +0,0 @@
1
- import{j as a}from"./liveblocks-XXI3_E1y.js";import{l as b,k as x,j,u as y,h as Z,q as ee,g as A,N as ae,n as te,o as p}from"./core-sRr8O2Ja.js";import{Iy as S,Iz as k,IA as L,yU as $,yG as N,IB as C,IC as ne,ID as oe,yK as ie,eO as I,yR as se,yO as le}from"./zeni-epic-state-BlOBva0w.js";import{q as g,o as r,v as re,d as v,j as E,m as de,r as ce,S as me,s as F,a as pe,p as ue,w as he,x as xe,h as ge,B as fe,y as we,T as be,C as ye,X as Se,E as ke,F as ve}from"./index-B8scoeQA.js";import{n as c}from"./mui-CL-iXERd.js";import f from"./NotFoundScreen-C3kD1egL.js";import{a as P}from"./sentry-DrlL61Aq.js";import"./recharts-z_5Sq5F0.js";import"./analytics-zC4vJBLG.js";import"./plaid-BUQgPXGQ.js";import"./dnd-CZEKCPsp.js";import"./stripe-DMRn4zHo.js";import"./lottie-CbW-xVFB.js";import"./lexical-CtDGfH8b.js";import"./pdf-BVi8zWaH.js";import"./utils-DCRx3jP7.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]="830121c5-ad75-4a69-a05a-063d4f56865b",e._sentryDebugIdIdentifier="sentry-dbid-830121c5-ad75-4a69-a05a-063d4f56865b")}catch{}})();const Ie=c.div`
2
- display: flex;
3
- height: 100%;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
10
- `,je=x(function(e){const t=S(e),n=k(e),{companyName:o}=t;return{companyName:o,isDisabled:t.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,magicLinkViewState:t}},function(e,t){const{vendorId:n,billId:o}=t;return{onFetchBankName:i=>{e(N(i))},onSaveHandler:i=>{v.trackBillPayMagicLinkSubmitBankAccountDetails(o),e($(i,"standard",n,o))},onACHDetailsUpdated:i=>{const{bankAccountSection:l}=i;e(L({data:l}))}}})(re);function z(){const e=g(),{vendorId:t,billId:n}=b();return t==null||n==null?a.jsx(f,{}):a.jsx(a.Fragment,{children:a.jsx(Ie,{windowSize:e,children:a.jsx(je,{vendorId:t,billId:n})})})}const $e=c.div`
11
- display: flex;
12
- height: 100vh;
13
- width: 100%;
14
- flex: 1 1 auto;
15
- flex-direction: column;
16
- align-items: center;
17
- background-color: ${e=>e.theme.colors.grey4};
18
- box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
19
- `,Ce=x(function(e,t){const{isSubPage:n}=t;return{addressToEdit:C(e),googleAPIKey:E.googleMapsAPIKey,isSubPage:n}},function(e,t){const{navigate:n,location:o}=t,i=()=>{const l=ce(o.state?.pathnameStackToGoBack),s=l.poppedPathname??De();n(s,{state:{pathnameStackToGoBack:l.newStack}})};return{onSubmitHandler:l=>{const s=Ae(l);e(ne({addressToCreate:s})),i()},onCancel:()=>{i()}}})(de);function Be({isSubPage:e}){const t=j(),n=y(),o=g();return a.jsx(a.Fragment,{children:a.jsx($e,{windowSize:o,children:a.jsx(Ce,{location:n,navigate:t,isSubPage:e===!0,googleAPIKey:E.googleMapsAPIKey})})})}const De=(e=2)=>{let t="../";for(let n=0;n<e;n++)t=`${t}../`;return t},Ae=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng}),Pe=c.div`
20
- display: flex;
21
- height: 100%;
22
- width: 100%;
23
- flex: 1 1 auto;
24
- flex-direction: column;
25
- align-items: center;
26
- background-color: ${e=>e.theme.colors.grey4};
27
- box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
28
- `,ze=x(function(e){const t=S(e),n=k(e),o=C(e),{companyName:i}=t;return{companyName:i,isDisabled:t.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,mailingAddressDetails:o,magicLinkViewState:t}},function(e,t){const{navigate:n,location:o,vendorId:i,billId:l}=t;return{onFetchBankName:s=>{e(N(s))},onSaveHandler:s=>{v.trackBillPayMagicLinkSubmitBankAccountDetails(l),e($(s,"us-domestic",i,l))},onWireDetailsUpdated:s=>{const{bankAccountSection:d}=s;e(L({data:d}))},onAddressClick:()=>{const s=o.pathname.replace("us-domestic","address"),d=F(o.state?.pathnameStackToGoBack,o.pathname);n(s,{state:{pathnameStackToGoBack:d}})}}})(me);function Le(){const e=j(),t=y(),n=g(),{vendorId:o,billId:i}=b();return o==null||i==null?a.jsx(f,{}):a.jsx(a.Fragment,{children:a.jsx(Pe,{windowSize:n,children:a.jsx(ze,{location:t,navigate:e,vendorId:o,billId:i})})})}const Ne=c.div`
29
- display: flex;
30
- height: 100%;
31
- width: 100%;
32
- flex: 1 1 auto;
33
- flex-direction: column;
34
- align-items: center;
35
- background-color: ${e=>e.theme.colors.grey4};
36
- box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
37
- `,Ee=x(function(e){const t=S(e),n=k(e),o=C(e),{companyName:i}=t;return{companyName:i,isDisabled:t.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,mailingAddressDetails:o,magicLinkViewState:t}},function(e,t){const{navigate:n,location:o,vendorId:i,billId:l}=t;return{onFetchBankNameBySwift:s=>{e(ie(s))},onSaveHandler:s=>{v.trackBillPayMagicLinkSubmitBankAccountDetails(l),e($(s,"international",i,l,t.isLocalCurrencyEnabled))},onBankDetailsUpdated:s=>{const{internationalWireSwiftAccountSection:d}=s;e(oe({data:d}))},onAddressClick:()=>{const s=o.pathname.replace("international","address"),d=F(o.state?.pathnameStackToGoBack,o.pathname);n(s,{state:{pathnameStackToGoBack:d}})}}})(he);function Fe(){const e=j(),t=y(),n=g(),{vendorId:o,billId:i}=b(),{useFeatureGate:l}=pe(),{isFeatureEnabled:s}=l(ue.isBillPayLocalCurrencyFeatureEnabled);return o==null||i==null?a.jsx(f,{}):a.jsx(Ne,{windowSize:n,children:a.jsx(Ee,{location:t,navigate:e,vendorId:o,billId:i,isLocalCurrencyEnabled:s})})}const Te={containerWidth:new ke(100,58)},Ge=c(ye)`
38
- width: ${r.sp4};
39
- height: ${r.sp4};
40
- margin-bottom: ${r.sp3};
41
- margin-top: ${r.sp3};
42
- margin-left: ${r.sp8};
43
- cursor: pointer;
44
- position: absolute;
45
- color: ${e=>e.theme.colors.brandColorJade};
46
- `,He=c.div`
47
- display: flex;
48
- height: 100vh;
49
- flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
50
- width: 100vw;
51
- overflow-y: scroll;
52
- background-color: ${e=>e.theme.colors.grey4};
53
- `,Ke=c.div`
54
- display: flex;
55
- flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
56
- flex-direction: column;
57
- width: ${e=>`${Te.containerWidth.value(e.windowSize)}%`};
58
- ${e=>e.windowSize!=="small"?"overflow: auto;":""}
59
- box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
60
- padding-top: ${e=>e.windowSize!=="small"?r.sp2:"0px"};
61
- `,Me=c.div`
62
- display: flex;
63
- flex-direction: column;
64
- align-items: center;
65
- justify-content: center;
66
- padding: ${e=>e.windowSize==="small"?r.sp3:`62px ${r.sp6} ${r.sp9} ${r.sp8}`};
67
- height: ${e=>e.windowSize==="small"?"490px":"auto"};
68
- overflow: ${e=>e.windowSize==="small"?"unset":"hidden"};
69
- width: ${e=>e.windowSize=="small"?"auto":"42%"};
70
- background-color: ${e=>e.windowSize==="small"?e.theme.colors.grey4:e.theme.colors.background};
71
- margin-top: ${e=>e.windowSize==="small"?e.isAddressPage?"0px":"186px":"unset"};
72
- `,Ve=x(function(e,t){return{file:t.file,type:t.type}})(Se);function h({appContent:e}){const t=Z(),n=y(),{tenantEmailDomain:o,vendorId:i,billId:l}=b(),[s]=ee(),d=s.get("token"),T=n.pathname.includes("address"),w=g(),G=xe(),B=ge(),H=()=>{G.toggle()},K=A(u=>S(u)),M=A(u=>k(u)),{authParams:V,fetchState:m,billAttachment:U,billFetchState:D,companyName:W,currencySymbol:_,amount:O}=K,{tenantId:q,userId:J,sessionId:R}=V,{fetchState:X,internationalBankAccountCreateStatus:Q}=M;return P.useEffect(()=>{I(),m==="Not-Started"&&i!=null&&o!=null&&d!=null&&t(se(i,o,d))},[]),P.useEffect(()=>{m==="Completed"&&(I(J,R,q),l!=null&&t(le(l)))},[m]),m==="Error"?a.jsx(f,{}):X==="Completed"||Q.fetchState==="Completed"?(I(),a.jsx(ae,{to:"../../../../../../../bank/account/save/success",replace:!0,relative:"path"})):m==="In-Progress"?a.jsx(fe,{fetchState:m,style:{height:"100vh",backgroundColor:B.colors.grey5,boxShadow:`0px 2px ${r.sp1} ${B.colors.dropShadowNormal}`}}):a.jsxs(a.Fragment,{children:[m==="Completed"&&D==="Completed"&&a.jsx(we,{analytics:v,onLoad:u=>(Y=>Y.trackBillPayMagicLinkPageLoad(o??"",i??"",W,l??"",Ue(n.pathname),_,O))(u)}),a.jsxs(He,{windowSize:w,children:[w!=="small"?a.jsx(Ge,{onClick:H}):null,a.jsx(Me,{windowSize:w,isAddressPage:T,children:D==="In-Progress"?a.jsx(be,{size:"ExtraLarge",start:!0}):a.jsx(Ve,{file:U,type:"bill"})}),a.jsx(Ke,{windowSize:w,children:e})]})]})}const Ue=e=>`${e.split("/").at(-2)}_${e.split("/").at(-1)}`;function We(){return a.jsx(ve,{})}function la(){return a.jsxs(te,{children:[a.jsx(p,{path:"bank/account/save/success",element:a.jsx(We,{})}),a.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/ach/standard",element:a.jsx(h,{appContent:a.jsx(z,{})})}),a.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/ach/same-day",element:a.jsx(h,{appContent:a.jsx(z,{})})}),a.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/address",element:a.jsx(h,{appContent:a.jsx(Be,{isSubPage:!0})})}),a.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/us-domestic",element:a.jsx(h,{appContent:a.jsx(Le,{})})}),a.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/international",element:a.jsx(h,{appContent:a.jsx(Fe,{})})}),a.jsx(p,{path:"*",element:a.jsx(f,{})})]})}export{la as default};
@@ -1,12 +0,0 @@
1
- import{j as u}from"./liveblocks-XXI3_E1y.js";import{a as g}from"./sentry-DrlL61Aq.js";import{h as O,u as _,j as w,q as M,g as l,N as T}from"./core-sRr8O2Ja.js";import{z as r,h as P,D as V,e as A,d as N,f as q,k as G,T as R,i as W}from"./index-B8scoeQA.js";import{eN as $,Ij as B,It as H,Ik as J,eO as K,fh as Q,Ip as X,fG as Y,cS as Z,Iu as ee,Iv as te}from"./zeni-epic-state-BlOBva0w.js";import{n as ne}from"./mui-CL-iXERd.js";import{u as se}from"./useDeviceId-D2RgNqNP.js";import{f as ae}from"./analyticsHelper-CYuyeE-z.js";import{t as ie}from"./getLocaleForTenant-CUETA9qT.js";import"./recharts-z_5Sq5F0.js";import"./analytics-zC4vJBLG.js";import"./plaid-BUQgPXGQ.js";import"./dnd-CZEKCPsp.js";import"./stripe-DMRn4zHo.js";import"./lottie-CbW-xVFB.js";import"./lexical-CtDGfH8b.js";import"./pdf-BVi8zWaH.js";import"./utils-DCRx3jP7.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]="8bf9a652-4191-4e66-90ec-29491b1484da",t._sentryDebugIdIdentifier="sentry-dbid-8bf9a652-4191-4e66-90ec-29491b1484da")}catch{}})();const C=(t,a)=>t!=null&&t.length>0&&a==="magic_links";function Ce(){const t=O(),a=_(),m=w(),[b]=M(),n=b.get("token"),p=b.get("stytch_token_type"),f=r.getMagicLinkCodeVerifier(),i=se(),{otpChallenge:d,twoFAPhoneNumber:D,magicLinkEmail:c,verifyDeviceFetchState:x,resendVerifyDeviceOTPFetchState:z}=l(e=>e.tenantState),I=l(e=>e.tenantState.fetchState),y=l(e=>e.tenantState.activeTenantFetchState.fetchState),S=l(e=>e.tenantState.signInState),h=l(e=>e.tenantState.magicLinkSignInFetchState.fetchState),s=l(e=>e.tenantState.loggedInUser),o=l(e=>$(e)),k=l(e=>B(e)),E=r.getSignedInUser(),v=P().mode;g.useEffect(()=>{s?.zeniSessionId==null&&n!=null&&C(n,p)&&i!=null&&f!=null&&(r.saveMagicLinkTriggered(n),t(H(n,i,f)))},[n,p,t,i,f,s?.zeniSessionId]),g.useEffect(()=>{S!=="In-Progress"||I!=="Completed"&&y!=="Completed"||s?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(s,s.zeniSessionId),r.saveSignedInUserTenants(J(k.tenantsInOrder),s.zeniSessionId),K(s.userId,s.zeniSessionId,o.tenantId),t(Q(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(X("Completed")),V.updateAppLocaleID(ie(o)),ae(s,o,v,void 0,k.tenantsInOrder),Y().then(()=>{const e=W();e!=null&&A(e)}),setTimeout(()=>{N.trackLogin(q.Event.loginSuccess,"email",Z(o.productSettings))},2e3))},[S,I,y,s,o,k,v,a.state,t]);const j=g.useCallback(()=>{m("/signin/auth")},[m]),U=g.useCallback(()=>{i!=null&&d!=null&&c!=null&&t(ee(i,c,d))},[i,d,t,c]),F=g.useCallback(e=>{i!=null&&n!=null&&c!=null&&d!=null&&t(te(e,i,c,d))},[i,n,t,c,d]);if(h==="Completed"&&d!=null)return u.jsx(G,{phoneNumber:D,verifyOtpFetchState:x.fetchState,resendVerifyDeviceOTPFetchState:z,onResendOtp:U,onVerifyOtp:F,onCancelVerifyDevice:j});if(S==="In-Progress"&&I==="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)||f==null||h==="Error"){const e=a.state?.origin??"/",L=n!=null&&r.getLastUsedMagicLinkToken()===n;return u.jsx(T,{to:e,state:{...a.state,origin:"",magicLinkAlreadyUsed:L,magicLinkExpired:!L&&(r.isMagicLinkTriggered(n??"")||h==="Error"&&s?.zeniSessionId==null)}})}return u.jsx(oe,{"data-testid":"smooth-loader",children:u.jsx(R,{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 U}from"./liveblocks-XXI3_E1y.js";import{a as c}from"./sentry-DrlL61Aq.js";import{h as pe,g as t,l as We,u as Xe,j as qe,i as M}from"./core-sRr8O2Ja.js";import{eN as he,eU as Je,eV as Se,eP as Ke,bn as Qe,f2 as ea,eW as aa,eX as ta,eZ as na,f0 as sa,fa as oa,f1 as g,f4 as ia,f5 as ue,f8 as ra,f6 as da,f7 as la,f9 as ca,cH as ua,fc as fa,cN as ma,bv as ba,eM as pa,fh as ha,fi as Sa,fg as ga}from"./zeni-epic-state-BlOBva0w.js";import{a1 as Ea,a2 as ka,x as Ca,a as ya,z as k,a3 as Ia,u as Ta,p as r,a4 as wa,a5 as Aa,A as Fa,c as _a,a6 as Da,Y as va,a7 as $a,a8 as Ba,a9 as fe,aa as me,L as Ga,ab as xa,ac as be,d as R,s as A,ad as N,ae as Ma}from"./index-B8scoeQA.js";import{D as Ra}from"./mui-CL-iXERd.js";(function(){try{var f=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new f.Error().stack;d&&(f._sentryDebugIds=f._sentryDebugIds||{},f._sentryDebugIds[d]="9a1b3699-87a7-4130-940a-424fae808f6e",f._sentryDebugIdIdentifier="sentry-dbid-9a1b3699-87a7-4130-940a-424fae808f6e")}catch{}})();const Na=Ea(({isAppContentDrawerOpen:f,handleDrawerToggle:d})=>{const{tenantEmailDomain:n}=We(),a=Xe(),C=Ca(),o=qe(),V=Ke(),m=pe(),{useFeatureGate:i}=ya(),P=k.getSignedInUser(),F=Qe(P),s=t(e=>he(e)),L=t(e=>ea(e)),j=L.uiState.currentChatSessionId,y=Ia(),{setLoading:ge}=Ta(),[_,O]=c.useState(void 0),D=M("/:tenantEmailDomain/dashboard")!==null,z=M("/:tenantEmailDomain/reports")!==null,I=M("/:tenantEmailDomain/onboarding/*")!==null,{isFeatureEnabled:Y}=i(r.isDepositAccountsFeatureEnabled),{isFeatureEnabled:Ee}=i(r.isChargeCardFeatureEnabled),{isFeatureEnabled:H}=i(r.isDebitCardFeatureEnabled),ke=wa(s,Ee,H),{isFeatureEnabled:Ce}=i(r.isSettingsFeatureEnabled),Z=t(e=>aa(e)),{isFeatureEnabled:T}=i(r.isReferralFeatureEnabled),v=t(e=>ta(e));c.useEffect(()=>{y&&T&&!I&&v.fetchState==="Not-Started"&&m(na(!0))},[y,T,v.fetchState,I]);const h=k.getSignedInUser(),$=t(e=>e.tenantState),ye=t(e=>$.fetchState==="Completed"?sa(e):[]),E=t(e=>e.expenseAutomationViewState.selectedPeriodByTenantId),{isFeatureEnabled:Ie}=i(r.isApAgingFeatureEnabled),{isFeatureEnabled:Te}=i(r.isArAgingFeatureEnabled),{isFeatureEnabled:W}=i(r.isExpenseAutomationEnabled),{isFeatureEnabled:X}=i(r.isExpenseAutomationEnabledV2),q=X||W&&F,{isFeatureEnabled:we}=i(r.isDashboardSidebarHalloweenAnimationEnabled),{isFeatureEnabled:Ae}=i(r.isDashboardSidebarThanksGivingAnimationEnabled),{isFeatureEnabled:Fe}=i(r.isDashboardSidebarChristmasAnimationEnabled),{isFeatureEnabled:_e}=i(r.isDashboardSidebarNewYearAnimationEnabled),{isFeatureEnabled:De}=i(r.isTreasuryEnabled),{isFeatureEnabled:ve}=i(r.isTaskManagerCustomerUserAccessEnabled),$e=F||!F&&ve,Be=s.company!=null&&oa(s.company),w=De&&Be,Ge=t(e=>g(e).totalUnreadCount),xe=t(e=>g(e).reducedFetchCountState),J=t(e=>g(e).notificationDetailsByTab.tasks.uiState.unreadCount),K=t(e=>g(e).notificationDetailsByTab.comments.uiState.unreadCount),Me=t(e=>g(e).notificationDetailsByTab.tasks.fetchCountState),B=t(e=>g(e).notificationDetailsByTab.comments.fetchCountState),{inboxNotifications:Q,isLoading:ee,isFetchingMore:ae,hasFetchedAll:te,fetchMore:Re}=Aa();c.useEffect(()=>{const e=setTimeout(()=>Re?.(),0);return()=>clearTimeout(e)}),c.useEffect(()=>{if(ee===!1&&ae===!1&&te===!0)if(s?.companyId!=null&&Q!=null){const e=`dashboard_${s.companyId}`;O(Q.filter(u=>u.roomId===e&&u.readAt==null).length)}else O(0)},[ee,ae,te]),c.useEffect(()=>{y&&!I&&Me.fetchState==="Not-Started"&&V.tenantId!=null&&m(ia("task_manager","dashboard"))},[y,V.tenantId]),c.useEffect(()=>{I||B.fetchState!=="Not-Started"||m(ue({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))},[]),c.useEffect(()=>{_!=null&&B.fetchState==="In-Progress"&&(m(ue({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),m(Se({unreadCount:_},"comments")))},[_,B.fetchState]);const Ne={fetchStatus:xe,count:Ge},ne=n!=null?k.getSignedInUserTenant(n):null,se=t(e=>ne?.tenantId!=null?ra(e,ne.tenantId):void 0),S=[];Ie===!1&&S.push("accounts_payable_aging"),Te===!1&&S.push("accounts_receivable_aging"),Y===!1&&S.push("zeni_accounts_promo_card"),T===!1&&S.push("rewards_card"),q===!1&&S.push("expense_automation_card");const Ue=Fa(),oe=t(e=>da(e,S,h,X,W,w).fetchState),ie=t(e=>la(e).fetchState),Ve=D&&(oe==="Completed"||oe==="Error")||z&&(ie==="Completed"||ie==="Error")||!D&&!z?void 0:"disabled",Pe=c.useMemo(()=>ca(s.userRole),[s.userRole]),Le=ua(Pe),je=s?.rewardsLastViewedTime==null,Oe=h?.userEmail!=null&&Z.fetchState==="Completed"&&fa(Z.notificationSettings,h.userEmail,H,s),re=_a(),ze=re&&Da(a),de=ma(Ue?.loggedInUserRoleMap),le=s.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,G=c.useCallback(()=>w&&de&&!k.getTreasuryPopupSeen(n??"")&&le===!1&&va(a.pathname)!=="treasury",[w,de,le,a.pathname,n]),[Ye,ce]=c.useState(G);c.useEffect(()=>{ce(G())},[G]);const He=t(e=>e.treasurySetupViewState.treasuryFundsDetails).fundsDetails,Ze=$a(He);return U.jsx(Ra,{container:window.document.body,variant:"temporary",open:f,onClose:()=>d(!1),PaperProps:{sx:{width:240,zIndex:8,borderRight:"none",backgroundImage:"none"}},ModalProps:{keepMounted:!0},children:U.jsx(Ba,{signedInUser:P,currentTenantId:$.currentTenantId??"",tenants:$.fetchState==="Completed"?ye:se!=null?[se]:[],currentTenant:s,isTenantDropdownDisabled:Ve,isSettings:me(a),isSettingsFeatureEnabled:Ce,isVendorsTabVisible:Le,isZeniAccountEnabled:Y,isChargeCardEnabled:ke,isTreasuryEnabled:w,treasuryYieldPercentage:Ze,isTreasuryPopupVisible:Ye,isNotificationsTabVisible:Oe,notificationCountDetails:Ne,isExpenseAutomationEnabledForUser:q&&ba(s.userRole)===!1,selectedMenu:fe(a),rewardsConfiguration:{isRewardsTabVisible:T,isRewardsAnimated:je,rewardsPlan:v.rewardsPlan},isAiCfoAccessEnabled:re,onNotificationIconClick:()=>{d(!1);let e=J===0&&K>0?"notifications/comments":"notifications/tasks";me(a)&&(e=J===0&&K>0?"../../notifications/comments":"../../notifications/tasks");const u=A(a.state?.pathnameStackToGoBack,a.pathname);o(e,{state:{pathnameStackToGoBack:u}})},handleCockpitClick:()=>{window.open("/cockpit")},handleLogOutClick:()=>{d(!1);const e=A(a.state?.pathnameStackToGoBack,a.pathname);o("/signout",{replace:!0,state:{pathnameStackToGoBack:e,message:"logout"}})},handleMenuChange:e=>{if(d(!1),e.type==="ai_cfo"){const p=A(a.state?.pathnameStackToGoBack,a.pathname);return R.trackAICFOChatScreenStateChanged("viewed","left_menu",j??null,null),void o(`/${n}/ai-cfo/explore`,{state:{pathnameStackToGoBack:p,referrer:"Sidebar"}})}const u=A(a.state?.pathnameStackToGoBack,a.pathname),l=e.type,b=N(l)&&l!=="command_center";if(N(e.type)&&E[s.tenantId]!=null&&R.trackMonthEndCloseClicked(E[s.tenantId].month,E[s.tenantId].year,"Sidebar"),b&&E[s.tenantId]!=null){const p=E[s.tenantId];return void o(`/${n}/month_end_close_checks/review/${e.type}/${p.month}-${p.year}`,{state:{pathnameStackToGoBack:u,referrer:"Sidebar"}})}const x=Ma(e.type);be(e.type)?(j!=null&&m(ga()),o(`/${n}/ai-cfo/${e.type}`,{state:{pathnameStackToGoBack:u.slice(0,-1),referrer:"Sidebar"}})):o(`/${n}/${x}`,{state:{pathnameStackToGoBack:u,referrer:"Sidebar"}})},handleMyProfileClick:()=>{d(!1),o(`/${n}/settings/my_profile`)},handleReferralsClick:()=>{d(!1),o(`/${n}/rewards`)},handleBackClick:()=>{o(`/${n}/dashboard`)},handleTenantSelect:e=>{ge(Ga.TENANT_SWITCHING),d(!1);const u=e.tenantEmailDomain,l=fe(a);let b=`/${encodeURIComponent(u)}/`;const x=N(l);l==="home"?b+="dashboard":l==="users_and_roles"?b+="people":xa(l)?b+="settings/my_profile":be(l)?b+=`ai-cfo/${l}`:b+=l==="task_checklist"?"tasks":x?"month_end_close_checks/review":encodeURIComponent(l),o(b,{replace:!0}),h!=null&&(m(ha(e.tenantId)),m(Sa(h.userId,e.tenantId,h.zeniSessionId)));const p=e;R.trackCompanySwitch(p.companyId,p.companyName,p.userRole)},handlePopupClose:()=>{k.saveTreasuryPopupSeen(n??"",!0),ce(!1)},onZeniLogoClick:()=>{C.toggle()},isAiCfo:ze,aiCfoView:L,isOnDashboard:D,updateCurrentChatSessionId:e=>{m(pa({sessionId:e,agentId:"controller"})),o(`/${n}/ai-cfo/${e}`,{state:{...a.state}})},halloweenAnimationEnabled:we,isTaskManagerAccessEnabled:$e,thanksGivingAnimationEnabled:Ae,christmasAnimationEnabled:Fe,newYearAnimationEnabled:_e})})}),za=f=>{const d=pe(),n=t(C=>he(C)),a={events:n.userRoleId!=null?[`private-${n.userRoleId}.dashboard-user-notification`]:[],eventCallback:(C,o)=>{ka(o)&&Je(o.mode)==="dashboard"&&d(Se({unreadCount:o.data.unread},"tasks"))}};return U.jsx(Na,{...f,...a})};export{za as M};
@@ -1 +0,0 @@
1
- import{j as e}from"./liveblocks-XXI3_E1y.js";import{j as r,k as i}from"./core-sRr8O2Ja.js";import{W as n}from"./index-B8scoeQA.js";import"./mui-CL-iXERd.js";import"./sentry-DrlL61Aq.js";import"./zeni-epic-state-BlOBva0w.js";import"./recharts-z_5Sq5F0.js";import"./analytics-zC4vJBLG.js";import"./plaid-BUQgPXGQ.js";import"./dnd-CZEKCPsp.js";import"./stripe-DMRn4zHo.js";import"./lottie-CbW-xVFB.js";import"./lexical-CtDGfH8b.js";import"./pdf-BVi8zWaH.js";import"./utils-DCRx3jP7.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]="fe0dc2e3-d6a3-4690-8e18-122b6c1ede12",o._sentryDebugIdIdentifier="sentry-dbid-fe0dc2e3-d6a3-4690-8e18-122b6c1ede12")}catch{}})();const d=i(null,function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}})(n);function h(){const o=r();return e.jsx(d,{navigate:o})}export{h as default};
@@ -1 +0,0 @@
1
- import{j as n}from"./liveblocks-XXI3_E1y.js";import{j as K,h as Z,u as H,l as Q,g as d,k as X,n as ee,o as C}from"./core-sRr8O2Ja.js";import{eN as M,qf as v,pP as ae,J8 as $,pK as y,bv as te,bn as se,bR as oe,pL as re,J9 as ne,IV as T,dB as ie,tC as ce,Ja as le,tZ as de,eT as me,eR as fe}from"./zeni-epic-state-BlOBva0w.js";import{K as pe,z as ue,M as he,A as ge,a as w,p as N,y as Fe,d as B,aj as be,s as Ie}from"./index-B8scoeQA.js";import"./mui-CL-iXERd.js";import Ce from"./NotFoundScreen-C3kD1egL.js";import{F as Te}from"./FeaturePreviewScreen-CCmVMubZ.js";import{a as h}from"./sentry-DrlL61Aq.js";import{u as ye}from"./useAskAiCfoHostNavButtonProps-Bt4hMVmk.js";import{c as Ae}from"./useFetchSuggestedQuestionsWhenReady-B6OFe2QI.js";import{u as Se}from"./useInitialThreadRequest-oa3yZUCF.js";import{t as ke}from"./routePaths-0yQK7ZVo.js";import{M as xe}from"./MobileAppDrawer-C7qAXiy5.js";import"./recharts-z_5Sq5F0.js";import"./analytics-zC4vJBLG.js";import"./plaid-BUQgPXGQ.js";import"./dnd-CZEKCPsp.js";import"./stripe-DMRn4zHo.js";import"./lottie-CbW-xVFB.js";import"./lexical-CtDGfH8b.js";import"./pdf-BVi8zWaH.js";import"./utils-DCRx3jP7.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new s.Error().stack;a&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[a]="604d62c1-c027-45ce-a8a6-2bca61ff094b",s._sentryDebugIdIdentifier="sentry-dbid-604d62c1-c027-45ce-a8a6-2bca61ff094b")}catch{}})();const A=(s,a,e,o)=>{if(s!=a){const r=o??"";s!=null&&s.length>0?e(`../${a}${r}`,{replace:!0}):e(`${a}${r}`,{replace:!0})}},De=X(function(s){const a=ne(s),e={},o=a.pandLReportWithForecast.uiState.nodeCollapseState;return Object.keys(o).forEach(r=>{e[r]=o[r]===!1}),{selectedTimeframe:a.selectedTimeframe,isForecastVsActualOn:a.isForecastVsActualOn,compareMode:a.compareMode,forecastList:a.forecastList,selectedForecast:a.selectedForecast,pandLreport:a.pandLReportWithForecast,scrollPosition:a.pandLReportWithForecast.uiState.scrollPosition,nodeOpenStatus:e,type:"name+balances_forecast",analytics:B}},function(s,a){return{onForecastSelectionChanged:(e,o)=>{s($(e,o)),a.isPandLReportFetched(e)||s(y(e)),A(a.forecastIdFromUrlPath,e,a.navigate)},onTimeframeChanged:e=>{s(de(e))},onForecastVsActualsCompareToggle:e=>{s(le(e)),s(T({forecastId:a.forecastIdFromUrlPath,scrollPosition:{scrollLeft:0,scrollTop:0}}))},onCompareModeChanged:e=>{s(ce(a.firstMonthOfFY,e,0,[]))},onAccountBalanceClick:a.hasTransactionAccess!==!0?void 0:(e,o)=>{let r,i;const g=e.accountName===""?e.accountDescription:e.accountName;if(o.balanceTimeFrame==="month"||o.balanceTimeFrame==="quarter"?(r=o.balanceTimeFrame,i=ie(o)):o.balanceTimeFrame==="year"?(r="quarter",i={startDate:o.endDate.startOf("quarter"),endDate:o.endDate}):console.error(`timeframe ${o.balanceTimeFrame} is not supported`),i!=null&&r!=null){const f=ke(a.tenantEmailDomain,e.accountId,e.accountType,g,r,i),p=Ie(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(f,{state:{pathnameStackToGoBack:p,referrer:"Forecast"}})}},onNodeCollapseToggled:(e,o)=>{s(T({forecastId:a.forecastIdFromUrlPath,nodeCollapseState:{nodeId:e,isCollapsed:o===!1}}))},onTableScroll:e=>{s(T({forecastId:a.forecastIdFromUrlPath,scrollPosition:e}))},onBackClick:()=>{a.navigate("../../")}}})(be);function U(){const{isAiCfoOpen:s,setIsAiCfoOpen:a}=pe(),e=K(),o=Z(),r=H(),{forecastId:i,tenantEmailDomain:g}=Q(),[f,p]=h.useState(!1),[F,S]=h.useState(!1),u=ue.getSignedInUser(),k=d(t=>M(t)),q=k.company?.companyInfo.firstMonthOfFY??1,c=d(t=>v(t.forecastState,t.forecastListState)),l=d(t=>t.forecastListState.fetchState==="Completed"),x=d(t=>t.profitAndLossState),D=d(t=>t.reportUIOptionsState.selectedForecast),j=t=>x.pandLByForecastID[t]!=null&&re(t,x).reducedAllFetchState.fetchState==="Completed",{areTenantIdsInSync:b}=he();Ae({isDataReady:l});const{isAiCfoAccessEnabled:G,onAskAiCfoClick:_}=ye({isAiCfoOpen:s,setIsAiCfoOpen:a,mobileExploreReferrer:"Forecast"});h.useEffect(()=>{if(!f&&b)p(!0),l||o(ae());else if(l&&!F){S(!0);const t=((m,R,P)=>R!=null?m.forecasts.findIndex(I=>I.id===R):P!=null?m.forecasts.findIndex(I=>I.id===P):m.forecasts.length>0?0:-1)(c,i,D?.id);t===-1&&i!=null?e("page-not-found",{replace:!0}):t!==-1&&t!=D?.index?(o($(c.forecasts[t].id,t)),A(i,c.forecasts[t].id,e,r.search)):i==null&&t!==-1&&A(void 0,c.forecasts[t].id,e,r.search),t!==-1&&!j(c.forecasts[t].id)&&b&&o(y(c.forecasts[t].id))}},[f,p,o,l,c,F,S,v,y,b]);const L=ge(),V=L?.loggedInUserRole!=null&&te(L.loggedInUserRole),{useFeatureGate:W}=w(),{isFeatureEnabled:E}=W(N.isReportsCommentingEnabled),Y=Se(E?k?.companyId:void 0,{clearParams:l&&F}),[J,z]=h.useState(!1),O=t=>{z(t)};return n.jsxs(n.Fragment,{children:[l?n.jsx(Fe,{analytics:B,onLoad:t=>(m=>m.trackForecast())(t)}):null,n.jsx(xe,{isAppContentDrawerOpen:J,handleDrawerToggle:O}),n.jsx(De,{firstMonthOfFY:q,tenantEmailDomain:g,forecastIdFromUrlPath:i,navigate:e,location:r,isPandLReportFetched:j,meetingUrl:oe(`https://meetings.hubspot.com/svitlana-grankovska?firstname=${u?.firstName}&lastname=${u?.lastName}&email=${u?.userEmail}`),hasTransactionAccess:V,isAiCfoAccessEnabled:G,onAskAiCfoClick:_,isReportsCommentingEnabled:E,isZeniUser:se(u),initialOpenThreadRequest:Y,onClickMenuIcon:()=>{O(!0)}})]})}function Ze(){const s=d(i=>M(i)),{useFeatureGate:a}=w(),{isFeatureEnabled:e}=a(N.isDebitCardFeatureEnabled),o=me(e,s),r=fe(s);return o===!0||r===!0?n.jsx(Te,{}):n.jsxs(ee,{children:[n.jsx(C,{path:"/",element:n.jsx(U,{})}),n.jsx(C,{path:"/:forecastId",element:n.jsx(U,{})}),n.jsx(C,{path:"/:forecastId/*",element:n.jsx(Ce,{})})]})}export{Ze as PandLWithForecastRoutes,Ze as default};
@@ -1,22 +0,0 @@
1
- import{j as s}from"./liveblocks-XXI3_E1y.js";import{J3 as oe,eN as X,jq as H,eT as Q,eR as ie,GE as Y,II as re,sK as ke,J4 as q,sy as Pe,sT as je,sN as le,sC as de,sR as Te,sO as Le,J5 as ce,uo as ve,J6 as Fe,fw as Ae,J7 as K,sH as pe,sF as ue,sW as Oe,c0 as Re}from"./zeni-epic-state-BlOBva0w.js";import{q as me,a as ee,p as E,z as W,a4 as ge,G as fe,af as he,ag as Ve,E as Ce,o as A,I as be,D as ye,ah as Ue,M as Be,K as Ze,y as $e,d as we,f as Ge,s as Ke,ai as _e,A as ze}from"./index-B8scoeQA.js";import{D as Se,n as M,S as De}from"./mui-CL-iXERd.js";import te from"./NotFoundScreen-C3kD1egL.js";import{a as l}from"./sentry-DrlL61Aq.js";import{h as se,l as He,g,j as We,u as Me,k as Je,n as ne,o as G}from"./core-sRr8O2Ja.js";import{u as Ne}from"./useAskAiCfoHostNavButtonProps-Bt4hMVmk.js";import{c as qe}from"./useFetchSuggestedQuestionsWhenReady-B6OFe2QI.js";import{M as Xe}from"./MobileAppDrawer-C7qAXiy5.js";import"./recharts-z_5Sq5F0.js";import"./analytics-zC4vJBLG.js";import"./plaid-BUQgPXGQ.js";import"./dnd-CZEKCPsp.js";import"./stripe-DMRn4zHo.js";import"./lottie-CbW-xVFB.js";import"./lexical-CtDGfH8b.js";import"./pdf-BVi8zWaH.js";import"./utils-DCRx3jP7.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]="d8cf1fcc-628d-48ab-8b77-3a3dccfb09ac",e._sentryDebugIdIdentifier="sentry-dbid-d8cf1fcc-628d-48ab-8b77-3a3dccfb09ac")}catch{}})();const Qe={overlayWidth:new Ce(100,100,48)},_=ye.getLocalizedStrings().peoplePage.invitePage,Ye=({companyId:e,managersListView:n,companyPassportView:d,classListView:o,mode:f,isEditPeopleDrawerOpen:i,closeDrawerHandler:y})=>{const h=me(),u=se(),[O,R]=l.useState(!1),[k,w]=l.useState(!1),{userId:S}=He(),c=g(t=>oe(t)),m=g(t=>X(t)),D=g(t=>H(t)),{useFeatureGate:C}=ee(),{isFeatureEnabled:I}=C(E.isDebitCardFeatureEnabled),P=Q(I,m),L=ie(m),v=Y(m),V=re(m),U=!!m.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,x=!P&&D&&o.fetchState!=="Completed"||n.fetchState!=="Completed"||d.fetchState!=="Completed"||e==null;if(W.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const b=()=>{u(q()),y()},F=()=>{O===!0?w(!0):b()},B=d.companyView?.controllers?.map(t=>t.user),{isFeatureEnabled:Z}=C(E.isDepositAccountsFeatureEnabled),{isFeatureEnabled:$}=C(E.isChargeCardFeatureEnabled),p=ge(m,$,I),{isFeatureEnabled:j}=C(E.isTreasuryEnabled),T={peopleDetails:c,classList:o.classes,managersList:n.users,controllersList:B,mode:f,isZeniTenant:v,isAccountingClassesEnabled:D,isReimbursementDisabled:U===!1,isZeniAccountsDisabled:Z===!1,isChargeCardDisabled:p===!1,isTreasuryDisabled:j===!1,isLiteRoleDisabled:V===!1,isBankingOnlyTenant:P,isCardsOnlyTenant:L,onResetClick:b,onDeleteUser:t=>{u(de(t.userId,t.userRole.userRoleId))},onPeopleLocalDataUpdated:t=>{u(le({peopleLocalData:t})),R(!0)},onSaveClick:()=>{u(f==="zeni_only"?Pe(e):je(v))},onCloseClick:F,isLoading:x||c.person==null},r={onOkClick:()=>{w(!1),b()},onCancelClick:()=>{w(!1)}};return l.useEffect(()=>{x===!1&&S!=null&&u(ke(S))},[x,S]),l.useEffect(()=>{c.updatePersonState.fetchState==="Completed"&&b()},[c.updatePersonState.fetchState]),s.jsx(Se,{anchor:"right",open:i,PaperProps:{style:{width:Qe.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:fe.overlayDark,cursor:"pointer"}}},onClose:F,children:s.jsxs(es,{onClick:t=>t.stopPropagation(),children:[k===!0?s.jsx(he,{titleComponent:s.jsx(xe,{children:_.discardTitle}),descriptionComponent:s.jsx(Ee,{children:_.discardDescription}),primaryButtonText:_.discard,secondaryButtonText:_.no,action:r,isEditPopup:!0}):null,s.jsx(Ve,{...T})]})})},es=M(De)`
2
- display: flex;
3
- min-height: 100%;
4
- flex-direction: column;
5
- `,xe=M(be.H6Regular)`
6
- margin-top: ${A.sp7};
7
- padding-left: ${A.sp8};
8
- padding-right: ${A.sp8};
9
- color: ${e=>e.theme.colors.primary};
10
- word-break: break-word;
11
- `,Ee=M(be.LargeRegularSp)`
12
- color: ${e=>e.theme.colors.hero};
13
- padding-left: ${A.sp8};
14
- padding-right: ${A.sp8};
15
- margin-bottom: 30px;
16
- margin-top: ${A.sp4};
17
- white-space: pre-line;
18
- `,ss={overlayWidth:new Ce(100,100,48)},z=ye.getLocalizedStrings().peoplePage.invitePage,as=({companyId:e,managersListView:n,companyPassportView:d,classListView:o,mode:f,isInvitePeopleDrawerOpen:i,closeDrawerHandler:y})=>{const h=me(),u=se(),[O,R]=l.useState(!1),[k,w]=l.useState(!1),S=g(r=>oe(r)),c=g(r=>X(r)),m=g(r=>H(r)),{useFeatureGate:D}=ee(),{isFeatureEnabled:C}=D(E.isDebitCardFeatureEnabled),I=Q(C,c),P=ie(c),L=Y(c),v=re(c),V=!!c.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,U=!I&&m&&o.fetchState!=="Completed"||n.fetchState!=="Completed"||d.fetchState!=="Completed"||e==null;if(W.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const x=()=>{y(),u(q())},b=()=>{O===!0?w(!0):x()},F={onOkClick:()=>{w(!1),x()},onCancelClick:()=>{w(!1)}},B=d.companyView?.controllers.map(r=>r.user),{isFeatureEnabled:Z}=D(E.isDepositAccountsFeatureEnabled),{isFeatureEnabled:$}=D(E.isChargeCardFeatureEnabled),p=ge(c,$,C),{isFeatureEnabled:j}=D(E.isTreasuryEnabled),T={classList:o.classes,managersList:n.users,controllersList:B,mode:f,isZeniTenant:L,onPeopleLocalDataUpdated:r=>{u(le({peopleLocalData:r})),R(!0)},onResetClick:x,onSaveClick:()=>{u(f==="zeni_only"?Te(e):Le())},onCloseClick:b,peopleDetails:S,isAccountingClassesEnabled:m,isReimbursementDisabled:V===!1,isLiteRoleDisabled:v===!1,isZeniAccountsDisabled:Z===!1,isChargeCardDisabled:p===!1,isTreasuryDisabled:j===!1,isBankingOnlyTenant:I,isCardsOnlyTenant:P,isLoading:U};return l.useEffect(()=>{S.invitePersonState.fetchState==="Completed"&&(y(),u(q()))},[S.invitePersonState.fetchState]),s.jsx(Se,{anchor:"right",open:i,PaperProps:{style:{width:ss.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:fe.overlayDark,cursor:"pointer"}}},onClose:b,children:s.jsxs(ts,{onClick:r=>r.stopPropagation(),children:[k===!0?s.jsx(he,{titleComponent:s.jsx(xe,{children:z.discardTitle}),descriptionComponent:s.jsx(Ee,{children:z.discardDescription}),primaryButtonText:z.discard,secondaryButtonText:z.no,action:F}):null,s.jsx(Ue,{...T})]})})},ts=M(De)`
19
- display: flex;
20
- min-height: 100%;
21
- flex-direction: column;
22
- `,ns=Je(function(e,n){const d=ce(e),o=W.getSignedInUser();return{data:d,loggedinUserId:o?.userId??"",isZeniTenant:n.isZeniTenant===!0,shouldFetchClasses:n.shouldFetchClasses,isZeniAdminUser:o?.userEmailDomain==="zeni.ai"&&n.isZeni===!0,isAccountingClassesEnabled:H(e),analytics:we}},function(e,n){const{navigate:d,companyId:o,shouldFetchClasses:f}=n;return{personAction:{onPersonDelete:(i,y)=>{e(de(i,y))},onResendInvite:i=>{e(Oe(i))},onReloadPeople:()=>{e(pe()),e(ue(o,f))},onBackClick:()=>{d("../../")},onModeChange:i=>{e(K({mode:i,searchText:"",sortKey:"name",sortOrder:"ascending"}))},onSearchTextChanged:i=>{e(K({searchText:i}))}}}})(_e);function N({isInvitePeopleDrawerOpen:e,isEditPeopleDrawerOpen:n}){const d=We(),o=se(),f=Me(),{areTenantIdsInSync:i}=Be(),y=W.getSignedInUser(),h=g(a=>X(a)),{useFeatureGate:u}=ee(),{isFeatureEnabled:O}=u(E.isDebitCardFeatureEnabled),R=g(a=>H(a)),k=!Q(O,h)&&R,w=Y(h),S=h?.tenantId,{tenantEmailDomain:c}=h,[m,D]=l.useState(!1),[C,I]=l.useState(!1),[P,L]=l.useState(!1),[v,V]=l.useState("off"),[U,x]=l.useState(!1),b=a=>{x(a)},{isAiCfoOpen:F,setIsAiCfoOpen:B}=Ze(),{isAiCfoAccessEnabled:Z,onAskAiCfoClick:$}=Ne({isAiCfoOpen:F,setIsAiCfoOpen:B,mobileExploreReferrer:"People"}),p=g(a=>ce(a));qe({isDataReady:p.fetchState==="Completed"});const j=g(a=>ve(a.classState,a.classListState)),T=g(a=>Fe(a.userState,a.userRoleState,a.userListViewState,"manager")),r=g(a=>Ae(a)),t=h?.companyId;l.useEffect(()=>{m&&v===p.uiState.mode||!i||(o(K({searchText:"",sortKey:"name",sortOrder:"ascending"})),V(p.uiState.mode),D(!0),o(pe()))},[m,y,S,o,p.uiState.mode,i]),l.useEffect(()=>{t!=null&&i&&o(ue(t,k))},[t,k,i]),l.useEffect(()=>{I(e!=null&&e===!0),L(n!=null&&n===!0&&n)},[e,n]),l.useEffect(()=>{o(K({searchText:"",sortKey:"name",sortOrder:"ascending"}))},[]);const ae=()=>{I(!1),L(!1),d("../")};return s.jsxs(s.Fragment,{children:[p.fetchState==="Completed"?s.jsx($e,{analytics:we,onLoad:a=>a.trackPageLoaded(Ge.Event.members)}):null,C===!0?s.jsx(as,{closeDrawerHandler:ae,isInvitePeopleDrawerOpen:C,managersListView:T,companyPassportView:r,classListView:j,companyId:t,mode:p.uiState.mode}):null,P===!0?s.jsx(Ye,{closeDrawerHandler:ae,isEditPeopleDrawerOpen:P,managersListView:T,companyPassportView:r,classListView:j,companyId:t,mode:p.uiState.mode}):null,s.jsx(Xe,{isAppContentDrawerOpen:U,handleDrawerToggle:b}),s.jsx(ns,{navigate:d,signedInUser:y,isZeni:h.isZeni,isZeniTenant:w,peopleUIState:p.uiState,companyId:t,shouldFetchClasses:k,classList:j,managersView:T,peopleView:p,onInvitePeopleClick:()=>{d("./new")},onColumnSortConfigChanged:(a,J)=>{o(K({sortKey:a,sortOrder:J}))},onRowClick:a=>{const J=`/${c}/people/${encodeURIComponent(a)}/edit`,Ie=Ke(f.state?.pathnameStackToGoBack,f.pathname);d(J,{state:{pathnameStackToGoBack:Ie}})},onClickMenuIcon:()=>{b(!0)},isAiCfoAccessEnabled:Z,onAskAiCfoClick:$})]})}function Es(){const e=ze();return Re(e?.loggedInUserRole??[])?s.jsxs(ne,{children:[s.jsx(G,{path:"/",element:s.jsx(N,{})}),s.jsx(G,{path:"new",element:s.jsx(N,{isInvitePeopleDrawerOpen:!0})}),s.jsx(G,{path:":userId/edit",element:s.jsx(N,{isEditPeopleDrawerOpen:!0})}),s.jsx(G,{path:"*",element:s.jsx(te,{})})]}):s.jsx(ne,{children:s.jsx(G,{path:"*",element:s.jsx(te,{})})})}export{Es as default};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-XXI3_E1y.js";import _ from"./NotFoundScreen-C3kD1egL.js";import{a as o}from"./sentry-DrlL61Aq.js";import{j as v,u as M,g,l as U,h as P,N as z,k as K,n as N,o as h}from"./core-sRr8O2Ja.js";import{eN as V,OK as b,bo as B,bn as F,h6 as H,gC as $}from"./zeni-epic-state-BlOBva0w.js";import{x as q,z as C,K as G,cs as J}from"./index-B8scoeQA.js";import"./mui-CL-iXERd.js";import{u as L}from"./useAskAiCfoHostNavButtonProps-Bt4hMVmk.js";import{c as Q}from"./useFetchSuggestedQuestionsWhenReady-B6OFe2QI.js";import{M as W}from"./MobileAppDrawer-C7qAXiy5.js";import"./recharts-z_5Sq5F0.js";import"./analytics-zC4vJBLG.js";import"./plaid-BUQgPXGQ.js";import"./dnd-CZEKCPsp.js";import"./stripe-DMRn4zHo.js";import"./lottie-CbW-xVFB.js";import"./lexical-CtDGfH8b.js";import"./pdf-BVi8zWaH.js";import"./utils-DCRx3jP7.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]="ac16838f-0848-46a0-ae93-1d095a9ad3b0",e._sentryDebugIdIdentifier="sentry-dbid-ac16838f-0848-46a0-ae93-1d095a9ad3b0")}catch{}})();const X=K(function(e){const t=C.getSignedInUser(),c=e.tenantState.currentTenantId,r={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:c??""},{aggregatedReportViewState:n}=b(e);return{authParams:r,isDisabled:!1,loggedInUser:t,aggregatedReport:n}},function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}})(J),Y=()=>{const e=v(),t=M(),c=q(),r=g(a=>V(a)),{aggregatedReportViewState:n}=g(a=>b(a)),{tenantEmailDomain:m}=U(),p=P(),l=C.getSignedInUser();if(l==null)throw new Error("Can't access this page without signing in...");const f=o.useRef(!1),[I,S]=o.useState(!1),k=B(r?.userRole??[]),w=r?.userRole?.includes("bookkeeping_admin")??!1,x=F(l),A=k||w||x,d=o.useCallback((a,i,O)=>{p(H({fromMonth:a,toMonth:i,cacheOverride:O}))},[]);o.useEffect(()=>{n?.fetchState==="Completed"&&f.current&&(p($({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),f.current=!1)},[n?.fetchState]);const D=o.useCallback((a,i)=>{n!=null&&n?.fetchState==="In-Progress"||d(a,i,!0),f.current=!0},[n?.fetchState,d]),y=o.useCallback((a,i)=>{d(a,i,!1)},[d]),u=a=>{S(a)},{isAiCfoOpen:j,setIsAiCfoOpen:R}=G(),{isAiCfoAccessEnabled:T,onAskAiCfoClick:E}=L({isAiCfoOpen:j,setIsAiCfoOpen:R,mobileExploreReferrer:"Performance"});return Q({isDataReady:n?.fetchState==="Completed"}),A?s.jsxs(s.Fragment,{children:[s.jsx(W,{isAppContentDrawerOpen:I,handleDrawerToggle:u}),s.jsx(X,{navigate:e,location:t,themeState:c,currentTenant:r,signedInUser:l,tenantEmailDomain:m,onReload:D,onTimeRangeSelect:y,handleDrawerToggle:u,isAiCfoAccessEnabled:T,onAskAiCfoClick:E})]}):s.jsx(z,{to:`/${m}/dashboard`,replace:!0})};function Ce(){return s.jsxs(N,{children:[s.jsx(h,{path:"*",element:s.jsx(Y,{})}),s.jsx(h,{path:"*",element:s.jsx(_,{})})]})}export{Ce as default};
@@ -1,5 +0,0 @@
1
- import{j as t}from"./liveblocks-XXI3_E1y.js";import{a as o}from"./sentry-DrlL61Aq.js";import{g as f,j as N,h as V,u as W,k as F}from"./core-sRr8O2Ja.js";import{h as _,q as z,z as R,b2 as U,E as $,M as q,K,y as X,d as l,f as Z,a1 as G,b3 as Q}from"./index-B8scoeQA.js";import{eX as J,eN as Y,Ly as I,Lz as ee,ts as ae,ti as g,eZ as re,bM as ne,tn as se,LA as te}from"./zeni-epic-state-BlOBva0w.js";import{D as oe,e as ie,n as le,S as de}from"./mui-CL-iXERd.js";import{u as ce}from"./useAskAiCfoHostNavButtonProps-Bt4hMVmk.js";import{c as fe}from"./useFetchSuggestedQuestionsWhenReady-B6OFe2QI.js";import{M as ue}from"./MobileAppDrawer-C7qAXiy5.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="36eff736-a15d-46dc-a53f-1bb4f45e6812",e._sentryDebugIdIdentifier="sentry-dbid-36eff736-a15d-46dc-a53f-1bb4f45e6812")}catch{}})();const pe={overlayWidth:new $(100,100,30)},we=({isReferralDrawerOpen:e,closeDrawerHandler:a})=>{const r=_(),n=z();if(R.getSignedInUser()==null)throw Error("Can't access How Referral works without signing in...");const i=()=>{a(!0)},u=f(d=>J(d));return t.jsx(oe,{anchor:"right",open:e,PaperProps:{style:{width:pe.overlayWidth.valuePercentage(n),boxShadow:"none"}},slotProps:{backdrop:{style:{opacity:.75,backgroundColor:r.colors.black,cursor:"pointer"}}},onClose:()=>i(),children:t.jsx(ie,{in:e,direction:"left",children:t.jsx(ge,{onClick:d=>d.stopPropagation(),children:t.jsx(U,{onDismissClick:i,rewardsPlan:u.rewardsPlan})})})})},ge=le(de)`
2
- display: flex;
3
- min-height: 100%;
4
- flex-direction: column;
5
- `,P="refer-and-earn-status-update",ke=F(function(e){const a=I(e),r=e.referralViewState.rewardsPlanFetchState,n=ne([a,r]);return{inviteList:a.invitations,uiState:a.uiState,pendingBonus:a.pendingBonus,earnedBonus:a.earnedBonus,pendingReferrals:a.pendingReferrals,fetchState:n.fetchState,rewardsPlan:a.rewardsPlan}},function(e,a){const{navigate:r}=a;return{onColumnSortConfigChanged:(n,i)=>{e(te({sortOrder:i,sortkey:n}))},onInviteClick:()=>{l.trackRewardsPageClicked("invite via email"),r("../refer")},onHowItWorksClick:()=>{l.trackRewardsPageClicked("know more"),r("../how-it-works")},onResendInviteClick:n=>{l.trackRewardsPageClicked("resend invite"),e(se(n))},onBackClick:()=>{r("../",{relative:"path"})},onReloadInvitees:()=>{e(g(!0))},onCopyReferralLink:()=>{l.trackRewardsPageClicked("copy referral link")},onClickRefer:()=>{l.trackRewardsPageClicked("refer")},onEventReceived:n=>{n===P&&e(g(!0,!0))}}})(G(Q));function Pe({isReferralDrawerOpen:e}){const a=N(),r=V(),n=W(),[i,u]=o.useState(!1),[d,x]=o.useState(!1),[D,A]=o.useState(!1),[k,C]=o.useState(!1),p=R.getSignedInUser(),h=f(s=>Y(s)),m=f(s=>I(s)),b=m.fetchState,w=f(s=>s.referralViewState.rewardsPlanFetchState),y=ee([m,w]),{areTenantIdsInSync:c}=q();o.useEffect(()=>{h?.rewardsLastViewedTime==null&&D===!1&&(r(ae()),A(!0))},[]),o.useEffect(()=>{!i&&b==="Not-Started"&&c&&(u(!0),r(g(!0)))},[b,r,c]),o.useEffect(()=>{!d&&w.fetchState==="Not-Started"&&c&&(x(!0),r(re(!0)))},[w,r,c]),o.useEffect(()=>{C(e!=null&&e===!0)},[e]);const[E,j]=o.useState(!1),v=s=>{j(s)},{isAiCfoOpen:O,setIsAiCfoOpen:L}=K(),{isAiCfoAccessEnabled:T,onAskAiCfoClick:B}=ce({isAiCfoOpen:O,setIsAiCfoOpen:L,mobileExploreReferrer:"Rewards"});fe({isDataReady:y===!0});const M={events:p?.userId!=null?[`private-${p.userId}.${P}`]:[],eventCallback:(s,S,H)=>{H.onEventReceived(s)}};return t.jsxs(t.Fragment,{children:[y===!0?t.jsx(X,{analytics:l,onLoad:s=>(S=>{p!=null&&S.trackPageLoaded(Z.Event.rewardsPageViewed)})(s)}):null,t.jsx(ue,{isAppContentDrawerOpen:E,handleDrawerToggle:v}),k===!0?t.jsx(we,{closeDrawerHandler:()=>{C(!1),a("..")},isReferralDrawerOpen:k}):null,t.jsx(ke,{location:n,navigate:a,currentTenant:h,onClickMenuIcon:()=>{v(!0)},isAiCfoAccessEnabled:T,onAskAiCfoClick:B,...M})]})}export{Pe as R};
@@ -1 +0,0 @@
1
- import{j as t}from"./liveblocks-XXI3_E1y.js";import R from"./NotFoundScreen-C3kD1egL.js";import{a as p}from"./sentry-DrlL61Aq.js";import{j as x,u as C,h as A,g as u,N as E,k,n as D,o as c}from"./core-sRr8O2Ja.js";import{eN as T,Ms as g,MI as S,Cp as V,By as U,Co as m,Cf as _,MX as B}from"./zeni-epic-state-BlOBva0w.js";import{h as M,z as N,B as $,a1 as O,bI as W,aa as z}from"./index-B8scoeQA.js";import"./mui-CL-iXERd.js";import{R as v}from"./ReimbursementApprovalRuleDetailScreen-BoCrHkhT.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="8bc8b1a8-d9d0-4e15-9f9e-06a5f43b4c3b",e._sentryDebugIdIdentifier="sentry-dbid-8bc8b1a8-d9d0-4e15-9f9e-06a5f43b4c3b")}catch{}})();const d="reimbursement-approval-rule-update",P=k(function(e){return{approvalView:g(e),remiSetupApproverViewUpdateData:S(e).remiSetupApproverViewUpdateData}},function(e,r){const{navigate:a,location:l}=r;return{onApprovalRulesEventReceived:n=>{n.endsWith(d)&&e(B(!1))},onBackClick:()=>{z(l)?a("../../"):a("../../../reimbursements/setup")},onDeleteRuleClick:n=>{e(_(n))},onEditRuleClick:n=>{n!=null?(e(m(n)),a(`./${n}/edit`)):(e(m()),a("./new"))}}})(O(W)),X=()=>{const e=x(),r=C(),a=A(),[l,n]=p.useState(!1),[f,y]=p.useState(!1),b=u(s=>s.remiSetupApproverViewState.fetchState),o=u(s=>T(s)),w=M(),i=u(s=>g(s)),h=u(s=>S(s).remiSetupApproverViewUpdateData);if(p.useEffect(()=>{h?.updateStatus.fetchState==="Completed"&&a(V())},[h]),p.useEffect(()=>{l||b!=="Not-Started"||(n(!0),a(U(!0)))},[l,b,a]),N.getSignedInUser()==null)throw Error("Can't access reimbursement approval without signing in...");p.useEffect(()=>{i.allApprovalRules.length===0&&i.fetchState==="Completed"&&(f||(y(!0),a(m())),e("./new"))},[f,i,a]);const j={events:o.companyId!=null?[`private-${o.companyId}.${d}`]:[],eventCallback:(s,q,I)=>{s.endsWith(d)&&I.onApprovalRulesEventReceived(s)}};return o.companyReimbursementInfo?.info?.isReimbursementTOSAccepted===!1?t.jsx(E,{to:"../../promo"}):o.companyReimbursementInfo?.info?.isReimbursementTOSAccepted!==!0||i.fetchState!=="Completed"&&i.fetchState!=="Error"?t.jsx($,{fetchState:"In-Progress",style:{backgroundColor:w.colors.grey5}}):t.jsx(P,{currentTenant:o,location:r,navigate:e,...j})};function Z(){return t.jsxs(D,{children:[t.jsx(c,{path:"/",element:t.jsx(X,{})}),t.jsx(c,{path:"/new",element:t.jsx(v,{})}),t.jsx(c,{path:"/:approvalRuleId/edit",element:t.jsx(v,{})}),t.jsx(c,{path:"*",element:t.jsx(R,{})})]})}export{Z as R};
@@ -1 +0,0 @@
1
- import{j as a}from"./liveblocks-XXI3_E1y.js";import{a as x,z as w,aI as y,y as E,d as p,f as F,cC as P,p as L}from"./index-B8scoeQA.js";import"./mui-CL-iXERd.js";import l from"./NotFoundScreen-C3kD1egL.js";import{a as f}from"./sentry-DrlL61Aq.js";import{h as T,g as b,j as V,u as A,k as R,n as U,o as d}from"./core-sRr8O2Ja.js";import{eN as z,Ph as C,M7 as Y,Pi as k,ts as q,eZ as G,Pj as M,tq as O}from"./zeni-epic-state-BlOBva0w.js";import{R as j}from"./ReferralListScreen-ChBnSKTx.js";import"./recharts-z_5Sq5F0.js";import"./analytics-zC4vJBLG.js";import"./plaid-BUQgPXGQ.js";import"./dnd-CZEKCPsp.js";import"./stripe-DMRn4zHo.js";import"./lottie-CbW-xVFB.js";import"./lexical-CtDGfH8b.js";import"./pdf-BVi8zWaH.js";import"./utils-DCRx3jP7.js";import"./useAskAiCfoHostNavButtonProps-Bt4hMVmk.js";import"./useFetchSuggestedQuestionsWhenReady-B6OFe2QI.js";import"./MobileAppDrawer-C7qAXiy5.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]="0856ebf0-c8ad-427e-9914-4a9ff405edc8",e._sentryDebugIdIdentifier="sentry-dbid-0856ebf0-c8ad-427e-9914-4a9ff405edc8")}catch{}})();const Z=R(function(e,t){const n=C(e);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}},function(e,t){const{navigate:n}=t,o=w.getSignedInUser();return{onDismissClick:()=>{e(k()),n("..")},onSendClick:()=>{if(o!=null){const s=[],r=[];t.inviteFormCompayData.forEach(c=>{s.push(c.companyName),r.push(c.emailIds[0])}),p.trackInviteEmailClicked("send",s,r,s.length)}e(O())},onUpdateInviteFormLocalData:s=>{e(M({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{o!=null&&p.trackInviteEmailClicked("cancel")}}})(P),B=()=>{const e=T(),[t,n]=f.useState(!1),[o,s]=f.useState(!1),r=b(i=>z(i)),c=V(),v=A(),{useDynamicConfig:g}=x(),u=w.getSignedInUser();if(u==null)throw Error("Can't access invite referral screen without signing in...");const m=b(i=>C(i)),_=u?.firstName!=null?u.firstName:"User",{configValue:h}=g(y.zeniCardsConfig),{configValue:D}=g(y.zeniAccountsConfig),I=Y(D);f.useEffect(()=>{e(k()),r?.rewardsLastViewedTime==null&&o===!1&&(e(q()),s(!0))},[]),f.useEffect(()=>{t||m.fetchState!=="Not-Started"||(n(!0),e(G(!0)))},[m.fetchState,e]);const N=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[m.fetchState==="Completed"?a.jsx(E,{analytics:p,onLoad:i=>(S=>S.trackPageLoaded(F.Event.inviteEmailViewed))(i)}):null,a.jsx(Z,{navigate:c,location:v,currentTenant:r,companyName:N,userName:_,inviteFormCompayData:m.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:I.maxAnnualPercentageYield})]})};function ue(){const{useFeatureGate:e}=x(),{isFeatureEnabled:t}=e(L.isReferralFeatureEnabled);return a.jsxs(U,{children:[a.jsx(d,{path:"/",element:t?a.jsx(j,{}):a.jsx(l,{})}),a.jsx(d,{path:"how-it-works",element:t?a.jsx(j,{isReferralDrawerOpen:!0}):a.jsx(l,{})}),a.jsx(d,{path:"refer/*",element:t?a.jsx(B,{}):a.jsx(l,{})}),a.jsx(d,{path:"*",element:a.jsx(l,{})})]})}export{ue as default};
@@ -1 +0,0 @@
1
- import{j as f}from"./liveblocks-XXI3_E1y.js";import{a as u,b as T,q as A}from"./sentry-DrlL61Aq.js";import{h as D,j as z,g as c,u as j,N as M,k as O}from"./core-sRr8O2Ja.js";import{u as F,z as s,h as P,d as E,D as N,e as _,f as B,g as q,i as V,Q as $,j as v}from"./index-B8scoeQA.js";import{eN as G,Ij as J,Ik as Q,eO as R,fh as W,Ip as H,fG as K,cS as X,Iq as b,Ir as Y,Is as Z,bR as y}from"./zeni-epic-state-BlOBva0w.js";import"./mui-CL-iXERd.js";import{u as ee}from"./useDeviceId-D2RgNqNP.js";import{f as te}from"./analyticsHelper-CYuyeE-z.js";import{t as ne}from"./getLocaleForTenant-CUETA9qT.js";import"./recharts-z_5Sq5F0.js";import"./analytics-zC4vJBLG.js";import"./plaid-BUQgPXGQ.js";import"./dnd-CZEKCPsp.js";import"./stripe-DMRn4zHo.js";import"./lottie-CbW-xVFB.js";import"./lexical-CtDGfH8b.js";import"./pdf-BVi8zWaH.js";import"./utils-DCRx3jP7.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="e4daf166-3b56-4e92-900d-b0cefc705ce6",t._sentryDebugIdIdentifier="sentry-dbid-e4daf166-3b56-4e92-900d-b0cefc705ce6")}catch{}})();const ie=O(function(t,i){const d=t.tenantState.fetchState,g=t.tenantState.sendEmailMagicLinkFetchState,{magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:l}=i;return{googleClientId:v.googleClientId,microsoftClientId:v.microsoftClientId,signInError:t.tenantState.error?.error,fetchState:d,sendMagicLinkStatus:g,magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:l}},function(t,i){const{location:d,navigate:g}=i;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,a)=>{A({message:`OAuth error from provider ${a} with error ${n}`,level:"error",tags:{authProvider:a,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,a)=>{const l=a==="google"?window.location.origin:window.location.origin+window.location.pathname;t(Z({authCode:n,oauthProvider:a,appType:"web",redirectUri:y(l),sourceUri:y(d.state!=null?d.state.origin:"")}))},getSignedInUser:()=>s.getSignedInUser(),onSignedInCallback:()=>{const n=d.state?.origin;n&&n!=="/"?g(n,{replace:!0}):window.open(window.location.origin,"_self")},sendMagicLink:n=>{const{deviceId:a}=i;a!=null&&(s.saveMagicLinkEmail(n),t(Y(n,a)))},clearSignInError:()=>{t(b())}}})($),ae=T.memo(ie);function ve({setTenantEmailDomain:t}){const i=D(),d=z(),{clearAllLoading:g}=F(),n=s.getSignedInUser();u.useLayoutEffect(()=>{g()},[g]);const a=ee(),l=c(e=>e.tenantState.magicLinkCodeVerifier),{sendEmailMagicLinkFetchState:h,accountLocked:C,accountUnlockTime:k}=c(e=>e.tenantState),p=c(e=>e.tenantState.fetchState),L=c(e=>e.tenantState.activeTenantFetchState.fetchState),I=c(e=>e.tenantState.signInState),o=c(e=>e.tenantState.loggedInUser),r=c(e=>G(e)),S=c(e=>J(e)),m=j(),w=P().mode,U=m.state?.magicLinkExpired,x=m.state?.magicLinkAlreadyUsed;if(u.useEffect(()=>{h.fetchState==="Completed"&&l!=null&&(E.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(l))},[h.fetchState,l]),u.useEffect(()=>{t(void 0)},[]),u.useEffect(()=>{I!=="In-Progress"||p!=="Completed"&&L!=="Completed"||o?.zeniSessionId==null||r==null||(s.savePayNowInfoTooltip(!0,o.zeniSessionId),s.saveSignedInUserWithSession(o,o.zeniSessionId),s.saveSignedInUserTenants(Q(S.tenantsInOrder),o.zeniSessionId),R(o.userId,o.zeniSessionId,r.tenantId),i(W(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(H("Completed")),N.updateAppLocaleID(ne(r)),te(o,r,w,void 0,S.tenantsInOrder),K().then(()=>{const e=V();e!=null&&_(e)}),setTimeout(()=>{E.trackLogin(B.Event.loginSuccess,o.authProvider??"google",X(r.productSettings))},2e3))},[I,p,L,o,r,S,w,m.state,i]),I==="In-Progress"&&p==="Completed"&&o?.zeniSessionId!=null&&r!=null||n!=null){const e=m.state?.origin??"/";return f.jsx(M,{to:e,state:{...m.state,origin:""}})}return f.jsxs(f.Fragment,{children:[f.jsx(ae,{magicLinkExpired:!!U,magicLinkAlreadyUsed:!!x,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),C===!0&&k!=null?f.jsx(q,{onClose:()=>i(b()),unlockDate:k}):null]})}export{ve as default};
@@ -1,9 +0,0 @@
1
- import{j as s}from"./liveblocks-XXI3_E1y.js";import{a as n}from"./sentry-DrlL61Aq.js";import{h as u,u as m,j as p,N as g}from"./core-sRr8O2Ja.js";import{z as f,B as y,t as h,d,f as b}from"./index-B8scoeQA.js";import{fL as I,fM as x,IF as j}from"./zeni-epic-state-BlOBva0w.js";import{n as w}from"./mui-CL-iXERd.js";import"./recharts-z_5Sq5F0.js";import"./analytics-zC4vJBLG.js";import"./plaid-BUQgPXGQ.js";import"./dnd-CZEKCPsp.js";import"./stripe-DMRn4zHo.js";import"./lottie-CbW-xVFB.js";import"./lexical-CtDGfH8b.js";import"./pdf-BVi8zWaH.js";import"./utils-DCRx3jP7.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]="855d3725-2dc6-421d-8e19-f9b4f8a24ea1",e._sentryDebugIdIdentifier="sentry-dbid-855d3725-2dc6-421d-8e19-f9b4f8a24ea1")}catch{}})();function U(){const e=u(),t=m(),i=p(),a=n.useRef(!1),l=f.isSignedIn(),r=t.state?.message==="logout",o=r||l;return n.useEffect(()=>{o&&!a.current&&(a.current=!0,setTimeout(()=>{try{f.clearAll(),e(I()),e(x(!1)),j(),h.reset(),d.trackLogout(b.Event.logoutSuccess),d.resetUserIdentity()}catch(c){console.error("Error during sign out:",c)}finally{r||i("/signin/auth",{replace:!0})}},0))},[o,r]),o?s.jsx(v,{children:s.jsx(y,{fetchState:"In-Progress"})}):s.jsx(g,{to:"../",replace:!0})}const v=w.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `;export{U as default};
@@ -1,9 +0,0 @@
1
- import{j as s}from"./liveblocks-XXI3_E1y.js";import V from"./NotFoundScreen-C3kD1egL.js";import{a as m}from"./sentry-DrlL61Aq.js";import{j as A,h as _,u as $,l as M,g as f,N as R,k as z,n as O,o as u}from"./core-sRr8O2Ja.js";import{x as q,z as b,s as w,y as H,d as T,f as K,cD as Q,j as Z,ao as J,r as W}from"./index-B8scoeQA.js";import{eN as C,Pk as G,EQ as v,EE as X,Fg as Y,Pl as P,Pm as ee,EA as ae,Ex as te,pF as se,pt as ne,j_ as oe,EK as ie,Pn as re,EH as le,EV as ce,EU as de}from"./zeni-epic-state-BlOBva0w.js";import{n as me}from"./mui-CL-iXERd.js";import{u as pe}from"./useInitialThreadRequest-oa3yZUCF.js";import{M as ue}from"./MobileAppDrawer-C7qAXiy5.js";import ke from"./TaskListScreen-CMvx-0XC.js";import"./recharts-z_5Sq5F0.js";import"./analytics-zC4vJBLG.js";import"./plaid-BUQgPXGQ.js";import"./dnd-CZEKCPsp.js";import"./stripe-DMRn4zHo.js";import"./lottie-CbW-xVFB.js";import"./lexical-CtDGfH8b.js";import"./pdf-BVi8zWaH.js";import"./utils-DCRx3jP7.js";import"./useAskAiCfoHostNavButtonProps-Bt4hMVmk.js";import"./useFetchSuggestedQuestionsWhenReady-B6OFe2QI.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]="446f3689-7a1b-459b-96c6-c8b63debdc2e",e._sentryDebugIdIdentifier="sentry-dbid-446f3689-7a1b-459b-96c6-c8b63debdc2e")}catch{}})();const fe=z(function(e,t){const{location:n,taskGroupId:l}=t,d=P(e,t.taskId),c=C(e),i=l!=null?ee(e.taskGroupState,l):void 0,p=b.getSignedInUser(),a=c.tenantId,r={userId:p?.userId??"",sessionId:p?.zeniSessionId??"",tenantId:a??""},k=G(e);return{taskDetailSelectorView:d,authParams:r,isNewClicked:n.state?.message==="comingFromTaskListPage",filesEndPoint:J.fileMicroServiceBaseUrl,companyName:t.currentTenant.companyName,companyId:t.currentTenant.companyId,currentUrl:`${Z.appUrl}${t.location.pathname}`,tagListView:k,taskGroupName:l!=null&&i!=null&&i.isDefault===!1?i.name:void 0}},function(e,t){const{taskId:n,navigate:l,currentTenant:d,location:c,taskGroupId:i}=t,{tenantEmailDomain:p}=d;return{onSaveChangesToLocalStore:a=>{e(de({taskDetailLocalData:a,taskId:n}))},onSaveDetailClick:()=>{e(ce(n,i))},onArchiveTaskClick:()=>{t.taskId!=null&&e(le(t.taskId))},onDismissClick:()=>{if(c.state?.message==="triggerBackClick"){const a=W(c.state?.pathnameStackToGoBack),r=a.poppedPathname??"../../dashboard";l(r,{state:{pathnameStackToGoBack:a.newStack}})}else{const a=B(p),r=w(c.state?.pathnameStackToGoBack,c.pathname);l(a,{state:{pathnameStackToGoBack:r}})}e(re({taskId:n}))},onDeleteTaskClick:()=>{e(ie(n))},updateFilesEntity:a=>{e(oe({files:a}))},onDeleteFile:a=>{e(ne(a))},onEditFileName:(a,r)=>{e(se(a,r.split(".")[0]))},onReloadTaskDetailPage:()=>{e(v(!1,n))},onCreateTagClick:a=>{e(te(a,n))},onDeleteTagClick:a=>{e(ae(a,n))}}})(Q);function I(){const e=A(),t=_(),n=$(),l=q(),{taskId:d,taskGroupId:c}=M(),i=f(o=>C(o)),p=pe(i?.companyId),[a,r]=m.useState(!1),[k,F]=m.useState(!1),[S,L]=m.useState(!1),[x,N]=m.useState(!1),j=f(o=>G(o)),y=f(o=>o.taskGroupViewState.fetchState);m.useEffect(()=>{k||(F(!0),t(v(!1,d)))},[k,t]),m.useEffect(()=>{S||j.fetchState==="Completed"||(L(!0),t(X()))},[S,t,j.fetchState]),m.useEffect(()=>{x||y==="Completed"||(N(!0),t(Y()))},[x,t,y]);const D=f(o=>P(o,d)),g=D.fetchState,E=b.getSignedInUser();if(E==null)throw Error("Can't access task detail page without signing in...");if(g==="Error"&&D.error?.code===400){const{tenantEmailDomain:o}=i,h=B(o),U=w(n.state?.pathnameStackToGoBack,n.pathname);return s.jsx(R,{to:h,state:{pathnameStackToGoBack:U}})}return s.jsxs(s.Fragment,{children:[g==="Completed"?s.jsx(H,{analytics:T,onLoad:o=>(h=>h.trackPageLoaded(K.Event.taskDetailPage))(o)}):null,s.jsxs(ge,{children:[s.jsx(ue,{isAppContentDrawerOpen:a,handleDrawerToggle:o=>{r(o)}}),s.jsx(fe,{analytics:T,currentTenant:i,handleZeniLogoClick:()=>{l.toggle()},initialOpenThreadRequest:p,location:n,loggedInUser:E,navigate:e,taskGroupId:c,taskId:d,taskDetailFetchState:g})]})]})}const ge=me.div`
2
- display: flex;
3
- min-height: 100%;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `,B=e=>`/${e}/tasks`;function Ae(){return s.jsxs(O,{children:[s.jsx(u,{path:"/new",element:s.jsx(I,{})}),s.jsx(u,{path:"/new/:taskGroupId",element:s.jsx(I,{})}),s.jsx(u,{path:"/group/:taskGroupId",element:s.jsx(ke,{})}),s.jsx(u,{path:"/:taskId",element:s.jsx(I,{})}),s.jsx(u,{path:"*",element:s.jsx(V,{})})]})}export{Ae as default};
@@ -1 +0,0 @@
1
- import{j as t}from"./liveblocks-XXI3_E1y.js";import i from"./NotFoundScreen-C3kD1egL.js";import{T as r}from"./TransactionDetailScreen-B-hqlTRL.js";import"./sentry-DrlL61Aq.js";import{n as d,o as e}from"./core-sRr8O2Ja.js";import"./zeni-epic-state-BlOBva0w.js";import"./recharts-z_5Sq5F0.js";import"./index-B8scoeQA.js";import"./mui-CL-iXERd.js";import"./analytics-zC4vJBLG.js";import"./plaid-BUQgPXGQ.js";import"./dnd-CZEKCPsp.js";import"./stripe-DMRn4zHo.js";import"./lottie-CbW-xVFB.js";import"./lexical-CtDGfH8b.js";import"./pdf-BVi8zWaH.js";import"./utils-DCRx3jP7.js";import"./useAskAiCfoHostNavButtonProps-Bt4hMVmk.js";import"./useFetchSuggestedQuestionsWhenReady-B6OFe2QI.js";import"./decodeURIComponentSafe-DfA0P9Xn.js";import"./routePaths-0yQK7ZVo.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new o.Error().stack;n&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[n]="256f287b-7a3d-4d6d-890e-a8cb9db8b86d",o._sentryDebugIdIdentifier="sentry-dbid-256f287b-7a3d-4d6d-890e-a8cb9db8b86d")}catch{}})();function q(){return t.jsxs(d,{children:[t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId",element:t.jsx(r,{})}),t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId/page-not-found",element:t.jsx(i,{})}),t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId/vendor/create",element:t.jsx(r,{})}),t.jsx(e,{path:"/*",element:t.jsx(r,{})})]})}export{q as default};