@zeniai/web-app-ui 5.2.10-prod → 5.2.11-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/AddressRoutes-Dd5BLPNk.js +1 -0
- package/dist/assets/AddressScreen-B9qIDuai.js +9 -0
- package/dist/assets/AiCfoScreen-vunuko6i.js +22 -0
- package/dist/assets/{BillPayApprovalRoutes--b4dOiqh.js → BillPayApprovalRoutes-pStG307K.js} +1 -1
- package/dist/assets/{BillPayRoutes-Qe9oLK0G.js → BillPayRoutes-DbYnaX3_.js} +11 -11
- package/dist/assets/{BusinessVerificationPageScreen-cj0nBAsz.js → BusinessVerificationPageScreen-C7ez20uI.js} +2 -2
- package/dist/assets/{CardsAiCfoScreen-CAljriY-.js → CardsAiCfoScreen-gbRXVqr8.js} +3 -3
- package/dist/assets/{ChargeCardRoutes-DmiqgV52.js → ChargeCardRoutes--zXOSegl.js} +10 -10
- package/dist/assets/CompanyPassportScreen-BFAkEtYn.js +1 -0
- package/dist/assets/ConnectionAuthScreen-DHpBzuhF.js +11 -0
- package/dist/assets/CustomerOnboardingAuthScreen-Dt45S7Zn.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-rv9-7YBi.js → CustomerOnboardingRoutes-DXqGvG-i.js} +6 -6
- package/dist/assets/{DashboardRoutes-Bd6QrGII.js → DashboardRoutes-V58yuU0O.js} +4 -4
- package/dist/assets/{DefaultTenantHome-HL_AEVdw.js → DefaultTenantHome-DFUBuSUw.js} +1 -1
- package/dist/assets/DomesticWireDetailScreen-DV-LDQl5.js +18 -0
- package/dist/assets/DrawerScreen-CLmFnWBR.js +1 -0
- package/dist/assets/EntityDetailRoutes-D-VExL9R.js +1 -0
- package/dist/assets/ExpenseAutomationRoutes-DxTIqyhg.js +25 -0
- package/dist/assets/{FeaturePreviewScreen-BwTdLVoX.js → FeaturePreviewScreen-DQZK8Tkd.js} +1 -1
- package/dist/assets/HubSpotOAuthCallbackScreen-DD2ALtLX.js +1 -0
- package/dist/assets/MagicLinkRoutes-0xFiI_gt.js +72 -0
- package/dist/assets/MagicLinkSignInScreen-CAbcD9gJ.js +12 -0
- package/dist/assets/MobileAppDrawer-BSqYxsX2.js +1 -0
- package/dist/assets/NotFoundScreen-B35T6J3X.js +1 -0
- package/dist/assets/NotificationRoutes-BSEbFYc7.js +1 -0
- package/dist/assets/OAuthConsentScreen-DDzTn8ex.js +1 -0
- package/dist/assets/PandLWithForecastRoutes-DL85XT-N.js +1 -0
- package/dist/assets/{PeopleRoutes-DlbJ8dOb.js → PeopleRoutes-tvVCUcKN.js} +3 -3
- package/dist/assets/PerformanceRoutes-CRPowUNZ.js +1 -0
- package/dist/assets/{Preview-DaJjExSY.js → Preview-BFORWhGg.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-DhOl-9x_.js → QBOConnectionScreen-BY-ET0xU.js} +1 -1
- package/dist/assets/ReimbursementApprovalRoutes-xDcJz-Qa.js +1 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-BnbdeeWc.js → ReimbursementApprovalRuleDetailScreen-Dds_onx1.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-CrULGDHR.js → ReimbursementRoutes-Br35P7Ex.js} +6 -6
- package/dist/assets/{ReportsRoutes-CdScy2zn.js → ReportsRoutes-DlFjy5j4.js} +1 -1
- package/dist/assets/RewardsRoutes-ybfqamBR.js +1 -0
- package/dist/assets/ScreenRoutes-ZHVecYPB.js +2 -0
- package/dist/assets/{SettingsRoutes-BGeuaV1b.js → SettingsRoutes-BTJJZw7w.js} +7 -7
- package/dist/assets/{SetupPagesScreen-CQ95f144.js → SetupPagesScreen-BoNxDLXk.js} +5 -5
- package/dist/assets/{SignInScreen-DvZlzfq_.js → SignInScreen-DSHzSt42.js} +1 -1
- package/dist/assets/SignOutScreen-C0pSERkC.js +9 -0
- package/dist/assets/TaskListScreen-eY2qEexK.js +9 -0
- package/dist/assets/TaskRoutes-DK4tCNck.js +9 -0
- package/dist/assets/{TransactionDetailRoutes-YS_iY6Y7.js → TransactionDetailRoutes-C2A6Ai04.js} +1 -1
- package/dist/assets/{TransactionDetailScreen-lfSrrM4Y.js → TransactionDetailScreen-Y2A-PdMn.js} +2 -2
- package/dist/assets/{TransactionListRoutes-DU3cCLxD.js → TransactionListRoutes-DV5L4e1G.js} +1 -1
- package/dist/assets/TreasuryRoutes-foYlsfsF.js +37 -0
- package/dist/assets/{VendorsRoutes-BEt_9WSK.js → VendorsRoutes-B1TOelcz.js} +21 -21
- package/dist/assets/WiseConfirmationScreen-CI_HPhh8.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-ByZ9pCIW.js → ZeniAccountRoutes-Cs3s5yj2.js} +11 -11
- package/dist/assets/ZeniAccountStatementScreen-COiOGQqB.js +9 -0
- package/dist/assets/{accountMappingHelper-CLGTWOoZ.js → accountMappingHelper-Bc02_HWR.js} +1 -1
- package/dist/assets/{analytics-4jOsnRSg.js → analytics-B6nQWxMm.js} +1 -1
- package/dist/assets/{analyticsHelper-Cp79iEuP.js → analyticsHelper-Og8Rmx5y.js} +1 -1
- package/dist/assets/{core-DX0hI4Tj.js → core-D-w0syUt.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-WcasGT-q.js → decodeURIComponentSafe-C7k2Nrj_.js} +1 -1
- package/dist/assets/{dnd-ALP2Xi80.js → dnd-Dt7EosAi.js} +1 -1
- package/dist/assets/{empty-J417TvG7.js → empty-B7Efn92X.js} +1 -1
- package/dist/assets/{empty-BpEutNe3.js → empty-DF-g8Byo.js} +1 -1
- package/dist/assets/{emptyVideoElement-DVNg1h83.js → emptyVideoElement-CBdlopDC.js} +1 -1
- package/dist/assets/epic-DUSro8MZ.js +2 -0
- package/dist/assets/getLocaleForTenant-DXpgdwm2.js +1 -0
- package/dist/assets/{index-DzJXaiyv.js → index-B3J9WxT7.js} +2 -2
- package/dist/assets/{index-IQOFc2Vd.js → index-BNrt1EOu.js} +1 -1
- package/dist/assets/{index-7WvsQFFM.js → index-BZ0hEAE3.js} +1 -1
- package/dist/assets/{index-CIWkA9Mz.js → index-BrvX8Bq4.js} +1 -1
- package/dist/assets/{index-DqG9AY5b.js → index-Cf0JRE_u.js} +1 -1
- package/dist/assets/{index-zHyFO506.js → index-CnDcHHGX.js} +1 -1
- package/dist/assets/{index-CSb5Sa29.js → index-DbHK73QC.js} +1 -1
- package/dist/assets/{index-C7vAMpwE.js → index-DtTeUJqK.js} +13970 -13965
- package/dist/assets/{lexical-CIEinSVu.js → lexical-BvIUj_Gq.js} +1 -1
- package/dist/assets/{liveblocks-CPUhr7cG.js → liveblocks-B6veqs_8.js} +1 -1
- package/dist/assets/{lottie-Be-cIbgZ.js → lottie-HMB6u1mD.js} +1 -1
- package/dist/assets/{mui-Wlh0ww8-.js → mui-CvZ4Namd.js} +1 -1
- package/dist/assets/{pathToGoBack-bofP9cDL.js → pathToGoBack-BAEsrU0U.js} +1 -1
- package/dist/assets/{pdf-ca3_zM2m.js → pdf-DTyc8UuT.js} +4 -4
- package/dist/assets/{pdf-lib-Be1Qg4G4.js → pdf-lib-HRxxOoqR.js} +1 -1
- package/dist/assets/{plaid-B7CiXQXe.js → plaid-DOxsEQPt.js} +1 -1
- package/dist/assets/{pusher-QIJZMqPb.js → pusher-NGpa4s20.js} +1 -1
- package/dist/assets/{react-BzpMRZzx.js → react-B0Ke89Rd.js} +1 -1
- package/dist/assets/{react-DdfZNhsN.js → react-BlxcdXL2.js} +1 -1
- package/dist/assets/{react-EF6fn4Fj.js → react-CH6MMJtW.js} +1 -1
- package/dist/assets/{react-C1CYmKxl.js → react-CiknC4Jf.js} +1 -1
- package/dist/assets/{react-Cl_O1OBs.js → react-RglhJ9zO.js} +1 -1
- package/dist/assets/{react-DhrM74f3.js → react-S6dZMq1W.js} +1 -1
- package/dist/assets/{recharts-D49X9rAt.js → recharts-CCZTRBr_.js} +1 -1
- package/dist/assets/{routePaths-DGHjnhpU.js → routePaths-BXH8zPZv.js} +1 -1
- package/dist/assets/{sentry-BKza4F3H.js → sentry-BW637Fua.js} +1 -1
- package/dist/assets/{url-Dr5UUWLE.js → url-CCU74SLo.js} +1 -1
- package/dist/assets/{url-B1eUhLzQ.js → url-CQ6e4A8i.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-B88ydPFN.js → useAiCfoDashboardSuggestedQuestionsChips-C2yPn_Vp.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-aY04YP0S.js +1 -0
- package/dist/assets/useCashManagementBanner-mgRwIUZG.js +1 -0
- package/dist/assets/{useChargeCardPusherEvents-BzJO8XO6.js → useChargeCardPusherEvents-D2Li6UoT.js} +1 -1
- package/dist/assets/{useDeviceId-Bz0ISaO9.js → useDeviceId-BEnHMBJt.js} +1 -1
- package/dist/assets/useEmailConnectResultRefresh-D1no2UPa.js +1 -0
- package/dist/assets/{useInitialThreadRequest-D7aWfHSp.js → useInitialThreadRequest-BMYYqer4.js} +1 -1
- package/dist/assets/{utils-DdOI8_Qy.js → utils-BAwT1yty.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-ZsvmJkYL.js → withTransactionSidePanel-CRqIqwQF.js} +3 -3
- package/dist/assets/{zeni-epic-state-D7J6ldp5.js → zeni-epic-state-DyOMcw4f.js} +7 -7
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/AddressRoutes-LVNeLYP6.js +0 -1
- package/dist/assets/AddressScreen-DU5PGaHa.js +0 -9
- package/dist/assets/AiCfoScreen-Dal50I05.js +0 -22
- package/dist/assets/CompanyPassportScreen-t77EmDuD.js +0 -1
- package/dist/assets/ConnectionAuthScreen-BwHNPTK_.js +0 -11
- package/dist/assets/CustomerOnboardingAuthScreen-DXVwJIIc.js +0 -1
- package/dist/assets/DomesticWireDetailScreen-E8Co6RZt.js +0 -18
- package/dist/assets/DrawerScreen-CNi8v2mr.js +0 -1
- package/dist/assets/EntityDetailRoutes-Bplb0S27.js +0 -1
- package/dist/assets/ExpenseAutomationRoutes-YzoXuupQ.js +0 -25
- package/dist/assets/HubSpotOAuthCallbackScreen-4pIGrClP.js +0 -1
- package/dist/assets/MagicLinkRoutes-DoSx-07S.js +0 -72
- package/dist/assets/MagicLinkSignInScreen-DTUj3h_k.js +0 -12
- package/dist/assets/MobileAppDrawer-DPnpVzNw.js +0 -1
- package/dist/assets/NotFoundScreen-bK1Cn_wC.js +0 -1
- package/dist/assets/NotificationRoutes-Bdz73ibp.js +0 -1
- package/dist/assets/OAuthConsentScreen-BafIaR7e.js +0 -1
- package/dist/assets/PandLWithForecastRoutes-zdcF7G57.js +0 -1
- package/dist/assets/PerformanceRoutes-DeI_nXsA.js +0 -1
- package/dist/assets/ReimbursementApprovalRoutes-OUQT5-BG.js +0 -1
- package/dist/assets/RewardsRoutes-CtmDndAw.js +0 -1
- package/dist/assets/ScreenRoutes-CBcxlaZK.js +0 -2
- package/dist/assets/SignOutScreen-DKEcTPkt.js +0 -9
- package/dist/assets/TaskListScreen-CV57txpG.js +0 -9
- package/dist/assets/TaskRoutes-mEz36n_L.js +0 -9
- package/dist/assets/TreasuryRoutes-_3uNtw6X.js +0 -37
- package/dist/assets/WiseConfirmationScreen-D9iGvn-U.js +0 -12
- package/dist/assets/ZeniAccountStatementScreen-CdpIbZhl.js +0 -9
- package/dist/assets/epic-BxVmKmeQ.js +0 -2
- package/dist/assets/getLocaleForTenant-DiDMSDVJ.js +0 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-DQl9y6iE.js +0 -1
- package/dist/assets/useCashManagementBanner-LtjNHMQW.js +0 -1
- package/dist/assets/useEmailConnectResultRefresh-BPgsDDxP.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-DtTeUJqK.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-BW637Fua.js"><link rel="modulepreload" crossorigin href="/assets/core-D-w0syUt.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-DyOMcw4f.js"><link rel="modulepreload" crossorigin href="/assets/mui-CvZ4Namd.js"><link rel="modulepreload" crossorigin href="/assets/analytics-B6nQWxMm.js"><link rel="modulepreload" crossorigin href="/assets/utils-BAwT1yty.js"><link rel="stylesheet" crossorigin href="/assets/index-Czu7h9lW.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.2.
|
|
3
|
+
"version": "5.2.11-dev",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/**/*"
|
|
6
6
|
],
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"@sentry/core": "^9.42.1",
|
|
28
28
|
"@sentry/react": "^9.42.1",
|
|
29
29
|
"@stripe/stripe-js": "^4.4.0",
|
|
30
|
-
"@zeniai/client-analytics": "2.0.
|
|
31
|
-
"@zeniai/client-epic-state": "5.1.
|
|
32
|
-
"@zeniai/web-components": "4.2.
|
|
30
|
+
"@zeniai/client-analytics": "2.0.41",
|
|
31
|
+
"@zeniai/client-epic-state": "5.1.38",
|
|
32
|
+
"@zeniai/web-components": "4.2.35",
|
|
33
33
|
"color": "3.1.3",
|
|
34
34
|
"cross-fetch": "^4.0.0",
|
|
35
35
|
"crypto-js": "4.2.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-CPUhr7cG.js";import{A as d}from"./AddressScreen-DU5PGaHa.js";import i from"./NotFoundScreen-bK1Cn_wC.js";import"./sentry-BKza4F3H.js";import{o as s,p as r}from"./core-DX0hI4Tj.js";import"./zeni-epic-state-D7J6ldp5.js";import"./recharts-D49X9rAt.js";import"./index-C7vAMpwE.js";import"./mui-Wlh0ww8-.js";import"./analytics-4jOsnRSg.js";import"./plaid-B7CiXQXe.js";import"./dnd-ALP2Xi80.js";import"./stripe-cKAAJElX.js";import"./lottie-Be-cIbgZ.js";import"./lexical-CIEinSVu.js";import"./pdf-ca3_zM2m.js";import"./utils-DdOI8_Qy.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]="cd0ff2b4-1e27-4329-addf-f475e5a9db34",t._sentryDebugIdIdentifier="sentry-dbid-cd0ff2b4-1e27-4329-addf-f475e5a9db34")}catch{}})();function _(){return e.jsxs(s,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(d,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(d,{})}),e.jsx(r,{path:"*",element:e.jsx(i,{})})]})}export{_ as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as d}from"./liveblocks-CPUhr7cG.js";import{a as h}from"./sentry-BKza4F3H.js";import{h as P,u as _,g as j,i as E,j as M,n as B}from"./core-DX0hI4Tj.js";import{J as $,y as D,z as L,T as K,B as R,_ as z,c as C,f as m,p as F,j as b,r as N}from"./index-C7vAMpwE.js";import{MY as w,hV as U,eW as V,MZ as G,c7 as O,M_ as q,lg as H}from"./zeni-epic-state-D7J6ldp5.js";import{n as J}from"./mui-Wlh0ww8-.js";import W from"./NotFoundScreen-bK1Cn_wC.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]="d3f8fa98-3ae5-42b5-87fc-c2abf2be2ce0",e._sentryDebugIdIdentifier="sentry-dbid-d3f8fa98-3ae5-42b5-87fc-c2abf2be2ce0")}catch{}})();const Y=J.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`,Z=B((function(e,t){const{addressId:o,isSubPage:i,addressType:c}=t,l=V(e),a=t.roleMap!=null&&G(t.roleMap),r=i||c==="user_address"||O(l?.userRole??[])||a?void 0:"readonly";if(o==null){const s=q(c,e);return{addressToEdit:s?.addressToCreate,loadingState:s?.status?.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:r,isSubPage:i,dontShowSaveConfirmationPopup:t.dontShowSaveConfirmation}}const n=w(e,o);return{addressToEdit:n.address,loadingState:n.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:r}}),(function(e,t){const{navigate:o,location:i,addressType:c}=t,l=a=>{if(a==="express-pay")o("../express-pay/add-wire");else{const r=i.state,n=N(r?.pathnameStackToGoBack);let s=n.poppedPathname??I();const u=r?.queryParams;if(u){const f=new URLSearchParams(u).toString();f&&(s=`${s}?${f}`)}o(s,{state:{pathnameStackToGoBack:n.newStack}})}};return{onSubmitHandler:a=>{const r=Q(a);e(H({addressType:c,addressToCreate:r})),C?.trackSaveAddressClicked(m.Event.saveAddressClicked,{street:a.street.addressString,city:a.city,state:a.state,country:a.country.selectedOption??"",postalCode:a.postalCode,suite:a.suite,secondaryInfo:a.secondaryInfo}),l(t.bankAccountContext)},onCancel:()=>{l(t.bankAccountContext)}}}))(F);function de({isSubPage:e,hideAddressSubTitle:t=!1,hideAddressBackButton:o=!1,dontShowSaveConfirmation:i,accountContext:c,addressTypeParam:l}){const a=P(),r=_(),n=j(),{addressId:s,addressType:u}=E(),f=$(),k=D(),v=L.getSignedInUser(),[g,x]=h.useState(s==null),p=M((S=>s!=null?w(S,s).fetchState:"Not-Started")),A=K();if(v==null)throw Error("Can't access address page without signing in...");const T=S=>S.trackPageLoaded(s!=null?m.Event.editAddress:m.Event.addAddress),y=l??u;return h.useEffect((()=>{g||s==null||(x(!0),r(U(s,!1)))}),[g,s,r]),y==null||y.match(/(user_address|company_address|company_registered_address|vendor_address|officer_([1-9]|10)_address)$/g)?!g&&p==="Not-Started"||g&&p==="In-Progress"?d.jsx(R,{fetchState:p,style:{backgroundColor:k.colors.grey5}}):s!=null&&p==="Error"?(a(`${I(1)}/new`,{replace:!0}),d.jsx(d.Fragment,{})):d.jsxs(d.Fragment,{children:[d.jsx(z,{analytics:C,onLoad:T}),d.jsx(Y,{windowSize:f,children:d.jsx(Z,{location:n,navigate:a,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:t,addressId:s,addressType:y,dontShowSaveConfirmation:i,bankAccountContext:c,roleMap:A?.loggedInUserRoleMap})})]}):d.jsx(W,{})}const I=(e=2)=>{let t="../";for(let o=0;o<e;o++)t=`${t}../`;return t},Q=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng});export{de as A,Q as t};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import{j as c}from"./liveblocks-CPUhr7cG.js";import{a as r}from"./sentry-BKza4F3H.js";import{u as we,h as xe,g as Pe,j as K,i as ye,n as Ee}from"./core-DX0hI4Tj.js";import{Y as Te,dc as ve,z as Ae,J as Qe,dd as _e,de as Ue,bb as Z,df as se,dg as Oe,ba as ae,r as M,_ as B,c as I,dh as R,di as je,dj as Le,a3 as Fe,f as De,a9 as Be,dk as Re,dl as Ve,a4 as Me,dm as $e,dn as Ge,dp as qe,s as Ne,b6 as He,dq as We}from"./index-C7vAMpwE.js";import{gm as ze,eV as oe,eW as Ye,iB as Je,U9 as Xe,fp as Ke,iL as Ze,iH as et,eX as V,fw as tt,g5 as st,g6 as at,f_ as ot,g2 as ee,g7 as nt,g8 as it,g9 as rt,ga as lt,gb as dt,gc as ct}from"./zeni-epic-state-D7J6ldp5.js";import{D as ut,n as k,S as mt,P as pt}from"./mui-Wlh0ww8-.js";import{u as ht}from"./useAiCfoDashboardSuggestedQuestionsChips-B88ydPFN.js";import{p as St}from"./pathToGoBack-bofP9cDL.js";import"./recharts-D49X9rAt.js";import"./analytics-4jOsnRSg.js";import"./plaid-B7CiXQXe.js";import"./dnd-ALP2Xi80.js";import"./stripe-cKAAJElX.js";import"./lottie-Be-cIbgZ.js";import"./lexical-CIEinSVu.js";import"./pdf-ca3_zM2m.js";import"./utils-DdOI8_Qy.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="9a8e23be-619b-4550-87d0-684a7744dd4c",e._sentryDebugIdIdentifier="sentry-dbid-9a8e23be-619b-4550-87d0-684a7744dd4c")}catch{}})();const ne="chat-response-generated",gt=Ee((function(e,o){const t=oe(e),m=o.isSubmitting,s=t.uiState?.currentChatSessionId,h=s!=null?tt(e.aiCfoState,s):[],S=Ve(e,{allUsers:o.allUsers,onCardPolicyVendorSearchTextChange:o.onCardPolicyVendorSearchTextChange});return{showSampleQuestions:o.sessionFromUrl==="explore"&&t.uiState.currentChatSessionId==null,aiCfoView:t,isSubmitting:m,isNewChatSession:o.sessionFromUrl==="new_chat"||o.sessionFromUrl==="explore",isFullView:!0,tableDownloadEndPoint:`${Me}/tableDownload`,emailLinkQuestion:o.emailLinkQuestion,autoSubmitEmailLinkQuestion:o.autoSubmitEmailLinkQuestion,onEmailLinkQuestionProcessed:o.onEmailLinkQuestionProcessed,routedInitialQuestionSource:o.routedInitialQuestionSource,routedInitialQuestionSuggestionIndex:o.routedInitialQuestionSuggestionIndex,exploreSuggestedPromptQuestions:o.exploreSuggestedPromptQuestions,exploreSuggestedPromptQuestionsLoading:o.exploreSuggestedPromptQuestionsLoading,isFileUploadEnabled:o.isFileUploadEnabled,isUploadPromoVisible:o.isUploadPromoVisible,onUploadPromoClose:o.onUploadPromoClose,skills:st(e).skills,syntheticAnswers:h,resolveSyntheticAnswerCardTile:Ge(e),resolveSyntheticAnswerPolicyTile:$e(e),...S}}),(function(e,o){const{location:t,currentTenant:m,userId:s,navigate:h,currentChatSessionId:S,allSessionsWithOrderedQuestionAnswers:w,isAiCardCreationEnabled:T,isCardPolicyEnabled:v,setIsAiCfoOpen:b}=o,p=m.tenantEmailDomain;return{onEventReceived:(a,l)=>{if(a===ne&&typeof l.text=="string"&&typeof l.metadata=="object"){const d=l,g=rt(d.type),u=d.metadata.chat_session_id??null,{currentChatSession:n,currentQuestionAnswer:x,currentQuestionAnswerSummary:A}=ae(w,u);g!=="answer"?I.trackAICFOChatResponseGenerated(g,x?.question.questionText??"",d.text,u,We(A,n),d.metadata.message_id??null):I.trackAICFOChatAnswerGenerated(d.text,x?.question.questionText??"",(d.follow_up_questions?.length??0)>0,!!d.assumptions,!!d.insights,d.visualization!=null,lt(d.visualization?.type??"")??null,u,d.summarized_title,d.metadata.message_id??null),e(dt({chatSessionId:d.metadata.chat_session_id,responseType:g,fetchState:{fetchState:"Completed",error:void 0}})),e(ct({chatSessionId:d.metadata.chat_session_id,answerPayload:d,userId:s}))}},onSubmit:(a,l,d,g,u)=>{a&&He(e,a,l,S,w,s,g,d,void 0,u)},onFetchSkills:()=>{e(it())},updateCurrentInput:a=>{e(ee(a))},onStopSubmit:()=>{},onUpdateScrollYOffset:a=>{e(nt(a))},onSelectSampleQuestion:()=>{},onBackClick:()=>{h(-1)},onCloseClick:()=>{const a=M(t.state?.pathnameStackToGoBack),l=a.poppedPathname??St(1);h(l,{state:{...t.state,pathnameStackToGoBack:a.newStack}}),e(ee(""))},togglePageView:()=>{const a=M(t.state?.pathnameStackToGoBack),l=a.poppedPathname??`/${m.tenantEmailDomain}/dashboard`;h(l,{state:{...se(t.state),pathnameStackToGoBack:a.newStack,message:"open_ai_cfo_drawer"}}),b(!0)},onCopy:()=>{},onThumbsUp:()=>{},onThumbsDown:()=>{},onTogglePageView:()=>{h(-1)},onNewChatClick:()=>{S!=null&&e(ot());const a=Ne(t.state?.pathnameStackToGoBack,t.pathname);h(`/${m.tenantEmailDomain}/ai-cfo/new_chat`,{state:{pathnameStackToGoBack:a.slice(0,-1),referrer:"Sidebar"}})},onToggleCotCollapsed:(a,l)=>{e(at({questionAnswerId:a,isCollapsed:l}))},onMenuClick:o.onMenuClick,...qe(e,{isAiCardCreationEnabled:T,isCardPolicyEnabled:v,currentChatSessionId:S,onAfterCardsCreationSubmit:()=>{b(!0),h(`/${p}/cards`,{state:{...t.state}})},onAfterCardPolicySubmit:()=>{b(!0),h(`/${p}/cards/policy`,{state:{...t.state}})}})}}))(Be(Re)),Bt=({isFileUploadEnabled:e})=>{const{setIsAiCfoOpen:o}=Te(),t=we(),m=xe(),s=Pe(),[h,S]=r.useState(!1),{allUsers:w,isAiCardCreationEnabled:T,isCardPolicyEnabled:v,onCardPolicyVendorSearchTextChange:b}=ve();r.useEffect((()=>{t(ze())}),[t]);const p=K((i=>oe(i))),a=Ae.getSignedInUser(),{session_id:l}=ye(),d=Qe(),g=Fe(d),u=K((i=>Ye(i))),n=p.uiState.currentChatSessionId,x=u.tenantEmailDomain,{handleUploadPromoClose:A,isUploadPromoVisible:ie}=_e({isFileUploadEnabled:e,tenantEmailDomain:x}),Q=Ue({currentTenant:u,currentChatSessionId:n,aiCfoView:p}),{isSuggestedQuestionsLoading:re,suggestedPromptQuestions:le}=ht(),P=s.state,y=P?.aiCfoInitialQuestion,$=!!P?.aiCfoShouldSubmit;r.useEffect((()=>{const i=s.state;if(i?.[Z]!==!0)return;S(!0);const f={...i};delete f[Z],m(s,{replace:!0,state:f})}),[s.pathname,s.search,s.state,m]);const[de,_]=r.useState(null),[ce,U]=r.useState(!1),[ue,O]=r.useState(void 0),[me,j]=r.useState(void 0),G=r.useRef(!1);r.useEffect((()=>{if(!G.current&&y!=null&&y!==""){const i=s.state;_(y),U($),O(i?.aiCfoInitialSubmissionSource!=null?i.aiCfoInitialSubmissionSource:void 0);const f=i?.aiCfoSuggestionIndex;j(typeof f=="number"?f:void 0),G.current=!0}}),[y,$,s.state]);const pe=r.useCallback((()=>{_(null),U(!1),O(void 0),j(void 0),m(s.pathname,{replace:!0,state:se(s.state)})}),[s.pathname,s.state,m]),q=r.useMemo((()=>new URLSearchParams(s.search)),[s.search]),N=q.get("ref")??P?.aiCfoRef,L=q.get("emailRefId")??P?.aiCfoEmailRefId,H=r.useRef(!1);r.useEffect((()=>{H.current||N!=="month-end-email"||L==null||n!=null||a==null||(t(Je("controller",a.userId,L,"MONTH_END_EMAIL")),H.current=!0)}),[N,L,n,t,a]);const E=p.uiState.lastContextMessage;r.useEffect((()=>{E!=null&&E!==""&&n!=null&&(_(E),U(!0),O(void 0),j(void 0),t(Xe()))}),[E,n,t]);const he=u.masterTOSInfo,C=he?.isMasterTOSAccepted??!1,{visitedSessions:W}=Oe(n),F=p.fetchState,D=p.uiState.chatSessionsNextPageToken.hasMore||!p.uiState.chatSessionsFirstPageFetched,z=n!=null?p.fetchChatSessionHistoryByChatSessionId?.[n]?.fetchState??"Not-Started":"Not-Started",Y=n==null||(p.uiState.chatHistoryNextPageToken[n]?.hasMore??!0),J=p.allSessionsWithOrderedQuestionAnswers,{currentSessionQuestionAnswers:Se}=ae(J,n),ge=Se.length===0;r.useEffect((()=>{C||g||m("../dashboard",{state:{...s.state,message:"open_ai_cfo_drawer"}})}),[C,g,m,s.state]);const fe=r.useCallback((()=>{const i=M(s.state?.pathnameStackToGoBack),f=u.tenantEmailDomain;m(i.poppedPathname??(f!=null?`/${f}/dashboard`:".."),{state:{...s.state,pathnameStackToGoBack:i.newStack}})}),[u.tenantEmailDomain,s.state,m]);r.useEffect((()=>{n!=null&&l!==n&&m(`../ai-cfo/${n}`,{state:{...s.state}})}),[n,l]),r.useEffect((()=>{l!=null&&n==null&&l!=="new_chat"&&l!=="explore"&&t(Ke({sessionId:l,agentId:"controller"}))}),[]);const Ce=r.useMemo((()=>({events:W.map((i=>`private-encrypted-chat-${i}.${ne}`)),eventCallback:(i,f,ke)=>ke.onEventReceived(i,f)})),[W]);r.useEffect((()=>{F!=="In-Progress"&&D&&t(Ze())}),[F,D,t]),r.useEffect((()=>{n!=null&&z!=="In-Progress"&&Y&&a!=null&&F==="Completed"&&!D&&t(et(n,a.userId))}),[z,Y,n,a,t]);const X=i=>i.trackAICFOOnboardingScreenStateChanged("open","first_visit");if(a==null||l==null)throw Error("Can't access AI Controller page without signing in...");const be=n!=null&&p.responseStateByChatSessionId?.[n]?.answer?.fetchState==="In-Progress";if(!C&&g)return c.jsxs(Ct,{children:[c.jsx(B,{analytics:I,onLoad:X}),Q.drawerElement,c.jsx(bt,{children:c.jsx(te,{children:c.jsx(R,{isTOSAccepted:!1,acceptMasterTOSState:p.masterTOSAcceptanceState,onCloseClick:fe,onCompleteClick:()=>{u.userRoleId!=null&&t(V(u.userRoleId))}})})})]});const Ie=c.jsxs(c.Fragment,{children:[h&&!C?c.jsx(B,{analytics:I,onLoad:X}):null,c.jsx(R,{isTOSAccepted:C,acceptMasterTOSState:p.masterTOSAcceptanceState,showHeader:!1,togglePageView:C?()=>S(!1):void 0,onCloseClick:()=>S(!1),onCompleteClick:()=>{C||u.userRoleId==null||t(V(u.userRoleId)),S(!1)}})]});return c.jsxs(c.Fragment,{children:[c.jsxs(ft,{children:[c.jsx(B,{analytics:I,onLoad:i=>i.trackPageLoaded(De.Event.aiCFOPage)}),g&&Q.drawerElement,c.jsx(gt,{...Ce,currentChatSessionId:n,allSessionsWithOrderedQuestionAnswers:J,allUsers:w,isAiCardCreationEnabled:T,isCardPolicyEnabled:v,openOnboardingPage:()=>S(!0),userId:a.userId,setIsAiCfoOpen:o,navigate:m,sessionFromUrl:l,location:s,isSubmitting:be,isEmptyChatWithSession:ge,currentTenant:u,emailLinkQuestion:de??void 0,autoSubmitEmailLinkQuestion:ce,onEmailLinkQuestionProcessed:pe,routedInitialQuestionSource:ue,routedInitialQuestionSuggestionIndex:me,onCardPolicyVendorSearchTextChange:b,onMenuClick:g?Q.open:void 0,isFileUploadEnabled:e,isUploadPromoVisible:ie,onUploadPromoClose:A,exploreSuggestedPromptQuestions:le,exploreSuggestedPromptQuestionsLoading:re}),h&&g?c.jsx(ut,{anchor:"right",open:h,transitionDuration:250,PaperProps:{component:It,style:{width:"100%"}},slotProps:{backdrop:{style:{backgroundColor:"transparent",cursor:"pointer"}}},onClose:()=>S(!1),children:c.jsx(te,{onClick:i=>i.stopPropagation(),children:c.jsx(R,{isTOSAccepted:C,acceptMasterTOSState:p.masterTOSAcceptanceState,onCloseClick:()=>S(!1),onCompleteClick:()=>{C||u.userRoleId==null||t(V(u.userRoleId)),S(!1)}})})}):null]}),h&&!g?c.jsx(je,{open:h,onClose:()=>S(!1),children:c.jsx(Le,{children:Ie})}):null]})},te=k(mt)`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`,ft=k.div`
|
|
6
|
-
height: 100vh;
|
|
7
|
-
width: 100%;
|
|
8
|
-
`,Ct=k.div`
|
|
9
|
-
height: 100vh;
|
|
10
|
-
width: 100%;
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
min-height: 0;
|
|
14
|
-
`,bt=k.div`
|
|
15
|
-
flex: 1;
|
|
16
|
-
min-height: 0;
|
|
17
|
-
display: flex;
|
|
18
|
-
flex-direction: column;
|
|
19
|
-
`,It=k(pt)`
|
|
20
|
-
box-shadow: ${({theme:e})=>e.colors.elevation2};
|
|
21
|
-
color: ${({theme:e})=>e.colors.grey4};
|
|
22
|
-
`;export{Bt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as m}from"./liveblocks-CPUhr7cG.js";import{a as g}from"./sentry-BKza4F3H.js";import{h as w,u as T,g as k,i as x,j as O,n as E}from"./core-DX0hI4Tj.js";import{z as N,be as P,_ as F,c as A,f as V,ag as C,bf as j,au as L,av as U,s as B}from"./index-C7vAMpwE.js";import{eW as h,gk as _,tP as M,gf as R,c7 as z,PA as G,bn as W,rQ as Y,rE as H,l8 as J,mJ as S,PB as Q,bE as Z,cA as D,mT as $,mW as q}from"./zeni-epic-state-D7J6ldp5.js";import"./mui-Wlh0ww8-.js";import{d as K}from"./routePaths-DGHjnhpU.js";import{M as X}from"./MobileAppDrawer-DPnpVzNw.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="5761cf28-c4e6-4162-8d4a-24ea70c20678",t._sentryDebugIdIdentifier="sentry-dbid-5761cf28-c4e6-4162-8d4a-24ea70c20678")}catch{}})();const ee=E((function(t){const a=R(t),i=N.getSignedInUser(),l=h(t),c=l.tenantId,p={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=z(l?.userRole??[])&&a.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=G(t.companyConfigState),n=t.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:a.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:a,allIndustries:e.companyIndustries??[],allNationalityCountries:n,isDisabled:f,authParams:p,filesEndPoint:`${L.fileMicroServiceBaseUrl}`,isZeniUser:W(i)}}),(function(t,a){const{companyId:i,currentTenant:l,navigate:c,location:p}=a,{tenantEmailDomain:f}=l;return{onScheduleClick:e=>{let n=e.href;n.includes("http")||(n="https://".concat(n)),window.open(n,"_blank")},onSaveAll:()=>{t(q())},onAddressClick:e=>{const n=K(f,e),o=B(p.state?.pathnameStackToGoBack,p.pathname);c(n,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{t($({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:n,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=n,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:b}=r,v={companyInfo:{...n,website:u!=""&&u!=null?D(u):void 0,meetingLink:y!=""&&y!=null?D(y):void 0,industry:n.industry.selectedOption,companyIndustryType:n.companyIndustryType?.selectedOption??void 0,companySubIndustry:n.companySubIndustry?.selectedOption??void 0,businessModel:n.businessModel.selectedOption??"",companySourceOfFunds:n.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:n.companySourceOfFundsDescription??void 0,countriesOfOperations:n.countriesOfOperations?.selectedOptions?.map((I=>I.length===2?I:U(I)))??[],transactionVolume:n.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:n.transactionVolumeDescription??void 0,regulatedStatus:n.regulatedStatus??void 0,regulatedStatusDescription:n.regulatedStatusDescription??void 0,usNexus:n.usNexus??void 0,usNexusTypes:n.usNexusTypes?.selectedOptions??[],purposeOfAccount:n.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:n.purposeOfAccountDescription??void 0},incInfo:{typeOfInc:o.typeOfInc.selectedOption??"",stateOfInc:o.stateOfInc.selectedOption??"",incDate:s!=null?Z(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:b.selectedOptions.map((I=>parseInt(I))),fileId:r.fileIds[0]}};t(S({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{t(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{t(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:void 0}]}))},onNewCompanyOfficerRemoved:e=>{t(Q(e))},onCompanyOfficerUpdated:e=>{t(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:e.userId}]}))},updateFilesEntity:e=>{t(J({files:e}))},onDeleteFile:e=>{t(H(e))},onEditFileName:(e,n)=>{t(Y(e,n.split(".")[0]))}}}))(j);function de(){const t=w(),a=T(),i=k(),{tenantEmailDomain:l}=x(),[c,p]=g.useState(!1),[f,e]=g.useState(!1),n=O((s=>s.companyViewState.passportView.fetchState)),o=O((s=>s.companyConfigState.fetchState)),r=O((s=>h(s))),d=r.companyId??N.getSignedInUserTenant(l)?.companyId;if(N.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect((()=>{c||n!=="Not-Started"||d==null||(p(!0),a(_(d)))}),[c,n,d,a]),g.useEffect((()=>{o==="Not-Started"&&a(M())}),[o,a]);const u=s=>{e(s)},y=n==="Not-Started"||n==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&n==="Error"?m.jsx(P,{onGoHome:()=>t("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(F,{analytics:A,onLoad:s=>s.trackPageLoaded(V.Event.companyPassport,C(i)?"Settings":"Company Passport")}),C(i)?m.jsx(X,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:t,location:i,isLoading:y,currentTenant:r,isSettings:C(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{j as C}from"./liveblocks-CPUhr7cG.js";import{a}from"./sentry-BKza4F3H.js";import{u as D,g as v,j as u,N as w}from"./core-DX0hI4Tj.js";import{M7 as O,eW as A,g0 as _,oc as j,gt as h,f$ as U,fz as L,Me as $}from"./zeni-epic-state-D7J6ldp5.js";import{u as F,z as m,L as g,O as k,o as z}from"./index-C7vAMpwE.js";import{n as H}from"./mui-Wlh0ww8-.js";import{t as R}from"./getLocaleForTenant-DiDMSDVJ.js";import{g as M,Q as P}from"./QBOConnectionScreen-DhOl-9x_.js";import"./recharts-D49X9rAt.js";import"./analytics-4jOsnRSg.js";import"./plaid-B7CiXQXe.js";import"./dnd-ALP2Xi80.js";import"./stripe-cKAAJElX.js";import"./lottie-Be-cIbgZ.js";import"./lexical-CIEinSVu.js";import"./pdf-ca3_zM2m.js";import"./utils-DdOI8_Qy.js";import"./empty-BpEutNe3.js";import"./pdf-lib-Be1Qg4G4.js";import"./index-DqG9AY5b.js";import"./url-Dr5UUWLE.js";import"./index-zHyFO506.js";import"./decodeURIComponentSafe-WcasGT-q.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]="d43f4410-36ec-4fa7-a705-fdb9af959ca7",t._sentryDebugIdIdentifier="sentry-dbid-d43f4410-36ec-4fa7-a705-fdb9af959ca7")}catch{}})();const G=H.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 ${z.sp1} ${t.theme.colors.dropShadowNormal}`};
|
|
11
|
-
`;function ce(){const t=D(),i=v(),{setLoading:d,clearAllLoading:x}=F(),c=a.useRef(!1),p=a.useRef(!1),{code:b,realmId:T,state:y}=M(i.search),N=b!==""&&T!==""&&y!=="",I=u((l=>O(l))),e=u((l=>A(l))),n=u((l=>l.tenantState.fetchState)),r=u((l=>l.tenantState.activeTenantFetchState.fetchState)),o=m.getSignedInUser(),f=m.getActiveTenantForUser()?.tenantId,s=e?.externalConnections?.fetchState,E=e?.externalConnections?.saveConnectionState,S=e.externalConnections?.accounting[0]?.isValid;return a.useLayoutEffect((()=>{d(g.CONNECTION_AUTH)}),[d]),a.useEffect((()=>{c.current||o==null||f==null||(c.current=!0,n==="Completed"||r!=="Not-Started"&&r!=="Error"||(d(g.TENANT_FETCHING),t(_(o.userId,f))))}),[c,n,d]),a.useEffect((()=>{e.tenantId==null&&!p.current&&o!=null&&(p.current=!0,!(f==null||f!=null&&(r==="Completed"||r==="Error"))||n!=="Not-Started"&&n!=="Error"||t(j(o.userId)))}),[p,n,r]),a.useEffect((()=>{o==null||e?.tenantId==null||e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||s==="In-Progress"||E!=="Error"||(d(g.CONNECTION_AUTH),t(h(o.userId,e.tenantId)))}),[E]),a.useEffect((()=>{n!=="Completed"&&r!=="Completed"||o==null||e?.tenantId==null||(t(U(e.tenantId)),m.saveActiveTenantDomainForUser(e.tenantEmailDomain),L(o?.userId,o?.zeniSessionId,e.tenantId),k.updateAppLocaleID(R($(e))),e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||s==="In-Progress"||o==null||e==null||t(h(o.userId,e.tenantId)))}),[n,r,s]),a.useEffect((()=>{I.tenantsCoreDetailsInOrder.length>0&&n==="Completed"&&m.saveSignedInUserTenants(I.tenantsCoreDetailsInOrder)}),[I.tenantsCoreDetailsInOrder.length,n]),a.useEffect((()=>{n!=="Completed"&&n!=="Error"||r!=="Completed"&&r!=="Error"||s!=="Completed"&&s!=="Error"||x()}),[n,r,s]),e==null||n!=="Completed"&&r!=="Completed"||s!=="Completed"?null:N||S!==!0?C.jsx(G,{children:C.jsx(P,{})}):C.jsx(w,{to:"/",replace:!0})}export{ce as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-CPUhr7cG.js";import{z as n}from"./index-C7vAMpwE.js";import{g as d}from"./QBOConnectionScreen-DhOl-9x_.js";import"./sentry-BKza4F3H.js";import{g as p,N as s}from"./core-DX0hI4Tj.js";import"./zeni-epic-state-D7J6ldp5.js";import"./recharts-D49X9rAt.js";import"./mui-Wlh0ww8-.js";import"./analytics-4jOsnRSg.js";import"./plaid-B7CiXQXe.js";import"./dnd-ALP2Xi80.js";import"./stripe-cKAAJElX.js";import"./lottie-Be-cIbgZ.js";import"./lexical-CIEinSVu.js";import"./pdf-ca3_zM2m.js";import"./utils-DdOI8_Qy.js";import"./empty-BpEutNe3.js";import"./pdf-lib-Be1Qg4G4.js";import"./index-DqG9AY5b.js";import"./url-Dr5UUWLE.js";import"./index-zHyFO506.js";import"./decodeURIComponentSafe-WcasGT-q.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]="817363c8-7f1d-4590-b58b-cef70b99ca15",t._sentryDebugIdIdentifier="sentry-dbid-817363c8-7f1d-4590-b58b-cef70b99ca15")}catch{}})();const U=()=>{const t=p(),{code:o,realmId:r,state:e}=d(t.search),m=n.getSignedInUser()?.userId??"";if(f(o,r,e,m)===!0){const a=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return i.jsx(s,{to:a})}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-CPUhr7cG.js";import{h as w,g as C,j as f,n as A,i as B}from"./core-DX0hI4Tj.js";import{Qe as k,Ql as _,gi as W,gh as J,gg as M,jx as X,No as q,rH as K,eW as V,PM as D,jv as T,Qf as v,Qo as j,jt as F,jQ as G}from"./zeni-epic-state-D7J6ldp5.js";import{bz as L,J as N,A as R,z as U,y as Q,r as p,X as S,B as z,bA as Y,o as H,bB as ee,s as te}from"./index-C7vAMpwE.js";import{n as O}from"./mui-Wlh0ww8-.js";import"./sentry-BKza4F3H.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]="9860cbee-9d75-4542-a9ba-b514e2a55ebe",e._sentryDebugIdIdentifier="sentry-dbid-9860cbee-9d75-4542-a9ba-b514e2a55ebe")}catch{}})();const ne=A(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(K(n))},onGetOtp:n=>{e(M(n,"BillPayVendor"))},onResendOtp:n=>{e(J(n,"BillPayVendor"))},onVerifyOtp:(n,a)=>{e(W(n,a,"BillPayVendor"))},onVerifyOtpSuccess:(n,a,o)=>{e(_(n,a,o))}}}))(L);function Z({vendorId:e,billId:t,isExpressPayPage:n}){const a=w(),o=C(),s=f((i=>k(i,e)));return l.jsx(ne,{location:o,navigate:a,vendorId:e,billId:t,vendorViewDetails:s,isExpressPayPage:n??!1})}const ae=O.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`,oe=A((function(e,t){const{vendorId:n,billId:a}=t,o=k(e,n),s=D(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,a);return{billId:a,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}}),(function(e,t){const{navigate:n,location:a,vendorId:o}=t;return{onFetchBankName:s=>{e(G(s))},onSaveHandler:s=>{e(F(t.bankAccountContext,s,"standard",o))},onCancel:()=>{(()=>{const s=p(a.state?.pathnameStackToGoBack),i=s.poppedPathname??E();n(i,{state:{pathnameStackToGoBack:s.newStack}})})(),e(v())},onACHDetailsUpdated:s=>{const{bankAccountSection:i}=s;e(j({data:i}))},onBackClick:()=>{if(e(T({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")n("../",{relative:"path"});else{const s=p(t.location.state?.pathnameStackToGoBack),i=s.poppedPathname??E(0);t.navigate(i,{state:{pathnameStackToGoBack:s.newStack}})}e(v())}}}))(Y);function me({vendorIdParam:e,accountContext:t}){const n=w(),a=C(),o=N(),{vendorId:s,billId:i}=B(),d=e??s,{useFeatureGate:r}=R(),c=U.getSignedInUser(),b=f((u=>V(u))),g=Q(),x=p(a.state?.pathnameStackToGoBack),m=t??(x.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),h=f((u=>k(u,d))),{isFeatureEnabled:I}=r(S.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=r(S.isDepositAccountsFeatureEnabled);if(c==null)throw Error("Can't access address page without signing in...");return m==="billDetail"&&h.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(z,{fetchState:h.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:g.colors.grey5}}):l.jsxs(ae,{windowSize:o,children:[l.jsx(Z,{vendorId:d,billId:i}),l.jsx(oe,{location:a,navigate:n,billId:i,vendorId:d,currentTenant:b,bankAccountContext:m,isVendorRecommendationEnabled:I,isZeniAccountsFeatureEnabled:y})]})}const E=(e=2)=>{let t="../";for(let n=0;n<e;n++)t=`${t}../`;return t},he=(e,t,n)=>{let a=`/${e}/bill/${encodeURIComponent(t)}`;return n=="draft"&&(a+="/edit"),a},fe=e=>`/${e}/bills`,ke=(e,t)=>{let n=`/${e}/bill`;return n=t!=null?n.concat(`/${t}/edit`):n.concat("/new"),n},P=(e,t,n,a)=>{let o=`/${e}/bill`;return o+=n!=null?`/${n}/edit/vendor`:"/new/vendor",o+=a!=null?`/${a}/edit/${t}`:`/create/${t}`,o};function ve(e,t,n){return P(e,"ach",t,n)}function Se(e,t,n){return P(e,"domestic",t,n)}function ge(e,t,n){return P(e,"international",t,n)}const se=(e,t,n)=>{let a=`/${e}/bill/`;return a=n!=null?a.concat(`${encodeURIComponent(n)}/${t}/`):a.concat(`new/${t}/`),a},re=O.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 ${H.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
18
|
-
`,ie=A((function(e,t){const{vendorId:n,billId:a}=t,o=k(e,n),s=D(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,a);return{billId:a,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}}),(function(e,t){const{billId:n,navigate:a,location:o,vendorId:s,currentTenant:i}=t,{tenantEmailDomain:d}=i;return{onFetchBankName:r=>{e(G(r))},onSaveHandler:r=>{e(F(t.bankAccountContext,r,"us-domestic",s))},onWireDetailsUpdated:r=>{const{bankAccountSection:c}=r;e(j({data:c}))},onCancel:()=>{(()=>{const r=p(o.state?.pathnameStackToGoBack),c=r.poppedPathname??$();a(c,{state:{pathnameStackToGoBack:r.newStack}})})(),e(v())},onAddressClick:r=>{if(t.bankAccountContext==="express-pay")a("./add-address");else{const c=se(d,r,n),b=te(o.state?.pathnameStackToGoBack,o.pathname);a(c,{state:{pathnameStackToGoBack:b}})}},onBackClick:()=>{if(e(T({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")a("../",{relative:"path"});else{const r=p(t.location.state?.pathnameStackToGoBack),c=r.poppedPathname??$(0);t.navigate(c,{state:{pathnameStackToGoBack:r.newStack}})}e(v())}}}))(ee);function xe({vendorIdParam:e,accountContext:t}){const n=w(),a=C(),o=N(),{vendorId:s,billId:i}=B(),d=e??s,r=U.getSignedInUser(),{useFeatureGate:c}=R(),b=Q(),g=f((u=>V(u))),x=p(a.state?.pathnameStackToGoBack),m=t??(x.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),h=f((u=>k(u,d))),{isFeatureEnabled:I}=c(S.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=c(S.isDepositAccountsFeatureEnabled);if(r==null)throw Error("Can't access address page without signing in...");return m==="billDetail"&&h.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(z,{fetchState:h.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:b.colors.grey5,boxShadow:`0px 2px ${H.sp1} ${b.colors.dropShadowNormal}`}}):l.jsxs(re,{windowSize:o,children:[l.jsx(Z,{vendorId:d,billId:i}),l.jsx(ie,{location:a,navigate:n,billId:i,vendorId:d,currentTenant:g,bankAccountContext:m,isVendorRecommendationEnabled:I,isZeniAccountsFeatureEnabled:y})]})}const $=(e=2)=>{let t="../";for(let n=0;n<e;n++)t=`${t}../`;return t};export{me as A,xe as D,Z as V,he as a,se as b,ke as c,Se as d,fe as g,ge as i,ve as v};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-CPUhr7cG.js";import{J as b,C as l,y as c}from"./index-C7vAMpwE.js";import{D as f}from"./mui-Wlh0ww8-.js";import"./sentry-BKza4F3H.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="cbe115b8-fbab-4acf-b3b1-0a78dd11e74a",e._sentryDebugIdIdentifier="sentry-dbid-cbe115b8-fbab-4acf-b3b1-0a78dd11e74a")}catch{}})();const p={drawerLeftMargin:new l(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:n,onClose:t}=e,a=b(),s=o?.valuePx(a)??p.drawerLeftMargin.valuePx(a),d=c();return i.jsx(f,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${s})`}},slotProps:{backdrop:{style:{backgroundColor:d.colors.black,opacity:.8,cursor:"pointer"}}},onClose:t,children:n})}export{h as D};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CPUhr7cG.js";import{a as d}from"./sentry-BKza4F3H.js";import{h as A,u as B,g as q,i as G,j as l,N as O,n as F,o as _,p as W}from"./core-DX0hI4Tj.js";import{Ow as z,eW as K,NU as M,lA as R,Kp as k,OB as Y,Nn as $,kA as U,Kq as S,NZ as V,N_ as X,Np as Z,No as H}from"./zeni-epic-state-D7J6ldp5.js";import{aX as J,c as L,r as Q,s as tt}from"./index-C7vAMpwE.js";import"./mui-Wlh0ww8-.js";import{d as b}from"./decodeURIComponentSafe-WcasGT-q.js";import{w as et}from"./withTransactionSidePanel-ZsvmJkYL.js";import{f as at,c as nt}from"./routePaths-DGHjnhpU.js";import"./recharts-D49X9rAt.js";import"./analytics-4jOsnRSg.js";import"./plaid-B7CiXQXe.js";import"./dnd-ALP2Xi80.js";import"./stripe-cKAAJElX.js";import"./lottie-Be-cIbgZ.js";import"./lexical-CIEinSVu.js";import"./pdf-ca3_zM2m.js";import"./utils-DdOI8_Qy.js";import"./useAskAiCfoHostNavButtonProps-DQl9y6iE.js";import"./TransactionDetailScreen-lfSrrM4Y.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="21bc137b-588f-4297-a342-8191817ebb5f",a._sentryDebugIdIdentifier="sentry-dbid-21bc137b-588f-4297-a342-8191817ebb5f")}catch{}})();const ot=F((function(a,t){const e=t.entity,o=Y(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:$(a,"common")},trendWithTransactionsReport:o,analytics:L,isAccountingClassesEnabled:U(a)}}),(function(a,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const o=`${nt(e,t.tenantEmailDomain)}`,c=tt(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(o,{state:{pathnameStackToGoBack:c}})},autoCompleteActions:{onAutoCompleteInputChange:e=>{e.trim().length>=2?a(Z({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(H("common"))},onAutoCompleteEntity:e=>{const o=at(e,t.tenantEmailDomain);a(V()),a(X()),t.resetTrendIsFetchedStates(),t.navigate(o,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=Q(t.location.state?.pathnameStackToGoBack),o=e.poppedPathname??I();t.navigate(o,{state:{pathnameStackToGoBack:e.newStack}})}},onTrendSelectedPeriodChange:e=>{if(t.closeSidePanel?.(),e==null)t.defaultTransactionTimePeriod!=null&&a(S(t.entity,"EntityDetail",{timeframe:"quarter",timePeriod:t.defaultTransactionTimePeriod}));else{const o=e.currentTimePeriod==null?e.addTimePeriod:{startDate:e.addTimePeriod.startDate,endDate:e.currentTimePeriod.endDate};a(k(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),a(S(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:o}))}}}}))(J),it=et((function({entityType:a,...t}){const e=A(),o=B(),c=q(),[m,T]=d.useState(!1),[h,D]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:N,entityNameEncoded:w}=G(),r=b(N??""),p=b(w??""),f=rt(r,p),x=[r,p].filter((n=>n!=null)),i={name:p,id:r,type:a,zeniId:r,qboId:r},g=l((n=>z(n.customerIncomeState,n.vendorExpenseState,n.trendState,i,"quarter"))),j=l((n=>K(n).company?.companyInfo.firstMonthOfFY??1)),u=l((n=>M(n.trendWithTransactionsState,i,"EntityDetail")));d.useEffect((()=>{m===!1&&f===!0&&(T(!0),o(R(i)))}),[m,f,i]);const E=l((n=>n.trendState.fetchState)),P=u?.selectedPeriod?.timePeriod??g,v=(function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y})(u?.selectedPeriod?.timePeriod,g);return d.useEffect((()=>{m===!0&&h===!1&&E==="Completed"&&(D(!0),P!=null&&o(k(i,"EntityDetail",{timeframe:u?.selectedPeriod?.timeframe??"quarter",timePeriod:P})))}),[m,h,E]),f?s.jsx(ot,{firstMonthOfFY:j,tenantEmailDomain:C,location:c,navigate:e,entity:i,defaultTransactionTimePeriod:v,resetTrendIsFetchedStates:()=>{T(!1),D(!1)},...t}):s.jsx(O,{to:I(x.length)})})),rt=(a,t)=>t!=null&&t.length>0&&a!=null&&a.length>0,I=(a=2)=>{let t="../";for(let e=0;e<a;e++)t=`${t}../`;return t};function Nt({entityType:a}){return s.jsx(_,{children:s.jsx(W,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:a})})})}export{Nt as EntityDetailRoutes,Nt as default};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import{j as I}from"./liveblocks-CPUhr7cG.js";import ia from"./NotFoundScreen-bK1Cn_wC.js";import{a,b as Ht}from"./sentry-BKza4F3H.js";import{n as ze,S as la}from"./mui-Wlh0ww8-.js";import{u as Ce,h as Zt,g as Ze,j as x,n as ra,i as Dt,o as da,p as Ye}from"./core-DX0hI4Tj.js";import{eW as _e,Tc as ua,om as Te,fX as ma,si as pa,ef as ha,fh as Ca,Td as Ft,Te as Fe,p4 as ga,Tf as Sa,pj as fa,oE as Wt,oC as ie,Tg as Xt,Th as Ia,oZ as en,pf as Ea,Ti as tn,ox as ka,rQ as Ta,fI as ke,Tj as Ve,uo as nn,EK as an,Tk as on,Tl as ya,ro as We,Ox as Ut,Oz as ba,kD as va,OA as Aa,kK as wa,c_ as Pa,vE as Xe,oK as sn,pn as Be,p0 as Ra,Tm as xa,Np as _t,No as De,Tn as Vt,k$ as Da,To as Fa,Tp as Ua,Tq as _a,Tr as Va,oR as Ba,pq as Ue,Ts as Oa,Tt as za,Tu as Ma,px as La,kO as ja,kF as $a,Tv as qa,kN as Bt,OH as Ga,Tw as Na,Tx as Ja,rk as Ya,qY as Ka,po as he,qX as Ke,Ty as Qa,Tz as Ha,TA as Za,mi as Wa,bo as Xa,md as Ot,l$ as eo,TB as to,fy as zt,gy as no,ma as ao,xx as oo,TC as so,pY as co,pT as io,pX as lo,pI as ro,TD as uo,fL as cn,p8 as mo,oN as po,fY as Mt,ps as ho,TE as Co,TF as go,pp as ln,TG as So,TH as fo,TI as Io,TJ as Eo,TK as Lt,rw as ko,qP as To,Nn as yo,TL as bo,TM as vo,kM as Ao,TN as wo,Jq as Po,kL as Ro,kA as xo,fK as Do,ql as rn,qH as Fo,pm as jt,pr as Uo,bE as _o,m7 as Vo,m4 as Bo,TO as Oo,pH as $t,qD as qt,qB as zo,TP as Mo,qq as Lo,q6 as jo,qE as $o,TQ as qo,TR as Go,qa as No,TS as Jo,q1 as Yo,q9 as Ko,q7 as Qo,qK as Ho}from"./zeni-epic-state-D7J6ldp5.js";import{A as Oe,X as Y,c as N,s as ce,Z as dn,a0 as un,cZ as Zo,z as Me,c_ as Wo,c$ as Xo,au as ye,d0 as es,aZ as Gt,B as mn,d1 as ts,ar as Qe,O as ns,a9 as as,d2 as os,a4 as ss,d3 as cs,Y as is,d4 as ls,d5 as rs,w as ds,T as us,aS as ms,d6 as ps,d7 as hs,be as Cs,C as gs,aV as Ss}from"./index-C7vAMpwE.js";import{u as pn}from"./useAskAiCfoHostNavButtonProps-DQl9y6iE.js";import{f as Nt,a as fs,b as Is,g as Es,C as ks}from"./TransactionDetailScreen-lfSrrM4Y.js";import{w as Ts}from"./withTransactionSidePanel-ZsvmJkYL.js";import{h as ys,v as bs}from"./routePaths-DGHjnhpU.js";import{g as He}from"./accountMappingHelper-CLGTWOoZ.js";import{D as vs}from"./DrawerScreen-CNi8v2mr.js";import"./recharts-D49X9rAt.js";import"./analytics-4jOsnRSg.js";import"./plaid-B7CiXQXe.js";import"./dnd-ALP2Xi80.js";import"./stripe-cKAAJElX.js";import"./lottie-Be-cIbgZ.js";import"./lexical-CIEinSVu.js";import"./pdf-ca3_zM2m.js";import"./utils-DdOI8_Qy.js";import"./decodeURIComponentSafe-WcasGT-q.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]="25aea337-421a-4446-ae84-90f75457af74",t._sentryDebugIdIdentifier="sentry-dbid-25aea337-421a-4446-ae84-90f75457af74")}catch{}})();const As=()=>{const t=Ce(),i=Zt(),P=Ze(),y=x((m=>_e(m))),{useFeatureGate:v}=Oe(),{isFeatureEnabled:r}=v(Y.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:h}=v(Y.aiAuditScorePercentage),k=x((m=>m.expenseAutomationViewState.selectedPeriodByTenantId)),c=x((m=>ua(m,y.tenantId))),{isAiCfoAccessEnabled:S,onAskAiCfoClick:g}=pn({mobileExploreReferrer:"Month-End Close Overview"}),R=a.useCallback(((m,V,le=!1)=>{t(Te({tenantId:V,period:{month:m.month,year:m.year},refreshViewInBackground:le}))}),[]),w=a.useCallback((m=>{const V=P.state?.referrer;c.monthEndCloseChecks?.auditSummary!=null&&N.trackMonthCloseAuditPage(m.month,m.year,c.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",c.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,V??null),t(ma(y.tenantId,m))}),[y.tenantId,c.monthEndCloseChecks?.auditSummary,c.monthEndCloseChecks?.reportEmailSentDate]),d=k[y.tenantId],C=a.useCallback((()=>{const m=P.state?.referrer;c.monthEndCloseChecks?.auditSummary!=null&&N.trackMonthCloseAuditPage(d.month,d.year,c.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",c.monthEndCloseChecks.auditSummary.auditScorePercentage,!0,m??null),R(d,y.tenantId,!0)}),[R,d,y.tenantId,c.monthEndCloseChecks?.auditSummary,c.monthEndCloseChecks?.reportEmailSentDate]),M=ce(P.state?.pathnameStackToGoBack,P.pathname),q=a.useCallback((()=>{if(c.monthEndCloseChecks!=null&&d!=null){const m=c.monthEndCloseChecks.monthEndCloseCheckList.find((V=>V.progress<100));if(m!=null)return void i(`./${m.id}/${d.month}-${d.year}`,{state:{pathnameStackToGoBack:M,message:"comingFromOverview"}});i(`./month_end_insights/${d.month}-${d.year}`,{state:{pathnameStackToGoBack:M,message:"comingFromOverview"}})}}),[c.monthEndCloseChecks,d]),{areTenantIdsInSync:u}=dn();return un({isDataReady:c.fetchState==="Completed"}),a.useEffect((()=>{d!=null&&c.fetchState!=="In-Progress"&&c.fetchState!=="Completed"&&u&&R(d,y.tenantId)}),[R,d,c.fetchState,y.tenantId,u]),a.useEffect((()=>{d!=null&&c.monthClosePerformanceTrendFetchStatus.fetchState!=="In-Progress"&&c.monthClosePerformanceTrendFetchStatus.fetchState!=="Completed"&&u&&t(pa(d))}),[d,c.monthClosePerformanceTrendFetchStatus.fetchState,u]),a.useEffect((()=>{const m=setInterval((()=>{c.fetchState!=="In-Progress"&&c.fetchState==="Completed"&&C()}),3e5);return()=>clearInterval(m)}),[c.fetchState]),a.useEffect((()=>{if(c.fetchState==="Completed"&&c.monthEndCloseChecks?.auditSummary!=null){const m=P.state?.referrer;N.trackMonthCloseAuditPage(c.selectedPeriod.month,c.selectedPeriod.year,c.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",c.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,m??null)}}),[c.fetchState,c.selectedPeriod,c.monthEndCloseChecks?.auditSummary,c.monthEndCloseChecks?.reportEmailSentDate]),I.jsx(ws,{children:I.jsx(Zo,{monthEndCloseChecksView:c,isRealtimeInsightsFeatureEnabled:r,onMonthEndCheckClick:m=>{i(`./${m}/${d.month}-${d.year}`,{state:{pathnameStackToGoBack:M,message:"comingFromOverview",referrer:"Expense Automation - Overview"}})},onPeriodChange:w,handleReviewButtonClick:q,onBackClick:()=>{i("../../dashboard")},onReload:C,isAiCfoAccessEnabled:S,onAskAiCfoClick:g,aiAuditScorePercentageEnabled:h})})},ws=ze.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
background-color: ${t=>t.theme.colors.grey4};
|
|
8
|
-
`,Ps=Ht.memo((({reconciliation:t,selectedDrawerAccountId:i,onClose:P,onFetchLinkTokenClick:y,onEstablishConnectionClick:v})=>{const r=Ce(),{useFeatureGate:h}=Oe(),{isFeatureEnabled:k}=h(Y.isReconV3Enabled),c=Me.getSignedInUser(),S=x((b=>_e(b))),g=t.excludedAccountIDs,R=a.useMemo((()=>({userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:S?.tenantId??""})),[c?.userId,c?.zeniSessionId,S?.tenantId]),{accountReconciliationsByAccountID:w,monthYearPeriod:d,statementUploadChosen:C}=t,M=w[i],q=M?.parsedStatementData?.statementUpload?.statementMeta?.statementUploadId??M?.accountReconEntity.statementMetaData?.statementUploadId,u=M?.statementDateConflict?.previousReconciliationInfo?.reconciledByUserId,m=x((b=>u!=null&&u!==""?ha(Ca(b.userState,u)):"")),V=a.useCallback((()=>{r(Ft({accountId:i,selectedPeriod:d}))}),[r,i,d]),le=a.useCallback((()=>{r(Ft({accountId:i,selectedPeriod:d})),r(Fe({statementUploadChosen:!0}))}),[r,i,d]),X=(b,H)=>{r(Ta(b,H.split(".")[0]))},ee=b=>{q!=null&&r(ka({accountId:i,selectedPeriod:d,fileId:b,statementUploadId:q}))},z=()=>{r(Fe({statementUploadChosen:!1}))},p=b=>{r(Ea({accountId:i,selectedPeriod:d,payload:b}))},e=a.useCallback(((b,H,re)=>{r(ga({accountId:b,selectedPeriod:H,statementUploadId:re}))}),[r]),n=a.useCallback((b=>{r(Sa({accountId:i,selectedPeriod:d,statementUpdateLocalData:b}))}),[r,i,d]),s=a.useCallback((()=>{q!=null&&r(fa({accountId:i,selectedPeriod:d,statementUploadId:q}))}),[r,i,d,q]),l=a.useCallback((()=>{r(Fe({statementUploadChosen:!0}))}),[r]),T=b=>{r(tn({accountId:i,selectedPeriod:d,localData:{accountSource:b}}))},E=a.useCallback((()=>{r(Wt({accountId:i}))}),[r,i]),f=a.useCallback((b=>{r(ie(d,b)),P()}),[r,d,P]),A=a.useCallback((()=>{r(Xt({statementProcessingFailed:!1})),r(Ia({accountId:i,selectedPeriod:d}))}),[r,i,d]),F=a.useCallback((()=>{r(en({accountId:i}))}),[r,i]),B=g.includes(i)?t.excludedAccountReconciliationByAccountID[i]:void 0;if(B!=null)return I.jsx(Jt,{children:I.jsx(Yt,{$isV3:k===!0,children:I.jsx(Wo,{excludedAccountReconciliation:B,includeAccountFetch:t.includeAccountFetchState,isReconV3Enabled:k,onDismissClick:P,onIncludeIntoReconciliation:F})})});if(M!=null){const b=k===!0?I.jsx(Xo,{excludeAccountFetch:t.excludeAccountFetchState,accountReconciliation:M,monthYearPeriod:d,onDismissClick:P,plaidConnectionDetails:t.plaidConnectionDetails,onFetchLinkTokenClick:y,onEstablishConnectionClick:v,onEditFileName:X,onDeleteFile:ee,onSelectSourceType:T,filesEndPoint:ye.fileMicroServiceBaseUrl,authParams:R,openFilePicker:C,onStatementUploadSuccess:p,onUploadWindowOpenedOnce:z,onExcludeFromReconciliation:E,onRetryParsing:e,onReviewClicked:f,statementProcessingFailed:t.statementProcessingFailed,onDismissStatementProcessingFailed:A,onReuploadStatement:l,onStatementFormDataChange:n,onStatementConfirmSave:s,reconciledByName:m,onDismissDateConflict:V,onReuploadAfterDateConflict:le,isReconV3Enabled:k}):I.jsx(es,{excludeAccountFetch:t.excludeAccountFetchState,accountReconciliation:M,monthYearPeriod:d,onDismissClick:P,plaidConnectionDetails:t.plaidConnectionDetails,onFetchLinkTokenClick:y,onEstablishConnectionClick:v,onEditFileName:X,onDeleteFile:ee,onSelectSourceType:T,filesEndPoint:ye.fileMicroServiceBaseUrl,authParams:R,openFilePicker:C,onStatementUploadSuccess:p,onUploadWindowOpenedOnce:z,onExcludeFromReconciliation:E});return I.jsx(Jt,{children:I.jsx(Yt,{$isV3:k===!0,children:b})})}return null})),Jt=ze.div`
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
height: 100%;
|
|
12
|
-
`,Yt=ze.div`
|
|
13
|
-
flex: 1;
|
|
14
|
-
min-height: 0;
|
|
15
|
-
display: flex;
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
box-sizing: border-box;
|
|
18
|
-
min-width: 0;
|
|
19
|
-
overflow-x: hidden;
|
|
20
|
-
overflow-y: ${t=>t.$isV3===!0?"hidden":"auto"};
|
|
21
|
-
`;function Rs({companyId:t,closeCustomerRequestDrawer:i,addCustomerRequest:P,resetCustomerRequest:y}){const v=Me.getSignedInUser();if(v==null)throw Error("Can't access Customer Request page without signing in...");const r=x((h=>ya(h,t,v)));return a.useEffect((()=>{y()}),[]),I.jsx(I.Fragment,{children:r.fetchState==="In-Progress"||r.companyMonthEndReportTemplatesData.fetchState==="In-Progress"?I.jsx(mn,{fetchState:"In-Progress"}):I.jsx(ts,{onCloseClick:i,addCustomerRequest:P,snippets:r.companyMonthEndReportTemplatesData,bulletPoints:r.zeniRequestsData??[]})})}const xs=t=>t.sections.generalExpense.vendors.length+t.sections.reimbursement.vendors.length,hn="reconciliation-status-updated",Cn="statement-status-updated",{common:{strings:{hyphen:Ds,comma:Kt,space:Fs}},dateFormat:gn}=ns.getLocalizedStrings(),Qt=Ho,Us=ra((function(t,i){const{uncategorizedAccounts:P,vendorSearchAutoCompleteData:y,monthEndInsightsCustomerRequestData:v,monthEndInsightsPreviewMode:r,companyId:h,isMissingReceiptsBulkUploadEnabled:k,isTransactionActivityEnabled:c}=i,S=Me.getSignedInUser(),g=t.tenantState.currentTenantId,R={userId:S?.userId??"",sessionId:S?.zeniSessionId??"",tenantId:g??""},w=ke(t),{selectedTransactionCategorizationTab:d}=w;return{expenseAutomationViewSelector:w,bulkUploadSelector:k===!0?w.missingReceipts.bulkUpload:void 0,vendorSearchAutoCompleteData:y,authParams:R,receiptUploadEndpoint:`${ye.accountMicroServiceBaseUrl}`,transactionAttachmentsEndpoint:`${ss}/transaction_attachments`,bulkUploadEndpoint:k===!0?`${ye.communicationAgentMicroServiceBaseUrl}/1.0/receipts/bulk-upload`:void 0,isDisabled:!1,currentTab:d,monthEndInsightsCustomerRequestData:v,monthEndInsightsPreviewMode:r,allThreadsSectionOpen:!1,enableMonthEndInsightsZeniGPTFeature:!1,loggedInUser:S,uncategorizedAccounts:P,companyId:h,isTransactionActivityEnabled:c}}),(function(t,i){const{themeState:P,isAccountingClassesEnabled:y,isCOTEnabled:v,isUncategorizedExpenseCategoryEnabled:r,isMissingReceiptsBulkUploadEnabled:h,location:k,vendorSearchAutoCompleteData:c,expenseAutomationViewSelector:S,currentTenant:g,uncategorizedAccounts:R,navigate:w,onClickCustomerRequest:d,handleEditClick:C,setActivityLogTransactionId:M,isReconV3Enabled:q}=i,{selectedPeriod:u,currentSelectedView:m,reconciliation:{selectedAccountId:V,selectedDrawerAccountId:le}}=S,{accountSettingsView:X}=S.jeSchedules,ee=sn(u),z=Be(ee.start),p=Be(ee.end);return{onZeniLogoClick:()=>{P.toggle()},onUploadReceiptAttachment:e=>{N.trackMissingReceiptAttached(u.month,u.year),t(To(e))},onUploadTransactionReceipt:(e,n,s,l,T,E)=>{t(Lt(e,n,{fetchState:"In-Progress"}));const f=()=>t(Lt(e,n,{fetchState:"Error"}));cs(`${ye.accountMicroServiceBaseUrl}/1.0/transactions/${n}/attachments`,E,n,s,l,T).then((A=>{A!=null?t(ko(e,A)):f()})).catch(f)},onMissingReceiptsRowClick:(e,n)=>{if(i.openTransactionPanel)return void i.openTransactionPanel(e,n);const s=ce(k.state?.pathnameStackToGoBack,k.pathname);w(`../../transaction/${n}/${e}`,{state:{pathnameStackToGoBack:s,message:"expenseAutomation",origin:"missing_receipts"}})},onUploadReceiptComplete:(e,n)=>{t(Eo(e,n)),g!=null&&t(Te({tenantId:g.tenantId,period:n,refreshViewInBackground:!0}))},onUploadReceiptFetchStatus:(e,n,s,l)=>{t(Io(e,{fetchState:n,error:s})),s!=null&&t(zt({messageSection:"missing_receipts_attachment",messageText:"failed",type:"error",showStatusIcon:!0,variables:[{variableName:"__message__",variableValue:l!=null?Fs+Ds+l+Kt:Kt}]}))},onUpdateJESchedulesUIState:e=>{t(fo(e))},onUpdateMissingReceiptsUIState:e=>{t(So(e))},onFetchMissingReceiptsList:()=>{p!=null&&z!=null&&t(ln({start:z,end:p},{amount:75,currencyCode:"USD",currencySymbol:"$"},!0,!1))},...h===!0?{onBulkUploadFiles:e=>{t(Qo(e))},onBulkUploadProgress:e=>{t(Ko(e))},onBulkUploadSuccess:e=>{t(Yo({batchId:e}))},onBulkUploadUploadedFileCount:e=>{t(Jo(e))},onConfirmBulkUploadMatch:(e,n,s,l,T)=>{t(No(e,n,s,l,T))},onBulkUploadConfirmMatchAcknowledged:()=>{t(Go())},onSetBulkUploadResultsTab:e=>{t(qo(e))},onSetBulkUploadCompletedSubTab:e=>{t($o(e))},onSetBulkUploadSortConfig:(e,n)=>{t(qt({sortKey:e,sortOrder:n}))},onClearBulkUpload:()=>{t(jo())},onSearchTransactionsForManualMatch:(e,n)=>{t(Qt(e,n??void 0))},onLoadMoreManualSearch:()=>{const{manualSearch:e}=S.missingReceipts.bulkUpload;e.nextPageToken!=null&&e.searchQuery!==""&&t(Qt(e.searchQuery,e.nextPageToken))},onFetchCompletedTransactions:(e,n)=>{t(Lo(e,n))},onClearBulkUploadBatchDetailsForScopeChange:()=>{t(Mo())},onFetchBulkUploadBatches:e=>{t(rn(e))},onFetchMoreBatchDetails:()=>{t(zo())},onResetBulkUploadSort:()=>{t(qt({sortKey:void 0,sortOrder:void 0}))}}:{},onClearMissingReceiptsTabNavigation:()=>{t(go())},onSearchTextChanged:e=>{const n=S.currentSelectedView,s=S.selectedTransactionCategorizationTab;n==="transaction_categorization"&&(t(Ke({selectedTab:s,uiState:{searchString:e}})),p!=null&&z!=null&&t(he(s,{start:z,end:p},!0,!1,e,void 0,!1,!0)))},onFiltersChange:e=>{const n=S.selectedTransactionCategorizationTab;t(Co({filters:e,selectedTab:n}))},onRefresh:()=>{i.trackExpenseAutomationTabAnalytics(!0),t(ho(r))},onClose:()=>{m==="reconciliation"&&V!=null&&t(Mt({selectedAccountId:void 0})),w("../")},onBack:()=>{m==="reconciliation"&&V!=null&&t(Mt({selectedAccountId:void 0}))},onSaveReconciliation:e=>{t(po(e))},onSaveReconciliationReview:e=>{t(mo(e))},onUpdateStep:e=>{const{selectedPeriod:n}=S,s=ce(k.state?.pathnameStackToGoBack,k.pathname);w(`../${e}/${n.month}-${n.year}`,{state:{pathnameStackToGoBack:s,referrer:S.currentSelectedView}}),t(cn(e))},handleLogOutClick:()=>{const e=ce(k.state?.pathnameStackToGoBack,k.pathname);w("/signout",{replace:!0,state:{pathnameStackToGoBack:e,message:"logout"}})},onJeAccountSettingsChange:e=>{const{vendorsAccountSection:n}=e,{prepaidExpensesAccount:s,fixedAssetsAccount:l,accruedExpensesAccount:T}=n,E=He(X.prepaidExpensesAccountList,s.selectedOptions),f=He(X.fixedAssetsAccountList,l.selectedOptions),A=He(X.accruedExpensesAccountList,T.selectedOptions),F={selectedPrepaidExpensesAccountIds:E.map((B=>B.accountId)),selectedFixedAssetsAccountIds:f.map((B=>B.accountId)),selectedAccruedExpensesAccountIds:A.map((B=>B.accountId))};t(uo({data:F}))},onSaveJeAccountSettingsClick:()=>{t(ro())},onJESchedulesFormDataChange(e,n){const{jeScheduleID:s,accumulatedDepreciationCategory:l,scheduleClass:T,scheduleExpenseCategory:E,vendor:f}=n,{allAccountList:A,allClassList:F,allDepreciationAccountList:B}=S.jeSchedules,b=c.entityAutoCompleteView.vendor.length>0?c.entityAutoCompleteView.vendor.find((G=>G.id===f?.selectedOption)):void 0,H={id:b?.zeniId??f?.selectedOption??"",name:b?.name??f?.defaultOptions.find((G=>G.value===f?.selectedOption))?.label??"",logo:b?.logo},re=E?.selectedOption!=null?A.find((G=>G.qboId===E.selectedOption)):void 0,be=T?.selectedOption!=null?F.find((G=>G.classId===T.selectedOption)):void 0,ve=l?.selectedOption!=null?B.find((G=>G.qboId===l.selectedOption)):void 0;t(lo({scheduledJournalEntryID:e,localData:{jeScheduleID:s,scheduledJournalEntryID:e,updatedCategoryId:re?.accountId,updatedClassId:be?.classId,updatedAccumulatedDepreciationCategoryID:ve?.accountId,updatedVendor:{id:H.id,name:H.name}}}))},ignoreRecommendedJeSchedule(e,n){t(io(e,n))},vendorSearchAutoCompleteActions:{onAutoCompleteInputChange:(e,n)=>{e.trim().length>=2?t(_t({searchString:e,entityType:n,searchOrigin:"common"})):e.trim().length===0&&t(De("common"))},onCancelAutoComplete:()=>{t(De("common"))}},onPostJESchedule(e,n){t(co({scheduledJournalEntryID:e,jeScheduleTransactionKey:n}))},clearJeScheduleLocalData(){t(so())},handleJeScheduleClick:(e,n,s)=>{t(oo({selectedJEScheduleKey:n}));const l=ce(k.state?.pathnameStackToGoBack,k.pathname);w(`../../vendors/schedules/${s}/details/${e}`,{state:{pathnameStackToGoBack:l,message:"expenseAutomation",origin:"je_schedules"}})},improveMonthEndInsightsUsingZeniGPTClick:e=>{g!=null&&t(ao(e,g.companyId,g.tenantId))},onClickCustomerRequest:d,setActivityLogTransactionId:M,onCloseAllThreadsSection:()=>{},onCloseFileAttachmentSnackBar:()=>{t(no())},onOpenFileAttachmentSnackBar:()=>{t(zt({messageSection:"cockpit_month_end_email_attachment_upload",messageText:"failed",type:"error",showStatusIcon:!0}))},onRemoveFileAttachment:e=>{t(to(e))},onUpdateFileAttachment:e=>{t(eo({files:e}))},previewMonthEndReport:(e,n,s,l)=>{g!=null&&t(Ot(e,g.companyId,n,!0,s,l,g.tenantId))},saveMonthEndReport:(e,n,s,l)=>{g!=null&&t(Ot(e,g.companyId,n,!1,s,l,g.tenantId))},onEditMonthEndInsightsClick:C,sendMonthEndReport:e=>{const n=k.state?.referrer,{selectedPeriod:s,auditSummary:l}=S;g!=null&&l?.auditScorePercentage!=null&&(t(Wa(g.companyId,e,g.tenantId)),N.trackInsightsEmailPage(s.month,s.year,!1,"draft",l.auditScorePercentage,Xa().format(gn.analytics.MMMDDCommaYYYYformat),n??null))},onTransactionCategorizationRowClick:(e,n)=>{if(i.openTransactionPanel)return void i.openTransactionPanel(e,n);const s=ce(k.state?.pathnameStackToGoBack,k.pathname);w(`../../transaction/${n}/${e}`,{state:{pathnameStackToGoBack:s,message:"expenseAutomation",origin:"transaction_categorization"}})},setLocalDataForCategoryAndClass:(e,n,s,l,T,E,f,A,F,B,b,H,re)=>{t(Za(e,n,s,l,R,T,E,f,A,F,B,b,H,re))},onCancelAutoComplete:()=>{t(De("common"))},updateExpenseAutomationReconListScrollPosition:e=>{t(Vt({scrollPosition:e}))},onUpdateTab:e=>{i.closeSidePanel?.(),p!=null&&z!=null&&(t(he(e,{start:z,end:p},!1,!1)),t(Ha(e)))},onUpdateTransactionCategorizationCompletedSubTab:e=>{i.closeSidePanel?.(),p!=null&&z!=null&&(t(Qa(e)),t(he("autoCategorized",{start:z,end:p},!1,!1)))},onUpdateTransactionCategorizationUIState:(e,n)=>{t(Ke({selectedTab:e,uiState:n})),p!=null&&z!=null&&t(he(e,{start:z,end:p},!1,!1,n.searchString,null,!0))},onUpdateScrollYOffSetTransactionCategorizationUIState:(e,n)=>{t(Ke({selectedTab:e,uiState:n}))},onFetchTransactionCategorizationList:(e,n,s,l,T,E,f)=>{p!=null&&z!=null&&t(he(e,{start:z,end:p},!0,s,n,l,T,E,f))},resetTransactionCategorizationLocalData:(e,n,s,l,T,E,f,A)=>{t(Ka(e,n,s,l,A??null,T,E,!1,f))},updateSelectedVendorForTransaction:(e,n,s,l,T)=>{t(Bt({selectedTab:e,transactionId:n,lineId:s,selectedTransaction:l,uncategorizedAccounts:R,updatedVendor:T,isAccountingClassesEnabled:y}))},onSaveUpdateTransactionCategorization:(e,n,s)=>{const l=k.state?.referrer;e==="autoCategorized"?N.trackTransactionsAutoCategorisedPage(u.month,u.year,S.transactionView.totalCountByTab.autoCategorized,n.length,!1,l??null):N.trackTransactionsReviewPage(u.month,u.year,S.transactionView.totalCountByTab.review,n.length,!1,l??null),t(Ya(e,n,s,r))},onUpdateSelectedCheckboxTransactionIds:(e,n)=>{t(Ja({selectedTab:e,transactionIds:n}))},onFetchRecommendationsForEntityCategorizationWithCustomer:(e,n,s,l,T,E,f)=>{const{transactionId:A,transaction:F,lineIds:B}=n;E!=null&&t(Ga({transactionId:A,customerUpdates:E})),t(Na({selectedTab:l,transactionId:A.id,lineId:B[0],selectedTransaction:F,uncategorizedAccounts:R,updatedCustomer:E,selectedEntity:T,isAccountingClassesEnabled:y,isUncategorizedExpenseCategoryEnabled:f})),T!=null&&t(Xe({entity:T,amount:e,transactionDetails:n,flowType:"categorization",selectedTab:l,isFetchCOT:v,isUncategorizedExpenseCategoryEnabled:f}))},onFetchRecommendationsForEntityCategorization:(e,n,s,l,T,E,f)=>{const{transactionId:A,transaction:F,lineIds:B}=n;E!=null&&(t(ja({transactionId:A,vendorUpdates:{name:E.name,id:E.id?E.id:void 0}})),t($a({vendorId:E.id?E.id:void 0,localData:{vendorName:E.name,vendorId:E.id?E.id:void 0}}))),E?.id?(t(Bt({selectedTab:l,transactionId:A.id,lineId:B[0],selectedTransaction:F,uncategorizedAccounts:R,updatedVendor:E,selectedEntity:T,isAccountingClassesEnabled:y,isUncategorizedExpenseCategoryEnabled:f})),T!=null&&t(Xe({entity:T,amount:e,transactionDetails:n,flowType:"categorization",selectedTab:l,isFetchCOT:v,isUncategorizedExpenseCategoryEnabled:f}))):t(qa({selectedTab:l,transactionId:A.id,lineId:B[0]}))},fetchFluxViewOnScroll:(e,n)=>{t(Ue(e,!0,!1,n,!1,!0))},onFetchFluxViewList:()=>{t(Ue(u,!0,!1,null,!1,!1))},markAsReview:(e,n,s,l)=>{N.trackFluxAnalysisReviewed(s.month,s.year,l??!1,e),t(La(n,e,s,l??!1))},onUpdateFluxAnalysisUIState:e=>{t(Ma(e))},updateOperatingExpensesIdsForReview:e=>{t(za({operatingExpenseIds:e,selectedPeriod:u}))},redirectToVendorDetailPage:e=>{if(i.tenantEmailDomain!=null){const n=bs(e.id,e.qboId,i.tenantEmailDomain),s=ce(i.location.state?.pathnameStackToGoBack,i.location.pathname);i.navigate(n,{state:{pathnameStackToGoBack:s,message:"expenseAutomation",referrer:"Vendor List",origin:"flux_analysis"}})}},updateSectionIdsForReview:e=>{t(Oa({sectionId:e,selectedPeriod:u}))},onFetchReimbursementView:(e,n,s)=>{t(Ue(e,!0,!1,n,!0,s))},onReviewClicked:e=>{t(ie(u,e))},setOpenDrawerClicked:e=>{t(Ve({selectedDrawerAccountId:e}))},onFetchLinkTokenClick:(e,n)=>{t(nn("expense_automation_reconcile",e,n))},onEstablishConnectionClick:(e,n)=>{const s=g?.companyId;s!=null&&(t(an(e,s,"expense_automation_reconcile",void 0,"link_account_no_microdeposit",n)),t(on({accountId:n,connectionInProgress:!0})))},onAddStatementClick:e=>{t(Ve({selectedDrawerAccountId:e})),t(tn({accountId:e,selectedPeriod:u,localData:{accountSource:"bank_statement"}})),t(Fe({statementUploadChosen:!0}))},onReloadReconciliationListPage:()=>{t(ie(u,void 0,!0,!1))},onUpdateReconcileTabLocalData:e=>{t(Ba({selectedTransactionIds:e}))},onReconTabColumnSortConfigChanged:(e,n)=>{t(Va({sortKey:e,sortOrder:n}))},onReconReviewTabColumnSortConfigChanged:(e,n)=>{t(_a({sortKey:e,sortOrder:n}))},onReconTabUpdate:e=>{i.closeSidePanel?.(),t(Ua({selectedTab:e}))},updateReconReviewTabLocalData:(e,n,s)=>{const l=e.vendor?.id;s&&l!=null&&t(Da(l)),t(Fa({data:e,transactionId:n}))},onReconMatchedTransactionClick:e=>{if(i.openTransactionPanel)return void i.openTransactionPanel(e,We("bill"));const n=ce(k.state?.pathnameStackToGoBack,k.pathname);w(`../../transaction/bill/${e}`,{state:{pathnameStackToGoBack:n,message:"expenseAutomation",origin:"reconciliation"}})},onReloadPage:()=>{window.location.reload()},onBackClick:()=>{w(-1)},onReconListPageScroll:e=>{t(Vt({scrollPosition:e}))},onVendorAutoCompleteInputChange:e=>{e.trim().length>=2?t(_t({searchString:e,searchOrigin:"common"})):e.trim().length===0&&t(De("common"))},onReconNodeCollapseToggled:(e,n)=>{t(xa({nodeId:e,collapsed:n}))},updateSectionCollapseStatus:()=>{},onExcludeAccountFromReconciliation:e=>{t(Wt({accountId:e}))},onIncludeAccountIntoReconciliation:e=>{t(en({accountId:e}))},onReconciliationPusherEventReceived:(e,n)=>{const s=n??{};if((e===hn||e===Cn)&&m==="reconciliation"&&(t(ie(u,V,!0,!0)),q===!0)){const l=le??V,T=s.account_id!=null&&l!=null&&s.account_id===l;T&&s.new_statement_data_status?.code==="processed"&&s.statement_upload_id!=null&&l!=null&&t(Ra({accountId:l,selectedPeriod:u,statementUploadId:s.statement_upload_id})),!T||s.new_statement_data_status?.code!=="validation_failed"&&s.new_statement_data_status?.code!=="parsing_failed"&&s.new_statement_data_status?.code!=="processing_failed"||t(Xt({statementProcessingFailed:!0}))}}}}),((t,i,P)=>{const{isMissingReceiptsBulkUploadEnabled:y,...v}=P;return(function(r,h,k){return{...r,...h,...k,onUploadTransactionReceipt:(c,S,g,R,w)=>{h.onUploadTransactionReceipt(c,S,g,R,w,r.authParams)}}})(t,i,v)}))(as(os)),_s=Ts((function(t){const i=t.displayName??t.name??"Component",P=Ht.memo(t),y=v=>{const r=Ce(),h=(function(){const u=Ce(),m=x((V=>ke(V).reconciliation.selectedDrawerAccountId));return{isOpen:m!=null,selectedAccountId:m,openPanel:a.useCallback((V=>{u(Ve({selectedDrawerAccountId:V}))}),[u]),closePanel:a.useCallback((()=>{u(Ve({selectedDrawerAccountId:void 0}))}),[u])}})(),k=x((u=>ke(u).reconciliation)),c=x((u=>_e(u))),S=a.useCallback(((u,m)=>{r(nn("expense_automation_reconcile",u,m))}),[r]),g=a.useCallback(((u,m)=>{const V=c?.companyId;V!=null&&(r(an(u,V,"expense_automation_reconcile",void 0,"link_account_no_microdeposit",m)),r(on({accountId:m,connectionInProgress:!0})))}),[r,c?.companyId]),R=a.useMemo((()=>{if(h.isOpen&&h.selectedAccountId!=null)return I.jsx(Ps,{reconciliation:k,selectedDrawerAccountId:h.selectedAccountId,onClose:h.closePanel,onFetchLinkTokenClick:S,onEstablishConnectionClick:g})}),[h.isOpen,h.selectedAccountId,h.closePanel,k,S,g]),w=a.useMemo((()=>({reconPanelContent:R,reconSidePanelIsOpen:h.isOpen,closeReconSidePanel:h.closePanel})),[R,h.isOpen,h.closePanel]),{useFeatureGate:d}=Oe(),{isFeatureEnabled:C}=d(Y.isReconV3Enabled),M=a.useContext(Gt),q=a.useMemo((()=>h.isOpen?C===!0?{selectedItemId:h.selectedAccountId}:{closePanel:h.closePanel,selectedItemId:h.selectedAccountId}:M),[h.isOpen,h.closePanel,h.selectedAccountId,M,C]);return I.jsx(Gt.Provider,{value:q,children:I.jsx(P,{...v,...w})})};return y.displayName=`withReconSidePanel(${i})`,y})((({closeSidePanel:t,openTransactionPanel:i,panelContent:P,sidePanelIsFullView:y,sidePanelIsOpen:v,reconPanelContent:r,reconSidePanelIsOpen:h,closeReconSidePanel:k})=>{const{isAiCfoOpen:c,setIsAiCfoOpen:S}=is(),g=ls(),{isOpen:R}=rs(),w=Zt(),d=Ze(),C=Ce(),{isAiCfoAccessEnabled:M,onAskAiCfoClick:q}=pn({mobileExploreReferrer:"Transaction categorization"}),u=a.useCallback((()=>{v===!0&&y!==!0&&t?.()}),[t,v,y]),{areTenantIdsInSync:m}=dn(),V=(()=>{const o=x((J=>ke(J))),_=Ze(),{currentSelectedViewFetchState:j,currentSelectedView:$,selectedPeriod:D}=o,te=Qe($),K=Qe(j.fetchState),W=a.useCallback((J=>{const ne=_.state?.referrer;$==="transaction_categorization"&&(o.selectedTransactionCategorizationTab==="review"?N.trackTransactionsReviewPage(D.month,D.year,o.transactionView.totalCountByTab.review,0,J,ne??null):N.trackTransactionsAutoCategorisedPage(D.month,D.year,o.transactionView.totalCountByTab.autoCategorized,0,J,ne??null)),$==="missing_receipts"&&N.trackMissingReceiptsPage(D.month,D.year,J,o.missingReceipts.transactions.length,ne??null),$==="je_schedules"&&N.trackMonthCloseScheduleListPage(D.month,D.year,J,o.jeSchedules.draftSchedules.length,o.jeSchedules.resolveSchedules.length,ne??null),$==="flux_analysis"&&N.trackFluxAnalysisPage(D.month,D.year,J,xs(o.fluxAnalysis),ne??null),$==="month_end_insights"&&o.auditSummary?.auditScorePercentage!=null&&N.trackInsightsEmailPage(D.month,D.year,J,"draft",o.auditSummary.auditScorePercentage,null,ne??null)}),[D,o]);return a.useEffect((()=>{K===j.fetchState&&$===te||j.fetchState!=="Completed"||W(!1)}),[$,j.fetchState,te]),W})(),le=ds(),[X,ee]=a.useState(!1),z=x((o=>Ut(o))),p=x((o=>_e(o))),[e,n]=a.useState(!1),[s,l]=a.useState(!1),[T,E]=a.useState([]),[f,A]=a.useState(null),F=a.useCallback((()=>{A(null)}),[]),B=f?.contentType==="activity"?f.detail.transactionId:void 0,b=a.useCallback((o=>{o!=null?(c&&S(!1),g(),u(),A({contentType:"activity",detail:{transactionId:o}})):A((_=>_?.contentType==="activity"?null:_))}),[u,c,g,S]),H=a.useCallback((o=>{c&&S(!1),g(),u(),A({contentType:"transfer",detail:o})}),[u,c,g,S]),re=a.useCallback((()=>{g(),F(),u(),q()}),[u,F,q,g]),be=a.useRef(c);a.useEffect((()=>{c===!0&&be.current===!1&&(g(),F(),u()),be.current=c}),[u,F,c,g]);const ve=a.useRef(R);a.useEffect((()=>{R===!0&&ve.current===!1&&(c&&S(!1),F(),v===!0&&y!==!0&&t?.()),ve.current=R}),[F,t,R,c,S,y,v]);const G=v===!0&&y!==!0,et=a.useRef(G);a.useEffect((()=>{G&&!et.current&&(c&&S(!1),g(),F()),et.current=G}),[F,c,G,g,S]);const[tt,Sn]=a.useState(!1),nt=a.useRef(!1),{selectedTab:at}=Dt(),{tenantEmailDomain:fn}=Dt(),[Le,ot]=a.useState(d.state?.message==="comingFromTransactionDetail"),st=d.state?.message==="comingFromOverview",In=us(),je=Me.getSignedInUser(),{useDynamicConfig:En,useFeatureGate:ae}=Oe(),{configValue:kn}=En(ms.enableUncategorizedExpenseCategory),oe=kn?.uncategorized_expense_category_enabled===!0,{isFeatureEnabled:ct}=ae(Y.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:ge}=ae(Y.isMissingReceiptsBulkUploadEnabled),{isFeatureEnabled:$e}=ae(Y.isTransactionActivityEnabled),{isFeatureEnabled:it}=ae(Y.isCreateTransferEntryFromExpenseEnabled),{isFeatureEnabled:Tn}=ae(Y.isExpenseAutomationCommentingEnabled),{isFeatureEnabled:yn}=ae(Y.isProjectsTransactionsEnabled),{isFeatureEnabled:bn}=ae(Y.isReconV3Enabled),{isFeatureEnabled:vn}=ae(Y.isJEScheduleCOTEnabled),An=a.useCallback((o=>{const _=We(o.view==="reconciliation"?"bill":"expense");i?.(o.entityId,_)}),[i]),wn=x((o=>yo(o,"common"))),L=x((o=>ke(o))),{categoryOptions:Pn,paymentAccountNames:Rn}=x((o=>bo(o.accountState))),xn=x((o=>vo(o.classState))),{monthEndCloseChecksView:Z,currentSelectedView:U,selectedPeriod:O,selectedTransactionCategorizationTab:qe,currentSelectedViewBackgroundRefreshFetchState:Dn,currentSelectedViewFetchState:de,jeSchedules:Ge,reconciliation:lt}=L;fs(U==="transaction_categorization");const Fn=L.transactionView.saveStatus.fetchState,rt=L.transactionView.transactions,dt=a.useRef(rt);dt.current=rt;const ut=x((o=>o.expenseAutomationTransactionsViewState?.transactionCategorizationView)),mt=x((o=>o.expenseAutomationTransactionsViewState?.selectedTransactionCategorizationTab)),pt=a.useRef(ut);pt.current=ut;const ht=a.useRef(mt);ht.current=mt;const se=Is(Fn,(()=>{const o=[],_=ht.current,j=pt.current,$=j!=null&&_!=null?j[_]:void 0;if($?.transactionReviewLocalDataById!=null)for(const te of Object.values($.transactionReviewLocalDataById)){const K=te?.transactionReviewLocalData?.lineItemById;if(K!=null)for(const W of Object.values(K)){const J=W?.account;J?.accountId!=null&&o.push(J.accountId)}}const D=dt.current;for(const te of D)for(const K of te.lines??[])"account"in K&&K.account?.accountId!=null&&o.push(K.account.accountId);return o}));a.useEffect((()=>{U==="transaction_categorization"&&v!==!0||b(void 0)}),[U,b,v]),a.useEffect((()=>{h===!0&&k?.()}),[U,lt.selectedAccountId]);const Un=L.transactionView.selectedTransactionCategorizationCompletedSubTab,Ae=`${qe}|${Un}`,we=a.useRef(null);a.useEffect((()=>{we.current!==null?we.current!==Ae&&(we.current=Ae,U==="transaction_categorization"&&F()):we.current=Ae}),[F,U,Ae]);const _n=x((o=>B==null?void 0:Ao(o.transactionState,B))),ue=_n?.qboId,Ct=x((o=>ue==null?void 0:wo(o,ue)));a.useEffect((()=>{ue!=null&&C(Po(ue))}),[C,ue]);const{createTransferEntryStatus:gt,creditCardTransferAccountsList:St,transferAccounts:ft}=L.transactionView,It=a.useCallback((o=>Es(C,o)),[C]),Et=a.useMemo((()=>U!=="transaction_categorization"||f==null?null:f.contentType==="activity"?$e===!0?I.jsx(ps,{activityLogView:Ct,qboId:ue,onClose:()=>A(null),selectedTransactionId:f.detail.transactionId,isQuickViewCardStyle:!0},String(f.detail.transactionId)):null:f.contentType==="transfer"?I.jsx(hs,{createTransferEntryStatus:gt,transaction:f.detail,transferAccounts:f.detail.transactionType==="credit_card_payment"?St:ft,onClose:()=>A(null),onCreateTransfer:It,isQuickViewCardStyle:!0},String(f.detail.transactionId)):null),[U,f,$e,Ct,ue,gt,St,ft,It]),Vn=Et!=null,{selectedAccountId:Se}=lt,kt=Qe(Ge.accountSettingsView.saveState.fetchState),Bn=x((o=>Ro(o.accountState,o.accountListState,"accountList"))),On=x((o=>xo(o))),fe=at!=null?Do(at):U,zn=x((o=>o.entityAutoCompleteState.autoCompleteText.common));if(un({isDataReady:de.fetchState==="Completed"}),je==null)throw Error("Can't access expense automation screen without signing in...");const Tt=sn(O),Ie=Be(Tt.start),Ee=Be(Tt.end);if(Ie==null||Ee==null)throw Error(`Invalid start - ${Ie} and end - ${Ee} period from given ${O}`);const Mn=a.useCallback((()=>{n(!1)}),[]),Ln=a.useCallback((()=>{l(!0)}),[]),jn=a.useCallback((o=>{E(o),l(!1)}),[]),$n=a.useCallback((()=>{E([])}),[]),Pe=L.missingReceipts.bulkUpload.phase,yt=L.missingReceipts.bulkUpload.currentBatchId;a.useEffect((()=>{ge===!0&&U==="missing_receipts"&&Pe==="matching"&&yt!=null&&C(rn({cacheOverride:!0}))}),[ge,U,Pe,yt,C]);const bt=je?.userId,qn=O.month,Gn=O.year,vt=p?.tenantId;a.useEffect((()=>{U==="missing_receipts"&&ge!==!1&&Pe==="idle"&&bt!=null&&vt!=null&&C(Fo())}),[U,ge,Pe,bt,vt,qn,Gn,C]),a.useEffect((()=>{z.newVendorState?.vendorDetailLocalData?.vendorName!=null?ee(!0):ee(!1)}),[z.newVendorState?.vendorDetailLocalData?.vendorName]),a.useEffect((()=>{fe!=null&&U!==fe&&C(cn(fe))}),[fe]),a.useEffect((()=>{tt!==!1||de.fetchState!=="Completed"&&de.fetchState!=="Error"||!m||(Sn(!0),C(jt(!1,!1,oe)))}),[tt,de,m,oe]),a.useEffect((()=>{!st&&m&&(C(jt(!1,!1,oe)),C(ie(O,Se,!1,!1)))}),[O.month,O.year,m,oe]);const At=a.useCallback(((o=!1,_=!1)=>{const j={start:Ie,end:Ee};switch(U){case"transaction_categorization":C(he(qe,j,o,!Le,void 0,void 0,_,void 0,oe)),ot(!1);break;case"flux_analysis":C(Ue(O,o,_,null));break;case"month_end_insights":if(_===!1){const $=new Date(O.year,O.month,0),D=_o($.toDateString()).format(gn.analytics.YYYYDashMMDashDDFormat);C(Vo(!0,p.companyId,p.tenantId,D)),C(Bo(p.companyId,p.tenantId))}break;case"je_schedules":C(Uo(j,_));break;case"missing_receipts":C(ln(j,{amount:75,currencyCode:"USD",currencySymbol:"$"},o,_));break;default:C(ie(O,Se,o,_))}}),[U,Ie,Ee,p.companyId,p.tenantId,qe,O,Se,Le,ot,oe]);a.useEffect((()=>{U===fe&&de.fetchState==="Not-Started"&&m&&At(!0)}),[de,Ie,Ee,p.companyId,p.tenantId,m]),a.useEffect((()=>{st||Le||nt.current||Dn.fetchState==="In-Progress"||de.fetchState!=="Completed"||(nt.current=!0,At(!0,!0))}),[]),a.useEffect((()=>{Z.fetchState!=="In-Progress"&&Z.fetchState!=="Completed"&&C(Te({tenantId:p.tenantId,period:O,refreshViewInBackground:!1}))}),[Z.fetchState,p.tenantId]),a.useEffect((()=>{L.monthEndInsights?.previewMonthEndReportStatus?.fetchState==="Completed"?n(!0):n(!1)}),[L.monthEndInsights?.previewMonthEndReportStatus?.fetchState]),a.useEffect((()=>{L.monthEndInsights?.sendMonthEndReportStatus?.fetchState==="Completed"&&m&&(C(Te({tenantId:p.tenantId,period:O,refreshViewInBackground:!0})),C(Oo({companyId:p.companyId})),w("../"))}),[L.monthEndInsights?.sendMonthEndReportStatus?.fetchState,p.tenantId,O,p.companyId,m]),a.useEffect((()=>{const o=setInterval((()=>{Z.fetchState!=="In-Progress"&&Z.fetchState==="Completed"&&C(Te({tenantId:p.tenantId,period:O,refreshViewInBackground:!0}))}),3e5);return()=>clearInterval(o)}),[Z.fetchState,p.tenantId,O,C]),a.useEffect((()=>{const o=setInterval((()=>{U==="reconciliation"&&Se==null&&L.reconciliation.fetchStatus.fetchState==="Completed"&&L.reconciliation.refreshStatus.fetchState!=="In-Progress"&&C(ie(O,void 0,!0,!0))}),3e5);return()=>clearInterval(o)}),[U,C,L.reconciliation.fetchStatus.fetchState,L.reconciliation.refreshStatus.fetchState,ie,Se,O]);const Nn=Nt();a.useEffect((()=>{const o=(Z.monthEndCloseChecks?.monthEndCloseCheckList.find((_=>_.id==="month_end_insights"))?.isDisabled??!1)&&!ct;U!=="month_end_insights"||!o&&Z.monthEndCloseChecks?.reportEmailSentDate==null||w("../")}),[U,Z.monthEndCloseChecks]);const Jn=h===!0?r:P,Yn=h===!0||v===!0,Kn=h===!0?k:t;a.useEffect((()=>{kt==="In-Progress"&&Ge.accountSettingsView.saveState.fetchState==="Completed"&&C($t())}),[kt,Ge.accountSettingsView.saveState.fetchState,$t]);const{transactionId:wt,onSaveVendor:Qn,onSaveSuccess:Hn,onCancel:Zn,vendorViewDetails:Wn}=(({expenseAutomationViewSelector:o,closeDrawerHandler:_,currentSelectedView:j,isUncategorizedExpenseCategoryEnabled:$})=>{const D=Ce();let te,K,W;const J=Nt(),ne=o.transactionView;let Pt=()=>{};const{transactions:ea,selectedTransactionId:pe,selectedTransactionLineId:Re,transactionLocalData:ta}=ne;if(j==="transaction_categorization"){const Ne=ta.find((me=>me.transactionId===pe)),Q=ea.find((me=>me.id===pe)),Rt=Re!=null?Ne?.transactionReviewLocalData?.lineItemById[Re]:void 0,xt=Rt?.account;K=Rt?.class?.classId,te=["Uncategorized Income","Uncategorized Expense"].includes(xt?.accountName??"")?void 0:xt?.accountId;const aa=ys(pe,Q?.typeOfTransaction);Q!=null&&aa&&(W={id:pe,type:We(Q.typeOfTransaction)}),Pt=()=>{if(pe!=null&&Re!=null&&Q!=null){const me=ne.transactionLocalData.find((xe=>xe.transactionId===pe))?.transactionReviewLocalData;if(me!=null&&Q.lines!=null&&Q.lines.length>0){const xe=me.lineItemById[Re];let Je=me.selectedEntity;if(Pa(Q)||(Je=xe.selectedEntityLine),Je!=null){const oa=Je,sa={transactionId:{id:Q.id,type:Q.type},transaction:Q,lineIds:Q.lines.map((ca=>ca.id))??[]};D(Xe({entity:oa,amount:xe.amount.amount,transactionDetails:sa,flowType:"categorization",selectedTab:o.selectedTransactionCategorizationTab,isFetchCOT:J,isUncategorizedExpenseCategoryEnabled:$}))}}}}}const na=x((Ne=>Ut(Ne,void 0,te,K)));return{transactionId:W,onSaveVendor:()=>{D(wa(W,void 0,!1,!0))},onSaveSuccess:Pt,onCancel:()=>{W!=null&&D(ba({transactionId:W})),D(va()),D(Aa()),_()},vendorViewDetails:na}})({expenseAutomationViewSelector:L,closeDrawerHandler:()=>{ee(!1)},currentSelectedView:U,isUncategorizedExpenseCategoryEnabled:oe}),Xn={events:p.companyId!=null?[`private-encrypted-${p.companyId}.${hn}`,`private-encrypted-${p.companyId}.${Cn}`]:[],eventCallback:(o,_,j)=>{j.onReconciliationPusherEventReceived(o,_)}};return In?.loggedInUserRoleMap==null?Z.fetchState==="Error"?I.jsx(Cs,{onGoHome:()=>w("../",{replace:!0}),onReload:()=>window.location.reload()}):I.jsx(mn,{fetchState:"In-Progress"}):I.jsxs(I.Fragment,{children:[I.jsx(vs,{isOpen:s,drawerLeftMargin:new gs(0,0,300,650),onClose:()=>{l(!1)},children:I.jsx(Vs,{onClick:o=>o.stopPropagation(),children:I.jsx(Rs,{companyId:p.companyId,closeCustomerRequestDrawer:()=>l(!1),addCustomerRequest:jn,resetCustomerRequest:$n})})}),wt!=null&&X&&I.jsx(ks,{isOpen:X,transactionId:wt,onSaveVendor:Qn,onSaveSuccess:Hn,onCancel:Zn,vendorViewDetails:Wn}),I.jsx(Us,{...Xn,navigate:w,location:d,themeState:le,categoryOptions:Pn,classesForFilters:xn,accountsForFilters:Rn,vendorSearchAutoCompleteData:{autoCompleteText:zn,entityAutoCompleteView:wn},expenseAutomationViewSelector:L,isMissingReceiptsBulkUploadEnabled:ge,monthEndInsightsPreviewMode:e,monthEndInsightsCustomerRequestData:T,isRealtimeInsightsFeatureEnabled:ct,isCreateTransferEntryFromExpenseEnabled:it,isUncategorizedExpenseCategoryEnabled:oe,isAccountingClassesEnabled:On,isProjectsTransactionsEnabled:yn,isCOTEnabled:Nn,isJEScheduleCOTEnabled:vn,currentTenant:p,companyId:p.companyId,signedInUser:je,isTransactionActivityEnabled:$e,isRightPanelOpen:Vn,rightSidePanel:Et,onOpenTransferRightPanel:it===!0?H:void 0,uncategorizedAccounts:Bn,onClickCustomerRequest:Ln,handleEditClick:Mn,tenantEmailDomain:fn,trackExpenseAutomationTabAnalytics:V,setActivityLogTransactionId:b,closeSidePanel:Kn,openTransactionPanel:i,sidePanelIsOpen:Yn,sidePanelIsFullView:h!==!0&&y,panelContent:Jn,isAiCfoAccessEnabled:M,onAskAiCfoClick:re,isExpenseAutomationCommentingEnabled:Tn,isReconV3Enabled:bn,onExpenseAutomationCommentingThreadClick:An,sidePanelListPercent:h===!0?66:void 0}),se.showPopup&&se.popupType!=null&&I.jsx(Ss,{popupType:se.popupType,currencySymbol:se.currencySymbol,accountId:se.popupAccountId??"",accountName:se.popupAccountName??"",onSubmit:se.handleSubmit,onDismiss:se.handleDismiss})]})}))),Vs=ze(la)`
|
|
22
|
-
display: flex;
|
|
23
|
-
min-height: 100%;
|
|
24
|
-
flex-direction: column;
|
|
25
|
-
`;function sc(){return I.jsxs(da,{children:[I.jsx(Ye,{path:"*",element:I.jsx(As,{})}),I.jsx(Ye,{path:"/:selectedTab/:selectedPeriod/*",element:I.jsx(_s,{})}),I.jsx(Ye,{path:"*",element:I.jsx(ia,{})})]})}export{sc as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as r}from"./sentry-BKza4F3H.js";import{u as f,h as l,g as m}from"./core-DX0hI4Tj.js";import{hu as p,Mv as g,Mw as _}from"./zeni-epic-state-D7J6ldp5.js";import{u as h,L as b,z as y}from"./index-C7vAMpwE.js";import"./liveblocks-CPUhr7cG.js";import"./recharts-D49X9rAt.js";import"./mui-Wlh0ww8-.js";import"./analytics-4jOsnRSg.js";import"./plaid-B7CiXQXe.js";import"./dnd-ALP2Xi80.js";import"./stripe-cKAAJElX.js";import"./lottie-Be-cIbgZ.js";import"./lexical-CIEinSVu.js";import"./pdf-ca3_zM2m.js";import"./utils-DdOI8_Qy.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]="7882270d-57cd-4301-9867-67e96e1718ff",e._sentryDebugIdIdentifier="sentry-dbid-7882270d-57cd-4301-9867-67e96e1718ff")}catch{}})();function R(){const e=f(),n=l(),o=m(),{setLoading:i,clearAllLoading:c}=h(),s=r.useRef(!1);return r.useLayoutEffect((()=>{i(b.CONNECTION_AUTH)}),[i]),r.useEffect((()=>{if(s.current)return;s.current=!0;const a=new URLSearchParams(o.search).get("code"),u=sessionStorage.getItem("hubspot_oauth_pending");if(sessionStorage.removeItem("hubspot_oauth_pending"),a!=null&&u!=null){const t=JSON.parse(u);e(p(t.tenant_id,t.connection_id,g("revenue"),_("hubspot"),{authorization_code:a,client_id:t.client_id,client_secret:t.client_secret,redirect_uri:t.redirect_uri}))}c();const d=y.getActiveTenantForUser();n(d?.tenantEmailDomain!=null?`/${d.tenantEmailDomain}/settings/integrations`:"/",{replace:!0})}),[]),null}export{R as default};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-CPUhr7cG.js";import{i as S,n as x,h as C,g as y,u as ee,t as te,j as E,N as ae,o as ne,p}from"./core-DX0hI4Tj.js";import{Mo as k,Mp as v,Mq as F,Bs as B,Be as T,Mr as D,Ms as oe,Mt as se,Bi as ie,fz as $,Bp as le,Bm as re}from"./zeni-epic-state-D7J6ldp5.js";import{J as g,o as r,m as de,c as j,j as G,p as ce,r as me,R as pe,s as _,A as ue,X as he,v as xe,w as ge,y as fe,x as we,B as be,_ as Se,V as ye,S as ke,D as ve,C as je,E as $e}from"./index-C7vAMpwE.js";import{n as m}from"./mui-Wlh0ww8-.js";import f from"./NotFoundScreen-bK1Cn_wC.js";import{a as I}from"./sentry-BKza4F3H.js";import"./recharts-D49X9rAt.js";import"./analytics-4jOsnRSg.js";import"./plaid-B7CiXQXe.js";import"./dnd-ALP2Xi80.js";import"./stripe-cKAAJElX.js";import"./lottie-Be-cIbgZ.js";import"./lexical-CIEinSVu.js";import"./pdf-ca3_zM2m.js";import"./utils-DdOI8_Qy.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]="5ce287ff-42f1-4c99-ad74-bdba577561a7",e._sentryDebugIdIdentifier="sentry-dbid-5ce287ff-42f1-4c99-ad74-bdba577561a7")}catch{}})();const Ie=m.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100%;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
10
|
-
`,Ce=x((function(e){const a=k(e),n=v(e),{companyName:o}=a;return{companyName:o,isDisabled:a.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,magicLinkViewState:a}}),(function(e,a){const{vendorId:n,billId:o}=a;return{onFetchBankName:s=>{e(T(s))},onSaveHandler:s=>{j.trackBillPayMagicLinkSubmitBankAccountDetails(o),e(B(s,"standard",n,o))},onACHDetailsUpdated:s=>{const{bankAccountSection:l}=s;e(F({data:l}))}}}))(de);function M(){const e=g(),{vendorId:a,billId:n}=S();return a==null||n==null?t.jsx(f,{}):t.jsx(t.Fragment,{children:t.jsx(Ie,{windowSize:e,children:t.jsx(Ce,{vendorId:a,billId:n})})})}const Be=m.div`
|
|
11
|
-
display: flex;
|
|
12
|
-
height: 100vh;
|
|
13
|
-
width: 100%;
|
|
14
|
-
flex: 1 1 auto;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
align-items: center;
|
|
17
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
18
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
19
|
-
`,De=x((function(e,a){const{isSubPage:n}=a;return{addressToEdit:D(e),googleAPIKey:G.googleMapsAPIKey,isSubPage:n}}),(function(e,a){const{navigate:n,location:o}=a,s=()=>{const l=me(o.state?.pathnameStackToGoBack),i=l.poppedPathname??Pe();n(i,{state:{pathnameStackToGoBack:l.newStack}})};return{onSubmitHandler:l=>{const i=ze(l);e(oe({addressToCreate:i})),s()},onCancel:()=>{s()}}}))(ce);function Ae({isSubPage:e}){const a=C(),n=y(),o=g();return t.jsx(t.Fragment,{children:t.jsx(Be,{windowSize:o,children:t.jsx(De,{location:n,navigate:a,isSubPage:e===!0,googleAPIKey:G.googleMapsAPIKey})})})}const Pe=(e=2)=>{let a="../";for(let n=0;n<e;n++)a=`${a}../`;return a},ze=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}),Le=m.div`
|
|
20
|
-
display: flex;
|
|
21
|
-
height: 100%;
|
|
22
|
-
width: 100%;
|
|
23
|
-
flex: 1 1 auto;
|
|
24
|
-
flex-direction: column;
|
|
25
|
-
align-items: center;
|
|
26
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
27
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
28
|
-
`,Ne=x((function(e){const a=k(e),n=v(e),o=D(e),{companyName:s}=a;return{companyName:s,isDisabled:a.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,mailingAddressDetails:o,magicLinkViewState:a}}),(function(e,a){const{navigate:n,location:o,vendorId:s,billId:l}=a;return{onFetchBankName:i=>{e(T(i))},onSaveHandler:i=>{j.trackBillPayMagicLinkSubmitBankAccountDetails(l),e(B(i,"us-domestic",s,l))},onWireDetailsUpdated:i=>{const{bankAccountSection:d}=i;e(F({data:d}))},onAddressClick:()=>{const i=o.pathname.replace("us-domestic","address"),d=_(o.state?.pathnameStackToGoBack,o.pathname);n(i,{state:{pathnameStackToGoBack:d}})}}}))(pe);function Ee(){const e=C(),a=y(),n=g(),{vendorId:o,billId:s}=S();return o==null||s==null?t.jsx(f,{}):t.jsx(t.Fragment,{children:t.jsx(Le,{windowSize:n,children:t.jsx(Ne,{location:a,navigate:e,vendorId:o,billId:s})})})}const Me=m.div`
|
|
29
|
-
display: flex;
|
|
30
|
-
height: 100%;
|
|
31
|
-
width: 100%;
|
|
32
|
-
flex: 1 1 auto;
|
|
33
|
-
flex-direction: column;
|
|
34
|
-
align-items: center;
|
|
35
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
36
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
37
|
-
`,Fe=x((function(e){const a=k(e),n=v(e),o=D(e),{companyName:s}=a;return{companyName:s,isDisabled:a.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,mailingAddressDetails:o,magicLinkViewState:a}}),(function(e,a){const{navigate:n,location:o,vendorId:s,billId:l}=a;return{onFetchBankNameBySwift:i=>{e(ie(i))},onSaveHandler:i=>{j.trackBillPayMagicLinkSubmitBankAccountDetails(l),e(B(i,"international",s,l,a.isLocalCurrencyEnabled))},onBankDetailsUpdated:i=>{const{internationalWireSwiftAccountSection:d}=i;e(se({data:d}))},onAddressClick:()=>{const i=o.pathname.replace("international","address"),d=_(o.state?.pathnameStackToGoBack,o.pathname);n(i,{state:{pathnameStackToGoBack:d}})}}}))(xe);function Te(){const e=C(),a=y(),n=g(),{vendorId:o,billId:s}=S(),{useFeatureGate:l}=ue(),{isFeatureEnabled:i}=l(he.isBillPayLocalCurrencyFeatureEnabled);return o==null||s==null?t.jsx(f,{}):t.jsx(Me,{windowSize:n,children:t.jsx(Fe,{location:a,navigate:e,vendorId:o,billId:s,isLocalCurrencyEnabled:i})})}const Ge={containerWidth:new je(100,58)},_e=m(ke)`
|
|
38
|
-
width: ${r.sp4};
|
|
39
|
-
height: ${r.sp4};
|
|
40
|
-
margin-bottom: ${r.sp3};
|
|
41
|
-
margin-top: ${r.sp3};
|
|
42
|
-
margin-left: ${r.sp8};
|
|
43
|
-
cursor: pointer;
|
|
44
|
-
position: absolute;
|
|
45
|
-
color: ${e=>e.theme.colors.brandColorJade};
|
|
46
|
-
`,He=m.div`
|
|
47
|
-
display: flex;
|
|
48
|
-
height: 100vh;
|
|
49
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
50
|
-
width: 100vw;
|
|
51
|
-
overflow-y: scroll;
|
|
52
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
53
|
-
`,Ke=m.div`
|
|
54
|
-
display: flex;
|
|
55
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
56
|
-
flex-direction: column;
|
|
57
|
-
width: ${e=>`${Ge.containerWidth.value(e.windowSize)}%`};
|
|
58
|
-
${e=>e.windowSize!=="small"?"overflow: auto;":""}
|
|
59
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
60
|
-
padding-top: ${e=>e.windowSize!=="small"?r.sp2:"0px"};
|
|
61
|
-
`,Ve=m.div`
|
|
62
|
-
display: flex;
|
|
63
|
-
flex-direction: column;
|
|
64
|
-
align-items: center;
|
|
65
|
-
justify-content: center;
|
|
66
|
-
padding: ${e=>e.windowSize==="small"?r.sp3:`62px ${r.sp6} ${r.sp9} ${r.sp8}`};
|
|
67
|
-
height: ${e=>e.windowSize==="small"?"490px":"auto"};
|
|
68
|
-
overflow: ${e=>e.windowSize==="small"?"unset":"hidden"};
|
|
69
|
-
width: ${e=>e.windowSize=="small"?"auto":"42%"};
|
|
70
|
-
background-color: ${e=>e.windowSize==="small"?e.theme.colors.grey4:e.theme.colors.background};
|
|
71
|
-
margin-top: ${e=>e.windowSize==="small"?e.isAddressPage?"0px":"186px":"unset"};
|
|
72
|
-
`,We=x((function(e,a){return{file:a.file,type:a.type}}))(ve);function h({appContent:e}){const a=ee(),n=y(),{tenantEmailDomain:o,vendorId:s,billId:l}=S(),[i]=te(),d=i.get("token"),H=n.pathname.includes("address"),w=g(),K=ge(),A=fe(),b=we(),V=()=>{K.toggle()},W=E((u=>k(u))),U=E((u=>v(u))),{authParams:J,fetchState:c,billAttachment:O,billFetchState:P,companyName:R,currencySymbol:X,amount:q}=W,{tenantId:z,userId:L,sessionId:N}=J,{fetchState:Q,internationalBankAccountCreateStatus:Y}=U;return I.useEffect((()=>{$()}),[]),I.useEffect((()=>{b&&c==="Not-Started"&&s!=null&&o!=null&&d!=null&&a(le(s,o,d))}),[b,c,s,o,d,a]),I.useEffect((()=>{b&&c==="Completed"&&($(L,N,z),l!=null&&a(re(l)))}),[c,b,L,N,z,l,a]),c==="Error"?t.jsx(f,{}):Q==="Completed"||Y.fetchState==="Completed"?($(),t.jsx(ae,{to:"../../../../../../../bank/account/save/success",replace:!0,relative:"path"})):c==="In-Progress"?t.jsx(be,{fetchState:c,style:{height:"100vh",backgroundColor:A.colors.grey5,boxShadow:`0px 2px ${r.sp1} ${A.colors.dropShadowNormal}`}}):t.jsxs(t.Fragment,{children:[c==="Completed"&&P==="Completed"&&t.jsx(Se,{analytics:j,onLoad:u=>(Z=>Z.trackBillPayMagicLinkPageLoad(o??"",s??"",R,l??"",Ue(n.pathname),X,q))(u)}),t.jsxs(He,{windowSize:w,children:[w!=="small"?t.jsx(_e,{onClick:V}):null,t.jsx(Ve,{windowSize:w,isAddressPage:H,children:P==="In-Progress"?t.jsx(ye,{size:"ExtraLarge",start:!0}):t.jsx(We,{file:O,type:"bill"})}),t.jsx(Ke,{windowSize:w,children:e})]})]})}const Ue=e=>`${e.split("/").at(-2)}_${e.split("/").at(-1)}`;function Je(){return t.jsx($e,{})}function dt(){return t.jsxs(ne,{children:[t.jsx(p,{path:"bank/account/save/success",element:t.jsx(Je,{})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/ach/standard",element:t.jsx(h,{appContent:t.jsx(M,{})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/ach/same-day",element:t.jsx(h,{appContent:t.jsx(M,{})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/address",element:t.jsx(h,{appContent:t.jsx(Ae,{isSubPage:!0})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/us-domestic",element:t.jsx(h,{appContent:t.jsx(Ee,{})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/international",element:t.jsx(h,{appContent:t.jsx(Te,{})})}),t.jsx(p,{path:"*",element:t.jsx(f,{})})]})}export{dt as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-CPUhr7cG.js";import{a as g}from"./sentry-BKza4F3H.js";import{u as F,g as O,h as _,t as w,j as l,N as T}from"./core-DX0hI4Tj.js";import{z as r,y as V,O as P,e as A,c as N,f as W,k as $,V as R,h as Z}from"./index-C7vAMpwE.js";import{eW as q,M9 as B,Mj as G,Ma as H,fz as J,f$ as K,Mf as Q,gp as X,cZ as Y,Mk as ee,Ml as te}from"./zeni-epic-state-D7J6ldp5.js";import{n as ne}from"./mui-Wlh0ww8-.js";import{u as ae}from"./useDeviceId-Bz0ISaO9.js";import{f as se}from"./analyticsHelper-Cp79iEuP.js";import{t as ie}from"./getLocaleForTenant-DiDMSDVJ.js";import"./recharts-D49X9rAt.js";import"./analytics-4jOsnRSg.js";import"./plaid-B7CiXQXe.js";import"./dnd-ALP2Xi80.js";import"./stripe-cKAAJElX.js";import"./lottie-Be-cIbgZ.js";import"./lexical-CIEinSVu.js";import"./pdf-ca3_zM2m.js";import"./utils-DdOI8_Qy.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="0de4e637-089c-4701-a51a-8916322b4a27",t._sentryDebugIdIdentifier="sentry-dbid-0de4e637-089c-4701-a51a-8916322b4a27")}catch{}})();const z=(t,s)=>t!=null&&t.length>0&&s==="magic_links";function ze(){const t=F(),s=O(),m=_(),[y]=w(),n=y.get("token"),p=y.get("stytch_token_type"),f=r.getMagicLinkCodeVerifier(),i=ae(),{otpChallenge:d,twoFAPhoneNumber:x,magicLinkEmail:c,verifyDeviceFetchState:C,resendVerifyDeviceOTPFetchState:D}=l((e=>e.tenantState)),S=l((e=>e.tenantState.fetchState)),b=l((e=>e.tenantState.activeTenantFetchState.fetchState)),h=l((e=>e.tenantState.signInState)),I=l((e=>e.tenantState.magicLinkSignInFetchState.fetchState)),a=l((e=>e.tenantState.loggedInUser)),o=l((e=>q(e))),k=l((e=>B(e))),M=r.getSignedInUser(),v=V().mode;g.useEffect((()=>{a?.zeniSessionId==null&&n!=null&&z(n,p)&&i!=null&&f!=null&&(r.saveMagicLinkTriggered(n),t(G(n,i,f)))}),[n,p,t,i,f,a?.zeniSessionId]),g.useEffect((()=>{h!=="In-Progress"||S!=="Completed"&&b!=="Completed"||a?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(a,a.zeniSessionId),r.saveSignedInUserTenants(H(k.tenantsInOrder),a.zeniSessionId),J(a.userId,a.zeniSessionId,o.tenantId),t(K(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(Q("Completed")),P.updateAppLocaleID(ie(o)),se(a,o,v,void 0,k.tenantsInOrder),X().then((()=>{const e=Z();e!=null&&A(e)})),setTimeout((()=>{N.trackLogin(W.Event.loginSuccess,"email",Y(o.productSettings))}),2e3))}),[h,S,b,a,o,k,v,s.state,t]);const E=g.useCallback((()=>{m("/signin/auth")}),[m]),j=g.useCallback((()=>{i!=null&&d!=null&&c!=null&&t(ee(i,c,d))}),[i,d,t,c]),U=g.useCallback((e=>{i!=null&&n!=null&&c!=null&&d!=null&&t(te(e,i,c,d))}),[i,n,t,c,d]);if(I==="Completed"&&d!=null)return u.jsx($,{phoneNumber:x,verifyOtpFetchState:C.fetchState,resendVerifyDeviceOTPFetchState:D,onResendOtp:j,onVerifyOtp:U,onCancelVerifyDevice:E});if(h==="In-Progress"&&S==="Completed"&&a?.zeniSessionId!=null&&o!=null||M!=null){const e=s.state?.origin??"/";return u.jsx(T,{to:e,state:{...s.state,origin:""}})}if(!z(n,p)||f==null||I==="Error"){const e=s.state?.origin??"/",L=n!=null&&r.getLastUsedMagicLinkToken()===n;return u.jsx(T,{to:e,state:{...s.state,origin:"",magicLinkAlreadyUsed:L,magicLinkExpired:!L&&(r.isMagicLinkTriggered(n??"")||I==="Error"&&a?.zeniSessionId==null)}})}return u.jsx(oe,{"data-testid":"smooth-loader",children:u.jsx(R,{size:"ExtraLarge",start:!0})})}const oe=ne.div`
|
|
2
|
-
position: fixed;
|
|
3
|
-
top: 0;
|
|
4
|
-
left: 0;
|
|
5
|
-
right: 0;
|
|
6
|
-
bottom: 0;
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
z-index: 9999;
|
|
11
|
-
background-color: ${t=>t.theme.colors.background};
|
|
12
|
-
`;export{ze as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as V}from"./liveblocks-CPUhr7cG.js";import{a as l}from"./sentry-BKza4F3H.js";import{u as fe,j as n,i as We,g as Ye,h as qe,l as G}from"./core-DX0hI4Tj.js";import{eW as me,fE as Je,fF as pe,fq as Qe,bn as Xe,eV as Ke,fG as ea,fH as aa,fJ as ta,fM as na,fN as g,fP as sa,fQ as de,fT as oa,fR as ia,fS as ra,fU as da,cP as ca,fW as la,cV as ua,fp as fa,f$ as ma,g0 as pa,f_ as ba}from"./zeni-epic-state-D7J6ldp5.js";import{a9 as ha,aa as Sa,w as ga,A as Ea,z as k,x as ka,u as Ca,X as r,i as ya,M as Ia,ab as Ta,T as _a,a as wa,ac as Aa,a5 as Fa,ad as Da,ae as va,af as ce,ag as le,L as $a,ah as Ma,ai as ue,c as x,a1 as Pa,s as _,aj as R,ak as Ga}from"./index-C7vAMpwE.js";import{D as xa}from"./mui-Wlh0ww8-.js";(function(){try{var f=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new f.Error().stack;d&&(f._sentryDebugIds=f._sentryDebugIds||{},f._sentryDebugIds[d]="eaa093c8-ae4b-4acf-8dde-36d29dfa4e34",f._sentryDebugIdIdentifier="sentry-dbid-eaa093c8-ae4b-4acf-8dde-36d29dfa4e34")}catch{}})();const Ra=ha((({isAppContentDrawerOpen:f,handleDrawerToggle:d})=>{const{tenantEmailDomain:t}=We(),a=Ye(),C=ga(),o=qe(),N=Qe(),m=fe(),{useFeatureGate:i}=Ea(),B=k.getSignedInUser(),U=Xe(B),s=n((e=>me(e))),be=s.masterTOSInfo?.isMasterTOSAccepted??!1,O=n((e=>Ke(e))),j=O.uiState.currentChatSessionId,y=ka(),{setLoading:he}=Ca(),[w,L]=l.useState(void 0),A=G("/:tenantEmailDomain/dashboard")!==null,z=G("/:tenantEmailDomain/reports")!==null,I=G("/:tenantEmailDomain/onboarding/*")!==null,Se=!!s.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:ge}=i(r.isChargeCardFeatureEnabled),{isFeatureEnabled:Z}=i(r.isDebitCardFeatureEnabled),Ee=ya(s,ge,Z),{isFeatureEnabled:ke}=i(r.isSettingsFeatureEnabled),H=n((e=>ea(e))),{isFeatureEnabled:T}=i(r.isReferralFeatureEnabled),F=n((e=>aa(e)));l.useEffect((()=>{y&&T&&!I&&F.fetchState==="Not-Started"&&m(ta(!0))}),[y,T,F.fetchState,I]);const h=k.getSignedInUser(),D=n((e=>e.tenantState)),Ce=n((e=>D.fetchState==="Completed"?na(e):[])),E=n((e=>e.expenseAutomationViewState.selectedPeriodByTenantId)),{isFeatureEnabled:ye}=i(r.isApAgingFeatureEnabled),{isFeatureEnabled:Ie}=i(r.isArAgingFeatureEnabled),{isFeatureEnabled:Te}=i(r.isExpenseAutomationEnabled),{isFeatureEnabled:_e}=i(r.isExpenseAutomationEnabledV2),W=Ia(),{isFeatureEnabled:we}=i(r.isDashboardSidebarHalloweenAnimationEnabled),{isFeatureEnabled:Ae}=i(r.isDashboardSidebarThanksGivingAnimationEnabled),{isFeatureEnabled:Fe}=i(r.isDashboardSidebarChristmasAnimationEnabled),{isFeatureEnabled:De}=i(r.isDashboardSidebarNewYearAnimationEnabled),v=s.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",{isFeatureEnabled:ve}=i(r.isTaskManagerCustomerUserAccessEnabled),$e=U||!U&&ve,Me=n((e=>g(e).totalUnreadCount)),Pe=n((e=>g(e).reducedFetchCountState)),Y=n((e=>g(e).notificationDetailsByTab.tasks.uiState.unreadCount)),q=n((e=>g(e).notificationDetailsByTab.comments.uiState.unreadCount)),Ge=n((e=>g(e).notificationDetailsByTab.tasks.fetchCountState)),$=n((e=>g(e).notificationDetailsByTab.comments.fetchCountState)),{inboxNotifications:J,isLoading:Q,isFetchingMore:X,hasFetchedAll:K,fetchMore:xe}=Ta();l.useEffect((()=>{const e=setTimeout((()=>xe?.()),0);return()=>clearTimeout(e)})),l.useEffect((()=>{if(Q===!1&&X===!1&&K===!0)if(s?.companyId!=null&&J!=null){const e=`dashboard_${s.companyId}`;L(J.filter((u=>u.roomId===e&&u.readAt==null)).length)}else L(0)}),[Q,X,K]),l.useEffect((()=>{y&&!I&&Ge.fetchState==="Not-Started"&&N.tenantId!=null&&m(sa("task_manager","dashboard"))}),[y,N.tenantId]),l.useEffect((()=>{I||$.fetchState!=="Not-Started"||m(de({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))}),[]),l.useEffect((()=>{w!=null&&$.fetchState==="In-Progress"&&(m(de({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),m(pe({unreadCount:w},"comments")))}),[w,$.fetchState]);const Re={fetchStatus:Pe,count:Me},ee=t!=null?k.getSignedInUserTenant(t):null,ae=n((e=>ee?.tenantId!=null?oa(e,ee.tenantId):void 0)),S=[];ye===!1&&S.push("accounts_payable_aging"),Ie===!1&&S.push("accounts_receivable_aging"),S.push("zeni_accounts_promo_card","treasury_promo_card"),T===!1&&S.push("rewards_card"),W===!1&&S.push("expense_automation_card");const Ve=_a(),te=n((e=>ia(e,S,h,_e,Te).fetchState)),ne=n((e=>ra(e).fetchState)),Ne=A&&(te==="Completed"||te==="Error")||z&&(ne==="Completed"||ne==="Error")||!A&&!z?void 0:"disabled",Be=l.useMemo((()=>da(s.userRole)),[s.userRole]),Ue=ca(Be),Oe=s?.rewardsLastViewedTime==null,je=h?.userEmail!=null&&H.fetchState==="Completed"&&la(H.notificationSettings,h.userEmail,Z,s),se=wa(),Le=se&&Aa(a),oe=ua(Ve?.loggedInUserRoleMap),ie=s.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,M=l.useCallback((()=>v&&oe&&!k.getTreasuryPopupSeen(t??"")&&ie===!1&&Fa(a.pathname)!=="treasury"),[v,oe,ie,a.pathname,t]),[ze,re]=l.useState(M);l.useEffect((()=>{re(M())}),[M]);const Ze=n((e=>e.treasurySetupViewState.treasuryFundsDetails)).fundsDetails,He=Da(Ze);return V.jsx(xa,{container:window.document.body,variant:"temporary",open:f,onClose:()=>d(!1),PaperProps:{sx:{width:240,zIndex:8,borderRight:"none",backgroundImage:"none"}},ModalProps:{keepMounted:!0},children:V.jsx(va,{signedInUser:B,currentTenantId:D.currentTenantId??"",tenants:D.fetchState==="Completed"?Ce:ae!=null?[ae]:[],currentTenant:s,isTenantDropdownDisabled:Ne,isSettings:le(a),isSettingsFeatureEnabled:ke,isVendorsTabVisible:Ue,isZeniAccountEnabled:Se,isChargeCardEnabled:Ee,isTreasuryEnabled:v,treasuryYieldPercentage:He,isTreasuryPopupVisible:ze,isNotificationsTabVisible:je,notificationCountDetails:Re,isExpenseAutomationEnabledForUser:W,selectedMenu:ce(a),rewardsConfiguration:{isRewardsTabVisible:T,isRewardsAnimated:Oe,rewardsPlan:F.rewardsPlan},isAiCfoAccessEnabled:se,onNotificationIconClick:()=>{d(!1);let e=Y===0&&q>0?"notifications/comments":"notifications/tasks";le(a)&&(e=Y===0&&q>0?"../../notifications/comments":"../../notifications/tasks");const u=_(a.state?.pathnameStackToGoBack,a.pathname);o(e,{state:{pathnameStackToGoBack:u}})},handleCockpitClick:()=>{window.open("/cockpit")},handleLogOutClick:()=>{d(!1);const e=_(a.state?.pathnameStackToGoBack,a.pathname);o("/signout",{replace:!0,state:{pathnameStackToGoBack:e,message:"logout"}})},handleMenuChange:e=>{if(d(!1),t==null)return;if(e.type==="ai_cfo"){if(x.trackAICFOChatScreenStateChanged("viewed","left_menu",j??null,null),!be)return void Pa({location:a,navigate:o,mergeState:{referrer:"Sidebar"}});const b=_(a.state?.pathnameStackToGoBack,a.pathname);return void o(`/${t}/ai-cfo/explore`,{state:{pathnameStackToGoBack:b,referrer:"Sidebar"}})}const u=_(a.state?.pathnameStackToGoBack,a.pathname),c=e.type,p=R(c)&&c!=="command_center";if(R(e.type)&&E[s.tenantId]!=null&&x.trackMonthEndCloseClicked(E[s.tenantId].month,E[s.tenantId].year,"Sidebar"),p&&E[s.tenantId]!=null){const b=E[s.tenantId];return void o(`/${t}/month_end_close_checks/review/${e.type}/${b.month}-${b.year}`,{state:{pathnameStackToGoBack:u,referrer:"Sidebar"}})}const P=Ga(e.type);ue(e.type)?(j!=null&&m(ba()),o(`/${t}/ai-cfo/${e.type}`,{state:{pathnameStackToGoBack:u.slice(0,-1),referrer:"Sidebar"}})):o(`/${t}/${P}`,{state:{pathnameStackToGoBack:u,referrer:"Sidebar"}})},handleMyProfileClick:()=>{d(!1),o(`/${t}/settings/my_profile`)},handleReferralsClick:()=>{d(!1),o(`/${t}/rewards`)},handleBackClick:()=>{o(`/${t}/dashboard`)},handleTenantSelect:e=>{he($a.TENANT_SWITCHING),d(!1);const u=e.tenantEmailDomain,c=ce(a);let p=`/${encodeURIComponent(u)}/`;const P=R(c);c==="home"?p+="dashboard":c==="users_and_roles"?p+="people":Ma(c)?p+="settings/my_profile":ue(c)?p+=`ai-cfo/${c}`:p+=c==="task_checklist"?"tasks":P?"month_end_close_checks/review":encodeURIComponent(c),o(p,{replace:!0}),h!=null&&(m(ma(e.tenantId)),m(pa(h.userId,e.tenantId,h.zeniSessionId)));const b=e;x.trackCompanySwitch(b.companyId,b.companyName,b.userRole)},handlePopupClose:()=>{k.saveTreasuryPopupSeen(t??"",!0),re(!1)},onZeniLogoClick:()=>{C.toggle()},isAiCfo:Le,aiCfoView:O,isOnDashboard:A,updateCurrentChatSessionId:e=>{m(fa({sessionId:e,agentId:"controller"})),o(`/${t}/ai-cfo/${e}`,{state:{...a.state}})},halloweenAnimationEnabled:we,isTaskManagerAccessEnabled:$e,thanksGivingAnimationEnabled:Ae,christmasAnimationEnabled:Fe,newYearAnimationEnabled:De})})})),La=f=>{const d=fe(),t=n((C=>me(C))),a={events:t.userRoleId!=null?[`private-encrypted-${t.userRoleId}.dashboard-user-notification`]:[],eventCallback:(C,o)=>{Sa(o)&&Je(o.mode)==="dashboard"&&d(pe({unreadCount:o.data.unread},"tasks"))}};return V.jsx(Ra,{...f,...a})};export{La as M};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-CPUhr7cG.js";import{h as r,n}from"./core-DX0hI4Tj.js";import{N as i}from"./index-C7vAMpwE.js";import"./mui-Wlh0ww8-.js";import"./sentry-BKza4F3H.js";import"./zeni-epic-state-D7J6ldp5.js";import"./recharts-D49X9rAt.js";import"./analytics-4jOsnRSg.js";import"./plaid-B7CiXQXe.js";import"./dnd-ALP2Xi80.js";import"./stripe-cKAAJElX.js";import"./lottie-Be-cIbgZ.js";import"./lexical-CIEinSVu.js";import"./pdf-ca3_zM2m.js";import"./utils-DdOI8_Qy.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="0d8bbeee-ef94-478e-b36a-0f30a9be8cda",e._sentryDebugIdIdentifier="sentry-dbid-0d8bbeee-ef94-478e-b36a-0f30a9be8cda")}catch{}})();const a=n(null,(function(e,o){return{onGoBack:()=>{o.navigate(-1)},onGoHome:()=>{o.navigate("/")}}}))(i);function _(){const e=r();return t.jsx(a,{navigate:e})}export{_ as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as ct,a as mt,m as dt,j as _}from"./liveblocks-CPUhr7cG.js";import lt from"./NotFoundScreen-bK1Cn_wC.js";import{a as k}from"./sentry-BKza4F3H.js";import{h as ft,g as ut,i as ht,u as pt,j as S,n as kt,o as gt,p as Z}from"./core-DX0hI4Tj.js";import{cw as St,fG as J,eW as Q,fU as bt,fN as b,T7 as K,fQ as d,fF as y,sC as M,y8 as It,T8 as Tt,fE as Ct,fW as yt,sH as At,T9 as F,bo as $,fy as x,sL as z,Ta as Et,cI as _t,cB as Nt}from"./zeni-epic-state-D7J6ldp5.js";import{Z as Bt,z as wt,A as xt,X as Rt,a0 as Ut,cW as Dt,s as N,a9 as vt,cX as Gt,aa as Pt,r as Ft}from"./index-C7vAMpwE.js";import"./mui-Wlh0ww8-.js";import{u as $t}from"./useAskAiCfoHostNavButtonProps-DQl9y6iE.js";import"./recharts-D49X9rAt.js";import"./analytics-4jOsnRSg.js";import"./plaid-B7CiXQXe.js";import"./dnd-ALP2Xi80.js";import"./stripe-cKAAJElX.js";import"./lottie-Be-cIbgZ.js";import"./lexical-CIEinSVu.js";import"./pdf-ca3_zM2m.js";import"./utils-DdOI8_Qy.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new t.Error().stack;l&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[l]="0de27e35-6091-4d42-8bb7-f9e3c241e61e",t._sentryDebugIdIdentifier="sentry-dbid-0de27e35-6091-4d42-8bb7-f9e3c241e61e")}catch{}})();const Mt=(t,l)=>new Promise(((n,u)=>{const g=t.map((i=>new Promise((s=>{l(i),s()}))));Promise.all(g).then((()=>{setTimeout((()=>{n()}),2e3)})).catch((i=>{u(i)}))})),jt=kt((function(t,l){const n=J(t),{signedInUser:u,isDebitCardFeatureEnabled:g}=l,i=b(t),s=Q(t),{currentTab:h}=i;return{notificationView:i,isNotificationSettingsVisible:u.userEmail!=null&&yt(n.notificationSettings,u.userEmail,g,s),isDisabled:i.notificationDetailsByTab[h].fetchState==="In-Progress"?"disabled":void 0}}),(function(t,l){const{location:n,tenantEmailDomain:u,loggedInUserRoleMap:g,externalNotificationsUnreadCount:i,allUnreadCommentsNotificationIds:s,navigate:h,markInboxNotificationAsRead:B,fetchMoreCommentsNotifications:R}=l;return{onNotificationClick:(a,o,m,c)=>{if(c==="task_deleted"){const r=`/${u}/tasks`,I=N(n.state?.pathnameStackToGoBack,n.pathname);h(r,{state:{pathnameStackToGoBack:I,message:"triggerBackClick"}})}else{const r=`/${u}/tasks/${o}`,I=N(n.state?.pathnameStackToGoBack,n.pathname);h(r,{state:{pathnameStackToGoBack:I,message:"triggerBackClick"}})}m==="unread"&&t(z("task_manager","read",[a],!1))},onCommentNotificationClick:(a,o,m)=>{const c=o.toString().split(`/${u}/`);if(c[1]!=null){m==="unread"&&(B(a),t(F([a],$())));let r=`/${u}/${c[1]}`;const I=N(n.state?.pathnameStackToGoBack,n.pathname);c[1].startsWith("reimbursement")&&!_t(g)&&(r="not-found"),c[1].startsWith("bill")&&!Nt(g)&&(r="not-found"),h(r,{state:{pathnameStackToGoBack:I,message:"triggerBackClick"}})}},onUpdateNotificationViewUIState:(a,o)=>{t(y(a,o))},onUpdateNotificationTabState:(a,o)=>{t(d(a,o))},onUpdateNotificationViewCurrentTabAndSubTab:(a,o)=>{t(K(a,o));const m=`../${a}`,c=N(n.state?.pathnameStackToGoBack,n.pathname);h(m,{state:{pathnameStackToGoBack:c}})},onUpdateNotificationViewSubTab:a=>{t(Et(a))},onFetchMoreNotifications:(a,o)=>{if(a==="tasks"){const m=[];o==="all"?m.push("read","unread"):o!=="mentions"&&m.push(o),t(M("task_manager","dashboard",m))}else R?.()},onUpdateNotificationStatus:(a,o,m,c)=>{a==="tasks"?t(z("task_manager",m,c)):(t(d({markAsReadState:{fetchState:"In-Progress",error:void 0}},"comments")),Promise.all(c.map((r=>{m==="read"&&(B(r),t(F([r],$())))}))).then((()=>{t(d({markAsReadState:{fetchState:"Completed",error:void 0},selectedNotificationIds:[]},"comments")),t(y({unreadCount:i-c.length>0?i-c.length:0},"comments")),t(x({messageSection:"notification_mark_as_read",messageText:"success",type:"success",showStatusIcon:!0}))}),(r=>{t(d({markAsReadState:{fetchState:"Error",error:r}},"comments")),t(x({messageSection:"notification_mark_as_read",messageText:"failed",type:"error",showStatusIcon:!0}))})).catch((r=>{t(d({markAsReadState:{fetchState:"Error",error:r}},"comments")),t(x({messageSection:"notification_mark_as_read",messageText:"failed",type:"error",showStatusIcon:!0}))})))},onMarkAllNotificationsAsRead:a=>{a==="tasks"?t(At("task_manager","read")):(t(d({markAsAllReadState:{fetchState:"In-Progress",error:void 0}},"comments")),Mt(s,B).then((()=>{t(F(s,$())),t(d({markAsAllReadState:{fetchState:"Completed",error:void 0}},"comments")),t(y({unreadCount:0},"comments")),t(x({messageSection:"notification_mark_as_read",messageText:"success",type:"success",showStatusIcon:!0}))})).catch((o=>{t(d({markAsAllReadState:{fetchState:"Error",error:o}},"comments")),t(x({messageSection:"notification_mark_as_read",messageText:"failed",type:"error",showStatusIcon:!0}))})))},onBackClick:()=>{const a=Ft(n.state?.pathnameStackToGoBack),o=a.poppedPathname??"../../dashboard";h(o,{state:{pathnameStackToGoBack:a.newStack}})},onSettingsClick:()=>{const a=N(n.state?.pathnameStackToGoBack,n.pathname);h("../../settings/notifications",{state:{pathnameStackToGoBack:a}})}}}))(vt(Gt)),Wt=()=>{const t=ft(),l=ut(),{tenantEmailDomain:n,selectedTab:u}=ht(),{areTenantIdsInSync:g}=Bt(),i=St(u??""),s=pt(),h=wt.getSignedInUser(),[B,R]=k.useState(!1),a=S((e=>J(e))),o=S((e=>Q(e))),{useFeatureGate:m}=xt(),{isFeatureEnabled:c}=m(Rt.isDebitCardFeatureEnabled),{isAiCfoAccessEnabled:r,onAskAiCfoClick:I}=$t({mobileExploreReferrer:"Notifications"});Ut({isDataReady:!0});const O=bt(o.userRole);if(o==null||n==null||o.companyId==null)throw Error("Can't access notifications page without current tenant...");if(h==null)throw Error("Can't access notifications page without signed in...");const j=S((e=>b(e).notificationDetailsByTab.tasks.fetchState)),W=S((e=>b(e).currentTab)),U=S((e=>b(e).currentSubTab)),Y=S((e=>b(e).notificationDetailsByTab.comments.fetchCountState)),D=S((e=>b(e).notificationDetailsByTab.comments.fetchState)),tt=S((e=>b(e).notificationDetailsByTab.comments.uiState.unreadCount)),et=S((e=>b(e).allExternalNotifications)).filter((e=>e.inboxNotification.readAt==null)).map((e=>e.inboxNotification.id)),at=Dt().allUsers,{inboxNotifications:w,isLoading:A,hasFetchedAll:T,isFetchingMore:v,fetchMore:ot}=ct(),{threads:V,isLoading:L,fetchMore:q,isFetchingMore:H,hasFetchedAll:X}=mt({query:{metadata:{companyId:o.companyId,application:"dashboard"}}});k.useEffect((()=>{if(W!==i&&i!=null&&s(K(i)),i==null){const e=`../${W}`,p=N(l.state?.pathnameStackToGoBack,l.pathname);t(e,{state:{pathnameStackToGoBack:p}})}}),[i]),k.useEffect((()=>{Y.fetchState==="Not-Started"&&s(d({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))}),[]),k.useEffect((()=>{if(A===!1&&T===!0&&o?.companyId!=null&&w!=null){const e=`dashboard_${o.companyId}`,p=w.filter((C=>C.roomId===e&&C.readAt==null)).length;s(d({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),s(y({unreadCount:p},"comments"))}}),[A,T]),k.useEffect((()=>{j!=="In-Progress"&&g&&s(M("task_manager","dashboard",["read","unread"]))}),[g]),k.useEffect((()=>{const e=setTimeout((()=>ot?.()),0);return()=>clearTimeout(e)}));const G=A||v===!0||T!==!0||A||v===!0||T!==!0;k.useEffect((()=>{G&&D!=="In-Progress"?s(d({fetchState:"In-Progress",error:void 0},"comments")):G||D!=="In-Progress"||s(d({fetchState:"Completed",error:void 0},"comments"))}),[G,D]),k.useEffect((()=>{s(y({hasMore:T!==!0},"comments"))}),[T]),k.useEffect((()=>{a.fetchState!=="In-Progress"&&a.fetchState!=="Completed"&&B===!1&&(R(!0),s(It()))}),[a.fetchState]),k.useEffect((()=>{if(A===!1&&L===!1&&w!=null&&V!=null){const e=`dashboard_${o.companyId}`,p=w.filter((f=>f.roomId===e)).filter((f=>f.kind==="thread")),C=p.filter((f=>f.readAt==null)),E=p.map((f=>f.id)),it=p.map((f=>{const P=V.find((rt=>rt.id===f.threadId));return P!=null?{inboxNotification:{...f,threadId:P.id},thread:P}:(H||X===!0||q==null||q(),null)})).filter((f=>f!=null));s(d({allNotificationsIds:E},"comments")),s(y({totalCount:E.length,unreadCount:C.length},"comments")),s(Tt(it))}}),[A,v,H,T,X,L,w?.length]);const st={events:o.userRoleId!=null?[`private-encrypted-${o.userRoleId}.dashboard-user-notification`]:[],eventCallback:(e,p)=>{if(Pt(p)){const C=Ct(p.mode);if(C==="dashboard"&&s(y({unreadCount:p.data.unread},"tasks")),j!=="In-Progress"){const E=[];U==="all"?E.push("read","unread"):U!=="mentions"&&E.push(U),s(M("task_manager",C,E,!0))}}}},nt=dt();return _.jsx(jt,{tenantEmailDomain:n,loggedInUserRoleMap:O,signedInUser:h,externalNotificationsUnreadCount:tt,location:l,navigate:t,isDebitCardFeatureEnabled:c,users:at,markInboxNotificationAsRead:nt,allUnreadCommentsNotificationIds:et,isAiCfoAccessEnabled:r,onAskAiCfoClick:I,...st})};function ne(){return _.jsxs(gt,{children:[_.jsx(Z,{path:"/:selectedTab",element:_.jsx(Wt,{})}),_.jsx(Z,{path:"*",element:_.jsx(lt,{})})]})}export{ne as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as m}from"./liveblocks-CPUhr7cG.js";import{a as r}from"./sentry-BKza4F3H.js";import{u as A,g as T,j as o,N as C}from"./core-DX0hI4Tj.js";import{My as j,eW as z,fM as P,Mz as x,MA as D,MB as L,MC as R,oc as k,Lv as N}from"./zeni-epic-state-D7J6ldp5.js";import{z as h,H as I}from"./index-C7vAMpwE.js";import"./mui-Wlh0ww8-.js";import"./recharts-D49X9rAt.js";import"./analytics-4jOsnRSg.js";import"./plaid-B7CiXQXe.js";import"./dnd-ALP2Xi80.js";import"./stripe-cKAAJElX.js";import"./lottie-Be-cIbgZ.js";import"./lexical-CIEinSVu.js";import"./pdf-ca3_zM2m.js";import"./utils-DdOI8_Qy.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new n.Error().stack;s&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[s]="1312531d-2da9-4422-9276-7e4dcfe0ddbd",n._sentryDebugIdIdentifier="sentry-dbid-1312531d-2da9-4422-9276-7e4dcfe0ddbd")}catch{}})();function ee(){const n=A(),s=T(),{params:t,error:i}=r.useMemo((()=>j(s.search)),[s.search]),w=r.useMemo((()=>new URLSearchParams(s.search).get("client_name")??t?.clientId??"Unknown Application"),[s.search,t]),p=h.isSignedIn(),a=h.getSignedInUser(),f=o((e=>z(e))),d=o((e=>P(e))),l=o((e=>e.tenantState.fetchState)),y=o(x),v=o(D),c=o(L),[S,b]=r.useState(null),[E,M]=r.useState(null);r.useEffect((()=>{document.querySelector("#app-shell-loader")?.remove()}),[]),r.useEffect((()=>()=>{n(R())}),[n,s.search]),r.useEffect((()=>{i!=null&&console.warn("[OAuthConsent] invalid params:",i)}),[i]);const g=r.useRef(!1);r.useEffect((()=>{p&&a!=null&&!g.current&&(l!=="Not-Started"&&l!=="Error"||(g.current=!0,n(k(a.userId,a.zeniSessionId??void 0))))}),[p,a,l,n]),r.useEffect((()=>{c!=null&&c!==""&&(window.location.href=c)}),[c]);const _=r.useMemo((()=>{if(f?.tenantId!=null)return f.tenantId;const e=h.getActiveTenantForUser()?.tenantId;return e!=null&&d.some((U=>U.tenantId===e))?e:d.length===1?d[0].tenantId:null}),[f?.tenantId,d]),u=S??_;return i!=null?m.jsx(I,{variant:"invalid_params",paramsError:i}):p?m.jsx(I,{variant:"signed_in",clientName:w,userEmail:a?.userEmail,isInitializing:l!=="Completed",tenants:d,selectedTenantId:u,onSelectTenant:b,approveError:E??v,isApproving:y==="In-Progress",showAllowButton:u!=null,onApprove:()=>{t!=null&&a!=null&&u!=null&&n(N(a.userId,a.zeniSessionId??void 0,u,t.clientId,t.redirectUri,t.codeChallenge,t.codeChallengeMethod,t.state,t.responseType))},onDeny:()=>{if(t!=null)try{const e=new URL(t.redirectUri);e.searchParams.set("error","access_denied"),e.searchParams.set("error_description","The user denied the request"),e.searchParams.set("state",t.state),window.location.href=e.toString()}catch{M("Unable to deny: redirect_uri is not a valid URL. Close this window or contact support.")}}}):m.jsx(C,{to:"/signin/auth",state:{origin:s.pathname+s.search},replace:!0})}export{ee as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as n}from"./liveblocks-CPUhr7cG.js";import{h as Z,u as z,g as X,i as H,j as d,n as J,o as K,p as I}from"./core-DX0hI4Tj.js";import{eW as U,sq as R,r_ as Q,N3 as v,rV as S,bs as ee,bn as ae,bZ as te,rW as se,N4 as oe,MS as C,dI as re,w5 as ne,N5 as ie,ws as ce,fD as le,fB as de}from"./zeni-epic-state-D7J6ldp5.js";import{z as me,Z as fe,a0 as pe,T as ue,A as w,X as M,_ as he,c as N,ap as be,s as ge}from"./index-C7vAMpwE.js";import"./mui-Wlh0ww8-.js";import Fe from"./NotFoundScreen-bK1Cn_wC.js";import{F as Ie}from"./FeaturePreviewScreen-BwTdLVoX.js";import{a as b}from"./sentry-BKza4F3H.js";import{u as Ce}from"./useAskAiCfoHostNavButtonProps-DQl9y6iE.js";import{u as Se}from"./useInitialThreadRequest-D7aWfHSp.js";import{t as Te}from"./routePaths-DGHjnhpU.js";import{M as ye}from"./MobileAppDrawer-DPnpVzNw.js";import"./recharts-D49X9rAt.js";import"./analytics-4jOsnRSg.js";import"./plaid-B7CiXQXe.js";import"./dnd-ALP2Xi80.js";import"./stripe-cKAAJElX.js";import"./lottie-Be-cIbgZ.js";import"./lexical-CIEinSVu.js";import"./pdf-ca3_zM2m.js";import"./utils-DdOI8_Qy.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new s.Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="419ddb8f-bd73-4219-b95c-5f092b74b8bf",s._sentryDebugIdIdentifier="sentry-dbid-419ddb8f-bd73-4219-b95c-5f092b74b8bf")}catch{}})();const T=(s,e,a,o)=>{if(s!=e){const r=o??"";s!=null&&s.length>0?a(`../${e}${r}`,{replace:!0}):a(`${e}${r}`,{replace:!0})}},Ae=J((function(s){const e=oe(s),a={},o=e.pandLReportWithForecast.uiState.nodeCollapseState;return Object.keys(o).forEach((r=>{a[r]=o[r]===!1})),{selectedTimeframe:e.selectedTimeframe,isForecastVsActualOn:e.isForecastVsActualOn,compareMode:e.compareMode,forecastList:e.forecastList,selectedForecast:e.selectedForecast,pandLreport:e.pandLReportWithForecast,scrollPosition:e.pandLReportWithForecast.uiState.scrollPosition,nodeOpenStatus:a,type:"name+balances_forecast",analytics:N}}),(function(s,e){return{onForecastSelectionChanged:(a,o)=>{s(v(a,o)),e.isPandLReportFetched(a)||s(S(a)),T(e.forecastIdFromUrlPath,a,e.navigate)},onTimeframeChanged:a=>{s(ce(a))},onForecastVsActualsCompareToggle:a=>{s(ie(a)),s(C({forecastId:e.forecastIdFromUrlPath,scrollPosition:{scrollLeft:0,scrollTop:0}}))},onCompareModeChanged:a=>{s(ne(e.firstMonthOfFY,a,0,[]))},onAccountBalanceClick:e.hasTransactionAccess!==!0?void 0:(a,o)=>{let r,i;const p=a.accountName===""?a.accountDescription:a.accountName;if(o.balanceTimeFrame==="month"||o.balanceTimeFrame==="quarter"?(r=o.balanceTimeFrame,i=re(o)):o.balanceTimeFrame==="year"?(r="quarter",i={startDate:o.endDate.startOf("quarter"),endDate:o.endDate}):console.error(`timeframe ${o.balanceTimeFrame} is not supported`),i!=null&&r!=null){const m=Te(e.tenantEmailDomain,a.accountId,a.accountType,p,r,i),u=ge(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(m,{state:{pathnameStackToGoBack:u,referrer:"Forecast"}})}},onNodeCollapseToggled:(a,o)=>{s(C({forecastId:e.forecastIdFromUrlPath,nodeCollapseState:{nodeId:a,isCollapsed:o===!1}}))},onTableScroll:a=>{s(C({forecastId:e.forecastIdFromUrlPath,scrollPosition:a}))},onBackClick:()=>{e.navigate("../../")}}}))(be);function O(){const s=Z(),e=z(),a=X(),{forecastId:o,tenantEmailDomain:r}=H(),[i,p]=b.useState(!1),[m,u]=b.useState(!1),h=me.getSignedInUser(),y=d((t=>U(t))),$=y.company?.companyInfo.firstMonthOfFY??1,c=d((t=>R(t.forecastState,t.forecastListState))),l=d((t=>t.forecastListState.fetchState==="Completed")),A=d((t=>t.profitAndLossState)),k=d((t=>t.reportUIOptionsState.selectedForecast)),D=t=>A.pandLByForecastID[t]!=null&&se(t,A).reducedAllFetchState.fetchState==="Completed",{areTenantIdsInSync:g}=fe();pe({isDataReady:l});const{isAiCfoAccessEnabled:_,onAskAiCfoClick:B}=Ce({mobileExploreReferrer:"Forecast"});b.useEffect((()=>{if(!i&&g)p(!0),l||e(Q());else if(l&&!m){u(!0);const t=((f,L,P)=>L!=null?f.forecasts.findIndex((F=>F.id===L)):P!=null?f.forecasts.findIndex((F=>F.id===P)):f.forecasts.length>0?0:-1)(c,o,k?.id);t===-1&&o!=null?s("page-not-found",{replace:!0}):t!==-1&&t!=k?.index?(e(v(c.forecasts[t].id,t)),T(o,c.forecasts[t].id,s,a.search)):o==null&&t!==-1&&T(void 0,c.forecasts[t].id,s,a.search),t!==-1&&!D(c.forecasts[t].id)&&g&&e(S(c.forecasts[t].id))}}),[i,p,e,l,c,m,u,R,S,g]);const x=ue(),W=x?.loggedInUserRole!=null&&ee(x.loggedInUserRole),{useFeatureGate:q}=w(),{isFeatureEnabled:j}=q(M.isReportsCommentingEnabled),G=Se(j?y?.companyId:void 0,{clearParams:l&&m}),[V,Y]=b.useState(!1),E=t=>{Y(t)};return n.jsxs(n.Fragment,{children:[l?n.jsx(he,{analytics:N,onLoad:t=>(f=>f.trackForecast())(t)}):null,n.jsx(ye,{isAppContentDrawerOpen:V,handleDrawerToggle:E}),n.jsx(Ae,{firstMonthOfFY:$,tenantEmailDomain:r,forecastIdFromUrlPath:o,navigate:s,location:a,isPandLReportFetched:D,meetingUrl:te(`https://meetings.hubspot.com/svitlana-grankovska?firstname=${h?.firstName}&lastname=${h?.lastName}&email=${h?.userEmail}`),hasTransactionAccess:W,isAiCfoAccessEnabled:_,onAskAiCfoClick:B,isReportsCommentingEnabled:j,isZeniUser:ae(h),initialOpenThreadRequest:G,onClickMenuIcon:()=>{E(!0)}})]})}function Ye(){const s=d((i=>U(i))),{useFeatureGate:e}=w(),{isFeatureEnabled:a}=e(M.isDebitCardFeatureEnabled),o=le(a,s),r=de(s);return o===!0||r===!0?n.jsx(Ie,{}):n.jsxs(K,{children:[n.jsx(I,{path:"/",element:n.jsx(O,{})}),n.jsx(I,{path:"/:forecastId",element:n.jsx(O,{})}),n.jsx(I,{path:"/:forecastId/*",element:n.jsx(Fe,{})})]})}export{Ye as PandLWithForecastRoutes,Ye as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CPUhr7cG.js";import E from"./NotFoundScreen-bK1Cn_wC.js";import{a as r}from"./sentry-BKza4F3H.js";import{h as _,g as v,j as p,i as M,u as U,N as P,n as z,o as O,p as b}from"./core-DX0hI4Tj.js";import{eW as B,Tb as h,bq as F,bn as N,ig as V,fy as q}from"./zeni-epic-state-D7J6ldp5.js";import{w as W,z as I,a0 as Y,cY as $}from"./index-C7vAMpwE.js";import"./mui-Wlh0ww8-.js";import{u as G}from"./useAskAiCfoHostNavButtonProps-DQl9y6iE.js";import{M as H}from"./MobileAppDrawer-DPnpVzNw.js";import"./recharts-D49X9rAt.js";import"./analytics-4jOsnRSg.js";import"./plaid-B7CiXQXe.js";import"./dnd-ALP2Xi80.js";import"./stripe-cKAAJElX.js";import"./lottie-Be-cIbgZ.js";import"./lexical-CIEinSVu.js";import"./pdf-ca3_zM2m.js";import"./utils-DdOI8_Qy.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]="b146cbd2-51d8-4303-bf79-61fa91a0abe7",e._sentryDebugIdIdentifier="sentry-dbid-b146cbd2-51d8-4303-bf79-61fa91a0abe7")}catch{}})();const J=z((function(e){const t=I.getSignedInUser(),c=e.tenantState.currentTenantId,o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:c??""},{aggregatedReportViewState:n}=h(e);return{authParams:o,isDisabled:!1,loggedInUser:t,aggregatedReport:n}}),(function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}}))($),K=()=>{const e=_(),t=v(),c=W(),o=p((a=>B(a))),{aggregatedReportViewState:n}=p((a=>h(a))),{tenantEmailDomain:m}=M(),u=U(),l=I.getSignedInUser();if(l==null)throw new Error("Can't access this page without signing in...");const f=r.useRef(!1),[w,S]=r.useState(!1),C=F(o?.userRole??[]),k=o?.userRole?.includes("bookkeeping_admin")??!1,y=N(l),x=C||k||y,d=r.useCallback(((a,i,T)=>{u(V({fromMonth:a,toMonth:i,cacheOverride:T}))}),[]);r.useEffect((()=>{n?.fetchState==="Completed"&&f.current&&(u(q({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),f.current=!1)}),[n?.fetchState]);const D=r.useCallback(((a,i)=>{n!=null&&n?.fetchState==="In-Progress"||d(a,i,!0),f.current=!0}),[n?.fetchState,d]),j=r.useCallback(((a,i)=>{d(a,i,!1)}),[d]),g=a=>{S(a)},{isAiCfoAccessEnabled:R,onAskAiCfoClick:A}=G({mobileExploreReferrer:"Performance"});return Y({isDataReady:n?.fetchState==="Completed"}),x?s.jsxs(s.Fragment,{children:[s.jsx(H,{isAppContentDrawerOpen:w,handleDrawerToggle:g}),s.jsx(J,{navigate:e,location:t,themeState:c,currentTenant:o,signedInUser:l,tenantEmailDomain:m,onReload:D,onTimeRangeSelect:j,handleDrawerToggle:g,isAiCfoAccessEnabled:R,onAskAiCfoClick:A})]}):s.jsx(P,{to:`/${m}/dashboard`,replace:!0})};function ge(){return s.jsxs(O,{children:[s.jsx(b,{path:"*",element:s.jsx(K,{})}),s.jsx(b,{path:"*",element:s.jsx(E,{})})]})}export{ge as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./liveblocks-CPUhr7cG.js";import _ from"./NotFoundScreen-bK1Cn_wC.js";import{a as p}from"./sentry-BKza4F3H.js";import{h as E,g as x,u as C,j as u,N as D,n as k,o as F,p as b}from"./core-DX0hI4Tj.js";import{eW as j,Qt as g,QJ as S,FS as V,E$ as U,FR as d,FI as $,QW as B,FU as O}from"./zeni-epic-state-D7J6ldp5.js";import{z as N,a9 as L,bZ as Q,ag as T,bC as z,b_ as J}from"./index-C7vAMpwE.js";import"./mui-Wlh0ww8-.js";import{u as K,R as A}from"./ReimbursementApprovalRuleDetailScreen-BnbdeeWc.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="286a50a0-4cdf-4b5c-9f44-e1e45a19cbbd",e._sentryDebugIdIdentifier="sentry-dbid-286a50a0-4cdf-4b5c-9f44-e1e45a19cbbd")}catch{}})();const y="reimbursement-approval-rule-update",Z=k((function(e){return{approvalView:g(e),remiSetupApproverViewUpdateData:S(e).remiSetupApproverViewUpdateData}}),(function(e,o){const{navigate:s,location:n}=o;return{onApprovalRulesEventReceived:t=>{t.endsWith(y)&&e(B(!1))},onBackClick:()=>{T(n)?s("../../"):s("../../../reimbursements/setup")},onDeleteRuleClick:t=>{e($(t,!1))},onEditRuleClick:t=>{t!=null?(e(d(t)),s(`./${t}/edit`)):(e(d()),s("./new"))}}}))(L(Q)),q=({isLoading:e})=>{const o=E(),s=x(),n=C(),[t,i]=p.useState(!1),[m,R]=p.useState(!1),f=u((a=>a.remiSetupApproverViewState.fetchState)),l=u((a=>j(a))),c=u((a=>g(a))),v=u((a=>S(a).remiSetupApproverViewUpdateData));if(p.useEffect((()=>{v?.updateStatus.fetchState==="Completed"&&n(V())}),[v]),p.useEffect((()=>{t||f!=="Not-Started"||e||(i(!0),n(U(!0,!1,!1,!1)))}),[t,f,e,n]),N.getSignedInUser()==null)throw Error("Can't access reimbursement approval without signing in...");p.useEffect((()=>{c.allApprovalRules.length===0&&c.fetchState==="Completed"&&(m||(R(!0),n(d())),o("./new"))}),[m,c,n]);const w={events:l.companyId!=null?[`private-encrypted-${l.companyId}.${y}`]:[],eventCallback:(a,W,h)=>{a.endsWith(y)&&h.onApprovalRulesEventReceived(a)}};return l?.companyReimbursementInfo?.info?.isReimbursementTOSAccepted===!1?r.jsx(D,{to:"../../promo"}):r.jsx(Z,{currentTenant:l,location:s,navigate:o,...w})},I="reimbursement-approval-rule-update",G=k((function(e){const o=g(e),s=S(e).remiSetupApproverViewUpdateData,n={};for(const i of Object.values(e.vendorState.vendorByID))i?.id!=null&&(n[i.id]=i.name);const t={};for(const i of Object.values(e.classState.classesByKey))i?.classId!=null&&(t[i.classId]=i.className);return{approvalView:o,remiSetupApproverViewUpdateData:s,vendorNamesById:n,departmentNamesById:t}}),(function(e,o){const{navigate:s,location:n}=o;return{onApprovalRulesEventReceived:t=>{t.endsWith(I)&&e(B(!1))},onBackClick:()=>{T(n)?s("../../"):s("../../../reimbursements/setup")},onDeleteRuleClick:t=>{e($(t,!0))},onEditRuleClick:t=>{t!=null?(e(d(t)),s(`./${t}/edit`)):(e(d()),s("./new"))},onReorderRules:t=>{e(O(t,!0))}}}))(L(J)),H=()=>{const e=u((n=>j(n))),{isApprovalRulesV3Enabled:o,isLoading:s}=z(e?.tenantId);return o?r.jsx(M,{isLoading:s}):r.jsx(q,{isLoading:s})},M=({isLoading:e})=>{const o=E(),s=x(),n=C(),[t,i]=p.useState(!1),[m,R]=p.useState(!1),f=u((a=>a.remiSetupApproverViewState.fetchState)),l=u((a=>j(a))),c=u((a=>g(a)));K();const v=u((a=>S(a).remiSetupApproverViewUpdateData));if(p.useEffect((()=>{v?.updateStatus.fetchState==="Completed"&&n(V())}),[v]),p.useEffect((()=>{t||f!=="Not-Started"||e||(i(!0),n(U(!0,!1,!1,!0)))}),[t,f,e,n]),N.getSignedInUser()==null)throw Error("Can't access reimbursement approval without signing in...");p.useEffect((()=>{c.allApprovalRules.length===0&&c.fetchState==="Completed"&&(m||(R(!0),n(d())),o("./new"))}),[m,c,n]);const w={events:l.companyId!=null?[`private-encrypted-${l.companyId}.${I}`]:[],eventCallback:(a,W,h)=>{a.endsWith(I)&&h.onApprovalRulesEventReceived(a)}};return l?.companyReimbursementInfo?.info?.isReimbursementTOSAccepted===!1?r.jsx(D,{to:"../../promo"}):r.jsx(G,{currentTenant:l,location:s,navigate:o,isLoading:e,...w})};function oe(){return r.jsxs(F,{children:[r.jsx(b,{path:"/",element:r.jsx(H,{})}),r.jsx(b,{path:"/new",element:r.jsx(A,{})}),r.jsx(b,{path:"/:approvalRuleId/edit",element:r.jsx(A,{})}),r.jsx(b,{path:"*",element:r.jsx(_,{})})]})}export{oe as R};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-CPUhr7cG.js";import{z as b,_ as S,c as u,f as E,d8 as k,A as I,X as C}from"./index-C7vAMpwE.js";import"./mui-Wlh0ww8-.js";import g from"./NotFoundScreen-bK1Cn_wC.js";import{a as l}from"./sentry-BKza4F3H.js";import{u as D,j as h,h as F,g as T,n as L,o as U,p as f,N as y}from"./core-DX0hI4Tj.js";import{eW as V,TT as w,TU as p,vX as _,fJ as P,TV as X,vV as z}from"./zeni-epic-state-D7J6ldp5.js";import"./recharts-D49X9rAt.js";import"./analytics-4jOsnRSg.js";import"./plaid-B7CiXQXe.js";import"./dnd-ALP2Xi80.js";import"./stripe-cKAAJElX.js";import"./lottie-Be-cIbgZ.js";import"./lexical-CIEinSVu.js";import"./pdf-ca3_zM2m.js";import"./utils-DdOI8_Qy.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]="5b8286ff-c1e0-4ccf-94f3-4afc1be9dd80",e._sentryDebugIdIdentifier="sentry-dbid-5b8286ff-c1e0-4ccf-94f3-4afc1be9dd80")}catch{}})();const A=L((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=b.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(z())},onUpdateInviteFormLocalData:s=>{e(X({localData:s}))},onSubmitSuccess:()=>{e(p())},onCancelClick:()=>{i!=null&&u.trackInviteEmailClicked("cancel")}}}))(k),G=()=>{const e=D(),[t,n]=l.useState(!1),[i,s]=l.useState(!1),r=h((o=>V(o))),c=F(),j=T(),d=b.getSignedInUser();if(d==null)throw Error("Can't access invite referral screen without signing in...");const m=h((o=>w(o))),v=d?.firstName!=null?d.firstName:"User";l.useEffect((()=>{e(p()),r?.rewardsLastViewedTime==null&&i===!1&&(e(_()),s(!0))}),[]),l.useEffect((()=>{t||m.fetchState!=="Not-Started"||(n(!0),e(P(!0)))}),[m.fetchState,e]);const x=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[m.fetchState==="Completed"?a.jsx(S,{analytics:u,onLoad:o=>(N=>N.trackPageLoaded(E.Event.inviteEmailViewed))(o)}):null,a.jsx(A,{navigate:c,location:j,currentTenant:r,companyName:x,userName:v,inviteFormCompayData:m.localData})]})};function ne(){const{useFeatureGate:e}=I(),{isFeatureEnabled:t}=e(C.isReferralFeatureEnabled);return a.jsxs(U,{children:[a.jsx(f,{path:"/",element:a.jsx(y,{to:"refer",replace:!0})}),a.jsx(f,{path:"how-it-works",element:a.jsx(y,{to:"refer",replace:!0})}),a.jsx(f,{path:"refer/*",element:t?a.jsx(G,{}):a.jsx(g,{})}),a.jsx(f,{path:"*",element:a.jsx(g,{})})]})}export{ne as default};
|