@zeniai/web-app-ui 5.3.34-qa → 5.3.35-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/{AccountMappingScreen-B3gERMwb.js → AccountMappingScreen-Cstuqkm7.js} +1 -1
- package/dist/assets/AddressRoutes-BzPUFFtF.js +1 -0
- package/dist/assets/AddressScreen-QJAFiZG_.js +9 -0
- package/dist/assets/{AiCfoScreen-DMq_5n3A.js → AiCfoScreen-DPeqmWFb.js} +1 -1
- package/dist/assets/{AppDrawer-CmIwyYxA.js → AppDrawer-BlydUldz.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-iNqdFuHr.js → BillPayApprovalRoutes-CkTXMOBL.js} +1 -1
- package/dist/assets/{BillPayRoutes-CxVV20eB.js → BillPayRoutes-DUJINxXM.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-CcdlEk-F.js → BusinessVerificationPageScreen-CcoSDt9H.js} +2 -2
- package/dist/assets/{CardsAiCfoScreen-CY8kuFBn.js → CardsAiCfoScreen-u0VpRiFW.js} +2 -2
- package/dist/assets/{ChargeCardRoutes-2l1CO_ZB.js → ChargeCardRoutes-BETe7cXe.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-D0iwvjvi.js → CompanyPassportScreen-C6qEEMwh.js} +1 -1
- package/dist/assets/ConnectionAuthScreen-DA45ryKf.js +11 -0
- package/dist/assets/CustomerOnboardingAuthScreen-CXysDBns.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-DNGip8nR.js → CustomerOnboardingRoutes-D3ibVMNE.js} +3 -3
- package/dist/assets/{DashboardRoutes-WausKTZN.js → DashboardRoutes-DqBJNROk.js} +3 -3
- package/dist/assets/{DefaultTenantHome-DYJZWIVJ.js → DefaultTenantHome-3q80hQe7.js} +1 -1
- package/dist/assets/DomesticWireDetailScreen-nU_rLvRW.js +18 -0
- package/dist/assets/{DrawerScreen-BGFLKjZ4.js → DrawerScreen-J3wIMzJi.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-dIhIGS0K.js → EntityDetailRoutes-Bs0Wld5V.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-2mQsPUHf.js → ExpenseAutomationRoutes-BAPJl7fK.js} +1 -1
- package/dist/assets/FeaturePreviewScreen-BhXxEutM.js +1 -0
- package/dist/assets/{HubSpotOAuthCallbackScreen-BAmofeTw.js → HubSpotOAuthCallbackScreen-DZPl-16d.js} +1 -1
- package/dist/assets/{InboxNotificationsProvider-C5ikUDhJ.js → InboxNotificationsProvider-B8bw_q0G.js} +1 -1
- package/dist/assets/{InvoicingRoutes-CCMsRJbo.js → InvoicingRoutes-5JvdRY8J.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-CtU6Muc9.js → MagicLinkRoutes-CsQvAWAd.js} +5 -5
- package/dist/assets/MagicLinkSignInScreen-C6mdv4Cd.js +12 -0
- package/dist/assets/{MobileAppDrawer-CRL9dcOy.js → MobileAppDrawer-BAR65ADr.js} +1 -1
- package/dist/assets/NotFoundScreen-BkQQJnCX.js +1 -0
- package/dist/assets/{NotificationRoutes-YdUDNMEO.js → NotificationRoutes-DWTYgcPC.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-dseY-frv.js → OAuthConsentScreen-rE7QFgmv.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-fo_acE-Y.js → PandLWithForecastRoutes-BJdBoqtG.js} +1 -1
- package/dist/assets/{PaymentLinkScreen-Dmzw63Ry.js → PaymentLinkScreen-C-EPLfkH.js} +8 -8
- package/dist/assets/{PeopleRoutes-DYjiVo9L.js → PeopleRoutes-B9KZfXlk.js} +3 -3
- package/dist/assets/{PerformanceRoutes-Blu7VWI0.js → PerformanceRoutes-nuCcT1KG.js} +1 -1
- package/dist/assets/{Preview-DGkUqHej.js → Preview-Cx8KRaHy.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-B3L0biVT.js → QBOConnectionScreen-C-_Bc9aD.js} +23 -23
- package/dist/assets/{ReimbursementApprovalRoutes-BPS61Q6U.js → ReimbursementApprovalRoutes-DUDrQYUH.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-B4_P7371.js → ReimbursementApprovalRuleDetailScreen-TislSzXU.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-JKmd-RDh.js → ReimbursementRoutes-CThyOTqb.js} +1 -1
- package/dist/assets/{ReportsRoutes-CXTwauUR.js → ReportsRoutes-BUPOvhS1.js} +1 -1
- package/dist/assets/RewardsRoutes-DWovQii4.js +1 -0
- package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-DiGMBAm5.js → ScheduleDetailsPrepaidExpensesScreen-VjNep7ac.js} +1 -1
- package/dist/assets/ScreenRoutes-BBziyvzo.js +2 -0
- package/dist/assets/{SettingsRoutes-BuKUGcQL.js → SettingsRoutes-D0ZHopo2.js} +6 -6
- package/dist/assets/{SetupPagesScreen-C5BRh3XH.js → SetupPagesScreen-D464KhP2.js} +1 -1
- package/dist/assets/SignInScreen-I08IFPEY.js +1 -0
- package/dist/assets/SignOutScreen-qomjx9ip.js +9 -0
- package/dist/assets/{TaskListScreen-DY7UxmTl.js → TaskListScreen-DLU0EqVo.js} +1 -1
- package/dist/assets/{TaskRoutes-D9jm3Vx3.js → TaskRoutes-CzMzk7IA.js} +1 -1
- package/dist/assets/TransactionDetailRoutes-eMTqZPTp.js +1 -0
- package/dist/assets/TransactionDetailScreen-D_QMd7J1.js +5 -0
- package/dist/assets/{TransactionListRoutes-DlF9D1gA.js → TransactionListRoutes-BkyScEnr.js} +1 -1
- package/dist/assets/{TreasuryRoutes-B-vADZSw.js → TreasuryRoutes-DvNRUs_f.js} +1 -1
- package/dist/assets/{VendorsRoutes-BB7CHJb3.js → VendorsRoutes-D7mCPP8E.js} +7 -7
- package/dist/assets/{WiseConfirmationScreen-Un25bELv.js → WiseConfirmationScreen-D3NoMVAj.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-C4VQUVN_.js → ZeniAccountRoutes-Bf98cPGA.js} +9 -9
- package/dist/assets/{ZeniAccountStatementScreen-CX0ZvWif.js → ZeniAccountStatementScreen-CbAb9son.js} +1 -1
- package/dist/assets/{accountMappingHelper-CJL-kxIR.js → accountMappingHelper-DiD6kuzS.js} +1 -1
- package/dist/assets/analytics-qutbJJuo.js +68 -0
- package/dist/assets/{analyticsHelper-C7PuiJR9.js → analyticsHelper-Cioa7dQ6.js} +1 -1
- package/dist/assets/{core-CqflqGv9.js → core-cL-h_S3o.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-Bw5_joHN.js → decodeURIComponentSafe-DiZsTtnQ.js} +1 -1
- package/dist/assets/{dnd-OUjwZlfC.js → dnd-CvWVwn67.js} +1 -1
- package/dist/assets/{empty-BaQDcuze.js → empty-DSAj_JMj.js} +1 -1
- package/dist/assets/{empty-D2Qv8UjS.js → empty-Djzj0dHk.js} +1 -1
- package/dist/assets/{emptyVideoElement-CRjToyxO.js → emptyVideoElement-CeA_CN58.js} +1 -1
- package/dist/assets/{epic-6r2G7Ljw.js → epic-B0n7joLL.js} +1 -1
- package/dist/assets/{expenseAutomationHelper-BTi1SBkX.js → expenseAutomationHelper-DBhDJoc-.js} +1 -1
- package/dist/assets/{getLocaleForTenant-frknbVW9.js → getLocaleForTenant-DALQ36LB.js} +1 -1
- package/dist/assets/{index-BWWz0Sm7.js → index-B-uE4TWW.js} +1 -1
- package/dist/assets/{index-DjGdOTXi.js → index-BMzYYdV-.js} +1 -1
- package/dist/assets/{index-C-1mKpRP.js → index-Bme2F7Z-.js} +1 -1
- package/dist/assets/{index-CNoRQUH7.js → index-Bn5lBj-O.js} +1 -1
- package/dist/assets/{index-6X2hJC9C.js → index-D4ChxRFU.js} +6983 -6983
- package/dist/assets/{index-DFz0hCrW.js → index-DqoiIKM_.js} +1 -1
- package/dist/assets/{index-i9f1kxGC.js → index-RGg62zU1.js} +1 -1
- package/dist/assets/{index-B8Cs9uSY.js → index-YXuAyHdu.js} +2 -2
- package/dist/assets/{lexical-BHqkUsiS.js → lexical-fOKQwNUZ.js} +1 -1
- package/dist/assets/{liveblocks-B0EpRifM.js → liveblocks-DVe3Eena.js} +1 -1
- package/dist/assets/{lottie-x3DIllPk.js → lottie-MSaCuPby.js} +1 -1
- package/dist/assets/{mui-Splhybhe.js → mui-a6BeA4JD.js} +1 -1
- package/dist/assets/{pathToGoBack-LnL-ovI6.js → pathToGoBack-g9S0YvmK.js} +1 -1
- package/dist/assets/{pdf-BZfLFbU_.js → pdf-CurGQkyb.js} +3 -3
- package/dist/assets/{pdf-lib-CpxtL5pi.js → pdf-lib-D4BCwttf.js} +1 -1
- package/dist/assets/{plaid-D5Rs2Xbn.js → plaid-C5X1WR-a.js} +1 -1
- package/dist/assets/{pusher-9E3ynLMf.js → pusher-BAEnXzer.js} +1 -1
- package/dist/assets/{react-_LAOK0QT.js → react-BM46mFnY.js} +1 -1
- package/dist/assets/{react-Cdqh8MuG.js → react-BYcgSbTE.js} +1 -1
- package/dist/assets/{react-BHgTygpo.js → react-CtJLNNcb.js} +1 -1
- package/dist/assets/{react-BWMsOlMm.js → react-D5GF-zB3.js} +1 -1
- package/dist/assets/{react-bYlWEvlR.js → react-DFRbAeBc.js} +1 -1
- package/dist/assets/{react-DPAdkb-c.js → react-dqICH6I-.js} +1 -1
- package/dist/assets/{recharts-C-DOhwH-.js → recharts-BPDamcen.js} +1 -1
- package/dist/assets/{routePaths-vIHY-V28.js → routePaths-Dn5fef1Z.js} +1 -1
- package/dist/assets/{sentry-BefEASz6.js → sentry-DqMiDAOv.js} +1 -1
- package/dist/assets/{url-DGJ2AapT.js → url-Bog1JfMa.js} +1 -1
- package/dist/assets/{url-DWw1bUBN.js → url-DLaGwo5M.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-DCkiFTBp.js → useAiCfoDashboardSuggestedQuestionsChips-CkMy0l60.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-0oF2VYBt.js +1 -0
- package/dist/assets/{useChargeCardPusherEvents-CextOSJa.js → useChargeCardPusherEvents-B27Oy8LI.js} +1 -1
- package/dist/assets/{useDeviceId-C-MNChOb.js → useDeviceId-u80nXpjK.js} +1 -1
- package/dist/assets/{useEmailConnectResultRefresh-BNpn3T_H.js → useEmailConnectResultRefresh-CLBpIk_t.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-Ocoxr05G.js → useInitialThreadRequest-T-M769mk.js} +1 -1
- package/dist/assets/{useTaskManagerAccess-BTngy8S4.js → useTaskManagerAccess-BtoWhuis.js} +1 -1
- package/dist/assets/{utils-JmZUGXv-.js → utils-jUBXEI4l.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-C1SRvhe2.js → withTransactionSidePanel-CghfULxy.js} +1 -1
- package/dist/assets/{zeni-epic-state-Sf5HhdfR.js → zeni-epic-state-DMwHYs-L.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/AddressRoutes-ofjUZj67.js +0 -1
- package/dist/assets/AddressScreen-2Ll0sIt2.js +0 -9
- package/dist/assets/ConnectionAuthScreen-DISa934v.js +0 -11
- package/dist/assets/CustomerOnboardingAuthScreen-endMBMm7.js +0 -1
- package/dist/assets/DomesticWireDetailScreen-ClypaxS0.js +0 -18
- package/dist/assets/FeaturePreviewScreen-Bw_lynVj.js +0 -1
- package/dist/assets/MagicLinkSignInScreen-Dmx8QuEo.js +0 -12
- package/dist/assets/NotFoundScreen-yHXIfv3c.js +0 -1
- package/dist/assets/RewardsRoutes-CrvPTVJy.js +0 -1
- package/dist/assets/ScreenRoutes-B9tAK3Rz.js +0 -2
- package/dist/assets/SignInScreen-Boe9M9a6.js +0 -1
- package/dist/assets/SignOutScreen-u27_Ol9O.js +0 -9
- package/dist/assets/TransactionDetailRoutes-D704rpNa.js +0 -1
- package/dist/assets/TransactionDetailScreen-3kh7GhKV.js +0 -5
- package/dist/assets/analytics-Bg9sHj4I.js +0 -68
- package/dist/assets/useAskAiCfoHostNavButtonProps-_aV90QuU.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-D4ChxRFU.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-DqMiDAOv.js"><link rel="modulepreload" crossorigin href="/assets/core-cL-h_S3o.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-DMwHYs-L.js"><link rel="modulepreload" crossorigin href="/assets/mui-a6BeA4JD.js"><link rel="modulepreload" crossorigin href="/assets/analytics-qutbJJuo.js"><link rel="modulepreload" crossorigin href="/assets/utils-jUBXEI4l.js"><link rel="stylesheet" crossorigin href="/assets/index-BhC2LNQw.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.3.
|
|
3
|
+
"version": "5.3.35-dev",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/**/*"
|
|
6
6
|
],
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"@sentry/core": "^9.42.1",
|
|
29
29
|
"@sentry/react": "^9.42.1",
|
|
30
30
|
"@stripe/stripe-js": "^4.4.0",
|
|
31
|
-
"@zeniai/client-analytics": "2.0.
|
|
31
|
+
"@zeniai/client-analytics": "2.0.89",
|
|
32
32
|
"@zeniai/client-epic-state": "5.2.37",
|
|
33
|
-
"@zeniai/web-components": "4.3.
|
|
33
|
+
"@zeniai/web-components": "4.3.71",
|
|
34
34
|
"color": "3.1.3",
|
|
35
35
|
"crypto-js": "4.2.0",
|
|
36
36
|
"dnd-core": "^16.0.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-B0EpRifM.js";import{A as o}from"./AddressScreen-2Ll0sIt2.js";import i from"./NotFoundScreen-yHXIfv3c.js";import"./sentry-BefEASz6.js";import{n as s,o as r}from"./core-CqflqGv9.js";import"./zeni-epic-state-Sf5HhdfR.js";import"./recharts-C-DOhwH-.js";import"./index-6X2hJC9C.js";import"./mui-Splhybhe.js";import"./analytics-Bg9sHj4I.js";import"./plaid-D5Rs2Xbn.js";import"./dnd-OUjwZlfC.js";import"./stripe-cKAAJElX.js";import"./lottie-x3DIllPk.js";import"./lexical-BHqkUsiS.js";import"./pdf-BZfLFbU_.js";import"./utils-JmZUGXv-.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new t.Error().stack;d&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[d]="31d0e0e8-dcf1-419d-b2be-6dc359df28c9",t._sentryDebugIdIdentifier="sentry-dbid-31d0e0e8-dcf1-419d-b2be-6dc359df28c9")}catch{}})();function _(){return e.jsxs(s,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(o,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(o,{})}),e.jsx(r,{path:"*",element:e.jsx(i,{})})]})}export{_ as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./liveblocks-B0EpRifM.js";import{a as h}from"./sentry-BefEASz6.js";import{h as T,u as P,g as E,i as j,j as B,l as D}from"./core-CqflqGv9.js";import{a1 as M,E as U,z as $,V as L,a7 as K,a8 as z,j as C,S,a3 as F,Y as b,a4 as G}from"./index-6X2hJC9C.js";import{UC as _,io as R,fE as V,UD as N,c8 as O,UE as q,mG as H}from"./zeni-epic-state-Sf5HhdfR.js";import{n as Y}from"./mui-Splhybhe.js";import J from"./NotFoundScreen-yHXIfv3c.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="28cc3768-b104-40a7-909c-f73f11638ecb",e._sentryDebugIdIdentifier="sentry-dbid-28cc3768-b104-40a7-909c-f73f11638ecb")}catch{}})();const Q=Y.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
|
-
`,W=D((function(e,s){const{addressId:o,isSubPage:i,addressType:c}=s,l=V(e),a=s.roleMap!=null&&N(s.roleMap),n=i||c==="user_address"||O(l?.userRole??[])||a?void 0:"readonly";if(o==null){const t=q(c,e);return{addressToEdit:t?.addressToCreate,loadingState:t?.status?.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:n,isSubPage:i,dontShowSaveConfirmationPopup:s.dontShowSaveConfirmation}}const d=_(e,o);return{addressToEdit:d.address,loadingState:d.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:n}}),(function(e,s){const{navigate:o,location:i,addressType:c}=s,l=a=>{if(a==="express-pay")o("../express-pay/add-wire");else{const n=i.state,d=G(n?.pathnameStackToGoBack);let t=d.poppedPathname??v();const u=n?.queryParams;if(u){const g=new URLSearchParams(u).toString();g&&(t=`${t}?${g}`)}o(t,{state:{pathnameStackToGoBack:d.newStack}})}};return{onSubmitHandler:a=>{const n=X(a);e(H({addressType:c,addressToCreate:n})),C?.trackSaveAddressClicked(S.Event.saveAddressClicked,{street:a.street.addressString,city:a.city,state:a.state,country:a.country.selectedOption??"",postalCode:a.postalCode,suite:a.suite,secondaryInfo:a.secondaryInfo}),l(s.bankAccountContext)},onCancel:()=>{l(s.bankAccountContext)}}}))(F);function re({isSubPage:e,hideAddressSubTitle:s=!1,hideAddressBackButton:o=!1,dontShowSaveConfirmation:i,accountContext:c,addressTypeParam:l}){const a=T(),n=P(),d=E(),{addressId:t,addressType:u}=j(),g=M(),I=U(),k=$.getSignedInUser(),[f,w]=h.useState(t==null),p=B((m=>t!=null?_(m,t).fetchState:"Not-Started")),x=L();if(k==null)throw Error("Can't access address page without signing in...");const A=m=>m.trackPageLoaded(t!=null?S.Event.editAddress:S.Event.addAddress),y=l??u;return h.useEffect((()=>{f||t==null||(w(!0),n(R(t,!1)))}),[f,t,n]),y==null||y.match(/(user_address|company_address|company_registered_address|vendor_address|officer_([1-9]|10)_address|invoicing_customer_billing_address|invoicing_subscription_shipping_address|invoicing_business_address)$/g)?!f&&p==="Not-Started"||f&&p==="In-Progress"?r.jsx(K,{fetchState:p,style:{backgroundColor:I.colors.grey5}}):t!=null&&p==="Error"?(a(`${v(1)}/new`,{replace:!0}),r.jsx(r.Fragment,{})):r.jsxs(r.Fragment,{children:[r.jsx(z,{analytics:C,onLoad:A}),r.jsx(Q,{windowSize:g,children:r.jsx(W,{location:d,navigate:a,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:s,addressId:t,addressType:y,dontShowSaveConfirmation:i,bankAccountContext:c,roleMap:x?.loggedInUserRoleMap})})]}):r.jsx(J,{})}const v=(e=2)=>{let s="../";for(let o=0;o<e;o++)s=`${s}../`;return s},X=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng});export{re as A,X as t};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{j as I}from"./liveblocks-B0EpRifM.js";import{a as o}from"./sentry-BefEASz6.js";import{u as F,h as P,g as z,j as C,N as w}from"./core-CqflqGv9.js";import{T9 as H,fE as q,gk as G,pR as Q,gL as A,gj as V,gh as B,Tz as J,gg as O}from"./zeni-epic-state-Sf5HhdfR.js";import{u as K,z as E,L as D,G as M,I as W}from"./index-6X2hJC9C.js";import{n as X}from"./mui-Splhybhe.js";import{P as h,a as _}from"./AccountMappingScreen-B3gERMwb.js";import{t as Y}from"./getLocaleForTenant-frknbVW9.js";import{g as Z,Q as ee}from"./QBOConnectionScreen-B3L0biVT.js";import"./recharts-C-DOhwH-.js";import"./analytics-Bg9sHj4I.js";import"./plaid-D5Rs2Xbn.js";import"./dnd-OUjwZlfC.js";import"./stripe-cKAAJElX.js";import"./lottie-x3DIllPk.js";import"./lexical-BHqkUsiS.js";import"./pdf-BZfLFbU_.js";import"./utils-JmZUGXv-.js";import"./MobileAppDrawer-CRL9dcOy.js";import"./InboxNotificationsProvider-C5ikUDhJ.js";import"./useTaskManagerAccess-BTngy8S4.js";import"./accountMappingHelper-CJL-kxIR.js";import"./empty-D2Qv8UjS.js";import"./pdf-lib-CpxtL5pi.js";import"./index-CNoRQUH7.js";import"./url-DGJ2AapT.js";import"./index-C-1mKpRP.js";import"./decodeURIComponentSafe-Bw5_joHN.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]="6a3ee706-7d63-469c-a725-15d64769aa7e",t._sentryDebugIdIdentifier="sentry-dbid-6a3ee706-7d63-469c-a725-15d64769aa7e")}catch{}})();const te=X.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 ${W.sp1} ${t.theme.colors.dropShadowNormal}`};
|
|
11
|
-
`;function we(){const t=F(),i=P(),v=z(),{setLoading:c,clearAllLoading:m}=K(),S=o.useRef(!1),x=o.useRef(!1),N=o.useRef(!1),p=o.useRef(!1),{code:L,realmId:U,state:$}=Z(v.search),f=L!==""&&U!==""&&$!=="";f&&(N.current=!0);const j=sessionStorage.getItem(h),u=j===_.pending,R=j===_.ready,y=C((s=>H(s))),e=C((s=>q(s))),n=C((s=>s.tenantState.fetchState)),r=C((s=>s.tenantState.activeTenantFetchState.fetchState)),a=E.getSignedInUser(),g=E.getActiveTenantForUser()?.tenantId,l=e?.externalConnections?.fetchState,d=e?.externalConnections?.saveConnectionState,T=e.externalConnections?.accounting[0]?.isValid;o.useLayoutEffect((()=>{c(D.CONNECTION_AUTH)}),[c]),o.useEffect((()=>{S.current||a==null||g==null||(S.current=!0,n==="Completed"||r!=="Not-Started"&&r!=="Error"||(c(D.TENANT_FETCHING),t(G(a.userId,g))))}),[S,n,c]),o.useEffect((()=>{e.tenantId==null&&!x.current&&a!=null&&(x.current=!0,!(g==null||g!=null&&(r==="Completed"||r==="Error"))||n!=="Not-Started"&&n!=="Error"||t(Q(a.userId)))}),[x,n,r]),o.useEffect((()=>{a==null||e?.tenantId==null||e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||l==="In-Progress"||d!=="Error"||(c(D.CONNECTION_AUTH),t(A(a.userId,e.tenantId)))}),[d]),o.useEffect((()=>{n!=="Completed"&&r!=="Completed"||a==null||e?.tenantId==null||(t(V(e.tenantId)),E.saveActiveTenantDomainForUser(e.tenantEmailDomain),B(a?.userId,a?.zeniSessionId,e.tenantId),M.updateAppLocaleID(Y(J(e))),e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||l==="In-Progress"||a==null||e==null||t(A(a.userId,e.tenantId)))}),[n,r,l]),o.useEffect((()=>{y.tenantsCoreDetailsInOrder.length>0&&n==="Completed"&&E.saveSignedInUserTenants(y.tenantsCoreDetailsInOrder)}),[y.tenantsCoreDetailsInOrder.length,n]);const b=e==null||n!=="Completed"&&r!=="Completed"||l!=="Completed";if(o.useEffect((()=>{n!=="Completed"&&n!=="Error"||r!=="Completed"&&r!=="Error"||l!=="Completed"&&l!=="Error"||m()}),[n,r,l]),o.useEffect((()=>{u&&d==="In-Progress"&&(p.current=!0)}),[u,d]),o.useEffect((()=>{if(!u||b)return;const s=e.tenantEmailDomain!=null?`/${e.tenantEmailDomain}/settings/accounting`:"/";return p.current&&d==="Completed"?(sessionStorage.setItem(h,_.ready),m(),void i(s,{replace:!0})):p.current&&d==="Error"?(sessionStorage.removeItem(h),t(O({messageSection:"accounting_projects_qbo_reconnect_failed",messageText:"failed",type:"error"})),m(),void i(s,{replace:!0})):void(f||N.current||p.current||T!==!0||(sessionStorage.removeItem(h),t(O({messageSection:"accounting_projects_qbo_reconnect_failed",messageText:"failed",type:"error"})),m(),i(s,{replace:!0})))}),[u,b,d,f,T,e.tenantEmailDomain,m,t,i]),b)return null;if(f||T!==!0)return I.jsx(te,{children:I.jsx(ee,{})});if(u)return null;const k=e.tenantEmailDomain!=null?`/${e.tenantEmailDomain}/settings/accounting`:"/";return R?I.jsx(w,{to:k,replace:!0}):I.jsx(w,{to:"/",replace:!0})}export{we as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-B0EpRifM.js";import{z as a}from"./index-6X2hJC9C.js";import{g as n}from"./QBOConnectionScreen-B3L0biVT.js";import"./sentry-BefEASz6.js";import{g as p,N as s}from"./core-CqflqGv9.js";import"./zeni-epic-state-Sf5HhdfR.js";import"./recharts-C-DOhwH-.js";import"./mui-Splhybhe.js";import"./analytics-Bg9sHj4I.js";import"./plaid-D5Rs2Xbn.js";import"./dnd-OUjwZlfC.js";import"./stripe-cKAAJElX.js";import"./lottie-x3DIllPk.js";import"./lexical-BHqkUsiS.js";import"./pdf-BZfLFbU_.js";import"./utils-JmZUGXv-.js";import"./empty-D2Qv8UjS.js";import"./pdf-lib-CpxtL5pi.js";import"./index-CNoRQUH7.js";import"./url-DGJ2AapT.js";import"./index-C-1mKpRP.js";import"./decodeURIComponentSafe-Bw5_joHN.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]="c18cd95e-770d-4ff7-92bf-3374948ea538",t._sentryDebugIdIdentifier="sentry-dbid-c18cd95e-770d-4ff7-92bf-3374948ea538")}catch{}})();const U=()=>{const t=p(),{code:o,realmId:r,state:e}=n(t.search),d=a.getSignedInUser()?.userId??"";if(f(o,r,e,d)===!0){const m=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return i.jsx(s,{to:m})}return i.jsx(s,{to:"../../"})},f=(t,o,r,e)=>t!=""&&o!=""&&r!=""&&e!=null&&e!="";export{U as default,f as hasValidParams};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-B0EpRifM.js";import{h as w,g as C,j as h,l as E,i as V}from"./core-CqflqGv9.js";import{Y6 as k,Yd as _,gF as M,gE as W,gD as K,kO as X,W5 as q,uc as J,fE as B,XF as D,kM as F,Y7 as S,Yg as T,kK as G,l5 as j}from"./zeni-epic-state-Sf5HhdfR.js";import{bM as L,a1 as N,O as R,z as O,E as U,a4 as p,y as v,a7 as Y,bN as Q,I as Z,bO as ee,p as te}from"./index-6X2hJC9C.js";import{n as z}from"./mui-Splhybhe.js";import"./sentry-BefEASz6.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]="2ed6e8cd-e28e-4e63-adb4-cf0993570313",e._sentryDebugIdIdentifier="sentry-dbid-2ed6e8cd-e28e-4e63-adb4-cf0993570313")}catch{}})();const ne=E(null,(function(e,t){return{onSaveVendor:n=>{e(X(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(q("common")),n!=null&&e(J(n))},onGetOtp:n=>{e(K(n,"BillPayVendor"))},onResendOtp:n=>{e(W(n,"BillPayVendor"))},onVerifyOtp:(n,a)=>{e(M(n,a,"BillPayVendor"))},onVerifyOtpSuccess:(n,a,o)=>{e(_(n,a,o))}}}))(L);function H({vendorId:e,billId:t,isExpressPayPage:n}){const a=w(),o=C(),s=h((c=>k(c,e)));return l.jsx(ne,{location:o,navigate:a,vendorId:e,billId:t,vendorViewDetails:s,isExpressPayPage:n??!1})}const ae=z.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`,oe=E((function(e,t){const{vendorId:n,billId:a}=t,o=k(e,n),s=D(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,a);return{billId:a,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}}),(function(e,t){const{navigate:n,location:a,vendorId:o}=t;return{onFetchBankName:s=>{e(j(s))},onSaveHandler:s=>{e(G(t.bankAccountContext,s,"standard",o))},onCancel:()=>{(()=>{const s=p(a.state?.pathnameStackToGoBack),c=s.poppedPathname??P();n(c,{state:{pathnameStackToGoBack:s.newStack}})})(),e(S())},onACHDetailsUpdated:s=>{const{bankAccountSection:c}=s;e(T({data:c}))},onBackClick:()=>{if(e(F({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")n("../",{relative:"path"});else{const s=p(t.location.state?.pathnameStackToGoBack),c=s.poppedPathname??P(0);t.navigate(c,{state:{pathnameStackToGoBack:s.newStack}})}e(S())}}}))(Q);function fe({vendorIdParam:e,accountContext:t}){const n=w(),a=C(),o=N(),{vendorId:s,billId:c}=V(),i=e??s,{useFeatureGate:d}=R(),r=O.getSignedInUser(),b=h((u=>B(u))),g=U(),I=p(a.state?.pathnameStackToGoBack),f=t??(I.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h((u=>k(u,i))),{isFeatureEnabled:x}=d(v.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=d(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(Y,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:g.colors.grey5}}):l.jsxs(ae,{windowSize:o,children:[l.jsx(H,{vendorId:i,billId:c}),l.jsx(oe,{location:a,navigate:n,billId:c,vendorId:i,currentTenant:b,bankAccountContext:f,isVendorRecommendationEnabled:x,isZeniAccountsFeatureEnabled:y})]})}const P=(e=2)=>{let t="../";for(let n=0;n<e;n++)t=`${t}../`;return t},me=(e,t,n)=>{let a=`/${e}/bill/${encodeURIComponent(t)}`;return n=="draft"&&(a+="/edit"),a},he=e=>`/${e}/bills`,ke=(e,t)=>{let n=`/${e}/bill`;return n=t!=null?n.concat(`/${t}/edit`):n.concat("/new"),n},A=(e,t,n,a)=>{let o=`/${e}/bill`;return o+=n!=null?`/${n}/edit/vendor`:"/new/vendor",o+=a!=null?`/${a}/edit/${t}`:`/create/${t}`,o};function Se(e,t,n){return A(e,"ach",t,n)}function ve(e,t,n){return A(e,"domestic",t,n)}function ge(e,t,n){return A(e,"international",t,n)}const se=(e,t,n)=>{let a=`/${e}/bill/`;return a=n!=null?a.concat(`${encodeURIComponent(n)}/${t}/`):a.concat(`new/${t}/`),a},de=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 ${Z.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
18
|
-
`,ce=E((function(e,t){const{vendorId:n,billId:a}=t,o=k(e,n),s=D(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,a);return{billId:a,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}}),(function(e,t){const{billId:n,navigate:a,location:o,vendorId:s,currentTenant:c}=t,{tenantEmailDomain:i}=c;return{onFetchBankName:d=>{e(j(d))},onSaveHandler:d=>{e(G(t.bankAccountContext,d,"us-domestic",s))},onWireDetailsUpdated:d=>{const{bankAccountSection:r}=d;e(T({data:r}))},onCancel:()=>{(()=>{const d=p(o.state?.pathnameStackToGoBack),r=d.poppedPathname??$();a(r,{state:{pathnameStackToGoBack:d.newStack}})})(),e(S())},onAddressClick:d=>{if(t.bankAccountContext==="express-pay")a("./add-address");else{const r=se(i,d,n),b=te(o.state?.pathnameStackToGoBack,o.pathname);a(r,{state:{pathnameStackToGoBack:b}})}},onBackClick:()=>{if(e(F({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")a("../",{relative:"path"});else{const d=p(t.location.state?.pathnameStackToGoBack),r=d.poppedPathname??$(0);t.navigate(r,{state:{pathnameStackToGoBack:d.newStack}})}e(S())}}}))(ee);function Ie({vendorIdParam:e,accountContext:t}){const n=w(),a=C(),o=N(),{vendorId:s,billId:c}=V(),i=e??s,d=O.getSignedInUser(),{useFeatureGate:r}=R(),b=U(),g=h((u=>B(u))),I=p(a.state?.pathnameStackToGoBack),f=t??(I.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h((u=>k(u,i))),{isFeatureEnabled:x}=r(v.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=r(v.isDepositAccountsFeatureEnabled);if(d==null)throw Error("Can't access address page without signing in...");return f==="billDetail"&&m.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(Y,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:b.colors.grey5,boxShadow:`0px 2px ${Z.sp1} ${b.colors.dropShadowNormal}`}}):l.jsxs(de,{windowSize:o,children:[l.jsx(H,{vendorId:i,billId:c}),l.jsx(ce,{location:a,navigate:n,billId:c,vendorId:i,currentTenant:g,bankAccountContext:f,isVendorRecommendationEnabled:x,isZeniAccountsFeatureEnabled:y})]})}const $=(e=2)=>{let t="../";for(let n=0;n<e;n++)t=`${t}../`;return t};export{fe as A,Ie 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 s}from"./liveblocks-B0EpRifM.js";import{a as r}from"./sentry-BefEASz6.js";import{aw as f,ax as l,o as p,a4 as b}from"./index-6X2hJC9C.js";import"./mui-Splhybhe.js";import m from"./NotFoundScreen-yHXIfv3c.js";import{h as c,g as u}from"./core-CqflqGv9.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]="a4845c9e-9816-4d47-ad6f-7bb2b55829fb",e._sentryDebugIdIdentifier="sentry-dbid-a4845c9e-9816-4d47-ad6f-7bb2b55829fb")}catch{}})();const _=()=>{const e=c(),a=u(),t=r.useCallback((()=>{window.open("https://www.zeni.ai/demo/request","_blank")}),[]),d=r.useCallback((()=>{(()=>{const n=b(a.state?.pathnameStackToGoBack),i=n.poppedPathname??k();e(i,{state:{pathnameStackToGoBack:n.newStack}})})()}),[]),o=f(a.pathname);return o!=null?s.jsx(l,{menuItem:p(o),onDemoClick:t,onGoBack:d}):s.jsx(m,{})},k=(e=2)=>{let a="../";for(let t=0;t<e;t++)a=`${a}../`;return a};export{_ as F};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-B0EpRifM.js";import{a as g}from"./sentry-BefEASz6.js";import{u as U,g as _,h as w,t as A,j as l,N as L}from"./core-CqflqGv9.js";import{z as r,E as M,G as P,R as V,j as N,S as G,Z as R,_ as W,T as Z}from"./index-6X2hJC9C.js";import{fE as $,Tb as q,TE as B,Tv as H,gh as J,gj as K,TA as Q,gT as X,di as Y,TF as ee,TG as te}from"./zeni-epic-state-Sf5HhdfR.js";import{n as ne}from"./mui-Splhybhe.js";import{u as se}from"./useDeviceId-C-MNChOb.js";import{f as ie}from"./analyticsHelper-C7PuiJR9.js";import{t as ae}from"./getLocaleForTenant-frknbVW9.js";import"./recharts-C-DOhwH-.js";import"./analytics-Bg9sHj4I.js";import"./plaid-D5Rs2Xbn.js";import"./dnd-OUjwZlfC.js";import"./stripe-cKAAJElX.js";import"./lottie-x3DIllPk.js";import"./lexical-BHqkUsiS.js";import"./pdf-BZfLFbU_.js";import"./utils-JmZUGXv-.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]="6840146e-0d0a-4e6f-86df-8bbd1dfb351c",t._sentryDebugIdIdentifier="sentry-dbid-6840146e-0d0a-4e6f-86df-8bbd1dfb351c")}catch{}})();const E=(t,i)=>t!=null&&t.length>0&&i==="magic_links";function Ee(){const t=U(),i=_(),m=w(),[k]=A(),n=k.get("token"),p=k.get("stytch_token_type"),f=r.getMagicLinkCodeVerifier(),a=se(),{otpChallenge:d,twoFAPhoneNumber:x,magicLinkEmail:c,verifyDeviceFetchState:z,resendVerifyDeviceOTPFetchState:C}=l((e=>e.tenantState)),S=l((e=>e.tenantState.fetchState)),y=l((e=>e.tenantState.activeTenantFetchState.fetchState)),h=l((e=>e.tenantState.signInState)),I=l((e=>e.tenantState.magicLinkSignInFetchState.fetchState)),s=l((e=>e.tenantState.loggedInUser)),o=l((e=>$(e))),b=l((e=>q(e))),D=r.getSignedInUser(),T=M().mode;g.useEffect((()=>{s?.zeniSessionId==null&&n!=null&&E(n,p)&&a!=null&&f!=null&&(r.saveMagicLinkTriggered(n),t(B(n,a,f)))}),[n,p,t,a,f,s?.zeniSessionId]),g.useEffect((()=>{h!=="In-Progress"||S!=="Completed"&&y!=="Completed"||s?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(s,s.zeniSessionId),r.saveSignedInUserTenants(H(b.tenantsInOrder),s.zeniSessionId),J(s.userId,s.zeniSessionId,o.tenantId),t(K(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(Q("Completed")),P.updateAppLocaleID(ae(o)),ie(s,o,T,void 0,b.tenantsInOrder),X().then((()=>{const e=Z();e!=null&&V(e)})),setTimeout((()=>{N.trackLogin(G.Event.loginSuccess,"email",Y(o.productSettings))}),2e3))}),[h,S,y,s,o,b,T,i.state,t]);const j=g.useCallback((()=>{m("/signin/auth")}),[m]),F=g.useCallback((()=>{a!=null&&d!=null&&c!=null&&t(ee(a,c,d))}),[a,d,t,c]),O=g.useCallback((e=>{a!=null&&n!=null&&c!=null&&d!=null&&t(te(e,a,c,d))}),[a,n,t,c,d]);if(I==="Completed"&&d!=null)return u.jsx(R,{phoneNumber:x,verifyOtpFetchState:z.fetchState,resendVerifyDeviceOTPFetchState:C,onResendOtp:F,onVerifyOtp:O,onCancelVerifyDevice:j});if(h==="In-Progress"&&S==="Completed"&&s?.zeniSessionId!=null&&o!=null||D!=null){const e=i.state?.origin??"/";return u.jsx(L,{to:e,state:{...i.state,origin:""}})}if(!E(n,p)||f==null||I==="Error"){const e=i.state?.origin??"/",v=n!=null&&r.getLastUsedMagicLinkToken()===n;return u.jsx(L,{to:e,state:{...i.state,origin:"",magicLinkAlreadyUsed:v,magicLinkExpired:!v&&(r.isMagicLinkTriggered(n??"")||I==="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{Ee as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-B0EpRifM.js";import{h as r,l as i}from"./core-CqflqGv9.js";import{am as n}from"./index-6X2hJC9C.js";import"./mui-Splhybhe.js";import"./sentry-BefEASz6.js";import"./zeni-epic-state-Sf5HhdfR.js";import"./recharts-C-DOhwH-.js";import"./analytics-Bg9sHj4I.js";import"./plaid-D5Rs2Xbn.js";import"./dnd-OUjwZlfC.js";import"./stripe-cKAAJElX.js";import"./lottie-x3DIllPk.js";import"./lexical-BHqkUsiS.js";import"./pdf-BZfLFbU_.js";import"./utils-JmZUGXv-.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]="f2f6ef04-8019-4dfe-8bec-98d5efe59039",o._sentryDebugIdIdentifier="sentry-dbid-f2f6ef04-8019-4dfe-8bec-98d5efe59039")}catch{}})();const f=i(null,(function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}}))(n);function _(){const o=r();return e.jsx(f,{navigate:o})}export{_ as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-B0EpRifM.js";import{z as j,a8 as E,j as u,S as N,e1 as b,O as k,y as C}from"./index-6X2hJC9C.js";import"./mui-Splhybhe.js";import g from"./NotFoundScreen-yHXIfv3c.js";import{a as m}from"./sentry-BefEASz6.js";import{u as I,j as y,h as F,g as L,l as _,n as T,o as d,N as h}from"./core-CqflqGv9.js";import{fE as U,a17 as w,a18 as p,D8 as P,p_ as V,a19 as z,D6 as G}from"./zeni-epic-state-Sf5HhdfR.js";import"./recharts-C-DOhwH-.js";import"./analytics-Bg9sHj4I.js";import"./plaid-D5Rs2Xbn.js";import"./dnd-OUjwZlfC.js";import"./stripe-cKAAJElX.js";import"./lottie-x3DIllPk.js";import"./lexical-BHqkUsiS.js";import"./pdf-BZfLFbU_.js";import"./utils-JmZUGXv-.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]="4ead295d-d49c-41c5-89c7-ea6a1fc08640",e._sentryDebugIdIdentifier="sentry-dbid-4ead295d-d49c-41c5-89c7-ea6a1fc08640")}catch{}})();const O=_((function(e,t){const n=w(e);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}}),(function(e,t){const{navigate:n}=t,i=j.getSignedInUser();return{onDismissClick:()=>{e(p()),n("/")},onSendClick:()=>{if(i!=null){const s=[],r=[];t.inviteFormCompayData.forEach((c=>{s.push(c.companyName),r.push(c.emailIds[0])})),u.trackInviteEmailClicked("send",s,r,s.length)}e(G())},onUpdateInviteFormLocalData:s=>{e(z({localData:s}))},onSubmitSuccess:()=>{e(p())},onCancelClick:()=>{i!=null&&u.trackInviteEmailClicked("cancel")}}}))(b),R=()=>{const e=I(),[t,n]=m.useState(!1),[i,s]=m.useState(!1),r=y((o=>U(o))),c=F(),x=L(),f=j.getSignedInUser();if(f==null)throw Error("Can't access invite referral screen without signing in...");const l=y((o=>w(o))),D=f?.firstName!=null?f.firstName:"User";m.useEffect((()=>{e(p()),r?.rewardsLastViewedTime==null&&i===!1&&(e(P()),s(!0))}),[]),m.useEffect((()=>{t||l.fetchState!=="Not-Started"||(n(!0),e(V(!0)))}),[l.fetchState,e]);const S=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[l.fetchState==="Completed"?a.jsx(E,{analytics:u,onLoad:o=>(v=>v.trackPageLoaded(N.Event.inviteEmailViewed))(o)}):null,a.jsx(O,{navigate:c,location:x,currentTenant:r,companyName:S,userName:D,inviteFormCompayData:l.localData})]})};function ne(){const{useFeatureGate:e}=k(),{isFeatureEnabled:t}=e(C.isReferralFeatureEnabled);return a.jsxs(T,{children:[a.jsx(d,{path:"/",element:a.jsx(h,{to:"refer",replace:!0})}),a.jsx(d,{path:"how-it-works",element:a.jsx(h,{to:"refer",replace:!0})}),a.jsx(d,{path:"refer/*",element:t?a.jsx(R,{}):a.jsx(g,{})}),a.jsx(d,{path:"*",element:a.jsx(g,{})})]})}export{ne as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/NotFoundScreen-yHXIfv3c.js","assets/sentry-BefEASz6.js","assets/core-CqflqGv9.js","assets/zeni-epic-state-Sf5HhdfR.js","assets/index-6X2hJC9C.js","assets/mui-Splhybhe.js","assets/analytics-Bg9sHj4I.js","assets/utils-JmZUGXv-.js","assets/index-BhC2LNQw.css","assets/DashboardRoutes-WausKTZN.js","assets/withTransactionSidePanel-C1SRvhe2.js","assets/useAskAiCfoHostNavButtonProps-_aV90QuU.js","assets/TransactionDetailScreen-3kh7GhKV.js","assets/decodeURIComponentSafe-Bw5_joHN.js","assets/useInitialThreadRequest-Ocoxr05G.js","assets/routePaths-vIHY-V28.js","assets/expenseAutomationHelper-BTi1SBkX.js","assets/analyticsHelper-C7PuiJR9.js","assets/CompanyPassportScreen-D0iwvjvi.js","assets/MobileAppDrawer-CRL9dcOy.js","assets/InboxNotificationsProvider-C5ikUDhJ.js","assets/useTaskManagerAccess-BTngy8S4.js","assets/useAiCfoDashboardSuggestedQuestionsChips-DCkiFTBp.js","assets/FeaturePreviewScreen-Bw_lynVj.js","assets/BillPayRoutes-CxVV20eB.js","assets/AddressScreen-2Ll0sIt2.js","assets/DomesticWireDetailScreen-ClypaxS0.js","assets/BusinessVerificationPageScreen-CcdlEk-F.js","assets/DrawerScreen-BGFLKjZ4.js","assets/SetupPagesScreen-C5BRh3XH.js","assets/BillPayApprovalRoutes-iNqdFuHr.js","assets/ReimbursementApprovalRuleDetailScreen-B4_P7371.js","assets/getLocaleForTenant-frknbVW9.js","assets/ReimbursementRoutes-JKmd-RDh.js","assets/ReimbursementApprovalRoutes-BPS61Q6U.js","assets/TransactionListRoutes-DlF9D1gA.js","assets/ZeniAccountStatementScreen-CX0ZvWif.js","assets/SettingsRoutes-BuKUGcQL.js","assets/AccountMappingScreen-B3gERMwb.js","assets/QBOConnectionScreen-B3L0biVT.js","assets/empty-D2Qv8UjS.js","assets/index-CNoRQUH7.js","assets/url-DGJ2AapT.js","assets/index-C-1mKpRP.js","assets/accountMappingHelper-CJL-kxIR.js","assets/useEmailConnectResultRefresh-BNpn3T_H.js","assets/ReportsRoutes-CXTwauUR.js","assets/ChargeCardRoutes-2l1CO_ZB.js","assets/useChargeCardPusherEvents-CextOSJa.js","assets/PeopleRoutes-DYjiVo9L.js","assets/ExpenseAutomationRoutes-2mQsPUHf.js","assets/ScheduleDetailsPrepaidExpensesScreen-DiGMBAm5.js","assets/pathToGoBack-LnL-ovI6.js","assets/TreasuryRoutes-B-vADZSw.js","assets/VendorsRoutes-BB7CHJb3.js","assets/ZeniAccountRoutes-C4VQUVN_.js","assets/AddressRoutes-ofjUZj67.js","assets/PandLWithForecastRoutes-fo_acE-Y.js","assets/CustomerOnboardingRoutes-DNGip8nR.js","assets/TransactionDetailRoutes-D704rpNa.js","assets/EntityDetailRoutes-dIhIGS0K.js","assets/InvoicingRoutes-CCMsRJbo.js","assets/NotificationRoutes-YdUDNMEO.js","assets/PerformanceRoutes-Blu7VWI0.js","assets/RewardsRoutes-CrvPTVJy.js","assets/TaskRoutes-D9jm3Vx3.js","assets/TaskListScreen-DY7UxmTl.js","assets/AiCfoScreen-DMq_5n3A.js","assets/CardsAiCfoScreen-CY8kuFBn.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as s,bn as ms,fE as _s,dY as Es,dX as hs,Al as ps,dh as gs,c8 as xs,gI as Rs,g8 as js,de as pe,cG as Is,gm as Ts,cy as As,bE as fs,br as bs,Ts as ys,v as Ds,Tv as Cs,bq as vs,Tw as Os,bK as Ps,bJ as ws,bt as Us,cu as Fs,Tx as Ls,Ty as ks,d9 as Vs,dc as Hs,db as Ss,cF as Bs,cM as Ns,pR as ge,gh as xe,gX as Ms,gj as Re,gK as je,gL as Ie,gk as Zs}from"./zeni-epic-state-Sf5HhdfR.js";import{j as e}from"./liveblocks-B0EpRifM.js";import{a as w}from"./sentry-BefEASz6.js";import{N as u,u as Gs,h as $s,i as zs,g as Ys,j as $,q as Te,n as qs,o as t}from"./core-CqflqGv9.js";import{K as l,E as Ks,u as Ws,z as y,O as Xs,d as Js,e as Qs,y as M,g as en,M as sn,V as nn,L as F,G as Ae,t as _,P as tn,N as an,j as ne}from"./index-6X2hJC9C.js";import"./mui-Splhybhe.js";import{f as fe}from"./analyticsHelper-C7PuiJR9.js";import{t as on}from"./getLocaleForTenant-frknbVW9.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},A=new a.Error().stack;A&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[A]="b25cf6d3-f0bd-4cf7-9b3d-ffe0277dcbc3",a._sentryDebugIdIdentifier="sentry-dbid-b25cf6d3-f0bd-4cf7-9b3d-ffe0277dcbc3")}catch{}})();const rn=l((()=>s((()=>import("./NotFoundScreen-yHXIfv3c.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8])))),ln=({tenantEmailDomain:a})=>e.jsx(u,{to:`/${a}/reimbursements`}),un=({tenantEmailDomain:a})=>e.jsx(u,{to:`/${a}/bills`}),be=({tenantEmailDomain:a})=>e.jsx(u,{to:`/${a}/treasury`}),ye=({tenantEmailDomain:a})=>e.jsx(u,{to:`/${a}/checking`}),De=({tenantEmailDomain:a})=>e.jsx(u,{to:`/${a}/cards`}),D=({showZeniAccountRoute:a,isUserHasBillPayAccess:A,isUserHasReimbursementAccess:S,showTreasuryRoute:i,isTenantBankingOnly:k,showChargeCardRoute:O,tenantEmailDomain:v})=>{if(k===!0){if(a)return e.jsx(ye,{tenantEmailDomain:v});if(i)return e.jsx(be,{tenantEmailDomain:v});if(O)return e.jsx(De,{tenantEmailDomain:v})}return a?e.jsx(ye,{tenantEmailDomain:v}):i?e.jsx(be,{tenantEmailDomain:v}):O?e.jsx(De,{tenantEmailDomain:v}):A?e.jsx(un,{tenantEmailDomain:v}):S?e.jsx(ln,{tenantEmailDomain:v}):e.jsx(rn,{})},dn={dashboard:()=>s((()=>import("./DashboardRoutes-WausKTZN.js")),__vite__mapDeps([9,1,2,3,4,5,6,7,10,11,12,13,14,15,16,0,17,18,19,20,21,22,23,8])),bills:()=>s((()=>import("./BillPayRoutes-CxVV20eB.js")),__vite__mapDeps([24,1,2,3,4,5,6,7,25,0,26,11,14,27,15,19,20,21,28,23,29,17,30,31,32,8])),reimbursement:()=>s((()=>import("./ReimbursementRoutes-JKmd-RDh.js")),__vite__mapDeps([33,1,2,3,4,5,6,7,0,29,27,15,19,20,21,17,23,11,14,28,34,31,32,8])),transactions:()=>s((()=>import("./TransactionListRoutes-DlF9D1gA.js")),__vite__mapDeps([35,1,2,3,4,5,6,7,10,11,12,13,14,15,16,36,8])),settings:()=>s((()=>import("./SettingsRoutes-BuKUGcQL.js")),__vite__mapDeps([37,1,2,3,4,5,6,7,21,38,19,20,39,40,41,42,43,13,44,25,0,17,27,15,18,45,30,31,34,8])),reports:()=>s((()=>import("./ReportsRoutes-CXTwauUR.js")),__vite__mapDeps([46,1,2,3,4,5,6,7,0,23,14,15,19,20,21,8])),chargeCards:()=>s((()=>import("./ChargeCardRoutes-2l1CO_ZB.js")),__vite__mapDeps([47,1,2,3,4,5,6,7,11,19,20,21,29,27,15,0,17,14,48,25,8])),people:()=>s((()=>import("./PeopleRoutes-DYjiVo9L.js")),__vite__mapDeps([49,1,2,3,4,5,6,7,0,11,19,20,21,8])),expenseAutomation:()=>s((()=>import("./ExpenseAutomationRoutes-2mQsPUHf.js")),__vite__mapDeps([50,1,2,3,0,4,5,6,7,11,12,13,14,15,16,51,52,10,44,28,8])),treasury:()=>s((()=>import("./TreasuryRoutes-B-vADZSw.js")),__vite__mapDeps([53,1,2,3,4,5,6,7,0,29,27,15,19,20,21,17,11,14,23,8])),vendors:()=>s((()=>import("./VendorsRoutes-BB7CHJb3.js")),__vite__mapDeps([54,1,2,3,4,5,6,7,25,0,23,51,52,15,11,19,20,21,28,44,8])),zeniAccounts:()=>s((()=>import("./ZeniAccountRoutes-C4VQUVN_.js")),__vite__mapDeps([55,1,2,3,4,5,6,7,0,29,27,15,19,20,21,17,23,26,25,11,36,8]))},cn=["bills","transactions","settings","reimbursement","reports","chargeCards","people"],te=a=>{"requestIdleCallback"in window?requestIdleCallback(a):setTimeout(a,100)},mn=l((()=>s((()=>import("./ReportsRoutes-CXTwauUR.js")),__vite__mapDeps([46,1,2,3,4,5,6,7,0,23,14,15,19,20,21,8])))),_n=l((()=>s((()=>import("./AddressRoutes-ofjUZj67.js")),__vite__mapDeps([56,1,2,3,25,4,5,6,7,0,8])))),En=l((()=>s((()=>import("./PeopleRoutes-DYjiVo9L.js")),__vite__mapDeps([49,1,2,3,4,5,6,7,0,11,19,20,21,8])))),hn=l((()=>s((()=>import("./PandLWithForecastRoutes-fo_acE-Y.js")),__vite__mapDeps([57,1,2,3,4,5,6,7,0,23,11,14,15,19,20,21,8])))),pn=l((()=>s((()=>import("./CustomerOnboardingRoutes-DNGip8nR.js")),__vite__mapDeps([58,1,2,3,25,4,5,6,7,0,39,40,41,42,43,13,45,48,8])))),gn=l((()=>s((()=>import("./VendorsRoutes-BB7CHJb3.js")),__vite__mapDeps([54,1,2,3,4,5,6,7,25,0,23,51,52,15,11,19,20,21,28,44,8])))),xn=l((()=>s((()=>import("./TransactionDetailRoutes-D704rpNa.js")),__vite__mapDeps([59,1,2,3,0,4,5,6,7,12,11,13,14,15,16,8])))),Ce=l((()=>s((()=>import("./EntityDetailRoutes-dIhIGS0K.js")),__vite__mapDeps([60,1,2,3,4,5,6,7,13,10,11,12,14,15,16,8])))),Rn=l((()=>s((()=>import("./DashboardRoutes-WausKTZN.js")),__vite__mapDeps([9,1,2,3,4,5,6,7,10,11,12,13,14,15,16,0,17,18,19,20,21,22,23,8])))),ve=l((()=>s((()=>import("./BillPayRoutes-CxVV20eB.js")),__vite__mapDeps([24,1,2,3,4,5,6,7,25,0,26,11,14,27,15,19,20,21,28,23,29,17,30,31,32,8])))),jn=l((()=>s((()=>import("./SettingsRoutes-BuKUGcQL.js")),__vite__mapDeps([37,1,2,3,4,5,6,7,21,38,19,20,39,40,41,42,43,13,44,25,0,17,27,15,18,45,30,31,34,8])))),In=l((()=>s((()=>import("./InvoicingRoutes-CCMsRJbo.js")),__vite__mapDeps([61,1,2,3,4,5,6,7,25,0,19,20,21,39,40,41,42,43,13,8])))),Oe=l((()=>s((()=>import("./ReimbursementRoutes-JKmd-RDh.js")),__vite__mapDeps([33,1,2,3,4,5,6,7,0,29,27,15,19,20,21,17,23,11,14,28,34,31,32,8])))),Tn=l((()=>s((()=>import("./ZeniAccountRoutes-C4VQUVN_.js")),__vite__mapDeps([55,1,2,3,4,5,6,7,0,29,27,15,19,20,21,17,23,26,25,11,36,8])))),An=l((()=>s((()=>import("./TreasuryRoutes-B-vADZSw.js")),__vite__mapDeps([53,1,2,3,4,5,6,7,0,29,27,15,19,20,21,17,11,14,23,8])))),fn=l((()=>s((()=>import("./TransactionListRoutes-DlF9D1gA.js")),__vite__mapDeps([35,1,2,3,4,5,6,7,10,11,12,13,14,15,16,36,8])))),bn=l((()=>s((()=>import("./ChargeCardRoutes-2l1CO_ZB.js")),__vite__mapDeps([47,1,2,3,4,5,6,7,11,19,20,21,29,27,15,0,17,14,48,25,8])))),yn=l((()=>s((()=>import("./NotificationRoutes-YdUDNMEO.js")),__vite__mapDeps([62,1,2,3,0,4,5,6,7,11,21,8])))),Dn=l((()=>s((()=>import("./PerformanceRoutes-Blu7VWI0.js")),__vite__mapDeps([63,1,2,3,0,4,5,6,7,11,19,20,21,8])))),Cn=l((()=>s((()=>import("./ExpenseAutomationRoutes-2mQsPUHf.js")),__vite__mapDeps([50,1,2,3,0,4,5,6,7,11,12,13,14,15,16,51,52,10,44,28,8])))),vn=l((()=>s((()=>import("./RewardsRoutes-CrvPTVJy.js")),__vite__mapDeps([64,1,2,3,4,5,6,7,0,8])))),On=l((()=>s((()=>import("./TaskRoutes-D9jm3Vx3.js")),__vite__mapDeps([65,1,2,3,0,4,5,6,7,14,19,20,21,66,11,8])))),Pn=l((()=>s((()=>import("./AiCfoScreen-DMq_5n3A.js")),__vite__mapDeps([67,1,2,3,4,5,6,7,22,52,15,8])))),Pe=l((()=>s((()=>import("./CardsAiCfoScreen-CY8kuFBn.js")),__vite__mapDeps([68,1,2,3,4,5,6,7,8])))),C=l((()=>s((()=>import("./NotFoundScreen-yHXIfv3c.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8])))),wn=l((()=>s((()=>import("./TaskListScreen-DY7UxmTl.js").then((a=>a.f))),__vite__mapDeps([66,1,2,3,4,5,6,7,11,19,20,21,8])))),Un=({isDashboardAccess:a,showZeniAccountRoute:A,isUserHasBillPayAccess:S,isUserHasReimbursementAccess:i,showTreasuryRoute:k,isTenantBankingOnly:O,isTenantCardsOnly:v,showChargeCardRoute:V})=>{if(O===!0){if(A)return e.jsx(u,{to:"checking"});if(k)return e.jsx(u,{to:"treasury"});if(V)return e.jsx(u,{to:"cards"})}return v===!0&&V?e.jsx(u,{to:"cards"}):a?e.jsx(u,{to:"dashboard"}):A?e.jsx(u,{to:"checking"}):k?e.jsx(u,{to:"treasury"}):V?e.jsx(u,{to:"cards"}):S?e.jsx(u,{to:"bills"}):i?e.jsx(u,{to:"reimbursements"}):e.jsx(u,{to:"dashboard"})},we=({tenantEmailDomain:a})=>e.jsx(u,{to:`/${a}/dashboard`}),Mn=Object.freeze(Object.defineProperty({__proto__:null,default:function({setTenantEmailDomain:a}){const A=Gs(),S=$s(),{tenantEmailDomain:i}=zs(),k=Ks().mode,{setLoading:O,clearAllLoading:v,clearLoading:V}=Ws(),f=y.getSignedInUserTenant(i)?.tenantId,I=y.getSignedInUser(),W=ms(I),z=Ys(),[L,Ue]=w.useState(!1),r=$((o=>_s(o))),{useFeatureGate:B}=Xs(),Z=Js(),ae=Qs(),Fe=!!r.company?.companyZeniAccountInfo?.isZeniAccountEnabled,Le=r.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",{isFeatureEnabled:ke}=B(M.isChargeCardFeatureEnabled),{isFeatureEnabled:oe}=B(M.isDebitCardFeatureEnabled),T=$((o=>o.tenantState.fetchState)),p=$((o=>o.tenantState.activeTenantFetchState.fetchState)),E=p==="Completed"||T==="Completed"?Es(oe,r):void 0,X=p==="Completed"||T==="Completed"?hs(r):void 0,re=p==="Completed"||T==="Completed"?ps(r)&&!gs(r):void 0,Ve=en(r,ke,oe),{isCardsHidden:He}=sn(r?.tenantId),Se=!Ve||!!He,{isFeatureEnabled:Be}=B(M.isSettingsFeatureEnabled),{isFeatureEnabled:J}=B(M.isAiCfoFileUploadEnabled),{isFeatureEnabled:Ne}=B(M.isInvoicingFeatureEnabled??"is_invoicing_feature_enabled"),Me=Ne||an==="DEV",Ze=r?.userRole!=null&&xs(r.userRole),Y=$((o=>Rs(o)));if(i!=null){const o=y.getSignedInUserTenant(i);I!=null&&o!=null&&fe(I,r,k)}const G={tenantId:f,userId:I?.userId,sessionId:I?.zeniSessionId},ie=js(),h=nn(),Ge=r.company==null||h?.loggedInUserRoleMap!=null&&pe(h.loggedInUserRole),$e=Is(h?.loggedInUserRoleMap),Q=Te("/:tenantEmailDomain/onboarding/*")!==null,ee=Te("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*"),ze=$((o=>G.tenantId!=null?Ts(o,G.tenantId):void 0));w.useEffect((()=>{O(F.TENANT_FETCHING),a(i)}),[i]),w.useEffect((()=>{if(ee!=null&&f!=null){const o=ee.params.selectedPeriod;if(o!=null){const b=o.split("-");if(b.length===2){const d=As(Number(b[0])),n=Number(b[1]),c=fs(`01-${d<10?`0${d}`:d}-${n}`,Ae.getLocalizedStrings().dateFormat.analytics.DDDashMMDashYYYY),N=bs();c.isAfter(N,"month")===!1?A(ys(f,{month:d,year:n})):S(`/${i}/month_end_close_checks/review`)}}}}),[ee,f]),w.useEffect((()=>{L||(Ue(!0),O(F.TENANT_FETCHING))}),[L,G,ie,I,A,y]),w.useLayoutEffect((()=>{!Ds(ie,G)&&y.isSignedIn()&&(O(F.TENANT_FETCHING),(function(o,b,d,n){if(xe(b?.userId,b?.zeniSessionId,o.tenantId),d(Ms(!0)),d(Re(o.tenantId)),o.tenantId!=null&&_.clearTenant(o.tenantId),o.tenantId!=null){const c=y.getSignedInUserTenantWithId(o.tenantId);n&&Ae.updateAppLocaleID(on(n)),c?.tenantEmailDomain!=null&&y.saveActiveTenantDomainForUser(c?.tenantEmailDomain)}o.userId!=null?ne.identify(o.userId,{tenant_id:o.tenantId}):ne.resetUserIdentity()})(G,I,A,ze))}),[f]),w.useEffect((()=>{y.isSignedIn()&&(O(F.TENANT_FETCHING),(function(o,b,d,n,c,N,H){if(d==null&&n==null)return void console.warn("There is no current tenant selected!!");const q=n!=null&&c?.zeniSessionId!=null,us=d==null||d.tenantId!==n,ds=d!=null&&d.excludedResources==null,cs=d!=null&&d.externalConnections==null;if(q&&us){H(Re(n));const K=y.getSignedInUserTenantWithId(n);K?.tenantEmailDomain!=null&&y.saveActiveTenantDomainForUser(K?.tenantEmailDomain),xe(c?.userId,c?.zeniSessionId,n),_.shouldFetchExcludedResources(n)&&(_.markExcludedResourcesFetchStarted(n),H(je(c.userId,n))),_.shouldFetchConnections(n)&&(_.markConnectionsFetchStarted(n),H(Ie(c.userId,n)))}else q&&ds&&_.shouldFetchExcludedResources(n)&&(_.markExcludedResourcesFetchStarted(n),H(je(c.userId,n))),q&&cs&&_.shouldFetchConnections(n)&&(_.markConnectionsFetchStarted(n),H(Ie(c.userId,n)));if(q){ne.identify(c.userId,{tenant_id:n});const K=n==null||n!=null&&(b==="Completed"||b==="Error");o==="Completed"||b!=="Not-Started"&&b!=="Error"||n==null||!_.shouldFetchActiveTenant(n)||(_.markActiveTenantFetchStarted(n),N(F.TENANT_FETCHING),H(Zs(c.userId,n,c.zeniSessionId))),K&&(o==="Not-Started"||o==="Error")&&_.shouldFetchAllTenants()&&(_.markAllTenantsFetchStarted(),H(ge(c.userId,c.zeniSessionId)))}})(T,p,r,f,I,O,A))}),[f,p]),w.useEffect((()=>{y.isSignedIn()&&T==="Completed"&&Y.tenantsBaseInOrder.length>0&&(V(F.TENANT_FETCHING),y.saveSignedInUserTenants(Cs(Y.tenantsBaseInOrder)),I!=null&&fe(I,r,k,void 0,Y.tenantsBaseInOrder))}),[Y,T,r,I]),w.useEffect((()=>{p==="In-Progress"&&O(F.TENANT_FETCHING),p!=="Completed"&&p!=="Error"||(p==="Completed"&&f!=null?(v(),_.markActiveTenantFetchCompleted(f)):p==="Error"&&f!=null&&(_.markActiveTenantFetchFailed(f),V(F.TENANT_FETCHING),V(F.TENANT_SWITCHING))),T!=="Completed"&&T!=="Error"||(T==="Completed"?_.markAllTenantsFetchCompleted():T==="Error"&&_.markAllTenantsFetchFailed())}),[p,T,f,L]);const le=w.useRef(!1);w.useEffect((()=>{!le.current&&p==="Completed"&&L&&(le.current=!0,(function(o=cn,b=3e3){setTimeout((()=>{const d=n=>{if(n>=o.length)return;const c=o[n],N=dn[c];N!=null?N().then((()=>te((()=>d(n+1))))).catch((()=>te((()=>d(n+1))))):d(n+1)};te((()=>d(0)))}),b)})())}),[p,L]);const P=r?.userRole!=null&&vs(r?.userRole),{isFeatureEnabled:Ye}=B(M.isReferralFeatureEnabled),qe=r?.userRole!=null&&r.userRole.includes("charge_card_user"),Ke=r?.userRole!=null&&r.userRole.includes("charge_card_admin"),U=r?.userRole!=null&&pe(r.userRole),ue=r?.company==null||r.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!P,de=!Se&&!P,We=Os(h?.loggedInUserRoleMap),Xe=r.externalConnections?.accounting[0]?.isValid,Je=r.externalConnections?.fetchState==="Completed",se=r.company?.companyOnboardingInfo.isOnboardingCompleted,ce=r?.company==null||r.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!P,me=ce&&Ps(h?.loggedInUserRoleMap),_e=Fe&&!P,Qe=Le&&!P,es=ue&&ws(h?.loggedInUserRoleMap),ss=de&&Us(h?.loggedInUserRoleMap),ns=_e&&Fs(h?.loggedInUserRoleMap),ts=Ls(h?.loggedInUserRoleMap),as=ks(h?.loggedInUserRoleMap),os=Vs(h?.loggedInUserRoleMap),rs=Hs(h?.loggedInUserRoleMap),is=Ss(h?.loggedInUserRoleMap),g=Bs(h?.loggedInUserRoleMap),x=Ns(h?.loggedInUserRoleMap),Ee=ue&&g,he=ce&&x,R=_e&&os,j=Qe&&rs,m=de&&is,ls=r.excludedResources?.resources?.find((o=>o.resource==="/invites"))!=null||$e===!0||We===!0||ts===!0||as===!0;return y.isSignedIn()?f==null?T==="Completed"?e.jsx(u,{to:"/",replace:!0,state:{...z.state,message:"...",origin:z.pathname}}):(I!=null&&T!=="In-Progress"&&A(ge(I.userId,I.zeniSessionId)),null):p!=="In-Progress"&&p!=="Not-Started"||T==="Completed"?(se===!0||W&&!Q)&&Je&&Xe!==!0&&E===!1&&X===!1&&re===!1?(a(void 0),e.jsx(u,{to:"/connection/auth",replace:!0})):!L||re!==!0||se!==!0||Q||W?!L||se!==!1||Q||W?L&&r?.userRole&&E!=null&&X!=null&&i!=null&&Object.keys(h.loggedInUserRoleMap).length>0?e.jsx(qs,{children:e.jsxs(t,{element:e.jsx(tn,{}),children:[e.jsx(t,{path:"/",element:e.jsx(Un,{isDashboardAccess:U,showZeniAccountRoute:R,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:x,showTreasuryRoute:j,isTenantBankingOnly:E,isTenantCardsOnly:X,showChargeCardRoute:m})}),e.jsx(t,{path:"dashboard/*",element:U?e.jsx(Rn,{}):e.jsx(D,{showZeniAccountRoute:R,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:x,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(t,{path:"reports/*",element:U?e.jsx(mn,{}):e.jsx(D,{showZeniAccountRoute:R,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:x,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(t,{path:"people/*",element:ls||U?e.jsx(En,{}):e.jsx(D,{showZeniAccountRoute:R,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:x,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(t,{path:"forecast/*",element:U?e.jsx(hn,{}):e.jsx(D,{showZeniAccountRoute:R,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:x,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(t,{path:"onboarding/*",element:e.jsx(pn,{})}),e.jsx(t,{path:"transaction/*",element:U&&P===!1||qe||Ke?e.jsx(xn,{}):e.jsx(D,{showZeniAccountRoute:R,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:x,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(t,{path:"transactions/*",element:U&&P===!1?e.jsx(fn,{}):e.jsx(D,{showZeniAccountRoute:R,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:x,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(t,{path:"customer/*",element:U&&P===!1?e.jsx(Ce,{entityType:"customer"}):e.jsx(D,{showZeniAccountRoute:R,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:x,isTenantBankingOnly:E,showTreasuryRoute:j,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(t,{path:"vendor/*",element:U&&P===!1?e.jsx(Ce,{entityType:"vendor"}):e.jsx(D,{showZeniAccountRoute:R,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:x,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(t,{path:"tasks",element:e.jsx(wn,{})}),e.jsx(t,{path:"tasks/*",element:e.jsx(On,{})}),e.jsx(t,{path:"address/*",element:es||me||ns||ss?e.jsx(_n,{}):e.jsx(D,{showZeniAccountRoute:R,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:x,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(t,{path:"checking/*",element:R?e.jsx(Tn,{}):e.jsx(C,{})}),e.jsx(t,{path:"treasury/*",element:j?e.jsx(An,{}):e.jsx(C,{})}),e.jsx(t,{path:"performance",element:ae===!0?e.jsx(Dn,{}):e.jsx(we,{tenantEmailDomain:i})}),e.jsx(t,{path:"month_end_close_checks/review/*",element:ae===!0&&P===!1?e.jsx(Cn,{}):e.jsx(we,{tenantEmailDomain:i})}),e.jsx(t,{path:"notifications/*",element:e.jsx(yn,{})}),e.jsx(t,{path:"vendors/*",element:Ge?e.jsx(gn,{}):e.jsx(C,{})}),e.jsx(t,{path:"bill/*",element:Ee?e.jsx(ve,{}):e.jsx(D,{showZeniAccountRoute:R,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:x,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(t,{path:"bills/*",element:Ee?e.jsx(ve,{}):e.jsx(D,{showZeniAccountRoute:R,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:x,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(t,{path:"reimbursement/*",element:he?e.jsx(Oe,{}):e.jsx(D,{showZeniAccountRoute:R,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:x,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(t,{path:"reimbursements/*",element:he?e.jsx(Oe,{}):e.jsx(D,{showZeniAccountRoute:R,isUserHasBillPayAccess:g,isUserHasReimbursementAccess:x,showTreasuryRoute:j,isTenantBankingOnly:E,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(t,{path:"settings/*",element:Be?e.jsx(jn,{hasAdminLevelAccess:me}):e.jsx(C,{})}),e.jsx(t,{path:"invoicing/*",element:Me&&Ze?e.jsx(In,{}):e.jsx(C,{})}),e.jsx(t,{path:"cards/ask",element:m&&Z?e.jsx(Pe,{isFileUploadEnabled:J}):e.jsx(C,{})}),e.jsx(t,{path:"cards/ask/:session_id",element:m&&Z?e.jsx(Pe,{isFileUploadEnabled:J}):e.jsx(C,{})}),e.jsx(t,{path:"cards/*",element:m?e.jsx(bn,{}):e.jsx(C,{})}),e.jsx(t,{path:"rewards/*",element:Ye?e.jsx(vn,{}):e.jsx(C,{})}),e.jsx(t,{path:"/ai-cfo",element:Z?e.jsx(u,{to:"explore"}):e.jsx(C,{})}),e.jsx(t,{path:"/ai-cfo/",element:Z?e.jsx(u,{to:"explore"}):e.jsx(C,{})}),e.jsx(t,{path:"/ai-cfo/:session_id",element:Z?e.jsx(Pn,{isFileUploadEnabled:J}):e.jsx(C,{})}),e.jsx(t,{path:"*",element:e.jsx(C,{})})]})}):null:(a(void 0),e.jsx(u,{to:`/${i}/onboarding`,replace:!0})):(a(void 0),e.jsx(u,{to:`/${i}/onboarding/thankyou`,replace:!0})):null:(console.warn("User logged out!!"),a(void 0),e.jsx(u,{to:"/signin/auth",replace:!0,state:{...z.state,message:"...",origin:z.pathname}}))}},Symbol.toStringTag,{value:"Module"}));export{D as F,Mn as S};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-B0EpRifM.js";import{a as f,R as x,q as A}from"./sentry-BefEASz6.js";import{u as D,h as j,j as c,g as z,N as M,l as O}from"./core-CqflqGv9.js";import{u as P,z as s,E as B,j as w,G as F,R as _,S as $,$ as N,T as R,W as V,Y as v}from"./index-6X2hJC9C.js";import{fE as W,Tb as q,Tv as J,gh as Y,gj as G,TA as H,gT as K,di as Q,TB as T,TC as X,TD as Z,b$ as y}from"./zeni-epic-state-Sf5HhdfR.js";import"./mui-Splhybhe.js";import{u as ee}from"./useDeviceId-C-MNChOb.js";import{f as te}from"./analyticsHelper-C7PuiJR9.js";import{t as ne}from"./getLocaleForTenant-frknbVW9.js";import"./recharts-C-DOhwH-.js";import"./analytics-Bg9sHj4I.js";import"./plaid-D5Rs2Xbn.js";import"./dnd-OUjwZlfC.js";import"./stripe-cKAAJElX.js";import"./lottie-x3DIllPk.js";import"./lexical-BHqkUsiS.js";import"./pdf-BZfLFbU_.js";import"./utils-JmZUGXv-.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]="ea52a050-8fd8-4a66-8b2d-5cec23c45e84",t._sentryDebugIdIdentifier="sentry-dbid-ea52a050-8fd8-4a66-8b2d-5cec23c45e84")}catch{}})();const ie=O((function(t,i){const d=t.tenantState.fetchState,g=t.tenantState.sendEmailMagicLinkFetchState,{magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:l}=i;return{googleClientId:v.googleClientId,microsoftClientId:v.microsoftClientId,signInError:t.tenantState.error?.error,fetchState:d,sendMagicLinkStatus:g,magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:l}}),(function(t,i){const{location:d,navigate:g}=i;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,a)=>{A({message:`OAuth error from provider ${a} with error ${n}`,level:"error",tags:{authProvider:a,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,a)=>{const l=a==="google"?window.location.origin:window.location.origin+window.location.pathname;t(Z({authCode:n,oauthProvider:a,appType:"web",redirectUri:y(l),sourceUri:y(d.state!=null?d.state.origin:"")}))},getSignedInUser:()=>s.getSignedInUser(),onSignedInCallback:()=>{const n=d.state?.origin;n&&n!=="/"?g(n,{replace:!0}):window.open(window.location.origin,"_self")},sendMagicLink:n=>{const{deviceId:a}=i;a!=null&&(s.saveMagicLinkEmail(n),t(X(n,a)))},clearSignInError:()=>{t(T())}}}))(V),ae=x.memo(ie);function ve({setTenantEmailDomain:t}){const i=D(),d=j(),{clearAllLoading:g}=P(),n=s.getSignedInUser();f.useLayoutEffect((()=>{g()}),[g]);const a=ee(),l=c((e=>e.tenantState.magicLinkCodeVerifier)),{sendEmailMagicLinkFetchState:h,accountLocked:b,accountUnlockTime:E}=c((e=>e.tenantState)),p=c((e=>e.tenantState.fetchState)),L=c((e=>e.tenantState.activeTenantFetchState.fetchState)),S=c((e=>e.tenantState.signInState)),o=c((e=>e.tenantState.loggedInUser)),r=c((e=>W(e))),I=c((e=>q(e))),m=z(),k=B().mode,C=m.state?.magicLinkExpired,U=m.state?.magicLinkAlreadyUsed;if(f.useEffect((()=>{h.fetchState==="Completed"&&l!=null&&(w.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(l))}),[h.fetchState,l]),f.useEffect((()=>{t(void 0)}),[]),f.useEffect((()=>{S!=="In-Progress"||p!=="Completed"&&L!=="Completed"||o?.zeniSessionId==null||r==null||(s.savePayNowInfoTooltip(!0,o.zeniSessionId),s.saveSignedInUserWithSession(o,o.zeniSessionId),s.saveSignedInUserTenants(J(I.tenantsInOrder),o.zeniSessionId),Y(o.userId,o.zeniSessionId,r.tenantId),i(G(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(H("Completed")),F.updateAppLocaleID(ne(r)),te(o,r,k,void 0,I.tenantsInOrder),K().then((()=>{const e=R();e!=null&&_(e)})),setTimeout((()=>{w.trackLogin($.Event.loginSuccess,o.authProvider??"google",Q(r.productSettings))}),2e3))}),[S,p,L,o,r,I,k,m.state,i]),S==="In-Progress"&&p==="Completed"&&o?.zeniSessionId!=null&&r!=null||n!=null){const e=m.state?.origin??"/";return u.jsx(M,{to:e,state:{...m.state,origin:""}})}return u.jsxs(u.Fragment,{children:[u.jsx(ae,{magicLinkExpired:!!C,magicLinkAlreadyUsed:!!U,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),b===!0&&E!=null?u.jsx(N,{onClose:()=>i(T()),unlockDate:E}):null]})}export{ve as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-B0EpRifM.js";import{a as i}from"./sentry-BefEASz6.js";import{u as f,g as l,N as u}from"./core-CqflqGv9.js";import{z as n,j as a,S as m,a7 as p}from"./index-6X2hJC9C.js";import{gW as g,TR as y}from"./zeni-epic-state-Sf5HhdfR.js";import{n as b}from"./mui-Splhybhe.js";import"./recharts-C-DOhwH-.js";import"./analytics-Bg9sHj4I.js";import"./plaid-D5Rs2Xbn.js";import"./dnd-OUjwZlfC.js";import"./stripe-cKAAJElX.js";import"./lottie-x3DIllPk.js";import"./lexical-BHqkUsiS.js";import"./pdf-BZfLFbU_.js";import"./utils-JmZUGXv-.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]="c86c1e7a-cd6c-4eb0-9353-cd17045f6253",e._sentryDebugIdIdentifier="sentry-dbid-c86c1e7a-cd6c-4eb0-9353-cd17045f6253")}catch{}})();function N(){const e=f(),t=l(),r=i.useRef(!1),c=n.isSignedIn(),o=t.state?.message==="logout"||c;return i.useEffect((()=>{if(o&&!r.current){r.current=!0;try{e(g()),y(),a.trackLogout(m.Event.logoutSuccess),a.resetUserIdentity(),n.clearAll()}catch(d){console.error("Error during sign out:",d)}finally{window.location.replace("/signin/auth")}}}),[o,e]),o?s.jsx(h,{children:s.jsx(p,{fetchState:"In-Progress"})}):s.jsx(u,{to:"../",replace:!0})}const h=b.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`;export{N as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-B0EpRifM.js";import i from"./NotFoundScreen-yHXIfv3c.js";import{T as r}from"./TransactionDetailScreen-3kh7GhKV.js";import"./sentry-BefEASz6.js";import{n as d,o}from"./core-CqflqGv9.js";import"./zeni-epic-state-Sf5HhdfR.js";import"./recharts-C-DOhwH-.js";import"./index-6X2hJC9C.js";import"./mui-Splhybhe.js";import"./analytics-Bg9sHj4I.js";import"./plaid-D5Rs2Xbn.js";import"./dnd-OUjwZlfC.js";import"./stripe-cKAAJElX.js";import"./lottie-x3DIllPk.js";import"./lexical-BHqkUsiS.js";import"./pdf-BZfLFbU_.js";import"./utils-JmZUGXv-.js";import"./useAskAiCfoHostNavButtonProps-_aV90QuU.js";import"./decodeURIComponentSafe-Bw5_joHN.js";import"./useInitialThreadRequest-Ocoxr05G.js";import"./routePaths-vIHY-V28.js";import"./expenseAutomationHelper-BTi1SBkX.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]="07c2895c-270d-414b-a4ec-49ceb0cdd05a",e._sentryDebugIdIdentifier="sentry-dbid-07c2895c-270d-414b-a4ec-49ceb0cdd05a")}catch{}})();function z(){return t.jsxs(d,{children:[t.jsx(o,{path:"/:transactionTypeEncoded/:transactionId",element:t.jsx(r,{})}),t.jsx(o,{path:"/:transactionTypeEncoded/:transactionId/page-not-found",element:t.jsx(i,{})}),t.jsx(o,{path:"/:transactionTypeEncoded/:transactionId/vendor/create",element:t.jsx(r,{})}),t.jsx(o,{path:"/*",element:t.jsx(r,{})})]})}export{z as default};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{j as C}from"./liveblocks-B0EpRifM.js";import{a as i}from"./sentry-BefEASz6.js";import{u as W,k as st,j as g,s as ge,g as De,h as Ce,i as Ae,N as ct,l as it}from"./core-CqflqGv9.js";import{pu as Ie,fE as ee,gU as rt,TX as lt,oA as dt,oa as ut,CZ as se,bn as mt,de as we,bq as Re,sg as Q,V1 as Y,W9 as _e,Wa as le,Vr as Pe,m9 as Fe,Wb as Ue,Vw as de,Vx as ue,m_ as xe,Rt as me,W5 as G,m3 as Oe,m1 as Ve,md as pt,ph as ft,Wc as ht,Wd as St,CQ as J,m8 as Le,QO as Be,cm as yt,dk as Tt,We as bt,W4 as gt,Wf as It,Wg as kt,Wh as Et,Wi as vt,CM as Dt,Wj as Ct,Wk as At,Wl as wt,Wm as Rt,Wn as _t,mc as Pt,Wo as Ft,Wp as Ut,W6 as xt,Wq as Ot,Wr as Vt,Ws as Lt,QI as Bt,Qy as Nt,QX as Wt,me as zt,Ru as ke,pm as jt}from"./zeni-epic-state-Sf5HhdfR.js";import{O as X,y as A,j as $,b2 as Mt,z as Ne,E as Gt,a1 as $t,b3 as qt,ab as Ht,a4 as ce,V as Qt,b4 as Yt,p as ie,as as Xt,b5 as Zt,b6 as Jt,b7 as Kt,ae as en,av as oe}from"./index-6X2hJC9C.js";import{n as tn,S as nn,D as an}from"./mui-Splhybhe.js";import{u as on}from"./useAskAiCfoHostNavButtonProps-_aV90QuU.js";import{d as We}from"./decodeURIComponentSafe-Bw5_joHN.js";import{u as sn}from"./useInitialThreadRequest-Ocoxr05G.js";import{h as ze,c as je,g as cn,e as rn}from"./routePaths-vIHY-V28.js";import{u as ln}from"./expenseAutomationHelper-BTi1SBkX.js";import{v as dn}from"./utils-JmZUGXv-.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="4b876913-da0e-4fcb-a6db-127011f53a16",t._sentryDebugIdIdentifier="sentry-dbid-4b876913-da0e-4fcb-a6db-127011f53a16")}catch{}})();function un(t=!0){const e=W(),o=st(),{useFeatureGate:n}=X(),{isFeatureEnabled:a}=n(A.isCreateTransferEntryFromExpenseEnabled);i.useEffect((()=>{if(!t||a!==!0)return;const s=c=>{const u=o.getState().createTransferEntryState.transferAccountsByType[c].fetchState;return u!=="In-Progress"&&u!=="Completed"};s("transferEntryEligible")&&e(Ie({kind:"transferEntryEligible"})),s("creditCardOnlyEligible")&&e(Ie({kind:"creditCardOnlyEligible"}))}),[t,a,e,o])}function mn(t,e){const o=(function(){const u=W(),[S,y]=i.useState(!1),[f,d]=i.useState(null),[r,h]=i.useState(null),{useDynamicConfig:I}=X(),{configValue:D,isDynamicConfigLoading:T}=I("transaction_categorization_config"),b=!T&&D?.capitalization_enabled===!0,k=g((l=>ee(l))),w=k.companyId,q=g((l=>rt(l.companyState,k.companyId)?.company.companyLocaleInfo?.currencySymbol??"$")),{capitalizableAccounts:U,capitalizableAccountOverrides:R,dismissedAccounts:_}=g((l=>{const E=l.tenantState.currentTenantId,v=E!=null?l.tenantState.tenantsById[E]:void 0;return{capitalizableAccounts:v?.capitalizableAccounts??null,capitalizableAccountOverrides:v?.capitalizableAccountOverrides??null,dismissedAccounts:v?.capitalizationOnboardingDismissedAccounts??null}}),ge),x=i.useRef(U);x.current=U;const P=i.useRef(R);P.current=R;const O=i.useRef(_);O.current=_;const V=g((l=>lt(l.accountState)),ge),H=i.useMemo((()=>{const l={};for(const E of V)E.accountId!=null&&E.accountName!=null&&(l[E.accountId]=E.accountName);return l}),[V]),z=r!=null?H[r]??null:null,L=i.useCallback((l=>{if(!b)return;const E=x.current;if(E==null)return;const v=E.accounts??[],M=new Set(l),Z=P.current??{},te=O.current;for(const B of v)if(M.has(B.accountId)&&Z[B.accountId]==null&&te?.[B.accountId]==null)return d(B.classificationType),h(B.accountId),void y(!0)}),[b]),j=i.useCallback(((l,E)=>{u(dt(w,l,E,!0)),y(!1),d(null),h(null)}),[u,w]),p=i.useCallback((()=>{r!=null&&(u(ut(w,r)),y(!1),d(null),h(null))}),[u,w,r]);return{showPopup:S&&b,popupType:f,popupAccountId:r,popupAccountName:z,currencySymbol:q,checkAndShowPopup:L,handleSubmit:j,handleDismiss:p}})(),n=i.useRef(void 0),a=i.useRef([]),s=i.useRef(o.checkAndShowPopup);s.current=o.checkAndShowPopup;const c=i.useRef(e);return c.current=e,i.useEffect((()=>{t==="In-Progress"&&(a.current=c.current()),t==="Completed"&&n.current==="In-Progress"&&a.current.length>0&&(s.current(a.current),a.current=[]),n.current=t}),[t]),o}const N=new Map,Ee=(t,e,o)=>`${t}|${e??""}|${o}`,K=(t,e)=>({recommendationFor:t.dimension,recommendationSetId:null,selectedSource:t.matchedSource,selectedRank:t.matchedRank,topPickSource:t.topPickSource,numberOfRecommendations:t.shownRecommendations.length,transactionId:e,lineId:t.lineId??null}),re=(t,e,o)=>({transactionId:e,lineId:t.lineId,dimension:t.dimension,outcome:t.outcome,selected:{name:t.selected.name,id:t.selected.id},matchedSource:t.matchedSource,matchedRank:t.matchedRank,topPickSource:t.topPickSource,shownRecommendations:t.shownRecommendations.map((n=>({source:n.source,rank:n.rank,value:{name:n.name,id:n.id},confidence:n.confidencePercentage!=null?n.confidencePercentage/100:void 0}))),...o}),Me=(t,e,o)=>{$.trackRecommendationFeedbackRetracted(K(e,o)),t(se(re(e,o,{outcome:"retracted"})))},On=(t,e)=>{const o=new Set(e.map(String));N.forEach(((n,a)=>{o.has(n.transactionId)&&(N.delete(a),Me(t,n.feedback,n.transactionId))}))},Vn=t=>{const e=new Set(t.map(String));N.forEach(((o,n)=>{e.has(o.transactionId)&&N.delete(n)}))};function pn(t){const e=W(),[o,n]=i.useState(null),{isEnabled:a,fallbackTransactionId:s}=t,c=i.useCallback((f=>f.transactionId??s??""),[s]),u=i.useCallback((f=>{if(!a)return;const d=c(f);if(d==="")return;if(f.outcome!=="accepted")return void n(f);((h,I,D,T)=>{const b=Ee(I,D,T),k=N.get(b);return k!=null&&(N.delete(b),Me(h,k.feedback,k.transactionId),!0)})(e,d,f.lineId,f.dimension)||(((h,I)=>{$.trackRecommendationAccepted({...K(h,I),recommendationConfidencePercentage:h.shownRecommendations[0]?.confidencePercentage??null})})(f,d),e(se(re(f,d,{}))))}),[a,c,e]),S=i.useCallback((f=>{if(o==null)return;const d=c(o);((r,h,I)=>{$.trackRecommendationFeedbackSubmitted({...K(r,h),feedbackOutcome:r.outcome,feedbackReasonLength:I,isNewEntitySelected:!1})})(o,d,f.length),e(se(re(o,d,{reasonText:f,skipped:!1}))),((r,h)=>{N.set(Ee(h,r.lineId,r.dimension),{feedback:r,transactionId:h})})(o,d),n(null)}),[o,c,e]),y=i.useCallback((()=>{var f,d;o!=null&&(f=o,d=c(o),$.trackRecommendationFeedbackSkipped({...K(f,d),feedbackOutcome:f.outcome,isNewEntitySelected:!1}),n(null))}),[o,c]);return{onRecommendationSelection:u,popup:o!=null?C.jsx(Mt,{feedback:o,onSubmit:S,onSkip:y}):null}}const pe=()=>{const t=Ne.getSignedInUser(),{useFeatureGate:e}=X(),{isFeatureEnabled:o}=e(A.isChainOfThoughtEnabled);return i.useMemo((()=>mt(t)&&o),[t,o])};function Ge(t){if(t!=null){if("customer"in t&&t.customer!=null){const{customer:e}=t;return{id:e.id,name:e.name,logo:e.logo,type:"customer",zeniId:e.id,qboId:e.id}}if("vendor"in t&&t.vendor!=null){const{vendor:e}=t;return{id:e.id,name:e.name,logo:e.logo,type:"vendor",zeniId:e.id,qboId:e.id}}}}function Ln(t,e){const o=W(),{useFeatureGate:n}=X(),a=g((p=>ee(p))),s=a.userRole.includes("charge_card_user")||a.userRole.includes("charge_card_admin"),c=a.userRole!=null&&we(a.userRole),u=a.userRole!=null&&Re(a.userRole),{isFeatureEnabled:S}=n(A.isVendorBulkUpdateOnTransactionEnabled),{isFeatureEnabled:y}=n(A.isExpenseAutomationEnabled),f=pe(),d=i.useMemo((()=>({id:t,type:Q(e)})),[t,e]),r=g((p=>Y(p,d))),h=r?.transactionDetailUpdateStatus?.fetchState,I=r?.transactionDetailLocalData?.lineItemById,D=g((p=>{const l=Y(p,d)?.transactionDetailLocalData.vendorUpdates?.id;return l==null?"Not-Started":p.transactionVendorViewState.editVendorStateById[l]?.saveStatus.fetchState??"Not-Started"})),T=i.useMemo((()=>r?.fetchState==="Completed"?Ge(r?.transaction):void 0),[r?.fetchState,r?.transaction]),b=g((p=>{if(T!=null)return _e(p.customerIncomeState,p.vendorExpenseState,p.trendState,T,"month")})),k=g((p=>le(p))),w=g((p=>{if(T!=null)return Pe(p.trendWithTransactionsState,T,"TransactionDetail")})),q=a.company?.companyInfo.firstMonthOfFY??1,U=g((p=>Fe(p.accountState,p.accountListState,"accountList"))),[R,_]=i.useState(!1),[x,P]=i.useState(!1),[O,V]=i.useState(!1);i.useEffect((()=>{_(!1),P(!1),V(!1)}),[t,e]);const H=i.useCallback((()=>{_(!1),P(!1)}),[]),[z,L]=i.useState(!1),j=w?.selectedPeriod?.timePeriod;return i.useEffect((()=>{O||r==null||r.transaction==null||(o(Ue({id:r.transaction.id,type:r.transaction.type})),V(!0)),T!=null&&(!s||c&&u===!1)&&(R?x||b==null||(P(!0),o(me(T,"TransactionDetail",{timeframe:"month",timePeriod:j??b}))):(o(de()),o(ue()),_(!0),o(xe(T))))}),[o,O,r?.fetchState,r?.transaction,T,s,c,u,R,x,b,j]),i.useEffect((()=>{k.newVendorState?.vendorDetailLocalData?.vendorName!=null?L(!0):L(!1)}),[k.newVendorState?.vendorDetailLocalData?.vendorName]),i.useEffect((()=>()=>{o(G("common"))}),[o]),{currentTenant:a,loggedInUserHasCardUserOrAdminRole:s,isUserHasDashboardAccess:c,isUserHasInvestorOrBankerAccess:u,isVendorBulkUpdateOnTransactionEnabled:S,isExpenseAutomationEnabled:y,isChainOfThoughtEnabled:f,selectedTransaction:d,transactionDetail:r,rawDetailSaveStatus:h,rawDetailLineItemById:I,vendorSaveStatus:D,tranEntity:T,defaultTrendTransactionTimePeriod:b,vendorViewDetails:k,uiState:w,firstMonthOfFY:q,uncategorizedAccounts:U,resetTrendIsFetchedStates:H,isCreateVendorDrawerOpen:z,setIsCreateVendorDrawerOpen:L}}const fn={overlayWidth:new Ht(100,100,58)},hn=({isOpen:t,onSaveVendor:e,onSaveSuccess:o,onCancel:n,vendorViewDetails:a})=>{const s=Gt(),c=$t(),u=W(),S=g((d=>le(d))),y=()=>{n()},f={vendorDetailView:a??S,onSaveSuccess:()=>{u(Ve()),u(pt("Not-Started")),o()},onSaveVendor:e,onCancelClick:y,saveVendorDetailLocalData:d=>{u(Oe({vendorId:void 0,localData:d}))}};return C.jsx(an,{anchor:"right",open:t,PaperProps:{style:{width:fn.overlayWidth.valuePercentage(c),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.4,cursor:"pointer"}}},onClose:y,children:C.jsx(Sn,{onClick:d=>d.stopPropagation(),children:C.jsx(qt,{...f})})})},Sn=tn(nn)`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`;function yn(t,e){t(ft({transactionId:e.transactionId,creditAccountIntegrationId:e.creditAccountIntegrationId,debitAccountIntegrationId:e.debitAccountIntegrationId,memo:e.memo,transactionType:Q(e.transactionType),sourceTransactionType:Q(e.sourceTransactionType)}))}function Tn({currentTransactionId:t,enabled:e=!0,buildPath:o,beforeNavigate:n,navigate:a,navigateState:s}){const c=g((S=>S.createTransferEntryState.lastTransferEntryReplacement)),u=i.useRef(null);i.useEffect((()=>{if(!e||c==null||t==null||u.current===c)return;const{previousTransactionId:S,newTransactionId:y}=c;t.id===S.id&&t.type===S.type&&(u.current=c,n?.(),a(o(y),{replace:!0,state:s}))}),[e,c,t,o,n,a,s])}const bn=({closeDrawerHandler:t,overrideTransactionId:e,overrideTransactionType:o})=>{const n=De(),a=Ce(),s=W(),c=pe(),{transactionTypeEncoded:u,transactionId:S}=Ae(),y=e??S,f=o??We(u??"");let d;ze(y,f)&&(d={id:y,type:Q(f)});const r=d!=null?g((I=>Y(I,d))):void 0,h=()=>{const I=ce(n.state?.pathnameStackToGoBack),D=I.poppedPathname??((T=2)=>{let b="../";for(let k=0;k<T;k++)b=`${b}../`;return b})(1);a(D,{state:{pathnameStackToGoBack:I.newStack}})};return{transactionId:d,onSaveVendor:()=>{s(Le(d,void 0))},onSaveSuccess:()=>{if(r!=null&&r?.transaction&&r?.transactionDetailLocalData.vendorUpdates?.qboId!=null&&r?.transactionDetailLocalData.vendorUpdates?.id!=null){const I=r?.transactionDetailLocalData.vendorUpdates,D={id:r?.transactionDetailLocalData.vendorUpdates?.qboId,zeniId:r?.transactionDetailLocalData.vendorUpdates?.id,type:"vendor",name:I?.name,qboId:r?.transactionDetailLocalData.vendorUpdates?.qboId??""},T={transactionId:{id:r?.transaction?.id,type:r?.transaction?.type},transaction:r?.transaction,lineIds:r?.transaction?.lines?.map((b=>b.id))??[]};s(J({entity:D,amount:r?.transaction?.amount.amount,transactionDetails:T,flowType:"detail",isFetchCOT:c}))}h()},onCancel:()=>{d!=null&&s(ht({transactionId:d})),s(Ve()),s(St()),t(!0),h()}}},gn=it((function(t,e){const o=Y(t,e.selectedTransaction);let n;o==null&&console.warn("Check if the you've selected the transaction before getting the details");const a=Ne.getSignedInUser(),s=t.tenantState.currentTenantId,c={userId:a?.userId??"",sessionId:a?.zeniSessionId??"",tenantId:s??""};o!=null&&o.fetchState==="Completed"&&o.transaction!=null&&e.entity!=null&&(n=bt(t,e.entity,"TransactionDetail"));const u=t.entityAutoCompleteState.autoCompleteText.common,S=gt(t,"common"),y=ee(t);return{transactionDetail:o,transactionAttachmentEndpointToDownload:`${oe}/transaction_attachment`,transactionAttachmentsEndpointToFetch:y.externalConnections?.accounting[0]?.connectionName==="netsuite"?`${oe}/transaction_attachments_accounting_provider`:`${oe}/transaction_attachments`,attachmentUploadEndpoint:`${en.accountMicroServiceBaseUrl}`,isCOTEnabled:e.isCOTEnabled,authParams:c,trendReport:n,analytics:$,uncategorizedAccounts:e.uncategorizedAccounts,autoCompleteData:{autoCompleteText:u,entityAutoCompleteView:S},isVendorBulkUpdateOnTransactionEnabled:e.isVendorBulkUpdateOnTransactionEnabled,isExpenseAutomationEnabled:e.isExpenseAutomationEnabled,enableBackClickOnSave:e.location.state?.message?.startsWith("comingFromScheduleDetails"),isTransactionSplitEditMode:o?.transactionDetailLocalData?.editMode??!1}}),(function(t,e){const{isCOTEnabled:o}=e;return{onBackClick:()=>{if(t(G("common")),e.onBackClick!=null)return void e.onBackClick();const n=ce(e.location.state?.pathnameStackToGoBack),a=n.poppedPathname??$e(2);e.navigate(a,{state:{pathnameStackToGoBack:n.newStack,message:"comingFromTransactionDetail"}})},discardTransactionDetailLocalData:(n,a)=>{e.transaction!=null&&t(jt({transactionId:{id:e.transaction.id,type:e.transaction.type},vendorId:n,customerId:a}))},onTransactionClick:n=>{e.resetTrendIsFetchedStates(),t(de()),t(ue());const a=ie(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(je(n,e.tenantEmailDomain),{state:{pathnameStackToGoBack:a}})},onTrendSelectedPeriodChange:n=>{if(n==null)e.defaultTrendTransactionTimePeriod!=null&&t(ke(e.entity,"TransactionDetail",{timeframe:"month",timePeriod:e.defaultTrendTransactionTimePeriod}));else{const a=n.currentTimePeriod==null?n.addTimePeriod:{startDate:n.addTimePeriod.startDate,endDate:n.currentTimePeriod.endDate};t(me(e.entity,"TransactionDetail",{timeframe:n.timeframe,timePeriod:n.addTimePeriod})),t(ke(e.entity,"TransactionDetail",{timeframe:n.timeframe,timePeriod:a}))}},onSaveUpdates:(n,a,s,c)=>{t(c===!0&&s!=null?Le(n,s,!0,e.isExpenseAutomationEnabled):zt({transactionId:n,isExpenseAutomationEnabled:e.isExpenseAutomationEnabled,cotTransactionTracking:a})),t(G("common"))},onUploadAttachmentAttachment:n=>{t(Wt(n))},onDeleteAttachment:n=>{e.transaction!=null&&t(Nt(n,{id:e.transaction.id,type:e.transaction.type}))},onSaveTransactionDetailLocalData:(n,a)=>{t(Bt({transactionId:n,transactionLocalData:a}))},onUpdateAllChecked:(n,a,s,c)=>{e.transaction!=null&&t(Lt(e.selectedTransaction,e.transaction,n,a,s,c))},onResetLineItemsCategoryClassInLocalData:(n,a,s,c,u,S)=>{t(Vt(n,a,s,c,u,S))},onChangeCategoryClassWhenUpdateAllIsChecked:(n,a)=>{e.transaction!=null&&t(Ot({id:e.transaction.id,type:e.transaction.type},e.transaction,n,a))},onSaveSuccess:()=>{const n=ce(e.location.state?.pathnameStackToGoBack);if(n.poppedPathname!=null){const a=dn(n.poppedPathname,"/").split("/"),s=a[a.length-1];if(["uncategorized-income","uncategorized-expense","missing-receipts"].includes(s)&&e.navigate(n.poppedPathname,{state:{pathnameStackToGoBack:n.newStack}}),e.location.state?.message==="comingFromScheduleDetails"){const c=`${cn(e.tenantEmailDomain)}`;e.navigate(c)}else if(e.location.state?.message==="comingFromScheduleDetailsFixedAssets"){const c=`${rn(e.tenantEmailDomain)}`;e.navigate(c)}}},onPageRefresh:()=>{t(Be(e.selectedTransaction,!0))},autoCompleteActions:{onAutoCompleteInputChange:(n,a)=>{n.trim().length>=2?t(xt({searchString:n,entityType:a,searchOrigin:"common"})):n.trim().length===0&&t(G("common"))},onCancelAutoComplete:()=>{t(G("common"))}},onFetchRecommendationsForEntity:(n,a,s,c)=>{t(J({entity:n,amount:a,transactionDetails:s,flowType:"detail",isBulkFetch:c,isFetchCOT:o}))},clearRecommendationForLineId:n=>{const{transactionId:a,transaction:s,lineId:c}=n;t(Ut(a,s,c))},resetUpdateErrorState:()=>{const n={id:e.selectedTransaction.id,type:e.selectedTransaction.type};t(Ft(n))},onSaveVendorInLocalData:(n,a,s,c,u)=>{if(t(Pt({transactionId:n,vendorUpdates:a,entity:s})),a.id!=null&&s!=null&&c!=null&&u!=null&&t(J({entity:s,amount:c,transactionDetails:u,flowType:"detail",isFetchCOT:o})),t(Oe({vendorId:a.id?a.id:void 0,localData:{vendorName:a.name,vendorId:a.id?a.id:void 0}})),!a.id&&e.transaction!=null){const S=e.transaction,y=ie(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(`/${e.tenantEmailDomain}/transaction/${encodeURIComponent(S.type??"")}/${S.id}/vendor/create`,{state:{pathnameStackToGoBack:y}})}},onSaveCustomerInLocalData:(n,a,s,c,u)=>{t(_t({transactionId:n,customerUpdates:a,entity:s})),a.id!=null&&s!=null&&c!=null&&u!=null&&t(J({entity:s,amount:c,transactionDetails:u,flowType:"detail",isFetchCOT:o}))},onUpdateAllTranactionsWithCurrentVendorChecked:n=>{t(Rt({transactionId:{id:e.selectedTransaction.id,type:e.selectedTransaction.type},isUpdateEnabled:n}))},onClickUpdateVendorToAllLineItems:(n,a,s)=>{t(wt(n,a,s))},onResetVendorToAllLineItems:(n,a,s)=>{t(At(n,a,s))},saveLatestSelectedEntity:(n,a,s)=>{t(Ct({transactionId:n,lineId:a,entity:s}))},updateVendorBulkRecommendationsFetchStatus:(n,a)=>{t(Dt(n,a))},setIsVendorUpdateAllChecked:(n,a,s)=>{t(vt(n,a,s))},onCreateTransferEntry:e.isCreateTransferEntryFromExpenseEnabled===!0?n=>yn(t,n):void 0,onLineAdd:()=>{if(e.transaction==null)return;const n={id:e.transaction.id,type:e.transaction.type},a=e.transaction.type==="journal_entry",s=e.transaction.amount?.currencyCode??"",c=e.transaction.amount?.currencySymbol??"",u=a?{amount:{amount:0,currencyCode:s,currencySymbol:c},id:crypto.randomUUID(),isCategoryMiscategorized:!1,isClassMiscategorized:!1,lineDescription:"",platformLineDetailType:"journal_entry_line_detail",type:"journal_entry_transaction_line",postingType:void 0,postingTypeName:"",lineTransactionType:"journal_entry"}:{amount:{amount:0,currencyCode:s,currencySymbol:c},id:crypto.randomUUID(),isCategoryMiscategorized:!1,isClassMiscategorized:!1,lineDescription:"",platformLineDetailType:"account_based_expense_line_detail",type:"transaction_with_account_and_class_line"};t(Et(n,u))},onLineDelete:n=>{if(e.transaction==null)return;const a={id:e.transaction.id,type:e.transaction.type};t(kt(a,n))},onToggleSplitEditMode:n=>{if(e.transaction==null)return;const a={id:e.transaction.id,type:e.transaction.type};t(It(a,n))}}}))(Kt);function Bn(){const t=Ce(),e=W(),o=De(),{useFeatureGate:n}=X(),a=Qt(),s=g((m=>ee(m))),c=s.userRole.includes("charge_card_user")||s.userRole.includes("charge_card_admin"),u=s.userRole!=null&&we(s.userRole),S=s.userRole!=null&&Re(s.userRole),{isFeatureEnabled:y}=n(A.isVendorBulkUpdateOnTransactionEnabled),{isFeatureEnabled:f}=n(A.isExpenseAutomationEnabled),{tenantEmailDomain:d,transactionTypeEncoded:r,transactionId:h}=Ae(),[I,D]=i.useState(!1),T=We(r??""),b=ze(h,T),k=g((m=>m.transactionVendorViewState)),w=pe(),{isFeatureEnabled:q}=n(A.isRecommendationFeedbackEnabled),U=Yt(),{onRecommendationSelection:R,popup:_}=pn({isEnabled:q,fallbackTransactionId:h}),x=i.useMemo((()=>({...U,onRecommendationSelection:R})),[U,R]),{isFeatureEnabled:P}=n(A.isTransactionCommentingEnabled),{isFeatureEnabled:O}=n(A.isCreateTransferEntryFromExpenseEnabled),{isFeatureEnabled:V}=n(A.isProjectsTransactionsEnabled),{isFeatureEnabled:H}=n(A.isTransactionSplitEnabled),z=a?.currentTenant?.companyId,L=a?.currentTenant?.companyName,j=sn(z),p=i.useMemo((()=>{if(b)return{id:h,type:Q(T)}}),[b,h,T]),l=p!=null?g((m=>Y(m,p))):void 0,E=l?.transactionDetailLocalData.vendorUpdates?.id!=null?k.editVendorStateById[l?.transactionDetailLocalData.vendorUpdates.id]?.saveStatus.fetchState:"Not-Started",v=l?.fetchState==="Completed"?Ge(l?.transaction):void 0,M=g((m=>v!=null?_e(m.customerIncomeState,m.vendorExpenseState,m.trendState,v,"month"):void 0)),Z=g((m=>le(m))),te=g((m=>v!=null?Pe(m.trendWithTransactionsState,v,"TransactionDetail"):void 0)),B=s.company?.companyInfo.firstMonthOfFY??1,qe=g((m=>Fe(m.accountState,m.accountListState,"accountList"))),[He,fe]=i.useState(!1),[Qe,he]=i.useState(!1),[Ye,Se]=i.useState(!1),Xe=i.useCallback((m=>je(m,d??"")+o.search),[d,o.search]),Ze=i.useCallback((()=>{Se(!1)}),[]);Tn({currentTransactionId:p,enabled:d!=null&&d!=="",buildPath:Xe,beforeNavigate:Ze,navigate:t,navigateState:o.state});const ye=()=>{fe(!1),he(!1)},Te=ln();un();const ne=i.useRef(l?.transaction);ne.current=l?.transaction;const Je=l?.transactionDetailUpdateStatus?.fetchState,F=mn(Je,(()=>{const m=[];if(ne.current!=null)for(const ae of ne.current.lines??[])"account"in ae&&ae.account?.accountId!=null&&m.push(ae.account.accountId);return m}));i.useEffect((()=>{p!=null&&l!=null&&l.fetchState==="Not-Started"&&(e(Be(p,!1)),ye())}),[e,p,l?.fetchState]),i.useEffect((()=>{if(p!=null&&l?.fetchState==="Error"){const m=ie(o.state?.pathnameStackToGoBack,o.pathname);t("page-not-found",{replace:!0,state:Te?{pathnameStackToGoBack:m,message:"expenseAutomation",origin:"transaction_categorization"}:{pathnameStackToGoBack:m,message:"pageNotFound",origin:"transaction_detail"}})}}),[p,l?.fetchState,t,o.state,o.pathname,Te]),i.useEffect((()=>{Ye||l==null||l.transaction==null||(e(Ue({id:l.transaction.id,type:l.transaction.type})),Se(!0));const m=o.state?.searchContext;v==null&&l?.fetchState==="Completed"&&ve(l?.transaction,m),v!=null&&(!c||u&&S===!1)&&(He?Qe||M==null||(he(!0),e(me(v,"TransactionDetail",{timeframe:"month",timePeriod:te?.selectedPeriod?.timePeriod??M}))):(e(de()),e(ue()),ve(l?.transaction,m),fe(!0),e(xe(v))))}),[l?.fetchState,l?.transaction,M,c]),i.useEffect((()=>{Z.newVendorState?.vendorDetailLocalData?.vendorName!=null?D(!0):D(!1)}),[Z.newVendorState?.vendorDetailLocalData?.vendorName]),i.useEffect((()=>()=>{e(G("common"))}),[]);const Ke=[r,h].filter((m=>m!=null)),{transactionId:be,onSaveVendor:et,onSaveSuccess:tt,onCancel:nt}=bn({closeDrawerHandler:m=>{D(!1),t(m?"../":"../..")}}),{isAiCfoAccessEnabled:at,onAskAiCfoClick:ot}=on({mobileExploreReferrer:"Transaction Details"});return Xt({isDataReady:l?.fetchState==="Completed"}),b?C.jsxs(C.Fragment,{children:[be!=null&&I&&C.jsx(hn,{isOpen:I,transactionId:be,onSaveVendor:et,onSaveSuccess:tt,onCancel:nt}),C.jsx(Zt,{toolkit:x,children:C.jsx(gn,{hideDeleteAttachment:!0,firstMonthOfFY:B,isDisabled:l?.transaction?.type==="transfer"&&a?.connectionName==="netsuite"?"readonly":void 0,tenantEmailDomain:d,location:o,navigate:t,selectedTransaction:p,entity:v,isCOTEnabled:w,defaultTrendTransactionTimePeriod:M,resetTrendIsFetchedStates:ye,transaction:l?.transaction,uncategorizedAccounts:qe,vendorSaveStatus:E,isVendorBulkUpdateOnTransactionEnabled:y,isCreateTransferEntryFromExpenseEnabled:O,isExpenseAutomationEnabled:f,isAiCfoAccessEnabled:at,onAskAiCfoClick:ot,isTransactionCommentingEnabled:P,isProjectsTransactionsEnabled:V,isTransactionSplitEnabled:H,companyId:z,companyName:L,initialOpenThreadRequest:j})}),_,F.showPopup&&F.popupType!=null&&C.jsx(Jt,{popupType:F.popupType,currencySymbol:F.currencySymbol,accountId:F.popupAccountId??"",accountName:F.popupAccountName??"",onSubmit:F.handleSubmit,onDismiss:F.handleDismiss})]}):C.jsx(ct,{to:$e(Ke.length)})}const $e=(t=2)=>{let e="../";for(let o=0;o<t;o++)e=`${e}../`;return e},ve=(t,e)=>{if(t!=null){const{transactionCategory:o,transactionClass:n}=In(t),a=kn(t);$.trackTransactionDetails(t.account?.accountId,t.account?.accountName,t.id,a,o.length>0?o:void 0,n.length>0?n:void 0,t.type,t.amount,t.memo,t.lines?.length??0,t.attachments?.map((s=>s.fileName)),e!=null?"Search":void 0,e?.searchTerm,e?.resultPosition,e?.resultsCount)}},In=t=>{const e=[],o=[];return t.lines?.forEach((n=>{switch(n.type){case"transaction_with_account_and_class_line":case"transaction_with_product_or_service_line":case"journal_entry_transaction_line":case"linked_transaction_line":{const a=n;a!=null&&a.account!=null&&a.account.accountName?.length>0&&e.push(a.account.accountName),a.class!=null&&a.class.className?.length>0&&o.push(a.class.className);break}}})),{transactionCategory:e,transactionClass:o}},kn=t=>yt(t)===!0?t.customer?.name??"":Tt(t)===!0?t.vendor?.name??"":t.memo!=null?t.memo:t.type;export{hn as C,Bn as T,pn as a,un as b,mn as c,bn as d,gn as e,Tn as f,pe as g,Vn as h,yn as i,ve as l,On as r,Ln as u};
|