@zeniai/web-app-ui 5.1.1-dev → 5.1.2-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/AddressRoutes-DsCKawZr.js +1 -0
- package/dist/assets/AddressScreen-Ciud4msU.js +9 -0
- package/dist/assets/{AiCfoScreen-UM6ic7BX.js → AiCfoScreen-BOB-fJay.js} +5 -5
- package/dist/assets/{BillPayApprovalRoutes-CAJKl9Td.js → BillPayApprovalRoutes-CUwwu31U.js} +1 -1
- package/dist/assets/{BillPayRoutes-ly7Pgi_V.js → BillPayRoutes-BA6z44Gt.js} +11 -11
- package/dist/assets/{BusinessVerificationPageScreen-B5iM1cnx.js → BusinessVerificationPageScreen-BvBO2W8P.js} +2 -2
- package/dist/assets/{ChargeCardRoutes-s6V7wbi7.js → ChargeCardRoutes-CSktaEBe.js} +8 -8
- package/dist/assets/{CompanyPassportScreen-Cgvc384T.js → CompanyPassportScreen-Befo6fkL.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-Bm43ZriE.js → ConnectionAuthScreen-yy6qIySQ.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-CrFGlZhI.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-ATS2uCzC.js → CustomerOnboardingRoutes-CokavKcB.js} +3 -3
- package/dist/assets/{DashboardRoutes-Dp26Iu0S.js → DashboardRoutes-Db9XNhfa.js} +1 -1
- package/dist/assets/{DefaultTenantHome-bbOg-ODd.js → DefaultTenantHome-D57HVRGN.js} +1 -1
- package/dist/assets/DomesticWireDetailScreen-BZICCGkN.js +18 -0
- package/dist/assets/{DrawerScreen-CCzE-zxn.js → DrawerScreen-DFU-PO8W.js} +1 -1
- package/dist/assets/EntityDetailRoutes-BrGC9nCI.js +1 -0
- package/dist/assets/{ExpenseAutomationRoutes-DwEVOJtf.js → ExpenseAutomationRoutes-CLEAQSpv.js} +4 -4
- package/dist/assets/{FeaturePreviewScreen-Bis2qUIl.js → FeaturePreviewScreen-I4p7awAI.js} +1 -1
- package/dist/assets/{HubSpotOAuthCallbackScreen-BGXocfao.js → HubSpotOAuthCallbackScreen-C2KZG0fg.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-BBYl6v8B.js → MagicLinkRoutes-CmuClJKM.js} +7 -7
- package/dist/assets/{MagicLinkSignInScreen-Cr8x86h3.js → MagicLinkSignInScreen-7YoDFUBj.js} +1 -1
- package/dist/assets/{MobileAppDrawer-BcrO3SuR.js → MobileAppDrawer-DJXZzHpc.js} +1 -1
- package/dist/assets/NotFoundScreen-B315ZXSY.js +1 -0
- package/dist/assets/{NotificationRoutes-CV8nl-hG.js → NotificationRoutes-C9VTAQ1e.js} +1 -1
- package/dist/assets/OAuthConsentScreen-CFhgJoS-.js +1 -0
- package/dist/assets/PandLWithForecastRoutes-C5lt0Raa.js +1 -0
- package/dist/assets/{PeopleRoutes-CYlL6LsI.js → PeopleRoutes-CmLejFc1.js} +9 -9
- package/dist/assets/PerformanceRoutes-DDBoEP46.js +1 -0
- package/dist/assets/{Preview-D04eX301.js → Preview-BumeNBq6.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-Cp9hdfqD.js → QBOConnectionScreen-c86iGKts.js} +1 -1
- package/dist/assets/ReferralListScreen-B2Uf8LWv.js +5 -0
- package/dist/assets/ReimbursementApprovalRoutes-C3-pbSbp.js +1 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-DAIQXv04.js → ReimbursementApprovalRuleDetailScreen-DyrvaAoC.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-Dne2Ibjn.js → ReimbursementRoutes-D3vsnbui.js} +9 -9
- package/dist/assets/{ReportsRoutes-CXgAM4Fe.js → ReportsRoutes-CS-LcAA5.js} +1 -1
- package/dist/assets/RewardsRoutes-BKki4CbC.js +1 -0
- package/dist/assets/{ScreenRoutes-BclaBAck.js → ScreenRoutes-keuv_fWp.js} +2 -2
- package/dist/assets/{SettingsRoutes-DmEvYu15.js → SettingsRoutes-DlxvvUhc.js} +3 -3
- package/dist/assets/{SetupPagesScreen-BSvjrIr7.js → SetupPagesScreen-DTXrJjNC.js} +5 -5
- package/dist/assets/SignInScreen-BuC-z4ZH.js +1 -0
- package/dist/assets/SignOutScreen-CI-ys6LE.js +9 -0
- package/dist/assets/{TaskListScreen-B17KHzvM.js → TaskListScreen-DgBIKSU8.js} +2 -2
- package/dist/assets/TaskRoutes-fm8S4yaA.js +9 -0
- package/dist/assets/{TransactionDetailRoutes-BbeUy0M2.js → TransactionDetailRoutes-B8N3XEF6.js} +1 -1
- package/dist/assets/{TransactionDetailScreen-DEmYuiBh.js → TransactionDetailScreen-GfxhQUJ0.js} +2 -2
- package/dist/assets/{TransactionListRoutes-B8P1vCkZ.js → TransactionListRoutes-DOlqNa3w.js} +1 -1
- package/dist/assets/{TreasuryRoutes-CyIZvkMB.js → TreasuryRoutes-CTDDjTei.js} +5 -5
- package/dist/assets/{VendorsRoutes-C2bW-Tj9.js → VendorsRoutes-DTrvTVCk.js} +1 -1
- package/dist/assets/WiseConfirmationScreen-Qih073Cc.js +12 -0
- package/dist/assets/ZeniAccountRoutes-BOcy9pc5.js +57 -0
- package/dist/assets/ZeniAccountStatementScreen-aKACsyFF.js +9 -0
- package/dist/assets/{accountMappingHelper-VWhQY_6n.js → accountMappingHelper-BjJBO0yU.js} +1 -1
- package/dist/assets/{analytics-DOcq8-16.js → analytics-CkEY8ir_.js} +1 -1
- package/dist/assets/{analyticsHelper-D5HbdAGI.js → analyticsHelper-CIMazlGI.js} +1 -1
- package/dist/assets/{core-B2oeYHrf.js → core-DSiwMp-a.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-Dvm7n442.js → decodeURIComponentSafe-DVu5bEmE.js} +1 -1
- package/dist/assets/{dnd-DwDc-Li-.js → dnd-DRdzIke7.js} +1 -1
- package/dist/assets/{empty-KpwZq82W.js → empty-Bghe_kWA.js} +1 -1
- package/dist/assets/{empty-B0kYKoxi.js → empty-DLgG5QNl.js} +1 -1
- package/dist/assets/{emptyVideoElement-DOTARJXU.js → emptyVideoElement-DoqR7uXx.js} +1 -1
- package/dist/assets/{epic-DyxHnK6P.js → epic-waSnpToj.js} +1 -1
- package/dist/assets/getLocaleForTenant-Dia5gMlH.js +1 -0
- package/dist/assets/{index-C0xrHel3.js → index-B4rgBpMe.js} +10593 -10657
- package/dist/assets/{index-z93nhubg.js → index-Bab0t0x-.js} +2 -2
- package/dist/assets/{index-DPKilnME.js → index-Bp0NApQV.js} +1 -1
- package/dist/assets/{index-D6oyO24Z.js → index-BwV-UkNc.js} +1 -1
- package/dist/assets/{index-ZC7XuNNg.js → index-DFIRILBa.js} +1 -1
- package/dist/assets/{index-DC-3Qf7N.js → index-GRvmcAYS.js} +1 -1
- package/dist/assets/{index-Dy7ERgzH.js → index-hPEkKyzW.js} +1 -1
- package/dist/assets/{index-YgDod2A-.js → index-o2g9tw_G.js} +1 -1
- package/dist/assets/{lexical-DGKnc7bI.js → lexical-CKjK-EPE.js} +1 -1
- package/dist/assets/{liveblocks-Cy_MnPa_.js → liveblocks-EKtmo4tC.js} +1 -1
- package/dist/assets/{lottie-B3tQ3uYn.js → lottie-BBFZDeGJ.js} +1 -1
- package/dist/assets/{mui-DIYZNz3L.js → mui-Cvvk2drV.js} +1 -1
- package/dist/assets/{pathToGoBack-B5mEVhcV.js → pathToGoBack-BVon-wvN.js} +1 -1
- package/dist/assets/{pdf-DZ9XIykO.js → pdf-CNusKej9.js} +4 -4
- package/dist/assets/{pdf-lib-ZNHFXmuC.js → pdf-lib-C8JChc2E.js} +1 -1
- package/dist/assets/{plaid-BK71q3Le.js → plaid-nLurjJK_.js} +1 -1
- package/dist/assets/{pusher-YcqIrHUJ.js → pusher-C4Of1VwF.js} +1 -1
- package/dist/assets/{react-DbCoL3Zh.js → react-5_sRMg43.js} +1 -1
- package/dist/assets/{react-DTOm-70P.js → react-CfepFwxW.js} +1 -1
- package/dist/assets/{react-CpmKRGOw.js → react-DCreU3Sl.js} +1 -1
- package/dist/assets/{react-BmeEPegG.js → react-DGseOmz6.js} +1 -1
- package/dist/assets/{react-IflAavpX.js → react-Dv54AT8K.js} +1 -1
- package/dist/assets/{react-1aspnaj-.js → react-j7zGu4KL.js} +1 -1
- package/dist/assets/{recharts-C6U_7_At.js → recharts-DYUTks6X.js} +1 -1
- package/dist/assets/{routePaths-B8QNeXRi.js → routePaths-DBy9VZWD.js} +1 -1
- package/dist/assets/{sentry-Blrslipw.js → sentry-p429VZYs.js} +1 -1
- package/dist/assets/{url-ClS08een.js → url-DX9f0rxz.js} +1 -1
- package/dist/assets/{url-V9UydsVE.js → url-LqY-ux4L.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-DyzkJoaL.js → useAiCfoDashboardSuggestedQuestionsChips-DBF0Nykq.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-4wVIBLqp.js +1 -0
- package/dist/assets/{useDeviceId-DlAGyxDN.js → useDeviceId-xB-PTooM.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-unxnPttf.js → useInitialThreadRequest-LfomHuJM.js} +1 -1
- package/dist/assets/{utils-D3pwfxQv.js → utils-Bl5yL5ve.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-CAguVcUe.js → withTransactionSidePanel-B2CRFrnW.js} +2 -2
- package/dist/assets/{zeni-epic-state-BREUit58.js → zeni-epic-state--7x3SaBa.js} +4 -4
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/AddressRoutes-9CbOZbMn.js +0 -1
- package/dist/assets/AddressScreen-DWXQyZaS.js +0 -9
- package/dist/assets/CustomerOnboardingAuthScreen-DsjutE3_.js +0 -1
- package/dist/assets/DomesticWireDetailScreen-UI2yO_5Y.js +0 -18
- package/dist/assets/EntityDetailRoutes-BHQQBbtr.js +0 -1
- package/dist/assets/NotFoundScreen-BjzHPdCc.js +0 -1
- package/dist/assets/OAuthConsentScreen-Cx3JnY8C.js +0 -1
- package/dist/assets/PandLWithForecastRoutes-BPXMRS7A.js +0 -1
- package/dist/assets/PerformanceRoutes-BSeGGzN7.js +0 -1
- package/dist/assets/ReferralListScreen-CH2aukWD.js +0 -5
- package/dist/assets/ReimbursementApprovalRoutes-CnYIJyg4.js +0 -1
- package/dist/assets/RewardsRoutes-CPiPOZEw.js +0 -1
- package/dist/assets/SignInScreen-mnaDLloL.js +0 -1
- package/dist/assets/SignOutScreen-BTEb_mRJ.js +0 -9
- package/dist/assets/TaskRoutes-Mt3cmAqW.js +0 -9
- package/dist/assets/WiseConfirmationScreen-Bx_UlJ4p.js +0 -12
- package/dist/assets/ZeniAccountRoutes-D0C7i4wt.js +0 -66
- package/dist/assets/ZeniAccountStatementScreen-DPQ9YUYH.js +0 -9
- package/dist/assets/getLocaleForTenant-Dd8HNwmA.js +0 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-PRSt4JAz.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-
|
|
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-B4rgBpMe.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-p429VZYs.js"><link rel="modulepreload" crossorigin href="/assets/core-DSiwMp-a.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state--7x3SaBa.js"><link rel="modulepreload" crossorigin href="/assets/mui-Cvvk2drV.js"><link rel="modulepreload" crossorigin href="/assets/analytics-CkEY8ir_.js"><link rel="modulepreload" crossorigin href="/assets/utils-Bl5yL5ve.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.1.
|
|
3
|
+
"version": "5.1.2-dev",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/**/*"
|
|
6
6
|
],
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"@sentry/react": "^9.42.1",
|
|
29
29
|
"@stripe/stripe-js": "^4.4.0",
|
|
30
30
|
"@zeniai/client-analytics": "2.0.14",
|
|
31
|
-
"@zeniai/client-epic-state": "5.0.
|
|
32
|
-
"@zeniai/web-components": "4.1.
|
|
31
|
+
"@zeniai/client-epic-state": "5.0.55",
|
|
32
|
+
"@zeniai/web-components": "4.1.12",
|
|
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-Cy_MnPa_.js";import{A as d}from"./AddressScreen-DWXQyZaS.js";import i from"./NotFoundScreen-BjzHPdCc.js";import"./sentry-Blrslipw.js";import{o as s,p as r}from"./core-B2oeYHrf.js";import"./zeni-epic-state-BREUit58.js";import"./recharts-C6U_7_At.js";import"./index-C0xrHel3.js";import"./mui-DIYZNz3L.js";import"./analytics-DOcq8-16.js";import"./plaid-BK71q3Le.js";import"./dnd-DwDc-Li-.js";import"./stripe-DMRn4zHo.js";import"./lottie-B3tQ3uYn.js";import"./lexical-DGKnc7bI.js";import"./pdf-DZ9XIykO.js";import"./utils-D3pwfxQv.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]="4677917c-1bd8-4b00-9bd0-d308073173a3",t._sentryDebugIdIdentifier="sentry-dbid-4677917c-1bd8-4b00-9bd0-d308073173a3")}catch{}})();function _(){return e.jsxs(s,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(d,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(d,{})}),e.jsx(r,{path:"*",element:e.jsx(i,{})})]})}export{_ as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./liveblocks-Cy_MnPa_.js";import{a as h}from"./sentry-Blrslipw.js";import{h as T,u as _,g as j,i as E,j as K,n as B}from"./core-B2oeYHrf.js";import{J as M,h as $,z as D,k as L,x as U,Q as z,c as C,e as S,U as F,f as b,p as N}from"./index-C0xrHel3.js";import{Kb as k,h1 as R,eP as G,Kc as O,c2 as V,Kd as q,km as H}from"./zeni-epic-state-BREUit58.js";import{n as J}from"./mui-DIYZNz3L.js";import Q from"./NotFoundScreen-BjzHPdCc.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]="1430a6db-d8d1-4bee-a5b4-f870d4e30c60",e._sentryDebugIdIdentifier="sentry-dbid-1430a6db-d8d1-4bee-a5b4-f870d4e30c60")}catch{}})();const W=J.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`,X=B(function(e,t){const{addressId:o,isSubPage:i,addressType:c}=t,l=G(e),a=t.roleMap!=null&&O(t.roleMap),d=i||c==="user_address"||V(l?.userRole??[])||a?void 0:"readonly";if(o==null){const s=q(c,e);return{addressToEdit:s?.addressToCreate,loadingState:s?.status?.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:d,isSubPage:i,dontShowSaveConfirmationPopup:t.dontShowSaveConfirmation}}const n=k(e,o);return{addressToEdit:n.address,loadingState:n.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:d}},function(e,t){const{navigate:o,location:i,addressType:c}=t,l=a=>{if(a==="express-pay")o("../express-pay/add-wire");else{const d=i.state,n=N(d?.pathnameStackToGoBack);let s=n.poppedPathname??w();const u=d?.queryParams;if(u){const g=new URLSearchParams(u).toString();g&&(s=`${s}?${g}`)}o(s,{state:{pathnameStackToGoBack:n.newStack}})}};return{onSubmitHandler:a=>{const d=Y(a);e(H({addressType:c,addressToCreate:d})),C?.trackSaveAddressClicked(S.Event.saveAddressClicked,{street:a.street.addressString,city:a.city,state:a.state,country:a.country.selectedOption??"",postalCode:a.postalCode,suite:a.suite,secondaryInfo:a.secondaryInfo}),l(t.bankAccountContext)},onCancel:()=>{l(t.bankAccountContext)}}})(F);function re({isSubPage:e,hideAddressSubTitle:t=!1,hideAddressBackButton:o=!1,dontShowSaveConfirmation:i,accountContext:c,addressTypeParam:l}){const a=T(),d=_(),n=j(),{addressId:s,addressType:u}=E(),g=M(),x=$(),I=D.getSignedInUser(),[f,v]=h.useState(s==null),p=K(m=>s!=null?k(m,s).fetchState:"Not-Started"),A=L();if(I==null)throw Error("Can't access address page without signing in...");const P=m=>m.trackPageLoaded(s!=null?S.Event.editAddress:S.Event.addAddress),y=l??u;return h.useEffect(()=>{f||s==null||(v(!0),d(R(s,!1)))},[f,s,d]),y==null||y.match(/(user_address|company_address|company_registered_address|vendor_address|officer_([1-9]|10)_address)$/g)?!f&&p==="Not-Started"||f&&p==="In-Progress"?r.jsx(U,{fetchState:p,style:{backgroundColor:x.colors.grey5}}):s!=null&&p==="Error"?(a(`${w(1)}/new`,{replace:!0}),r.jsx(r.Fragment,{})):r.jsxs(r.Fragment,{children:[r.jsx(z,{analytics:C,onLoad:P}),r.jsx(W,{windowSize:g,children:r.jsx(X,{location:n,navigate:a,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:t,addressId:s,addressType:y,dontShowSaveConfirmation:i,bankAccountContext:c,roleMap:A?.loggedInUserRoleMap})})]}):r.jsx(Q,{})}const w=(e=2)=>{let t="../";for(let o=0;o<e;o++)t=`${t}../`;return t},Y=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng});export{re as A,Y as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-Cy_MnPa_.js";import{z as n}from"./index-C0xrHel3.js";import{g as d}from"./QBOConnectionScreen-Cp9hdfqD.js";import"./sentry-Blrslipw.js";import{g as p,N as a}from"./core-B2oeYHrf.js";import"./zeni-epic-state-BREUit58.js";import"./recharts-C6U_7_At.js";import"./mui-DIYZNz3L.js";import"./analytics-DOcq8-16.js";import"./plaid-BK71q3Le.js";import"./dnd-DwDc-Li-.js";import"./stripe-DMRn4zHo.js";import"./lottie-B3tQ3uYn.js";import"./lexical-DGKnc7bI.js";import"./pdf-DZ9XIykO.js";import"./utils-D3pwfxQv.js";import"./empty-B0kYKoxi.js";import"./pdf-lib-ZNHFXmuC.js";import"./index-ZC7XuNNg.js";import"./url-ClS08een.js";import"./index-DC-3Qf7N.js";import"./decodeURIComponentSafe-Dvm7n442.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]="e53e9b9f-4e1e-4d41-afae-a46e42efc4b3",e._sentryDebugIdIdentifier="sentry-dbid-e53e9b9f-4e1e-4d41-afae-a46e42efc4b3")}catch{}})();const U=()=>{const e=p(),{code:t,realmId:o,state:r}=d(e.search),s=n.getSignedInUser()?.userId??"";if(f(t,o,r,s)===!0){const m=`../../${r}/onboarding?code=${t}&realmId=${o}&state=auth_flow`;return i.jsx(a,{to:m})}return i.jsx(a,{to:"../../"})},f=(e,t,o,r)=>e!=""&&t!=""&&o!=""&&r!=null&&r!="";export{U as default,f as hasValidParams};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-Cy_MnPa_.js";import{h as w,g as C,j as h,n as A,i as B}from"./core-B2oeYHrf.js";import{No as k,Nv as _,fE as q,fD as J,fC as K,iD as M,Kw as L,q6 as Q,eP as D,MW as V,iB as T,Np as v,Ny as F,iz as G,iW as N}from"./zeni-epic-state-BREUit58.js";import{bu as X,J as j,v as R,z as U,h as z,p as b,T as S,x as O,bv as Y,o as Z,bw as ee,q as te}from"./index-C0xrHel3.js";import{n as H}from"./mui-DIYZNz3L.js";import"./sentry-Blrslipw.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]="c1363cf4-88aa-4107-9828-075076e96de1",e._sentryDebugIdIdentifier="sentry-dbid-c1363cf4-88aa-4107-9828-075076e96de1")}catch{}})();const ne=A(null,function(e,t){return{onSaveVendor:n=>{e(M(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(L("common")),n!=null&&e(Q(n))},onGetOtp:n=>{e(K(n,"BillPayVendor"))},onResendOtp:n=>{e(J(n,"BillPayVendor"))},onVerifyOtp:(n,a)=>{e(q(n,a,"BillPayVendor"))},onVerifyOtpSuccess:(n,a,o)=>{e(_(n,a,o))}}})(X);function W({vendorId:e,billId:t,isExpressPayPage:n}){const a=w(),o=C(),s=h(i=>k(i,e));return l.jsx(ne,{location:o,navigate:a,vendorId:e,billId:t,vendorViewDetails:s,isExpressPayPage:n??!1})}const ae=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
|
-
`,oe=A(function(e,t){const{vendorId:n,billId:a}=t,o=k(e,n),s=V(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(N(s))},onSaveHandler:s=>{e(G(t.bankAccountContext,s,"standard",o))},onCancel:()=>{(()=>{const s=b(a.state?.pathnameStackToGoBack),i=s.poppedPathname??P();n(i,{state:{pathnameStackToGoBack:s.newStack}})})(),e(v())},onACHDetailsUpdated:s=>{const{bankAccountSection:i}=s;e(F({data:i}))},onBackClick:()=>{if(e(T({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")n("../",{relative:"path"});else{const s=b(t.location.state?.pathnameStackToGoBack),i=s.poppedPathname??P(0);t.navigate(i,{state:{pathnameStackToGoBack:s.newStack}})}e(v())}}})(Y);function fe({vendorIdParam:e,accountContext:t}){const n=w(),a=C(),o=j(),{vendorId:s,billId:i}=B(),d=e??s,{useFeatureGate:r}=R(),c=U.getSignedInUser(),p=h(u=>D(u)),g=z(),x=b(a.state?.pathnameStackToGoBack),f=t??(x.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h(u=>k(u,d)),{isFeatureEnabled:I}=r(S.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=r(S.isDepositAccountsFeatureEnabled);if(c==null)throw Error("Can't access address page without signing in...");return f==="billDetail"&&m.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(O,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:g.colors.grey5}}):l.jsxs(ae,{windowSize:o,children:[l.jsx(W,{vendorId:d,billId:i}),l.jsx(oe,{location:a,navigate:n,billId:i,vendorId:d,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 ve(e,t,n){return E(e,"ach",t,n)}function Se(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=H.div`
|
|
10
|
-
display: flex;
|
|
11
|
-
height: 100vh;
|
|
12
|
-
width: 100%;
|
|
13
|
-
flex: 1 1 auto;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
align-items: center;
|
|
16
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
17
|
-
box-shadow: ${e=>`0px 2px ${Z.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
18
|
-
`,ie=A(function(e,t){const{vendorId:n,billId:a}=t,o=k(e,n),s=V(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:i}=t,{tenantEmailDomain:d}=i;return{onFetchBankName:r=>{e(N(r))},onSaveHandler:r=>{e(G(t.bankAccountContext,r,"us-domestic",s))},onWireDetailsUpdated:r=>{const{bankAccountSection:c}=r;e(F({data:c}))},onCancel:()=>{(()=>{const r=b(o.state?.pathnameStackToGoBack),c=r.poppedPathname??$();a(c,{state:{pathnameStackToGoBack:r.newStack}})})(),e(v())},onAddressClick:r=>{if(t.bankAccountContext==="express-pay")a("./add-address");else{const c=se(d,r,n),p=te(o.state?.pathnameStackToGoBack,o.pathname);a(c,{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),c=r.poppedPathname??$(0);t.navigate(c,{state:{pathnameStackToGoBack:r.newStack}})}e(v())}}})(ee);function xe({vendorIdParam:e,accountContext:t}){const n=w(),a=C(),o=j(),{vendorId:s,billId:i}=B(),d=e??s,r=U.getSignedInUser(),{useFeatureGate:c}=R(),p=z(),g=h(u=>D(u)),x=b(a.state?.pathnameStackToGoBack),f=t??(x.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h(u=>k(u,d)),{isFeatureEnabled:I}=c(S.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=c(S.isDepositAccountsFeatureEnabled);if(r==null)throw Error("Can't access address page without signing in...");return f==="billDetail"&&m.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(O,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:p.colors.grey5,boxShadow:`0px 2px ${Z.sp1} ${p.colors.dropShadowNormal}`}}):l.jsxs(re,{windowSize:o,children:[l.jsx(W,{vendorId:d,billId:i}),l.jsx(ie,{location:a,navigate:n,billId:i,vendorId:d,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,W as V,me as a,se as b,ke as c,Se as d,he as g,ge as i,ve as v};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-Cy_MnPa_.js";import{a as d}from"./sentry-Blrslipw.js";import{h as A,u as B,g as q,i as F,j as c,N as L,n as K,o as N,p as _}from"./core-B2oeYHrf.js";import{LD as H,eP as O,L0 as R,kG as M,HC as I,LI as W,Kv as Y,jG as $,HD as S,L5 as z,L6 as V,Kx as J,Kw as Q}from"./zeni-epic-state-BREUit58.js";import{aR as U,c as X,p as Z,q as tt}from"./index-C0xrHel3.js";import"./mui-DIYZNz3L.js";import{d as k}from"./decodeURIComponentSafe-Dvm7n442.js";import{w as et}from"./withTransactionSidePanel-CAguVcUe.js";import{f as at,c as nt}from"./routePaths-B8QNeXRi.js";import"./recharts-C6U_7_At.js";import"./analytics-DOcq8-16.js";import"./plaid-BK71q3Le.js";import"./dnd-DwDc-Li-.js";import"./stripe-DMRn4zHo.js";import"./lottie-B3tQ3uYn.js";import"./lexical-DGKnc7bI.js";import"./pdf-DZ9XIykO.js";import"./utils-D3pwfxQv.js";import"./useAskAiCfoHostNavButtonProps-PRSt4JAz.js";import"./TransactionDetailScreen-DEmYuiBh.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]="aacd08be-ce7e-4d18-a50c-d97c48aca866",a._sentryDebugIdIdentifier="sentry-dbid-aacd08be-ce7e-4d18-a50c-d97c48aca866")}catch{}})();const ot=K(function(a,t){const e=t.entity,o=W(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:Y(a,"common")},trendWithTransactionsReport:o,analytics:X,isAccountingClassesEnabled:$(a)}},function(a,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const o=`${nt(e,t.tenantEmailDomain)}`,l=tt(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(o,{state:{pathnameStackToGoBack:l}})},autoCompleteActions:{onAutoCompleteInputChange:e=>{e.trim().length>=2?a(J({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(Q("common"))},onAutoCompleteEntity:e=>{const o=at(e,t.tenantEmailDomain);a(z()),a(V()),t.resetTrendIsFetchedStates(),t.navigate(o,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=Z(t.location.state?.pathnameStackToGoBack),o=e.poppedPathname??C();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(I(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),a(S(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:o}))}}}})(U),it=et(function({entityType:a,...t}){const e=A(),o=B(),l=q(),[m,T]=d.useState(!1),[h,D]=d.useState(!1),{tenantEmailDomain:b,entityIdEncoded:w,entityNameEncoded:x}=F(),r=k(w??""),p=k(x??""),u=rt(r,p),j=[r,p].filter(n=>n!=null),i={name:p,id:r,type:a,zeniId:r,qboId:r},g=c(n=>H(n.customerIncomeState,n.vendorExpenseState,n.trendState,i,"quarter")),G=c(n=>O(n).company?.companyInfo.firstMonthOfFY??1),f=c(n=>R(n.trendWithTransactionsState,i,"EntityDetail"));d.useEffect(()=>{m===!1&&u===!0&&(T(!0),o(M(i)))},[m,u,i]);const P=c(n=>n.trendState.fetchState),E=f?.selectedPeriod?.timePeriod??g,v=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&&P==="Completed"&&(D(!0),E!=null&&o(I(i,"EntityDetail",{timeframe:f?.selectedPeriod?.timeframe??"quarter",timePeriod:E})))},[m,h,P]),u?s.jsx(ot,{firstMonthOfFY:G,tenantEmailDomain:b,location:l,navigate:e,entity:i,defaultTransactionTimePeriod:v,resetTrendIsFetchedStates:()=>{T(!1),D(!1)},...t}):s.jsx(L,{to:C(j.length)})}),rt=(a,t)=>t!=null&&t.length>0&&a!=null&&a.length>0,C=(a=2)=>{let t="../";for(let e=0;e<a;e++)t=`${t}../`;return t};function wt({entityType:a}){return s.jsx(N,{children:s.jsx(_,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:a})})})}export{wt as EntityDetailRoutes,wt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-Cy_MnPa_.js";import{h as r,n}from"./core-B2oeYHrf.js";import{N as i}from"./index-C0xrHel3.js";import"./mui-DIYZNz3L.js";import"./sentry-Blrslipw.js";import"./zeni-epic-state-BREUit58.js";import"./recharts-C6U_7_At.js";import"./analytics-DOcq8-16.js";import"./plaid-BK71q3Le.js";import"./dnd-DwDc-Li-.js";import"./stripe-DMRn4zHo.js";import"./lottie-B3tQ3uYn.js";import"./lexical-DGKnc7bI.js";import"./pdf-DZ9XIykO.js";import"./utils-D3pwfxQv.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="0d8bbeee-ef94-478e-b36a-0f30a9be8cda",e._sentryDebugIdIdentifier="sentry-dbid-0d8bbeee-ef94-478e-b36a-0f30a9be8cda")}catch{}})();const a=n(null,function(e,o){return{onGoBack:()=>{o.navigate(-1)},onGoHome:()=>{o.navigate("/")}}})(i);function _(){const e=r();return t.jsx(a,{navigate:e})}export{_ as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as f}from"./liveblocks-Cy_MnPa_.js";import{a as r}from"./sentry-Blrslipw.js";import{u as T,g as A,j as o,N as J}from"./core-B2oeYHrf.js";import{JN as j,eP as C,f7 as R,JO as x,JP as z,JQ as D,JR as M,mW as N,IJ as L}from"./zeni-epic-state-BREUit58.js";import{z as h,I as g}from"./index-C0xrHel3.js";import"./mui-DIYZNz3L.js";import"./recharts-C6U_7_At.js";import"./analytics-DOcq8-16.js";import"./plaid-BK71q3Le.js";import"./dnd-DwDc-Li-.js";import"./stripe-DMRn4zHo.js";import"./lottie-B3tQ3uYn.js";import"./lexical-DGKnc7bI.js";import"./pdf-DZ9XIykO.js";import"./utils-D3pwfxQv.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new n.Error().stack;s&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[s]="0844ea0d-d3e1-49e3-ad04-23155d64d12c",n._sentryDebugIdIdentifier="sentry-dbid-0844ea0d-d3e1-49e3-ad04-23155d64d12c")}catch{}})();function ee(){const n=T(),s=A(),{params:t,error:i}=r.useMemo(()=>j(s.search),[s.search]),w=r.useMemo(()=>new URLSearchParams(s.search).get("client_name")??t?.clientId??"Unknown Application",[s.search,t]),p=h.isSignedIn(),a=h.getSignedInUser(),m=o(e=>C(e)),l=o(e=>R(e)),d=o(e=>e.tenantState.fetchState),y=o(x),v=o(z),u=o(D),[S,E]=r.useState(null),[b,_]=r.useState(null);r.useEffect(()=>{document.querySelector("#app-shell-loader")?.remove()},[]),r.useEffect(()=>()=>{n(M())},[n,s.search]),r.useEffect(()=>{i!=null&&console.warn("[OAuthConsent] invalid params:",i)},[i]);const I=r.useRef(!1);r.useEffect(()=>{p&&a!=null&&!I.current&&(d!=="Not-Started"&&d!=="Error"||(I.current=!0,n(N(a.userId,a.zeniSessionId??void 0))))},[p,a,d,n]),r.useEffect(()=>{u!=null&&u!==""&&(window.location.href=u)},[u]);const U=r.useMemo(()=>{if(m?.tenantId!=null)return m.tenantId;const e=h.getActiveTenantForUser()?.tenantId;return e!=null&&l.some(P=>P.tenantId===e)?e:l.length===1?l[0].tenantId:null},[m?.tenantId,l]),c=S??U;return i!=null?f.jsx(g,{variant:"invalid_params",paramsError:i}):p?f.jsx(g,{variant:"signed_in",clientName:w,userEmail:a?.userEmail,isInitializing:d!=="Completed",tenants:l,selectedTenantId:c,onSelectTenant:E,approveError:b??v,isApproving:y==="In-Progress",showAllowButton:c!=null,onApprove:()=>{t!=null&&a!=null&&c!=null&&n(L(a.userId,a.zeniSessionId??void 0,c,t.clientId,t.redirectUri,t.codeChallenge,t.codeChallengeMethod,t.state,t.responseType))},onDeny:()=>{if(t!=null)try{const e=new URL(t.redirectUri);e.searchParams.set("error","access_denied"),e.searchParams.set("error_description","The user denied the request"),e.searchParams.set("state",t.state),window.location.href=e.toString()}catch{_("Unable to deny: redirect_uri is not a valid URL. Close this window or contact support.")}}}):f.jsx(J,{to:"/signin/auth",state:{origin:s.pathname+s.search},replace:!0})}export{ee as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as n}from"./liveblocks-Cy_MnPa_.js";import{h as V,u as z,g as Q,i as Z,j as d,n as H,o as J,p as I}from"./core-B2oeYHrf.js";import{eP as U,qR as R,qp as X,Kj as v,qk as T,bt as ee,bn as ae,bT as te,ql as se,Kk as oe,K5 as C,dE as re,ul as ne,Kl as ce,uI as ie,e_ as le,eY as de}from"./zeni-epic-state-BREUit58.js";import{z as me,Y as fe,_ as pe,k as ue,v as q,T as M,Q as he,c as $,ao as ge,q as Fe}from"./index-C0xrHel3.js";import"./mui-DIYZNz3L.js";import be from"./NotFoundScreen-BjzHPdCc.js";import{F as Ie}from"./FeaturePreviewScreen-Bis2qUIl.js";import{a as g}from"./sentry-Blrslipw.js";import{u as Ce}from"./useAskAiCfoHostNavButtonProps-PRSt4JAz.js";import{u as Te}from"./useInitialThreadRequest-unxnPttf.js";import{t as Se}from"./routePaths-B8QNeXRi.js";import{M as ye}from"./MobileAppDrawer-BcrO3SuR.js";import"./recharts-C6U_7_At.js";import"./analytics-DOcq8-16.js";import"./plaid-BK71q3Le.js";import"./dnd-DwDc-Li-.js";import"./stripe-DMRn4zHo.js";import"./lottie-B3tQ3uYn.js";import"./lexical-DGKnc7bI.js";import"./pdf-DZ9XIykO.js";import"./utils-D3pwfxQv.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new s.Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="5809e4e5-6496-46fd-9fc0-50bc136a0fb6",s._sentryDebugIdIdentifier="sentry-dbid-5809e4e5-6496-46fd-9fc0-50bc136a0fb6")}catch{}})();const S=(s,e,a,o)=>{if(s!=e){const r=o??"";s!=null&&s.length>0?a(`../${e}${r}`,{replace:!0}):a(`${e}${r}`,{replace:!0})}},ke=H(function(s){const e=oe(s),a={},o=e.pandLReportWithForecast.uiState.nodeCollapseState;return Object.keys(o).forEach(r=>{a[r]=o[r]===!1}),{selectedTimeframe:e.selectedTimeframe,isForecastVsActualOn:e.isForecastVsActualOn,compareMode:e.compareMode,forecastList:e.forecastList,selectedForecast:e.selectedForecast,pandLreport:e.pandLReportWithForecast,scrollPosition:e.pandLReportWithForecast.uiState.scrollPosition,nodeOpenStatus:a,type:"name+balances_forecast",analytics:$}},function(s,e){return{onForecastSelectionChanged:(a,o)=>{s(v(a,o)),e.isPandLReportFetched(a)||s(T(a)),S(e.forecastIdFromUrlPath,a,e.navigate)},onTimeframeChanged:a=>{s(ie(a))},onForecastVsActualsCompareToggle:a=>{s(ce(a)),s(C({forecastId:e.forecastIdFromUrlPath,scrollPosition:{scrollLeft:0,scrollTop:0}}))},onCompareModeChanged:a=>{s(ne(e.firstMonthOfFY,a,0,[]))},onAccountBalanceClick:e.hasTransactionAccess!==!0?void 0:(a,o)=>{let r,c;const p=a.accountName===""?a.accountDescription:a.accountName;if(o.balanceTimeFrame==="month"||o.balanceTimeFrame==="quarter"?(r=o.balanceTimeFrame,c=re(o)):o.balanceTimeFrame==="year"?(r="quarter",c={startDate:o.endDate.startOf("quarter"),endDate:o.endDate}):console.error(`timeframe ${o.balanceTimeFrame} is not supported`),c!=null&&r!=null){const m=Se(e.tenantEmailDomain,a.accountId,a.accountType,p,r,c),u=Fe(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(m,{state:{pathnameStackToGoBack:u,referrer:"Forecast"}})}},onNodeCollapseToggled:(a,o)=>{s(C({forecastId:e.forecastIdFromUrlPath,nodeCollapseState:{nodeId:a,isCollapsed:o===!1}}))},onTableScroll:a=>{s(C({forecastId:e.forecastIdFromUrlPath,scrollPosition:a}))},onBackClick:()=>{e.navigate("../../")}}})(ge);function O(){const s=V(),e=z(),a=Q(),{forecastId:o,tenantEmailDomain:r}=Z(),[c,p]=g.useState(!1),[m,u]=g.useState(!1),h=me.getSignedInUser(),y=d(t=>U(t)),w=y.company?.companyInfo.firstMonthOfFY??1,i=d(t=>R(t.forecastState,t.forecastListState)),l=d(t=>t.forecastListState.fetchState==="Completed"),k=d(t=>t.profitAndLossState),A=d(t=>t.reportUIOptionsState.selectedForecast),x=t=>k.pandLByForecastID[t]!=null&&se(t,k).reducedAllFetchState.fetchState==="Completed",{areTenantIdsInSync:F}=fe();pe({isDataReady:l});const{isAiCfoAccessEnabled:_,onAskAiCfoClick:Y}=Ce({mobileExploreReferrer:"Forecast"});g.useEffect(()=>{if(!c&&F)p(!0),l||e(X());else if(l&&!m){u(!0);const t=((f,L,P)=>L!=null?f.forecasts.findIndex(b=>b.id===L):P!=null?f.forecasts.findIndex(b=>b.id===P):f.forecasts.length>0?0:-1)(i,o,A?.id);t===-1&&o!=null?s("page-not-found",{replace:!0}):t!==-1&&t!=A?.index?(e(v(i.forecasts[t].id,t)),S(o,i.forecasts[t].id,s,a.search)):o==null&&t!==-1&&S(void 0,i.forecasts[t].id,s,a.search),t!==-1&&!x(i.forecasts[t].id)&&F&&e(T(i.forecasts[t].id))}},[c,p,e,l,i,m,u,R,T,F]);const D=ue(),B=D?.loggedInUserRole!=null&&ee(D.loggedInUserRole),{useFeatureGate:N}=q(),{isFeatureEnabled:j}=N(M.isReportsCommentingEnabled),W=Te(j?y?.companyId:void 0,{clearParams:l&&m}),[G,K]=g.useState(!1),E=t=>{K(t)};return n.jsxs(n.Fragment,{children:[l?n.jsx(he,{analytics:$,onLoad:t=>(f=>f.trackForecast())(t)}):null,n.jsx(ye,{isAppContentDrawerOpen:G,handleDrawerToggle:E}),n.jsx(ke,{firstMonthOfFY:w,tenantEmailDomain:r,forecastIdFromUrlPath:o,navigate:s,location:a,isPandLReportFetched:x,meetingUrl:te(`https://meetings.hubspot.com/svitlana-grankovska?firstname=${h?.firstName}&lastname=${h?.lastName}&email=${h?.userEmail}`),hasTransactionAccess:B,isAiCfoAccessEnabled:_,onAskAiCfoClick:Y,isReportsCommentingEnabled:j,isZeniUser:ae(h),initialOpenThreadRequest:W,onClickMenuIcon:()=>{E(!0)}})]})}function Ke(){const s=d(c=>U(c)),{useFeatureGate:e}=q(),{isFeatureEnabled:a}=e(M.isDebitCardFeatureEnabled),o=le(a,s),r=de(s);return o===!0||r===!0?n.jsx(Ie,{}):n.jsxs(J,{children:[n.jsx(I,{path:"/",element:n.jsx(O,{})}),n.jsx(I,{path:"/:forecastId",element:n.jsx(O,{})}),n.jsx(I,{path:"/:forecastId/*",element:n.jsx(be,{})})]})}export{Ke as PandLWithForecastRoutes,Ke as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-Cy_MnPa_.js";import E from"./NotFoundScreen-BjzHPdCc.js";import{a as r}from"./sentry-Blrslipw.js";import{h as _,g as P,j as p,i as v,u as M,N as U,n as z,o as F,p as b}from"./core-B2oeYHrf.js";import{eP as O,PZ as h,bo as B,bn as N,hn as V,gT as Z}from"./zeni-epic-state-BREUit58.js";import{F as $,z as I,_ as q,cC as G}from"./index-C0xrHel3.js";import"./mui-DIYZNz3L.js";import{u as H}from"./useAskAiCfoHostNavButtonProps-PRSt4JAz.js";import{M as J}from"./MobileAppDrawer-BcrO3SuR.js";import"./recharts-C6U_7_At.js";import"./analytics-DOcq8-16.js";import"./plaid-BK71q3Le.js";import"./dnd-DwDc-Li-.js";import"./stripe-DMRn4zHo.js";import"./lottie-B3tQ3uYn.js";import"./lexical-DGKnc7bI.js";import"./pdf-DZ9XIykO.js";import"./utils-D3pwfxQv.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]="1c77980f-91b2-43bd-8aba-b975a72d26a9",e._sentryDebugIdIdentifier="sentry-dbid-1c77980f-91b2-43bd-8aba-b975a72d26a9")}catch{}})();const K=z(function(e){const t=I.getSignedInUser(),c=e.tenantState.currentTenantId,o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:c??""},{aggregatedReportViewState:n}=h(e);return{authParams:o,isDisabled:!1,loggedInUser:t,aggregatedReport:n}},function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}})(G),L=()=>{const e=_(),t=P(),c=$(),o=p(a=>O(a)),{aggregatedReportViewState:n}=p(a=>h(a)),{tenantEmailDomain:u}=v(),f=M(),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=B(o?.userRole??[]),k=o?.userRole?.includes("bookkeeping_admin")??!1,x=N(l),y=S||k||x,d=r.useCallback((a,i,A)=>{f(V({fromMonth:a,toMonth:i,cacheOverride:A}))},[]);r.useEffect(()=>{n?.fetchState==="Completed"&&m.current&&(f(Z({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:T}=H({mobileExploreReferrer:"Performance"});return q({isDataReady:n?.fetchState==="Completed"}),y?s.jsxs(s.Fragment,{children:[s.jsx(J,{isAppContentDrawerOpen:w,handleDrawerToggle:g}),s.jsx(K,{navigate:e,location:t,themeState:c,currentTenant:o,signedInUser:l,tenantEmailDomain:u,onReload:D,onTimeRangeSelect:j,handleDrawerToggle:g,isAiCfoAccessEnabled:R,onAskAiCfoClick:T})]}):s.jsx(U,{to:`/${u}/dashboard`,replace:!0})};function ge(){return s.jsxs(F,{children:[s.jsx(b,{path:"*",element:s.jsx(L,{})}),s.jsx(b,{path:"*",element:s.jsx(E,{})})]})}export{ge as default};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-Cy_MnPa_.js";import{a as o}from"./sentry-Blrslipw.js";import{j as f,h as H,u as M,g as V,n as _}from"./core-B2oeYHrf.js";import{h as F,J as N,z as R,b9 as W,A as J,Y as U,_ as $,Q as z,c as l,e as K,a7 as Q,ba as Y}from"./index-C0xrHel3.js";import{f2 as q,eP as G,MJ as P,MK as X,ub as Z,u1 as g,f4 as ee,bO as re,u6 as ae,ML as ne}from"./zeni-epic-state-BREUit58.js";import{D as te,e as se,n as oe,S as ie}from"./mui-DIYZNz3L.js";import{u as le}from"./useAskAiCfoHostNavButtonProps-PRSt4JAz.js";import{M as de}from"./MobileAppDrawer-BcrO3SuR.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]="927b0bde-7852-4eff-b709-b7fe09694e59",e._sentryDebugIdIdentifier="sentry-dbid-927b0bde-7852-4eff-b709-b7fe09694e59")}catch{}})();const ce={overlayWidth:new J(100,100,30)},fe=({isReferralDrawerOpen:e,closeDrawerHandler:r})=>{const a=F(),n=N();if(R.getSignedInUser()==null)throw Error("Can't access How Referral works without signing in...");const i=()=>{r(!0)},u=f(d=>q(d));return s.jsx(te,{anchor:"right",open:e,PaperProps:{style:{width:ce.overlayWidth.valuePercentage(n),boxShadow:"none"}},slotProps:{backdrop:{style:{opacity:.75,backgroundColor:a.colors.black,cursor:"pointer"}}},onClose:()=>i(),children:s.jsx(se,{in:e,direction:"left",children:s.jsx(ue,{onClick:d=>d.stopPropagation(),children:s.jsx(W,{onDismissClick:i,rewardsPlan:u.rewardsPlan})})})})},ue=oe(ie)`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`,I="refer-and-earn-status-update",we=_(function(e){const r=P(e),a=e.referralViewState.rewardsPlanFetchState,n=re([r,a]);return{inviteList:r.invitations,uiState:r.uiState,pendingBonus:r.pendingBonus,earnedBonus:r.earnedBonus,pendingReferrals:r.pendingReferrals,fetchState:n.fetchState,rewardsPlan:r.rewardsPlan}},function(e,r){const{navigate:a}=r;return{onColumnSortConfigChanged:(n,i)=>{e(ne({sortOrder:i,sortkey:n}))},onInviteClick:()=>{l.trackRewardsPageClicked("invite via email"),a("../refer")},onHowItWorksClick:()=>{l.trackRewardsPageClicked("know more"),a("../how-it-works")},onResendInviteClick:n=>{l.trackRewardsPageClicked("resend invite"),e(ae(n))},onBackClick:()=>{a("../",{relative:"path"})},onReloadInvitees:()=>{e(g(!0))},onCopyReferralLink:()=>{l.trackRewardsPageClicked("copy referral link")},onClickRefer:()=>{l.trackRewardsPageClicked("refer")},onEventReceived:n=>{n===I&&e(g(!0,!0))}}})(Q(Y));function ve({isReferralDrawerOpen:e}){const r=H(),a=M(),n=V(),[i,u]=o.useState(!1),[d,x]=o.useState(!1),[D,E]=o.useState(!1),[k,b]=o.useState(!1),w=R.getSignedInUser(),h=f(t=>G(t)),C=f(t=>P(t)),m=C.fetchState,p=f(t=>t.referralViewState.rewardsPlanFetchState),y=X([C,p]),{areTenantIdsInSync:c}=U();o.useEffect(()=>{h?.rewardsLastViewedTime==null&&D===!1&&(a(Z()),E(!0))},[]),o.useEffect(()=>{!i&&m==="Not-Started"&&c&&(u(!0),a(g(!0)))},[m,a,c]),o.useEffect(()=>{!d&&p.fetchState==="Not-Started"&&c&&(x(!0),a(ee(!0)))},[p,a,c]),o.useEffect(()=>{b(e!=null&&e===!0)},[e]);const[j,A]=o.useState(!1),v=t=>{A(t)},{isAiCfoAccessEnabled:O,onAskAiCfoClick:T}=le({mobileExploreReferrer:"Rewards"});$({isDataReady:y===!0});const B={events:w?.userId!=null?[`private-encrypted-${w.userId}.${I}`]:[],eventCallback:(t,S,L)=>{L.onEventReceived(t)}};return s.jsxs(s.Fragment,{children:[y===!0?s.jsx(z,{analytics:l,onLoad:t=>(S=>{w!=null&&S.trackPageLoaded(K.Event.rewardsPageViewed)})(t)}):null,s.jsx(de,{isAppContentDrawerOpen:j,handleDrawerToggle:v}),k===!0?s.jsx(fe,{closeDrawerHandler:()=>{b(!1),r("..")},isReferralDrawerOpen:k}):null,s.jsx(we,{location:n,navigate:r,currentTenant:h,onClickMenuIcon:()=>{v(!0)},isAiCfoAccessEnabled:O,onAskAiCfoClick:T,...B})]})}export{ve as R};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-Cy_MnPa_.js";import R from"./NotFoundScreen-BjzHPdCc.js";import{a as p}from"./sentry-Blrslipw.js";import{h as C,g as I,u as D,j as u,N as A,n as E,o as k,p as d}from"./core-B2oeYHrf.js";import{eP as T,ND as b,NT as S,D8 as V,Ch as _,D7 as f,C_ as N,O7 as U}from"./zeni-epic-state-BREUit58.js";import{h as O,z as $,x as P,a7 as W,bQ as z,af as B}from"./index-C0xrHel3.js";import"./mui-DIYZNz3L.js";import{R as g}from"./ReimbursementApprovalRuleDetailScreen-DAIQXv04.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]="975dff09-ad14-454a-a026-79a8e05a8fed",e._sentryDebugIdIdentifier="sentry-dbid-975dff09-ad14-454a-a026-79a8e05a8fed")}catch{}})();const m="reimbursement-approval-rule-update",Q=E(function(e){return{approvalView:b(e),remiSetupApproverViewUpdateData:S(e).remiSetupApproverViewUpdateData}},function(e,r){const{navigate:a,location:l}=r;return{onApprovalRulesEventReceived:s=>{s.endsWith(m)&&e(U(!1))},onBackClick:()=>{B(l)?a("../../"):a("../../../reimbursements/setup")},onDeleteRuleClick:s=>{e(N(s))},onEditRuleClick:s=>{s!=null?(e(f(s)),a(`./${s}/edit`)):(e(f()),a("./new"))}}})(W(z)),q=()=>{const e=C(),r=I(),a=D(),[l,s]=p.useState(!1),[c,y]=p.useState(!1),h=u(n=>n.remiSetupApproverViewState.fetchState),o=u(n=>T(n)),w=O(),i=u(n=>b(n)),v=u(n=>S(n).remiSetupApproverViewUpdateData);if(p.useEffect(()=>{v?.updateStatus.fetchState==="Completed"&&a(V())},[v]),p.useEffect(()=>{l||h!=="Not-Started"||(s(!0),a(_(!0)))},[l,h,a]),$.getSignedInUser()==null)throw Error("Can't access reimbursement approval without signing in...");p.useEffect(()=>{i.allApprovalRules.length===0&&i.fetchState==="Completed"&&(c||(y(!0),a(f())),e("./new"))},[c,i,a]);const j={events:o.companyId!=null?[`private-encrypted-${o.companyId}.${m}`]:[],eventCallback:(n,F,x)=>{n.endsWith(m)&&x.onApprovalRulesEventReceived(n)}};return o.companyReimbursementInfo?.info?.isReimbursementTOSAccepted===!1?t.jsx(A,{to:"../../promo"}):o.companyReimbursementInfo?.info?.isReimbursementTOSAccepted!==!0||i.fetchState!=="Completed"&&i.fetchState!=="Error"?t.jsx(P,{fetchState:"In-Progress",style:{backgroundColor:w.colors.grey5}}):t.jsx(Q,{currentTenant:o,location:r,navigate:e,...j})};function Z(){return t.jsxs(k,{children:[t.jsx(d,{path:"/",element:t.jsx(q,{})}),t.jsx(d,{path:"/new",element:t.jsx(g,{})}),t.jsx(d,{path:"/:approvalRuleId/edit",element:t.jsx(g,{})}),t.jsx(d,{path:"*",element:t.jsx(R,{})})]})}export{Z as R};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-Cy_MnPa_.js";import{v as w,z as j,aN as h,Q as I,c as p,e as F,cM as P,T as L}from"./index-C0xrHel3.js";import"./mui-DIYZNz3L.js";import l from"./NotFoundScreen-BjzHPdCc.js";import{a as u}from"./sentry-Blrslipw.js";import{u as T,j as y,h as V,g as A,n as Q,o as R,p as d}from"./core-B2oeYHrf.js";import{eP as U,Qw as C,Ni as z,Qx as _,ub as Y,f4 as G,Qy as M,u9 as O}from"./zeni-epic-state-BREUit58.js";import{R as x}from"./ReferralListScreen-CH2aukWD.js";import"./recharts-C6U_7_At.js";import"./analytics-DOcq8-16.js";import"./plaid-BK71q3Le.js";import"./dnd-DwDc-Li-.js";import"./stripe-DMRn4zHo.js";import"./lottie-B3tQ3uYn.js";import"./lexical-DGKnc7bI.js";import"./pdf-DZ9XIykO.js";import"./utils-D3pwfxQv.js";import"./useAskAiCfoHostNavButtonProps-PRSt4JAz.js";import"./MobileAppDrawer-BcrO3SuR.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]="29e8cb25-1bb9-4d7a-815b-a27da7f34aba",a._sentryDebugIdIdentifier="sentry-dbid-29e8cb25-1bb9-4d7a-815b-a27da7f34aba")}catch{}})();const q=Q(function(a,t){const n=C(a);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}},function(a,t){const{navigate:n}=t,o=j.getSignedInUser();return{onDismissClick:()=>{a(_()),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)}a(O())},onUpdateInviteFormLocalData:s=>{a(M({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{o!=null&&p.trackInviteEmailClicked("cancel")}}})(P),B=()=>{const a=T(),[t,n]=u.useState(!1),[o,s]=u.useState(!1),r=y(i=>U(i)),c=V(),v=A(),{useDynamicConfig:g}=w(),f=j.getSignedInUser();if(f==null)throw Error("Can't access invite referral screen without signing in...");const m=y(i=>C(i)),N=f?.firstName!=null?f.firstName:"User",{configValue:b}=g(h.zeniCardsConfig),{configValue:S}=g(h.zeniAccountsConfig),k=z(S);u.useEffect(()=>{a(_()),r?.rewardsLastViewedTime==null&&o===!1&&(a(Y()),s(!0))},[]),u.useEffect(()=>{t||m.fetchState!=="Not-Started"||(n(!0),a(G(!0)))},[m.fetchState,a]);const D=r.company?.companyInfo.companyLegalName??r.companyName;return e.jsxs(e.Fragment,{children:[m.fetchState==="Completed"?e.jsx(I,{analytics:p,onLoad:i=>(E=>E.trackPageLoaded(F.Event.inviteEmailViewed))(i)}):null,e.jsx(q,{navigate:c,location:v,currentTenant:r,companyName:D,userName:N,inviteFormCompayData:m.localData,chargeCardCashbackRatePerTransaction:b.charge_card_cashback_rate_per_transaction!=null?b.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:k.maxAnnualPercentageYield})]})};function da(){const{useFeatureGate:a}=w(),{isFeatureEnabled:t}=a(L.isReferralFeatureEnabled);return e.jsxs(R,{children:[e.jsx(d,{path:"/",element:t?e.jsx(x,{}):e.jsx(l,{})}),e.jsx(d,{path:"how-it-works",element:t?e.jsx(x,{isReferralDrawerOpen:!0}):e.jsx(l,{})}),e.jsx(d,{path:"refer/*",element:t?e.jsx(B,{}):e.jsx(l,{})}),e.jsx(d,{path:"*",element:e.jsx(l,{})})]})}export{da as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as f}from"./liveblocks-Cy_MnPa_.js";import{a as u,b as T,q as A}from"./sentry-Blrslipw.js";import{u as D,h as z,j as c,g as J,N as M,n as O}from"./core-B2oeYHrf.js";import{u as P,z as s,h as j,c as E,D as F,d as _,e as B,O as N,g as V,w as W,f as v}from"./index-C0xrHel3.js";import{eP as $,Jo as q,Jp as G,eW as H,fn as K,Ju as Q,fL as R,cT as X,Jv as b,Jw as Y,Jx as Z,bT as y}from"./zeni-epic-state-BREUit58.js";import"./mui-DIYZNz3L.js";import{u as ee}from"./useDeviceId-DlAGyxDN.js";import{f as te}from"./analyticsHelper-D5HbdAGI.js";import{t as ne}from"./getLocaleForTenant-Dd8HNwmA.js";import"./recharts-C6U_7_At.js";import"./analytics-DOcq8-16.js";import"./plaid-BK71q3Le.js";import"./dnd-DwDc-Li-.js";import"./stripe-DMRn4zHo.js";import"./lottie-B3tQ3uYn.js";import"./lexical-DGKnc7bI.js";import"./pdf-DZ9XIykO.js";import"./utils-D3pwfxQv.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]="b52f0fa7-30a7-45bd-8799-d0a056cc2f83",t._sentryDebugIdIdentifier="sentry-dbid-b52f0fa7-30a7-45bd-8799-d0a056cc2f83")}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())}}})(W),ae=T.memo(ie);function ve({setTenantEmailDomain:t}){const i=D(),d=z(),{clearAllLoading:g}=P(),n=s.getSignedInUser();u.useLayoutEffect(()=>{g()},[g]);const a=ee(),l=c(e=>e.tenantState.magicLinkCodeVerifier),{sendEmailMagicLinkFetchState:h,accountLocked:x,accountUnlockTime:k}=c(e=>e.tenantState),p=c(e=>e.tenantState.fetchState),w=c(e=>e.tenantState.activeTenantFetchState.fetchState),S=c(e=>e.tenantState.signInState),o=c(e=>e.tenantState.loggedInUser),r=c(e=>$(e)),I=c(e=>q(e)),m=J(),L=j().mode,C=m.state?.magicLinkExpired,U=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(()=>{S!=="In-Progress"||p!=="Completed"&&w!=="Completed"||o?.zeniSessionId==null||r==null||(s.savePayNowInfoTooltip(!0,o.zeniSessionId),s.saveSignedInUserWithSession(o,o.zeniSessionId),s.saveSignedInUserTenants(G(I.tenantsInOrder),o.zeniSessionId),H(o.userId,o.zeniSessionId,r.tenantId),i(K(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(Q("Completed")),F.updateAppLocaleID(ne(r)),te(o,r,L,void 0,I.tenantsInOrder),R().then(()=>{const e=V();e!=null&&_(e)}),setTimeout(()=>{E.trackLogin(B.Event.loginSuccess,o.authProvider??"google",X(r.productSettings))},2e3))},[S,p,w,o,r,I,L,m.state,i]),S==="In-Progress"&&p==="Completed"&&o?.zeniSessionId!=null&&r!=null||n!=null){const e=m.state?.origin??"/";return f.jsx(M,{to:e,state:{...m.state,origin:""}})}return f.jsxs(f.Fragment,{children:[f.jsx(ae,{magicLinkExpired:!!C,magicLinkAlreadyUsed:!!U,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),x===!0&&k!=null?f.jsx(N,{onClose:()=>i(b()),unlockDate:k}):null]})}export{ve as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-Cy_MnPa_.js";import{a}from"./sentry-Blrslipw.js";import{u,g as m,h as p,N as g}from"./core-B2oeYHrf.js";import{z as f,x as b,t as y,c,e as h}from"./index-C0xrHel3.js";import{fQ as x,fR as I,JM as w}from"./zeni-epic-state-BREUit58.js";import{n as j}from"./mui-DIYZNz3L.js";import"./recharts-C6U_7_At.js";import"./analytics-DOcq8-16.js";import"./plaid-BK71q3Le.js";import"./dnd-DwDc-Li-.js";import"./stripe-DMRn4zHo.js";import"./lottie-B3tQ3uYn.js";import"./lexical-DGKnc7bI.js";import"./pdf-DZ9XIykO.js";import"./utils-D3pwfxQv.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]="b27212f6-1b7e-484e-8fb8-e71937836ce1",e._sentryDebugIdIdentifier="sentry-dbid-b27212f6-1b7e-484e-8fb8-e71937836ce1")}catch{}})();function U(){const e=u(),t=m(),i=p(),n=a.useRef(!1),l=f.isSignedIn(),r=t.state?.message==="logout",o=r||l;return a.useEffect(()=>{o&&!n.current&&(n.current=!0,setTimeout(()=>{try{f.clearAll(),e(x()),e(I(!1)),w(),y.reset(),c.trackLogout(h.Event.logoutSuccess),c.resetUserIdentity()}catch(d){console.error("Error during sign out:",d)}finally{r||i("/signin/auth",{replace:!0})}},0))},[o,r]),o?s.jsx(v,{children:s.jsx(b,{fetchState:"In-Progress"})}):s.jsx(g,{to:"../",replace:!0})}const v=j.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`;export{U as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as n}from"./liveblocks-Cy_MnPa_.js";import se from"./NotFoundScreen-BjzHPdCc.js";import{a as c}from"./sentry-Blrslipw.js";import{h as Q,u as _,j as g,g as ne,i as oe,N as ie,n as re,o as ce,p as f}from"./core-B2oeYHrf.js";import{Gl as Z,Go as le,Gr as de,eP as M,Qz as J,FF as H,Fn as pe,G5 as ue,F_ as ke,QA as K,QB as $,Fj as me,Fg as fe,qf as ge,q3 as he,ke as Se,Fv as Ie,QC as Te,FA as be,Fx as Ge,Fq as Ee,FK as Ce,FJ as Fe}from"./zeni-epic-state-BREUit58.js";import{z as C,cN as De,F as xe,v as je,T as b,p as W,q as v,Q as ye,c as z,e as ve,cO as we,f as A,at as Re}from"./index-C0xrHel3.js";import{n as Be}from"./mui-DIYZNz3L.js";import{u as Pe}from"./useInitialThreadRequest-unxnPttf.js";import{M as Ue}from"./MobileAppDrawer-BcrO3SuR.js";import Le from"./TaskListScreen-B17KHzvM.js";import"./recharts-C6U_7_At.js";import"./analytics-DOcq8-16.js";import"./plaid-BK71q3Le.js";import"./dnd-DwDc-Li-.js";import"./stripe-DMRn4zHo.js";import"./lottie-B3tQ3uYn.js";import"./lexical-DGKnc7bI.js";import"./pdf-DZ9XIykO.js";import"./utils-D3pwfxQv.js";import"./useAskAiCfoHostNavButtonProps-PRSt4JAz.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]="b26a3992-225b-45c3-a55e-e3fd389ddd88",e._sentryDebugIdIdentifier="sentry-dbid-b26a3992-225b-45c3-a55e-e3fd389ddd88")}catch{}})();function qe(){const e=Q(),t=_(),s=C.getSignedInUser(),{cannedResponses:u,fetchState:r,saveFetchState:d}=g(o=>o.cannedResponsesState),l=c.useCallback(()=>{t(Z())},[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(De,{cannedResponses:u,isLoading:r==="In-Progress"||r==="Not-Started",isSaving:d==="In-Progress",onBackClick:()=>e(-1),onDelete:a,onFetch:l,onSave:k})}let V,O=[];const Ne=re(function(e,t){const{location:s,taskGroupId:u}=t,r=K(e,t.taskId),d=M(e),l=r.taskGroupId??u,k=l!=null?$(e.taskGroupState,l):void 0,a=C.getSignedInUser(),o=d.tenantId,h={userId:a?.userId??"",sessionId:a?.zeniSessionId??"",tenantId:o??""},S=J(e),{tenantEmailDomain:F}=d,G=r.recurringSourceTaskId,D=G!=null?`${A.appUrl}/${F}/tasks/${encodeURIComponent(G)}`:void 0;var I;return{taskDetailSelectorView:r,authParams:h,isZeniUser:C.isZeniUser(),userGroupList:((I=e.userGroupsState.userGroupByUserGroupId)!==V&&(V=I,O=Object.values(I)),O),isNewClicked:s.state?.message==="comingFromTaskListPage",filesEndPoint:Re.fileMicroServiceBaseUrl,companyName:t.currentTenant.companyName,companyId:t.currentTenant.companyId,currentUrl:`${A.appUrl}${t.location.pathname}`,cannedResponses:e.cannedResponsesState.cannedResponses,isCannedResponsesLoading:e.cannedResponsesState.fetchState==="In-Progress",recurringSourceTaskUrl:D,tagListView:S,taskGroupName:l!=null&&k!=null&&k.isDefault===!1?k.name:void 0,taskGroupList:e.taskGroupViewState.taskGroupsIds.map(p=>$(e.taskGroupState,p)).filter(p=>p!=null&&!p.isDeleted).map(p=>({id:p.id,name:p.name,isDefault:p.isDefault}))}},function(e,t){const{taskId:s,navigate:u,currentTenant:r,location:d,taskGroupId:l}=t,{tenantEmailDomain:k}=r;return{onSaveChangesToLocalStore:a=>{e(Fe({taskDetailLocalData:a,taskId:s}))},onSaveDetailClick:a=>{e(Ce(s,a??l))},onArchiveTaskClick:()=>{t.taskId!=null&&e(Ee(t.taskId))},onSnoozeTask:(a,o)=>{e(Ge(a,o))},onUnsnoozeTask:a=>{e(be(a))},onDismissClick:()=>{if(d.state?.message==="triggerBackClick"){const a=W(d.state?.pathnameStackToGoBack),o=a.poppedPathname??"../../dashboard";u(o,{state:{pathnameStackToGoBack:a.newStack}})}else{const a=w(k),o=v(d.state?.pathnameStackToGoBack,d.pathname);u(a,{state:{pathnameStackToGoBack:o}})}e(Te({taskId:s}))},onDeleteTaskClick:()=>{e(Ie(s))},updateFilesEntity:a=>{e(Se({files:a}))},onDeleteFile:a=>{e(he(a))},onEditFileName:(a,o)=>{e(ge(a,o.split(".")[0]))},onReloadTaskDetailPage:()=>{e(H(!1,s))},onCreateTagClick:a=>{e(fe(a,s))},onDeleteTagClick:a=>{e(me(a,s))},onFetchCannedResponses:()=>{e(Z())},onManageTemplatesClick:()=>{u(`/${r.tenantEmailDomain}/tasks/quick-responses`)}}})(we);function y(){const e=Q(),t=_(),s=ne(),u=xe(),{taskId:r,taskGroupId:d}=oe(),l=g(i=>M(i)),k=Pe(l?.companyId),{useFeatureGate:a}=je(),{isFeatureEnabled:o}=a(b.isTaskSnoozeEnabled),{isFeatureEnabled:h}=a(b.isTaskVisibilityEnabled),{isFeatureEnabled:S}=a(b.isTaskCannedResponsesEnabled),{isFeatureEnabled:F}=a(b.isTaskRecurringParentEnabled),{isFeatureEnabled:G}=a(b.isTaskGroupAssigneesEnabled),[D,I]=c.useState(!1),[p,X]=c.useState(!1),[R,Y]=c.useState(!1),[B,ee]=c.useState(!1),[P,x]=c.useState(!1),T=c.useRef(!1),E=g(i=>i.taskListState.updateTasksFetchState.fetchState),U=g(i=>J(i)),L=g(i=>i.taskGroupViewState.fetchState);c.useEffect(()=>{p||(X(!0),t(H(!1,r)))},[p,t]),c.useEffect(()=>{R||U.fetchState==="Completed"||(Y(!0),t(pe()))},[R,t,U.fetchState]),c.useEffect(()=>{B||L==="Completed"||(ee(!0),t(ue()))},[B,t,L]);const ae=c.useCallback(()=>{r!=null&&(T.current=!1,t(ke([r],null,{isArchived:!1})),x(!0))},[t,r]);c.useEffect(()=>{if(P)if(E!=="In-Progress"){if(T.current){if(E==="Error")return x(!1),void(T.current=!1);if(E==="Completed"){x(!1),T.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:v(s.state?.pathnameStackToGoBack,s.pathname)}})}}}}else T.current=!0},[P,E,l,s,e]);const q=g(i=>K(i,r)),j=q.fetchState,N=C.getSignedInUser();if(N==null)throw Error("Can't access task detail page without signing in...");if(j==="Error"&&q.error?.code===400){const{tenantEmailDomain:i}=l,m=w(i),te=v(s.state?.pathnameStackToGoBack,s.pathname);return n.jsx(ie,{to:m,state:{pathnameStackToGoBack:te}})}return n.jsxs(n.Fragment,{children:[j==="Completed"?n.jsx(ye,{analytics:z,onLoad:i=>(m=>m.trackPageLoaded(ve.Event.taskDetailPage))(i)}):null,n.jsxs($e,{children:[n.jsx(Ue,{isAppContentDrawerOpen:D,handleDrawerToggle:i=>{I(i)}}),n.jsx(Ne,{analytics:z,currentTenant:l,handleZeniLogoClick:()=>{u.toggle()},initialOpenThreadRequest:k,location:s,loggedInUser:N,navigate:e,taskGroupId:d,taskId:r,taskDetailFetchState:j,onUnarchiveTaskClick:ae,isTaskSnoozeEnabled:o,isTaskVisibilityEnabled:h,isTaskCannedResponsesEnabled:S,isTaskRecurringParentEnabled:F,isTaskGroupAssigneesEnabled:G})]})]})}const $e=Be.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 ia(){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(qe,{})}),n.jsx(f,{path:"/:taskId",element:n.jsx(y,{})}),n.jsx(f,{path:"*",element:n.jsx(se,{})})]})}export{ia as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./liveblocks-Cy_MnPa_.js";import{a as d}from"./sentry-Blrslipw.js";import{s as u,u as h,j as b,N as y}from"./core-B2oeYHrf.js";import{JJ as I,eW as w,zI as x}from"./zeni-epic-state-BREUit58.js";import{z as l,x as j,E as S,H as E}from"./index-C0xrHel3.js";import{n as p}from"./mui-DIYZNz3L.js";import"./recharts-C6U_7_At.js";import"./analytics-DOcq8-16.js";import"./plaid-BK71q3Le.js";import"./dnd-DwDc-Li-.js";import"./stripe-DMRn4zHo.js";import"./lottie-B3tQ3uYn.js";import"./lexical-DGKnc7bI.js";import"./pdf-DZ9XIykO.js";import"./utils-D3pwfxQv.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]="b0946b2f-e780-4213-8ffa-9358415e8b0a",e._sentryDebugIdIdentifier="sentry-dbid-b0946b2f-e780-4213-8ffa-9358415e8b0a")}catch{}})();const A=()=>{const[e]=u(),t=e.get("code")??"",i=e.get("state")??"",g=e.get("profileId")??"",[n,m]=d.useState(!1),a=h(),s=b(c=>I(c)),r=l.getSignedInUser(),f=l.getSignedInUserTenantWithId(i);if(r==null||f==null)return o.jsx(y,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return w(r.userId,r.zeniSessionId,f?.tenantId),d.useEffect(()=>{n||(m(!0),a(x(t,g,i)))},[n,a]),s.fetchState==="Error"?o.jsx(D,{children:o.jsx(_,{children:s.error?.message??""})}):(s.fetchState==="Completed"&&window.close(),o.jsx(j,{fetchState:"In-Progress"}))},D=p.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
|
-
`,_=p(E.LargeRegular)`
|
|
10
|
-
display: flex;
|
|
11
|
-
color: ${S.important};
|
|
12
|
-
`;export{A as default};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import{j as n}from"./liveblocks-Cy_MnPa_.js";import{h as Y,g as q,u as z,i as H,j as w,n as K,N as ne,o as Ve,p as k}from"./core-B2oeYHrf.js";import{eP as _,OD as Ce,OE as $e,cl as te,cm as Ne,fg as He,wV as ke,B6 as Ze,wP as Tn,OF as On,OG as Bn,wS as Fn,wZ as fe,wM as Rn,wJ as Ln,Np as le,OH as Un,Eq as zn,Kv as _n,Es as Mn,kn as Oe,OI as Vn,qf as Ge,q3 as We,ke as Ye,kh as Be,Kw as Fe,Kx as $n,OJ as Nn,kg as Hn,kD as Zn,k5 as Gn,iE as Wn,iD as Yn,OK as qn,OL as ye,E7 as Kn,OM as Jn,ON as Qn,Ni as we,OO as Re,OP as Xn,ED as et,O1 as nt,C0 as qe,sP as Ke,OQ as tt,EA as at,OR as Je,cM as Ae,EH as Qe,fh as ot,eY as Xe,e_ as De,EF as st,BW as rt,Ex as it,OS as en,OT as nn,E9 as tn,Ej as Le,OU as ct,Ed as lt,OV as dt,NR as ut,EI as pt,bt as mt,bF as ht,cx as gt,bG as ft,bs as yt,Jq as xt}from"./zeni-epic-state-BREUit58.js";import{k as ae,v as $,z as D,T as O,h as M,x as de,bW as Ct,a2 as Ie,J as V,A as J,p as an,aq as kt,af as Ue,c as R,bX as wt,at as Se,bY as At,Q as ue,bZ as Dt,e as be,aN as W,b_ as It,Y as St,_ as on,ac as bt,b$ as ze,c0 as Et,q as ee,c1 as vt,c2 as Pt,c3 as jt,c4 as Tt,a9 as Ot,o as Bt}from"./index-C0xrHel3.js";import{n as L,D as Q,S as X}from"./mui-DIYZNz3L.js";import ce from"./NotFoundScreen-BjzHPdCc.js";import{S as _e}from"./SetupPagesScreen-BSvjrIr7.js";import{F as sn}from"./FeaturePreviewScreen-Bis2qUIl.js";import{a as u}from"./sentry-Blrslipw.js";import{M as pe}from"./MobileAppDrawer-BcrO3SuR.js";import{A as Ft,D as Rt,V as Lt}from"./DomesticWireDetailScreen-UI2yO_5Y.js";import{A as Ut}from"./AddressScreen-DWXQyZaS.js";import{u as rn}from"./useAskAiCfoHostNavButtonProps-PRSt4JAz.js";import{Z as zt}from"./ZeniAccountStatementScreen-DPQ9YUYH.js";import"./recharts-C6U_7_At.js";import"./analytics-DOcq8-16.js";import"./plaid-BK71q3Le.js";import"./dnd-DwDc-Li-.js";import"./stripe-DMRn4zHo.js";import"./lottie-B3tQ3uYn.js";import"./lexical-DGKnc7bI.js";import"./pdf-DZ9XIykO.js";import"./utils-D3pwfxQv.js";import"./analyticsHelper-D5HbdAGI.js";import"./routePaths-B8QNeXRi.js";import"./BusinessVerificationPageScreen-B5iM1cnx.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]="fcac4f53-f6ad-444f-8d2a-0be0b3e605d6",e._sentryDebugIdIdentifier="sentry-dbid-fcac4f53-f6ad-444f-8d2a-0be0b3e605d6")}catch{}})();const _t=L.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
|
-
`,Mt=K(function(e){return{autoTransferRuleView:Ce(e),downloadAccountDetailEndPoint:`${Ie}/account_details`,transferLimit:5e5,depositAccountListView:Ze(e.depositAccountState,e.depositAccountListState)}},function(e,t){const{navigate:s,handleDrawerToggle:o}=t;return{onBackClick:()=>{s("..")},onClickMenuIcon:()=>{o(!0)},onFetchAutoTransferRules:a=>{e(ke(a))},onCreateRule:()=>{e(Ln())},onUpdateRule:a=>{e(fe(a))},onDeleteClick:a=>{e(Rn(a))},onPauseClick:a=>{e(fe(a,!0,!1))},onResumeClick:a=>{e(fe(a,!1,!0))},onActivityClick:(a,r)=>{e(Fn(a,r))},onUpdateRuleLocalData:a=>{e(Bn(a))},clearRuleLocalData:()=>{e(On())},onEditClick:a=>{s(`./${a}/edit`)},onEditDrawerClose:()=>{s("../../",{relative:"path"})},onReviewClick:()=>{e(Tn())}}})(Ct);function Me({isEditDrawerOpen:e}){const t=Y(),s=q(),o=z(),a=ae(),{ruleId:r,tenantEmailDomain:d}=H(),{useFeatureGate:c}=$(),[p,m]=u.useState(!1),[x,i]=u.useState(!1),l=w(y=>_(y)),h=w(y=>Ce(y)),C=h?.fetchState??"Not-Started",b=w(y=>$e(y)),g=l?.companyId??D.getSignedInUserTenant(d)?.companyId,A=te(a?.loggedInUserRoleMap)||Ne(a?.loggedInUserRoleMap),{isFeatureEnabled:I}=c(O.isTreasuryEnabled),f=l?.company!=null&&He(l.company),S=I&&f,B=D.getSignedInUser(),U=l.tenantId,j={userId:B?.userId??"",sessionId:B?.zeniSessionId??"",tenantId:U??""},v=l.companyName;u.useEffect(()=>{!x&&C==="Not-Started"&&g&&(i(!0),o(ke(!0)))},[x,C,g,o]);const E=y=>{m(y)},T=M(),P=!!s.state?.scrollToAddRule;return h?.fetchState!=="Completed"?n.jsx(de,{fetchState:"In-Progress",style:{backgroundColor:T.colors.grey5}}):n.jsxs(_t,{children:[n.jsx(pe,{isAppContentDrawerOpen:p,handleDrawerToggle:E}),n.jsx(Mt,{navigate:t,location:s,currentTenant:l,companyName:v,handleDrawerToggle:E,isEditDrawerOpen:e,editingRuleId:r,authParams:j,includeTreasuryOption:S,hasAdminLevelAccess:A,zeniAccountsConfigDetail:b,scrollToAddRule:P})]})}const Vt={overlayWidth:new J(100,100,58)},$t=({vendorId:e,isDrawerOpen:t,closeDrawerHandler:s})=>{const o=z(),a=M(),r=V();if(D.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return n.jsx(Q,{onClose:()=>{s(!0),o(le())},anchor:"right",open:t,PaperProps:{style:{width:Vt.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(Nt,{onClick:d=>d.stopPropagation(),children:n.jsx(Ft,{vendorIdParam:e,accountContext:"express-pay"})})})},Nt=L(X)`
|
|
10
|
-
display: flex;
|
|
11
|
-
min-height: 100%;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
`,Ht={overlayWidth:new J(100,100,58)},Zt=({isDrawerOpen:e,closeDrawerHandler:t})=>{const s=z(),o=M(),a=V();if(D.getSignedInUser()==null)throw Error("Can't access address page without signing in...");return n.jsx(Q,{onClose:()=>{t(!0),s(le())},anchor:"right",open:e,PaperProps:{style:{width:Ht.overlayWidth.valuePercentage(a),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(Gt,{onClick:r=>r.stopPropagation(),children:n.jsx(Ut,{accountContext:"express-pay",addressTypeParam:"vendor_address"})})})},Gt=L(X)`
|
|
14
|
-
display: flex;
|
|
15
|
-
min-height: 100%;
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
`,Wt={overlayWidth:new J(100,100,58)},Yt=({vendorId:e,isDrawerOpen:t,closeDrawerHandler:s})=>{const o=z(),a=M(),r=V();if(D.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return n.jsx(Q,{onClose:()=>{s(!0),o(le())},anchor:"right",open:t,PaperProps:{style:{width:Wt.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(qt,{onClick:d=>d.stopPropagation(),children:n.jsx(Rt,{vendorIdParam:e,accountContext:"express-pay"})})})},qt=L(X)`
|
|
18
|
-
display: flex;
|
|
19
|
-
min-height: 100%;
|
|
20
|
-
flex-direction: column;
|
|
21
|
-
`,Kt=L.div`
|
|
22
|
-
display: flex;
|
|
23
|
-
height: 100vh;
|
|
24
|
-
width: 100%;
|
|
25
|
-
flex: 1 1 auto;
|
|
26
|
-
flex-direction: column;
|
|
27
|
-
align-items: center;
|
|
28
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
29
|
-
`,Jt=K(function(e,t){const s=_(e),o=D.getSignedInUser(),a=s.tenantId,r={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:a??""},d=t.expressPayDetails,c=e.entityAutoCompleteState.autoCompleteText.common,p=_n(e,"common");return{expressPayDetails:d,fileProps:{authParams:r,filesEndPoint:`${Se.fileMicroServiceBaseUrl}`},vendorSearchAutoCompleteData:{autoCompleteText:c,entityAutoCompleteView:p},analytics:t.analytics}},function(e,t){const{navigate:s}=t;return{onSaveVendor:o=>{e(Yn(o,void 0,void 0,!0))},saveVendorDetailLocalData:(o,a)=>{e(Be({vendorId:a,localData:o}))},saveExpressPayLocalData:o=>{e(Wn({localData:o}))},onVendorSelected:o=>{o!=null&&e(Gn(o,!1))},updateSelectedVendorForCreate:o=>{e(Zn(o))},initializeVendorAddress:()=>{e(Hn())},resetVendorSaveStatus:o=>{e(Nn({vendorId:o}))},vendorSearchAutoCompleteActions:{onAutoCompleteInputChange:(o,a)=>{o.trim().length>=2?e($n({searchString:o,entityType:a,searchOrigin:"common"})):o.trim().length===0&&e(Fe("common"))},onCancelAutoComplete:()=>{e(Fe("common"))}},chooseNewVendor:o=>{e(Be({localData:{vendorName:o}}))},onClickAddAccount:o=>{o.method.toLowerCase().indexOf("ach")!==-1?s("./add-ach",{relative:"path"}):o.method.toLowerCase().indexOf("wire")!==-1&&o.method.toLowerCase().indexOf("domestic")!==-1&&s("./add-wire",{relative:"path"})},updateFilesEntity:o=>{e(Ye({files:o}))},onDeleteFile:o=>{e(We(o))},onEditFileName:(o,a)=>{e(Ge(o,a.split(".")[0]))},onBackClick:o=>{o!=null&&e(Oe(o)),e(Oe()),e(Vn()),e(le()),s("../",{relative:"path"})},onSchedulePayment:()=>{e(Mn())}}})(wt);function re({isAddACHDrawerOpen:e,isAddWireDrawerOpen:t,isAddAddressDrawerOpen:s}){const o=Y(),a=q(),r=z(),[d,c]=u.useState(!1),{tenantEmailDomain:p}=H(),m=ae(),x=w(y=>y.expressPayState.fetchState),i=w(y=>_(y)),l=w(y=>Un(y)),h=l.expressPayLocalData?.vendorId,C=i.companyId??D.getSignedInUserTenant(p)?.companyId,[b,g]=u.useState(!1),[A,I]=u.useState(!1),[f,S]=u.useState(!1),B=an(a.state?.pathnameStackToGoBack),{poppedPathname:U}=B,j=U?.split("/"),v=j?.[j.length-1];u.useEffect(()=>{e===!0?g(!0):(g(!1),document.body.style.overflow="auto")},[e]),u.useEffect(()=>{t===!0?I(!0):(I(!1),document.body.style.overflow="auto")},[t]),u.useEffect(()=>{s===!0?S(!0):(S(!1),document.body.style.overflow="auto")},[s]),u.useEffect(()=>{x==="Not-Started"&&r(zn(!0,!0))},[x,r]);const E=kt(l.vendorViewDetails.bankAccountCreationState?.fetchState);if(u.useEffect(()=>{E==="In-Progress"&&l.vendorViewDetails.bankAccountCreationState?.fetchState==="Completed"&&P()},[E,l.vendorViewDetails.bankAccountCreationState?.fetchState]),D.getSignedInUser()==null)throw Error("Can't access express pay page without signing in...");const T=y=>{c(y)},P=()=>{g(!1),I(!1),o("../",{relative:"path"})};return n.jsxs(Kt,{children:[Ue(a)?n.jsx(pe,{isAppContentDrawerOpen:d,handleDrawerToggle:T}):null,b===!0?n.jsx($t,{vendorId:h,closeDrawerHandler:P,isDrawerOpen:b}):null,A===!0?n.jsx(Yt,{vendorId:h,closeDrawerHandler:P,isDrawerOpen:A}):null,f===!0?n.jsx(Zt,{closeDrawerHandler:P,isDrawerOpen:f}):null,n.jsx(Lt,{vendorId:h,isExpressPayPage:!0}),n.jsx(Jt,{navigate:o,location:a,companyId:C,accountId:v,analytics:R,currentTenant:i,vendorId:h,roleMap:m?.loggedInUserRoleMap,isSettings:Ue(a),expressPayDetails:l,onClickMenuIcon:()=>{T(!0)}})]})}const Qt={overlayWidth:new J(100,100,58)},Xt=({authParams:e,downloadAccountDetailEndPoint:t,isAccountInfoDrawerOpen:s,zeniBankAccountDetail:o,closeDrawerHandler:a})=>{const r=M(),d=V(),c=w(i=>$e(i)),p=w(i=>_(i));if(D.getSignedInUser()==null)throw Error("Can't access Account detail page without signing in...");const m=()=>{a(!0)},x={depositAccount:o,onDismissClick:m,zeniAccountsConfigDetail:c,authParams:e,downloadAccountDetailEndPoint:t,currentTenant:p};return n.jsx(Q,{anchor:"right",open:s,PaperProps:{style:{width:Qt.overlayWidth.valuePercentage(d),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:r.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>m(),children:n.jsx(ea,{onClick:i=>i.stopPropagation(),children:n.jsx(At,{...x})})})},ea=L(X)`
|
|
30
|
-
display: flex;
|
|
31
|
-
min-height: 100%;
|
|
32
|
-
flex-direction: column;
|
|
33
|
-
`,na={overlayWidth:new J(100,100,58)},cn=({isCheckDepositDrawerOpen:e,closeDrawerHandler:t})=>{const s=M(),o=V(),a=z(),r=w(i=>_(i)),d=D.getSignedInUser(),c=r.tenantId,p={userId:d?.userId??"",sessionId:d?.zeniSessionId??"",tenantId:c??""};if(d==null)throw Error("Can't access check deposit page without signing in...");const m=w(i=>qn(i)),x={analytics:R,checkDeposit:m,filesEndPoint:`${Se.fileMicroServiceBaseUrl}`,authParams:p,onSaveChangesToLocalStore:i=>{a(Jn(i))},updateFilesEntity:i=>{a(Ye({files:i}))},onAnotherTransferClick:()=>{a(ye())},onDeleteFile:i=>{a(We(i))},onEditFileName:(i,l)=>{a(Ge(i,l.split(".")[0]))},onCheckDpositClick:()=>{a(Kn())},onDismissClick:()=>{t(!0),a(ye())}};return n.jsxs(n.Fragment,{children:[n.jsx(ue,{analytics:R,onLoad:i=>(l=>l.trackPageLoaded(be.Event.accountsDepositCheckFormViewed))(i)}),n.jsx(Q,{anchor:"right",open:e,PaperProps:{style:{width:na.overlayWidth.valuePercentage(o),boxShadow:"none",zIndex:8}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.75,cursor:"pointer"}}},onClose:(i,l)=>(l==="backdropClick"||l==="escapeKeyDown")&&(t(!0),void a(ye())),children:n.jsx(ta,{onClick:i=>i.stopPropagation(),children:n.jsx(Dt,{...x})})})]})},ta=L(X)`
|
|
34
|
-
display: flex;
|
|
35
|
-
min-height: 100%;
|
|
36
|
-
flex-direction: column;
|
|
37
|
-
`,aa={overlayWidth:new J(100,100,58)},oa=K(function(e,t){const s=t.currentTenant?.companyId;return{plaidConnectionDetails:nt(e,s,"zeni_accounts","external_account").plaidConnectionDetails,depositAccountListView:Ze(e.depositAccountState,e.depositAccountListState)}},function(e,t){return{onReviewClick:()=>e(at()),clearReviewTransferDetail:()=>e(tt()),onFetchLinkTokenClick:s=>{e(Ke("external_account",s))},onEstablishConnectionClick:s=>{e(qe(s,t.currentTenant?.companyId,"external_account",void 0,"link_external_account"))}}})(It),ln=({isTransferDrawerOpen:e,authParams:t,downloadAccountDetailEndPoint:s,closeDrawerHandler:o,zeniAccountsConfig:a})=>{const r=w(f=>Qn(f)),d=w(f=>_(f)),c=M(),p=V(),m=z(),{accountId:x}=H(),[i,l]=u.useState("achTransfer"),[h,C]=u.useState(!1);if(D.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const{useDynamicConfig:b}=$(),{configValue:g}=b(W.zeniAccountsConfig),A=we(g),I=()=>{o(!0),m(Re())};return u.useEffect(()=>{r.reviewTransferDetail.fetchState==="Completed"&&C(!0)},[C,r.reviewTransferDetail.fetchState]),n.jsxs(n.Fragment,{children:[n.jsx(ue,{analytics:R,onLoad:f=>(S=>S.trackPageLoaded(be.Event.zeniAccountsTransferFormViewed))(f)}),n.jsx(Q,{onClose:()=>{(i==="achTransfer"&&h===!1||i==="achTransfer"&&h&&r.fetchState==="Completed")&&I()},anchor:"right",open:e,PaperProps:{style:{width:aa.overlayWidth.valuePercentage(p),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:c.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(sa,{onClick:f=>f.stopPropagation(),children:n.jsx(oa,{analytics:R,transferDetails:r,authParams:t,downloadAccountDetailEndPoint:s,onTransferClick:()=>{R.trackTransferBetweenAccountsFormClicked("Transfer",r.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning?"Review Split Transfer":"Review Transfer",r.transferDetailLocalData.transferFrom?.label,r.transferDetailLocalData.transferTo?.label,r.transferDetailLocalData.amount.amount,r.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning,r.reviewTransferDetail.reviewTransferMoney.transferSchedules.length,r.transferDetailLocalData.transferFrom?.accType==="paymentAccount"&&r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&a.zeniAccountsConfigDetail.depositProductConfig.depositProducts?.[0].range?.[1]!=null&&r.transferDetailLocalData.amount.amount>a.zeniAccountsConfigDetail.depositProductConfig.depositProducts[0].range[1]),m(et(x))},onDismissClick:I,onSaveChangesToLocalStore:f=>{m(Xn(f))},onAnotherTransferClick:()=>{C(!1),m(Re())},currentTenant:d,zeniAccountsConfigDetail:a,currentDrawerContent:i,setCurrentDrawerContent:l,showReviewContent:h,setShowReviewContent:C,onBackClick:()=>{},maxInsuredAmount:A.maxInsuredAmount})})})]})},sa=L(X)`
|
|
38
|
-
display: flex;
|
|
39
|
-
min-height: 100%;
|
|
40
|
-
flex-direction: column;
|
|
41
|
-
`,ra=L.div`
|
|
42
|
-
display: flex;
|
|
43
|
-
min-height: 100%;
|
|
44
|
-
width: 100%;
|
|
45
|
-
flex: 1 1 auto;
|
|
46
|
-
flex-direction: column;
|
|
47
|
-
align-items: center;
|
|
48
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
49
|
-
`,ia=K(function(e,t){return{zeniAccountListView:Je(e),isExpressPayEnabled:t.isExpressPayEnabled,analytics:t.analytics}},function(e,t){const{navigate:s,currentTenant:o,location:a,companyId:r,handleDrawerToggle:d,analytics:c,isBillPayEnabled:p,isDebitCardFeatureEnabled:m}=t,{tenantEmailDomain:x}=o;return{onZeniAccountClick:(i,l)=>{c.trackAccountsListPageClicked("Accounts Row Item Click",l,"active");const h=ca(x,i),C=ee(a.state?.pathnameStackToGoBack,a.pathname);s(h,{state:{pathnameStackToGoBack:C}})},onSettingsClick:()=>{c.trackAccountsListPageClicked("Settings Icon"),s("setup")},onReloadTransactions:()=>{e(Qe(!1))},handleMoveMoneyOptionSelection:(i,l)=>{let h="page-not-found";i==="sendMoney"&&(h=mn(x)),i==="payBill"?h=dn(o,p,m):i==="transfer"?(h=un(x),l!=null&&e(en(l))):i==="checkDeposit"&&(h=pn(x));const C=ee(a.state?.pathnameStackToGoBack,a.pathname);s(h,{state:{pathnameStackToGoBack:C}})},unlinkPaymentAccount:(i,l)=>{c.trackAccountsListPageClicked("Unlink Account",l),e(it(i))},onFetchLinkTokenClick:(i,l)=>{e(Ke("external_account",i,l))},onUpdatePaymentAccountStatus:(i,l,h)=>{e(rt(i,l,"zeni_accounts","external_account",h))},onEstablishConnectionClick:i=>{e(qe(i,r,"external_account",void 0,"link_external_account"))},onCreateCheckingClick:i=>{e(st(i))},onClickMenuIcon:()=>{d(!0)},onTreasuryGetStartedClick:()=>{s("../../treasury/promo")},onAutoTransferClick:i=>{i?s("./auto-transfer",{state:{...a.state,scrollToAddRule:!0}}):s("./auto-transfer")}}})(Et);function xe({isTransferDrawerOpen:e,isCheckDepositDrawerOpen:t}){const s=q(),o=Y(),a=z(),r=V(),{tenantEmailDomain:d}=H(),{useDynamicConfig:c,useFeatureGate:p}=$(),m=M(),{configValue:x}=c(W.zeniAccountsConfig),{isFeatureEnabled:i}=p(O.isTreasuryEnabled),{isFeatureEnabled:l}=p(O.isDebitCardFeatureEnabled),{isFeatureEnabled:h}=p(O.isAutoTransferRuleEnabled),{isFeatureEnabled:C}=p(O.isCheckingCommentingEnabled),b=we(x),g=w(F=>_(F)),A=g.companyId??D.getSignedInUserTenant(d)?.companyId,{configValue:I}=c(W.expressPayConfig),f=I.is_enable_all_tenants===!0||I.tenant_ids!=null&&I.tenant_ids.includes(g.tenantId),[S,B]=u.useState(!1),[U,j]=u.useState(!1),[v,E]=u.useState(!1),[T,P]=u.useState(!1),y=w(F=>Je(F)),N=y.fetchState,oe=w(F=>Ce(F)),se=oe?.fetchState??"Not-Started",me=!!g.companyZeniAccountInfo?.info?.isZeniAccountEnabled,Z=ae(),G=!!g.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,hn=!!g.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,gn=te(Z?.loggedInUserRoleMap),fn=Ae(Z?.loggedInUserRoleMap),yn=!!g.companyBillPayInfo?.info?.isBillPayEnabled,Ee=D.getSignedInUser(),xn={userId:Ee?.userId??"",sessionId:Ee?.zeniSessionId??"",tenantId:g.tenantId??""},Cn=`${Ie}/account_details`,{areTenantIdsInSync:ve}=St();u.useEffect(()=>{!S&&ve&&(B(!0),a(Qe(!1)))},[S,a,N,ve]),u.useEffect(()=>{!U&&se==="Not-Started"&&A&&(j(!0),a(ke(!0)))},[U,se,A,a]),u.useEffect(()=>{e!=null&&e===!0?E(!0):(E(!1),document.body.style.overflow="auto")},[e]),u.useEffect(()=>{P(t!=null&&t===!0)},[t]);const Pe=()=>{E(!1),o("..")},[kn,wn]=u.useState(!1),je=F=>{wn(F)},{isAiCfoAccessEnabled:An,onAskAiCfoClick:Dn}=rn({mobileExploreReferrer:"Checking Accounts"});on({isDataReady:N==="Completed"});const In=g.company!=null&&He(g.company),he=(i&&In)===!0&&!hn,[Sn,bn]=u.useState(!1),ge=w(F=>F.treasurySetupViewState.treasuryFundsDetails),En=ge.fundsDetails,vn=bt(En);u.useEffect(()=>{he!==!0||Sn||ge?.fetchStatus.fetchState!=="Not-Started"||(bn(!0),a(ot()))},[ge.fetchStatus,a]);const Pn=Xe(g),jn=De(l,g);return Pn===!0&&jn!==!0?n.jsx(sn,{}):me?n.jsxs(n.Fragment,{children:[y.fetchState==="Completed"&&v===!1&&T===!1?n.jsx(ue,{analytics:R,onLoad:F=>(Te=>{Te.trackAccountsListPageViewed(y.depositAccountsSelectorView.depositAccounts.length,y.externalAccountsSelectorView.paymentAccounts.length,ze(y.summary?.totalBalance.available.amount??0),ze(y.summary?.totalInterest.available.amount??0),y.zeniAccountsConfig.zeniAccountsConfigDetail.annualPercentageYield),he&&Te.trackTreasuryPromoView("Checking Promo Banner")})(F)}):null,v===!0?n.jsx(ln,{closeDrawerHandler:Pe,isTransferDrawerOpen:v,zeniAccountsConfig:y.zeniAccountsConfig,authParams:xn,downloadAccountDetailEndPoint:Cn}):null,T===!0?n.jsx(cn,{closeDrawerHandler:Pe,isCheckDepositDrawerOpen:T}):null,n.jsxs(ra,{windowSize:r,children:[n.jsx(pe,{isAppContentDrawerOpen:kn,handleDrawerToggle:je}),n.jsx(ia,{zeniBankListView:y,navigate:o,currentTenant:g,location:s,companyId:A,analytics:R,maxInsuredAmount:b.maxInsuredAmount,isExpressPayEnabled:f,isBillPayEnabled:yn,isCheckingCommentingEnabled:C,isDebitCardFeatureEnabled:l,isAutoTransferRuleEnabled:h,handleDrawerToggle:je,showTreasuryPromo:he,treasuryYieldPercentage:vn,treasuryInsuredAmount:5e5,isAiCfoAccessEnabled:An,onAskAiCfoClick:Dn})]})]}):G&&gn?n.jsx(ne,{to:"../setup"}):g.companyZeniAccountInfo?.info&&!G&&fn?n.jsx(ne,{to:"../promo",state:s.state}):n.jsx(de,{fetchState:"In-Progress",style:{backgroundColor:m.colors.grey5}})}const dn=(e,t,s)=>{const o=De(s,e),{tenantEmailDomain:a}=e;return o===!0||t===!1?`/${a}/bills`:`/${a}/bill/new`},ca=(e,t)=>`/${e}/checking/${t}`,un=(e,t)=>t==null?`/${e}/checking/transfer`:`/${e}/checking/${t}/transfer`,pn=(e,t)=>t==null?`/${e}/checking/check-deposit`:`/${e}/checking/${t}/check-deposit`,mn=e=>`/${e}/checking/express-pay`,la=L.div`
|
|
50
|
-
display: flex;
|
|
51
|
-
width: 100%;
|
|
52
|
-
flex: 1 1 auto;
|
|
53
|
-
flex-direction: column;
|
|
54
|
-
align-items: center;
|
|
55
|
-
min-height: 100vh;
|
|
56
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
57
|
-
`,da=K(function(e,t){const{currentTenant:s}=t,o=nn(e,t.accountId),a=D.getSignedInUser(),r=e.tenantState.currentTenantId,d={userId:a?.userId??"",sessionId:a?.zeniSessionId??"",tenantId:r??""},c=o.accountDetail?.id??"";return{currentTenantCompanyName:s.companyName??"",authParams:d,downloadEndPoint:`${Se.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${c}`,zeniAccountDetail:o,isExpressPayEnabled:t.isExpressPayEnabled,fetchState:o.fetchState}},function(e,t){const{navigate:s,currentTenant:o,location:a,accountId:r}=t,{tenantEmailDomain:d}=o;return{handleMoveMoneyOptionSelection:(c,p)=>{let m="page-not-found";c==="sendMoney"?m=mn(d):c==="payBill"?m=dn(o,t.isBillPayEnabled,t.isDebitCardFeatureEnabled):c==="transfer"?(m=un(d,r),p!=null&&e(en(p))):c==="checkDeposit"?(m=pn(d,r),p!=null&&e(ct(p))):c==="accountStatement"&&(m=ma(d,r));const x=ee(a.state?.pathnameStackToGoBack,a.pathname);s(m,{state:{pathnameStackToGoBack:x}})},onViewAllTransactionClick:()=>{const c=pa(d,r),p=ee(a.state?.pathnameStackToGoBack,a.pathname);s(c,{state:{pathnameStackToGoBack:p}})},onAccountDetailClick:()=>{const c=ua(d,r),p=ee(a.state?.pathnameStackToGoBack,a.pathname);s(c,{state:{pathnameStackToGoBack:p}})},onEditNameClick:c=>{e(Le(r,"editName",c))},onReloadZeniAccountDetailPage:()=>{e(tn(r,!1))},onCloseAccountClick:()=>{e(Le(r,"closeAccount",""))},onBackClick:()=>{s("../",{relative:"path"})}}})(vt);function ie({isTransferDrawerOpen:e,isCheckDepositDrawerOpen:t,isAccountInfoDrawerOpen:s}){const o=q(),a=Y(),r=z(),d=V(),{tenantEmailDomain:c,accountId:p}=H(),{useDynamicConfig:m}=$(),{useFeatureGate:x}=$(),{isFeatureEnabled:i}=x(O.isDebitCardFeatureEnabled),{isFeatureEnabled:l}=x(O.isCheckingCommentingEnabled),h=w(G=>_(G)),{configValue:C}=m(W.expressPayConfig),b=C.is_enable_all_tenants===!0||C.tenant_ids!=null&&C.tenant_ids.includes(h.tenantId),g=!!h.companyBillPayInfo?.info?.isBillPayEnabled,A=D.getSignedInUser(),I=h.companyId??D.getSignedInUserTenant(c)?.companyId,f={userId:A?.userId??"",sessionId:A?.zeniSessionId??"",tenantId:h.tenantId??""},S=`${Ie}/account_details`,[B,U]=u.useState(!1),[j,v]=u.useState(!1),[E,T]=u.useState(!1),[P,y]=u.useState(!1),N=w(G=>nn(G,p??"")),oe=N.fetchState,{isAiCfoAccessEnabled:se,onAskAiCfoClick:me}=rn({mobileExploreReferrer:"Checking Account Detail"});on({isDataReady:oe==="Completed"}),u.useEffect(()=>{B||(r(tn(p??"",!1)),U(!0))},[B,r,oe]),u.useEffect(()=>{y(s!=null&&s===!0)},[s]),u.useEffect(()=>{e!=null&&e===!0?v(!0):(v(!1),document.body.style.overflow="auto")},[e]),u.useEffect(()=>{T(t!=null&&t===!0)},[t]);const Z=()=>{y(!1),a("..")};return n.jsxs(n.Fragment,{children:[P===!0&&N.accountDetail!=null?n.jsx(Xt,{authParams:f,downloadAccountDetailEndPoint:S,closeDrawerHandler:Z,isAccountInfoDrawerOpen:P,zeniBankAccountDetail:N.accountDetail}):null,j===!0?n.jsx(ln,{closeDrawerHandler:Z,isTransferDrawerOpen:j,zeniAccountsConfig:N.zeniAccountsConfig,authParams:f,downloadAccountDetailEndPoint:S}):null,E===!0?n.jsx(cn,{closeDrawerHandler:Z,isCheckDepositDrawerOpen:E}):null,n.jsx(la,{windowSize:d,children:n.jsx(da,{navigate:a,currentTenant:h,location:o,companyId:I,isDebitCardFeatureEnabled:i,accountId:p??"",isBillPayEnabled:g,isCheckingCommentingEnabled:l,isExpressPayEnabled:b,isAiCfoAccessEnabled:se,onAskAiCfoClick:me})})]})}const ua=(e,t)=>`/${e}/checking/${t}/account-info`,pa=(e,t)=>`/${e}/checking/${t}/transactions`,ma=(e,t)=>`/${e}/checking/${t}/statements`,ha=L.div`
|
|
58
|
-
display: flex;
|
|
59
|
-
height: 100vh;
|
|
60
|
-
width: 100%;
|
|
61
|
-
flex: 1 1 auto;
|
|
62
|
-
flex-direction: column;
|
|
63
|
-
overflow: auto;
|
|
64
|
-
align-items: center;
|
|
65
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
66
|
-
`;function ga(){const e=Y(),t=z(),s=V(),{accountId:o}=H(),{useFeatureGate:a}=$(),{isFeatureEnabled:r}=a(O.isCheckingCommentingEnabled),[d,c]=u.useState(!1);u.useEffect(()=>{d||(c(!0),t(lt(o??"",!1)))},[d,t]);const p=w(m=>dt(m,o??""));if(D.getSignedInUser()==null)throw Error("Can't access address page without signing in...");return n.jsx(ha,{windowSize:s,children:n.jsx(Pt,{transactionListView:p,depositAccountId:o??"",isCheckingCommentingEnabled:r,onBackClick:()=>{e("../")}})})}const fa=K(function(e,t){const{companyId:s}=t;return{zeniAccountSetupView:ut(e,s),meetingUrl:"https://meetings.hubspot.com/niharn/demo-accounts?embed=true"}},function(e,t){const{navigate:s,companyId:o}=t;return{onSetupButtonClick:()=>{R.trackAccountsPromoPageClicked("Setup Accounts"),e(pt(o))},onBackClick:()=>{s("../..",{relative:"path"})},onSetupZeniAccountSuccess:()=>{s("../setup",{relative:"path"})}}})(Tt),ya=()=>{const e=Y(),t=q(),{tenantEmailDomain:s}=H(),{useDynamicConfig:o}=$(),a=M(),[r,d]=u.useState(!1),[c,p]=u.useState(!1),m=w(f=>_(f)),{configValue:x}=o(W.zeniAccountsConfig),i=we(x);u.useEffect(()=>{c===!1&&t.state?.message==="activation"&&p(!0)},[t.state]);const l=D.getSignedInUserTenant(s)?.companyId??m.companyId,h=D.getSignedInUser(),C=!!m.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,b=f=>{d(f)};if(h==null)throw Error("Can't access Zeni account promo page without signing in...");const g=ae(),A=te(g?.loggedInUserRoleMap),I=Ae(g?.loggedInUserRoleMap);if(C&&A)return n.jsx(ne,{to:"../../checking/setup"});if(m.company?.companyZeniAccountInfo&&(!C&&A||I)){if(t.state?.message==="activation"){const f=an(t.state?.pathnameStackToGoBack);e(t.pathname,{state:{...t.state,message:void 0,pathnameStackToGoBack:f.newStack}})}return n.jsxs(n.Fragment,{children:[n.jsx(jt,{showConfetti:c}),n.jsx(ue,{analytics:R,onLoad:f=>(S=>S.trackPageLoaded(be.Event.accountsPromoPageViewed))(f)}),n.jsx(pe,{isAppContentDrawerOpen:r,handleDrawerToggle:b}),n.jsx(fa,{analytics:R,navigate:e,companyId:l,onClickMenuIcon:()=>{b(!0)},maxAnnualPercentageYield:i.maxAnnualPercentageYield,maxInsuredAmount:i.maxInsuredAmount,exampleBankBalance:3e6})]})}return n.jsx(de,{fetchState:"In-Progress",style:{backgroundColor:a.colors.grey5}})};function Za(){const e=q(),t=w(P=>_(P)),s=M(),{useFeatureGate:o,useDynamicConfig:a}=$(),r=ae(),d=te(r?.loggedInUserRoleMap),c=Ae(r?.loggedInUserRoleMap),p=!!t.company?.companyZeniAccountInfo.isZeniAccountEnabled,m=!!t.company?.companyZeniAccountInfo.isZeniAccountTOSAccepted,{isFeatureEnabled:x}=o(O.isChargeCardFeatureEnabled),{isFeatureEnabled:i}=o(O.isDebitCardFeatureEnabled),l=Xe(t),h=De(i,t),C=t?.userRole!=null&&mt(t?.userRole),b=(t?.company==null||t.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!C)&&ht(r?.loggedInUserRoleMap),g=gt(r?.loggedInUserRoleMap),A=(t?.company==null||t.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!C)&&ft(r?.loggedInUserRoleMap),{isFeatureEnabled:I}=o(O.isDepositAccountsFeatureEnabled),f=I&&!C,{configValue:S}=a(W.expressPayConfig),B=S.is_enable_all_tenants===!0||S.tenant_ids!=null&&S.tenant_ids.includes(t.tenantId),{isFeatureEnabled:U}=o(O.isAutoTransferRuleEnabled),j=Ot(t,x,i)&&!C&&yt(r?.loggedInUserRoleMap),v=xt(r?.loggedInUserRoleMap),E=f&&te(r?.loggedInUserRoleMap),T=E||Ne(r?.loggedInUserRoleMap);return n.jsxs(Ve,{children:[n.jsx(k,{path:"setup",element:n.jsx(_e,{isBillPayAdminLevelAccess:b,isUserHasOnlyBillPayAccess:g,isReimbursementAdminLevelAccess:A,isZeniAccountAdminLevelAccess:E,isChargeCardAdminLevelAccess:j,isUserHasOnlyCardAccess:v,productType:"zeni_accounts",type:"setup"})}),n.jsx(k,{path:"verification",element:n.jsx(_e,{isBillPayAdminLevelAccess:b,isUserHasOnlyBillPayAccess:g,isReimbursementAdminLevelAccess:A,isZeniAccountAdminLevelAccess:E,isChargeCardAdminLevelAccess:j,isUserHasOnlyCardAccess:v,productType:"zeni_accounts",type:"verification"})}),U?n.jsxs(n.Fragment,{children:[n.jsx(k,{path:"auto-transfer",element:n.jsx(Me,{})}),T?n.jsx(k,{path:"auto-transfer/:ruleId/edit",element:n.jsx(Me,{isEditDrawerOpen:!0})}):null]}):n.jsx(k,{path:"auto-transfer",element:n.jsx(ce,{})}),B&&d?n.jsxs(n.Fragment,{children:[n.jsx(k,{path:"express-pay",element:n.jsx(re,{})}),n.jsx(k,{path:"express-pay/add-ach",element:n.jsx(re,{isAddACHDrawerOpen:!0})}),n.jsx(k,{path:"express-pay/add-wire/add-address",element:n.jsx(re,{isAddAddressDrawerOpen:!0})}),n.jsx(k,{path:"express-pay/add-wire",element:n.jsx(re,{isAddWireDrawerOpen:!0})})]}):n.jsx(k,{path:"express-pay",element:n.jsx(ce,{})}),n.jsx(k,{path:"promo",element:n.jsx(ya,{})}),l&&!h?n.jsx(k,{path:"/*",element:n.jsx(sn,{})}):p?n.jsxs(n.Fragment,{children:[n.jsx(k,{path:"/",element:n.jsx(xe,{})}),n.jsx(k,{path:"transfer",element:n.jsx(xe,{isTransferDrawerOpen:!0})}),n.jsx(k,{path:"check-deposit",element:n.jsx(xe,{isCheckDepositDrawerOpen:!0})}),n.jsx(k,{path:":accountId/*",element:n.jsx(xa,{})}),n.jsx(k,{path:"*",element:n.jsx(ce,{})})]}):m&&d?n.jsx(k,{path:"*",element:n.jsx(ne,{to:"../setup"})}):t.company?.companyZeniAccountInfo&&c?n.jsx(k,{path:"*",element:n.jsx(ne,{to:"../promo",state:e.state})}):n.jsx(k,{path:"*",element:n.jsx(de,{fetchState:"In-Progress",style:{backgroundColor:s.colors.grey5,boxShadow:`0px 2px ${Bt.sp1} ${s.colors.dropShadowNormal}`}})})]})}function xa(){return n.jsxs(Ve,{children:[n.jsx(k,{path:"/",element:n.jsx(ie,{})}),n.jsx(k,{path:"account-info",element:n.jsx(ie,{isAccountInfoDrawerOpen:!0})}),n.jsx(k,{path:"transfer",element:n.jsx(ie,{isTransferDrawerOpen:!0})}),n.jsx(k,{path:"check-deposit",element:n.jsx(ie,{isCheckDepositDrawerOpen:!0})}),n.jsx(k,{path:"transactions",element:n.jsx(ga,{})}),n.jsx(k,{path:"statements",element:n.jsx(zt,{})}),n.jsx(k,{path:"*",element:n.jsx(ce,{})})]})}export{Za as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-Cy_MnPa_.js";import{a as f}from"./sentry-Blrslipw.js";import{h as x,u as j,g as $,i as v,j as p}from"./core-B2oeYHrf.js";import{IG as s,IF as B,OW as C,eP as P,OX as T}from"./zeni-epic-state-BREUit58.js";import{J as z,at as g,h as D,z as E,x as L,c5 as G,p as N}from"./index-C0xrHel3.js";import{n as _}from"./mui-DIYZNz3L.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]="6452351a-0405-4837-86e1-2cdad91da73c",e._sentryDebugIdIdentifier="sentry-dbid-6452351a-0405-4837-86e1-2cdad91da73c")}catch{}})();const U=_.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`;function W(){const e=x(),n=j(),d=z(),l=$();let{accountId:a}=v(),m=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&l.pathname.includes(`${s}/statements`)&&(a=s,m=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[u,y]=f.useState(!1),h=D();f.useEffect(()=>{u||(y(!0),n(B(a??"",!1)))},[u,n]);const o=p(t=>C(t,a??"")),I=()=>{const t=N(l.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},c=E.getSignedInUser(),r=p(t=>P(t)),b={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:r.tenantId??""},w=T(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=r.company?.companyInfo.companyLegalName??r.companyName;if(c==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?i.jsx(L,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}}):i.jsx(U,{windowSize:d,children:i.jsx(G,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:I,authParams:b,downloadEndPoint:m})})}export{W as Z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as n}from"./index-C0xrHel3.js";import"./mui-DIYZNz3L.js";import"./sentry-Blrslipw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="b6b8e9af-f8bc-404b-b199-bcf35ce4c4cd",e._sentryDebugIdIdentifier="sentry-dbid-b6b8e9af-f8bc-404b-b199-bcf35ce4c4cd")}catch{}})();function r(e){if(e.companyLocaleInfo!=null&&e.companyLocaleInfo.languageCode.length>0&&e.companyLocaleInfo.companyIncCountryCode.length>0){const o=`${e.companyLocaleInfo.languageCode.toLowerCase()}-${e.companyLocaleInfo.companyIncCountryCode.toUpperCase()}`;return console.warn(`localeID ${o}`),n(o)??"en"}return"en"}export{r as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as u}from"./sentry-Blrslipw.js";import{h as b,g,i as h,j as S}from"./core-B2oeYHrf.js";import{eP as y}from"./zeni-epic-state-BREUit58.js";import{X as k,J as C,a as A,Z as T,$ as I,q as w,a1 as D}from"./index-C0xrHel3.js";import"./mui-DIYZNz3L.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]="f77c0846-e99a-4001-a798-ef4c1c15e81c",e._sentryDebugIdIdentifier="sentry-dbid-f77c0846-e99a-4001-a798-ef4c1c15e81c")}catch{}})();function j(e){const{mobileExploreReferrer:t}=e,{isAiCfoOpen:r,setIsAiCfoOpen:i}=k(),s=b(),o=g(),{tenantEmailDomain:n}=h(),l=C(),f=D(l),d=A(),p=T(),m=S(a=>a.tenantState.fetchState==="Completed"||a.tenantState.activeTenantFetchState.fetchState==="Completed"?y(a):void 0),c=m?.masterTOSInfo?.isMasterTOSAccepted??!1;return{isAiCfoAccessEnabled:p&&d&&!r,onAskAiCfoClick:u.useCallback(()=>{if(n!=null)if(c)if(f){const a=w(o.state?.pathnameStackToGoBack,o.pathname);s(`/${n}/ai-cfo/explore`,{state:{pathnameStackToGoBack:a,referrer:t}})}else i(!0);else I({location:o,navigate:s,mergeState:{referrer:t}})},[c,f,o,t,s,i,n])}}export{j as u};
|