@zeniai/web-app-ui 5.0.15-qa → 5.0.16-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-C-HGdC3v.js +1 -0
- package/dist/assets/{AddressScreen-CPMiTr10.js → AddressScreen-BGiV82us.js} +2 -2
- package/dist/assets/{AiCfoScreen-DwMo_gfa.js → AiCfoScreen-Cdy0acZO.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-ySvc-HDi.js → BillPayApprovalRoutes-C3A69Ovn.js} +1 -1
- package/dist/assets/{BillPayRoutes-DkrY7gaQ.js → BillPayRoutes-DL5KgDRp.js} +11 -11
- package/dist/assets/{BusinessVerificationPageScreen-BGcxJWGX.js → BusinessVerificationPageScreen-Cd0u4k_j.js} +2 -2
- package/dist/assets/{ChargeCardRoutes-DaqjbIqY.js → ChargeCardRoutes-DGBi6Q68.js} +8 -8
- package/dist/assets/{CompanyPassportScreen-CqQQjG13.js → CompanyPassportScreen-6iPSE8E1.js} +1 -1
- package/dist/assets/ConnectionAuthScreen-HdgTVB4c.js +11 -0
- package/dist/assets/CustomerOnboardingAuthScreen-BFO-m33u.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-Dh4dQcQm.js → CustomerOnboardingRoutes-Dja_dpQB.js} +6 -6
- package/dist/assets/{DashboardRoutes-BunWcwzn.js → DashboardRoutes-DHej6lXM.js} +3 -3
- package/dist/assets/{DefaultTenantHome-CLljzZmF.js → DefaultTenantHome-Cz4Wyifa.js} +1 -1
- package/dist/assets/DomesticWireDetailScreen-DF2bdEBD.js +18 -0
- package/dist/assets/DrawerScreen-l6b8XZH9.js +1 -0
- package/dist/assets/EntityDetailRoutes-BCEcxwoW.js +1 -0
- package/dist/assets/{ExpenseAutomationRoutes-DxjGeljs.js → ExpenseAutomationRoutes-BsI6fuil.js} +5 -5
- package/dist/assets/FeaturePreviewScreen-L7AzlEi6.js +1 -0
- package/dist/assets/MagicLinkRoutes-BjPqXpy8.js +72 -0
- package/dist/assets/MagicLinkSignInScreen-Tt4nJzTJ.js +12 -0
- package/dist/assets/MobileAppDrawer-CAQpRc9a.js +1 -0
- package/dist/assets/NotFoundScreen-BeqcylSC.js +1 -0
- package/dist/assets/{NotificationRoutes-CcriqAcW.js → NotificationRoutes-CM2no7id.js} +1 -1
- package/dist/assets/PandLWithForecastRoutes-BK882d8q.js +1 -0
- package/dist/assets/PeopleRoutes-Am8Nc5QJ.js +22 -0
- package/dist/assets/PerformanceRoutes-CG0I2zY1.js +1 -0
- package/dist/assets/{Preview-HaN7BDGs.js → Preview-BWBsEfkL.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-DKcB3eb7.js → QBOConnectionScreen-DNLigHwq.js} +1 -1
- package/dist/assets/{ReferralListScreen-DQ3JeDsI.js → ReferralListScreen-BJVheuX3.js} +2 -2
- package/dist/assets/ReimbursementApprovalRoutes-BmANitxC.js +1 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-BUgMzKjx.js → ReimbursementApprovalRuleDetailScreen-x3VRM2lm.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-BOAJyHPC.js → ReimbursementRoutes-DP-PaZql.js} +6 -6
- package/dist/assets/{ReportsRoutes-DoUbSXR8.js → ReportsRoutes-M7Vz22Va.js} +1 -1
- package/dist/assets/RewardsRoutes-DL6KQ0SI.js +1 -0
- package/dist/assets/{ScreenRoutes-CEap4F7c.js → ScreenRoutes-CyYxuuSy.js} +2 -2
- package/dist/assets/{SettingsRoutes-B-1uwG1f.js → SettingsRoutes-5WFYpE9d.js} +7 -7
- package/dist/assets/{SetupPagesScreen-DmAnODHL.js → SetupPagesScreen-1UdpKFzP.js} +5 -5
- package/dist/assets/{SignInScreen-DLEv3grW.js → SignInScreen-CQJl0dIK.js} +1 -1
- package/dist/assets/SignOutScreen-BZw7FgW3.js +9 -0
- package/dist/assets/{TaskListScreen-BwJ_RgJo.js → TaskListScreen-B6jGqqSI.js} +2 -2
- package/dist/assets/TaskRoutes-BVUV8-uk.js +9 -0
- package/dist/assets/TransactionDetailRoutes-BPyp6JbN.js +1 -0
- package/dist/assets/{TransactionDetailScreen-D1icJoqW.js → TransactionDetailScreen-CJPWQ21z.js} +2 -2
- package/dist/assets/{TransactionListRoutes-BKVCWX3q.js → TransactionListRoutes-Bc4T7iYp.js} +1 -1
- package/dist/assets/{TreasuryRoutes-D-L0eSlp.js → TreasuryRoutes-CVREGRUo.js} +5 -5
- package/dist/assets/{VendorsRoutes-Dhf9--mz.js → VendorsRoutes-43478Bz4.js} +21 -21
- package/dist/assets/WiseConfirmationScreen-BTdqiow1.js +12 -0
- package/dist/assets/ZeniAccountRoutes-kzgUeiix.js +66 -0
- package/dist/assets/{ZeniAccountStatementScreen-DzrkGkJa.js → ZeniAccountStatementScreen-BP41lnt0.js} +2 -2
- package/dist/assets/{accountMappingHelper-KEN2wBMB.js → accountMappingHelper-D5f7HM6m.js} +1 -1
- package/dist/assets/{analytics-CqLahF_v.js → analytics-CaxdWsgF.js} +1 -1
- package/dist/assets/{analyticsHelper-DWU-XMyN.js → analyticsHelper-B3usTf1U.js} +1 -1
- package/dist/assets/{core-BM9YDzPX.js → core-sd4r0_i-.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-a784xZQy.js → decodeURIComponentSafe-B22VJpfk.js} +1 -1
- package/dist/assets/{dnd-DLVMxaGF.js → dnd-D5J7P2x4.js} +1 -1
- package/dist/assets/{empty-CNAYaS5M.js → empty-CZUXIbVW.js} +1 -1
- package/dist/assets/{empty-1FgpzQaJ.js → empty-Hx8SddiV.js} +1 -1
- package/dist/assets/{emptyVideoElement-BRM3Ls5f.js → emptyVideoElement-Bhr9kEBP.js} +1 -1
- package/dist/assets/{epic-BYLgH3Dp.js → epic-BrPBTVvG.js} +1 -1
- package/dist/assets/getLocaleForTenant-B8gw1CLP.js +1 -0
- package/dist/assets/{index-z1OKiepB.js → index-0d7YeAQO.js} +1 -1
- package/dist/assets/{index-B30ioXEx.js → index-BfoPdMeq.js} +10419 -10384
- package/dist/assets/{index-DvjNZZRv.js → index-C4waSUNv.js} +1 -1
- package/dist/assets/{index-t8Vx9mm2.js → index-D7nuN04D.js} +1 -1
- package/dist/assets/{index-DpQl7e8K.js → index-DBOEFGms.js} +1 -1
- package/dist/assets/{index-Dib88HEg.js → index-WsA08x_n.js} +1 -1
- package/dist/assets/{index-HpYLj_bE.js → index-oi98BlPR.js} +2 -2
- package/dist/assets/{lexical-CFqhubpO.js → lexical-DddCwvqv.js} +1 -1
- package/dist/assets/{liveblocks-585gCzRC.js → liveblocks-B9KK5t4G.js} +1 -1
- package/dist/assets/{lottie-piZcDgIc.js → lottie-CjpWqO_m.js} +1 -1
- package/dist/assets/{mui-Dh_OiBGq.js → mui-B64EHoKP.js} +1 -1
- package/dist/assets/{pathToGoBack-B-VHmIUu.js → pathToGoBack-4TEPNqzd.js} +1 -1
- package/dist/assets/{pdf-lib-mwEs-5am.js → pdf-lib-BfGuGZXJ.js} +1 -1
- package/dist/assets/{pdf-C7LOTluM.js → pdf-nEa4xAg8.js} +3 -3
- package/dist/assets/{plaid-B3TMtaAn.js → plaid-BbQFWH26.js} +1 -1
- package/dist/assets/{pusher-BGUQs6aC.js → pusher-DO-fD-Is.js} +1 -1
- package/dist/assets/{react-BTYE0_A9.js → react-2AgtVVMA.js} +1 -1
- package/dist/assets/{react-CtpNxQP9.js → react-BeJ4ToVC.js} +1 -1
- package/dist/assets/{react-BJCRbKNE.js → react-CHFOV94i.js} +1 -1
- package/dist/assets/{react-yTm2bgF6.js → react-CQMmivT7.js} +1 -1
- package/dist/assets/{react-CDHObaz0.js → react-CVKZC-P9.js} +1 -1
- package/dist/assets/{react-D9pVmjGq.js → react-DXLDEz8j.js} +1 -1
- package/dist/assets/{recharts-Bk8sahKA.js → recharts-C5cc22Ag.js} +1 -1
- package/dist/assets/{routePaths-C_5Vo_Nm.js → routePaths-DvY04fME.js} +1 -1
- package/dist/assets/{sentry-CznkHhej.js → sentry-DWKFVFDO.js} +1 -1
- package/dist/assets/{url-Bqap2__X.js → url-Be8Qok5A.js} +1 -1
- package/dist/assets/{url-Binr_y8q.js → url-Ck8jX2hy.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-DshWTD2M.js +1 -0
- package/dist/assets/{useDeviceId-D_MFUrrA.js → useDeviceId-DGmmxWLH.js} +1 -1
- package/dist/assets/{useFetchSuggestedQuestionsWhenReady-CThB0klC.js → useFetchSuggestedQuestionsWhenReady-BlnhqS-V.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-jV5iOQ5Z.js → useInitialThreadRequest-UFN1rQIf.js} +1 -1
- package/dist/assets/{utils-Boc0JP6O.js → utils-CiKLhZkD.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-C4Otz1Im.js → withTransactionSidePanel-BiSve9A5.js} +2 -2
- package/dist/assets/{zeni-epic-state-1oMHKKZA.js → zeni-epic-state-DzeiZJT9.js} +5 -5
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AddressRoutes-C-vBt6EU.js +0 -1
- package/dist/assets/ConnectionAuthScreen-CqaNGgTe.js +0 -11
- package/dist/assets/CustomerOnboardingAuthScreen-CkivMRyQ.js +0 -1
- package/dist/assets/DomesticWireDetailScreen-8rq_3RAs.js +0 -18
- package/dist/assets/DrawerScreen-BVjSAkhK.js +0 -1
- package/dist/assets/EntityDetailRoutes-j6bkntim.js +0 -1
- package/dist/assets/FeaturePreviewScreen-DIglws95.js +0 -1
- package/dist/assets/MagicLinkRoutes-Bw9TLno3.js +0 -72
- package/dist/assets/MagicLinkSignInScreen-Q7iovr3K.js +0 -12
- package/dist/assets/MobileAppDrawer-BXRnd_IS.js +0 -1
- package/dist/assets/NotFoundScreen-Cucx3MKM.js +0 -1
- package/dist/assets/PandLWithForecastRoutes-C7JhOn8C.js +0 -1
- package/dist/assets/PeopleRoutes-CCgmsoyU.js +0 -22
- package/dist/assets/PerformanceRoutes-Bm2LvHqj.js +0 -1
- package/dist/assets/ReimbursementApprovalRoutes-B828Jrb7.js +0 -1
- package/dist/assets/RewardsRoutes-sLDhHIWk.js +0 -1
- package/dist/assets/SignOutScreen-BWGRzL_W.js +0 -9
- package/dist/assets/TaskRoutes-BFOwSoKs.js +0 -9
- package/dist/assets/TransactionDetailRoutes-BpsESo30.js +0 -1
- package/dist/assets/WiseConfirmationScreen-CoVxJsRG.js +0 -12
- package/dist/assets/ZeniAccountRoutes-Dq6KZarp.js +0 -66
- package/dist/assets/getLocaleForTenant-CjYI5PP8.js +0 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-DOA3k3qr.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-BfoPdMeq.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-DWKFVFDO.js"><link rel="modulepreload" crossorigin href="/assets/core-sd4r0_i-.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-DzeiZJT9.js"><link rel="modulepreload" crossorigin href="/assets/mui-B64EHoKP.js"><link rel="modulepreload" crossorigin href="/assets/analytics-CaxdWsgF.js"><link rel="modulepreload" crossorigin href="/assets/utils-CiKLhZkD.js"><link rel="stylesheet" crossorigin href="/assets/index-D-vub4_t.css"></head><body style="margin:0"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><div class="app-shell-loader" id="app-shell-loader"><div class="app-shell-sidebar"><div class="app-shell-sidebar-group"><div class="app-shell-bar zeni-logo" style="width:96px;height:20px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:78px;height:16px"></div><div class="app-shell-bar" style="width:46px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:110px;height:16px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div><div class="app-shell-bar" style="width:64px;height:16px"></div></div></div><div class="app-shell-main"><div class="app-shell-navbar"><div class="app-shell-bar" style="width:106px;height:27px"></div><div class="app-shell-bar" style="width:111px;height:32px"></div></div><div class="app-shell-logo"><svg width="96" height="96" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.768 0.0270284C16.571 -0.055168 16.348 0.0572476 16.2913 0.267574C16.2713 0.342517 16.2489 0.417461 16.2253 0.491196C16.0094 1.15723 15.6459 1.76645 15.148 2.27776C14.3056 3.14203 13.1847 3.61949 11.9918 3.6207H11.9883C10.7978 3.6207 9.67689 3.14565 8.83445 2.2838C8.33653 1.7737 7.97077 1.16448 7.75367 0.499657C7.73007 0.425922 7.70765 0.350979 7.68641 0.276035C7.62978 0.065709 7.40678 -0.0454978 7.20974 0.0366985C6.05463 0.522624 4.98565 1.17899 4.0323 1.97436C3.91195 2.07468 3.87301 2.24512 3.93083 2.39259C3.9792 2.51589 4.03112 2.63797 4.08539 2.75764C4.51133 3.70894 5.10364 4.5853 5.84815 5.34682C7.48937 7.0246 9.66863 7.9493 11.9871 7.9493H11.9954C14.3162 7.94689 16.4978 7.01855 18.1379 5.33595C18.8812 4.57321 19.4711 3.69564 19.8959 2.74434C19.9502 2.62347 20.0009 2.50138 20.0493 2.37809C20.1071 2.23062 20.0682 2.06018 19.9478 1.95985C18.9933 1.16569 17.9231 0.511745 16.768 0.0270284Z"/><path d="M19.9102 21.2422C19.4843 20.2933 18.8931 19.4194 18.151 18.6603C16.5086 16.9801 14.3223 16.053 12.0038 16.0578C8.50304 16.0614 5.48371 18.1961 4.11031 21.2603C4.05722 21.38 4.0053 21.5009 3.95575 21.623C3.89675 21.7704 3.93569 21.9421 4.05722 22.0436C5.01175 22.8366 6.08073 23.4893 7.23466 23.9728C7.4317 24.055 7.65352 23.9438 7.71134 23.7335C7.73139 23.6573 7.75381 23.5836 7.77859 23.5086C8.37207 21.6979 10.0416 20.3888 12.0073 20.3864H12.012C13.2025 20.3864 14.3234 20.8614 15.1659 21.7233C15.6626 22.231 16.026 22.8378 16.2431 23.5002C16.2679 23.5739 16.2903 23.6489 16.3104 23.7238C16.3682 23.9341 16.59 24.0453 16.787 23.9619C17.9422 23.476 19.01 22.8209 19.9633 22.0255C20.0837 21.9252 20.1226 21.7535 20.0648 21.606C20.0164 21.4828 19.9645 21.3631 19.9102 21.2422Z"/><path d="M0.132148 10.1666C0.158105 9.98769 0.305591 9.85352 0.482575 9.85352L23.5093 9.81726C23.6863 9.81726 23.8338 9.95022 23.8609 10.1291C23.9518 10.7347 23.999 11.3548 23.999 11.9858C24.0001 12.6131 23.9541 13.2284 23.8668 13.8292C23.8408 14.0081 23.6934 14.1422 23.5164 14.1422L0.489654 14.1773C0.312671 14.1773 0.165185 14.0443 0.138047 13.8654C0.0471956 13.2598 0 12.6397 0 12.0088C0 11.3826 0.0448358 10.7673 0.132148 10.1666Z"/></svg></div></div></div></body></html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/web-app-ui",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.16-dev",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/**/*"
|
|
6
6
|
],
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@stripe/stripe-js": "^4.4.0",
|
|
30
30
|
"@zeniai/client-analytics": "2.0.2",
|
|
31
31
|
"@zeniai/client-epic-state": "5.0.10",
|
|
32
|
-
"@zeniai/web-components": "4.0.
|
|
32
|
+
"@zeniai/web-components": "4.0.19",
|
|
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-585gCzRC.js";import{A as d}from"./AddressScreen-CPMiTr10.js";import i from"./NotFoundScreen-Cucx3MKM.js";import"./sentry-CznkHhej.js";import{n as s,o as r}from"./core-BM9YDzPX.js";import"./zeni-epic-state-1oMHKKZA.js";import"./recharts-Bk8sahKA.js";import"./index-B30ioXEx.js";import"./mui-Dh_OiBGq.js";import"./analytics-CqLahF_v.js";import"./plaid-B3TMtaAn.js";import"./dnd-DLVMxaGF.js";import"./stripe-DMRn4zHo.js";import"./lottie-piZcDgIc.js";import"./lexical-CFqhubpO.js";import"./pdf-C7LOTluM.js";import"./utils-Boc0JP6O.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="4bd15e18-5b5f-4be1-8d33-8bd696c76da2",t._sentryDebugIdIdentifier="sentry-dbid-4bd15e18-5b5f-4be1-8d33-8bd696c76da2")}catch{}})();function _(){return e.jsxs(s,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(d,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(d,{})}),e.jsx(r,{path:"*",element:e.jsx(i,{})})]})}export{_ as default};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{j as C}from"./liveblocks-585gCzRC.js";import{a}from"./sentry-CznkHhej.js";import{h as D,u as v,g as m,N as w}from"./core-BM9YDzPX.js";import{Ic as A,eM as O,fj as _,mh as j,fJ as h,fi as U,eN as L,Ik as k}from"./zeni-epic-state-1oMHKKZA.js";import{u as F,z as u,L as b,D as $,o as H}from"./index-B30ioXEx.js";import{n as z}from"./mui-Dh_OiBGq.js";import{t as R}from"./getLocaleForTenant-CjYI5PP8.js";import{g as P,Q as G}from"./QBOConnectionScreen-DKcB3eb7.js";import"./recharts-Bk8sahKA.js";import"./analytics-CqLahF_v.js";import"./plaid-B3TMtaAn.js";import"./dnd-DLVMxaGF.js";import"./stripe-DMRn4zHo.js";import"./lottie-piZcDgIc.js";import"./lexical-CFqhubpO.js";import"./pdf-C7LOTluM.js";import"./utils-Boc0JP6O.js";import"./empty-CNAYaS5M.js";import"./pdf-lib-mwEs-5am.js";import"./index-DpQl7e8K.js";import"./url-Bqap2__X.js";import"./index-DvjNZZRv.js";import"./decodeURIComponentSafe-a784xZQy.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]="36d396b0-c6aa-48c6-bcba-a1bc747bebe9",t._sentryDebugIdIdentifier="sentry-dbid-36d396b0-c6aa-48c6-bcba-a1bc747bebe9")}catch{}})();const J=z.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
flex: 1 1 auto;
|
|
4
|
-
flex-direction: row;
|
|
5
|
-
justify-content: center;
|
|
6
|
-
align-items: center;
|
|
7
|
-
width: 100%;
|
|
8
|
-
height: 100vh;
|
|
9
|
-
background-color: ${t=>t.theme.colors.background};
|
|
10
|
-
box-shadow: ${t=>`0px 2px ${H.sp1} ${t.theme.colors.dropShadowNormal}`};
|
|
11
|
-
`;function pe(){const t=D(),i=v(),{setLoading:d,clearAllLoading:E}=F(),p=a.useRef(!1),f=a.useRef(!1),{code:x,realmId:N,state:T}=P(i.search),y=x!==""&&N!==""&&T!=="",I=m(l=>A(l)),e=m(l=>O(l)),n=m(l=>l.tenantState.fetchState),r=m(l=>l.tenantState.activeTenantFetchState.fetchState),o=u.getSignedInUser(),c=u.getActiveTenantForUser()?.tenantId,s=e?.externalConnections?.fetchState,g=e?.externalConnections?.saveConnectionState,S=e.externalConnections?.accounting[0]?.isValid;return a.useLayoutEffect(()=>{d(b.CONNECTION_AUTH)},[d]),a.useEffect(()=>{p.current||o==null||c==null||(p.current=!0,n==="Completed"||r!=="Not-Started"&&r!=="Error"||(d(b.TENANT_FETCHING),t(_(o.userId,c))))},[p,n,d]),a.useEffect(()=>{e.tenantId==null&&!f.current&&o!=null&&(f.current=!0,!(c==null||c!=null&&(r==="Completed"||r==="Error"))||n!=="Not-Started"&&n!=="Error"||t(j(o.userId)))},[f,n,r]),a.useEffect(()=>{o==null||e?.tenantId==null||e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||s==="In-Progress"||g!=="Error"||(d(b.CONNECTION_AUTH),t(h(o.userId,e.tenantId)))},[g]),a.useEffect(()=>{n!=="Completed"&&r!=="Completed"||o==null||e?.tenantId==null||(t(U(e.tenantId)),u.saveActiveTenantDomainForUser(e.tenantEmailDomain),L(o?.userId,o?.zeniSessionId,e.tenantId),$.updateAppLocaleID(R(k(e))),e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||s==="In-Progress"||o==null||e==null||t(h(o.userId,e.tenantId)))},[n,r,s]),a.useEffect(()=>{I.tenantsCoreDetailsInOrder.length>0&&n==="Completed"&&u.saveSignedInUserTenants(I.tenantsCoreDetailsInOrder)},[I.tenantsCoreDetailsInOrder.length,n]),a.useEffect(()=>{n!=="Completed"&&n!=="Error"||r!=="Completed"&&r!=="Error"||s!=="Completed"&&s!=="Error"||E()},[n,r,s]),e==null||n!=="Completed"&&r!=="Completed"||s!=="Completed"?null:y||S===!1?C.jsx(J,{children:C.jsx(G,{})}):C.jsx(w,{to:"/",replace:!0})}export{pe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as d}from"./liveblocks-585gCzRC.js";import{z as n}from"./index-B30ioXEx.js";import{g as p}from"./QBOConnectionScreen-DKcB3eb7.js";import"./sentry-CznkHhej.js";import{u as a,N as i}from"./core-BM9YDzPX.js";import"./zeni-epic-state-1oMHKKZA.js";import"./recharts-Bk8sahKA.js";import"./mui-Dh_OiBGq.js";import"./analytics-CqLahF_v.js";import"./plaid-B3TMtaAn.js";import"./dnd-DLVMxaGF.js";import"./stripe-DMRn4zHo.js";import"./lottie-piZcDgIc.js";import"./lexical-CFqhubpO.js";import"./pdf-C7LOTluM.js";import"./utils-Boc0JP6O.js";import"./empty-CNAYaS5M.js";import"./pdf-lib-mwEs-5am.js";import"./index-DpQl7e8K.js";import"./url-Bqap2__X.js";import"./index-DvjNZZRv.js";import"./decodeURIComponentSafe-a784xZQy.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="b68d0d57-e81d-4cfb-97e6-d4dd5e5b7ebd",t._sentryDebugIdIdentifier="sentry-dbid-b68d0d57-e81d-4cfb-97e6-d4dd5e5b7ebd")}catch{}})();const U=()=>{const t=a(),{code:o,realmId:r,state:e}=p(t.search),s=n.getSignedInUser()?.userId??"";if(f(o,r,e,s)===!0){const m=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return d.jsx(i,{to:m})}return d.jsx(i,{to:"../../"})},f=(t,o,r,e)=>t!=""&&o!=""&&r!=""&&e!=null&&e!="";export{U as default,f as hasValidParams};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-585gCzRC.js";import{j as w,u as C,g as h,k as A,l as B}from"./core-BM9YDzPX.js";import{Ma as k,Mh as _,fA as J,fz as K,fy as L,ii as W,Ji as q,ps as Q,eM as V,LI as D,ig as T,Mb as S,Mk as F,id as G,iC as j}from"./zeni-epic-state-1oMHKKZA.js";import{bj as X,K as R,i as N,z as U,h as M,s as p,c as v,B as z,bk as Y,o as O,bl as ee,x as te}from"./index-B30ioXEx.js";import{n as Z}from"./mui-Dh_OiBGq.js";import"./sentry-CznkHhej.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]="67d9da56-c69e-43b3-977b-524aedb8b939",e._sentryDebugIdIdentifier="sentry-dbid-67d9da56-c69e-43b3-977b-524aedb8b939")}catch{}})();const ae=A(null,function(e,t){return{onSaveVendor:a=>{e(W(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(q("common")),a!=null&&e(Q(a))},onGetOtp:a=>{e(L(a,"BillPayVendor"))},onResendOtp:a=>{e(K(a,"BillPayVendor"))},onVerifyOtp:(a,n)=>{e(J(a,n,"BillPayVendor"))},onVerifyOtpSuccess:(a,n,o)=>{e(_(a,n,o))}}})(X);function H({vendorId:e,billId:t,isExpressPayPage:a}){const n=w(),o=C(),s=h(d=>k(d,e));return l.jsx(ae,{location:o,navigate:n,vendorId:e,billId:t,vendorViewDetails:s,isExpressPayPage:a??!1})}const ne=Z.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`,oe=A(function(e,t){const{vendorId:a,billId:n}=t,o=k(e,a),s=D(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,n);return{billId:n,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}},function(e,t){const{navigate:a,location:n,vendorId:o}=t;return{onFetchBankName:s=>{e(j(s))},onSaveHandler:s=>{e(G(t.bankAccountContext,s,"standard",o))},onCancel:()=>{(()=>{const s=p(n.state?.pathnameStackToGoBack),d=s.poppedPathname??P();a(d,{state:{pathnameStackToGoBack:s.newStack}})})(),e(S())},onACHDetailsUpdated:s=>{const{bankAccountSection:d}=s;e(F({data:d}))},onBackClick:()=>{if(e(T({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")a("../",{relative:"path"});else{const s=p(t.location.state?.pathnameStackToGoBack),d=s.poppedPathname??P(0);t.navigate(d,{state:{pathnameStackToGoBack:s.newStack}})}e(S())}}})(Y);function fe({vendorIdParam:e,accountContext:t}){const a=w(),n=C(),o=R(),{vendorId:s,billId:d}=B(),c=e??s,{useFeatureGate:i}=N(),r=U.getSignedInUser(),b=h(u=>V(u)),g=M(),x=p(n.state?.pathnameStackToGoBack),f=t??(x.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h(u=>k(u,c)),{isFeatureEnabled:I}=i(v.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=i(v.isDepositAccountsFeatureEnabled);if(r==null)throw Error("Can't access address page without signing in...");return f==="billDetail"&&m.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(z,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:g.colors.grey5}}):l.jsxs(ne,{windowSize:o,children:[l.jsx(H,{vendorId:c,billId:d}),l.jsx(oe,{location:n,navigate:a,billId:d,vendorId:c,currentTenant:b,bankAccountContext:f,isVendorRecommendationEnabled:I,isZeniAccountsFeatureEnabled:y})]})}const P=(e=2)=>{let t="../";for(let a=0;a<e;a++)t=`${t}../`;return t},me=(e,t,a)=>{let n=`/${e}/bill/${encodeURIComponent(t)}`;return a=="draft"&&(n+="/edit"),n},he=e=>`/${e}/bills`,ke=(e,t)=>{let a=`/${e}/bill`;return a=t!=null?a.concat(`/${t}/edit`):a.concat("/new"),a},E=(e,t,a,n)=>{let o=`/${e}/bill`;return o+=a!=null?`/${a}/edit/vendor`:"/new/vendor",o+=n!=null?`/${n}/edit/${t}`:`/create/${t}`,o};function Se(e,t,a){return E(e,"ach",t,a)}function ve(e,t,a){return E(e,"domestic",t,a)}function ge(e,t,a){return E(e,"international",t,a)}const se=(e,t,a)=>{let n=`/${e}/bill/`;return n=a!=null?n.concat(`${encodeURIComponent(a)}/${t}/`):n.concat(`new/${t}/`),n},ie=Z.div`
|
|
10
|
-
display: flex;
|
|
11
|
-
height: 100vh;
|
|
12
|
-
width: 100%;
|
|
13
|
-
flex: 1 1 auto;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
align-items: center;
|
|
16
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
17
|
-
box-shadow: ${e=>`0px 2px ${O.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
18
|
-
`,de=A(function(e,t){const{vendorId:a,billId:n}=t,o=k(e,a),s=D(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,n);return{billId:n,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}},function(e,t){const{billId:a,navigate:n,location:o,vendorId:s,currentTenant:d}=t,{tenantEmailDomain:c}=d;return{onFetchBankName:i=>{e(j(i))},onSaveHandler:i=>{e(G(t.bankAccountContext,i,"us-domestic",s))},onWireDetailsUpdated:i=>{const{bankAccountSection:r}=i;e(F({data:r}))},onCancel:()=>{(()=>{const i=p(o.state?.pathnameStackToGoBack),r=i.poppedPathname??$();n(r,{state:{pathnameStackToGoBack:i.newStack}})})(),e(S())},onAddressClick:i=>{if(t.bankAccountContext==="express-pay")n("./add-address");else{const r=se(c,i,a),b=te(o.state?.pathnameStackToGoBack,o.pathname);n(r,{state:{pathnameStackToGoBack:b}})}},onBackClick:()=>{if(e(T({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")n("../",{relative:"path"});else{const i=p(t.location.state?.pathnameStackToGoBack),r=i.poppedPathname??$(0);t.navigate(r,{state:{pathnameStackToGoBack:i.newStack}})}e(S())}}})(ee);function xe({vendorIdParam:e,accountContext:t}){const a=w(),n=C(),o=R(),{vendorId:s,billId:d}=B(),c=e??s,i=U.getSignedInUser(),{useFeatureGate:r}=N(),b=M(),g=h(u=>V(u)),x=p(n.state?.pathnameStackToGoBack),f=t??(x.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h(u=>k(u,c)),{isFeatureEnabled:I}=r(v.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=r(v.isDepositAccountsFeatureEnabled);if(i==null)throw Error("Can't access address page without signing in...");return f==="billDetail"&&m.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(z,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:b.colors.grey5,boxShadow:`0px 2px ${O.sp1} ${b.colors.dropShadowNormal}`}}):l.jsxs(ie,{windowSize:o,children:[l.jsx(H,{vendorId:c,billId:d}),l.jsx(de,{location:n,navigate:a,billId:d,vendorId:c,currentTenant:g,bankAccountContext:f,isVendorRecommendationEnabled:I,isZeniAccountsFeatureEnabled:y})]})}const $=(e=2)=>{let t="../";for(let a=0;a<e;a++)t=`${t}../`;return t};export{fe as A,xe as D,H as V,me as a,se as b,ke as c,ve as d,he as g,ge as i,Se as v};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as d}from"./liveblocks-585gCzRC.js";import{K as l,F as c,h as f}from"./index-B30ioXEx.js";import{D as p}from"./mui-Dh_OiBGq.js";import"./sentry-CznkHhej.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]="63e12542-e79f-4200-b974-34ccb9515454",e._sentryDebugIdIdentifier="sentry-dbid-63e12542-e79f-4200-b974-34ccb9515454")}catch{}})();const b={drawerLeftMargin:new c(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:t,onClose:s}=e,n=l(),a=o?.valuePx(n)??b.drawerLeftMargin.valuePx(n),i=f();return d.jsx(p,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${a})`}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.8,cursor:"pointer"}}},onClose:s,children:t})}export{h as D};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-585gCzRC.js";import{a as d}from"./sentry-CznkHhej.js";import{j as A,h as B,u as J,l as q,g as l,N as F,k as M,n as O,o as N}from"./core-BM9YDzPX.js";import{Kp as _,eM as K,JO as R,km as W,Gw as I,Ku as Y,Jh as $,jm as z,Gx as S,JT as U,JU as V,Jj as H,Ji as L}from"./zeni-epic-state-1oMHKKZA.js";import{aM as Q,e as X,s as Z,x as tt}from"./index-B30ioXEx.js";import"./mui-Dh_OiBGq.js";import{d as k}from"./decodeURIComponentSafe-a784xZQy.js";import{w as et}from"./withTransactionSidePanel-C4Otz1Im.js";import{e as at,b as nt}from"./routePaths-C_5Vo_Nm.js";import"./recharts-Bk8sahKA.js";import"./analytics-CqLahF_v.js";import"./plaid-B3TMtaAn.js";import"./dnd-DLVMxaGF.js";import"./stripe-DMRn4zHo.js";import"./lottie-piZcDgIc.js";import"./lexical-CFqhubpO.js";import"./pdf-C7LOTluM.js";import"./utils-Boc0JP6O.js";import"./useAskAiCfoHostNavButtonProps-DOA3k3qr.js";import"./useFetchSuggestedQuestionsWhenReady-CThB0klC.js";import"./TransactionDetailScreen-D1icJoqW.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]="769ca459-8f26-4ff7-8502-a071ce4de568",a._sentryDebugIdIdentifier="sentry-dbid-769ca459-8f26-4ff7-8502-a071ce4de568")}catch{}})();const ot=M(function(a,t){const e=t.entity,o=Y(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:$(a,"common")},trendWithTransactionsReport:o,analytics:X,isAccountingClassesEnabled:z(a)}},function(a,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const o=`${nt(e,t.tenantEmailDomain)}`,c=tt(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(o,{state:{pathnameStackToGoBack:c}})},autoCompleteActions:{onAutoCompleteInputChange:e=>{e.trim().length>=2?a(H({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(L("common"))},onAutoCompleteEntity:e=>{const o=at(e,t.tenantEmailDomain);a(U()),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}))}}}})(Q),it=et(function({entityType:a,...t}){const e=A(),o=B(),c=J(),[m,T]=d.useState(!1),[h,D]=d.useState(!1),{tenantEmailDomain:b,entityIdEncoded:x,entityNameEncoded:j}=q(),r=k(x??""),p=k(j??""),f=rt(r,p),w=[r,p].filter(n=>n!=null),i={name:p,id:r,type:a,zeniId:r,qboId:r},g=l(n=>_(n.customerIncomeState,n.vendorExpenseState,n.trendState,i,"quarter")),G=l(n=>K(n).company?.companyInfo.firstMonthOfFY??1),u=l(n=>R(n.trendWithTransactionsState,i,"EntityDetail"));d.useEffect(()=>{m===!1&&f===!0&&(T(!0),o(W(i)))},[m,f,i]);const E=l(n=>n.trendState.fetchState),P=u?.selectedPeriod?.timePeriod??g,v=function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y}(u?.selectedPeriod?.timePeriod,g);return d.useEffect(()=>{m===!0&&h===!1&&E==="Completed"&&(D(!0),P!=null&&o(I(i,"EntityDetail",{timeframe:u?.selectedPeriod?.timeframe??"quarter",timePeriod:P})))},[m,h,E]),f?s.jsx(ot,{firstMonthOfFY:G,tenantEmailDomain:b,location:c,navigate:e,entity:i,defaultTransactionTimePeriod:v,resetTrendIsFetchedStates:()=>{T(!1),D(!1)},...t}):s.jsx(F,{to:C(w.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 jt({entityType:a}){return s.jsx(O,{children:s.jsx(N,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:a})})})}export{jt as EntityDetailRoutes,jt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-585gCzRC.js";import{a as d}from"./sentry-CznkHhej.js";import{X as c,$ as l,Y as p,s as f}from"./index-B30ioXEx.js";import"./mui-Dh_OiBGq.js";import m from"./NotFoundScreen-Cucx3MKM.js";import{j as u,u as b}from"./core-BM9YDzPX.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new a.Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="dd7c473a-a4d4-49cd-947d-ba847deafae6",a._sentryDebugIdIdentifier="sentry-dbid-dd7c473a-a4d4-49cd-947d-ba847deafae6")}catch{}})();const D=()=>{const a=u(),e=b(),t=d.useCallback(()=>{window.open("https://www.zeni.ai/demo/request","_blank")},[]),r=d.useCallback(()=>{(()=>{const n=f(e.state?.pathnameStackToGoBack),i=n.poppedPathname??k();a(i,{state:{pathnameStackToGoBack:n.newStack}})})()},[]),o=c(e.pathname);return o!=null?s.jsx(l,{menuItem:p(o),onDemoClick:t,onGoBack:r}):s.jsx(m,{})},k=(a=2)=>{let e="../";for(let t=0;t<a;t++)e=`${e}../`;return e};export{D as F};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-585gCzRC.js";import{l as w,k as x,j,u as y,h as Y,q as ee,g as A,N as ae,n as te,o as p}from"./core-BM9YDzPX.js";import{Iu as S,Iv as k,Iw as N,yQ as $,yC as L,Ix as C,Iy as ne,Iz as oe,yG as ie,eN as I,yN as se,yK as le}from"./zeni-epic-state-1oMHKKZA.js";import{K as g,o as r,E as re,e as v,m as E,r as de,s as ce,v as me,x as F,i as pe,c as ue,R as he,Z as xe,h as ge,B as fe,y as be,p as we,A as ye,C as Se,F as ke,M as ve}from"./index-B30ioXEx.js";import{n as c}from"./mui-Dh_OiBGq.js";import f from"./NotFoundScreen-Cucx3MKM.js";import{a as P}from"./sentry-CznkHhej.js";import"./recharts-Bk8sahKA.js";import"./analytics-CqLahF_v.js";import"./plaid-B3TMtaAn.js";import"./dnd-DLVMxaGF.js";import"./stripe-DMRn4zHo.js";import"./lottie-piZcDgIc.js";import"./lexical-CFqhubpO.js";import"./pdf-C7LOTluM.js";import"./utils-Boc0JP6O.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]="0a86ff8a-03ad-4a90-9556-4b7b35e6116b",e._sentryDebugIdIdentifier="sentry-dbid-0a86ff8a-03ad-4a90-9556-4b7b35e6116b")}catch{}})();const Ie=c.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100%;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
10
|
-
`,je=x(function(e){const t=S(e),n=k(e),{companyName:o}=t;return{companyName:o,isDisabled:t.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,magicLinkViewState:t}},function(e,t){const{vendorId:n,billId:o}=t;return{onFetchBankName:i=>{e(L(i))},onSaveHandler:i=>{v.trackBillPayMagicLinkSubmitBankAccountDetails(o),e($(i,"standard",n,o))},onACHDetailsUpdated:i=>{const{bankAccountSection:l}=i;e(N({data:l}))}}})(re);function z(){const e=g(),{vendorId:t,billId:n}=w();return t==null||n==null?a.jsx(f,{}):a.jsx(a.Fragment,{children:a.jsx(Ie,{windowSize:e,children:a.jsx(je,{vendorId:t,billId:n})})})}const $e=c.div`
|
|
11
|
-
display: flex;
|
|
12
|
-
height: 100vh;
|
|
13
|
-
width: 100%;
|
|
14
|
-
flex: 1 1 auto;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
align-items: center;
|
|
17
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
18
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
19
|
-
`,Ce=x(function(e,t){const{isSubPage:n}=t;return{addressToEdit:C(e),googleAPIKey:E.googleMapsAPIKey,isSubPage:n}},function(e,t){const{navigate:n,location:o}=t,i=()=>{const l=ce(o.state?.pathnameStackToGoBack),s=l.poppedPathname??De();n(s,{state:{pathnameStackToGoBack:l.newStack}})};return{onSubmitHandler:l=>{const s=Ae(l);e(ne({addressToCreate:s})),i()},onCancel:()=>{i()}}})(de);function Be({isSubPage:e}){const t=j(),n=y(),o=g();return a.jsx(a.Fragment,{children:a.jsx($e,{windowSize:o,children:a.jsx(Ce,{location:n,navigate:t,isSubPage:e===!0,googleAPIKey:E.googleMapsAPIKey})})})}const De=(e=2)=>{let t="../";for(let n=0;n<e;n++)t=`${t}../`;return t},Ae=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng}),Pe=c.div`
|
|
20
|
-
display: flex;
|
|
21
|
-
height: 100%;
|
|
22
|
-
width: 100%;
|
|
23
|
-
flex: 1 1 auto;
|
|
24
|
-
flex-direction: column;
|
|
25
|
-
align-items: center;
|
|
26
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
27
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
28
|
-
`,ze=x(function(e){const t=S(e),n=k(e),o=C(e),{companyName:i}=t;return{companyName:i,isDisabled:t.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,mailingAddressDetails:o,magicLinkViewState:t}},function(e,t){const{navigate:n,location:o,vendorId:i,billId:l}=t;return{onFetchBankName:s=>{e(L(s))},onSaveHandler:s=>{v.trackBillPayMagicLinkSubmitBankAccountDetails(l),e($(s,"us-domestic",i,l))},onWireDetailsUpdated:s=>{const{bankAccountSection:d}=s;e(N({data:d}))},onAddressClick:()=>{const s=o.pathname.replace("us-domestic","address"),d=F(o.state?.pathnameStackToGoBack,o.pathname);n(s,{state:{pathnameStackToGoBack:d}})}}})(me);function Ne(){const e=j(),t=y(),n=g(),{vendorId:o,billId:i}=w();return o==null||i==null?a.jsx(f,{}):a.jsx(a.Fragment,{children:a.jsx(Pe,{windowSize:n,children:a.jsx(ze,{location:t,navigate:e,vendorId:o,billId:i})})})}const Le=c.div`
|
|
29
|
-
display: flex;
|
|
30
|
-
height: 100%;
|
|
31
|
-
width: 100%;
|
|
32
|
-
flex: 1 1 auto;
|
|
33
|
-
flex-direction: column;
|
|
34
|
-
align-items: center;
|
|
35
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
36
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
37
|
-
`,Ee=x(function(e){const t=S(e),n=k(e),o=C(e),{companyName:i}=t;return{companyName:i,isDisabled:t.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,mailingAddressDetails:o,magicLinkViewState:t}},function(e,t){const{navigate:n,location:o,vendorId:i,billId:l}=t;return{onFetchBankNameBySwift:s=>{e(ie(s))},onSaveHandler:s=>{v.trackBillPayMagicLinkSubmitBankAccountDetails(l),e($(s,"international",i,l,t.isLocalCurrencyEnabled))},onBankDetailsUpdated:s=>{const{internationalWireSwiftAccountSection:d}=s;e(oe({data:d}))},onAddressClick:()=>{const s=o.pathname.replace("international","address"),d=F(o.state?.pathnameStackToGoBack,o.pathname);n(s,{state:{pathnameStackToGoBack:d}})}}})(he);function Fe(){const e=j(),t=y(),n=g(),{vendorId:o,billId:i}=w(),{useFeatureGate:l}=pe(),{isFeatureEnabled:s}=l(ue.isBillPayLocalCurrencyFeatureEnabled);return o==null||i==null?a.jsx(f,{}):a.jsx(Le,{windowSize:n,children:a.jsx(Ee,{location:t,navigate:e,vendorId:o,billId:i,isLocalCurrencyEnabled:s})})}const Te={containerWidth:new ke(100,58)},Ge=c(ye)`
|
|
38
|
-
width: ${r.sp4};
|
|
39
|
-
height: ${r.sp4};
|
|
40
|
-
margin-bottom: ${r.sp3};
|
|
41
|
-
margin-top: ${r.sp3};
|
|
42
|
-
margin-left: ${r.sp8};
|
|
43
|
-
cursor: pointer;
|
|
44
|
-
position: absolute;
|
|
45
|
-
color: ${e=>e.theme.colors.brandColorJade};
|
|
46
|
-
`,Ke=c.div`
|
|
47
|
-
display: flex;
|
|
48
|
-
height: 100vh;
|
|
49
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
50
|
-
width: 100vw;
|
|
51
|
-
overflow-y: scroll;
|
|
52
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
53
|
-
`,Me=c.div`
|
|
54
|
-
display: flex;
|
|
55
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
56
|
-
flex-direction: column;
|
|
57
|
-
width: ${e=>`${Te.containerWidth.value(e.windowSize)}%`};
|
|
58
|
-
${e=>e.windowSize!=="small"?"overflow: auto;":""}
|
|
59
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
60
|
-
padding-top: ${e=>e.windowSize!=="small"?r.sp2:"0px"};
|
|
61
|
-
`,He=c.div`
|
|
62
|
-
display: flex;
|
|
63
|
-
flex-direction: column;
|
|
64
|
-
align-items: center;
|
|
65
|
-
justify-content: center;
|
|
66
|
-
padding: ${e=>e.windowSize==="small"?r.sp3:`62px ${r.sp6} ${r.sp9} ${r.sp8}`};
|
|
67
|
-
height: ${e=>e.windowSize==="small"?"490px":"auto"};
|
|
68
|
-
overflow: ${e=>e.windowSize==="small"?"unset":"hidden"};
|
|
69
|
-
width: ${e=>e.windowSize=="small"?"auto":"42%"};
|
|
70
|
-
background-color: ${e=>e.windowSize==="small"?e.theme.colors.grey4:e.theme.colors.background};
|
|
71
|
-
margin-top: ${e=>e.windowSize==="small"?e.isAddressPage?"0px":"186px":"unset"};
|
|
72
|
-
`,Ve=x(function(e,t){return{file:t.file,type:t.type}})(Se);function h({appContent:e}){const t=Y(),n=y(),{tenantEmailDomain:o,vendorId:i,billId:l}=w(),[s]=ee(),d=s.get("token"),T=n.pathname.includes("address"),b=g(),G=xe(),B=ge(),K=()=>{G.toggle()},M=A(u=>S(u)),H=A(u=>k(u)),{authParams:V,fetchState:m,billAttachment:W,billFetchState:D,companyName:_,currencySymbol:U,amount:O}=M,{tenantId:Q,userId:q,sessionId:J}=V,{fetchState:R,internationalBankAccountCreateStatus:Z}=H;return P.useEffect(()=>{I(),m==="Not-Started"&&i!=null&&o!=null&&d!=null&&t(se(i,o,d))},[]),P.useEffect(()=>{m==="Completed"&&(I(q,J,Q),l!=null&&t(le(l)))},[m]),m==="Error"?a.jsx(f,{}):R==="Completed"||Z.fetchState==="Completed"?(I(),a.jsx(ae,{to:"../../../../../../../bank/account/save/success",replace:!0,relative:"path"})):m==="In-Progress"?a.jsx(fe,{fetchState:m,style:{height:"100vh",backgroundColor:B.colors.grey5,boxShadow:`0px 2px ${r.sp1} ${B.colors.dropShadowNormal}`}}):a.jsxs(a.Fragment,{children:[m==="Completed"&&D==="Completed"&&a.jsx(be,{analytics:v,onLoad:u=>(X=>X.trackBillPayMagicLinkPageLoad(o??"",i??"",_,l??"",We(n.pathname),U,O))(u)}),a.jsxs(Ke,{windowSize:b,children:[b!=="small"?a.jsx(Ge,{onClick:K}):null,a.jsx(He,{windowSize:b,isAddressPage:T,children:D==="In-Progress"?a.jsx(we,{size:"ExtraLarge",start:!0}):a.jsx(Ve,{file:W,type:"bill"})}),a.jsx(Me,{windowSize:b,children:e})]})]})}const We=e=>`${e.split("/").at(-2)}_${e.split("/").at(-1)}`;function _e(){return a.jsx(ve,{})}function la(){return a.jsxs(te,{children:[a.jsx(p,{path:"bank/account/save/success",element:a.jsx(_e,{})}),a.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/ach/standard",element:a.jsx(h,{appContent:a.jsx(z,{})})}),a.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/ach/same-day",element:a.jsx(h,{appContent:a.jsx(z,{})})}),a.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/address",element:a.jsx(h,{appContent:a.jsx(Be,{isSubPage:!0})})}),a.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/us-domestic",element:a.jsx(h,{appContent:a.jsx(Ne,{})})}),a.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/international",element:a.jsx(h,{appContent:a.jsx(Fe,{})})}),a.jsx(p,{path:"*",element:a.jsx(f,{})})]})}export{la as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-585gCzRC.js";import{a as f}from"./sentry-CznkHhej.js";import{h as U,u as w,j as _,q as M,g as l,N as T}from"./core-BM9YDzPX.js";import{z as r,h as P,D as V,f as A,e as N,g as q,w as R,p as W,k as $}from"./index-B30ioXEx.js";import{eM as B,Ie as G,Ip as H,If as J,eN as K,fi as Q,Il as X,fF as Y,cR as Z,Iq as ee,Ir as te}from"./zeni-epic-state-1oMHKKZA.js";import{n as ne}from"./mui-Dh_OiBGq.js";import{u as se}from"./useDeviceId-D_MFUrrA.js";import{f as ae}from"./analyticsHelper-DWU-XMyN.js";import{t as ie}from"./getLocaleForTenant-CjYI5PP8.js";import"./recharts-Bk8sahKA.js";import"./analytics-CqLahF_v.js";import"./plaid-B3TMtaAn.js";import"./dnd-DLVMxaGF.js";import"./stripe-DMRn4zHo.js";import"./lottie-piZcDgIc.js";import"./lexical-CFqhubpO.js";import"./pdf-C7LOTluM.js";import"./utils-Boc0JP6O.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="90f36598-8e52-474b-a89e-9829a8dbf6dd",t._sentryDebugIdIdentifier="sentry-dbid-90f36598-8e52-474b-a89e-9829a8dbf6dd")}catch{}})();const D=(t,a)=>t!=null&&t.length>0&&a==="magic_links";function De(){const t=U(),a=w(),m=_(),[b]=M(),n=b.get("token"),p=b.get("stytch_token_type"),g=r.getMagicLinkCodeVerifier(),i=se(),{otpChallenge:d,twoFAPhoneNumber:x,magicLinkEmail:c,verifyDeviceFetchState:z,resendVerifyDeviceOTPFetchState:C}=l(e=>e.tenantState),I=l(e=>e.tenantState.fetchState),y=l(e=>e.tenantState.activeTenantFetchState.fetchState),S=l(e=>e.tenantState.signInState),h=l(e=>e.tenantState.magicLinkSignInFetchState.fetchState),s=l(e=>e.tenantState.loggedInUser),o=l(e=>B(e)),k=l(e=>G(e)),E=r.getSignedInUser(),v=P().mode;f.useEffect(()=>{s?.zeniSessionId==null&&n!=null&&D(n,p)&&i!=null&&g!=null&&(r.saveMagicLinkTriggered(n),t(H(n,i,g)))},[n,p,t,i,g,s?.zeniSessionId]),f.useEffect(()=>{S!=="In-Progress"||I!=="Completed"&&y!=="Completed"||s?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(s,s.zeniSessionId),r.saveSignedInUserTenants(J(k.tenantsInOrder),s.zeniSessionId),K(s.userId,s.zeniSessionId,o.tenantId),t(Q(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(X("Completed")),V.updateAppLocaleID(ie(o)),ae(s,o,v,void 0,k.tenantsInOrder),Y().then(()=>{const e=$();e!=null&&A(e)}),setTimeout(()=>{N.trackLogin(q.Event.loginSuccess,"email",Z(o.productSettings))},2e3))},[S,I,y,s,o,k,v,a.state,t]);const F=f.useCallback(()=>{m("/signin/auth")},[m]),j=f.useCallback(()=>{i!=null&&d!=null&&c!=null&&t(ee(i,c,d))},[i,d,t,c]),O=f.useCallback(e=>{i!=null&&n!=null&&c!=null&&d!=null&&t(te(e,i,c,d))},[i,n,t,c,d]);if(h==="Completed"&&d!=null)return u.jsx(R,{phoneNumber:x,verifyOtpFetchState:z.fetchState,resendVerifyDeviceOTPFetchState:C,onResendOtp:j,onVerifyOtp:O,onCancelVerifyDevice:F});if(S==="In-Progress"&&I==="Completed"&&s?.zeniSessionId!=null&&o!=null||E!=null){const e=a.state?.origin??"/";return u.jsx(T,{to:e,state:{...a.state,origin:""}})}if(!D(n,p)||g==null||h==="Error"){const e=a.state?.origin??"/",L=n!=null&&r.getLastUsedMagicLinkToken()===n;return u.jsx(T,{to:e,state:{...a.state,origin:"",magicLinkAlreadyUsed:L,magicLinkExpired:!L&&(r.isMagicLinkTriggered(n??"")||h==="Error"&&s?.zeniSessionId==null)}})}return u.jsx(oe,{"data-testid":"smooth-loader",children:u.jsx(W,{size:"ExtraLarge",start:!0})})}const oe=ne.div`
|
|
2
|
-
position: fixed;
|
|
3
|
-
top: 0;
|
|
4
|
-
left: 0;
|
|
5
|
-
right: 0;
|
|
6
|
-
bottom: 0;
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
z-index: 9999;
|
|
11
|
-
background-color: ${t=>t.theme.colors.background};
|
|
12
|
-
`;export{De as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as U}from"./liveblocks-585gCzRC.js";import{a as c}from"./sentry-CznkHhej.js";import{h as pe,g as t,l as We,u as Xe,j as qe,i as P}from"./core-BM9YDzPX.js";import{eM as he,eU as Je,eV as Se,eO as Ke,bm as Qe,f3 as ea,eW as aa,eX as ta,eZ as na,f1 as sa,fb as oa,f2 as g,f5 as ia,f6 as ue,f9 as ra,f7 as da,f8 as la,fa as ca,cF as ua,fd as ma,cL as fa,bu as ba,eL as pa,fi as ha,fj as Sa,fh as ga}from"./zeni-epic-state-1oMHKKZA.js";import{a1 as Ea,a2 as ka,Z as Ca,i as ya,z as k,a3 as Ia,u as Ta,c as r,a4 as wa,a5 as Fa,S as Aa,a as _a,a6 as Da,X as va,a7 as $a,a8 as Ba,a9 as me,aa as fe,L as Ma,ab as xa,ac as be,e as R,x as F,ad as N,ae as Pa}from"./index-B30ioXEx.js";import{D as Ra}from"./mui-Dh_OiBGq.js";(function(){try{var m=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new m.Error().stack;d&&(m._sentryDebugIds=m._sentryDebugIds||{},m._sentryDebugIds[d]="6b95e4ba-a2be-41d0-8f04-e935bd313049",m._sentryDebugIdIdentifier="sentry-dbid-6b95e4ba-a2be-41d0-8f04-e935bd313049")}catch{}})();const Na=Ea(({isAppContentDrawerOpen:m,handleDrawerToggle:d})=>{const{tenantEmailDomain:n}=We(),a=Xe(),C=Ca(),o=qe(),V=Ke(),f=pe(),{useFeatureGate:i}=ya(),G=k.getSignedInUser(),A=Qe(G),s=t(e=>he(e)),L=t(e=>ea(e)),j=L.uiState.currentChatSessionId,y=Ia(),{setLoading:ge}=Ta(),[_,O]=c.useState(void 0),D=P("/:tenantEmailDomain/dashboard")!==null,z=P("/:tenantEmailDomain/reports")!==null,I=P("/:tenantEmailDomain/onboarding/*")!==null,{isFeatureEnabled:Z}=i(r.isDepositAccountsFeatureEnabled),{isFeatureEnabled:Ee}=i(r.isChargeCardFeatureEnabled),{isFeatureEnabled:Y}=i(r.isDebitCardFeatureEnabled),ke=wa(s,Ee,Y),{isFeatureEnabled:Ce}=i(r.isSettingsFeatureEnabled),H=t(e=>aa(e)),{isFeatureEnabled:T}=i(r.isReferralFeatureEnabled),v=t(e=>ta(e));c.useEffect(()=>{y&&T&&!I&&v.fetchState==="Not-Started"&&f(na(!0))},[y,T,v.fetchState,I]);const h=k.getSignedInUser(),$=t(e=>e.tenantState),ye=t(e=>$.fetchState==="Completed"?sa(e):[]),E=t(e=>e.expenseAutomationViewState.selectedPeriodByTenantId),{isFeatureEnabled:Ie}=i(r.isApAgingFeatureEnabled),{isFeatureEnabled:Te}=i(r.isArAgingFeatureEnabled),{isFeatureEnabled:W}=i(r.isExpenseAutomationEnabled),{isFeatureEnabled:X}=i(r.isExpenseAutomationEnabledV2),q=X||W&&A,{isFeatureEnabled:we}=i(r.isDashboardSidebarHalloweenAnimationEnabled),{isFeatureEnabled:Fe}=i(r.isDashboardSidebarThanksGivingAnimationEnabled),{isFeatureEnabled:Ae}=i(r.isDashboardSidebarChristmasAnimationEnabled),{isFeatureEnabled:_e}=i(r.isDashboardSidebarNewYearAnimationEnabled),{isFeatureEnabled:De}=i(r.isTreasuryEnabled),{isFeatureEnabled:ve}=i(r.isTaskManagerCustomerUserAccessEnabled),$e=A||!A&&ve,Be=s.company!=null&&oa(s.company),w=De&&Be,Me=t(e=>g(e).totalUnreadCount),xe=t(e=>g(e).reducedFetchCountState),J=t(e=>g(e).notificationDetailsByTab.tasks.uiState.unreadCount),K=t(e=>g(e).notificationDetailsByTab.comments.uiState.unreadCount),Pe=t(e=>g(e).notificationDetailsByTab.tasks.fetchCountState),B=t(e=>g(e).notificationDetailsByTab.comments.fetchCountState),{inboxNotifications:Q,isLoading:ee,isFetchingMore:ae,hasFetchedAll:te,fetchMore:Re}=Fa();c.useEffect(()=>{const e=setTimeout(()=>Re?.(),0);return()=>clearTimeout(e)}),c.useEffect(()=>{if(ee===!1&&ae===!1&&te===!0)if(s?.companyId!=null&&Q!=null){const e=`dashboard_${s.companyId}`;O(Q.filter(u=>u.roomId===e&&u.readAt==null).length)}else O(0)},[ee,ae,te]),c.useEffect(()=>{y&&!I&&Pe.fetchState==="Not-Started"&&V.tenantId!=null&&f(ia("task_manager","dashboard"))},[y,V.tenantId]),c.useEffect(()=>{I||B.fetchState!=="Not-Started"||f(ue({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))},[]),c.useEffect(()=>{_!=null&&B.fetchState==="In-Progress"&&(f(ue({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),f(Se({unreadCount:_},"comments")))},[_,B.fetchState]);const Ne={fetchStatus:xe,count:Me},ne=n!=null?k.getSignedInUserTenant(n):null,se=t(e=>ne?.tenantId!=null?ra(e,ne.tenantId):void 0),S=[];Ie===!1&&S.push("accounts_payable_aging"),Te===!1&&S.push("accounts_receivable_aging"),Z===!1&&S.push("zeni_accounts_promo_card"),T===!1&&S.push("rewards_card"),q===!1&&S.push("expense_automation_card");const Ue=Aa(),oe=t(e=>da(e,S,h,X,W,w).fetchState),ie=t(e=>la(e).fetchState),Ve=D&&(oe==="Completed"||oe==="Error")||z&&(ie==="Completed"||ie==="Error")||!D&&!z?void 0:"disabled",Ge=c.useMemo(()=>ca(s.userRole),[s.userRole]),Le=ua(Ge),je=s?.rewardsLastViewedTime==null,Oe=h?.userEmail!=null&&H.fetchState==="Completed"&&ma(H.notificationSettings,h.userEmail,Y,s),re=_a(),ze=re&&Da(a),de=fa(Ue?.loggedInUserRoleMap),le=s.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,M=c.useCallback(()=>w&&de&&!k.getTreasuryPopupSeen(n??"")&&le===!1&&va(a.pathname)!=="treasury",[w,de,le,a.pathname,n]),[Ze,ce]=c.useState(M);c.useEffect(()=>{ce(M())},[M]);const Ye=t(e=>e.treasurySetupViewState.treasuryFundsDetails).fundsDetails,He=$a(Ye);return U.jsx(Ra,{container:window.document.body,variant:"temporary",open:m,onClose:()=>d(!1),PaperProps:{sx:{width:240,zIndex:8,borderRight:"none",backgroundImage:"none"}},ModalProps:{keepMounted:!0},children:U.jsx(Ba,{signedInUser:G,currentTenantId:$.currentTenantId??"",tenants:$.fetchState==="Completed"?ye:se!=null?[se]:[],currentTenant:s,isTenantDropdownDisabled:Ve,isSettings:fe(a),isSettingsFeatureEnabled:Ce,isVendorsTabVisible:Le,isZeniAccountEnabled:Z,isChargeCardEnabled:ke,isTreasuryEnabled:w,treasuryYieldPercentage:He,isTreasuryPopupVisible:Ze,isNotificationsTabVisible:Oe,notificationCountDetails:Ne,isExpenseAutomationEnabledForUser:q&&ba(s.userRole)===!1,selectedMenu:me(a),rewardsConfiguration:{isRewardsTabVisible:T,isRewardsAnimated:je,rewardsPlan:v.rewardsPlan},isAiCfoAccessEnabled:re,onNotificationIconClick:()=>{d(!1);let e=J===0&&K>0?"notifications/comments":"notifications/tasks";fe(a)&&(e=J===0&&K>0?"../../notifications/comments":"../../notifications/tasks");const u=F(a.state?.pathnameStackToGoBack,a.pathname);o(e,{state:{pathnameStackToGoBack:u}})},handleCockpitClick:()=>{window.open("/cockpit")},handleLogOutClick:()=>{d(!1);const e=F(a.state?.pathnameStackToGoBack,a.pathname);o("/signout",{replace:!0,state:{pathnameStackToGoBack:e,message:"logout"}})},handleMenuChange:e=>{if(d(!1),e.type==="ai_cfo"){const p=F(a.state?.pathnameStackToGoBack,a.pathname);return R.trackAICFOChatScreenStateChanged("viewed","left_menu",j??null,null),void o(`/${n}/ai-cfo/explore`,{state:{pathnameStackToGoBack:p,referrer:"Sidebar"}})}const u=F(a.state?.pathnameStackToGoBack,a.pathname),l=e.type,b=N(l)&&l!=="command_center";if(N(e.type)&&E[s.tenantId]!=null&&R.trackMonthEndCloseClicked(E[s.tenantId].month,E[s.tenantId].year,"Sidebar"),b&&E[s.tenantId]!=null){const p=E[s.tenantId];return void o(`/${n}/month_end_close_checks/review/${e.type}/${p.month}-${p.year}`,{state:{pathnameStackToGoBack:u,referrer:"Sidebar"}})}const x=Pa(e.type);be(e.type)?(j!=null&&f(ga()),o(`/${n}/ai-cfo/${e.type}`,{state:{pathnameStackToGoBack:u.slice(0,-1),referrer:"Sidebar"}})):o(`/${n}/${x}`,{state:{pathnameStackToGoBack:u,referrer:"Sidebar"}})},handleMyProfileClick:()=>{d(!1),o(`/${n}/settings/my_profile`)},handleReferralsClick:()=>{d(!1),o(`/${n}/rewards`)},handleBackClick:()=>{o(`/${n}/dashboard`)},handleTenantSelect:e=>{ge(Ma.TENANT_SWITCHING),d(!1);const u=e.tenantEmailDomain,l=me(a);let b=`/${encodeURIComponent(u)}/`;const x=N(l);l==="home"?b+="dashboard":l==="users_and_roles"?b+="people":xa(l)?b+="settings/my_profile":be(l)?b+=`ai-cfo/${l}`:b+=l==="task_checklist"?"tasks":x?"month_end_close_checks/review":encodeURIComponent(l),o(b,{replace:!0}),h!=null&&(f(ha(e.tenantId)),f(Sa(h.userId,e.tenantId,h.zeniSessionId)));const p=e;R.trackCompanySwitch(p.companyId,p.companyName,p.userRole)},handlePopupClose:()=>{k.saveTreasuryPopupSeen(n??"",!0),ce(!1)},onZeniLogoClick:()=>{C.toggle()},isAiCfo:ze,aiCfoView:L,isOnDashboard:D,updateCurrentChatSessionId:e=>{f(pa({sessionId:e,agentId:"controller"})),o(`/${n}/ai-cfo/${e}`,{state:{...a.state}})},halloweenAnimationEnabled:we,isTaskManagerAccessEnabled:$e,thanksGivingAnimationEnabled:Fe,christmasAnimationEnabled:Ae,newYearAnimationEnabled:_e})})}),za=m=>{const d=pe(),n=t(C=>he(C)),a={events:n.userRoleId!=null?[`private-${n.userRoleId}.dashboard-user-notification`]:[],eventCallback:(C,o)=>{ka(o)&&Je(o.mode)==="dashboard"&&d(Se({unreadCount:o.data.unread},"tasks"))}};return U.jsx(Na,{...m,...a})};export{za as M};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-585gCzRC.js";import{j as r,k as i}from"./core-BM9YDzPX.js";import{W as n}from"./index-B30ioXEx.js";import"./mui-Dh_OiBGq.js";import"./sentry-CznkHhej.js";import"./zeni-epic-state-1oMHKKZA.js";import"./recharts-Bk8sahKA.js";import"./analytics-CqLahF_v.js";import"./plaid-B3TMtaAn.js";import"./dnd-DLVMxaGF.js";import"./stripe-DMRn4zHo.js";import"./lottie-piZcDgIc.js";import"./lexical-CFqhubpO.js";import"./pdf-C7LOTluM.js";import"./utils-Boc0JP6O.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new o.Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="fe0dc2e3-d6a3-4690-8e18-122b6c1ede12",o._sentryDebugIdIdentifier="sentry-dbid-fe0dc2e3-d6a3-4690-8e18-122b6c1ede12")}catch{}})();const d=i(null,function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}})(n);function h(){const o=r();return e.jsx(d,{navigate:o})}export{h as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as n}from"./liveblocks-585gCzRC.js";import{j as H,h as Q,u as Z,l as K,g as d,k as X,n as ee,o as C}from"./core-BM9YDzPX.js";import{eM as M,qb as U,pL as ae,J5 as w,pG as y,bu as te,bm as se,bQ as oe,pH as re,J6 as ne,IS as S,dF as ie,ty as ce,J7 as le,tV as de,eT as me,eR as fe}from"./zeni-epic-state-1oMHKKZA.js";import{J as pe,z as ue,N as be,S as he,i as $,c as N,y as Fe,e as q,aj as ge,x as Ie}from"./index-B30ioXEx.js";import"./mui-Dh_OiBGq.js";import Ce from"./NotFoundScreen-Cucx3MKM.js";import{F as Se}from"./FeaturePreviewScreen-DIglws95.js";import{a as b}from"./sentry-CznkHhej.js";import{u as ye}from"./useAskAiCfoHostNavButtonProps-DOA3k3qr.js";import{c as Te}from"./useFetchSuggestedQuestionsWhenReady-CThB0klC.js";import{u as Ae}from"./useInitialThreadRequest-jV5iOQ5Z.js";import{t as xe}from"./routePaths-C_5Vo_Nm.js";import{M as ke}from"./MobileAppDrawer-BXRnd_IS.js";import"./recharts-Bk8sahKA.js";import"./analytics-CqLahF_v.js";import"./plaid-B3TMtaAn.js";import"./dnd-DLVMxaGF.js";import"./stripe-DMRn4zHo.js";import"./lottie-piZcDgIc.js";import"./lexical-CFqhubpO.js";import"./pdf-C7LOTluM.js";import"./utils-Boc0JP6O.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new s.Error().stack;a&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[a]="c2dcc6a9-b473-40b1-bebb-d81d44ba5f65",s._sentryDebugIdIdentifier="sentry-dbid-c2dcc6a9-b473-40b1-bebb-d81d44ba5f65")}catch{}})();const T=(s,a,e,o)=>{if(s!=a){const r=o??"";s!=null&&s.length>0?e(`../${a}${r}`,{replace:!0}):e(`${a}${r}`,{replace:!0})}},De=X(function(s){const a=ne(s),e={},o=a.pandLReportWithForecast.uiState.nodeCollapseState;return Object.keys(o).forEach(r=>{e[r]=o[r]===!1}),{selectedTimeframe:a.selectedTimeframe,isForecastVsActualOn:a.isForecastVsActualOn,compareMode:a.compareMode,forecastList:a.forecastList,selectedForecast:a.selectedForecast,pandLreport:a.pandLReportWithForecast,scrollPosition:a.pandLReportWithForecast.uiState.scrollPosition,nodeOpenStatus:e,type:"name+balances_forecast",analytics:q}},function(s,a){return{onForecastSelectionChanged:(e,o)=>{s(w(e,o)),a.isPandLReportFetched(e)||s(y(e)),T(a.forecastIdFromUrlPath,e,a.navigate)},onTimeframeChanged:e=>{s(de(e))},onForecastVsActualsCompareToggle:e=>{s(le(e)),s(S({forecastId:a.forecastIdFromUrlPath,scrollPosition:{scrollLeft:0,scrollTop:0}}))},onCompareModeChanged:e=>{s(ce(a.firstMonthOfFY,e,0,[]))},onAccountBalanceClick:a.hasTransactionAccess!==!0?void 0:(e,o)=>{let r,i;const h=e.accountName===""?e.accountDescription:e.accountName;if(o.balanceTimeFrame==="month"||o.balanceTimeFrame==="quarter"?(r=o.balanceTimeFrame,i=ie(o)):o.balanceTimeFrame==="year"?(r="quarter",i={startDate:o.endDate.startOf("quarter"),endDate:o.endDate}):console.error(`timeframe ${o.balanceTimeFrame} is not supported`),i!=null&&r!=null){const f=xe(a.tenantEmailDomain,e.accountId,e.accountType,h,r,i),p=Ie(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(f,{state:{pathnameStackToGoBack:p,referrer:"Forecast"}})}},onNodeCollapseToggled:(e,o)=>{s(S({forecastId:a.forecastIdFromUrlPath,nodeCollapseState:{nodeId:e,isCollapsed:o===!1}}))},onTableScroll:e=>{s(S({forecastId:a.forecastIdFromUrlPath,scrollPosition:e}))},onBackClick:()=>{a.navigate("../../")}}})(ge);function v(){const{isAiCfoOpen:s,setIsAiCfoOpen:a}=pe(),e=H(),o=Q(),r=Z(),{forecastId:i,tenantEmailDomain:h}=K(),[f,p]=b.useState(!1),[F,A]=b.useState(!1),u=ue.getSignedInUser(),x=d(t=>M(t)),B=x.company?.companyInfo.firstMonthOfFY??1,c=d(t=>U(t.forecastState,t.forecastListState)),l=d(t=>t.forecastListState.fetchState==="Completed"),k=d(t=>t.profitAndLossState),D=d(t=>t.reportUIOptionsState.selectedForecast),j=t=>k.pandLByForecastID[t]!=null&&re(t,k).reducedAllFetchState.fetchState==="Completed",{areTenantIdsInSync:g}=be();Te({isDataReady:l});const{isAiCfoAccessEnabled:G,onAskAiCfoClick:_}=ye({isAiCfoOpen:s,setIsAiCfoOpen:a,mobileExploreReferrer:"Forecast"});b.useEffect(()=>{if(!f&&g)p(!0),l||o(ae());else if(l&&!F){A(!0);const t=((m,R,P)=>R!=null?m.forecasts.findIndex(I=>I.id===R):P!=null?m.forecasts.findIndex(I=>I.id===P):m.forecasts.length>0?0:-1)(c,i,D?.id);t===-1&&i!=null?e("page-not-found",{replace:!0}):t!==-1&&t!=D?.index?(o(w(c.forecasts[t].id,t)),T(i,c.forecasts[t].id,e,r.search)):i==null&&t!==-1&&T(void 0,c.forecasts[t].id,e,r.search),t!==-1&&!j(c.forecasts[t].id)&&g&&o(y(c.forecasts[t].id))}},[f,p,o,l,c,F,A,U,y,g]);const L=he(),J=L?.loggedInUserRole!=null&&te(L.loggedInUserRole),{useFeatureGate:V}=$(),{isFeatureEnabled:E}=V(N.isReportsCommentingEnabled),W=Ae(E?x?.companyId:void 0,{clearParams:l&&F}),[Y,z]=b.useState(!1),O=t=>{z(t)};return n.jsxs(n.Fragment,{children:[l?n.jsx(Fe,{analytics:q,onLoad:t=>(m=>m.trackForecast())(t)}):null,n.jsx(ke,{isAppContentDrawerOpen:Y,handleDrawerToggle:O}),n.jsx(De,{firstMonthOfFY:B,tenantEmailDomain:h,forecastIdFromUrlPath:i,navigate:e,location:r,isPandLReportFetched:j,meetingUrl:oe(`https://meetings.hubspot.com/svitlana-grankovska?firstname=${u?.firstName}&lastname=${u?.lastName}&email=${u?.userEmail}`),hasTransactionAccess:J,isAiCfoAccessEnabled:G,onAskAiCfoClick:_,isReportsCommentingEnabled:E,isZeniUser:se(u),initialOpenThreadRequest:W,onClickMenuIcon:()=>{O(!0)}})]})}function Qe(){const s=d(i=>M(i)),{useFeatureGate:a}=$(),{isFeatureEnabled:e}=a(N.isDebitCardFeatureEnabled),o=me(e,s),r=fe(s);return o===!0||r===!0?n.jsx(Se,{}):n.jsxs(ee,{children:[n.jsx(C,{path:"/",element:n.jsx(v,{})}),n.jsx(C,{path:"/:forecastId",element:n.jsx(v,{})}),n.jsx(C,{path:"/:forecastId/*",element:n.jsx(Ce,{})})]})}export{Qe as PandLWithForecastRoutes,Qe as default};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-585gCzRC.js";import{J0 as oe,eM as q,jm as z,eT as Q,eR as ie,GA as Y,IE as re,sG as Ie,J1 as X,su as Pe,sP as je,sJ as le,sy as de,sN as Te,sK as Le,J2 as ce,uk as ve,J3 as Ae,fx as Fe,J4 as J,sD as pe,sB as ue,sS as Oe,b$ as Re}from"./zeni-epic-state-1oMHKKZA.js";import{K as me,i as ee,c as E,z as H,a4 as ge,G as he,af as fe,ag as Ve,F as Ce,o as F,H as be,D as ye,ah as Ue,N as Be,J as Ze,y as $e,e as we,g as Ge,x as Je,ai as Ke,S as _e}from"./index-B30ioXEx.js";import{D as Se,n as W,S as De}from"./mui-Dh_OiBGq.js";import te from"./NotFoundScreen-Cucx3MKM.js";import{a as l}from"./sentry-CznkHhej.js";import{h as se,l as ze,g,j as He,u as We,k as Me,n as ne,o as G}from"./core-BM9YDzPX.js";import{u as Ne}from"./useAskAiCfoHostNavButtonProps-DOA3k3qr.js";import{c as Xe}from"./useFetchSuggestedQuestionsWhenReady-CThB0klC.js";import{M as qe}from"./MobileAppDrawer-BXRnd_IS.js";import"./recharts-Bk8sahKA.js";import"./analytics-CqLahF_v.js";import"./plaid-B3TMtaAn.js";import"./dnd-DLVMxaGF.js";import"./stripe-DMRn4zHo.js";import"./lottie-piZcDgIc.js";import"./lexical-CFqhubpO.js";import"./pdf-C7LOTluM.js";import"./utils-Boc0JP6O.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]="fdec0db2-4943-4983-8d6a-81c3e31415ab",e._sentryDebugIdIdentifier="sentry-dbid-fdec0db2-4943-4983-8d6a-81c3e31415ab")}catch{}})();const Qe={overlayWidth:new Ce(100,100,48)},K=ye.getLocalizedStrings().peoplePage.invitePage,Ye=({companyId:e,managersListView:n,companyPassportView:d,classListView:o,mode:h,isEditPeopleDrawerOpen:i,closeDrawerHandler:y})=>{const f=me(),u=se(),[O,R]=l.useState(!1),[I,w]=l.useState(!1),{userId:S}=ze(),c=g(t=>oe(t)),m=g(t=>q(t)),D=g(t=>z(t)),{useFeatureGate:C}=ee(),{isFeatureEnabled:k}=C(E.isDebitCardFeatureEnabled),P=Q(k,m),L=ie(m),v=Y(m),V=re(m),U=!!m.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,x=!P&&D&&o.fetchState!=="Completed"||n.fetchState!=="Completed"||d.fetchState!=="Completed"||e==null;if(H.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const b=()=>{u(X()),y()},A=()=>{O===!0?w(!0):b()},B=d.companyView?.controllers?.map(t=>t.user),{isFeatureEnabled:Z}=C(E.isDepositAccountsFeatureEnabled),{isFeatureEnabled:$}=C(E.isChargeCardFeatureEnabled),p=ge(m,$,k),{isFeatureEnabled:j}=C(E.isTreasuryEnabled),T={peopleDetails:c,classList:o.classes,managersList:n.users,controllersList:B,mode:h,isZeniTenant:v,isAccountingClassesEnabled:D,isReimbursementDisabled:U===!1,isZeniAccountsDisabled:Z===!1,isChargeCardDisabled:p===!1,isTreasuryDisabled:j===!1,isLiteRoleDisabled:V===!1,isBankingOnlyTenant:P,isCardsOnlyTenant:L,onResetClick:b,onDeleteUser:t=>{u(de(t.userId,t.userRole.userRoleId))},onPeopleLocalDataUpdated:t=>{u(le({peopleLocalData:t})),R(!0)},onSaveClick:()=>{u(h==="zeni_only"?Pe(e):je(v))},onCloseClick:A,isLoading:x||c.person==null},r={onOkClick:()=>{w(!1),b()},onCancelClick:()=>{w(!1)}};return l.useEffect(()=>{x===!1&&S!=null&&u(Ie(S))},[x,S]),l.useEffect(()=>{c.updatePersonState.fetchState==="Completed"&&b()},[c.updatePersonState.fetchState]),s.jsx(Se,{anchor:"right",open:i,PaperProps:{style:{width:Qe.overlayWidth.valuePercentage(f),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:he.overlayDark,cursor:"pointer"}}},onClose:A,children:s.jsxs(es,{onClick:t=>t.stopPropagation(),children:[I===!0?s.jsx(fe,{titleComponent:s.jsx(xe,{children:K.discardTitle}),descriptionComponent:s.jsx(Ee,{children:K.discardDescription}),primaryButtonText:K.discard,secondaryButtonText:K.no,action:r,isEditPopup:!0}):null,s.jsx(Ve,{...T})]})})},es=W(De)`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`,xe=W(be.H6Regular)`
|
|
6
|
-
margin-top: ${F.sp7};
|
|
7
|
-
padding-left: ${F.sp8};
|
|
8
|
-
padding-right: ${F.sp8};
|
|
9
|
-
color: ${e=>e.theme.colors.primary};
|
|
10
|
-
word-break: break-word;
|
|
11
|
-
`,Ee=W(be.LargeRegularSp)`
|
|
12
|
-
color: ${e=>e.theme.colors.hero};
|
|
13
|
-
padding-left: ${F.sp8};
|
|
14
|
-
padding-right: ${F.sp8};
|
|
15
|
-
margin-bottom: 30px;
|
|
16
|
-
margin-top: ${F.sp4};
|
|
17
|
-
white-space: pre-line;
|
|
18
|
-
`,ss={overlayWidth:new Ce(100,100,48)},_=ye.getLocalizedStrings().peoplePage.invitePage,as=({companyId:e,managersListView:n,companyPassportView:d,classListView:o,mode:h,isInvitePeopleDrawerOpen:i,closeDrawerHandler:y})=>{const f=me(),u=se(),[O,R]=l.useState(!1),[I,w]=l.useState(!1),S=g(r=>oe(r)),c=g(r=>q(r)),m=g(r=>z(r)),{useFeatureGate:D}=ee(),{isFeatureEnabled:C}=D(E.isDebitCardFeatureEnabled),k=Q(C,c),P=ie(c),L=Y(c),v=re(c),V=!!c.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,U=!k&&m&&o.fetchState!=="Completed"||n.fetchState!=="Completed"||d.fetchState!=="Completed"||e==null;if(H.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const x=()=>{y(),u(X())},b=()=>{O===!0?w(!0):x()},A={onOkClick:()=>{w(!1),x()},onCancelClick:()=>{w(!1)}},B=d.companyView?.controllers.map(r=>r.user),{isFeatureEnabled:Z}=D(E.isDepositAccountsFeatureEnabled),{isFeatureEnabled:$}=D(E.isChargeCardFeatureEnabled),p=ge(c,$,C),{isFeatureEnabled:j}=D(E.isTreasuryEnabled),T={classList:o.classes,managersList:n.users,controllersList:B,mode:h,isZeniTenant:L,onPeopleLocalDataUpdated:r=>{u(le({peopleLocalData:r})),R(!0)},onResetClick:x,onSaveClick:()=>{u(h==="zeni_only"?Te(e):Le())},onCloseClick:b,peopleDetails:S,isAccountingClassesEnabled:m,isReimbursementDisabled:V===!1,isLiteRoleDisabled:v===!1,isZeniAccountsDisabled:Z===!1,isChargeCardDisabled:p===!1,isTreasuryDisabled:j===!1,isBankingOnlyTenant:k,isCardsOnlyTenant:P,isLoading:U};return l.useEffect(()=>{S.invitePersonState.fetchState==="Completed"&&(y(),u(X()))},[S.invitePersonState.fetchState]),s.jsx(Se,{anchor:"right",open:i,PaperProps:{style:{width:ss.overlayWidth.valuePercentage(f),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:he.overlayDark,cursor:"pointer"}}},onClose:b,children:s.jsxs(ts,{onClick:r=>r.stopPropagation(),children:[I===!0?s.jsx(fe,{titleComponent:s.jsx(xe,{children:_.discardTitle}),descriptionComponent:s.jsx(Ee,{children:_.discardDescription}),primaryButtonText:_.discard,secondaryButtonText:_.no,action:A}):null,s.jsx(Ue,{...T})]})})},ts=W(De)`
|
|
19
|
-
display: flex;
|
|
20
|
-
min-height: 100%;
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
`,ns=Me(function(e,n){const d=ce(e),o=H.getSignedInUser();return{data:d,loggedinUserId:o?.userId??"",isZeniTenant:n.isZeniTenant===!0,shouldFetchClasses:n.shouldFetchClasses,isZeniAdminUser:o?.userEmailDomain==="zeni.ai"&&n.isZeni===!0,isAccountingClassesEnabled:z(e),analytics:we}},function(e,n){const{navigate:d,companyId:o,shouldFetchClasses:h}=n;return{personAction:{onPersonDelete:(i,y)=>{e(de(i,y))},onResendInvite:i=>{e(Oe(i))},onReloadPeople:()=>{e(pe()),e(ue(o,h))},onBackClick:()=>{d("../../")},onModeChange:i=>{e(J({mode:i,searchText:"",sortKey:"name",sortOrder:"ascending"}))},onSearchTextChanged:i=>{e(J({searchText:i}))}}}})(Ke);function N({isInvitePeopleDrawerOpen:e,isEditPeopleDrawerOpen:n}){const d=He(),o=se(),h=We(),{areTenantIdsInSync:i}=Be(),y=H.getSignedInUser(),f=g(a=>q(a)),{useFeatureGate:u}=ee(),{isFeatureEnabled:O}=u(E.isDebitCardFeatureEnabled),R=g(a=>z(a)),I=!Q(O,f)&&R,w=Y(f),S=f?.tenantId,{tenantEmailDomain:c}=f,[m,D]=l.useState(!1),[C,k]=l.useState(!1),[P,L]=l.useState(!1),[v,V]=l.useState("off"),[U,x]=l.useState(!1),b=a=>{x(a)},{isAiCfoOpen:A,setIsAiCfoOpen:B}=Ze(),{isAiCfoAccessEnabled:Z,onAskAiCfoClick:$}=Ne({isAiCfoOpen:A,setIsAiCfoOpen:B,mobileExploreReferrer:"People"}),p=g(a=>ce(a));Xe({isDataReady:p.fetchState==="Completed"});const j=g(a=>ve(a.classState,a.classListState)),T=g(a=>Ae(a.userState,a.userRoleState,a.userListViewState,"manager")),r=g(a=>Fe(a)),t=f?.companyId;l.useEffect(()=>{m&&v===p.uiState.mode||!i||(o(J({searchText:"",sortKey:"name",sortOrder:"ascending"})),V(p.uiState.mode),D(!0),o(pe()))},[m,y,S,o,p.uiState.mode,i]),l.useEffect(()=>{t!=null&&i&&o(ue(t,I))},[t,I,i]),l.useEffect(()=>{k(e!=null&&e===!0),L(n!=null&&n===!0&&n)},[e,n]),l.useEffect(()=>{o(J({searchText:"",sortKey:"name",sortOrder:"ascending"}))},[]);const ae=()=>{k(!1),L(!1),d("../")};return s.jsxs(s.Fragment,{children:[p.fetchState==="Completed"?s.jsx($e,{analytics:we,onLoad:a=>a.trackPageLoaded(Ge.Event.members)}):null,C===!0?s.jsx(as,{closeDrawerHandler:ae,isInvitePeopleDrawerOpen:C,managersListView:T,companyPassportView:r,classListView:j,companyId:t,mode:p.uiState.mode}):null,P===!0?s.jsx(Ye,{closeDrawerHandler:ae,isEditPeopleDrawerOpen:P,managersListView:T,companyPassportView:r,classListView:j,companyId:t,mode:p.uiState.mode}):null,s.jsx(qe,{isAppContentDrawerOpen:U,handleDrawerToggle:b}),s.jsx(ns,{navigate:d,signedInUser:y,isZeni:f.isZeni,isZeniTenant:w,peopleUIState:p.uiState,companyId:t,shouldFetchClasses:I,classList:j,managersView:T,peopleView:p,onInvitePeopleClick:()=>{d("./new")},onColumnSortConfigChanged:(a,M)=>{o(J({sortKey:a,sortOrder:M}))},onRowClick:a=>{const M=`/${c}/people/${encodeURIComponent(a)}/edit`,ke=Je(h.state?.pathnameStackToGoBack,h.pathname);d(M,{state:{pathnameStackToGoBack:ke}})},onClickMenuIcon:()=>{b(!0)},isAiCfoAccessEnabled:Z,onAskAiCfoClick:$})]})}function Es(){const e=_e();return Re(e?.loggedInUserRole??[])?s.jsxs(ne,{children:[s.jsx(G,{path:"/",element:s.jsx(N,{})}),s.jsx(G,{path:"new",element:s.jsx(N,{isInvitePeopleDrawerOpen:!0})}),s.jsx(G,{path:":userId/edit",element:s.jsx(N,{isEditPeopleDrawerOpen:!0})}),s.jsx(G,{path:"*",element:s.jsx(te,{})})]}):s.jsx(ne,{children:s.jsx(G,{path:"*",element:s.jsx(te,{})})})}export{Es as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-585gCzRC.js";import _ from"./NotFoundScreen-Cucx3MKM.js";import{a as r}from"./sentry-CznkHhej.js";import{j as M,u as v,g,l as U,h as P,N as z,k as V,n as B,o as h}from"./core-BM9YDzPX.js";import{eM as F,OH as b,bn as H,bm as J,h2 as N,gy as Z}from"./zeni-epic-state-1oMHKKZA.js";import{Z as $,z as I,J as q,cp as G}from"./index-B30ioXEx.js";import"./mui-Dh_OiBGq.js";import{u as K}from"./useAskAiCfoHostNavButtonProps-DOA3k3qr.js";import{c as L}from"./useFetchSuggestedQuestionsWhenReady-CThB0klC.js";import{M as Q}from"./MobileAppDrawer-BXRnd_IS.js";import"./recharts-Bk8sahKA.js";import"./analytics-CqLahF_v.js";import"./plaid-B3TMtaAn.js";import"./dnd-DLVMxaGF.js";import"./stripe-DMRn4zHo.js";import"./lottie-piZcDgIc.js";import"./lexical-CFqhubpO.js";import"./pdf-C7LOTluM.js";import"./utils-Boc0JP6O.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]="4cf70f46-3a40-4123-8709-249b2bf04f8a",e._sentryDebugIdIdentifier="sentry-dbid-4cf70f46-3a40-4123-8709-249b2bf04f8a")}catch{}})();const W=V(function(e){const t=I.getSignedInUser(),c=e.tenantState.currentTenantId,o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:c??""},{aggregatedReportViewState:n}=b(e);return{authParams:o,isDisabled:!1,loggedInUser:t,aggregatedReport:n}},function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}})(G),X=()=>{const e=M(),t=v(),c=$(),o=g(s=>F(s)),{aggregatedReportViewState:n}=g(s=>b(s)),{tenantEmailDomain:m}=U(),p=P(),l=I.getSignedInUser();if(l==null)throw new Error("Can't access this page without signing in...");const d=r.useRef(!1),[C,S]=r.useState(!1),k=H(o?.userRole??[]),w=o?.userRole?.includes("bookkeeping_admin")??!1,y=J(l),A=k||w||y,f=r.useCallback((s,i,O)=>{p(N({fromMonth:s,toMonth:i,cacheOverride:O}))},[]);r.useEffect(()=>{n?.fetchState==="Completed"&&d.current&&(p(Z({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),d.current=!1)},[n?.fetchState]);const D=r.useCallback((s,i)=>{n!=null&&n?.fetchState==="In-Progress"||f(s,i,!0),d.current=!0},[n?.fetchState,f]),x=r.useCallback((s,i)=>{f(s,i,!1)},[f]),u=s=>{S(s)},{isAiCfoOpen:j,setIsAiCfoOpen:R}=q(),{isAiCfoAccessEnabled:T,onAskAiCfoClick:E}=K({isAiCfoOpen:j,setIsAiCfoOpen:R,mobileExploreReferrer:"Performance"});return L({isDataReady:n?.fetchState==="Completed"}),A?a.jsxs(a.Fragment,{children:[a.jsx(Q,{isAppContentDrawerOpen:C,handleDrawerToggle:u}),a.jsx(W,{navigate:e,location:t,themeState:c,currentTenant:o,signedInUser:l,tenantEmailDomain:m,onReload:D,onTimeRangeSelect:x,handleDrawerToggle:u,isAiCfoAccessEnabled:T,onAskAiCfoClick:E})]}):a.jsx(z,{to:`/${m}/dashboard`,replace:!0})};function Ie(){return a.jsxs(B,{children:[a.jsx(h,{path:"*",element:a.jsx(X,{})}),a.jsx(h,{path:"*",element:a.jsx(_,{})})]})}export{Ie as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-585gCzRC.js";import x from"./NotFoundScreen-Cucx3MKM.js";import{a as p}from"./sentry-CznkHhej.js";import{j as C,u as I,h as A,g as u,N as k,k as E,n as D,o as c}from"./core-BM9YDzPX.js";import{eM as T,Mp as g,MF as S,Cl as U,Bu as V,Ck as m,Cb as M,MU as _}from"./zeni-epic-state-1oMHKKZA.js";import{h as B,z as $,B as F,a1 as N,bF as O,aa as W}from"./index-B30ioXEx.js";import"./mui-Dh_OiBGq.js";import{R as v}from"./ReimbursementApprovalRuleDetailScreen-BUgMzKjx.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]="ecc2e39d-9391-4d8c-a533-b31a2aea86bb",e._sentryDebugIdIdentifier="sentry-dbid-ecc2e39d-9391-4d8c-a533-b31a2aea86bb")}catch{}})();const d="reimbursement-approval-rule-update",z=E(function(e){return{approvalView:g(e),remiSetupApproverViewUpdateData:S(e).remiSetupApproverViewUpdateData}},function(e,r){const{navigate:a,location:l}=r;return{onApprovalRulesEventReceived:n=>{n.endsWith(d)&&e(_(!1))},onBackClick:()=>{W(l)?a("../../"):a("../../../reimbursements/setup")},onDeleteRuleClick:n=>{e(M(n))},onEditRuleClick:n=>{n!=null?(e(m(n)),a(`./${n}/edit`)):(e(m()),a("./new"))}}})(N(O)),P=()=>{const e=C(),r=I(),a=A(),[l,n]=p.useState(!1),[f,y]=p.useState(!1),b=u(s=>s.remiSetupApproverViewState.fetchState),o=u(s=>T(s)),w=B(),i=u(s=>g(s)),h=u(s=>S(s).remiSetupApproverViewUpdateData);if(p.useEffect(()=>{h?.updateStatus.fetchState==="Completed"&&a(U())},[h]),p.useEffect(()=>{l||b!=="Not-Started"||(n(!0),a(V(!0)))},[l,b,a]),$.getSignedInUser()==null)throw Error("Can't access reimbursement approval without signing in...");p.useEffect(()=>{i.allApprovalRules.length===0&&i.fetchState==="Completed"&&(f||(y(!0),a(m())),e("./new"))},[f,i,a]);const j={events:o.companyId!=null?[`private-${o.companyId}.${d}`]:[],eventCallback:(s,q,R)=>{s.endsWith(d)&&R.onApprovalRulesEventReceived(s)}};return o.companyReimbursementInfo?.info?.isReimbursementTOSAccepted===!1?t.jsx(k,{to:"../../promo"}):o.companyReimbursementInfo?.info?.isReimbursementTOSAccepted!==!0||i.fetchState!=="Completed"&&i.fetchState!=="Error"?t.jsx(F,{fetchState:"In-Progress",style:{backgroundColor:w.colors.grey5}}):t.jsx(z,{currentTenant:o,location:r,navigate:e,...j})};function Z(){return t.jsxs(D,{children:[t.jsx(c,{path:"/",element:t.jsx(P,{})}),t.jsx(c,{path:"/new",element:t.jsx(v,{})}),t.jsx(c,{path:"/:approvalRuleId/edit",element:t.jsx(v,{})}),t.jsx(c,{path:"*",element:t.jsx(x,{})})]})}export{Z as R};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-585gCzRC.js";import{i as j,z as w,aI as h,y as E,e as p,g as F,cy as P,c as L}from"./index-B30ioXEx.js";import"./mui-Dh_OiBGq.js";import l from"./NotFoundScreen-Cucx3MKM.js";import{a as u}from"./sentry-CznkHhej.js";import{h as T,g as y,j as V,u as A,k as R,n as U,o as f}from"./core-BM9YDzPX.js";import{eM as z,Pe as C,M4 as M,Pf as k,to as Y,eZ as G,Pg as O,tm as Z}from"./zeni-epic-state-1oMHKKZA.js";import{R as x}from"./ReferralListScreen-DQ3JeDsI.js";import"./recharts-Bk8sahKA.js";import"./analytics-CqLahF_v.js";import"./plaid-B3TMtaAn.js";import"./dnd-DLVMxaGF.js";import"./stripe-DMRn4zHo.js";import"./lottie-piZcDgIc.js";import"./lexical-CFqhubpO.js";import"./pdf-C7LOTluM.js";import"./utils-Boc0JP6O.js";import"./useAskAiCfoHostNavButtonProps-DOA3k3qr.js";import"./useFetchSuggestedQuestionsWhenReady-CThB0klC.js";import"./MobileAppDrawer-BXRnd_IS.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]="76bbf725-bc34-4ec0-9c4b-604cd22803b4",e._sentryDebugIdIdentifier="sentry-dbid-76bbf725-bc34-4ec0-9c4b-604cd22803b4")}catch{}})();const q=R(function(e,t){const n=C(e);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}},function(e,t){const{navigate:n}=t,i=w.getSignedInUser();return{onDismissClick:()=>{e(k()),n("..")},onSendClick:()=>{if(i!=null){const s=[],r=[];t.inviteFormCompayData.forEach(c=>{s.push(c.companyName),r.push(c.emailIds[0])}),p.trackInviteEmailClicked("send",s,r,s.length)}e(Z())},onUpdateInviteFormLocalData:s=>{e(O({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{i!=null&&p.trackInviteEmailClicked("cancel")}}})(P),B=()=>{const e=T(),[t,n]=u.useState(!1),[i,s]=u.useState(!1),r=y(o=>z(o)),c=V(),_=A(),{useDynamicConfig:g}=j(),d=w.getSignedInUser();if(d==null)throw Error("Can't access invite referral screen without signing in...");const m=y(o=>C(o)),v=d?.firstName!=null?d.firstName:"User",{configValue:b}=g(h.zeniCardsConfig),{configValue:D}=g(h.zeniAccountsConfig),I=M(D);u.useEffect(()=>{e(k()),r?.rewardsLastViewedTime==null&&i===!1&&(e(Y()),s(!0))},[]),u.useEffect(()=>{t||m.fetchState!=="Not-Started"||(n(!0),e(G(!0)))},[m.fetchState,e]);const N=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[m.fetchState==="Completed"?a.jsx(E,{analytics:p,onLoad:o=>(S=>S.trackPageLoaded(F.Event.inviteEmailViewed))(o)}):null,a.jsx(q,{navigate:c,location:_,currentTenant:r,companyName:N,userName:v,inviteFormCompayData:m.localData,chargeCardCashbackRatePerTransaction:b.charge_card_cashback_rate_per_transaction!=null?b.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:I.maxAnnualPercentageYield})]})};function de(){const{useFeatureGate:e}=j(),{isFeatureEnabled:t}=e(L.isReferralFeatureEnabled);return a.jsxs(U,{children:[a.jsx(f,{path:"/",element:t?a.jsx(x,{}):a.jsx(l,{})}),a.jsx(f,{path:"how-it-works",element:t?a.jsx(x,{isReferralDrawerOpen:!0}):a.jsx(l,{})}),a.jsx(f,{path:"refer/*",element:t?a.jsx(B,{}):a.jsx(l,{})}),a.jsx(f,{path:"*",element:a.jsx(l,{})})]})}export{de as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-585gCzRC.js";import{a as n}from"./sentry-CznkHhej.js";import{h as u,u as m,j as p,N as g}from"./core-BM9YDzPX.js";import{z as c,B as b,t as y,e as f,g as h}from"./index-B30ioXEx.js";import{IB as I,Ij as x,IC as j}from"./zeni-epic-state-1oMHKKZA.js";import{n as w}from"./mui-Dh_OiBGq.js";import"./recharts-Bk8sahKA.js";import"./analytics-CqLahF_v.js";import"./plaid-B3TMtaAn.js";import"./dnd-DLVMxaGF.js";import"./stripe-DMRn4zHo.js";import"./lottie-piZcDgIc.js";import"./lexical-CFqhubpO.js";import"./pdf-C7LOTluM.js";import"./utils-Boc0JP6O.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]="a0faf43c-d2b2-4c75-b8b6-8411790e5c75",e._sentryDebugIdIdentifier="sentry-dbid-a0faf43c-d2b2-4c75-b8b6-8411790e5c75")}catch{}})();function $(){const e=u(),t=m(),i=p(),a=n.useRef(!1),d=c.isSignedIn(),r=t.state?.message==="logout",o=r||d;return n.useEffect(()=>{o&&!a.current&&(a.current=!0,setTimeout(()=>{try{c.clearAll(),e(I()),e(x(!1)),j(),y.reset(),f.trackLogout(h.Event.logoutSuccess),f.resetUserIdentity()}catch(l){console.error("Error during sign out:",l)}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=w.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`;export{$ as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-585gCzRC.js";import M from"./NotFoundScreen-Cucx3MKM.js";import{a as d}from"./sentry-CznkHhej.js";import{j as A,h as R,u as V,l as $,g as f,N as z,k as _,n as O,o as u}from"./core-BM9YDzPX.js";import{Z,z as w,x as b,y as q,e as E,g as Q,cz as W,m as H,ao as J,s as K}from"./index-B30ioXEx.js";import{eM as C,Ph as G,EM as v,EA as X,Fc as Y,Pi as P,Pj as aa,Ew as ea,Et as ta,pB as sa,pp as na,jW as oa,EG as ia,Pk as ra,ED as la,ER as ca,EQ as ma}from"./zeni-epic-state-1oMHKKZA.js";import{n as da}from"./mui-Dh_OiBGq.js";import{u as pa}from"./useInitialThreadRequest-jV5iOQ5Z.js";import{M as ua}from"./MobileAppDrawer-BXRnd_IS.js";import ka from"./TaskListScreen-BwJ_RgJo.js";import"./recharts-Bk8sahKA.js";import"./analytics-CqLahF_v.js";import"./plaid-B3TMtaAn.js";import"./dnd-DLVMxaGF.js";import"./stripe-DMRn4zHo.js";import"./lottie-piZcDgIc.js";import"./lexical-CFqhubpO.js";import"./pdf-C7LOTluM.js";import"./utils-Boc0JP6O.js";import"./useAskAiCfoHostNavButtonProps-DOA3k3qr.js";import"./useFetchSuggestedQuestionsWhenReady-CThB0klC.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]="b1f27c92-2112-4d8b-8404-f178cfa98a77",a._sentryDebugIdIdentifier="sentry-dbid-b1f27c92-2112-4d8b-8404-f178cfa98a77")}catch{}})();const fa=_(function(a,t){const{location:n,taskGroupId:l}=t,m=P(a,t.taskId),c=C(a),i=l!=null?aa(a.taskGroupState,l):void 0,p=w.getSignedInUser(),e=c.tenantId,r={userId:p?.userId??"",sessionId:p?.zeniSessionId??"",tenantId:e??""},k=G(a);return{taskDetailSelectorView:m,authParams:r,isNewClicked:n.state?.message==="comingFromTaskListPage",filesEndPoint:J.fileMicroServiceBaseUrl,companyName:t.currentTenant.companyName,companyId:t.currentTenant.companyId,currentUrl:`${H.appUrl}${t.location.pathname}`,tagListView:k,taskGroupName:l!=null&&i!=null&&i.isDefault===!1?i.name:void 0}},function(a,t){const{taskId:n,navigate:l,currentTenant:m,location:c,taskGroupId:i}=t,{tenantEmailDomain:p}=m;return{onSaveChangesToLocalStore:e=>{a(ma({taskDetailLocalData:e,taskId:n}))},onSaveDetailClick:()=>{a(ca(n,i))},onArchiveTaskClick:()=>{t.taskId!=null&&a(la(t.taskId))},onDismissClick:()=>{if(c.state?.message==="triggerBackClick"){const e=K(c.state?.pathnameStackToGoBack),r=e.poppedPathname??"../../dashboard";l(r,{state:{pathnameStackToGoBack:e.newStack}})}else{const e=B(p),r=b(c.state?.pathnameStackToGoBack,c.pathname);l(e,{state:{pathnameStackToGoBack:r}})}a(ra({taskId:n}))},onDeleteTaskClick:()=>{a(ia(n))},updateFilesEntity:e=>{a(oa({files:e}))},onDeleteFile:e=>{a(na(e))},onEditFileName:(e,r)=>{a(sa(e,r.split(".")[0]))},onReloadTaskDetailPage:()=>{a(v(!1,n))},onCreateTagClick:e=>{a(ta(e,n))},onDeleteTagClick:e=>{a(ea(e,n))}}})(W);function I(){const a=A(),t=R(),n=V(),l=Z(),{taskId:m,taskGroupId:c}=$(),i=f(o=>C(o)),p=pa(i?.companyId),[e,r]=d.useState(!1),[k,F]=d.useState(!1),[S,L]=d.useState(!1),[x,N]=d.useState(!1),y=f(o=>G(o)),j=f(o=>o.taskGroupViewState.fetchState);d.useEffect(()=>{k||(F(!0),t(v(!1,m)))},[k,t]),d.useEffect(()=>{S||y.fetchState==="Completed"||(L(!0),t(X()))},[S,t,y.fetchState]),d.useEffect(()=>{x||j==="Completed"||(N(!0),t(Y()))},[x,t,j]);const D=f(o=>P(o,m)),g=D.fetchState,T=w.getSignedInUser();if(T==null)throw Error("Can't access task detail page without signing in...");if(g==="Error"&&D.error?.code===400){const{tenantEmailDomain:o}=i,h=B(o),U=b(n.state?.pathnameStackToGoBack,n.pathname);return s.jsx(z,{to:h,state:{pathnameStackToGoBack:U}})}return s.jsxs(s.Fragment,{children:[g==="Completed"?s.jsx(q,{analytics:E,onLoad:o=>(h=>h.trackPageLoaded(Q.Event.taskDetailPage))(o)}):null,s.jsxs(ga,{children:[s.jsx(ua,{isAppContentDrawerOpen:e,handleDrawerToggle:o=>{r(o)}}),s.jsx(fa,{analytics:E,currentTenant:i,handleZeniLogoClick:()=>{l.toggle()},initialOpenThreadRequest:p,location:n,loggedInUser:T,navigate:a,taskGroupId:c,taskId:m,taskDetailFetchState:g})]})]})}const ga=da.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: ${a=>a.theme.colors.grey4};
|
|
9
|
-
`,B=a=>`/${a}/tasks`;function Aa(){return s.jsxs(O,{children:[s.jsx(u,{path:"/new",element:s.jsx(I,{})}),s.jsx(u,{path:"/new/:taskGroupId",element:s.jsx(I,{})}),s.jsx(u,{path:"/group/:taskGroupId",element:s.jsx(ka,{})}),s.jsx(u,{path:"/:taskId",element:s.jsx(I,{})}),s.jsx(u,{path:"*",element:s.jsx(M,{})})]})}export{Aa as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-585gCzRC.js";import i from"./NotFoundScreen-Cucx3MKM.js";import{T as r}from"./TransactionDetailScreen-D1icJoqW.js";import"./sentry-CznkHhej.js";import{n as d,o as e}from"./core-BM9YDzPX.js";import"./zeni-epic-state-1oMHKKZA.js";import"./recharts-Bk8sahKA.js";import"./index-B30ioXEx.js";import"./mui-Dh_OiBGq.js";import"./analytics-CqLahF_v.js";import"./plaid-B3TMtaAn.js";import"./dnd-DLVMxaGF.js";import"./stripe-DMRn4zHo.js";import"./lottie-piZcDgIc.js";import"./lexical-CFqhubpO.js";import"./pdf-C7LOTluM.js";import"./utils-Boc0JP6O.js";import"./useAskAiCfoHostNavButtonProps-DOA3k3qr.js";import"./useFetchSuggestedQuestionsWhenReady-CThB0klC.js";import"./decodeURIComponentSafe-a784xZQy.js";import"./routePaths-C_5Vo_Nm.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new o.Error().stack;n&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[n]="256f287b-7a3d-4d6d-890e-a8cb9db8b86d",o._sentryDebugIdIdentifier="sentry-dbid-256f287b-7a3d-4d6d-890e-a8cb9db8b86d")}catch{}})();function q(){return t.jsxs(d,{children:[t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId",element:t.jsx(r,{})}),t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId/page-not-found",element:t.jsx(i,{})}),t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId/vendor/create",element:t.jsx(r,{})}),t.jsx(e,{path:"/*",element:t.jsx(r,{})})]})}export{q as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./liveblocks-585gCzRC.js";import{a as f}from"./sentry-CznkHhej.js";import{q as u,h,g as b,N as y}from"./core-BM9YDzPX.js";import{IA as I,eN as w,yV as x}from"./zeni-epic-state-1oMHKKZA.js";import{z as l,B as j,G as S,H as D}from"./index-B30ioXEx.js";import{n as c}from"./mui-Dh_OiBGq.js";import"./recharts-Bk8sahKA.js";import"./analytics-CqLahF_v.js";import"./plaid-B3TMtaAn.js";import"./dnd-DLVMxaGF.js";import"./stripe-DMRn4zHo.js";import"./lottie-piZcDgIc.js";import"./lexical-CFqhubpO.js";import"./pdf-C7LOTluM.js";import"./utils-Boc0JP6O.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]="a4e459fb-d87b-4c5e-ad13-41073fbe9c65",e._sentryDebugIdIdentifier="sentry-dbid-a4e459fb-d87b-4c5e-ad13-41073fbe9c65")}catch{}})();const R=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",g=e.get("profileId")??"",[n,p]=f.useState(!1),a=h(),i=b(m=>I(m)),r=l.getSignedInUser(),d=l.getSignedInUserTenantWithId(s);if(r==null||d==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,d?.tenantId),f.useEffect(()=>{n||(p(!0),a(x(t,g,s)))},[n,a]),i.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(j,{fetchState:"In-Progress"}))},E=c.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: 100vh;
|
|
5
|
-
flex-direction: row;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
9
|
-
`,_=c(D.LargeRegular)`
|
|
10
|
-
display: flex;
|
|
11
|
-
color: ${S.important};
|
|
12
|
-
`;export{R as default};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import{j as n}from"./liveblocks-585gCzRC.js";import{j as W,u as J,h as U,l as G,g as w,k as Y,N as te,n as _e,o as x}from"./core-BM9YDzPX.js";import{eM as M,No as Ve,Np as $e,cN as ae,ci as Ze,fb as Ge,w6 as He,Aj as We,w0 as Pn,Nq as Tn,Nr as Bn,w3 as On,wa as xe,vZ as Fn,vW as Rn,Mb as ue,Ns as Ln,DD as Un,Jh as Mn,DF as zn,k3 as Be,Nt as Nn,pB as Je,pp as Ye,jW as Ke,jZ as Oe,Ji as Fe,Jj as _n,Nu as Vn,jY as $n,kj as Zn,jN as Gn,ij as Hn,ii as Wn,Nv as Jn,Nw as ke,Dk as Yn,Nx as Kn,Ny as qn,M4 as De,Nz as Re,NA as Qn,DQ as Xn,MO as et,Bd as qe,s2 as Qe,NB as nt,DN as tt,NC as Xe,cJ as Ae,DU as en,fc as at,eR as nn,eT as Ie,DS as ot,B7 as st,DK as it,ND as tn,NE as an,Dm as on,Dw as Le,NF as rt,Dq as ct,NG as lt,MD as dt,DV as ut,bu as pt,bC as mt,ct as ht,bD as gt,br as ft,Ig as yt}from"./zeni-epic-state-1oMHKKZA.js";import{S as oe,i as $,z as D,c as E,h as R,B as se,bL as Ct,T as Se,K as V,F as K,s as sn,al as xt,aa as Ue,e as F,bM as kt,ao as be,bN as wt,y as pe,bO as Dt,g as je,aI as H,bP as At,N as It,J as rn,a7 as St,bQ as Me,bR as bt,x as ne,bS as jt,bT as vt,bU as Et,bV as Pt,a4 as Tt,o as Bt}from"./index-B30ioXEx.js";import{n as L,D as q,S as Q}from"./mui-Dh_OiBGq.js";import de from"./NotFoundScreen-Cucx3MKM.js";import{S as ze}from"./SetupPagesScreen-DmAnODHL.js";import{F as cn}from"./FeaturePreviewScreen-DIglws95.js";import{a as p}from"./sentry-CznkHhej.js";import{M as me}from"./MobileAppDrawer-BXRnd_IS.js";import{A as Ot,D as Ft,V as Rt}from"./DomesticWireDetailScreen-8rq_3RAs.js";import{A as Lt}from"./AddressScreen-CPMiTr10.js";import{u as ln}from"./useAskAiCfoHostNavButtonProps-DOA3k3qr.js";import{c as dn}from"./useFetchSuggestedQuestionsWhenReady-CThB0klC.js";import{Z as Ut}from"./ZeniAccountStatementScreen-DzrkGkJa.js";import"./recharts-Bk8sahKA.js";import"./analytics-CqLahF_v.js";import"./plaid-B3TMtaAn.js";import"./dnd-DLVMxaGF.js";import"./stripe-DMRn4zHo.js";import"./lottie-piZcDgIc.js";import"./lexical-CFqhubpO.js";import"./pdf-C7LOTluM.js";import"./utils-Boc0JP6O.js";import"./analyticsHelper-DWU-XMyN.js";import"./routePaths-C_5Vo_Nm.js";import"./BusinessVerificationPageScreen-BGcxJWGX.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]="f408d8e3-1cd1-4698-9242-b0044d19843d",e._sentryDebugIdIdentifier="sentry-dbid-f408d8e3-1cd1-4698-9242-b0044d19843d")}catch{}})();const Mt=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
|
-
`,zt=Y(function(e){return{autoTransferRuleView:Ve(e),downloadAccountDetailEndPoint:`${Se}/account_details`,transferLimit:5e5,depositAccountListView:We(e.depositAccountState,e.depositAccountListState)}},function(e,t){const{navigate:s,handleDrawerToggle:a}=t;return{onBackClick:()=>{s("..")},onClickMenuIcon:()=>{a(!0)},onFetchAutoTransferRules:o=>{e(He(o))},onCreateRule:()=>{e(Rn())},onUpdateRule:o=>{e(xe(o))},onDeleteClick:o=>{e(Fn(o))},onPauseClick:o=>{e(xe(o,!0,!1))},onResumeClick:o=>{e(xe(o,!1,!0))},onActivityClick:(o,i)=>{e(On(o,i))},onUpdateRuleLocalData:o=>{e(Bn(o))},clearRuleLocalData:()=>{e(Tn())},onEditClick:o=>{s(`./${o}/edit`)},onEditDrawerClose:()=>{s("../../",{relative:"path"})},onReviewClick:()=>{e(Pn())}}})(Ct);function Ne({isEditDrawerOpen:e}){const t=W(),s=J(),a=U(),o=oe(),{ruleId:i,tenantEmailDomain:l}=G(),{useFeatureGate:c}=$(),[d,m]=p.useState(!1),[C,r]=p.useState(!1),u=w(k=>M(k)),g=w(k=>Ve(k)),h=g?.fetchState??"Not-Started",S=w(k=>$e(k)),f=u?.companyId??D.getSignedInUserTenant(l)?.companyId,b=ae(o?.loggedInUserRoleMap)||Ze(o?.loggedInUserRoleMap),{isFeatureEnabled:A}=c(E.isTreasuryEnabled),y=u?.company!=null&&Ge(u.company),I=A&&y,P=D.getSignedInUser(),T=u.tenantId,B={userId:P?.userId??"",sessionId:P?.zeniSessionId??"",tenantId:T??""};p.useEffect(()=>{!C&&h==="Not-Started"&&f&&(r(!0),a(He(!0)))},[C,h,f,a]);const j=k=>{m(k)},O=R();return g?.fetchState!=="Completed"?n.jsx(se,{fetchState:"In-Progress",style:{backgroundColor:O.colors.grey5}}):n.jsxs(Mt,{children:[n.jsx(me,{isAppContentDrawerOpen:d,handleDrawerToggle:j}),n.jsx(zt,{navigate:t,location:s,currentTenant:u,handleDrawerToggle:j,isEditDrawerOpen:e,editingRuleId:i,authParams:B,includeTreasuryOption:I,hasAdminLevelAccess:b,zeniAccountsConfigDetail:S})]})}const Nt={overlayWidth:new K(100,100,58)},_t=({vendorId:e,isDrawerOpen:t,closeDrawerHandler:s})=>{const a=U(),o=R(),i=V();if(D.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return n.jsx(q,{onClose:()=>{s(!0),a(ue())},anchor:"right",open:t,PaperProps:{style:{width:Nt.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(Vt,{onClick:l=>l.stopPropagation(),children:n.jsx(Ot,{vendorIdParam:e,accountContext:"express-pay"})})})},Vt=L(Q)`
|
|
10
|
-
display: flex;
|
|
11
|
-
min-height: 100%;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
`,$t={overlayWidth:new K(100,100,58)},Zt=({isDrawerOpen:e,closeDrawerHandler:t})=>{const s=U(),a=R(),o=V();if(D.getSignedInUser()==null)throw Error("Can't access address page without signing in...");return n.jsx(q,{onClose:()=>{t(!0),s(ue())},anchor:"right",open:e,PaperProps:{style:{width:$t.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(Gt,{onClick:i=>i.stopPropagation(),children:n.jsx(Lt,{accountContext:"express-pay",addressTypeParam:"vendor_address"})})})},Gt=L(Q)`
|
|
14
|
-
display: flex;
|
|
15
|
-
min-height: 100%;
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
`,Ht={overlayWidth:new K(100,100,58)},Wt=({vendorId:e,isDrawerOpen:t,closeDrawerHandler:s})=>{const a=U(),o=R(),i=V();if(D.getSignedInUser()==null)throw Error("Can't access ach account page without signing in...");return n.jsx(q,{onClose:()=>{s(!0),a(ue())},anchor:"right",open:t,PaperProps:{style:{width:Ht.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(Jt,{onClick:l=>l.stopPropagation(),children:n.jsx(Ft,{vendorIdParam:e,accountContext:"express-pay"})})})},Jt=L(Q)`
|
|
18
|
-
display: flex;
|
|
19
|
-
min-height: 100%;
|
|
20
|
-
flex-direction: column;
|
|
21
|
-
`,Yt=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
|
-
`,Kt=Y(function(e,t){const s=M(e),a=D.getSignedInUser(),o=s.tenantId,i={userId:a?.userId??"",sessionId:a?.zeniSessionId??"",tenantId:o??""},l=t.expressPayDetails,c=e.entityAutoCompleteState.autoCompleteText.common,d=Mn(e,"common");return{expressPayDetails:l,fileProps:{authParams:i,filesEndPoint:`${be.fileMicroServiceBaseUrl}`},vendorSearchAutoCompleteData:{autoCompleteText:c,entityAutoCompleteView:d},analytics:t.analytics}},function(e,t){const{navigate:s}=t;return{onSaveVendor:a=>{e(Wn(a,void 0,void 0,!0))},saveVendorDetailLocalData:(a,o)=>{e(Oe({vendorId:o,localData:a}))},saveExpressPayLocalData:a=>{e(Hn({localData:a}))},onVendorSelected:a=>{a!=null&&e(Gn(a,!1))},updateSelectedVendorForCreate:a=>{e(Zn(a))},initializeVendorAddress:()=>{e($n())},resetVendorSaveStatus:a=>{e(Vn({vendorId:a}))},vendorSearchAutoCompleteActions:{onAutoCompleteInputChange:(a,o)=>{a.trim().length>=2?e(_n({searchString:a,entityType:o,searchOrigin:"common"})):a.trim().length===0&&e(Fe("common"))},onCancelAutoComplete:()=>{e(Fe("common"))}},chooseNewVendor:a=>{e(Oe({localData:{vendorName:a}}))},onClickAddAccount:a=>{a.method.toLowerCase().indexOf("ach")!==-1?s("./add-ach",{relative:"path"}):a.method.toLowerCase().indexOf("wire")!==-1&&a.method.toLowerCase().indexOf("domestic")!==-1&&s("./add-wire",{relative:"path"})},updateFilesEntity:a=>{e(Ke({files:a}))},onDeleteFile:a=>{e(Ye(a))},onEditFileName:(a,o)=>{e(Je(a,o.split(".")[0]))},onBackClick:a=>{a!=null&&e(Be(a)),e(Be()),e(Nn()),e(ue()),s("../",{relative:"path"})},onSchedulePayment:()=>{e(zn())}}})(kt);function ce({isAddACHDrawerOpen:e,isAddWireDrawerOpen:t,isAddAddressDrawerOpen:s}){const a=W(),o=J(),i=U(),[l,c]=p.useState(!1),{tenantEmailDomain:d}=G(),m=oe(),C=R(),r=w(v=>v.expressPayState.fetchState),u=w(v=>M(v)),g=w(v=>Ln(v)),h=g.expressPayLocalData?.vendorId,S=u.companyId??D.getSignedInUserTenant(d)?.companyId,[f,b]=p.useState(!1),[A,y]=p.useState(!1),[I,P]=p.useState(!1),T=sn(o.state?.pathnameStackToGoBack),{poppedPathname:B}=T,j=B?.split("/"),O=j?.[j.length-1];p.useEffect(()=>{e===!0?b(!0):(b(!1),document.body.style.overflow="auto")},[e]),p.useEffect(()=>{t===!0?y(!0):(y(!1),document.body.style.overflow="auto")},[t]),p.useEffect(()=>{s===!0?P(!0):(P(!1),document.body.style.overflow="auto")},[s]),p.useEffect(()=>{r==="Not-Started"&&i(Un(!0,!0))},[r,i]);const k=xt(g.vendorViewDetails.bankAccountCreationState?.fetchState);if(p.useEffect(()=>{k==="In-Progress"&&g.vendorViewDetails.bankAccountCreationState?.fetchState==="Completed"&&N()},[k,g.vendorViewDetails.bankAccountCreationState?.fetchState]),D.getSignedInUser()==null)throw Error("Can't access express pay page without signing in...");const z=v=>{c(v)},N=()=>{b(!1),y(!1),a("../",{relative:"path"})};return g.fetchState==="Completed"?n.jsxs(Yt,{children:[Ue(o)?n.jsx(me,{isAppContentDrawerOpen:l,handleDrawerToggle:z}):null,f===!0?n.jsx(_t,{vendorId:h,closeDrawerHandler:N,isDrawerOpen:f}):null,A===!0?n.jsx(Wt,{vendorId:h,closeDrawerHandler:N,isDrawerOpen:A}):null,I===!0?n.jsx(Zt,{closeDrawerHandler:N,isDrawerOpen:I}):null,n.jsx(Rt,{vendorId:h,isExpressPayPage:!0}),n.jsx(Kt,{navigate:a,location:o,companyId:S,accountId:O,analytics:F,currentTenant:u,vendorId:h,roleMap:m?.loggedInUserRoleMap,isSettings:Ue(o),expressPayDetails:g,onClickMenuIcon:()=>{z(!0)}})]}):n.jsx(se,{fetchState:"In-Progress",style:{backgroundColor:C.colors.grey5}})}const qt={overlayWidth:new K(100,100,58)},Qt=({authParams:e,downloadAccountDetailEndPoint:t,isAccountInfoDrawerOpen:s,zeniBankAccountDetail:a,closeDrawerHandler:o})=>{const i=R(),l=V(),c=w(r=>$e(r)),d=w(r=>M(r));if(D.getSignedInUser()==null)throw Error("Can't access Account detail page without signing in...");const m=()=>{o(!0)},C={depositAccount:a,onDismissClick:m,zeniAccountsConfigDetail:c,authParams:e,downloadAccountDetailEndPoint:t,currentTenant:d};return n.jsx(q,{anchor:"right",open:s,PaperProps:{style:{width:qt.overlayWidth.valuePercentage(l),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>m(),children:n.jsx(Xt,{onClick:r=>r.stopPropagation(),children:n.jsx(wt,{...C})})})},Xt=L(Q)`
|
|
30
|
-
display: flex;
|
|
31
|
-
min-height: 100%;
|
|
32
|
-
flex-direction: column;
|
|
33
|
-
`,ea={overlayWidth:new K(100,100,58)},un=({isCheckDepositDrawerOpen:e,closeDrawerHandler:t})=>{const s=R(),a=V(),o=U(),i=w(r=>M(r)),l=D.getSignedInUser(),c=i.tenantId,d={userId:l?.userId??"",sessionId:l?.zeniSessionId??"",tenantId:c??""};if(l==null)throw Error("Can't access check deposit page without signing in...");const m=w(r=>Jn(r)),C={analytics:F,checkDeposit:m,filesEndPoint:`${be.fileMicroServiceBaseUrl}`,authParams:d,onSaveChangesToLocalStore:r=>{o(Kn(r))},updateFilesEntity:r=>{o(Ke({files:r}))},onAnotherTransferClick:()=>{o(ke())},onDeleteFile:r=>{o(Ye(r))},onEditFileName:(r,u)=>{o(Je(r,u.split(".")[0]))},onCheckDpositClick:()=>{o(Yn())},onDismissClick:()=>{t(!0),o(ke())}};return n.jsxs(n.Fragment,{children:[n.jsx(pe,{analytics:F,onLoad:r=>(u=>u.trackPageLoaded(je.Event.accountsDepositCheckFormViewed))(r)}),n.jsx(q,{anchor:"right",open:e,PaperProps:{style:{width:ea.overlayWidth.valuePercentage(a),boxShadow:"none",zIndex:8}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.75,cursor:"pointer"}}},onClose:(r,u)=>(u==="backdropClick"||u==="escapeKeyDown")&&(t(!0),void o(ke())),children:n.jsx(na,{onClick:r=>r.stopPropagation(),children:n.jsx(Dt,{...C})})})]})},na=L(Q)`
|
|
34
|
-
display: flex;
|
|
35
|
-
min-height: 100%;
|
|
36
|
-
flex-direction: column;
|
|
37
|
-
`,ta={overlayWidth:new K(100,100,58)},aa=Y(function(e,t){const s=t.currentTenant?.companyId;return{plaidConnectionDetails:et(e,s,"zeni_accounts","external_account").plaidConnectionDetails,depositAccountListView:We(e.depositAccountState,e.depositAccountListState)}},function(e,t){return{onReviewClick:()=>e(tt()),clearReviewTransferDetail:()=>e(nt()),onFetchLinkTokenClick:s=>{e(Qe("external_account",s))},onEstablishConnectionClick:s=>{e(qe(s,t.currentTenant?.companyId,"external_account",void 0,"link_external_account"))}}})(At),pn=({isTransferDrawerOpen:e,authParams:t,downloadAccountDetailEndPoint:s,closeDrawerHandler:a,zeniAccountsConfig:o})=>{const i=w(y=>qn(y)),l=w(y=>M(y)),c=R(),d=V(),m=U(),{accountId:C}=G(),[r,u]=p.useState("achTransfer"),[g,h]=p.useState(!1);if(D.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const{useDynamicConfig:S}=$(),{configValue:f}=S(H.zeniAccountsConfig),b=De(f),A=()=>{a(!0),m(Re())};return p.useEffect(()=>{i.reviewTransferDetail.fetchState==="Completed"&&h(!0)},[h,i.reviewTransferDetail.fetchState]),n.jsxs(n.Fragment,{children:[n.jsx(pe,{analytics:F,onLoad:y=>(I=>I.trackPageLoaded(je.Event.zeniAccountsTransferFormViewed))(y)}),n.jsx(q,{onClose:()=>{(r==="achTransfer"&&g===!1||r==="achTransfer"&&g&&i.fetchState==="Completed")&&A()},anchor:"right",open:e,PaperProps:{style:{width:ta.overlayWidth.valuePercentage(d),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:c.colors.black,opacity:.75,cursor:"pointer"}}},children:n.jsx(oa,{onClick:y=>y.stopPropagation(),children:n.jsx(aa,{analytics:F,transferDetails:i,authParams:t,downloadAccountDetailEndPoint:s,onTransferClick:()=>{F.trackTransferBetweenAccountsFormClicked("Transfer",i.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning?"Review Split Transfer":"Review Transfer",i.transferDetailLocalData.transferFrom?.label,i.transferDetailLocalData.transferTo?.label,i.transferDetailLocalData.amount.amount,i.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning,i.reviewTransferDetail.reviewTransferMoney.transferSchedules.length,i.transferDetailLocalData.transferFrom?.accType==="paymentAccount"&&i.transferDetailLocalData.transferTo?.accType==="depositAccount"&&o.zeniAccountsConfigDetail.depositProductConfig.depositProducts?.[0].range?.[1]!=null&&i.transferDetailLocalData.amount.amount>o.zeniAccountsConfigDetail.depositProductConfig.depositProducts[0].range[1]),m(Xn(C))},onDismissClick:A,onSaveChangesToLocalStore:y=>{m(Qn(y))},onAnotherTransferClick:()=>{h(!1),m(Re())},currentTenant:l,zeniAccountsConfigDetail:o,currentDrawerContent:r,setCurrentDrawerContent:u,showReviewContent:g,setShowReviewContent:h,onBackClick:()=>{},maxInsuredAmount:b.maxInsuredAmount})})})]})},oa=L(Q)`
|
|
38
|
-
display: flex;
|
|
39
|
-
min-height: 100%;
|
|
40
|
-
flex-direction: column;
|
|
41
|
-
`,sa=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=Y(function(e,t){return{zeniAccountListView:Xe(e),isExpressPayEnabled:t.isExpressPayEnabled,analytics:t.analytics}},function(e,t){const{navigate:s,currentTenant:a,location:o,companyId:i,handleDrawerToggle:l,analytics:c,isBillPayEnabled:d,isDebitCardFeatureEnabled:m}=t,{tenantEmailDomain:C}=a;return{onZeniAccountClick:(r,u)=>{c.trackAccountsListPageClicked("Accounts Row Item Click",u,"active");const g=ra(C,r),h=ne(o.state?.pathnameStackToGoBack,o.pathname);s(g,{state:{pathnameStackToGoBack:h}})},onSettingsClick:()=>{c.trackAccountsListPageClicked("Settings Icon"),s("setup")},onReloadTransactions:()=>{e(en(!1))},handleMoveMoneyOptionSelection:(r,u)=>{let g="page-not-found";r==="sendMoney"&&(g=fn(C)),r==="payBill"?g=mn(a,d,m):r==="transfer"?(g=hn(C),u!=null&&e(tn(u))):r==="checkDeposit"&&(g=gn(C));const h=ne(o.state?.pathnameStackToGoBack,o.pathname);s(g,{state:{pathnameStackToGoBack:h}})},unlinkPaymentAccount:(r,u)=>{c.trackAccountsListPageClicked("Unlink Account",u),e(it(r))},onFetchLinkTokenClick:(r,u)=>{e(Qe("external_account",r,u))},onUpdatePaymentAccountStatus:(r,u,g)=>{e(st(r,u,"zeni_accounts","external_account",g))},onEstablishConnectionClick:r=>{e(qe(r,i,"external_account",void 0,"link_external_account"))},onCreateCheckingClick:r=>{e(ot(r))},onClickMenuIcon:()=>{l(!0)},onTreasuryGetStartedClick:()=>{s("../../treasury/promo")},onAutoTransferClick:()=>{s("./auto-transfer")}}})(bt);function we({isTransferDrawerOpen:e,isCheckDepositDrawerOpen:t}){const s=J(),a=W(),o=U(),i=V(),{tenantEmailDomain:l}=G(),{useDynamicConfig:c,useFeatureGate:d}=$(),m=R(),{configValue:C}=c(H.zeniAccountsConfig),{isFeatureEnabled:r}=d(E.isTreasuryEnabled),{isFeatureEnabled:u}=d(E.isDebitCardFeatureEnabled),{isFeatureEnabled:g}=d(E.isAutoTransferRuleEnabled),{isFeatureEnabled:h}=d(E.isCheckingCommentingEnabled),S=De(C),f=w(_=>M(_)),b=f.companyId??D.getSignedInUserTenant(l)?.companyId,{configValue:A}=c(H.expressPayConfig),y=A.is_enable_all_tenants===!0||A.tenant_ids!=null&&A.tenant_ids.includes(f.tenantId),[I,P]=p.useState(!1),[T,B]=p.useState(!1),[j,O]=p.useState(!1),k=w(_=>Xe(_)),z=k.fetchState,N=!!f.companyZeniAccountInfo?.info?.isZeniAccountEnabled,v=oe(),Z=!!f.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,ie=!!f.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,he=ae(v?.loggedInUserRoleMap),ge=Ae(v?.loggedInUserRoleMap),fe=!!f.companyBillPayInfo?.info?.isBillPayEnabled,re=D.getSignedInUser(),X={userId:re?.userId??"",sessionId:re?.zeniSessionId??"",tenantId:f.tenantId??""},ee=`${Se}/account_details`,{areTenantIdsInSync:ve}=It();p.useEffect(()=>{!I&&ve&&(P(!0),o(en(!1)))},[I,o,z,ve]),p.useEffect(()=>{e!=null&&e===!0?B(!0):(B(!1),document.body.style.overflow="auto")},[e]),p.useEffect(()=>{O(t!=null&&t===!0)},[t]);const Ee=()=>{B(!1),a("..")},[yn,Cn]=p.useState(!1),Pe=_=>{Cn(_)},{isAiCfoOpen:xn,setIsAiCfoOpen:kn}=rn(),{isAiCfoAccessEnabled:wn,onAskAiCfoClick:Dn}=ln({isAiCfoOpen:xn,setIsAiCfoOpen:kn,mobileExploreReferrer:"Checking Accounts"});dn({isDataReady:z==="Completed"});const An=f.company!=null&&Ge(f.company),ye=(r&&An)===!0&&!ie,[In,Sn]=p.useState(!1),Ce=w(_=>_.treasurySetupViewState.treasuryFundsDetails),bn=Ce.fundsDetails,jn=St(bn);p.useEffect(()=>{ye!==!0||In||Ce?.fetchStatus.fetchState!=="Not-Started"||(Sn(!0),o(at()))},[Ce.fetchStatus,o]);const vn=nn(f),En=Ie(u,f);return vn===!0&&En!==!0?n.jsx(cn,{}):N?n.jsxs(n.Fragment,{children:[k.fetchState==="Completed"&&T===!1&&j===!1?n.jsx(pe,{analytics:F,onLoad:_=>(Te=>{Te.trackAccountsListPageViewed(k.depositAccountsSelectorView.depositAccounts.length,k.externalAccountsSelectorView.paymentAccounts.length,Me(k.summary?.totalBalance.available.amount??0),Me(k.summary?.totalInterest.available.amount??0),k.zeniAccountsConfig.zeniAccountsConfigDetail.annualPercentageYield),ye&&Te.trackTreasuryPromoView("Checking Promo Banner")})(_)}):null,T===!0?n.jsx(pn,{closeDrawerHandler:Ee,isTransferDrawerOpen:T,zeniAccountsConfig:k.zeniAccountsConfig,authParams:X,downloadAccountDetailEndPoint:ee}):null,j===!0?n.jsx(un,{closeDrawerHandler:Ee,isCheckDepositDrawerOpen:j}):null,n.jsxs(sa,{windowSize:i,children:[n.jsx(me,{isAppContentDrawerOpen:yn,handleDrawerToggle:Pe}),n.jsx(ia,{zeniBankListView:k,navigate:a,currentTenant:f,location:s,companyId:b,analytics:F,maxInsuredAmount:S.maxInsuredAmount,isExpressPayEnabled:y,isBillPayEnabled:fe,isCheckingCommentingEnabled:h,isDebitCardFeatureEnabled:u,isAutoTransferRuleEnabled:g,handleDrawerToggle:Pe,showTreasuryPromo:ye,treasuryYieldPercentage:jn,treasuryInsuredAmount:5e5,isAiCfoAccessEnabled:wn,onAskAiCfoClick:Dn})]})]}):Z&&he?n.jsx(te,{to:"../setup"}):f.companyZeniAccountInfo?.info&&!Z&&ge?n.jsx(te,{to:"../promo",state:s.state}):n.jsx(se,{fetchState:"In-Progress",style:{backgroundColor:m.colors.grey5}})}const mn=(e,t,s)=>{const a=Ie(s,e),{tenantEmailDomain:o}=e;return a===!0||t===!1?`/${o}/bills`:`/${o}/bill/new`},ra=(e,t)=>`/${e}/checking/${t}`,hn=(e,t)=>t==null?`/${e}/checking/transfer`:`/${e}/checking/${t}/transfer`,gn=(e,t)=>t==null?`/${e}/checking/check-deposit`:`/${e}/checking/${t}/check-deposit`,fn=e=>`/${e}/checking/express-pay`,ca=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
|
-
`,la=Y(function(e,t){const{currentTenant:s}=t,a=an(e,t.accountId),o=D.getSignedInUser(),i=e.tenantState.currentTenantId,l={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:i??""},c=a.accountDetail?.id??"";return{currentTenantCompanyName:s.companyName??"",authParams:l,downloadEndPoint:`${be.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${c}`,zeniAccountDetail:a,isExpressPayEnabled:t.isExpressPayEnabled,fetchState:a.fetchState}},function(e,t){const{navigate:s,currentTenant:a,location:o,accountId:i}=t,{tenantEmailDomain:l}=a;return{handleMoveMoneyOptionSelection:(c,d)=>{let m="page-not-found";c==="sendMoney"?m=fn(l):c==="payBill"?m=mn(a,t.isBillPayEnabled,t.isDebitCardFeatureEnabled):c==="transfer"?(m=hn(l,i),d!=null&&e(tn(d))):c==="checkDeposit"?(m=gn(l,i),d!=null&&e(rt(d))):c==="accountStatement"&&(m=pa(l,i));const C=ne(o.state?.pathnameStackToGoBack,o.pathname);s(m,{state:{pathnameStackToGoBack:C}})},onViewAllTransactionClick:()=>{const c=ua(l,i),d=ne(o.state?.pathnameStackToGoBack,o.pathname);s(c,{state:{pathnameStackToGoBack:d}})},onAccountDetailClick:()=>{const c=da(l,i),d=ne(o.state?.pathnameStackToGoBack,o.pathname);s(c,{state:{pathnameStackToGoBack:d}})},onEditNameClick:c=>{e(Le(i,"editName",c))},onReloadZeniAccountDetailPage:()=>{e(on(i,!1))},onCloseAccountClick:()=>{e(Le(i,"closeAccount",""))},onBackClick:()=>{s("../",{relative:"path"})},onAutoTransferClick:()=>{s("../auto-transfer")}}})(jt);function le({isTransferDrawerOpen:e,isCheckDepositDrawerOpen:t,isAccountInfoDrawerOpen:s}){const a=J(),o=W(),i=U(),l=V(),{tenantEmailDomain:c,accountId:d}=G(),{useDynamicConfig:m}=$(),{useFeatureGate:C}=$(),{isFeatureEnabled:r}=C(E.isDebitCardFeatureEnabled),{isFeatureEnabled:u}=C(E.isAutoTransferRuleEnabled),{isFeatureEnabled:g}=C(E.isCheckingCommentingEnabled),h=w(ee=>M(ee)),{configValue:S}=m(H.expressPayConfig),f=S.is_enable_all_tenants===!0||S.tenant_ids!=null&&S.tenant_ids.includes(h.tenantId),b=!!h.companyBillPayInfo?.info?.isBillPayEnabled,A=D.getSignedInUser(),y=h.companyId??D.getSignedInUserTenant(c)?.companyId,I={userId:A?.userId??"",sessionId:A?.zeniSessionId??"",tenantId:h.tenantId??""},P=`${Se}/account_details`,[T,B]=p.useState(!1),[j,O]=p.useState(!1),[k,z]=p.useState(!1),[N,v]=p.useState(!1),Z=w(ee=>an(ee,d??"")),ie=Z.fetchState,{isAiCfoOpen:he,setIsAiCfoOpen:ge}=rn(),{isAiCfoAccessEnabled:fe,onAskAiCfoClick:re}=ln({isAiCfoOpen:he,setIsAiCfoOpen:ge,mobileExploreReferrer:"Checking Account Detail"});dn({isDataReady:ie==="Completed"}),p.useEffect(()=>{T||(i(on(d??"",!1)),B(!0))},[T,i,ie]),p.useEffect(()=>{v(s!=null&&s===!0)},[s]),p.useEffect(()=>{e!=null&&e===!0?O(!0):(O(!1),document.body.style.overflow="auto")},[e]),p.useEffect(()=>{z(t!=null&&t===!0)},[t]);const X=()=>{v(!1),o("..")};return n.jsxs(n.Fragment,{children:[N===!0&&Z.accountDetail!=null?n.jsx(Qt,{authParams:I,downloadAccountDetailEndPoint:P,closeDrawerHandler:X,isAccountInfoDrawerOpen:N,zeniBankAccountDetail:Z.accountDetail}):null,j===!0?n.jsx(pn,{closeDrawerHandler:X,isTransferDrawerOpen:j,zeniAccountsConfig:Z.zeniAccountsConfig,authParams:I,downloadAccountDetailEndPoint:P}):null,k===!0?n.jsx(un,{closeDrawerHandler:X,isCheckDepositDrawerOpen:k}):null,n.jsx(ca,{windowSize:l,children:n.jsx(la,{navigate:o,currentTenant:h,location:a,companyId:y,isDebitCardFeatureEnabled:r,accountId:d??"",isBillPayEnabled:b,isCheckingCommentingEnabled:g,isExpressPayEnabled:f,isAutoTransferRuleEnabled:u,isAiCfoAccessEnabled:fe,onAskAiCfoClick:re})})]})}const da=(e,t)=>`/${e}/checking/${t}/account-info`,ua=(e,t)=>`/${e}/checking/${t}/transactions`,pa=(e,t)=>`/${e}/checking/${t}/statements`,ma=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 ha(){const e=W(),t=U(),s=V(),{accountId:a}=G(),{useFeatureGate:o}=$(),{isFeatureEnabled:i}=o(E.isCheckingCommentingEnabled),[l,c]=p.useState(!1);p.useEffect(()=>{l||(c(!0),t(ct(a??"",!1)))},[l,t]);const d=w(m=>lt(m,a??""));if(D.getSignedInUser()==null)throw Error("Can't access address page without signing in...");return n.jsx(ma,{windowSize:s,children:n.jsx(vt,{transactionListView:d,depositAccountId:a??"",isCheckingCommentingEnabled:i,onBackClick:()=>{e("../")}})})}const ga=Y(function(e,t){const{companyId:s}=t;return{zeniAccountSetupView:dt(e,s),meetingUrl:"https://meetings.hubspot.com/niharn/demo-accounts?embed=true"}},function(e,t){const{navigate:s,companyId:a}=t;return{onSetupButtonClick:()=>{F.trackAccountsPromoPageClicked("Setup Accounts"),e(ut(a))},onBackClick:()=>{s("../..",{relative:"path"})},onSetupZeniAccountSuccess:()=>{s("../setup",{relative:"path"})}}})(Pt),fa=()=>{const e=W(),t=J(),{tenantEmailDomain:s}=G(),{useDynamicConfig:a}=$(),o=R(),[i,l]=p.useState(!1),[c,d]=p.useState(!1),m=w(y=>M(y)),{configValue:C}=a(H.zeniAccountsConfig),r=De(C);p.useEffect(()=>{c===!1&&t.state?.message==="activation"&&d(!0)},[t.state]);const u=D.getSignedInUserTenant(s)?.companyId??m.companyId,g=D.getSignedInUser(),h=!!m.companyZeniAccountInfo?.info?.isZeniAccountTOSAccepted,S=y=>{l(y)};if(g==null)throw Error("Can't access Zeni account promo page without signing in...");const f=oe(),b=ae(f?.loggedInUserRoleMap),A=Ae(f?.loggedInUserRoleMap);if(h&&b)return n.jsx(te,{to:"../../checking/setup"});if(m.company?.companyZeniAccountInfo&&(!h&&b||A)){if(t.state?.message==="activation"){const y=sn(t.state?.pathnameStackToGoBack);e(t.pathname,{state:{...t.state,message:void 0,pathnameStackToGoBack:y.newStack}})}return n.jsxs(n.Fragment,{children:[n.jsx(Et,{showConfetti:c}),n.jsx(pe,{analytics:F,onLoad:y=>(I=>I.trackPageLoaded(je.Event.accountsPromoPageViewed))(y)}),n.jsx(me,{isAppContentDrawerOpen:i,handleDrawerToggle:S}),n.jsx(ga,{analytics:F,navigate:e,companyId:u,onClickMenuIcon:()=>{S(!0)},maxAnnualPercentageYield:r.maxAnnualPercentageYield,maxInsuredAmount:r.maxInsuredAmount,exampleBankBalance:3e6})]})}return n.jsx(se,{fetchState:"In-Progress",style:{backgroundColor:o.colors.grey5}})};function Ga(){const e=J(),t=w(z=>M(z)),s=R(),{useFeatureGate:a,useDynamicConfig:o}=$(),i=oe(),l=ae(i?.loggedInUserRoleMap),c=Ae(i?.loggedInUserRoleMap),d=!!t.company?.companyZeniAccountInfo.isZeniAccountEnabled,m=!!t.company?.companyZeniAccountInfo.isZeniAccountTOSAccepted,{isFeatureEnabled:C}=a(E.isChargeCardFeatureEnabled),{isFeatureEnabled:r}=a(E.isDebitCardFeatureEnabled),u=nn(t),g=Ie(r,t),h=t?.userRole!=null&&pt(t?.userRole),S=(t?.company==null||t.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!h)&&mt(i?.loggedInUserRoleMap),f=ht(i?.loggedInUserRoleMap),b=(t?.company==null||t.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!h)&>(i?.loggedInUserRoleMap),{isFeatureEnabled:A}=a(E.isDepositAccountsFeatureEnabled),y=A&&!h,{configValue:I}=o(H.expressPayConfig),P=I.is_enable_all_tenants===!0||I.tenant_ids!=null&&I.tenant_ids.includes(t.tenantId),{isFeatureEnabled:T}=a(E.isAutoTransferRuleEnabled),B=Tt(t,C,r)&&!h&&ft(i?.loggedInUserRoleMap),j=yt(i?.loggedInUserRoleMap),O=y&&ae(i?.loggedInUserRoleMap),k=O||Ze(i?.loggedInUserRoleMap);return n.jsxs(_e,{children:[n.jsx(x,{path:"setup",element:n.jsx(ze,{isBillPayAdminLevelAccess:S,isUserHasOnlyBillPayAccess:f,isReimbursementAdminLevelAccess:b,isZeniAccountAdminLevelAccess:O,isChargeCardAdminLevelAccess:B,isUserHasOnlyCardAccess:j,productType:"zeni_accounts",type:"setup"})}),n.jsx(x,{path:"verification",element:n.jsx(ze,{isBillPayAdminLevelAccess:S,isUserHasOnlyBillPayAccess:f,isReimbursementAdminLevelAccess:b,isZeniAccountAdminLevelAccess:O,isChargeCardAdminLevelAccess:B,isUserHasOnlyCardAccess:j,productType:"zeni_accounts",type:"verification"})}),T?n.jsxs(n.Fragment,{children:[n.jsx(x,{path:"auto-transfer",element:n.jsx(Ne,{})}),k?n.jsx(x,{path:"auto-transfer/:ruleId/edit",element:n.jsx(Ne,{isEditDrawerOpen:!0})}):null]}):n.jsx(x,{path:"auto-transfer",element:n.jsx(de,{})}),P&&l?n.jsxs(n.Fragment,{children:[n.jsx(x,{path:"express-pay",element:n.jsx(ce,{})}),n.jsx(x,{path:"express-pay/add-ach",element:n.jsx(ce,{isAddACHDrawerOpen:!0})}),n.jsx(x,{path:"express-pay/add-wire/add-address",element:n.jsx(ce,{isAddAddressDrawerOpen:!0})}),n.jsx(x,{path:"express-pay/add-wire",element:n.jsx(ce,{isAddWireDrawerOpen:!0})})]}):n.jsx(x,{path:"express-pay",element:n.jsx(de,{})}),n.jsx(x,{path:"promo",element:n.jsx(fa,{})}),u&&!g?n.jsx(x,{path:"/*",element:n.jsx(cn,{})}):d?n.jsxs(n.Fragment,{children:[n.jsx(x,{path:"/",element:n.jsx(we,{})}),n.jsx(x,{path:"transfer",element:n.jsx(we,{isTransferDrawerOpen:!0})}),n.jsx(x,{path:"check-deposit",element:n.jsx(we,{isCheckDepositDrawerOpen:!0})}),n.jsx(x,{path:":accountId/*",element:n.jsx(ya,{})}),n.jsx(x,{path:"*",element:n.jsx(de,{})})]}):m&&l?n.jsx(x,{path:"*",element:n.jsx(te,{to:"../setup"})}):t.company?.companyZeniAccountInfo&&c?n.jsx(x,{path:"*",element:n.jsx(te,{to:"../promo",state:e.state})}):n.jsx(x,{path:"*",element:n.jsx(se,{fetchState:"In-Progress",style:{backgroundColor:s.colors.grey5,boxShadow:`0px 2px ${Bt.sp1} ${s.colors.dropShadowNormal}`}})})]})}function ya(){return n.jsxs(_e,{children:[n.jsx(x,{path:"/",element:n.jsx(le,{})}),n.jsx(x,{path:"account-info",element:n.jsx(le,{isAccountInfoDrawerOpen:!0})}),n.jsx(x,{path:"transfer",element:n.jsx(le,{isTransferDrawerOpen:!0})}),n.jsx(x,{path:"check-deposit",element:n.jsx(le,{isCheckDepositDrawerOpen:!0})}),n.jsx(x,{path:"transactions",element:n.jsx(ha,{})}),n.jsx(x,{path:"statements",element:n.jsx(Ut,{})}),n.jsx(x,{path:"*",element:n.jsx(de,{})})]})}export{Ga as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{q as n}from"./index-B30ioXEx.js";import"./mui-Dh_OiBGq.js";import"./sentry-CznkHhej.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]="1682cf60-c2a4-420f-825b-d342f939f7ea",e._sentryDebugIdIdentifier="sentry-dbid-1682cf60-c2a4-420f-825b-d342f939f7ea")}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 c}from"./sentry-CznkHhej.js";import{K as p,a as b,x as m,Q as u}from"./index-B30ioXEx.js";import"./mui-Dh_OiBGq.js";import{b as y}from"./useFetchSuggestedQuestionsWhenReady-CThB0klC.js";import{j as k,u as g,l as h}from"./core-BM9YDzPX.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="d62534b9-5284-45ce-8a5a-d5b1052e30e4",e._sentryDebugIdIdentifier="sentry-dbid-d62534b9-5284-45ce-8a5a-d5b1052e30e4")}catch{}})();function x(e){const{isAiCfoOpen:a,setIsAiCfoOpen:t,mobileExploreReferrer:n}=e,r=k(),o=g(),{tenantEmailDomain:s}=h(),f=p(),i=u(f),l=b();return{isAiCfoAccessEnabled:y()&&l&&!a,onAskAiCfoClick:c.useCallback(()=>{if(s!=null)if(i){const d=m(o.state?.pathnameStackToGoBack,o.pathname);r(`/${s}/ai-cfo/explore`,{state:{pathnameStackToGoBack:d,referrer:n}})}else t(!0)},[i,o.pathname,o.state,n,r,t,s])}}export{x as u};
|