@zeniai/web-app-ui 5.0.73-qa → 5.0.74-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 (112) hide show
  1. package/dist/assets/AddressRoutes-D36Y3UuL.js +1 -0
  2. package/dist/assets/AddressScreen-CuUKXSzu.js +9 -0
  3. package/dist/assets/{AiCfoScreen-BuWzYLYw.js → AiCfoScreen-ar8phnJj.js} +1 -1
  4. package/dist/assets/{BillPayApprovalRoutes-Bt8Z0pVh.js → BillPayApprovalRoutes-C9yprVKV.js} +1 -1
  5. package/dist/assets/{BillPayRoutes-D5KWvYEu.js → BillPayRoutes-BwckjZdM.js} +1 -1
  6. package/dist/assets/{BusinessVerificationPageScreen-B4Ydn5q-.js → BusinessVerificationPageScreen-BmpszVa6.js} +2 -2
  7. package/dist/assets/{ChargeCardRoutes-ClxIUSvt.js → ChargeCardRoutes-BxuEDDTO.js} +8 -8
  8. package/dist/assets/{CompanyPassportScreen-C-PG6LRZ.js → CompanyPassportScreen-QLJSDasM.js} +1 -1
  9. package/dist/assets/{ConnectionAuthScreen-SPlAQ_Np.js → ConnectionAuthScreen-BLkKgUWY.js} +1 -1
  10. package/dist/assets/CustomerOnboardingAuthScreen-BmA6le42.js +1 -0
  11. package/dist/assets/{CustomerOnboardingRoutes-DPukj_Rw.js → CustomerOnboardingRoutes-CjZn-P_R.js} +3 -3
  12. package/dist/assets/{DashboardRoutes-hwqRQl7V.js → DashboardRoutes-BEdTreDV.js} +4 -4
  13. package/dist/assets/{DefaultTenantHome-CJT8TR8y.js → DefaultTenantHome-CKMvFqyU.js} +1 -1
  14. package/dist/assets/{DomesticWireDetailScreen-D0FJ0DFE.js → DomesticWireDetailScreen-B6iZuZi9.js} +3 -3
  15. package/dist/assets/DrawerScreen-D9KNdVWU.js +1 -0
  16. package/dist/assets/{EntityDetailRoutes-OIVD1I9e.js → EntityDetailRoutes-h1r5F4lk.js} +1 -1
  17. package/dist/assets/{ExpenseAutomationRoutes-Bddv7sbf.js → ExpenseAutomationRoutes-DAMKNWnc.js} +4 -4
  18. package/dist/assets/{FeaturePreviewScreen-BlSIKXFS.js → FeaturePreviewScreen-B8pdIx01.js} +1 -1
  19. package/dist/assets/{HubSpotOAuthCallbackScreen-CLjAH-ee.js → HubSpotOAuthCallbackScreen-C8WGP4r8.js} +1 -1
  20. package/dist/assets/{MagicLinkRoutes-BQnKzZaB.js → MagicLinkRoutes-CZyhodZT.js} +6 -6
  21. package/dist/assets/{MagicLinkSignInScreen-uHKvnjU8.js → MagicLinkSignInScreen-CeeQ9_4n.js} +1 -1
  22. package/dist/assets/{MobileAppDrawer-Dm68rJiS.js → MobileAppDrawer-D63DUeYO.js} +1 -1
  23. package/dist/assets/NotFoundScreen-CqbkZ3cL.js +1 -0
  24. package/dist/assets/{NotificationRoutes-YFiOMG6k.js → NotificationRoutes-D2GyAhqQ.js} +1 -1
  25. package/dist/assets/{OAuthConsentScreen-kpejh2UL.js → OAuthConsentScreen-CBnSZQkP.js} +1 -1
  26. package/dist/assets/{PandLWithForecastRoutes-DOPekVsK.js → PandLWithForecastRoutes-CP-r1RAR.js} +1 -1
  27. package/dist/assets/{PeopleRoutes-CHh9S1ES.js → PeopleRoutes-ffakgU88.js} +4 -4
  28. package/dist/assets/PerformanceRoutes-CtBeVFZs.js +1 -0
  29. package/dist/assets/{Preview-63x8M4Zb.js → Preview-CgeohER3.js} +1 -1
  30. package/dist/assets/{QBOConnectionScreen-CVxTOUos.js → QBOConnectionScreen-DwjTsdr-.js} +1 -1
  31. package/dist/assets/ReferralListScreen-BN980Avs.js +5 -0
  32. package/dist/assets/{ReimbursementApprovalRoutes-BXvb2Znx.js → ReimbursementApprovalRoutes-BU939_9A.js} +1 -1
  33. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-obTxBD8v.js → ReimbursementApprovalRuleDetailScreen-D-Epy7s3.js} +1 -1
  34. package/dist/assets/{ReimbursementRoutes-DzuMZgdz.js → ReimbursementRoutes-Cijh7790.js} +5 -5
  35. package/dist/assets/{ReportsRoutes-Du1FN7AL.js → ReportsRoutes-C7GuLF9Y.js} +1 -1
  36. package/dist/assets/RewardsRoutes-C4GJzsSR.js +1 -0
  37. package/dist/assets/{ScreenRoutes-C1s0Nxp2.js → ScreenRoutes-d397mPpj.js} +2 -2
  38. package/dist/assets/{SettingsRoutes-CvzF47Mb.js → SettingsRoutes-Btxj7MHd.js} +7 -7
  39. package/dist/assets/{SetupPagesScreen-D9to9dY7.js → SetupPagesScreen-CaZ5sjLL.js} +1 -1
  40. package/dist/assets/{SignInScreen-C-T0IXf6.js → SignInScreen-BxBTBlxt.js} +1 -1
  41. package/dist/assets/{SignOutScreen-Czon70VP.js → SignOutScreen-CMu9PUV8.js} +1 -1
  42. package/dist/assets/{TaskListScreen-Xzvf8Hgp.js → TaskListScreen-DMmT5kH1.js} +2 -2
  43. package/dist/assets/TaskRoutes-oU4646H2.js +9 -0
  44. package/dist/assets/TransactionDetailRoutes-IsbVRnff.js +1 -0
  45. package/dist/assets/{TransactionDetailScreen-Cx4z6equ.js → TransactionDetailScreen-BT_8PHE1.js} +2 -2
  46. package/dist/assets/TransactionListRoutes-PPd6O4oz.js +1 -0
  47. package/dist/assets/{TreasuryRoutes-Bsh24hmh.js → TreasuryRoutes-C6IEAW99.js} +1 -1
  48. package/dist/assets/{VendorsRoutes-Dghnmhef.js → VendorsRoutes-CqHiW9YV.js} +1 -1
  49. package/dist/assets/WiseConfirmationScreen-Db5wrG9p.js +12 -0
  50. package/dist/assets/{ZeniAccountRoutes-BwL43X6f.js → ZeniAccountRoutes-D3t36m88.js} +1 -1
  51. package/dist/assets/{ZeniAccountStatementScreen-CXCXyV_O.js → ZeniAccountStatementScreen-DPYnn_zH.js} +1 -1
  52. package/dist/assets/{accountMappingHelper-DEVWShIB.js → accountMappingHelper-BadOJrgB.js} +1 -1
  53. package/dist/assets/{analytics-CLyVqw3m.js → analytics-XmeShL-b.js} +1 -1
  54. package/dist/assets/{analyticsHelper-C6OV8Lji.js → analyticsHelper-D78arCNY.js} +1 -1
  55. package/dist/assets/{core-B8DAi0nh.js → core-BKodLOTU.js} +1 -1
  56. package/dist/assets/{decodeURIComponentSafe-2RJaUBNT.js → decodeURIComponentSafe-Dz-FxAXh.js} +1 -1
  57. package/dist/assets/{dnd-DNrenqEc.js → dnd-BfyJbD1v.js} +1 -1
  58. package/dist/assets/{empty-D1H0TyYI.js → empty-Bs2V19XY.js} +1 -1
  59. package/dist/assets/{empty-CMYkwe6B.js → empty-C0DVvfgl.js} +1 -1
  60. package/dist/assets/{emptyVideoElement-89AhO6II.js → emptyVideoElement-DD_qlIiS.js} +1 -1
  61. package/dist/assets/{epic-occCJYrK.js → epic-CCdQAsSW.js} +1 -1
  62. package/dist/assets/{getLocaleForTenant-CzzxyTLH.js → getLocaleForTenant-xCoWhIqf.js} +1 -1
  63. package/dist/assets/{index-CrWxCSey.js → index-BTQkz0ne.js} +1 -1
  64. package/dist/assets/{index-CVyF-mcC.js → index-Bx-YAKxu.js} +1 -1
  65. package/dist/assets/{index-DXkdnQWz.js → index-CIVbsoN9.js} +1 -1
  66. package/dist/assets/{index-o5I9Rsf6.js → index-DD_0oz3z.js} +1 -1
  67. package/dist/assets/{index-orAkddId.js → index-DJlAjjHg.js} +1 -1
  68. package/dist/assets/{index-eEUBMv7A.js → index-DVypn_X5.js} +1 -1
  69. package/dist/assets/{index-CrhTmqTp.js → index-DgXtqBbG.js} +8920 -8911
  70. package/dist/assets/{index-LbX_nh30.js → index-MsoGT9WZ.js} +2 -2
  71. package/dist/assets/{lexical-BbcB7U6u.js → lexical-QHBaN_fi.js} +1 -1
  72. package/dist/assets/{liveblocks-6nZkQHFl.js → liveblocks-BIjmAr8D.js} +1 -1
  73. package/dist/assets/{lottie-Cp94NU-O.js → lottie-CoPzS9gq.js} +1 -1
  74. package/dist/assets/{mui-DOBONCVx.js → mui-DlcK-nJn.js} +1 -1
  75. package/dist/assets/{pathToGoBack-CuzLi8kB.js → pathToGoBack-DYSbx7nv.js} +1 -1
  76. package/dist/assets/{pdf-B9LwAnPJ.js → pdf-BfwwIhDV.js} +4 -4
  77. package/dist/assets/{pdf-lib-B6W-Zb6c.js → pdf-lib-Cw1vv-7M.js} +1 -1
  78. package/dist/assets/{plaid-BJER8-rG.js → plaid-BGq6dat6.js} +1 -1
  79. package/dist/assets/{pusher-BKAvW8Ej.js → pusher-Ba7GdFnU.js} +1 -1
  80. package/dist/assets/{react-Az4VFoYA.js → react-B0jvhR0C.js} +1 -1
  81. package/dist/assets/{react-XdIGJaYE.js → react-B8I1LySP.js} +1 -1
  82. package/dist/assets/{react-DZuEKM1F.js → react-Bv1Y4QDF.js} +1 -1
  83. package/dist/assets/{react-Ch8Qff_2.js → react-C5n0iyPE.js} +1 -1
  84. package/dist/assets/{react-BsAtiQ73.js → react-D1VRQLOa.js} +1 -1
  85. package/dist/assets/{react-m-TEyxm9.js → react-FneXzKm6.js} +1 -1
  86. package/dist/assets/{recharts-CDgByeDS.js → recharts-DpNbjrAJ.js} +1 -1
  87. package/dist/assets/{routePaths-9AUhVaii.js → routePaths-B97q6EVJ.js} +1 -1
  88. package/dist/assets/{sentry-Dr5FPm4d.js → sentry-C7Z-vgKp.js} +1 -1
  89. package/dist/assets/{url-DhbS62gt.js → url-D1xX9P3E.js} +1 -1
  90. package/dist/assets/{url-CgpVackm.js → url-DKuXMSAi.js} +1 -1
  91. package/dist/assets/useAskAiCfoHostNavButtonProps-W_9VZ3t4.js +1 -0
  92. package/dist/assets/{useDeviceId-fW8BPEnA.js → useDeviceId-SVGHxs8k.js} +1 -1
  93. package/dist/assets/{useFetchSuggestedQuestionsWhenReady-Z1RjapDK.js → useFetchSuggestedQuestionsWhenReady-Cz8Tf2BI.js} +1 -1
  94. package/dist/assets/{useInitialThreadRequest-D2GYlrz4.js → useInitialThreadRequest-CAZ-K4F8.js} +1 -1
  95. package/dist/assets/{utils-XBrV3QeH.js → utils-DuhvVf2U.js} +1 -1
  96. package/dist/assets/{withTransactionSidePanel-C0vsYVl3.js → withTransactionSidePanel-L5vbffjs.js} +1 -1
  97. package/dist/assets/{zeni-epic-state-DITtSXPQ.js → zeni-epic-state-BIWtgoix.js} +3 -3
  98. package/dist/index.html +1 -1
  99. package/package.json +2 -2
  100. package/dist/assets/AddressRoutes-BNwO1euv.js +0 -1
  101. package/dist/assets/AddressScreen-CQqRda3s.js +0 -9
  102. package/dist/assets/CustomerOnboardingAuthScreen-BLm7f-pp.js +0 -1
  103. package/dist/assets/DrawerScreen-BJd9OmNB.js +0 -1
  104. package/dist/assets/NotFoundScreen-DsEEwwTx.js +0 -1
  105. package/dist/assets/PerformanceRoutes-BH98gSrX.js +0 -1
  106. package/dist/assets/ReferralListScreen-bP3lCOJY.js +0 -5
  107. package/dist/assets/RewardsRoutes-Be9Ge6Wf.js +0 -1
  108. package/dist/assets/TaskRoutes-DCXtf0K8.js +0 -9
  109. package/dist/assets/TransactionDetailRoutes-BTqPhOdT.js +0 -1
  110. package/dist/assets/TransactionListRoutes-DRiy7_ZT.js +0 -1
  111. package/dist/assets/WiseConfirmationScreen-D2hivvGc.js +0 -12
  112. package/dist/assets/useAskAiCfoHostNavButtonProps-DH6rjWyj.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-CrhTmqTp.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-Dr5FPm4d.js"><link rel="modulepreload" crossorigin href="/assets/core-B8DAi0nh.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-DITtSXPQ.js"><link rel="modulepreload" crossorigin href="/assets/mui-DOBONCVx.js"><link rel="modulepreload" crossorigin href="/assets/analytics-CLyVqw3m.js"><link rel="modulepreload" crossorigin href="/assets/utils-XBrV3QeH.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-DgXtqBbG.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-C7Z-vgKp.js"><link rel="modulepreload" crossorigin href="/assets/core-BKodLOTU.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-BIWtgoix.js"><link rel="modulepreload" crossorigin href="/assets/mui-DlcK-nJn.js"><link rel="modulepreload" crossorigin href="/assets/analytics-XmeShL-b.js"><link rel="modulepreload" crossorigin href="/assets/utils-DuhvVf2U.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.73-qa",
3
+ "version": "5.0.74-qa",
4
4
  "files": [
5
5
  "dist/**/*"
6
6
  ],
@@ -29,7 +29,7 @@
29
29
  "@stripe/stripe-js": "^4.4.0",
30
30
  "@zeniai/client-analytics": "2.0.7",
31
31
  "@zeniai/client-epic-state": "5.0.38",
32
- "@zeniai/web-components": "4.0.80",
32
+ "@zeniai/web-components": "4.0.81",
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-6nZkQHFl.js";import{A as i}from"./AddressScreen-CQqRda3s.js";import s from"./NotFoundScreen-DsEEwwTx.js";import"./sentry-Dr5FPm4d.js";import{n as d,o as r}from"./core-B8DAi0nh.js";import"./zeni-epic-state-DITtSXPQ.js";import"./recharts-CDgByeDS.js";import"./index-CrhTmqTp.js";import"./mui-DOBONCVx.js";import"./analytics-CLyVqw3m.js";import"./plaid-BJER8-rG.js";import"./dnd-DNrenqEc.js";import"./stripe-DMRn4zHo.js";import"./lottie-Cp94NU-O.js";import"./lexical-BbcB7U6u.js";import"./pdf-B9LwAnPJ.js";import"./utils-XBrV3QeH.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]="624154e3-3694-4a3c-b645-a66b8e12404c",t._sentryDebugIdIdentifier="sentry-dbid-624154e3-3694-4a3c-b645-a66b8e12404c")}catch{}})();function _(){return e.jsxs(d,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(i,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(i,{})}),e.jsx(r,{path:"*",element:e.jsx(s,{})})]})}export{_ as default};
@@ -1,9 +0,0 @@
1
- import{j as d}from"./liveblocks-6nZkQHFl.js";import{a as b}from"./sentry-Dr5FPm4d.js";import{j as T,h as _,u as E,l as j,g as B,k as M}from"./core-B8DAi0nh.js";import{Z as $,m as D,z as L,k as K,B as F,w as G,c as C,e as S,h as J,f as h,p as z}from"./index-CrhTmqTp.js";import{JE as k,gW as O,eO as R,JF as U,c1 as N,JG as V,kg as q}from"./zeni-epic-state-DITtSXPQ.js";import{n as H}from"./mui-DOBONCVx.js";import W from"./NotFoundScreen-DsEEwwTx.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]="3805762e-a6be-4bee-b81b-a861219fe04d",e._sentryDebugIdIdentifier="sentry-dbid-3805762e-a6be-4bee-b81b-a861219fe04d")}catch{}})();const Z=H.div`
2
- display: flex;
3
- height: 100vh;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `,Q=M(function(e,t){const{addressId:o,isSubPage:i,addressType:c}=t,l=R(e),a=t.roleMap!=null&&U(t.roleMap),r=i||c==="user_address"||N(l?.userRole??[])||a?void 0:"readonly";if(o==null){const s=V(c,e);return{addressToEdit:s?.addressToCreate,loadingState:s?.status?.fetchState,googleAPIKey:h.googleMapsAPIKey,isDisabled:r,isSubPage:i,dontShowSaveConfirmationPopup:t.dontShowSaveConfirmation}}const n=k(e,o);return{addressToEdit:n.address,loadingState:n.fetchState,googleAPIKey:h.googleMapsAPIKey,isDisabled:r}},function(e,t){const{navigate:o,location:i,addressType:c}=t,l=a=>{if(a==="express-pay")o("../express-pay/add-wire");else{const r=i.state,n=z(r?.pathnameStackToGoBack);let s=n.poppedPathname??w();const u=r?.queryParams;if(u){const g=new URLSearchParams(u).toString();g&&(s=`${s}?${g}`)}o(s,{state:{pathnameStackToGoBack:n.newStack}})}};return{onSubmitHandler:a=>{const r=X(a);e(q({addressType:c,addressToCreate:r})),C?.trackSaveAddressClicked(S.Event.saveAddressClicked,{street:a.street.addressString,city:a.city,state:a.state,country:a.country.selectedOption??"",postalCode:a.postalCode,suite:a.suite,secondaryInfo:a.secondaryInfo}),l(t.bankAccountContext)},onCancel:()=>{l(t.bankAccountContext)}}})(J);function de({isSubPage:e,hideAddressSubTitle:t=!1,hideAddressBackButton:o=!1,dontShowSaveConfirmation:i,accountContext:c,addressTypeParam:l}){const a=T(),r=_(),n=E(),{addressId:s,addressType:u}=j(),g=$(),I=D(),v=L.getSignedInUser(),[f,x]=b.useState(s==null),p=B(m=>s!=null?k(m,s).fetchState:"Not-Started"),A=K();if(v==null)throw Error("Can't access address page without signing in...");const P=m=>m.trackPageLoaded(s!=null?S.Event.editAddress:S.Event.addAddress),y=l??u;return b.useEffect(()=>{f||s==null||(x(!0),r(O(s,!1)))},[f,s,r]),y==null||y.match(/(user_address|company_address|company_registered_address|vendor_address|officer_([1-9]|10)_address)$/g)?!f&&p==="Not-Started"||f&&p==="In-Progress"?d.jsx(F,{fetchState:p,style:{backgroundColor:I.colors.grey5}}):s!=null&&p==="Error"?(a(`${w(1)}/new`,{replace:!0}),d.jsx(d.Fragment,{})):d.jsxs(d.Fragment,{children:[d.jsx(G,{analytics:C,onLoad:P}),d.jsx(Z,{windowSize:g,children:d.jsx(Q,{location:n,navigate:a,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:t,addressId:s,addressType:y,dontShowSaveConfirmation:i,bankAccountContext:c,roleMap:A?.loggedInUserRoleMap})})]}):d.jsx(W,{})}const w=(e=2)=>{let t="../";for(let o=0;o<e;o++)t=`${t}../`;return t},X=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng});export{de as A,X as t};
@@ -1 +0,0 @@
1
- import{j as i}from"./liveblocks-6nZkQHFl.js";import{z as a}from"./index-CrhTmqTp.js";import{g as n}from"./QBOConnectionScreen-CVxTOUos.js";import"./sentry-Dr5FPm4d.js";import{u as p,N as s}from"./core-B8DAi0nh.js";import"./zeni-epic-state-DITtSXPQ.js";import"./recharts-CDgByeDS.js";import"./mui-DOBONCVx.js";import"./analytics-CLyVqw3m.js";import"./plaid-BJER8-rG.js";import"./dnd-DNrenqEc.js";import"./stripe-DMRn4zHo.js";import"./lottie-Cp94NU-O.js";import"./lexical-BbcB7U6u.js";import"./pdf-B9LwAnPJ.js";import"./utils-XBrV3QeH.js";import"./empty-CMYkwe6B.js";import"./pdf-lib-B6W-Zb6c.js";import"./index-DXkdnQWz.js";import"./url-CgpVackm.js";import"./index-o5I9Rsf6.js";import"./decodeURIComponentSafe-2RJaUBNT.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]="8d904e89-6b8e-4c86-980c-585a84d9d789",t._sentryDebugIdIdentifier="sentry-dbid-8d904e89-6b8e-4c86-980c-585a84d9d789")}catch{}})();const U=()=>{const t=p(),{code:o,realmId:r,state:e}=n(t.search),d=a.getSignedInUser()?.userId??"";if(f(o,r,e,d)===!0){const m=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return i.jsx(s,{to:m})}return i.jsx(s,{to:"../../"})},f=(t,o,r,e)=>t!=""&&o!=""&&r!=""&&e!=null&&e!="";export{U as default,f as hasValidParams};
@@ -1 +0,0 @@
1
- import{j as i}from"./liveblocks-6nZkQHFl.js";import{Z as l,E as f,m as c}from"./index-CrhTmqTp.js";import{D as b}from"./mui-DOBONCVx.js";import"./sentry-Dr5FPm4d.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]="5f0ed12e-e902-402b-85e7-22752bbd60d8",e._sentryDebugIdIdentifier="sentry-dbid-5f0ed12e-e902-402b-85e7-22752bbd60d8")}catch{}})();const p={drawerLeftMargin:new f(0,0,240)};function m(e){const{isOpen:r,drawerLeftMargin:o,children:t,onClose:s}=e,n=l(),d=o?.valuePx(n)??p.drawerLeftMargin.valuePx(n),a=c();return i.jsx(b,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${d})`}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.8,cursor:"pointer"}}},onClose:s,children:t})}export{m as D};
@@ -1 +0,0 @@
1
- import{j as e}from"./liveblocks-6nZkQHFl.js";import{j as r,k as i}from"./core-B8DAi0nh.js";import{K as n}from"./index-CrhTmqTp.js";import"./mui-DOBONCVx.js";import"./sentry-Dr5FPm4d.js";import"./zeni-epic-state-DITtSXPQ.js";import"./recharts-CDgByeDS.js";import"./analytics-CLyVqw3m.js";import"./plaid-BJER8-rG.js";import"./dnd-DNrenqEc.js";import"./stripe-DMRn4zHo.js";import"./lottie-Cp94NU-O.js";import"./lexical-BbcB7U6u.js";import"./pdf-B9LwAnPJ.js";import"./utils-XBrV3QeH.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]="8be0e406-e338-494a-8e0a-372030582bac",o._sentryDebugIdIdentifier="sentry-dbid-8be0e406-e338-494a-8e0a-372030582bac")}catch{}})();const a=i(null,function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}})(n);function h(){const o=r();return e.jsx(a,{navigate:o})}export{h as default};
@@ -1 +0,0 @@
1
- import{j as s}from"./liveblocks-6nZkQHFl.js";import E from"./NotFoundScreen-DsEEwwTx.js";import{a as r}from"./sentry-Dr5FPm4d.js";import{j as _,u as v,g as p,l as M,h as P,N as U,k as O,n as z,o as b}from"./core-B8DAi0nh.js";import{eO as B,Pn as h,bo as F,bn as N,hg as V,gM as q}from"./zeni-epic-state-DITtSXPQ.js";import{q as $,z as I,cv as G}from"./index-CrhTmqTp.js";import"./mui-DOBONCVx.js";import{u as H}from"./useAskAiCfoHostNavButtonProps-DH6rjWyj.js";import{c as J}from"./useFetchSuggestedQuestionsWhenReady-Z1RjapDK.js";import{M as K}from"./MobileAppDrawer-Dm68rJiS.js";import"./recharts-CDgByeDS.js";import"./analytics-CLyVqw3m.js";import"./plaid-BJER8-rG.js";import"./dnd-DNrenqEc.js";import"./stripe-DMRn4zHo.js";import"./lottie-Cp94NU-O.js";import"./lexical-BbcB7U6u.js";import"./pdf-B9LwAnPJ.js";import"./utils-XBrV3QeH.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]="4ebf1bbf-01bc-4626-be56-98ddd422082a",e._sentryDebugIdIdentifier="sentry-dbid-4ebf1bbf-01bc-4626-be56-98ddd422082a")}catch{}})();const L=O(function(e){const t=I.getSignedInUser(),c=e.tenantState.currentTenantId,o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:c??""},{aggregatedReportViewState:n}=h(e);return{authParams:o,isDisabled:!1,loggedInUser:t,aggregatedReport:n}},function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}})(G),Q=()=>{const e=_(),t=v(),c=$(),o=p(a=>B(a)),{aggregatedReportViewState:n}=p(a=>h(a)),{tenantEmailDomain:f}=M(),u=P(),l=I.getSignedInUser();if(l==null)throw new Error("Can't access this page without signing in...");const m=r.useRef(!1),[w,C]=r.useState(!1),S=F(o?.userRole??[]),k=o?.userRole?.includes("bookkeeping_admin")??!1,x=N(l),y=S||k||x,d=r.useCallback((a,i,T)=>{u(V({fromMonth:a,toMonth:i,cacheOverride:T}))},[]);r.useEffect(()=>{n?.fetchState==="Completed"&&m.current&&(u(q({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),m.current=!1)},[n?.fetchState]);const D=r.useCallback((a,i)=>{n!=null&&n?.fetchState==="In-Progress"||d(a,i,!0),m.current=!0},[n?.fetchState,d]),j=r.useCallback((a,i)=>{d(a,i,!1)},[d]),g=a=>{C(a)},{isAiCfoAccessEnabled:R,onAskAiCfoClick:A}=H({mobileExploreReferrer:"Performance"});return J({isDataReady:n?.fetchState==="Completed"}),y?s.jsxs(s.Fragment,{children:[s.jsx(K,{isAppContentDrawerOpen:w,handleDrawerToggle:g}),s.jsx(L,{navigate:e,location:t,themeState:c,currentTenant:o,signedInUser:l,tenantEmailDomain:f,onReload:D,onTimeRangeSelect:j,handleDrawerToggle:g,isAiCfoAccessEnabled:R,onAskAiCfoClick:A})]}):s.jsx(U,{to:`/${f}/dashboard`,replace:!0})};function pe(){return s.jsxs(z,{children:[s.jsx(b,{path:"*",element:s.jsx(Q,{})}),s.jsx(b,{path:"*",element:s.jsx(E,{})})]})}export{pe as default};
@@ -1,5 +0,0 @@
1
- import{j as s}from"./liveblocks-6nZkQHFl.js";import{a as o}from"./sentry-Dr5FPm4d.js";import{g as f,j as L,h as M,u as V,k as _}from"./core-B8DAi0nh.js";import{m as F,Z as N,z as R,b3 as W,E as U,R as $,w as z,c as l,e as Y,a3 as Q,b4 as Z}from"./index-CrhTmqTp.js";import{eY as q,eO as G,Ma as I,Mb as J,tI as K,ty as g,e_ as X,bN as ee,tD as ae,Mc as re}from"./zeni-epic-state-DITtSXPQ.js";import{D as ne,e as te,n as se,S as oe}from"./mui-DOBONCVx.js";import{u as ie}from"./useAskAiCfoHostNavButtonProps-DH6rjWyj.js";import{c as le}from"./useFetchSuggestedQuestionsWhenReady-Z1RjapDK.js";import{M as ce}from"./MobileAppDrawer-Dm68rJiS.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]="c7275b0d-f511-4069-86cb-78a8a471a0d4",e._sentryDebugIdIdentifier="sentry-dbid-c7275b0d-f511-4069-86cb-78a8a471a0d4")}catch{}})();const de={overlayWidth:new U(100,100,30)},fe=({isReferralDrawerOpen:e,closeDrawerHandler:a})=>{const r=F(),n=N();if(R.getSignedInUser()==null)throw Error("Can't access How Referral works without signing in...");const i=()=>{a(!0)},u=f(c=>q(c));return s.jsx(ne,{anchor:"right",open:e,PaperProps:{style:{width:de.overlayWidth.valuePercentage(n),boxShadow:"none"}},slotProps:{backdrop:{style:{opacity:.75,backgroundColor:r.colors.black,cursor:"pointer"}}},onClose:()=>i(),children:s.jsx(te,{in:e,direction:"left",children:s.jsx(ue,{onClick:c=>c.stopPropagation(),children:s.jsx(W,{onDismissClick:i,rewardsPlan:u.rewardsPlan})})})})},ue=se(oe)`
2
- display: flex;
3
- min-height: 100%;
4
- flex-direction: column;
5
- `,P="refer-and-earn-status-update",we=_(function(e){const a=I(e),r=e.referralViewState.rewardsPlanFetchState,n=ee([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(re({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(ae(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))}}})(Q(Z));function Se({isReferralDrawerOpen:e}){const a=L(),r=M(),n=V(),[i,u]=o.useState(!1),[c,D]=o.useState(!1),[x,E]=o.useState(!1),[k,m]=o.useState(!1),w=R.getSignedInUser(),C=f(t=>G(t)),h=f(t=>I(t)),b=h.fetchState,p=f(t=>t.referralViewState.rewardsPlanFetchState),y=J([h,p]),{areTenantIdsInSync:d}=$();o.useEffect(()=>{C?.rewardsLastViewedTime==null&&x===!1&&(r(K()),E(!0))},[]),o.useEffect(()=>{!i&&b==="Not-Started"&&d&&(u(!0),r(g(!0)))},[b,r,d]),o.useEffect(()=>{!c&&p.fetchState==="Not-Started"&&d&&(D(!0),r(X(!0)))},[p,r,d]),o.useEffect(()=>{m(e!=null&&e===!0)},[e]);const[j,A]=o.useState(!1),v=t=>{A(t)},{isAiCfoAccessEnabled:O,onAskAiCfoClick:T}=ie({mobileExploreReferrer:"Rewards"});le({isDataReady:y===!0});const B={events:w?.userId!=null?[`private-encrypted-${w.userId}.${P}`]:[],eventCallback:(t,S,H)=>{H.onEventReceived(t)}};return s.jsxs(s.Fragment,{children:[y===!0?s.jsx(z,{analytics:l,onLoad:t=>(S=>{w!=null&&S.trackPageLoaded(Y.Event.rewardsPageViewed)})(t)}):null,s.jsx(ce,{isAppContentDrawerOpen:j,handleDrawerToggle:v}),k===!0?s.jsx(fe,{closeDrawerHandler:()=>{m(!1),a("..")},isReferralDrawerOpen:k}):null,s.jsx(we,{location:n,navigate:a,currentTenant:C,onClickMenuIcon:()=>{v(!0)},isAiCfoAccessEnabled:O,onAskAiCfoClick:T,...B})]})}export{Se as R};
@@ -1 +0,0 @@
1
- import{j as a}from"./liveblocks-6nZkQHFl.js";import{y as x,z as j,aK as y,w as E,c as p,e as F,cF as P,S as L}from"./index-CrhTmqTp.js";import"./mui-DOBONCVx.js";import l from"./NotFoundScreen-DsEEwwTx.js";import{a as u}from"./sentry-Dr5FPm4d.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-B8DAi0nh.js";import{eO as z,PW as C,ML as Y,PX as _,tI as G,e_ as O,PY as K,tG as M}from"./zeni-epic-state-DITtSXPQ.js";import{R as w}from"./ReferralListScreen-bP3lCOJY.js";import"./recharts-CDgByeDS.js";import"./analytics-CLyVqw3m.js";import"./plaid-BJER8-rG.js";import"./dnd-DNrenqEc.js";import"./stripe-DMRn4zHo.js";import"./lottie-Cp94NU-O.js";import"./lexical-BbcB7U6u.js";import"./pdf-B9LwAnPJ.js";import"./utils-XBrV3QeH.js";import"./useAskAiCfoHostNavButtonProps-DH6rjWyj.js";import"./useFetchSuggestedQuestionsWhenReady-Z1RjapDK.js";import"./MobileAppDrawer-Dm68rJiS.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]="2cdf5223-04ce-4b03-bc04-27370287c87c",e._sentryDebugIdIdentifier="sentry-dbid-2cdf5223-04ce-4b03-bc04-27370287c87c")}catch{}})();const W=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,i=j.getSignedInUser();return{onDismissClick:()=>{e(_()),n("..")},onSendClick:()=>{if(i!=null){const s=[],r=[];t.inviteFormCompayData.forEach(c=>{s.push(c.companyName),r.push(c.emailIds[0])}),p.trackInviteEmailClicked("send",s,r,s.length)}e(M())},onUpdateInviteFormLocalData:s=>{e(K({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{i!=null&&p.trackInviteEmailClicked("cancel")}}})(P),X=()=>{const e=T(),[t,n]=u.useState(!1),[i,s]=u.useState(!1),r=b(o=>z(o)),c=V(),k=A(),{useDynamicConfig:g}=x(),f=j.getSignedInUser();if(f==null)throw Error("Can't access invite referral screen without signing in...");const m=b(o=>C(o)),D=f?.firstName!=null?f.firstName:"User",{configValue:h}=g(y.zeniCardsConfig),{configValue:S}=g(y.zeniAccountsConfig),v=Y(S);u.useEffect(()=>{e(_()),r?.rewardsLastViewedTime==null&&i===!1&&(e(G()),s(!0))},[]),u.useEffect(()=>{t||m.fetchState!=="Not-Started"||(n(!0),e(O(!0)))},[m.fetchState,e]);const I=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[m.fetchState==="Completed"?a.jsx(E,{analytics:p,onLoad:o=>(N=>N.trackPageLoaded(F.Event.inviteEmailViewed))(o)}):null,a.jsx(W,{navigate:c,location:k,currentTenant:r,companyName:I,userName:D,inviteFormCompayData:m.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:v.maxAnnualPercentageYield})]})};function fe(){const{useFeatureGate:e}=x(),{isFeatureEnabled:t}=e(L.isReferralFeatureEnabled);return a.jsxs(U,{children:[a.jsx(d,{path:"/",element:t?a.jsx(w,{}):a.jsx(l,{})}),a.jsx(d,{path:"how-it-works",element:t?a.jsx(w,{isReferralDrawerOpen:!0}):a.jsx(l,{})}),a.jsx(d,{path:"refer/*",element:t?a.jsx(X,{}):a.jsx(l,{})}),a.jsx(d,{path:"*",element:a.jsx(l,{})})]})}export{fe as default};
@@ -1,9 +0,0 @@
1
- import{j as n}from"./liveblocks-6nZkQHFl.js";import se from"./NotFoundScreen-DsEEwwTx.js";import{a as c}from"./sentry-Dr5FPm4d.js";import{j as O,h as Z,g,u as ne,l as oe,N as ie,k as re,n as ce,o as f}from"./core-B8DAi0nh.js";import{FS as M,FV as le,FY as de,eO as Q,PZ as H,Fa as J,EU as pe,FC as ue,Fv as ke,P_ as K,P$ as V,EQ as me,EN as fe,pO as ge,pC as he,k8 as Se,F0 as be,Q0 as Ie,F5 as Te,F2 as Ee,EX as Ce,Ff as Ge,Fe as De}from"./zeni-epic-state-DITtSXPQ.js";import{z as G,cG as Fe,q as xe,y as ye,S as T,p as W,n as j,w as je,c as q,e as we,cH as ve,f as z,aq as Re}from"./index-CrhTmqTp.js";import{n as Pe}from"./mui-DOBONCVx.js";import{u as Be}from"./useInitialThreadRequest-D2GYlrz4.js";import{M as Ue}from"./MobileAppDrawer-Dm68rJiS.js";import Le from"./TaskListScreen-Xzvf8Hgp.js";import"./recharts-CDgByeDS.js";import"./analytics-CLyVqw3m.js";import"./plaid-BJER8-rG.js";import"./dnd-DNrenqEc.js";import"./stripe-DMRn4zHo.js";import"./lottie-Cp94NU-O.js";import"./lexical-BbcB7U6u.js";import"./pdf-B9LwAnPJ.js";import"./utils-XBrV3QeH.js";import"./useAskAiCfoHostNavButtonProps-DH6rjWyj.js";import"./useFetchSuggestedQuestionsWhenReady-Z1RjapDK.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]="29adc8af-a60d-4dbb-b927-ba8daf1f4420",e._sentryDebugIdIdentifier="sentry-dbid-29adc8af-a60d-4dbb-b927-ba8daf1f4420")}catch{}})();function $e(){const e=O(),t=Z(),s=G.getSignedInUser(),{cannedResponses:d,fetchState:r,saveFetchState:p}=g(o=>o.cannedResponsesState),l=c.useCallback(()=>{t(M())},[t]),k=c.useCallback((o,h,S)=>{t(le({name:o,content:h,cannedResponseId:S}))},[t]),a=c.useCallback(o=>{t(de({cannedResponseId:o}))},[t]);if(s==null)throw Error("Can't access quick responses page without signing in...");return n.jsx(Fe,{cannedResponses:d,isLoading:r==="In-Progress"||r==="Not-Started",isSaving:p==="In-Progress",onBackClick:()=>e(-1),onDelete:a,onFetch:l,onSave:k})}let _,A=[];const Ne=re(function(e,t){const{location:s,taskGroupId:d}=t,r=K(e,t.taskId),p=Q(e),l=d!=null?V(e.taskGroupState,d):void 0,k=G.getSignedInUser(),a=p.tenantId,o={userId:k?.userId??"",sessionId:k?.zeniSessionId??"",tenantId:a??""},h=H(e),{tenantEmailDomain:S}=p,E=r.recurringSourceTaskId,D=E!=null?`${z.appUrl}/${S}/tasks/${encodeURIComponent(E)}`:void 0;var b;return{taskDetailSelectorView:r,authParams:o,isZeniUser:G.isZeniUser(),userGroupList:((b=e.userGroupsState.userGroupByUserGroupId)!==_&&(_=b,A=Object.values(b)),A),isNewClicked:s.state?.message==="comingFromTaskListPage",filesEndPoint:Re.fileMicroServiceBaseUrl,companyName:t.currentTenant.companyName,companyId:t.currentTenant.companyId,currentUrl:`${z.appUrl}${t.location.pathname}`,cannedResponses:e.cannedResponsesState.cannedResponses,isCannedResponsesLoading:e.cannedResponsesState.fetchState==="In-Progress",recurringSourceTaskUrl:D,tagListView:h,taskGroupName:d!=null&&l!=null&&l.isDefault===!1?l.name:void 0,taskGroupList:e.taskGroupViewState.taskGroupsIds.map(u=>V(e.taskGroupState,u)).filter(u=>u!=null&&!u.isDeleted).map(u=>({id:u.id,name:u.name,isDefault:u.isDefault}))}},function(e,t){const{taskId:s,navigate:d,currentTenant:r,location:p,taskGroupId:l}=t,{tenantEmailDomain:k}=r;return{onSaveChangesToLocalStore:a=>{e(De({taskDetailLocalData:a,taskId:s}))},onSaveDetailClick:a=>{e(Ge(s,a??l))},onArchiveTaskClick:()=>{t.taskId!=null&&e(Ce(t.taskId))},onSnoozeTask:(a,o)=>{e(Ee(a,o))},onUnsnoozeTask:a=>{e(Te(a))},onDismissClick:()=>{if(p.state?.message==="triggerBackClick"){const a=W(p.state?.pathnameStackToGoBack),o=a.poppedPathname??"../../dashboard";d(o,{state:{pathnameStackToGoBack:a.newStack}})}else{const a=w(k),o=j(p.state?.pathnameStackToGoBack,p.pathname);d(a,{state:{pathnameStackToGoBack:o}})}e(Ie({taskId:s}))},onDeleteTaskClick:()=>{e(be(s))},updateFilesEntity:a=>{e(Se({files:a}))},onDeleteFile:a=>{e(he(a))},onEditFileName:(a,o)=>{e(ge(a,o.split(".")[0]))},onReloadTaskDetailPage:()=>{e(J(!1,s))},onCreateTagClick:a=>{e(fe(a,s))},onDeleteTagClick:a=>{e(me(a,s))},onFetchCannedResponses:()=>{e(M())},onManageTemplatesClick:()=>{d(`/${r.tenantEmailDomain}/tasks/quick-responses`)}}})(ve);function y(){const e=O(),t=Z(),s=ne(),d=xe(),{taskId:r,taskGroupId:p}=oe(),l=g(i=>Q(i)),k=Be(l?.companyId),{useFeatureGate:a}=ye(),{isFeatureEnabled:o}=a(T.isTaskSnoozeEnabled),{isFeatureEnabled:h}=a(T.isTaskVisibilityEnabled),{isFeatureEnabled:S}=a(T.isTaskCannedResponsesEnabled),{isFeatureEnabled:E}=a(T.isTaskRecurringParentEnabled),{isFeatureEnabled:D}=a(T.isTaskGroupAssigneesEnabled),[b,u]=c.useState(!1),[v,X]=c.useState(!1),[R,Y]=c.useState(!1),[P,ee]=c.useState(!1),[B,F]=c.useState(!1),I=c.useRef(!1),C=g(i=>i.taskListState.updateTasksFetchState.fetchState),U=g(i=>H(i)),L=g(i=>i.taskGroupViewState.fetchState);c.useEffect(()=>{v||(X(!0),t(J(!1,r)))},[v,t]),c.useEffect(()=>{R||U.fetchState==="Completed"||(Y(!0),t(pe()))},[R,t,U.fetchState]),c.useEffect(()=>{P||L==="Completed"||(ee(!0),t(ue()))},[P,t,L]);const ae=c.useCallback(()=>{r!=null&&(I.current=!1,t(ke([r],null,{isArchived:!1})),F(!0))},[t,r]);c.useEffect(()=>{if(B)if(C!=="In-Progress"){if(I.current){if(C==="Error")return F(!1),void(I.current=!1);if(C==="Completed"){F(!1),I.current=!1;const{tenantEmailDomain:i}=l;if(s.state?.message==="triggerBackClick"){const m=W(s.state?.pathnameStackToGoBack);e(m.poppedPathname??"../../dashboard",{state:{pathnameStackToGoBack:m.newStack}})}else{const m=w(i);e(m,{state:{pathnameStackToGoBack:j(s.state?.pathnameStackToGoBack,s.pathname)}})}}}}else I.current=!0},[B,C,l,s,e]);const $=g(i=>K(i,r)),x=$.fetchState,N=G.getSignedInUser();if(N==null)throw Error("Can't access task detail page without signing in...");if(x==="Error"&&$.error?.code===400){const{tenantEmailDomain:i}=l,m=w(i),te=j(s.state?.pathnameStackToGoBack,s.pathname);return n.jsx(ie,{to:m,state:{pathnameStackToGoBack:te}})}return n.jsxs(n.Fragment,{children:[x==="Completed"?n.jsx(je,{analytics:q,onLoad:i=>(m=>m.trackPageLoaded(we.Event.taskDetailPage))(i)}):null,n.jsxs(Ve,{children:[n.jsx(Ue,{isAppContentDrawerOpen:b,handleDrawerToggle:i=>{u(i)}}),n.jsx(Ne,{analytics:q,currentTenant:l,handleZeniLogoClick:()=>{d.toggle()},initialOpenThreadRequest:k,location:s,loggedInUser:N,navigate:e,taskGroupId:p,taskId:r,taskDetailFetchState:x,onUnarchiveTaskClick:ae,isTaskSnoozeEnabled:o,isTaskVisibilityEnabled:h,isTaskCannedResponsesEnabled:S,isTaskRecurringParentEnabled:E,isTaskGroupAssigneesEnabled:D})]})]})}const Ve=Pe.div`
2
- display: flex;
3
- min-height: 100%;
4
- width: 100%;
5
- flex: 1 1 auto;
6
- flex-direction: column;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey4};
9
- `,w=e=>`/${e}/tasks`;function ra(){return n.jsxs(ce,{children:[n.jsx(f,{path:"/new",element:n.jsx(y,{})}),n.jsx(f,{path:"/new/:taskGroupId",element:n.jsx(y,{})}),n.jsx(f,{path:"/group/:taskGroupId",element:n.jsx(Le,{})}),n.jsx(f,{path:"/quick-responses",element:n.jsx($e,{})}),n.jsx(f,{path:"/:taskId",element:n.jsx(y,{})}),n.jsx(f,{path:"*",element:n.jsx(se,{})})]})}export{ra as default};
@@ -1 +0,0 @@
1
- import{j as t}from"./liveblocks-6nZkQHFl.js";import i from"./NotFoundScreen-DsEEwwTx.js";import{T as r}from"./TransactionDetailScreen-Cx4z6equ.js";import"./sentry-Dr5FPm4d.js";import{n as a,o}from"./core-B8DAi0nh.js";import"./zeni-epic-state-DITtSXPQ.js";import"./recharts-CDgByeDS.js";import"./index-CrhTmqTp.js";import"./mui-DOBONCVx.js";import"./analytics-CLyVqw3m.js";import"./plaid-BJER8-rG.js";import"./dnd-DNrenqEc.js";import"./stripe-DMRn4zHo.js";import"./lottie-Cp94NU-O.js";import"./lexical-BbcB7U6u.js";import"./pdf-B9LwAnPJ.js";import"./utils-XBrV3QeH.js";import"./useAskAiCfoHostNavButtonProps-DH6rjWyj.js";import"./useFetchSuggestedQuestionsWhenReady-Z1RjapDK.js";import"./decodeURIComponentSafe-2RJaUBNT.js";import"./routePaths-9AUhVaii.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]="eb8d9915-3f2e-47a0-a713-5db167080b95",e._sentryDebugIdIdentifier="sentry-dbid-eb8d9915-3f2e-47a0-a713-5db167080b95")}catch{}})();function q(){return t.jsxs(a,{children:[t.jsx(o,{path:"/:transactionTypeEncoded/:transactionId",element:t.jsx(r,{})}),t.jsx(o,{path:"/:transactionTypeEncoded/:transactionId/page-not-found",element:t.jsx(i,{})}),t.jsx(o,{path:"/:transactionTypeEncoded/:transactionId/vendor/create",element:t.jsx(r,{})}),t.jsx(o,{path:"/*",element:t.jsx(r,{})})]})}export{q as default};
@@ -1 +0,0 @@
1
- import{j as i}from"./liveblocks-6nZkQHFl.js";import{j as U,u as R,h as q,l as Z,g as z,N as j,k as H,n as Ae,o as b}from"./core-B8DAi0nh.js";import{eO as $,iZ as T,Os as K,GV as ue,bq as ie,Ot as he,jA as Q,Kv as W,Ou as se,Ov as Se,bD as Y,GS as me,Ow as ke,Ox as re,Oy as Ie,Oz as pe,OA as be,OB as ve,OC as de,I6 as xe,bn as Ye}from"./zeni-epic-state-DITtSXPQ.js";import{D as X,c as C,c6 as ee,n as w,p as te,y as fe,S as J,R as Ee,z as Pe}from"./index-CrhTmqTp.js";import"./mui-DOBONCVx.js";import{a as y}from"./sentry-Dr5FPm4d.js";import{w as ae}from"./withTransactionSidePanel-C0vsYVl3.js";import{p as ne,b as ce}from"./routePaths-9AUhVaii.js";import{u as Oe}from"./utils-XBrV3QeH.js";import{d as O}from"./decodeURIComponentSafe-2RJaUBNT.js";import{Z as ze}from"./ZeniAccountStatementScreen-CXCXyV_O.js";import"./recharts-CDgByeDS.js";import"./analytics-CLyVqw3m.js";import"./plaid-BJER8-rG.js";import"./dnd-DNrenqEc.js";import"./stripe-DMRn4zHo.js";import"./lottie-Cp94NU-O.js";import"./lexical-BbcB7U6u.js";import"./pdf-B9LwAnPJ.js";import"./useAskAiCfoHostNavButtonProps-DH6rjWyj.js";import"./useFetchSuggestedQuestionsWhenReady-Z1RjapDK.js";import"./TransactionDetailScreen-Cx4z6equ.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new a.Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="47e4afe0-6afd-4910-bd24-18e627c95fdb",a._sentryDebugIdIdentifier="sentry-dbid-47e4afe0-6afd-4910-bd24-18e627c95fdb")}catch{}})();const Le=["uncategorized-income","uncategorized-expense","miscategorized-income","miscategorized-expense","missing-receipts"],_=a=>Oe(a),je=H(function(a,e){const t=he(a.transactionState,a.transactionListState,e.selectedAccount.period,e.selectedAccount.timeframe,_(e.selectedAccount.tranListType));return{title:e.selectedAccount.title,subTitle:e.selectedAccount.subTitle,timeframe:e.selectedAccount.timeframe,timePeriod:W(e.selectedAccount.period),dataAvailableForPeriod:e.dataAvailableForPeriod,report:t,currentScrollYOffset:t.uiState?.scrollYOffset??0,isAccountingClassesEnabled:Q(a)}},function(a,e){return{onBackClick:()=>{const t=te(e.location.state?.pathnameStackToGoBack),n=t.poppedPathname??"../../";e.navigate(n,{state:{pathnameStackToGoBack:t.newStack}})},onTimePeriodChange:(t,n,c)=>{e.closeSidePanel?.();const o=X.getLocalizedStrings(),s=_(e.selectedAccount.tranListType),r=Me(t,n,c,s,e.bookCloseDate);C.trackTransactionList(void 0,void 0,void 0,e.selectedAccount.title,void 0,!0),a(se({uiState:{dateRange:r},type:_(e.selectedAccount.tranListType)})),a(ue(s,T(r),!1,s==="missingReceipts"?o.uncategorizedTransactionList.missingReceipt.missingReceiptMinAmount:void 0)),e.onSelectedTimePeriodChange(T(r))},onTransactionItemClick:t=>{if(e.openTransactionPanel)return void e.openTransactionPanel(t.id,t.type);const n=ce(t,e.tenantEmailDomain),c=w(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(n,{state:{pathnameStackToGoBack:c}})},onTransactionListScroll:t=>{a(se({uiState:{scrollYOffset:t},type:_(e.selectedAccount.tranListType)}))}}})(ee),G=ae(function({...a}){const e=U(),t=R(),n=q(),c=t.pathname.split("/").find(d=>Le.includes(d)),o=c??"uncategorized-expense",{tenantEmailDomain:s}=Z(),r=X.getLocalizedStrings(),{accountType:p,title:A,subTitle:h}=Ce(o),S="month",k=z(d=>$(d)),D=k.company?.companyInfo.firstMonthOfFY??1,{dataAvailable:g,initialTimeframeTick:v}=Be(o,D,k.bookCloseDate),[E,B]=y.useState(!1),[x,M]=y.useState(void 0),l=y.useMemo(()=>{const d=T(v);return{tranListType:o,accountType:K(p),title:A,subTitle:h,timeframe:S,period:d}},[o,S,p,g]);y.useEffect(()=>{if(!E&&l!=null){B(!0),C.trackTransactionList(void 0,void 0,void 0,l.title);const d=_(l.tranListType);n(ue(d,l.period,!0,d==="missingReceipts"?r.uncategorizedTransactionList.missingReceipt.missingReceiptMinAmount:void 0))}},[E,l,n]);let P=l;return l!=null&&x!=null&&(P={...l,period:x}),c==null||P==null?i.jsx(j,{to:"../"}):i.jsx(je,{firstMonthOfFY:D,tenantEmailDomain:s,location:t,useFixedPeriod:{timeframe:"month",numberOfPeriods:12},dataAvailableForPeriod:g,navigate:e,selectedAccount:P,referrerType:o,bookCloseDate:k.bookCloseDate,onSelectedTimePeriodChange:d=>M(d),...a})}),Ce=a=>{let e="",t="",n="";const c=X.getLocalizedStrings();switch(a){case"uncategorized-income":e="income",t=c.uncategorizedTransactionList.income.title,n=c.uncategorizedTransactionList.income.subTitle;break;case"uncategorized-expense":e="expenses",t=c.uncategorizedTransactionList.expense.title,n=c.uncategorizedTransactionList.expense.subTitle;break;case"miscategorized-expense":e="expenses",t=c.miscategorizedTransactionList.expense.title,n=c.miscategorizedTransactionList.expense.subTitle;break;case"miscategorized-income":e="income",t=c.miscategorizedTransactionList.income.title,n=c.miscategorizedTransactionList.income.subTitle;break;case"missing-receipts":t=c.uncategorizedTransactionList.missingReceipt.title,n=c.uncategorizedTransactionList.missingReceipt.subTitle}return{accountType:e,title:t,subTitle:n}},Be=(a,e,t)=>{const n=ie();let c=ie().startOf("month").subtract(11,"month");return t!=null&&a!=="missing-receipts"?t.add(1,"day").isBefore(c)?{dataAvailable:{startDate:t.add(1,"day"),endDate:n},initialTimeframeTick:{startDate:c,endDate:n}}:(c=t.add(1,"day"),{dataAvailable:{startDate:c,endDate:n},initialTimeframeTick:{startDate:c,endDate:n}}):{dataAvailable:ne(5,e),initialTimeframeTick:{startDate:c,endDate:n}}},Me=(a,e,t,n,c)=>{let o=e;return n==="missingReceipts"||c==null?a.startDate.isBefore(e.startDate,t)?o={startDate:a.startDate,endDate:e.endDate}:a.startDate.isAfter(e.endDate,t)?o={startDate:e.startDate,endDate:a.endDate}:console.error(`Invalid addTimePeriod ${JSON.stringify(a)}`):o=a.startDate.isBefore(c,t)?{startDate:c.add(1,"day"),endDate:e.endDate}:{startDate:a.startDate,endDate:e.endDate},o},Fe=H(function(a,e){const t=ke(a.transactionState,a.transactionListState,e.selectedAccount.accountId,e.selectedAccount.accountType,e.selectedAccount.classId,e.selectedAccount.timeframe,e.selectedAccount.period);return{accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,title:e.selectedAccount.title,timeframe:e.selectedAccount.timeframe,timePeriod:W(e.selectedAccount.period),dataAvailableForPeriod:ne(5,e.firstMonthOfFY),report:t,currentScrollYOffset:t.uiState?.scrollYOffset??0,isAccountingClassesEnabled:Q(a)}},function(a,e){return{onBackClick:()=>{const t=te(e.location.state?.pathnameStackToGoBack),n=t.poppedPathname??Te();e.navigate(n,{state:{pathnameStackToGoBack:t.newStack}})},onTimePeriodChange:(t,n,c)=>{e.closeSidePanel?.();let o=n;t.startDate.isBefore(n.startDate,c)?o={startDate:t.startDate,endDate:n.endDate}:t.startDate.isAfter(n.endDate,c)?o={startDate:n.startDate,endDate:t.endDate}:console.error(`Invalid addTimePeriod ${JSON.stringify(t)}`),C.trackTransactionList(e.selectedAccount.accountId,void 0,e.referrerType,e.selectedAccount.title,void 0,!0),a(re({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,classId:e.selectedAccount.classId,uiState:{dateRange:o}})),a(me(e.selectedAccount.accountId,e.selectedAccount.accountType,e.selectedAccount.classId,T(o))),e.onSelectedTimePeriodChange(T(o))},onTransactionItemClick:t=>{if(e.openTransactionPanel)return void e.openTransactionPanel(t.id,t.type);const n=ce(t,e.tenantEmailDomain),c=w(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(n,{state:{pathnameStackToGoBack:c}})},onTransactionListScroll:t=>{a(re({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,classId:e.selectedAccount.classId,uiState:{scrollYOffset:t}}))}}})(ee),Ge=ae(function({referrerType:a,...e}){const t=U(),n=R(),c=q(),{tenantEmailDomain:o,accountTypeEncoded:s,accountIdEncoded:r,classIdEncoded:p,timeframe:A,startDate:h,endDate:S,titleEncoded:k}=Z(),D=O(s??""),g=O(r??""),v=O(p??""),E=O(k??""),B=z(f=>Se(f.transactionListState,g,D,v)),[x,M]=y.useState(!1),[l,P]=y.useState(void 0),d=z(f=>$(f)),V=d.company?.companyInfo.firstMonthOfFY??1;let u;const m=_e(D,g,v,A,h,S,E);if(m){const f={startDate:Y(h,"YYYY-MM-DD"),endDate:Y(S,"YYYY-MM-DD")},N=we(B?.dateRange,f);u={accountId:g,accountType:K(D),classId:v,title:E,timeframe:A,period:N}}y.useEffect(()=>{x||u==null||(M(!0),C.trackTransactionList(u.accountId,void 0,a,u.title),c(me(u.accountId,u.accountType,u.classId,u.period)))},[x,u,c]);let L=u;u!=null&&l!=null&&(L={...u,period:l});const F=[s,r,p,A,h,S,k].filter(f=>f!=null);return m&&L!=null?i.jsx(Fe,{firstMonthOfFY:V,tenantEmailDomain:o,location:n,navigate:t,selectedAccount:L,referrerType:a,onSelectedTimePeriodChange:f=>P(f),...e}):i.jsx(j,{to:Te(F.length)})}),Te=(a=7)=>{let e="../";for(let t=0;t<a;t++)e=`${e}../`;return e},_e=(a,e,t,n,c,o,s)=>a!=null&&e!=null&&t!=null&&n!=null&&c!=null&&o!=null&&(n==="month"||n==="quarter")&&Y(c,"YYYY-MM-DD").isValid()&&Y(o,"YYYY-MM-DD").isValid()&&s!=null,we=(a,e)=>a!=null&&a.endDate.isSame(e.endDate,"day")&&a.startDate.isBefore(e.startDate,"day")?T(a):T(e),Re=H(function(a,e){const t=be(a.transactionState,a.transactionListState,e.selectedAccount.accountId,e.selectedAccount.accountType,e.selectedAccount.timeframe,e.selectedAccount.period),n=t.account?.coaId,c=e.isConnectedAccountProviderUnit&&ve(n??"");return{accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,title:e.selectedAccount.title,timeframe:e.selectedAccount.timeframe,timePeriod:W(e.selectedAccount.period),dataAvailableForPeriod:ne(5,e.firstMonthOfFY),report:t,currentScrollYOffset:t.uiState?.scrollYOffset??0,showStatementPageIcon:c,isAccountingClassesEnabled:Q(a)}},function(a,e){return{onBackClick:()=>{const t=te(e.location.state?.pathnameStackToGoBack),n=t.poppedPathname??De();e.navigate(n,{state:{pathnameStackToGoBack:t.newStack}})},onTimePeriodChange:(t,n,c)=>{e.closeSidePanel?.();let o=n;t.startDate.isBefore(n.startDate,c)?o={startDate:t.startDate,endDate:n.endDate}:t.startDate.isAfter(n.endDate,c)?o={startDate:n.startDate,endDate:t.endDate}:console.error(`Invalid addTimePeriod ${JSON.stringify(t)}`),C.trackTransactionList(e.selectedAccount.accountId,void 0,e.referrerType,e.selectedAccount.title,void 0,!0),a(de({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,uiState:{dateRange:o}})),a(pe(e.selectedAccount.accountId,e.selectedAccount.accountType,T(o))),e.onSelectedTimePeriodChange(T(o))},onTransactionItemClick:t=>{if(e.openTransactionPanel)return void e.openTransactionPanel(t.id,t.type);const n=ce(t,e.tenantEmailDomain),c=w(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(n,{state:{pathnameStackToGoBack:c}})},onTransactionListScroll:t=>{a(de({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,uiState:{scrollYOffset:t}}))},onStatementPageIconClick:()=>{const t=Ne(e.tenantEmailDomain),n=w(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(t,{state:{pathnameStackToGoBack:n}})}}})(ee),le=ae(function({referrerType:a,...e}){const t=U(),n=R(),c=q(),{tenantEmailDomain:o,accountTypeEncoded:s,accountIdEncoded:r,timeframe:p,startDate:A,endDate:h,titleEncoded:S,excludeSubAccounts:k}=Z(),D=O(s??""),g=O(r??""),v=O(S??""),E=!(k!=null&&k==="exclude_subaccounts"),B=z(I=>Ie(I.transactionListState,g,D)),[x,M]=y.useState(!1),[l,P]=y.useState(void 0),d=z(I=>$(I)),V=d.company?.featuresActivationInfo.connectedAccountProvider==="unit",u=d.company?.companyInfo.firstMonthOfFY??1;let m;const L=$e(D,g,p,A,h,v);if(L){const I={startDate:Y(A,"YYYY-MM-DD"),endDate:Y(h,"YYYY-MM-DD")},ye=Ve(B?.dateRange,I);m={accountId:g,accountType:K(D),title:v,timeframe:p,period:ye}}let F=m;m!=null&&l!=null&&(F={...m,period:l});const{useFeatureGate:f}=fe(),{isFeatureEnabled:N}=f(J.isTransactionCommentingEnabled),{areTenantIdsInSync:oe}=Ee();y.useEffect(()=>{!x&&m!=null&&oe&&(M(!0),C.trackTransactionList(m.accountId,void 0,a,m.title),c(pe(m.accountId,m.accountType,m.period,void 0,!1,E)))},[x,m,c,oe]);const ge=[s,r,p,A,h,S].filter(I=>I!=null);return L&&F!=null?i.jsx(Re,{firstMonthOfFY:u,tenantEmailDomain:o,location:n,navigate:t,isConnectedAccountProviderUnit:V,isTransactionCommentingEnabled:N,selectedAccount:F,referrerType:a,onSelectedTimePeriodChange:I=>P(I),...e}):i.jsx(j,{to:De(ge.length)})}),De=(a=7)=>{let e="../";for(let t=0;t<a;t++)e=`${e}../`;return e},$e=(a,e,t,n,c,o)=>a!=null&&e!=null&&t!=null&&n!=null&&c!=null&&(t==="month"||t==="quarter")&&Y(n,"YYYY-MM-DD").isValid()&&Y(c,"YYYY-MM-DD").isValid()&&o!=null,Ve=(a,e)=>a!=null&&a.endDate.isSame(e.endDate,"day")&&a.startDate.isBefore(e.startDate,"day")?T(a):T(e),Ne=a=>`/${a}/transactions/${xe}/statements`;function pt(){const a=R().state?.referrer,e=Pe.getSignedInUser(),t=Ye(e),{useFeatureGate:n}=fe(),{isFeatureEnabled:c}=n(J.isExpenseAutomationEnabled),o=z(p=>p.expenseAutomationViewState.selectedPeriodByTenantId)[z(p=>$(p)).tenantId],{isFeatureEnabled:s}=n(J.isExpenseAutomationEnabledV2),r=s||c&&t;return i.jsxs(Ae,{children:[i.jsx(b,{path:"/:accountTypeEncoded/:accountIdEncoded/:timeframe/:startDate/:endDate/:titleEncoded/:excludeSubAccounts/*",element:i.jsx(le,{referrerType:a})}),i.jsx(b,{path:"/zeni-clearing-account/statements",element:i.jsx(ze,{})}),i.jsx(b,{path:"/*",element:i.jsx(le,{referrerType:a})}),i.jsx(b,{path:"/uncategorized-income/*",element:i.jsx(G,{})}),i.jsx(b,{path:"/uncategorized-expense/*",element:r?i.jsx(j,{to:`../../month_end_close_checks/review/transaction_categorization/${o.month}-${o.year}`}):i.jsx(G,{})}),i.jsx(b,{path:"/miscategorized-income/*",element:i.jsx(G,{})}),i.jsx(b,{path:"/miscategorized-expense/*",element:r?i.jsx(j,{to:`../../month_end_close_checks/review/transaction_categorization/${o.month}-${o.year}`}):i.jsx(G,{})}),i.jsx(b,{path:"/missing-receipts/*",element:r?i.jsx(j,{to:`../../month_end_close_checks/review/missing_receipts/${o.month}-${o.year}`}):i.jsx(G,{})}),i.jsx(b,{path:"/by-class/:accountTypeEncoded/:accountIdEncoded/:classIdEncoded/:timeframe/:startDate/:endDate/:titleEncoded/*",element:i.jsx(Ge,{referrerType:a})})]})}export{pt as default};
@@ -1,12 +0,0 @@
1
- import{j as o}from"./liveblocks-6nZkQHFl.js";import{a as f}from"./sentry-Dr5FPm4d.js";import{q as u,h,g as y,N as I}from"./core-B8DAi0nh.js";import{J9 as w,eP as b,zd as x}from"./zeni-epic-state-DITtSXPQ.js";import{z as l,B as j,G as S,H as D}from"./index-CrhTmqTp.js";import{n as c}from"./mui-DOBONCVx.js";import"./recharts-CDgByeDS.js";import"./analytics-CLyVqw3m.js";import"./plaid-BJER8-rG.js";import"./dnd-DNrenqEc.js";import"./stripe-DMRn4zHo.js";import"./lottie-Cp94NU-O.js";import"./lexical-BbcB7U6u.js";import"./pdf-B9LwAnPJ.js";import"./utils-XBrV3QeH.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]="19d5834d-933c-434d-86ad-7a269093fca5",e._sentryDebugIdIdentifier="sentry-dbid-19d5834d-933c-434d-86ad-7a269093fca5")}catch{}})();const R=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",g=e.get("profileId")??"",[n,p]=f.useState(!1),a=h(),i=y(m=>w(m)),r=l.getSignedInUser(),d=l.getSignedInUserTenantWithId(s);if(r==null||d==null)return o.jsx(I,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return b(r.userId,r.zeniSessionId,d?.tenantId),f.useEffect(()=>{n||(p(!0),a(x(t,g,s)))},[n,a]),i.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(j,{fetchState:"In-Progress"}))},E=c.div`
2
- display: flex;
3
- width: 100%;
4
- height: 100vh;
5
- flex-direction: row;
6
- justify-content: center;
7
- align-items: center;
8
- background-color: ${e=>e.theme.colors.grey5};
9
- `,_=c(D.LargeRegular)`
10
- display: flex;
11
- color: ${S.important};
12
- `;export{R as default};
@@ -1 +0,0 @@
1
- import{a as b}from"./sentry-Dr5FPm4d.js";import{Q as c,Z as p,a as m,n as u,V as y}from"./index-CrhTmqTp.js";import"./mui-DOBONCVx.js";import{b as k}from"./useFetchSuggestedQuestionsWhenReady-Z1RjapDK.js";import{j as g,u as h,l as A}from"./core-B8DAi0nh.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]="118ef754-28d8-4dea-9921-b1cb87b8a181",e._sentryDebugIdIdentifier="sentry-dbid-118ef754-28d8-4dea-9921-b1cb87b8a181")}catch{}})();function T(e){const{mobileExploreReferrer:a}=e,{isAiCfoOpen:s,setIsAiCfoOpen:n}=c(),r=g(),o=h(),{tenantEmailDomain:t}=A(),f=p(),i=y(f),l=m();return{isAiCfoAccessEnabled:k()&&l&&!s,onAskAiCfoClick:b.useCallback(()=>{if(t!=null)if(i){const d=u(o.state?.pathnameStackToGoBack,o.pathname);r(`/${t}/ai-cfo/explore`,{state:{pathnameStackToGoBack:d,referrer:a}})}else n(!0)},[i,o.pathname,o.state,a,r,n,t])}}export{T as u};