@zeniai/web-app-ui 5.0.20-qa → 5.0.22-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-BJrRevGa.js +1 -0
- package/dist/assets/{AddressScreen-Cb_9EmBQ.js → AddressScreen-BQPPe7pR.js} +2 -2
- package/dist/assets/AiCfoScreen-C5DOIEt_.js +11 -0
- package/dist/assets/{BillPayApprovalRoutes-y7moBK-h.js → BillPayApprovalRoutes-Qtg1Jo5l.js} +1 -1
- package/dist/assets/{BillPayRoutes-BWxnSvNr.js → BillPayRoutes-DkAPd68y.js} +8 -8
- package/dist/assets/{BusinessVerificationPageScreen-BLm71CWm.js → BusinessVerificationPageScreen-CktedTYt.js} +2 -2
- package/dist/assets/{ChargeCardRoutes-BzNwraqW.js → ChargeCardRoutes-B8s0w6So.js} +8 -8
- package/dist/assets/CompanyPassportScreen-C8EcswEA.js +1 -0
- package/dist/assets/{ConnectionAuthScreen-Djma4Bm8.js → ConnectionAuthScreen-Zh5E4_CJ.js} +2 -2
- package/dist/assets/CustomerOnboardingAuthScreen-HXUuepjr.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-CbHAqwxG.js → CustomerOnboardingRoutes-RiQ255x9.js} +4 -4
- package/dist/assets/{DashboardRoutes-BtQI7NbJ.js → DashboardRoutes-DD6E0pG7.js} +3 -3
- package/dist/assets/{DefaultTenantHome-B81akhAm.js → DefaultTenantHome-feQeI0F_.js} +1 -1
- package/dist/assets/DomesticWireDetailScreen-eW-I-lqX.js +18 -0
- package/dist/assets/DrawerScreen-HBFMcVvk.js +1 -0
- package/dist/assets/{EntityDetailRoutes-CYe5GW55.js → EntityDetailRoutes-Bh44Er44.js} +1 -1
- package/dist/assets/ExpenseAutomationRoutes-CgCGvHQG.js +25 -0
- package/dist/assets/FeaturePreviewScreen-Bd18oGQj.js +1 -0
- package/dist/assets/MagicLinkRoutes-DFA8OahA.js +72 -0
- package/dist/assets/MagicLinkSignInScreen-CLhGIPxm.js +12 -0
- package/dist/assets/MobileAppDrawer-CwjUL5yD.js +1 -0
- package/dist/assets/NotFoundScreen-DZbU-KCv.js +1 -0
- package/dist/assets/{NotificationRoutes-CRynelUf.js → NotificationRoutes-BOGZiZZG.js} +1 -1
- package/dist/assets/PandLWithForecastRoutes-DZ6jC1bX.js +1 -0
- package/dist/assets/{PeopleRoutes-Bo95azg1.js → PeopleRoutes-DD_GpPXZ.js} +9 -9
- package/dist/assets/PerformanceRoutes-BEO8LXrv.js +1 -0
- package/dist/assets/{Preview-BXohszpd.js → Preview-DQaLRQjm.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-B_Iv-Jup.js → QBOConnectionScreen-ZhIN2-uP.js} +1 -1
- package/dist/assets/{ReferralListScreen-CT8COHO0.js → ReferralListScreen-CWHCaSQw.js} +2 -2
- package/dist/assets/ReimbursementApprovalRoutes-DLby1pC7.js +1 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-BSJvMfmy.js → ReimbursementApprovalRuleDetailScreen-roSj06Ji.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-Crxj9U5j.js → ReimbursementRoutes-BQAXwJX9.js} +6 -6
- package/dist/assets/{ReportsRoutes-Brd5m0YA.js → ReportsRoutes-COAdHt4D.js} +1 -1
- package/dist/assets/RewardsRoutes-Dw-aqOm5.js +1 -0
- package/dist/assets/{ScreenRoutes-BgcK48e3.js → ScreenRoutes-DV65D9fc.js} +2 -2
- package/dist/assets/{SettingsRoutes-CogpjDxD.js → SettingsRoutes-XQ9e9KID.js} +5 -5
- package/dist/assets/{SetupPagesScreen-C5z2OQ3X.js → SetupPagesScreen-BcfdYSeZ.js} +1 -1
- package/dist/assets/{SignInScreen-BrGMsoQX.js → SignInScreen-Cc84lO8c.js} +1 -1
- package/dist/assets/SignOutScreen-DzSDmVnc.js +9 -0
- package/dist/assets/{TaskListScreen-DT8MICZp.js → TaskListScreen-B_Yspya7.js} +2 -2
- package/dist/assets/TaskRoutes-DkUNX7ep.js +9 -0
- package/dist/assets/TransactionDetailRoutes-C5W6mPZ3.js +1 -0
- package/dist/assets/{TransactionDetailScreen-DRrJTiHG.js → TransactionDetailScreen-CbyG0n1m.js} +1 -1
- package/dist/assets/{TransactionListRoutes-DVfBJ6Ob.js → TransactionListRoutes-Uz8iUZDH.js} +1 -1
- package/dist/assets/{TreasuryRoutes-CNL9l3-q.js → TreasuryRoutes-DMgnld7f.js} +6 -6
- package/dist/assets/{VendorsRoutes-DL99Yq-y.js → VendorsRoutes-JX67ErLJ.js} +1 -1
- package/dist/assets/WiseConfirmationScreen-B_bo1Cpn.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-BzgEiwqj.js → ZeniAccountRoutes-Cy1TFPrS.js} +10 -10
- package/dist/assets/ZeniAccountStatementScreen-Dvs4m1EF.js +9 -0
- package/dist/assets/{accountMappingHelper-BR6VxhSD.js → accountMappingHelper-DpblOBXy.js} +1 -1
- package/dist/assets/{analytics-CgaqSFat.js → analytics-BSnG8C1z.js} +1 -1
- package/dist/assets/{analyticsHelper-Co0biJvM.js → analyticsHelper-BlP3gsal.js} +1 -1
- package/dist/assets/{core-AMZJGpoV.js → core-BF8mCLAO.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-DNGRwvKs.js → decodeURIComponentSafe-BogCAdat.js} +1 -1
- package/dist/assets/{dnd-C4u70dJH.js → dnd-BwvUecBQ.js} +1 -1
- package/dist/assets/{empty-AgaGyBlm.js → empty-CH1gmPwH.js} +1 -1
- package/dist/assets/{empty-DmTCdHiz.js → empty-DhgRx5Ms.js} +1 -1
- package/dist/assets/{emptyVideoElement-DgTh6sDI.js → emptyVideoElement-CIPD7QoK.js} +1 -1
- package/dist/assets/{epic-Bz0gIByF.js → epic-CBSMbAdJ.js} +1 -1
- package/dist/assets/getLocaleForTenant-BZ9xLliJ.js +1 -0
- package/dist/assets/index-Bc34frN_.css +1 -0
- package/dist/assets/{index-Bwb8m5V-.js → index-BjHWZg4v.js} +1 -1
- package/dist/assets/{index-CjJS6JvG.js → index-Bv4UcPLE.js} +2 -2
- package/dist/assets/{index-DClxQldp.js → index-C-wmbsLK.js} +1 -1
- package/dist/assets/{index-iatPGBna.js → index-Cuo-3WZY.js} +1 -1
- package/dist/assets/{index-N5K3qQkU.js → index-Drj6C88E.js} +22813 -22319
- package/dist/assets/{index-BglIPIvl.js → index-DxU2jKyi.js} +1 -1
- package/dist/assets/{index-Swai7U66.js → index-DzmJ6hZq.js} +1 -1
- package/dist/assets/{lexical-hn7WhrHW.js → lexical-BHRXj1_E.js} +1 -1
- package/dist/assets/{liveblocks-Cm6P1Xg9.js → liveblocks-it_Rhm8-.js} +1 -1
- package/dist/assets/{lottie-CEe6fZ1i.js → lottie-CJdx3HBv.js} +1 -1
- package/dist/assets/{mui-5LlzyiP2.js → mui-B87RTrAV.js} +1 -1
- package/dist/assets/{pathToGoBack-De67_VBD.js → pathToGoBack-_pwiC6EH.js} +1 -1
- package/dist/assets/{pdf-lib-BXQxUj4c.js → pdf-lib-BX9OJ6Nl.js} +1 -1
- package/dist/assets/{pdf-DzINawGT.js → pdf-oE7nS36B.js} +4 -4
- package/dist/assets/{plaid-nK_3ZvzH.js → plaid-lXH1vlKo.js} +1 -1
- package/dist/assets/{pusher-CjEZkdOe.js → pusher-BuqNN16A.js} +1 -1
- package/dist/assets/{react-DCJKQzil.js → react-BPb4kZZA.js} +1 -1
- package/dist/assets/{react-D9RPLCn-.js → react-BqI_r-ls.js} +1 -1
- package/dist/assets/{react-T4GM5RLO.js → react-DcdwnIrk.js} +1 -1
- package/dist/assets/{react-BIiJHpnP.js → react-K11bZKBw.js} +1 -1
- package/dist/assets/{react-DgmtF1S_.js → react-Z36nuoKZ.js} +1 -1
- package/dist/assets/{react-DOoN7l3d.js → react-fYlmVc1c.js} +1 -1
- package/dist/assets/{recharts-LaAu_fL4.js → recharts-BBMAmq_A.js} +1 -1
- package/dist/assets/{routePaths-meDm6KLz.js → routePaths-Cqx2U__X.js} +1 -1
- package/dist/assets/{sentry-CH1ai1xG.js → sentry-C-hGmJ4T.js} +1 -1
- package/dist/assets/{url-CoAFnj2p.js → url-0lwNJByp.js} +1 -1
- package/dist/assets/{url-jOgcU75X.js → url-DTsNJhPz.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-wDzGPcQn.js +1 -0
- package/dist/assets/{useDeviceId-C9Bh2Mvx.js → useDeviceId-CGZ6TLY7.js} +1 -1
- package/dist/assets/useFetchSuggestedQuestionsWhenReady-D4I-78Sf.js +1 -0
- package/dist/assets/{useInitialThreadRequest-vKKjrofy.js → useInitialThreadRequest-sUCtW719.js} +1 -1
- package/dist/assets/{utils-DRDD4XTN.js → utils-C4NhxqJn.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-Bf8LYRg6.js → withTransactionSidePanel-DTDtCDdY.js} +3 -3
- package/dist/assets/{zeni-epic-state-CaufR46d.js → zeni-epic-state-Ds1G4QGX.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/AddressRoutes-B6j12uTF.js +0 -1
- package/dist/assets/AiCfoScreen-CLp8S2lW.js +0 -11
- package/dist/assets/CompanyPassportScreen-BUkmQF51.js +0 -1
- package/dist/assets/CustomerOnboardingAuthScreen-DJn2pUgu.js +0 -1
- package/dist/assets/DomesticWireDetailScreen-D_8szANI.js +0 -18
- package/dist/assets/DrawerScreen-hOKdmqaY.js +0 -1
- package/dist/assets/ExpenseAutomationRoutes-U-buIEG3.js +0 -20
- package/dist/assets/FeaturePreviewScreen-XRpSmfAA.js +0 -1
- package/dist/assets/MagicLinkRoutes-z2OnGDhR.js +0 -72
- package/dist/assets/MagicLinkSignInScreen-BzZa4ZxZ.js +0 -12
- package/dist/assets/MobileAppDrawer-CAbg3Q-N.js +0 -1
- package/dist/assets/NotFoundScreen-DCVl9MiG.js +0 -1
- package/dist/assets/PandLWithForecastRoutes-BZgxjZvQ.js +0 -1
- package/dist/assets/PerformanceRoutes-SK18oh8d.js +0 -1
- package/dist/assets/ReimbursementApprovalRoutes-D_X7Se2H.js +0 -1
- package/dist/assets/RewardsRoutes-CpyGkHSD.js +0 -1
- package/dist/assets/SignOutScreen-kYocp39P.js +0 -9
- package/dist/assets/TaskRoutes-n4RYkvEl.js +0 -9
- package/dist/assets/TransactionDetailRoutes-yTZfc_Av.js +0 -1
- package/dist/assets/WiseConfirmationScreen-DSPUSzLW.js +0 -12
- package/dist/assets/ZeniAccountStatementScreen-BP58chZP.js +0 -9
- package/dist/assets/getLocaleForTenant-Cuk0zyAy.js +0 -1
- package/dist/assets/index-D-vub4_t.css +0 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-Du0DR5Lw.js +0 -1
- package/dist/assets/useFetchSuggestedQuestionsWhenReady-ChhFydzB.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-Drj6C88E.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-C-hGmJ4T.js"><link rel="modulepreload" crossorigin href="/assets/core-BF8mCLAO.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-Ds1G4QGX.js"><link rel="modulepreload" crossorigin href="/assets/mui-B87RTrAV.js"><link rel="modulepreload" crossorigin href="/assets/analytics-BSnG8C1z.js"><link rel="modulepreload" crossorigin href="/assets/utils-C4NhxqJn.js"><link rel="stylesheet" crossorigin href="/assets/index-Bc34frN_.css"></head><body style="margin:0"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><div class="app-shell-loader" id="app-shell-loader"><div class="app-shell-sidebar"><div class="app-shell-sidebar-group"><div class="app-shell-bar zeni-logo" style="width:96px;height:20px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:78px;height:16px"></div><div class="app-shell-bar" style="width:46px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:110px;height:16px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div><div class="app-shell-bar" style="width:64px;height:16px"></div></div></div><div class="app-shell-main"><div class="app-shell-navbar"><div class="app-shell-bar" style="width:106px;height:27px"></div><div class="app-shell-bar" style="width:111px;height:32px"></div></div><div class="app-shell-logo"><svg width="96" height="96" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.768 0.0270284C16.571 -0.055168 16.348 0.0572476 16.2913 0.267574C16.2713 0.342517 16.2489 0.417461 16.2253 0.491196C16.0094 1.15723 15.6459 1.76645 15.148 2.27776C14.3056 3.14203 13.1847 3.61949 11.9918 3.6207H11.9883C10.7978 3.6207 9.67689 3.14565 8.83445 2.2838C8.33653 1.7737 7.97077 1.16448 7.75367 0.499657C7.73007 0.425922 7.70765 0.350979 7.68641 0.276035C7.62978 0.065709 7.40678 -0.0454978 7.20974 0.0366985C6.05463 0.522624 4.98565 1.17899 4.0323 1.97436C3.91195 2.07468 3.87301 2.24512 3.93083 2.39259C3.9792 2.51589 4.03112 2.63797 4.08539 2.75764C4.51133 3.70894 5.10364 4.5853 5.84815 5.34682C7.48937 7.0246 9.66863 7.9493 11.9871 7.9493H11.9954C14.3162 7.94689 16.4978 7.01855 18.1379 5.33595C18.8812 4.57321 19.4711 3.69564 19.8959 2.74434C19.9502 2.62347 20.0009 2.50138 20.0493 2.37809C20.1071 2.23062 20.0682 2.06018 19.9478 1.95985C18.9933 1.16569 17.9231 0.511745 16.768 0.0270284Z"/><path d="M19.9102 21.2422C19.4843 20.2933 18.8931 19.4194 18.151 18.6603C16.5086 16.9801 14.3223 16.053 12.0038 16.0578C8.50304 16.0614 5.48371 18.1961 4.11031 21.2603C4.05722 21.38 4.0053 21.5009 3.95575 21.623C3.89675 21.7704 3.93569 21.9421 4.05722 22.0436C5.01175 22.8366 6.08073 23.4893 7.23466 23.9728C7.4317 24.055 7.65352 23.9438 7.71134 23.7335C7.73139 23.6573 7.75381 23.5836 7.77859 23.5086C8.37207 21.6979 10.0416 20.3888 12.0073 20.3864H12.012C13.2025 20.3864 14.3234 20.8614 15.1659 21.7233C15.6626 22.231 16.026 22.8378 16.2431 23.5002C16.2679 23.5739 16.2903 23.6489 16.3104 23.7238C16.3682 23.9341 16.59 24.0453 16.787 23.9619C17.9422 23.476 19.01 22.8209 19.9633 22.0255C20.0837 21.9252 20.1226 21.7535 20.0648 21.606C20.0164 21.4828 19.9645 21.3631 19.9102 21.2422Z"/><path d="M0.132148 10.1666C0.158105 9.98769 0.305591 9.85352 0.482575 9.85352L23.5093 9.81726C23.6863 9.81726 23.8338 9.95022 23.8609 10.1291C23.9518 10.7347 23.999 11.3548 23.999 11.9858C24.0001 12.6131 23.9541 13.2284 23.8668 13.8292C23.8408 14.0081 23.6934 14.1422 23.5164 14.1422L0.489654 14.1773C0.312671 14.1773 0.165185 14.0443 0.138047 13.8654C0.0471956 13.2598 0 12.6397 0 12.0088C0 11.3826 0.0448358 10.7673 0.132148 10.1666Z"/></svg></div></div></div></body></html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/web-app-ui",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.22-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.0.
|
|
32
|
-
"@zeniai/web-components": "4.0.
|
|
30
|
+
"@zeniai/client-analytics": "2.0.3",
|
|
31
|
+
"@zeniai/client-epic-state": "5.0.12",
|
|
32
|
+
"@zeniai/web-components": "4.0.25",
|
|
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-Cm6P1Xg9.js";import{A as d}from"./AddressScreen-Cb_9EmBQ.js";import i from"./NotFoundScreen-DCVl9MiG.js";import"./sentry-CH1ai1xG.js";import{n as s,o as r}from"./core-AMZJGpoV.js";import"./zeni-epic-state-CaufR46d.js";import"./recharts-LaAu_fL4.js";import"./index-N5K3qQkU.js";import"./mui-5LlzyiP2.js";import"./analytics-CgaqSFat.js";import"./plaid-nK_3ZvzH.js";import"./dnd-C4u70dJH.js";import"./stripe-DMRn4zHo.js";import"./lottie-CEe6fZ1i.js";import"./lexical-hn7WhrHW.js";import"./pdf-DzINawGT.js";import"./utils-DRDD4XTN.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="4bd15e18-5b5f-4be1-8d33-8bd696c76da2",t._sentryDebugIdIdentifier="sentry-dbid-4bd15e18-5b5f-4be1-8d33-8bd696c76da2")}catch{}})();function _(){return e.jsxs(s,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(d,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(d,{})}),e.jsx(r,{path:"*",element:e.jsx(i,{})})]})}export{_ as default};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{j as h}from"./liveblocks-Cm6P1Xg9.js";import{a as r}from"./sentry-CH1ai1xG.js";import{h as oe,j as ne,u as ie,g as G,l as re,k as le}from"./core-AMZJGpoV.js";import{N as ce,cA as ue,z as de,q as me,cB as pe,cC as fe,cD as he,cE as q,E as Se,e as v,R as N,cF as ge,cG as Ce,i as be,a1 as ke,cH as we,T as Ie,y as Ee,w as V,cI as Pe,cJ as Te}from"./index-N5K3qQkU.js";import{fD as ye,f2 as H,eM as _e,hm as xe,Pu as ve,eL as Ue,hw as Ae,hs as Qe,ft as De,fn as Oe,fg as Fe,fk as $,fo as Be,fp as Le,fq as Me,fr as Re,fs as je}from"./zeni-epic-state-CaufR46d.js";import{D as Ge,n as U,P as Ne,S as Ve}from"./mui-5LlzyiP2.js";import{p as $e}from"./pathToGoBack-De67_VBD.js";import"./recharts-LaAu_fL4.js";import"./analytics-CgaqSFat.js";import"./plaid-nK_3ZvzH.js";import"./dnd-C4u70dJH.js";import"./stripe-DMRn4zHo.js";import"./lottie-CEe6fZ1i.js";import"./lexical-hn7WhrHW.js";import"./pdf-DzINawGT.js";import"./utils-DRDD4XTN.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new s.Error().stack;i&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[i]="8585355b-e768-43d9-9cf4-af8a6496f56b",s._sentryDebugIdIdentifier="sentry-dbid-8585355b-e768-43d9-9cf4-af8a6496f56b")}catch{}})();const W="chat-response-generated",qe=le(function(s,i){const a=H(s),m=i.isSubmitting;return{showSampleQuestions:i.sessionFromUrl==="explore"&&a.uiState.currentChatSessionId==null,aiCfoView:a,isSubmitting:m,isNewChatSession:i.sessionFromUrl==="new_chat"||i.sessionFromUrl==="explore",isFullView:!0,tableDownloadEndPoint:`${Ie}/tableDownload`,emailLinkQuestion:i.emailLinkQuestion,autoSubmitEmailLinkQuestion:i.autoSubmitEmailLinkQuestion,onEmailLinkQuestionProcessed:i.onEmailLinkQuestionProcessed,isFileUploadEnabled:i.isFileUploadEnabled,isUploadPromoVisible:i.isUploadPromoVisible,onUploadPromoClose:i.onUploadPromoClose}},function(s,i){const{location:a,currentTenant:m,userId:d,navigate:p,currentChatSessionId:f,allSessionsWithOrderedQuestionAnswers:S,setIsAiCfoOpen:l}=i;return{onEventReceived:(e,o)=>{if(e===W&&typeof o.text=="string"&&typeof o.metadata=="object"){const n=o,c=Le(n.type),t=n.metadata.chat_session_id??null,{currentChatSession:I,currentQuestionAnswer:g,currentQuestionAnswerSummary:E}=q(S,t);c!=="answer"?v.trackAICFOChatResponseGenerated(c,g?.question.questionText??"",n.text,t,Te(E,I),n.metadata.message_id??null):v.trackAICFOChatAnswerGenerated(n.text,g?.question.questionText??"",(n.follow_up_questions?.length??0)>0,!!n.assumptions,!!n.insights,n.visualization!=null,Me(n.visualization?.type??"")??null,t,n.summarized_title,n.metadata.message_id??null),s(Re({chatSessionId:n.metadata.chat_session_id,responseType:c,fetchState:{fetchState:"Completed",error:void 0}})),s(je({chatSessionId:n.metadata.chat_session_id,answerPayload:n,userId:d}))}},onSubmit:(e,o,n,c)=>{e&&Pe(s,e,o,f,S,d,c,n)},updateCurrentInput:e=>{s($(e))},onStopSubmit:()=>{},onUpdateScrollYOffset:e=>{s(Be(e))},onSelectSampleQuestion:()=>{},onBackClick:()=>{p(-1)},onCloseClick:()=>{const e=V(a.state?.pathnameStackToGoBack),o=e.poppedPathname??$e(1);p(o,{state:{...a.state,pathnameStackToGoBack:e.newStack}}),s($(""))},togglePageView:()=>{const e=V(a.state?.pathnameStackToGoBack),o=e.poppedPathname??`/${m.tenantEmailDomain}/dashboard`;p(o,{state:{...a.state,pathnameStackToGoBack:e.newStack,message:"open_ai_cfo_drawer"}}),l(!0)},onCopy:()=>{},onThumbsUp:()=>{},onThumbsDown:()=>{},onTogglePageView:()=>{p(-1)},onNewChatClick:()=>{f!=null&&s(Fe());const e=Ee(a.state?.pathnameStackToGoBack,a.pathname);p(`/${m.tenantEmailDomain}/ai-cfo/new_chat`,{state:{pathnameStackToGoBack:e.slice(0,-1),referrer:"Sidebar"}})},onToggleCotCollapsed:(e,o)=>{s(Oe({questionAnswerId:e,isCollapsed:o}))},onMenuClick:i.onMenuClick}})(ke(we)),dt=({isFileUploadEnabled:s})=>{const{setIsAiCfoOpen:i}=ce(),a=oe(),m=ne(),d=ie(),[p,f]=r.useState(!1);r.useEffect(()=>{a(ye())},[a]);const{customPageTitle:S}=ue(),l=G(u=>H(u)),e=de.getSignedInUser(),{session_id:o}=re(),n=me(),c=G(u=>_e(u)),t=l.uiState.currentChatSessionId,I=c.tenantEmailDomain,{handleUploadPromoClose:g,isUploadPromoVisible:E}=pe({isFileUploadEnabled:s,tenantEmailDomain:I}),A=fe({currentTenant:c,currentChatSessionId:t,aiCfoView:l}),C=d.state,b=C?.aiCfoInitialQuestion,Q=!!C?.aiCfoShouldSubmit,[z,P]=r.useState(null),[J,T]=r.useState(!1),D=r.useRef(!1);r.useEffect(()=>{D.current||b==null||b===""||(P(b),T(Q),D.current=!0)},[b,Q]);const Y=r.useCallback(()=>{P(null),T(!1)},[]),O=r.useMemo(()=>new URLSearchParams(d.search),[d.search]),F=O.get("ref")??C?.aiCfoRef,y=O.get("emailRefId")??C?.aiCfoEmailRefId,B=r.useRef(!1);r.useEffect(()=>{B.current||F!=="month-end-email"||y==null||t!=null||e==null||(a(xe("controller",e.userId,y,"MONTH_END_EMAIL")),B.current=!0)},[F,y,t,a,e]);const k=l.uiState.lastContextMessage;r.useEffect(()=>{k!=null&&k!==""&&t!=null&&(P(k),T(!0),a(ve()))},[k,t,a]);const Z=c.masterTOSInfo,w=Z?.isMasterTOSAccepted??!1,{visitedSessions:L}=he(t),_=l.fetchState,x=l.uiState.chatSessionsNextPageToken.hasMore||!l.uiState.chatSessionsFirstPageFetched,M=t!=null?l.fetchChatSessionHistoryByChatSessionId?.[t]?.fetchState??"Not-Started":"Not-Started",R=t==null||(l.uiState.chatHistoryNextPageToken[t]?.hasMore??!0),j=l.allSessionsWithOrderedQuestionAnswers,{currentSessionQuestionAnswers:K}=q(j,t),X=K.length===0;r.useEffect(()=>{w||m("../dashboard",{state:{...d.state,message:"open_ai_cfo_drawer"}})},[w]),r.useEffect(()=>{t!=null&&o!==t&&m(`../ai-cfo/${t}`,{state:{...d.state}})},[t,o]),r.useEffect(()=>{o!=null&&t==null&&o!=="new_chat"&&o!=="explore"&&a(Ue({sessionId:o,agentId:"controller"}))},[]);const ee=r.useMemo(()=>({events:L.map(u=>`private-chat-${u}.${W}`),eventCallback:(u,se,ae)=>ae.onEventReceived(u,se)}),[L]);if(r.useEffect(()=>{_!=="In-Progress"&&x&&a(Ae())},[_,x,a]),r.useEffect(()=>{t!=null&&M!=="In-Progress"&&R&&e!=null&&_==="Completed"&&!x&&a(Qe(t,e.userId))},[M,R,t,e,a]),e==null||o==null)throw Error("Can't access AI Controller page without signing in...");const te=t!=null&&l.responseStateByChatSessionId?.[t]?.answer?.fetchState==="In-Progress";return h.jsxs(We,{children:[h.jsx(Se,{analytics:v,onLoad:u=>u.trackPageLoaded(be.Event.aiCFOPage)}),N(n)&&A.drawerElement,h.jsx(qe,{...ee,currentChatSessionId:t,allSessionsWithOrderedQuestionAnswers:j,openOnboardingPage:()=>f(!0),userId:e.userId,setIsAiCfoOpen:i,navigate:m,sessionFromUrl:o,location:d,isSubmitting:te,isEmptyChatWithSession:X,customPageTitle:S,currentTenant:c,emailLinkQuestion:z??void 0,autoSubmitEmailLinkQuestion:J,onEmailLinkQuestionProcessed:Y,onMenuClick:N(n)?A.open:void 0,isFileUploadEnabled:s,isUploadPromoVisible:E,onUploadPromoClose:g}),h.jsx(Ge,{anchor:"right",open:p,transitionDuration:250,PaperProps:{component:ze,style:{width:`${ge}vw`}},slotProps:{backdrop:{style:{backgroundColor:"transparent",cursor:"pointer"}}},onClose:()=>f(!1),children:h.jsx(He,{onClick:u=>u.stopPropagation(),children:h.jsx(Ce,{isTOSAccepted:w,acceptMasterTOSState:l.masterTOSAcceptanceState,customPageTitle:S,onCloseClick:()=>f(!1),onCompleteClick:()=>{w||c.userRoleId==null||a(De(c.userRoleId)),f(!1)}})})})]})},He=U(Ve)`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`,We=U.div`
|
|
6
|
-
height: 100vh;
|
|
7
|
-
width: 100%;
|
|
8
|
-
`,ze=U(Ne)`
|
|
9
|
-
box-shadow: ${({theme:s})=>s.colors.elevation2};
|
|
10
|
-
color: ${({theme:s})=>s.colors.grey4};
|
|
11
|
-
`;export{dt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as m}from"./liveblocks-Cm6P1Xg9.js";import{a as g}from"./sentry-CH1ai1xG.js";import{j as w,h as k,u as x,l as T,g as S,k as E}from"./core-AMZJGpoV.js";import{z as C,aZ as F,E as P,e as L,i as V,aa as O,a_ as j,ao as A,ap as B,y as U}from"./index-N5K3qQkU.js";import{eM as D,fB as M,rs as _,fw as R,b$ as z,Ls as G,bm as Y,pA as Z,po as $,jW as q,lq as b,Lt as H,bB as W,cr as N,ly as J,lB as K}from"./zeni-epic-state-CaufR46d.js";import"./mui-5LlzyiP2.js";import{c as Q}from"./routePaths-meDm6KLz.js";import{M as X}from"./MobileAppDrawer-CAbg3Q-N.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new a.Error().stack;n&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[n]="db2ee08b-1897-4c8d-b040-bb480b02b9ab",a._sentryDebugIdIdentifier="sentry-dbid-db2ee08b-1897-4c8d-b040-bb480b02b9ab")}catch{}})();const ee=E(function(a){const n=R(a),i=C.getSignedInUser(),l=D(a),c=l.tenantId,p={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=z(l?.userRole??[])&&n.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=G(a.companyConfigState),t=a.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:n.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:n,allIndustries:e.companyIndustries??[],allNationalityCountries:t,isDisabled:f,authParams:p,filesEndPoint:`${A.fileMicroServiceBaseUrl}`,isZeniUser:Y(i)}},function(a,n){const{companyId:i,currentTenant:l,navigate:c,location:p}=n,{tenantEmailDomain:f}=l;return{onScheduleClick:e=>{let t=e.href;t.includes("http")||(t="https://".concat(t)),window.open(t,"_blank")},onSaveAll:()=>{a(K())},onAddressClick:e=>{const t=Q(f,e),o=U(p.state?.pathnameStackToGoBack,p.pathname);c(t,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{a(J({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:t,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=t,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:h}=r,v={companyInfo:{...t,website:u!=""&&u!=null?N(u):void 0,meetingLink:y!=""&&y!=null?N(y):void 0,industry:t.industry.selectedOption,companyIndustryType:t.companyIndustryType?.selectedOption??void 0,companySubIndustry:t.subIndustry?.selectedOption??void 0,businessModel:t.businessModel.selectedOption??"",companySourceOfFunds:t.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:t.companySourceOfFundsDescription??void 0,countriesOfOperations:t.countriesOfOperations?.selectedOptions?.map(I=>I.length===2?I:B(I))??[],transactionVolume:t.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:t.transactionVolumeDescription??void 0,regulatedStatus:t.regulatedStatus??void 0,regulatedStatusDescription:t.regulatedStatusDescription??void 0,usNexus:t.usNexus??void 0,usNexusTypes:t.usNexusTypes?.selectedOptions??[],purposeOfAccount:t.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:t.purposeOfAccountDescription??void 0},incInfo:{typeOfInc:o.typeOfInc.selectedOption??"",stateOfInc:o.stateOfInc.selectedOption??"",incDate:s!=null?W(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:h.selectedOptions.map(I=>parseInt(I)),fileId:r.fileIds[0]}};a(b({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{a(b({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{a(b({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:void 0}]}))},onNewCompanyOfficerRemoved:e=>{a(H(e))},onCompanyOfficerUpdated:e=>{a(b({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:e.userId}]}))},updateFilesEntity:e=>{a(q({files:e}))},onDeleteFile:e=>{a($(e))},onEditFileName:(e,t)=>{a(Z(e,t.split(".")[0]))}}})(j);function de(){const a=w(),n=k(),i=x(),{tenantEmailDomain:l}=T(),[c,p]=g.useState(!1),[f,e]=g.useState(!1),t=S(s=>s.companyViewState.passportView.fetchState),o=S(s=>s.companyConfigState.fetchState),r=S(s=>D(s)),d=r.companyId??C.getSignedInUserTenant(l)?.companyId;if(C.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect(()=>{c||t!=="Not-Started"||d==null||(p(!0),n(M(d)))},[c,t,d,n]),g.useEffect(()=>{o==="Not-Started"&&n(_())},[o,n]);const u=s=>{e(s)},y=t==="Not-Started"||t==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&t==="Error"?m.jsx(F,{onGoHome:()=>a("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(P,{analytics:L,onLoad:s=>s.trackPageLoaded(V.Event.companyPassport,O(i)?"Settings":"Company Passport")}),O(i)?m.jsx(X,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:a,location:i,isLoading:y,currentTenant:r,isSettings:O(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as d}from"./liveblocks-Cm6P1Xg9.js";import{z as n}from"./index-N5K3qQkU.js";import{g as p}from"./QBOConnectionScreen-B_Iv-Jup.js";import"./sentry-CH1ai1xG.js";import{u as a,N as i}from"./core-AMZJGpoV.js";import"./zeni-epic-state-CaufR46d.js";import"./recharts-LaAu_fL4.js";import"./mui-5LlzyiP2.js";import"./analytics-CgaqSFat.js";import"./plaid-nK_3ZvzH.js";import"./dnd-C4u70dJH.js";import"./stripe-DMRn4zHo.js";import"./lottie-CEe6fZ1i.js";import"./lexical-hn7WhrHW.js";import"./pdf-DzINawGT.js";import"./utils-DRDD4XTN.js";import"./empty-AgaGyBlm.js";import"./pdf-lib-BXQxUj4c.js";import"./index-iatPGBna.js";import"./url-CoAFnj2p.js";import"./index-Swai7U66.js";import"./decodeURIComponentSafe-DNGRwvKs.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="b68d0d57-e81d-4cfb-97e6-d4dd5e5b7ebd",t._sentryDebugIdIdentifier="sentry-dbid-b68d0d57-e81d-4cfb-97e6-d4dd5e5b7ebd")}catch{}})();const U=()=>{const t=a(),{code:o,realmId:r,state:e}=p(t.search),s=n.getSignedInUser()?.userId??"";if(f(o,r,e,s)===!0){const m=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return d.jsx(i,{to:m})}return d.jsx(i,{to:"../../"})},f=(t,o,r,e)=>t!=""&&o!=""&&r!=""&&e!=null&&e!="";export{U as default,f as hasValidParams};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-Cm6P1Xg9.js";import{j as w,u as C,g as h,k as A,l as B}from"./core-AMZJGpoV.js";import{M9 as k,Mg as _,fz as q,fy as J,fx as L,ii as W,Jh as K,pr as Q,eM as V,LH as D,ig as T,Ma as S,Mj as F,id as G,iC as j}from"./zeni-epic-state-CaufR46d.js";import{bj as X,q as R,c as N,z as U,h as M,w as p,d as v,B as z,bk as Y,f as H,bl as ee,y as te}from"./index-N5K3qQkU.js";import{n as O}from"./mui-5LlzyiP2.js";import"./sentry-CH1ai1xG.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]="a8022d9f-d8f2-4a77-973b-977011e0fe9f",e._sentryDebugIdIdentifier="sentry-dbid-a8022d9f-d8f2-4a77-973b-977011e0fe9f")}catch{}})();const ae=A(null,function(e,t){return{onSaveVendor:a=>{e(W(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(K("common")),a!=null&&e(Q(a))},onGetOtp:a=>{e(L(a,"BillPayVendor"))},onResendOtp:a=>{e(J(a,"BillPayVendor"))},onVerifyOtp:(a,n)=>{e(q(a,n,"BillPayVendor"))},onVerifyOtpSuccess:(a,n,o)=>{e(_(a,n,o))}}})(X);function Z({vendorId:e,billId:t,isExpressPayPage:a}){const n=w(),o=C(),s=h(d=>k(d,e));return l.jsx(ae,{location:o,navigate:n,vendorId:e,billId:t,vendorViewDetails:s,isExpressPayPage:a??!1})}const ne=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:a,billId:n}=t,o=k(e,a),s=D(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,n);return{billId:n,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}},function(e,t){const{navigate:a,location:n,vendorId:o}=t;return{onFetchBankName:s=>{e(j(s))},onSaveHandler:s=>{e(G(t.bankAccountContext,s,"standard",o))},onCancel:()=>{(()=>{const s=p(n.state?.pathnameStackToGoBack),d=s.poppedPathname??P();a(d,{state:{pathnameStackToGoBack:s.newStack}})})(),e(S())},onACHDetailsUpdated:s=>{const{bankAccountSection:d}=s;e(F({data:d}))},onBackClick:()=>{if(e(T({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")a("../",{relative:"path"});else{const s=p(t.location.state?.pathnameStackToGoBack),d=s.poppedPathname??P(0);t.navigate(d,{state:{pathnameStackToGoBack:s.newStack}})}e(S())}}})(Y);function fe({vendorIdParam:e,accountContext:t}){const a=w(),n=C(),o=R(),{vendorId:s,billId:d}=B(),c=e??s,{useFeatureGate:r}=N(),i=U.getSignedInUser(),b=h(u=>V(u)),g=M(),x=p(n.state?.pathnameStackToGoBack),f=t??(x.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h(u=>k(u,c)),{isFeatureEnabled:I}=r(v.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=r(v.isDepositAccountsFeatureEnabled);if(i==null)throw Error("Can't access address page without signing in...");return f==="billDetail"&&m.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(z,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:g.colors.grey5}}):l.jsxs(ne,{windowSize:o,children:[l.jsx(Z,{vendorId:c,billId:d}),l.jsx(oe,{location:n,navigate:a,billId:d,vendorId:c,currentTenant:b,bankAccountContext:f,isVendorRecommendationEnabled:I,isZeniAccountsFeatureEnabled:y})]})}const P=(e=2)=>{let t="../";for(let a=0;a<e;a++)t=`${t}../`;return t},me=(e,t,a)=>{let n=`/${e}/bill/${encodeURIComponent(t)}`;return a=="draft"&&(n+="/edit"),n},he=e=>`/${e}/bills`,ke=(e,t)=>{let a=`/${e}/bill`;return a=t!=null?a.concat(`/${t}/edit`):a.concat("/new"),a},E=(e,t,a,n)=>{let o=`/${e}/bill`;return o+=a!=null?`/${a}/edit/vendor`:"/new/vendor",o+=n!=null?`/${n}/edit/${t}`:`/create/${t}`,o};function Se(e,t,a){return E(e,"ach",t,a)}function ve(e,t,a){return E(e,"domestic",t,a)}function ge(e,t,a){return E(e,"international",t,a)}const se=(e,t,a)=>{let n=`/${e}/bill/`;return n=a!=null?n.concat(`${encodeURIComponent(a)}/${t}/`):n.concat(`new/${t}/`),n},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
|
-
`,de=A(function(e,t){const{vendorId:a,billId:n}=t,o=k(e,a),s=D(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,n);return{billId:n,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}},function(e,t){const{billId:a,navigate:n,location:o,vendorId:s,currentTenant:d}=t,{tenantEmailDomain:c}=d;return{onFetchBankName:r=>{e(j(r))},onSaveHandler:r=>{e(G(t.bankAccountContext,r,"us-domestic",s))},onWireDetailsUpdated:r=>{const{bankAccountSection:i}=r;e(F({data:i}))},onCancel:()=>{(()=>{const r=p(o.state?.pathnameStackToGoBack),i=r.poppedPathname??$();n(i,{state:{pathnameStackToGoBack:r.newStack}})})(),e(S())},onAddressClick:r=>{if(t.bankAccountContext==="express-pay")n("./add-address");else{const i=se(c,r,a),b=te(o.state?.pathnameStackToGoBack,o.pathname);n(i,{state:{pathnameStackToGoBack:b}})}},onBackClick:()=>{if(e(T({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")n("../",{relative:"path"});else{const r=p(t.location.state?.pathnameStackToGoBack),i=r.poppedPathname??$(0);t.navigate(i,{state:{pathnameStackToGoBack:r.newStack}})}e(S())}}})(ee);function xe({vendorIdParam:e,accountContext:t}){const a=w(),n=C(),o=R(),{vendorId:s,billId:d}=B(),c=e??s,r=U.getSignedInUser(),{useFeatureGate:i}=N(),b=M(),g=h(u=>V(u)),x=p(n.state?.pathnameStackToGoBack),f=t??(x.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h(u=>k(u,c)),{isFeatureEnabled:I}=i(v.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=i(v.isDepositAccountsFeatureEnabled);if(r==null)throw Error("Can't access address page without signing in...");return f==="billDetail"&&m.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(z,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:b.colors.grey5,boxShadow:`0px 2px ${H.sp1} ${b.colors.dropShadowNormal}`}}):l.jsxs(re,{windowSize:o,children:[l.jsx(Z,{vendorId:c,billId:d}),l.jsx(de,{location:n,navigate:a,billId:d,vendorId:c,currentTenant:g,bankAccountContext:f,isVendorRecommendationEnabled:I,isZeniAccountsFeatureEnabled:y})]})}const $=(e=2)=>{let t="../";for(let a=0;a<e;a++)t=`${t}../`;return t};export{fe as A,xe as D,Z as V,me as a,se as b,ke as c,ve as d,he as g,ge as i,Se as v};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-Cm6P1Xg9.js";import{q as c,G as l,h as f}from"./index-N5K3qQkU.js";import{D as p}from"./mui-5LlzyiP2.js";import"./sentry-CH1ai1xG.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]="bbe26602-3170-426c-97c9-8fe118d1c7de",e._sentryDebugIdIdentifier="sentry-dbid-bbe26602-3170-426c-97c9-8fe118d1c7de")}catch{}})();const b={drawerLeftMargin:new l(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:t,onClose:s}=e,n=c(),d=o?.valuePx(n)??b.drawerLeftMargin.valuePx(n),a=f();return i.jsx(p,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${d})`}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.8,cursor:"pointer"}}},onClose:s,children:t})}export{h as D};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-Cm6P1Xg9.js";import dn from"./NotFoundScreen-DCVl9MiG.js";import{a as l}from"./sentry-CH1ai1xG.js";import{n as Ae,D as gt,S as Le}from"./mui-5LlzyiP2.js";import{h as pe,j as Ct,u as Fe,g as F,l as et,k as un,n as mn,o as De}from"./core-AMZJGpoV.js";import{eM as ze,OH as hn,e$ as he,fd as pn,q2 as gn,OI as _e,mI as St,mO as It,OJ as ft,nb as Cn,OK as kt,mB as Sn,pA as In,OL as fn,jy as kn,OM as En,Fw as yn,eX as Ve,pf as Me,Kp as tt,Kr as vn,jp as bn,Ks as An,jw as Tn,cT as wn,t4 as je,Jg as Pn,jx as xn,eZ as Rn,mP as Et,ng as be,ob as yt,oJ as Dn,e_ as vt,nf as nt,mG as ne,ni as bt,nk as Un,bB as On,kV as Bn,kS as Fn,nj as ye,nh as ue,ON as _n,nA as at,Bc as At,OO as Tt,s1 as wt,jm as Vn,OP as Mn,Ji as ot,Jh as Ee,OQ as st,jN as jn,OR as Ln,OS as zn,OT as $n,OU as Gn,mY as qn,OV as Jn,OW as Yn,OX as Nn,nq as Kn,jA as Zn,jr as Hn,OY as Qn,jz as ct,Kz as Wn,OZ as Xn,O_ as ea,pb as ta,oS as na,oR as Ue,O$ as aa,P0 as oa,l4 as sa,bp as ca,k$ as it,kN as ia,P1 as la,gy as lt,fL as ra,kY as da,uZ as ua,P2 as ma,nR as ha,nM as pa,nQ as ga,nB as Ca,P3 as Sa,n4 as Ia,mV as fa,fe as rt,nl as ka,P4 as Ea,P5 as ya,P6 as va,P7 as ba,P8 as Aa,P9 as dt,pn as Ta,oB as wa,ok as ut,ot as Pa,og as xa,oG as Ra,ol as Da,Pa as Ua,Pb as Oa,n_ as Ba,Pc as Fa,nY as _a,nZ as Va,nW as Ma,ov as ja}from"./zeni-epic-state-CaufR46d.js";import{N as Pt,c as xt,d as me,e as M,y as H,O as Rt,cq as La,h as Dt,z as Te,cr as za,ao as ve,cs as $a,B as Ut,ct as Ga,cu as qa,al as Oe,X as Ja,C as Ya,aI as Na,aZ as Ka,G as Za,D as Ha,cv as Qa,T as Wa,cw as Xa}from"./index-N5K3qQkU.js";import{u as Ot}from"./useAskAiCfoHostNavButtonProps-Du0DR5Lw.js";import{c as Bt}from"./useFetchSuggestedQuestionsWhenReady-ChhFydzB.js";import{c as mt,C as eo}from"./TransactionDetailScreen-DRrJTiHG.js";import{w as to}from"./withTransactionSidePanel-Bf8LYRg6.js";import{h as no,v as ao}from"./routePaths-meDm6KLz.js";import{g as Be}from"./accountMappingHelper-BR6VxhSD.js";import{D as oo}from"./DrawerScreen-hOKdmqaY.js";import"./recharts-LaAu_fL4.js";import"./analytics-CgaqSFat.js";import"./plaid-nK_3ZvzH.js";import"./dnd-C4u70dJH.js";import"./stripe-DMRn4zHo.js";import"./lottie-CEe6fZ1i.js";import"./lexical-hn7WhrHW.js";import"./pdf-DzINawGT.js";import"./utils-DRDD4XTN.js";import"./decodeURIComponentSafe-DNGRwvKs.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new t.Error().stack;c&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[c]="923182f9-a6a9-49f4-abe6-99d127586f36",t._sentryDebugIdIdentifier="sentry-dbid-923182f9-a6a9-49f4-abe6-99d127586f36")}catch{}})();const so=()=>{const{isAiCfoOpen:t,setIsAiCfoOpen:c}=Pt(),x=pe(),A=Ct(),y=Fe(),r=F(p=>ze(p)),{useFeatureGate:m}=xt(),{isFeatureEnabled:T}=m(me.isRealtimeInsightsFeatureEnabled),g=F(p=>p.expenseAutomationViewState.selectedPeriodByTenantId),a=F(p=>hn(p,r.tenantId)),{isAiCfoAccessEnabled:_,onAskAiCfoClick:v}=Ot({isAiCfoOpen:t,setIsAiCfoOpen:c,mobileExploreReferrer:"Month-End Close Overview"}),I=l.useCallback((p,E,D=!1)=>{x(he({tenantId:E,period:{month:p.month,year:p.year},refreshViewInBackground:D}))},[]),$=l.useCallback(p=>{const E=y.state?.referrer;a.monthEndCloseChecks?.auditSummary!=null&&M.trackMonthCloseAuditPage(p.month,p.year,a.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",a.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,E??null),x(pn(r.tenantId,p))},[r.tenantId,a.monthEndCloseChecks?.auditSummary,a.monthEndCloseChecks?.reportEmailSentDate]),S=g[r.tenantId],k=l.useCallback(()=>{const p=y.state?.referrer;a.monthEndCloseChecks?.auditSummary!=null&&M.trackMonthCloseAuditPage(S.month,S.year,a.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",a.monthEndCloseChecks.auditSummary.auditScorePercentage,!0,p??null),I(S,r.tenantId,!0)},[I,S,r.tenantId,a.monthEndCloseChecks?.auditSummary,a.monthEndCloseChecks?.reportEmailSentDate]),L=H(y.state?.pathnameStackToGoBack,y.pathname),N=l.useCallback(()=>{if(a.monthEndCloseChecks!=null&&S!=null){const p=a.monthEndCloseChecks.monthEndCloseCheckList.find(E=>E.progress<100);if(p!=null)return void A(`./${p.id}/${S.month}-${S.year}`,{state:{pathnameStackToGoBack:L,message:"comingFromOverview"}});A(`./month_end_insights/${S.month}-${S.year}`,{state:{pathnameStackToGoBack:L,message:"comingFromOverview"}})}},[a.monthEndCloseChecks,S]),{areTenantIdsInSync:d}=Rt();return Bt({isDataReady:a.fetchState==="Completed"}),l.useEffect(()=>{S!=null&&a.fetchState!=="In-Progress"&&a.fetchState!=="Completed"&&d&&I(S,r.tenantId)},[I,S,a.fetchState,r.tenantId,d]),l.useEffect(()=>{S!=null&&a.monthClosePerformanceTrendFetchStatus.fetchState!=="In-Progress"&&a.monthClosePerformanceTrendFetchStatus.fetchState!=="Completed"&&d&&x(gn(S))},[S,a.monthClosePerformanceTrendFetchStatus.fetchState,d]),l.useEffect(()=>{const p=setInterval(()=>{a.fetchState!=="In-Progress"&&a.fetchState==="Completed"&&k()},3e5);return()=>clearInterval(p)},[a.fetchState]),l.useEffect(()=>{if(a.fetchState==="Completed"&&a.monthEndCloseChecks?.auditSummary!=null){const p=y.state?.referrer;M.trackMonthCloseAuditPage(a.selectedPeriod.month,a.selectedPeriod.year,a.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",a.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,p??null)}},[a.fetchState,a.selectedPeriod,a.monthEndCloseChecks?.auditSummary,a.monthEndCloseChecks?.reportEmailSentDate]),u.jsx(co,{children:u.jsx(La,{monthEndCloseChecksView:a,isRealtimeInsightsFeatureEnabled:T,onMonthEndCheckClick:p=>{A(`./${p}/${S.month}-${S.year}`,{state:{pathnameStackToGoBack:L,message:"comingFromOverview",referrer:"Expense Automation - Overview"}})},onPeriodChange:$,handleReviewButtonClick:N,onBackClick:()=>{A("../../dashboard")},onReload:k,isAiCfoAccessEnabled:_,onAskAiCfoClick:v})})},co=Ae.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
|
-
`,io="512px",lo=({reconciliation:t,selectedDrawerAccountId:c,onFetchLinkTokenClick:x,onEstablishConnectionClick:A})=>{const y=Dt(),r=pe(),m=Te.getSignedInUser(),T=F(s=>ze(s)),g=t.excludedAccountIDs,a={userId:m?.userId??"",sessionId:m?.zeniSessionId??"",tenantId:T.tenantId??""},{accountReconciliationsByAccountID:_,monthYearPeriod:v,statementUploadChosen:I}=t,$=c!=null?_[c]:void 0,S=$?.accountReconEntity.statementMetaData?.statementUploadId,k=l.useCallback(()=>{c!=null&&r(_e({selectedDrawerAccountId:void 0}))},[r,c]),L=(s,C)=>{r(In(s,C.split(".")[0]))},N=s=>{S!=null&&r(Sn({accountId:c??"",selectedPeriod:v,fileId:s,statementUploadId:S}))},d=()=>{r(ft({statementUploadChosen:!1}))},p=s=>{c!=null&&r(Cn({accountId:c,selectedPeriod:v,payload:s}))},E=s=>{c!=null&&r(kt({accountId:c,selectedPeriod:v,localData:{accountSource:s}}))},D=l.useCallback(()=>{c!=null&&r(St({accountId:c}))},[r,c]),e=l.useCallback(()=>{c!=null&&r(It({accountId:c}))},[r,c]),n=g.includes(c??"")?t.excludedAccountReconciliationByAccountID[c??""]:void 0,o=$!=null?u.jsx(za,{excludeAccountFetch:t.excludeAccountFetchState,accountReconciliation:$,monthYearPeriod:v,onDismissClick:k,plaidConnectionDetails:t.plaidConnectionDetails,onFetchLinkTokenClick:x,onEstablishConnectionClick:A,onEditFileName:L,onDeleteFile:N,onSelectSourceType:E,filesEndPoint:`${ve.fileMicroServiceBaseUrl}`,authParams:a,openFilePicker:I,onStatementUploadSuccess:p,onUploadWindowOpenedOnce:d,onExcludeFromReconciliation:D}):n!=null?u.jsx($a,{excludedAccountReconciliation:n,includeAccountFetch:t.includeAccountFetchState,onIncludeIntoReconciliation:e}):null;return o==null?null:u.jsx(gt,{anchor:"right",open:c!=null,PaperProps:{style:{width:io,color:y.colors.grey4}},slotProps:{backdrop:{style:{backgroundColor:"transparent",cursor:"pointer"}}},onClose:()=>k(),children:u.jsx(ro,{onClick:s=>s.stopPropagation(),children:o})})},ro=Ae(Le)`
|
|
9
|
-
display: flex;
|
|
10
|
-
min-height: 100%;
|
|
11
|
-
flex-direction: column;
|
|
12
|
-
`;function uo({companyId:t,closeCustomerRequestDrawer:c,addCustomerRequest:x,resetCustomerRequest:A}){const y=Te.getSignedInUser();if(y==null)throw Error("Can't access Customer Request page without signing in...");const r=F(m=>fn(m,t,y));return l.useEffect(()=>{A()},[]),u.jsx(u.Fragment,{children:r.fetchState==="In-Progress"||r.companyMonthEndReportTemplatesData.fetchState==="In-Progress"?u.jsx(Ut,{fetchState:"In-Progress"}):u.jsx(Ga,{onCloseClick:c,addCustomerRequest:x,snippets:r.companyMonthEndReportTemplatesData,bulletPoints:r.zeniRequestsData??[]})})}const mo=t=>u.jsx(qa,{...t}),ho="512px",po=({selectedTransactionId:t,onClose:c})=>{const x=Dt(),A=pe(),y=F(g=>t==null?void 0:kn(g.transactionState,t)),r=y?.qboId,m=F(g=>r==null?void 0:En(g,r));l.useEffect(()=>{r!=null&&A(yn(r))},[A,t,r]);const T=l.useCallback(()=>{c()},[c]);return t==null||m==null?null:u.jsx(gt,{anchor:"right",open:t!=null,PaperProps:{style:{width:ho,color:x.colors.grey4}},slotProps:{backdrop:{style:{backgroundColor:"transparent",cursor:"pointer"}}},onClose:T,children:u.jsx(go,{onClick:g=>g.stopPropagation(),children:u.jsx(mo,{transactionActivityLogSelectorView:m,onClose:T})})})},go=Ae(Le)`
|
|
13
|
-
display: flex;
|
|
14
|
-
min-height: 100%;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
`,Co=t=>t.sections.generalExpense.vendors.length+t.sections.reimbursement.vendors.length,{common:{strings:{hyphen:So,comma:ht,space:Io}},dateFormat:Ft}=Ha.getLocalizedStrings(),pt=ja,fo=un(function(t,c){const{uncategorizedAccounts:x,vendorSearchAutoCompleteData:A,monthEndInsightsCustomerRequestData:y,monthEndInsightsPreviewMode:r,companyId:m,isMissingReceiptsBulkUploadEnabled:T,isTransactionActivityEnabled:g}=c,a=Te.getSignedInUser(),_=t.tenantState.currentTenantId,v={userId:a?.userId??"",sessionId:a?.zeniSessionId??"",tenantId:_??""},I=Ve(t),{selectedTransactionCategorizationTab:$}=I;return{expenseAutomationViewSelector:I,bulkUploadSelector:T===!0?I.missingReceipts.bulkUpload:void 0,vendorSearchAutoCompleteData:A,authParams:v,receiptUploadEndpoint:`${ve.accountMicroServiceBaseUrl}`,transactionAttachmentsEndpoint:`${Wa}/transaction_attachments`,bulkUploadEndpoint:T===!0?`${ve.communicationAgentMicroServiceBaseUrl}/1.0/receipts/bulk-upload`:void 0,isDisabled:!1,currentTab:$,monthEndInsightsCustomerRequestData:y,monthEndInsightsPreviewMode:r,allThreadsSectionOpen:!1,enableMonthEndInsightsZeniGPTFeature:!1,loggedInUser:a,uncategorizedAccounts:x,companyId:m,isTransactionActivityEnabled:g,isAccountingClassesEnabled:Vn(t)}},function(t,c){const{themeState:x,isCOTEnabled:A,isUncategorizedExpenseCategoryEnabled:y,isMissingReceiptsBulkUploadEnabled:r,location:m,vendorSearchAutoCompleteData:T,expenseAutomationViewSelector:g,currentTenant:a,uncategorizedAccounts:_,navigate:v,onClickCustomerRequest:I,handleEditClick:$,setActivityLogTransactionId:S}=c,{selectedPeriod:k,currentSelectedView:L,reconciliation:{selectedAccountId:N}}=g,{accountSettingsView:d}=g.jeSchedules,p=Et(k),E=be(p.start),D=be(p.end);return{onZeniLogoClick:()=>{x.toggle()},onUploadReceiptAttachment:e=>{M.trackMissingReceiptAttached(k.month,k.year),t(wa(e))},onUploadTransactionReceipt:(e,n,o,s,C,h)=>{t(dt(e,n,{fetchState:"In-Progress"}));const f=()=>t(dt(e,n,{fetchState:"Error"}));Xa(`${ve.accountMicroServiceBaseUrl}/1.0/transactions/${n}/attachments`,h,n,o,s,C).then(b=>{b!=null?t(Ta(e,b)):f()}).catch(f)},onMissingReceiptsRowClick:(e,n)=>{if(c.openTransactionPanel)return void c.openTransactionPanel(e,n);const o=H(m.state?.pathnameStackToGoBack,m.pathname);v(`../../transaction/${n}/${e}`,{state:{pathnameStackToGoBack:o,message:"expenseAutomation",origin:"missing_receipts"}})},onUploadReceiptComplete:(e,n)=>{t(Aa(e,n)),a!=null&&t(he({tenantId:a.tenantId,period:n,refreshViewInBackground:!0}))},onUploadReceiptFetchStatus:(e,n,o,s)=>{t(ba(e,{fetchState:n,error:o})),o!=null&&t(lt({messageSection:"missing_receipts_attachment",messageText:"failed",type:"error",showStatusIcon:!0,variables:[{variableName:"__message__",variableValue:s!=null?Io+So+s+ht:ht}]}))},onUpdateJESchedulesUIState:e=>{t(va(e))},onUpdateMissingReceiptsUIState:e=>{t(ya(e))},onFetchMissingReceiptsList:()=>{D!=null&&E!=null&&t(bt({start:E,end:D},{amount:75,currencyCode:"USD",currencySymbol:"$"},!0,!1))},...r===!0?{onBulkUploadFiles:e=>{t(Ma(e))},onBulkUploadProgress:e=>{t(Va(e))},onBulkUploadSuccess:e=>{t(_a({batchId:e}))},onBulkUploadUploadedFileCount:e=>{t(Fa(e))},onConfirmBulkUploadMatch:(e,n,o,s,C)=>{t(Ba(e,n,o,s,C))},onBulkUploadConfirmMatchAcknowledged:()=>{t(Oa())},onSetBulkUploadResultsTab:e=>{t(Ua(e))},onSetBulkUploadCompletedSubTab:e=>{t(Da(e))},onSetBulkUploadSortConfig:(e,n)=>{t(ut({sortKey:e,sortOrder:n}))},onClearBulkUpload:()=>{t(Ra())},onSearchTransactionsForManualMatch:(e,n)=>{t(pt(e,n??void 0))},onLoadMoreManualSearch:()=>{const{manualSearch:e}=g.missingReceipts.bulkUpload;e.nextPageToken!=null&&e.searchQuery!==""&&t(pt(e.searchQuery,e.nextPageToken))},onFetchCompletedTransactions:(e,n)=>{t(xa(e,n))},onFetchBulkUploadBatches:e=>{t(yt(e))},onFetchMoreBatchDetails:()=>{t(Pa())},onResetBulkUploadSort:()=>{t(ut({sortKey:"date",sortOrder:"descending"}))}}:{},onClearMissingReceiptsTabNavigation:()=>{t(Ea())},onSearchTextChanged:e=>{const n=g.currentSelectedView,o=g.selectedTransactionCategorizationTab;n==="transaction_categorization"&&(t(Ue({selectedTab:o,uiState:{searchString:e}})),D!=null&&E!=null&&t(ue(o,{start:E,end:D},!0,!1,e,void 0,!0)))},onRefresh:()=>{c.trackExpenseAutomationTabAnalytics(!0),t(ka(y))},onClose:()=>{L==="reconciliation"&&N!=null&&t(rt({selectedAccountId:void 0})),v("../")},onBack:()=>{L==="reconciliation"&&N!=null&&t(rt({selectedAccountId:void 0}))},onSaveReconciliation:e=>{t(fa(e))},onSaveReconciliationReview:e=>{t(Ia(e))},onUpdateStep:e=>{const{selectedPeriod:n}=g,o=H(m.state?.pathnameStackToGoBack,m.pathname);v(`../${e}/${n.month}-${n.year}`,{state:{pathnameStackToGoBack:o,referrer:g.currentSelectedView}}),t(vt(e))},handleLogOutClick:()=>{const e=H(m.state?.pathnameStackToGoBack,m.pathname);v("/signout",{replace:!0,state:{pathnameStackToGoBack:e,message:"logout"}})},onJeAccountSettingsChange:e=>{const{vendorsAccountSection:n}=e,{prepaidExpensesAccount:o,fixedAssetsAccount:s,accruedExpensesAccount:C}=n,h=Be(d.prepaidExpensesAccountList,o.selectedOptions),f=Be(d.fixedAssetsAccountList,s.selectedOptions),b=Be(d.accruedExpensesAccountList,C.selectedOptions),z={selectedPrepaidExpensesAccountIds:h.map(U=>U.accountId),selectedFixedAssetsAccountIds:f.map(U=>U.accountId),selectedAccruedExpensesAccountIds:b.map(U=>U.accountId)};t(Sa({data:z}))},onSaveJeAccountSettingsClick:()=>{t(Ca())},onJESchedulesFormDataChange(e,n){const{jeScheduleID:o,accumulatedDepreciationCategory:s,scheduleClass:C,scheduleExpenseCategory:h,vendor:f}=n,{allAccountList:b,allClassList:z,allDepreciationAccountList:U}=g.jeSchedules,K=T.entityAutoCompleteView.vendor.length>0?T.entityAutoCompleteView.vendor.find(G=>G.id===f?.selectedOption):void 0,ae={id:K?.zeniId??f?.selectedOption??"",name:K?.name??f?.defaultOptions.find(G=>G.value===f?.selectedOption)?.label??"",logo:K?.logo},ge=h?.selectedOption!=null?b.find(G=>G.qboId===h.selectedOption):void 0,we=C?.selectedOption!=null?z.find(G=>G.classId===C.selectedOption):void 0,oe=s?.selectedOption!=null?U.find(G=>G.qboId===s.selectedOption):void 0;t(ga({scheduledJournalEntryID:e,localData:{jeScheduleID:o,scheduledJournalEntryID:e,updatedCategoryId:ge?.accountId,updatedClassId:we?.classId,updatedAccumulatedDepreciationCategoryID:oe?.accountId,updatedVendor:{id:ae.id,name:ae.name}}}))},ignoreRecommendedJeSchedule(e,n){t(pa(e,n))},vendorSearchAutoCompleteActions:{onAutoCompleteInputChange:(e,n)=>{e.trim().length>=2?t(ot({searchString:e,entityType:n,searchOrigin:"common"})):e.trim().length===0&&t(Ee("common"))},onCancelAutoComplete:()=>{t(Ee("common"))}},onPostJESchedule(e,n){t(ha({scheduledJournalEntryID:e,jeScheduleTransactionKey:n}))},clearJeScheduleLocalData(){t(ma())},handleJeScheduleClick:(e,n,o)=>{t(ua({selectedJEScheduleKey:n}));const s=H(m.state?.pathnameStackToGoBack,m.pathname);v(`../../vendors/schedules/${o}/details/${e}`,{state:{pathnameStackToGoBack:s,message:"expenseAutomation",origin:"je_schedules"}})},improveMonthEndInsightsUsingZeniGPTClick:e=>{a!=null&&t(da(e,a.companyId,a.tenantId))},onClickCustomerRequest:I,setActivityLogTransactionId:S,onCloseAllThreadsSection:()=>{},onCloseFileAttachmentSnackBar:()=>{t(ra())},onOpenFileAttachmentSnackBar:()=>{t(lt({messageSection:"cockpit_month_end_email_attachment_upload",messageText:"failed",type:"error",showStatusIcon:!0}))},onRemoveFileAttachment:e=>{t(la(e))},onUpdateFileAttachment:e=>{t(ia({files:e}))},previewMonthEndReport:(e,n,o,s)=>{a!=null&&t(it(e,a.companyId,n,!0,o,s,a.tenantId))},saveMonthEndReport:(e,n,o,s)=>{a!=null&&t(it(e,a.companyId,n,!1,o,s,a.tenantId))},onEditMonthEndInsightsClick:$,sendMonthEndReport:e=>{const n=m.state?.referrer,{selectedPeriod:o,auditSummary:s}=g;a!=null&&s?.auditScorePercentage!=null&&(t(sa(a.companyId,e,a.tenantId)),M.trackInsightsEmailPage(o.month,o.year,!1,"draft",s.auditScorePercentage,ca().format(Ft.analytics.MMMDDCommaYYYYformat),n??null))},onTransactionCategorizationRowClick:(e,n)=>{if(c.openTransactionPanel)return void c.openTransactionPanel(e,n);const o=H(m.state?.pathnameStackToGoBack,m.pathname);v(`../../transaction/${n}/${e}`,{state:{pathnameStackToGoBack:o,message:"expenseAutomation",origin:"transaction_categorization"}})},setLocalDataForCategoryAndClass:(e,n,o,s,C,h,f,b,z,U,K)=>{t(oa(e,n,o,s,_,C,h,f,b,z,U,K))},onCancelAutoComplete:()=>{t(Ee("common"))},updateExpenseAutomationReconListScrollPosition:e=>{t(st({scrollPosition:e}))},onUpdateTab:e=>{c.closeSidePanel?.(),D!=null&&E!=null&&(t(ue(e,{start:E,end:D},!1,!1)),t(aa(e)))},onUpdateTransactionCategorizationUIState:(e,n)=>{t(Ue({selectedTab:e,uiState:n})),D!=null&&E!=null&&t(ue(e,{start:E,end:D},!1,!1,n.searchString,null,!0))},onUpdateScrollYOffSetTransactionCategorizationUIState:(e,n)=>{t(Ue({selectedTab:e,uiState:n}))},onFetchTransactionCategorizationList:(e,n,o,s,C,h,f)=>{D!=null&&E!=null&&t(ue(e,{start:E,end:D},!0,o,n,s,C,h,f))},resetTransactionCategorizationLocalData:(e,n,o,s,C,h,f,b)=>{t(na(e,n,o,s,b??null,C,h,!1,f))},updateSelectedVendorForTransaction:(e,n,o,s,C)=>{t(ct({selectedTab:e,transactionId:n,lineId:o,selectedTransaction:s,uncategorizedAccounts:_,updatedVendor:C}))},onSaveUpdateTransactionCategorization:(e,n,o)=>{const s=m.state?.referrer;e==="autoCategorized"?M.trackTransactionsAutoCategorisedPage(k.month,k.year,g.transactionView.totalCountByTab.autoCategorized,n.length,!1,s??null):M.trackTransactionsReviewPage(k.month,k.year,g.transactionView.totalCountByTab.review,n.length,!1,s??null),t(ta(e,n,o,y))},onUpdateSelectedCheckboxTransactionIds:(e,n)=>{t(ea({selectedTab:e,transactionIds:n}))},onFetchRecommendationsForEntityCategorizationWithCustomer:(e,n,o,s,C,h,f)=>{const{transactionId:b,transaction:z,lineIds:U}=n;h!=null&&t(Wn({transactionId:b,customerUpdates:h})),t(Xn({selectedTab:s,transactionId:b.id,lineId:U[0],selectedTransaction:z,uncategorizedAccounts:_,updatedCustomer:h,selectedEntity:C,isUncategorizedExpenseCategoryEnabled:f})),C!=null&&t(je(C,e,n,o,!0,A,f))},onFetchRecommendationsForEntityCategorization:(e,n,o,s,C,h,f)=>{const{transactionId:b,transaction:z,lineIds:U}=n;h!=null&&(t(Zn({transactionId:b,vendorUpdates:{name:h.name,id:h.id?h.id:void 0}})),t(Hn({vendorId:h.id?h.id:void 0,localData:{vendorName:h.name,vendorId:h.id?h.id:void 0}}))),h?.id?(t(ct({selectedTab:s,transactionId:b.id,lineId:U[0],selectedTransaction:z,uncategorizedAccounts:_,updatedVendor:h,selectedEntity:C,isUncategorizedExpenseCategoryEnabled:f})),C!=null&&t(je(C,e,n,o,!0,A,f))):t(Qn({selectedTab:s,transactionId:b.id,lineId:U[0]}))},fetchFluxViewOnScroll:(e,n)=>{t(ye(e,!0,!1,n,!1,!0))},onFetchFluxViewList:()=>{t(ye(k,!0,!1,null,!1,!1))},markAsReview:(e,n,o,s)=>{M.trackFluxAnalysisReviewed(o.month,o.year,s??!1,e),t(Kn(n,e,o,s??!1))},onUpdateFluxAnalysisUIState:e=>{t(Nn(e))},updateOperatingExpensesIdsForReview:e=>{t(Yn({operatingExpenseIds:e,selectedPeriod:k}))},redirectToVendorDetailPage:e=>{if(c.tenantEmailDomain!=null){const n=ao(e.id,e.qboId,c.tenantEmailDomain),o=H(c.location.state?.pathnameStackToGoBack,c.location.pathname);c.navigate(n,{state:{pathnameStackToGoBack:o,message:"expenseAutomation",referrer:"Vendor List",origin:"flux_analysis"}})}},updateSectionIdsForReview:e=>{t(Jn({sectionId:e,selectedPeriod:k}))},onFetchReimbursementView:(e,n,o)=>{t(ye(e,!0,!1,n,!0,o))},onReviewClicked:e=>{t(ne(k,e))},setOpenDrawerClicked:e=>{t(_e({selectedDrawerAccountId:e}))},onFetchLinkTokenClick:(e,n)=>{t(wt("expense_automation_reconcile",e,n))},onEstablishConnectionClick:(e,n)=>{const o=a?.companyId;o!=null&&(t(At(e,o,"expense_automation_reconcile",void 0,"link_account_no_microdeposit",n)),t(Tt({accountId:n,connectionInProgress:!0})))},onAddStatementClick:e=>{t(_e({selectedDrawerAccountId:e})),t(kt({accountId:e,selectedPeriod:k,localData:{accountSource:"bank_statement"}})),t(ft({statementUploadChosen:!0}))},onReloadReconciliationListPage:()=>{t(ne(k,void 0,!0,!1))},onUpdateReconcileTabLocalData:e=>{t(qn({selectedTransactionIds:e}))},onReconTabColumnSortConfigChanged:(e,n)=>{t(Gn({sortKey:e,sortOrder:n}))},onReconReviewTabColumnSortConfigChanged:(e,n)=>{t($n({sortKey:e,sortOrder:n}))},onReconTabUpdate:e=>{c.closeSidePanel?.(),t(zn({selectedTab:e}))},updateReconReviewTabLocalData:(e,n,o)=>{const s=e.vendor?.id;o&&s!=null&&t(jn(s)),t(Ln({data:e,transactionId:n}))},onReconMatchedTransactionClick:e=>{if(c.openTransactionPanel)return void c.openTransactionPanel(e,Me("bill"));const n=H(m.state?.pathnameStackToGoBack,m.pathname);v(`../../transaction/bill/${e}`,{state:{pathnameStackToGoBack:n,message:"expenseAutomation",origin:"reconciliation"}})},onReloadPage:()=>{window.location.reload()},onBackClick:()=>{v(-1)},onReconListPageScroll:e=>{t(st({scrollPosition:e}))},onVendorAutoCompleteInputChange:e=>{e.trim().length>=2?t(ot({searchString:e,searchOrigin:"common"})):e.trim().length===0&&t(Ee("common"))},onReconNodeCollapseToggled:(e,n)=>{t(Mn({nodeId:e,collapsed:n}))},updateSectionCollapseStatus:()=>{},onExcludeAccountFromReconciliation:e=>{t(St({accountId:e}))},onIncludeAccountIntoReconciliation:e=>{t(It({accountId:e}))}}},(t,c,x)=>{const{isMissingReceiptsBulkUploadEnabled:A,...y}=x;return function(r,m,T){return{...r,...m,...T,onUploadTransactionReceipt:(g,a,_,v,I)=>{m.onUploadTransactionReceipt(g,a,_,v,I,r.authParams)}}}(t,c,y)})(Qa),ko=to(({closeSidePanel:t,openTransactionPanel:c,panelContent:x,sidePanelIsFullView:A,sidePanelIsOpen:y})=>{const{isAiCfoOpen:r,setIsAiCfoOpen:m}=Pt(),T=Ct(),g=Fe(),a=pe(),{isAiCfoAccessEnabled:_,onAskAiCfoClick:v}=Ot({isAiCfoOpen:r,setIsAiCfoOpen:m,mobileExploreReferrer:"Transaction categorization"}),{areTenantIdsInSync:I}=Rt(),$=(()=>{const i=F(q=>Ve(q)),P=Fe(),{currentSelectedViewFetchState:j,currentSelectedView:O,selectedPeriod:R}=i,de=Oe(O),X=Oe(j.fetchState),Ie=l.useCallback(q=>{const Z=P.state?.referrer;O==="transaction_categorization"&&(i.selectedTransactionCategorizationTab==="review"?M.trackTransactionsReviewPage(R.month,R.year,i.transactionView.totalCountByTab.review,0,q,Z??null):M.trackTransactionsAutoCategorisedPage(R.month,R.year,i.transactionView.totalCountByTab.autoCategorized,0,q,Z??null)),O==="missing_receipts"&&M.trackMissingReceiptsPage(R.month,R.year,q,i.missingReceipts.transactions.length,Z??null),O==="je_schedules"&&M.trackMonthCloseScheduleListPage(R.month,R.year,q,i.jeSchedules.draftSchedules.length,i.jeSchedules.resolveSchedules.length,Z??null),O==="flux_analysis"&&M.trackFluxAnalysisPage(R.month,R.year,q,Co(i.fluxAnalysis),Z??null),O==="month_end_insights"&&i.auditSummary?.auditScorePercentage!=null&&M.trackInsightsEmailPage(R.month,R.year,q,"draft",i.auditSummary.auditScorePercentage,null,Z??null)},[R,i]);return l.useEffect(()=>{X===j.fetchState&&O===de||j.fetchState!=="Completed"||Ie(!1)},[O,j.fetchState,de]),Ie})(),S=Ja(),[k,L]=l.useState(!1),N=F(i=>tt(i)),d=F(i=>ze(i)),[p,E]=l.useState(!1),[D,e]=l.useState(!1),[n,o]=l.useState([]),[s,C]=l.useState(void 0),[h,f]=l.useState(!1),b=l.useRef(!1),{selectedTab:z}=et(),{tenantEmailDomain:U}=et(),[K,ae]=l.useState(g.state?.message==="comingFromTransactionDetail"),ge=g.state?.message==="comingFromOverview",we=Ya(),oe=Te.getSignedInUser(),{useDynamicConfig:G,useFeatureGate:Ce}=xt(),{configValue:_t}=G(Na.enableUncategorizedExpenseCategory),Q=_t?.uncategorized_expense_category_enabled===!0,{isFeatureEnabled:$e}=Ce(me.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:se}=Ce(me.isMissingReceiptsBulkUploadEnabled),{isFeatureEnabled:Ge}=Ce(me.isTransactionActivityEnabled),{isFeatureEnabled:Vt}=Ce(me.isExpenseAutomationCommentingEnabled),Mt=l.useCallback(i=>{const P=Me(i.view==="reconciliation"?"bill":"expense");c?.(i.entityId,P)},[c]),jt=F(i=>Pn(i,"common")),B=F(i=>Ve(i)),{monthEndCloseChecksView:Y,currentSelectedView:V,selectedPeriod:w,selectedTransactionCategorizationTab:qe,currentSelectedViewBackgroundRefreshFetchState:Lt,currentSelectedViewFetchState:W,jeSchedules:Pe,reconciliation:zt}=B,{selectedAccountId:ce}=zt,Je=Oe(Pe.accountSettingsView.saveState.fetchState),$t=F(i=>xn(i.accountState,i.accountListState,"accountList")),ie=z!=null?Rn(z):V,Gt=F(i=>i.entityAutoCompleteState.autoCompleteText.common);if(Bt({isDataReady:W.fetchState==="Completed"}),oe==null)throw Error("Can't access expense automation screen without signing in...");const Ye=Et(w),le=be(Ye.start),re=be(Ye.end);if(le==null||re==null)throw Error(`Invalid start - ${le} and end - ${re} period from given ${w}`);const qt=l.useCallback(()=>{E(!1)},[]),Jt=l.useCallback(()=>{e(!0)},[]),Yt=l.useCallback(i=>{o(i),e(!1)},[]),Nt=l.useCallback(()=>{o([])},[]),Se=B.missingReceipts.bulkUpload.phase,Ne=B.missingReceipts.bulkUpload.currentBatchId;l.useEffect(()=>{se===!0&&V==="missing_receipts"&&Se==="matching"&&Ne!=null&&a(yt({cacheOverride:!0}))},[se,V,Se,Ne,a]);const Ke=oe?.userId,Kt=w.month,Zt=w.year,Ze=d?.tenantId;l.useEffect(()=>{V==="missing_receipts"&&se!==!1&&Se==="idle"&&Ke!=null&&Ze!=null&&a(Dn())},[V,se,Se,Ke,Ze,Kt,Zt,a]),l.useEffect(()=>{N.newVendorState?.vendorDetailLocalData?.vendorName!=null?L(!0):L(!1)},[N.newVendorState?.vendorDetailLocalData?.vendorName]),l.useEffect(()=>{ie!=null&&V!==ie&&a(vt(ie))},[ie]),l.useEffect(()=>{h!==!1||W.fetchState!=="Completed"&&W.fetchState!=="Error"||!I||(f(!0),a(nt(!1,!1,Q)))},[h,W,I,Q]),l.useEffect(()=>{!ge&&I&&(a(nt(!1,!1,Q)),a(ne(w,ce,!1,!1)))},[w.month,w.year,I,Q]);const He=l.useCallback((i=!1,P=!1)=>{const j={start:le,end:re};switch(V){case"transaction_categorization":a(ue(qe,j,i,!K,void 0,void 0,P,void 0,Q)),ae(!1);break;case"flux_analysis":a(ye(w,i,P,null));break;case"month_end_insights":if(P===!1){const O=new Date(w.year,w.month,0),R=On(O.toDateString()).format(Ft.analytics.YYYYDashMMDashDDFormat);a(Bn(!0,d.companyId,d.tenantId,R)),a(Fn(d.companyId,d.tenantId))}break;case"je_schedules":a(Un(j,P));break;case"missing_receipts":a(bt(j,{amount:75,currencyCode:"USD",currencySymbol:"$"},i,P));break;default:a(ne(w,ce,i,P))}},[V,le,re,d.companyId,d.tenantId,qe,w,ce,K,ae,Q]);l.useEffect(()=>{V===ie&&W.fetchState==="Not-Started"&&I&&He(!0)},[W,le,re,d.companyId,d.tenantId,I]),l.useEffect(()=>{ge||K||b.current||Lt.fetchState==="In-Progress"||W.fetchState!=="Completed"||(b.current=!0,He(!0,!0))},[]),l.useEffect(()=>{Y.fetchState!=="In-Progress"&&Y.fetchState!=="Completed"&&a(he({tenantId:d.tenantId,period:w,refreshViewInBackground:!1}))},[Y.fetchState,d.tenantId]),l.useEffect(()=>{B.monthEndInsights?.previewMonthEndReportStatus?.fetchState==="Completed"?E(!0):E(!1)},[B.monthEndInsights?.previewMonthEndReportStatus?.fetchState]),l.useEffect(()=>{B.monthEndInsights?.sendMonthEndReportStatus?.fetchState==="Completed"&&I&&(a(he({tenantId:d.tenantId,period:w,refreshViewInBackground:!0})),a(_n({companyId:d.companyId})),T("../"))},[B.monthEndInsights?.sendMonthEndReportStatus?.fetchState,d.tenantId,w,d.companyId,I]),l.useEffect(()=>{const i=setInterval(()=>{Y.fetchState!=="In-Progress"&&Y.fetchState==="Completed"&&a(he({tenantId:d.tenantId,period:w,refreshViewInBackground:!0}))},3e5);return()=>clearInterval(i)},[Y.fetchState,d.tenantId,w,a]),l.useEffect(()=>{const i=setInterval(()=>{V==="reconciliation"&&ce==null&&B.reconciliation.fetchStatus.fetchState==="Completed"&&B.reconciliation.refreshStatus.fetchState!=="In-Progress"&&a(ne(w,void 0,!0,!0))},3e5);return()=>clearInterval(i)},[V,a,B.reconciliation.fetchStatus.fetchState,B.reconciliation.refreshStatus.fetchState,ne,ce,w]);const Ht=mt();l.useEffect(()=>{const i=(Y.monthEndCloseChecks?.monthEndCloseCheckList.find(P=>P.id==="month_end_insights")?.isDisabled??!1)&&!$e;V!=="month_end_insights"||!i&&Y.monthEndCloseChecks?.reportEmailSentDate==null||T("../")},[V,Y.monthEndCloseChecks]);const Qt=B.reconciliation.selectedDrawerAccountId;l.useEffect(()=>{Je==="In-Progress"&&Pe.accountSettingsView.saveState.fetchState==="Completed"&&a(at())},[Je,Pe.accountSettingsView.saveState.fetchState,at]);const{transactionId:Qe,onSaveVendor:Wt,onSaveSuccess:Xt,onCancel:en,vendorViewDetails:tn}=(({expenseAutomationViewSelector:i,closeDrawerHandler:P,currentSelectedView:j})=>{const O=pe();let R,de,X;const Ie=mt(),q=i.transactionView;let Z=()=>{};const{transactions:nn,selectedTransactionId:te,selectedTransactionLineId:fe,transactionLocalData:an}=q;if(j==="transaction_categorization"){const xe=an.find(ee=>ee.transactionId===te),J=nn.find(ee=>ee.id===te),We=fe!=null?xe?.transactionReviewLocalData?.lineItemById[fe]:void 0,Xe=We?.account;de=We?.class?.classId,R=["Uncategorized Income","Uncategorized Expense"].includes(Xe?.accountName??"")?void 0:Xe?.accountId;const sn=no(te,J?.typeOfTransaction);J!=null&&sn&&(X={id:te,type:Me(J.typeOfTransaction)}),Z=()=>{if(te!=null&&fe!=null&&J!=null){const ee=q.transactionLocalData.find(ke=>ke.transactionId===te)?.transactionReviewLocalData;if(ee!=null&&J.lines!=null&&J.lines.length>0){const ke=ee.lineItemById[fe];let Re=ee.selectedEntity;if(wn(J)||(Re=ke.selectedEntityLine),Re!=null){const cn=Re,ln={transactionId:{id:J.id,type:J.type},transaction:J,lineIds:J.lines.map(rn=>rn.id)??[]};O(je(cn,ke.amount.amount,ln,!1,!0,Ie))}}}}}const on=F(xe=>tt(xe,void 0,R,de));return{transactionId:X,onSaveVendor:()=>{O(Tn(X,void 0,!1,!0))},onSaveSuccess:Z,onCancel:()=>{X!=null&&O(vn({transactionId:X})),O(bn()),O(An()),P()},vendorViewDetails:on}})({expenseAutomationViewSelector:B,closeDrawerHandler:()=>{L(!1)},currentSelectedView:V});return we?.loggedInUserRoleMap==null?Y.fetchState==="Error"?u.jsx(Ka,{onGoHome:()=>T("../",{replace:!0}),onReload:()=>window.location.reload()}):u.jsx(Ut,{fetchState:"In-Progress"}):u.jsxs(u.Fragment,{children:[u.jsx(oo,{isOpen:D,drawerLeftMargin:new Za(0,0,300,650),onClose:()=>{e(!1)},children:u.jsx(Eo,{onClick:i=>i.stopPropagation(),children:u.jsx(uo,{companyId:d.companyId,closeCustomerRequestDrawer:()=>e(!1),addCustomerRequest:Yt,resetCustomerRequest:Nt})})}),Qe!=null&&k&&u.jsx(eo,{isOpen:k,transactionId:Qe,onSaveVendor:Wt,onSaveSuccess:Xt,onCancel:en,vendorViewDetails:tn}),u.jsx(lo,{selectedDrawerAccountId:Qt,reconciliation:B.reconciliation,onFetchLinkTokenClick:(i,P)=>{a(wt("expense_automation_reconcile",i,P))},onEstablishConnectionClick:(i,P)=>{const j=d?.companyId;j!=null&&(a(At(i,j,"expense_automation_reconcile",void 0,"link_account_no_microdeposit",P)),a(Tt({accountId:P,connectionInProgress:!0})))}}),Ge&&u.jsx(po,{selectedTransactionId:s,onClose:()=>C(void 0)}),u.jsx(fo,{navigate:T,location:g,themeState:S,vendorSearchAutoCompleteData:{autoCompleteText:Gt,entityAutoCompleteView:jt},expenseAutomationViewSelector:B,isMissingReceiptsBulkUploadEnabled:se,monthEndInsightsPreviewMode:p,monthEndInsightsCustomerRequestData:n,isRealtimeInsightsFeatureEnabled:$e,isUncategorizedExpenseCategoryEnabled:Q,isCOTEnabled:Ht,currentTenant:d,companyId:d.companyId,signedInUser:oe,isTransactionActivityEnabled:Ge,uncategorizedAccounts:$t,onClickCustomerRequest:Jt,handleEditClick:qt,tenantEmailDomain:U,trackExpenseAutomationTabAnalytics:$,setActivityLogTransactionId:C,closeSidePanel:t,openTransactionPanel:c,sidePanelIsOpen:y,sidePanelIsFullView:A,panelContent:x,isAiCfoAccessEnabled:_,onAskAiCfoClick:v,isExpenseAutomationCommentingEnabled:Vt,onExpenseAutomationCommentingThreadClick:Mt})]})}),Eo=Ae(Le)`
|
|
17
|
-
display: flex;
|
|
18
|
-
min-height: 100%;
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
`;function Yo(){return u.jsxs(mn,{children:[u.jsx(De,{path:"*",element:u.jsx(so,{})}),u.jsx(De,{path:"/:selectedTab/:selectedPeriod/*",element:u.jsx(ko,{})}),u.jsx(De,{path:"*",element:u.jsx(dn,{})})]})}export{Yo as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-Cm6P1Xg9.js";import{a as r}from"./sentry-CH1ai1xG.js";import{Y as l,Z as p,_ as b,w as f}from"./index-N5K3qQkU.js";import"./mui-5LlzyiP2.js";import m from"./NotFoundScreen-DCVl9MiG.js";import{j as c,u}from"./core-AMZJGpoV.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new a.Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="b9a83aa7-b690-4828-8ae7-7b69f878cdb8",a._sentryDebugIdIdentifier="sentry-dbid-b9a83aa7-b690-4828-8ae7-7b69f878cdb8")}catch{}})();const j=()=>{const a=c(),e=u(),t=r.useCallback(()=>{window.open("https://www.zeni.ai/demo/request","_blank")},[]),i=r.useCallback(()=>{(()=>{const n=f(e.state?.pathnameStackToGoBack),d=n.poppedPathname??k();a(d,{state:{pathnameStackToGoBack:n.newStack}})})()},[]),o=l(e.pathname);return o!=null?s.jsx(p,{menuItem:b(o),onDemoClick:t,onGoBack:i}):s.jsx(m,{})},k=(a=2)=>{let e="../";for(let t=0;t<a;t++)e=`${e}../`;return e};export{j as F};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-Cm6P1Xg9.js";import{l as b,k as x,j,u as y,h as Z,q as ee,g as A,N as te,n as ae,o as p}from"./core-AMZJGpoV.js";import{It as S,Iu as k,Iv as N,yP as $,yB as L,Iw as C,Ix as ne,Iy as oe,yF as ie,eN as I,yM as se,yJ as le}from"./zeni-epic-state-CaufR46d.js";import{q as g,f as d,r as de,e as v,n as E,s as re,w as ce,x as me,y as F,c as pe,d as ue,A as he,X as xe,h as ge,B as fe,E as we,v as be,S as ye,F as Se,G as ke,H as ve}from"./index-N5K3qQkU.js";import{n as c}from"./mui-5LlzyiP2.js";import f from"./NotFoundScreen-DCVl9MiG.js";import{a as P}from"./sentry-CH1ai1xG.js";import"./recharts-LaAu_fL4.js";import"./analytics-CgaqSFat.js";import"./plaid-nK_3ZvzH.js";import"./dnd-C4u70dJH.js";import"./stripe-DMRn4zHo.js";import"./lottie-CEe6fZ1i.js";import"./lexical-hn7WhrHW.js";import"./pdf-DzINawGT.js";import"./utils-DRDD4XTN.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]="bdcd1346-ed83-4217-abe2-38edaf64762d",e._sentryDebugIdIdentifier="sentry-dbid-bdcd1346-ed83-4217-abe2-38edaf64762d")}catch{}})();const Ie=c.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100%;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
box-shadow: ${e=>`0px 2px ${d.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
10
|
-
`,je=x(function(e){const a=S(e),n=k(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:i=>{e(L(i))},onSaveHandler:i=>{v.trackBillPayMagicLinkSubmitBankAccountDetails(o),e($(i,"standard",n,o))},onACHDetailsUpdated:i=>{const{bankAccountSection:l}=i;e(N({data:l}))}}})(de);function z(){const e=g(),{vendorId:a,billId:n}=b();return a==null||n==null?t.jsx(f,{}):t.jsx(t.Fragment,{children:t.jsx(Ie,{windowSize:e,children:t.jsx(je,{vendorId:a,billId:n})})})}const $e=c.div`
|
|
11
|
-
display: flex;
|
|
12
|
-
height: 100vh;
|
|
13
|
-
width: 100%;
|
|
14
|
-
flex: 1 1 auto;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
align-items: center;
|
|
17
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
18
|
-
box-shadow: ${e=>`0px 2px ${d.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
19
|
-
`,Ce=x(function(e,a){const{isSubPage:n}=a;return{addressToEdit:C(e),googleAPIKey:E.googleMapsAPIKey,isSubPage:n}},function(e,a){const{navigate:n,location:o}=a,i=()=>{const l=ce(o.state?.pathnameStackToGoBack),s=l.poppedPathname??De();n(s,{state:{pathnameStackToGoBack:l.newStack}})};return{onSubmitHandler:l=>{const s=Ae(l);e(ne({addressToCreate:s})),i()},onCancel:()=>{i()}}})(re);function Be({isSubPage:e}){const a=j(),n=y(),o=g();return t.jsx(t.Fragment,{children:t.jsx($e,{windowSize:o,children:t.jsx(Ce,{location:n,navigate:a,isSubPage:e===!0,googleAPIKey:E.googleMapsAPIKey})})})}const De=(e=2)=>{let a="../";for(let n=0;n<e;n++)a=`${a}../`;return a},Ae=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng}),Pe=c.div`
|
|
20
|
-
display: flex;
|
|
21
|
-
height: 100%;
|
|
22
|
-
width: 100%;
|
|
23
|
-
flex: 1 1 auto;
|
|
24
|
-
flex-direction: column;
|
|
25
|
-
align-items: center;
|
|
26
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
27
|
-
box-shadow: ${e=>`0px 2px ${d.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
28
|
-
`,ze=x(function(e){const a=S(e),n=k(e),o=C(e),{companyName:i}=a;return{companyName:i,isDisabled:a.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,mailingAddressDetails:o,magicLinkViewState:a}},function(e,a){const{navigate:n,location:o,vendorId:i,billId:l}=a;return{onFetchBankName:s=>{e(L(s))},onSaveHandler:s=>{v.trackBillPayMagicLinkSubmitBankAccountDetails(l),e($(s,"us-domestic",i,l))},onWireDetailsUpdated:s=>{const{bankAccountSection:r}=s;e(N({data:r}))},onAddressClick:()=>{const s=o.pathname.replace("us-domestic","address"),r=F(o.state?.pathnameStackToGoBack,o.pathname);n(s,{state:{pathnameStackToGoBack:r}})}}})(me);function Ne(){const e=j(),a=y(),n=g(),{vendorId:o,billId:i}=b();return o==null||i==null?t.jsx(f,{}):t.jsx(t.Fragment,{children:t.jsx(Pe,{windowSize:n,children:t.jsx(ze,{location:a,navigate:e,vendorId:o,billId:i})})})}const Le=c.div`
|
|
29
|
-
display: flex;
|
|
30
|
-
height: 100%;
|
|
31
|
-
width: 100%;
|
|
32
|
-
flex: 1 1 auto;
|
|
33
|
-
flex-direction: column;
|
|
34
|
-
align-items: center;
|
|
35
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
36
|
-
box-shadow: ${e=>`0px 2px ${d.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
37
|
-
`,Ee=x(function(e){const a=S(e),n=k(e),o=C(e),{companyName:i}=a;return{companyName:i,isDisabled:a.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,mailingAddressDetails:o,magicLinkViewState:a}},function(e,a){const{navigate:n,location:o,vendorId:i,billId:l}=a;return{onFetchBankNameBySwift:s=>{e(ie(s))},onSaveHandler:s=>{v.trackBillPayMagicLinkSubmitBankAccountDetails(l),e($(s,"international",i,l,a.isLocalCurrencyEnabled))},onBankDetailsUpdated:s=>{const{internationalWireSwiftAccountSection:r}=s;e(oe({data:r}))},onAddressClick:()=>{const s=o.pathname.replace("international","address"),r=F(o.state?.pathnameStackToGoBack,o.pathname);n(s,{state:{pathnameStackToGoBack:r}})}}})(he);function Fe(){const e=j(),a=y(),n=g(),{vendorId:o,billId:i}=b(),{useFeatureGate:l}=pe(),{isFeatureEnabled:s}=l(ue.isBillPayLocalCurrencyFeatureEnabled);return o==null||i==null?t.jsx(f,{}):t.jsx(Le,{windowSize:n,children:t.jsx(Ee,{location:a,navigate:e,vendorId:o,billId:i,isLocalCurrencyEnabled:s})})}const Te={containerWidth:new ke(100,58)},Ge=c(ye)`
|
|
38
|
-
width: ${d.sp4};
|
|
39
|
-
height: ${d.sp4};
|
|
40
|
-
margin-bottom: ${d.sp3};
|
|
41
|
-
margin-top: ${d.sp3};
|
|
42
|
-
margin-left: ${d.sp8};
|
|
43
|
-
cursor: pointer;
|
|
44
|
-
position: absolute;
|
|
45
|
-
color: ${e=>e.theme.colors.brandColorJade};
|
|
46
|
-
`,He=c.div`
|
|
47
|
-
display: flex;
|
|
48
|
-
height: 100vh;
|
|
49
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
50
|
-
width: 100vw;
|
|
51
|
-
overflow-y: scroll;
|
|
52
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
53
|
-
`,Me=c.div`
|
|
54
|
-
display: flex;
|
|
55
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
56
|
-
flex-direction: column;
|
|
57
|
-
width: ${e=>`${Te.containerWidth.value(e.windowSize)}%`};
|
|
58
|
-
${e=>e.windowSize!=="small"?"overflow: auto;":""}
|
|
59
|
-
box-shadow: ${e=>`0px 2px ${d.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
60
|
-
padding-top: ${e=>e.windowSize!=="small"?d.sp2:"0px"};
|
|
61
|
-
`,Ve=c.div`
|
|
62
|
-
display: flex;
|
|
63
|
-
flex-direction: column;
|
|
64
|
-
align-items: center;
|
|
65
|
-
justify-content: center;
|
|
66
|
-
padding: ${e=>e.windowSize==="small"?d.sp3:`62px ${d.sp6} ${d.sp9} ${d.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
|
-
`,Ke=x(function(e,a){return{file:a.file,type:a.type}})(Se);function h({appContent:e}){const a=Z(),n=y(),{tenantEmailDomain:o,vendorId:i,billId:l}=b(),[s]=ee(),r=s.get("token"),T=n.pathname.includes("address"),w=g(),G=xe(),B=ge(),H=()=>{G.toggle()},M=A(u=>S(u)),V=A(u=>k(u)),{authParams:K,fetchState:m,billAttachment:W,billFetchState:D,companyName:_,currencySymbol:U,amount:q}=M,{tenantId:J,userId:O,sessionId:X}=K,{fetchState:Q,internationalBankAccountCreateStatus:R}=V;return P.useEffect(()=>{I(),m==="Not-Started"&&i!=null&&o!=null&&r!=null&&a(se(i,o,r))},[]),P.useEffect(()=>{m==="Completed"&&(I(O,X,J),l!=null&&a(le(l)))},[m]),m==="Error"?t.jsx(f,{}):Q==="Completed"||R.fetchState==="Completed"?(I(),t.jsx(te,{to:"../../../../../../../bank/account/save/success",replace:!0,relative:"path"})):m==="In-Progress"?t.jsx(fe,{fetchState:m,style:{height:"100vh",backgroundColor:B.colors.grey5,boxShadow:`0px 2px ${d.sp1} ${B.colors.dropShadowNormal}`}}):t.jsxs(t.Fragment,{children:[m==="Completed"&&D==="Completed"&&t.jsx(we,{analytics:v,onLoad:u=>(Y=>Y.trackBillPayMagicLinkPageLoad(o??"",i??"",_,l??"",We(n.pathname),U,q))(u)}),t.jsxs(He,{windowSize:w,children:[w!=="small"?t.jsx(Ge,{onClick:H}):null,t.jsx(Ve,{windowSize:w,isAddressPage:T,children:D==="In-Progress"?t.jsx(be,{size:"ExtraLarge",start:!0}):t.jsx(Ke,{file:W,type:"bill"})}),t.jsx(Me,{windowSize:w,children:e})]})]})}const We=e=>`${e.split("/").at(-2)}_${e.split("/").at(-1)}`;function _e(){return t.jsx(ve,{})}function lt(){return t.jsxs(ae,{children:[t.jsx(p,{path:"bank/account/save/success",element:t.jsx(_e,{})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/ach/standard",element:t.jsx(h,{appContent:t.jsx(z,{})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/ach/same-day",element:t.jsx(h,{appContent:t.jsx(z,{})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/address",element:t.jsx(h,{appContent:t.jsx(Be,{isSubPage:!0})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/us-domestic",element:t.jsx(h,{appContent:t.jsx(Ne,{})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/international",element:t.jsx(h,{appContent:t.jsx(Fe,{})})}),t.jsx(p,{path:"*",element:t.jsx(f,{})})]})}export{lt as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-Cm6P1Xg9.js";import{a as g}from"./sentry-CH1ai1xG.js";import{h as U,u as _,j as w,q as M,g as l,N as T}from"./core-AMZJGpoV.js";import{z as r,h as P,D as V,g as A,e as N,i as q,p as R,v as W,k as $}from"./index-N5K3qQkU.js";import{eM as B,Id as G,Io as H,Ie as J,eN as K,fh as Q,Ik as X,fF as Y,cR as Z,Ip as ee,Iq as te}from"./zeni-epic-state-CaufR46d.js";import{n as ne}from"./mui-5LlzyiP2.js";import{u as ae}from"./useDeviceId-C9Bh2Mvx.js";import{f as se}from"./analyticsHelper-Co0biJvM.js";import{t as ie}from"./getLocaleForTenant-Cuk0zyAy.js";import"./recharts-LaAu_fL4.js";import"./analytics-CgaqSFat.js";import"./plaid-nK_3ZvzH.js";import"./dnd-C4u70dJH.js";import"./stripe-DMRn4zHo.js";import"./lottie-CEe6fZ1i.js";import"./lexical-hn7WhrHW.js";import"./pdf-DzINawGT.js";import"./utils-DRDD4XTN.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]="d56c8ad1-0c31-4113-8579-a06a7aaa88d1",t._sentryDebugIdIdentifier="sentry-dbid-d56c8ad1-0c31-4113-8579-a06a7aaa88d1")}catch{}})();const D=(t,s)=>t!=null&&t.length>0&&s==="magic_links";function De(){const t=U(),s=_(),f=w(),[y]=M(),n=y.get("token"),p=y.get("stytch_token_type"),m=r.getMagicLinkCodeVerifier(),i=ae(),{otpChallenge:d,twoFAPhoneNumber:x,magicLinkEmail:c,verifyDeviceFetchState:z,resendVerifyDeviceOTPFetchState:C}=l(e=>e.tenantState),I=l(e=>e.tenantState.fetchState),v=l(e=>e.tenantState.activeTenantFetchState.fetchState),S=l(e=>e.tenantState.signInState),h=l(e=>e.tenantState.magicLinkSignInFetchState.fetchState),a=l(e=>e.tenantState.loggedInUser),o=l(e=>B(e)),k=l(e=>G(e)),E=r.getSignedInUser(),b=P().mode;g.useEffect(()=>{a?.zeniSessionId==null&&n!=null&&D(n,p)&&i!=null&&m!=null&&(r.saveMagicLinkTriggered(n),t(H(n,i,m)))},[n,p,t,i,m,a?.zeniSessionId]),g.useEffect(()=>{S!=="In-Progress"||I!=="Completed"&&v!=="Completed"||a?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(a,a.zeniSessionId),r.saveSignedInUserTenants(J(k.tenantsInOrder),a.zeniSessionId),K(a.userId,a.zeniSessionId,o.tenantId),t(Q(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(X("Completed")),V.updateAppLocaleID(ie(o)),se(a,o,b,void 0,k.tenantsInOrder),Y().then(()=>{const e=$();e!=null&&A(e)}),setTimeout(()=>{N.trackLogin(q.Event.loginSuccess,"email",Z(o.productSettings))},2e3))},[S,I,v,a,o,k,b,s.state,t]);const F=g.useCallback(()=>{f("/signin/auth")},[f]),j=g.useCallback(()=>{i!=null&&d!=null&&c!=null&&t(ee(i,c,d))},[i,d,t,c]),O=g.useCallback(e=>{i!=null&&n!=null&&c!=null&&d!=null&&t(te(e,i,c,d))},[i,n,t,c,d]);if(h==="Completed"&&d!=null)return u.jsx(R,{phoneNumber:x,verifyOtpFetchState:z.fetchState,resendVerifyDeviceOTPFetchState:C,onResendOtp:j,onVerifyOtp:O,onCancelVerifyDevice:F});if(S==="In-Progress"&&I==="Completed"&&a?.zeniSessionId!=null&&o!=null||E!=null){const e=s.state?.origin??"/";return u.jsx(T,{to:e,state:{...s.state,origin:""}})}if(!D(n,p)||m==null||h==="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??"")||h==="Error"&&a?.zeniSessionId==null)}})}return u.jsx(oe,{"data-testid":"smooth-loader",children:u.jsx(W,{size:"ExtraLarge",start:!0})})}const oe=ne.div`
|
|
2
|
-
position: fixed;
|
|
3
|
-
top: 0;
|
|
4
|
-
left: 0;
|
|
5
|
-
right: 0;
|
|
6
|
-
bottom: 0;
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
z-index: 9999;
|
|
11
|
-
background-color: ${t=>t.theme.colors.background};
|
|
12
|
-
`;export{De as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as U}from"./liveblocks-Cm6P1Xg9.js";import{a as c}from"./sentry-CH1ai1xG.js";import{h as pe,g as t,l as Ze,u as Xe,j as qe,i as R}from"./core-AMZJGpoV.js";import{eM as he,eT as Je,eU as Se,eO as Ke,bm as Qe,f2 as ea,eV as aa,eW as ta,eY as na,f0 as sa,fa as oa,f1 as g,f4 as ia,f5 as ue,f8 as ra,f6 as da,f7 as la,f9 as ca,cF as ua,fc as fa,cL as ma,bu as ba,eL as pa,fh as ha,fi as Sa,fg as ga}from"./zeni-epic-state-CaufR46d.js";import{a1 as Ea,a2 as Ca,X as ka,c as ya,z as C,a3 as Ia,u as Ta,d as r,a4 as wa,a5 as Fa,C as Aa,a as _a,a6 as Da,Y as va,a7 as $a,a8 as Ba,a9 as fe,aa as me,L as Ma,ab as Pa,ac as be,e as x,y as F,ad as N,ae as Ra}from"./index-N5K3qQkU.js";import{D as xa}from"./mui-5LlzyiP2.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]="2e3cc11b-a271-43db-90fe-2880e9ccf9f9",f._sentryDebugIdIdentifier="sentry-dbid-2e3cc11b-a271-43db-90fe-2880e9ccf9f9")}catch{}})();const Na=Ea(({isAppContentDrawerOpen:f,handleDrawerToggle:d})=>{const{tenantEmailDomain:n}=Ze(),a=Xe(),k=ka(),o=qe(),V=Ke(),m=pe(),{useFeatureGate:i}=ya(),G=C.getSignedInUser(),A=Qe(G),s=t(e=>he(e)),L=t(e=>ea(e)),O=L.uiState.currentChatSessionId,y=Ia(),{setLoading:ge}=Ta(),[_,j]=c.useState(void 0),D=R("/:tenantEmailDomain/dashboard")!==null,Y=R("/:tenantEmailDomain/reports")!==null,I=R("/:tenantEmailDomain/onboarding/*")!==null,{isFeatureEnabled:z}=i(r.isDepositAccountsFeatureEnabled),{isFeatureEnabled:Ee}=i(r.isChargeCardFeatureEnabled),{isFeatureEnabled:H}=i(r.isDebitCardFeatureEnabled),Ce=wa(s,Ee,H),{isFeatureEnabled:ke}=i(r.isSettingsFeatureEnabled),W=t(e=>aa(e)),{isFeatureEnabled:T}=i(r.isReferralFeatureEnabled),v=t(e=>ta(e));c.useEffect(()=>{y&&T&&!I&&v.fetchState==="Not-Started"&&m(na(!0))},[y,T,v.fetchState,I]);const h=C.getSignedInUser(),$=t(e=>e.tenantState),ye=t(e=>$.fetchState==="Completed"?sa(e):[]),E=t(e=>e.expenseAutomationViewState.selectedPeriodByTenantId),{isFeatureEnabled:Ie}=i(r.isApAgingFeatureEnabled),{isFeatureEnabled:Te}=i(r.isArAgingFeatureEnabled),{isFeatureEnabled:Z}=i(r.isExpenseAutomationEnabled),{isFeatureEnabled:X}=i(r.isExpenseAutomationEnabledV2),q=X||Z&&A,{isFeatureEnabled:we}=i(r.isDashboardSidebarHalloweenAnimationEnabled),{isFeatureEnabled:Fe}=i(r.isDashboardSidebarThanksGivingAnimationEnabled),{isFeatureEnabled:Ae}=i(r.isDashboardSidebarChristmasAnimationEnabled),{isFeatureEnabled:_e}=i(r.isDashboardSidebarNewYearAnimationEnabled),{isFeatureEnabled:De}=i(r.isTreasuryEnabled),{isFeatureEnabled:ve}=i(r.isTaskManagerCustomerUserAccessEnabled),$e=A||!A&&ve,Be=s.company!=null&&oa(s.company),w=De&&Be,Me=t(e=>g(e).totalUnreadCount),Pe=t(e=>g(e).reducedFetchCountState),J=t(e=>g(e).notificationDetailsByTab.tasks.uiState.unreadCount),K=t(e=>g(e).notificationDetailsByTab.comments.uiState.unreadCount),Re=t(e=>g(e).notificationDetailsByTab.tasks.fetchCountState),B=t(e=>g(e).notificationDetailsByTab.comments.fetchCountState),{inboxNotifications:Q,isLoading:ee,isFetchingMore:ae,hasFetchedAll:te,fetchMore:xe}=Fa();c.useEffect(()=>{const e=setTimeout(()=>xe?.(),0);return()=>clearTimeout(e)}),c.useEffect(()=>{if(ee===!1&&ae===!1&&te===!0)if(s?.companyId!=null&&Q!=null){const e=`dashboard_${s.companyId}`;j(Q.filter(u=>u.roomId===e&&u.readAt==null).length)}else j(0)},[ee,ae,te]),c.useEffect(()=>{y&&!I&&Re.fetchState==="Not-Started"&&V.tenantId!=null&&m(ia("task_manager","dashboard"))},[y,V.tenantId]),c.useEffect(()=>{I||B.fetchState!=="Not-Started"||m(ue({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))},[]),c.useEffect(()=>{_!=null&&B.fetchState==="In-Progress"&&(m(ue({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),m(Se({unreadCount:_},"comments")))},[_,B.fetchState]);const Ne={fetchStatus:Pe,count:Me},ne=n!=null?C.getSignedInUserTenant(n):null,se=t(e=>ne?.tenantId!=null?ra(e,ne.tenantId):void 0),S=[];Ie===!1&&S.push("accounts_payable_aging"),Te===!1&&S.push("accounts_receivable_aging"),z===!1&&S.push("zeni_accounts_promo_card"),T===!1&&S.push("rewards_card"),q===!1&&S.push("expense_automation_card");const Ue=Aa(),oe=t(e=>da(e,S,h,X,Z,w).fetchState),ie=t(e=>la(e).fetchState),Ve=D&&(oe==="Completed"||oe==="Error")||Y&&(ie==="Completed"||ie==="Error")||!D&&!Y?void 0:"disabled",Ge=c.useMemo(()=>ca(s.userRole),[s.userRole]),Le=ua(Ge),Oe=s?.rewardsLastViewedTime==null,je=h?.userEmail!=null&&W.fetchState==="Completed"&&fa(W.notificationSettings,h.userEmail,H,s),re=_a(),Ye=re&&Da(a),de=ma(Ue?.loggedInUserRoleMap),le=s.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,M=c.useCallback(()=>w&&de&&!C.getTreasuryPopupSeen(n??"")&&le===!1&&va(a.pathname)!=="treasury",[w,de,le,a.pathname,n]),[ze,ce]=c.useState(M);c.useEffect(()=>{ce(M())},[M]);const He=t(e=>e.treasurySetupViewState.treasuryFundsDetails).fundsDetails,We=$a(He);return U.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:U.jsx(Ba,{signedInUser:G,currentTenantId:$.currentTenantId??"",tenants:$.fetchState==="Completed"?ye:se!=null?[se]:[],currentTenant:s,isTenantDropdownDisabled:Ve,isSettings:me(a),isSettingsFeatureEnabled:ke,isVendorsTabVisible:Le,isZeniAccountEnabled:z,isChargeCardEnabled:Ce,isTreasuryEnabled:w,treasuryYieldPercentage:We,isTreasuryPopupVisible:ze,isNotificationsTabVisible:je,notificationCountDetails:Ne,isExpenseAutomationEnabledForUser:q&&ba(s.userRole)===!1,selectedMenu:fe(a),rewardsConfiguration:{isRewardsTabVisible:T,isRewardsAnimated:Oe,rewardsPlan:v.rewardsPlan},isAiCfoAccessEnabled:re,onNotificationIconClick:()=>{d(!1);let e=J===0&&K>0?"notifications/comments":"notifications/tasks";me(a)&&(e=J===0&&K>0?"../../notifications/comments":"../../notifications/tasks");const u=F(a.state?.pathnameStackToGoBack,a.pathname);o(e,{state:{pathnameStackToGoBack:u}})},handleCockpitClick:()=>{window.open("/cockpit")},handleLogOutClick:()=>{d(!1);const e=F(a.state?.pathnameStackToGoBack,a.pathname);o("/signout",{replace:!0,state:{pathnameStackToGoBack:e,message:"logout"}})},handleMenuChange:e=>{if(d(!1),e.type==="ai_cfo"){const p=F(a.state?.pathnameStackToGoBack,a.pathname);return x.trackAICFOChatScreenStateChanged("viewed","left_menu",O??null,null),void o(`/${n}/ai-cfo/explore`,{state:{pathnameStackToGoBack:p,referrer:"Sidebar"}})}const u=F(a.state?.pathnameStackToGoBack,a.pathname),l=e.type,b=N(l)&&l!=="command_center";if(N(e.type)&&E[s.tenantId]!=null&&x.trackMonthEndCloseClicked(E[s.tenantId].month,E[s.tenantId].year,"Sidebar"),b&&E[s.tenantId]!=null){const p=E[s.tenantId];return void o(`/${n}/month_end_close_checks/review/${e.type}/${p.month}-${p.year}`,{state:{pathnameStackToGoBack:u,referrer:"Sidebar"}})}const P=Ra(e.type);be(e.type)?(O!=null&&m(ga()),o(`/${n}/ai-cfo/${e.type}`,{state:{pathnameStackToGoBack:u.slice(0,-1),referrer:"Sidebar"}})):o(`/${n}/${P}`,{state:{pathnameStackToGoBack:u,referrer:"Sidebar"}})},handleMyProfileClick:()=>{d(!1),o(`/${n}/settings/my_profile`)},handleReferralsClick:()=>{d(!1),o(`/${n}/rewards`)},handleBackClick:()=>{o(`/${n}/dashboard`)},handleTenantSelect:e=>{ge(Ma.TENANT_SWITCHING),d(!1);const u=e.tenantEmailDomain,l=fe(a);let b=`/${encodeURIComponent(u)}/`;const P=N(l);l==="home"?b+="dashboard":l==="users_and_roles"?b+="people":Pa(l)?b+="settings/my_profile":be(l)?b+=`ai-cfo/${l}`:b+=l==="task_checklist"?"tasks":P?"month_end_close_checks/review":encodeURIComponent(l),o(b,{replace:!0}),h!=null&&(m(ha(e.tenantId)),m(Sa(h.userId,e.tenantId,h.zeniSessionId)));const p=e;x.trackCompanySwitch(p.companyId,p.companyName,p.userRole)},handlePopupClose:()=>{C.saveTreasuryPopupSeen(n??"",!0),ce(!1)},onZeniLogoClick:()=>{k.toggle()},isAiCfo:Ye,aiCfoView:L,isOnDashboard:D,updateCurrentChatSessionId:e=>{m(pa({sessionId:e,agentId:"controller"})),o(`/${n}/ai-cfo/${e}`,{state:{...a.state}})},halloweenAnimationEnabled:we,isTaskManagerAccessEnabled:$e,thanksGivingAnimationEnabled:Fe,christmasAnimationEnabled:Ae,newYearAnimationEnabled:_e})})}),Ya=f=>{const d=pe(),n=t(k=>he(k)),a={events:n.userRoleId!=null?[`private-${n.userRoleId}.dashboard-user-notification`]:[],eventCallback:(k,o)=>{Ca(o)&&Je(o.mode)==="dashboard"&&d(Se({unreadCount:o.data.unread},"tasks"))}};return U.jsx(Na,{...f,...a})};export{Ya as M};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-Cm6P1Xg9.js";import{j as r,k as i}from"./core-AMZJGpoV.js";import{W as n}from"./index-N5K3qQkU.js";import"./mui-5LlzyiP2.js";import"./sentry-CH1ai1xG.js";import"./zeni-epic-state-CaufR46d.js";import"./recharts-LaAu_fL4.js";import"./analytics-CgaqSFat.js";import"./plaid-nK_3ZvzH.js";import"./dnd-C4u70dJH.js";import"./stripe-DMRn4zHo.js";import"./lottie-CEe6fZ1i.js";import"./lexical-hn7WhrHW.js";import"./pdf-DzINawGT.js";import"./utils-DRDD4XTN.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new o.Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="fe0dc2e3-d6a3-4690-8e18-122b6c1ede12",o._sentryDebugIdIdentifier="sentry-dbid-fe0dc2e3-d6a3-4690-8e18-122b6c1ede12")}catch{}})();const d=i(null,function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}})(n);function h(){const o=r();return e.jsx(d,{navigate:o})}export{h as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as n}from"./liveblocks-Cm6P1Xg9.js";import{j as z,h as K,u as Z,l as H,g as d,k as X,n as ee,o as C}from"./core-AMZJGpoV.js";import{eM as M,qa as U,pK as ae,J4 as w,pF as y,bu as te,bm as se,bQ as oe,pG as re,J5 as ne,IR as S,dF as ie,tx as ce,J6 as le,tU as de,eS as me,eQ as fe}from"./zeni-epic-state-CaufR46d.js";import{N as pe,z as ue,O as he,C as Fe,c as $,d as N,E as ge,e as q,aj as be,y as Ie}from"./index-N5K3qQkU.js";import"./mui-5LlzyiP2.js";import Ce from"./NotFoundScreen-DCVl9MiG.js";import{F as Se}from"./FeaturePreviewScreen-XRpSmfAA.js";import{a as h}from"./sentry-CH1ai1xG.js";import{u as ye}from"./useAskAiCfoHostNavButtonProps-Du0DR5Lw.js";import{c as Te}from"./useFetchSuggestedQuestionsWhenReady-ChhFydzB.js";import{u as Ae}from"./useInitialThreadRequest-vKKjrofy.js";import{t as xe}from"./routePaths-meDm6KLz.js";import{M as ke}from"./MobileAppDrawer-CAbg3Q-N.js";import"./recharts-LaAu_fL4.js";import"./analytics-CgaqSFat.js";import"./plaid-nK_3ZvzH.js";import"./dnd-C4u70dJH.js";import"./stripe-DMRn4zHo.js";import"./lottie-CEe6fZ1i.js";import"./lexical-hn7WhrHW.js";import"./pdf-DzINawGT.js";import"./utils-DRDD4XTN.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new s.Error().stack;a&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[a]="5b86e5c5-6716-412c-870e-f25befb7c84a",s._sentryDebugIdIdentifier="sentry-dbid-5b86e5c5-6716-412c-870e-f25befb7c84a")}catch{}})();const T=(s,a,e,o)=>{if(s!=a){const r=o??"";s!=null&&s.length>0?e(`../${a}${r}`,{replace:!0}):e(`${a}${r}`,{replace:!0})}},De=X(function(s){const a=ne(s),e={},o=a.pandLReportWithForecast.uiState.nodeCollapseState;return Object.keys(o).forEach(r=>{e[r]=o[r]===!1}),{selectedTimeframe:a.selectedTimeframe,isForecastVsActualOn:a.isForecastVsActualOn,compareMode:a.compareMode,forecastList:a.forecastList,selectedForecast:a.selectedForecast,pandLreport:a.pandLReportWithForecast,scrollPosition:a.pandLReportWithForecast.uiState.scrollPosition,nodeOpenStatus:e,type:"name+balances_forecast",analytics:q}},function(s,a){return{onForecastSelectionChanged:(e,o)=>{s(w(e,o)),a.isPandLReportFetched(e)||s(y(e)),T(a.forecastIdFromUrlPath,e,a.navigate)},onTimeframeChanged:e=>{s(de(e))},onForecastVsActualsCompareToggle:e=>{s(le(e)),s(S({forecastId:a.forecastIdFromUrlPath,scrollPosition:{scrollLeft:0,scrollTop:0}}))},onCompareModeChanged:e=>{s(ce(a.firstMonthOfFY,e,0,[]))},onAccountBalanceClick:a.hasTransactionAccess!==!0?void 0:(e,o)=>{let r,i;const F=e.accountName===""?e.accountDescription:e.accountName;if(o.balanceTimeFrame==="month"||o.balanceTimeFrame==="quarter"?(r=o.balanceTimeFrame,i=ie(o)):o.balanceTimeFrame==="year"?(r="quarter",i={startDate:o.endDate.startOf("quarter"),endDate:o.endDate}):console.error(`timeframe ${o.balanceTimeFrame} is not supported`),i!=null&&r!=null){const f=xe(a.tenantEmailDomain,e.accountId,e.accountType,F,r,i),p=Ie(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(f,{state:{pathnameStackToGoBack:p,referrer:"Forecast"}})}},onNodeCollapseToggled:(e,o)=>{s(S({forecastId:a.forecastIdFromUrlPath,nodeCollapseState:{nodeId:e,isCollapsed:o===!1}}))},onTableScroll:e=>{s(S({forecastId:a.forecastIdFromUrlPath,scrollPosition:e}))},onBackClick:()=>{a.navigate("../../")}}})(be);function v(){const{isAiCfoOpen:s,setIsAiCfoOpen:a}=pe(),e=z(),o=K(),r=Z(),{forecastId:i,tenantEmailDomain:F}=H(),[f,p]=h.useState(!1),[g,A]=h.useState(!1),u=ue.getSignedInUser(),x=d(t=>M(t)),B=x.company?.companyInfo.firstMonthOfFY??1,c=d(t=>U(t.forecastState,t.forecastListState)),l=d(t=>t.forecastListState.fetchState==="Completed"),k=d(t=>t.profitAndLossState),D=d(t=>t.reportUIOptionsState.selectedForecast),j=t=>k.pandLByForecastID[t]!=null&&re(t,k).reducedAllFetchState.fetchState==="Completed",{areTenantIdsInSync:b}=he();Te({isDataReady:l});const{isAiCfoAccessEnabled:G,onAskAiCfoClick:_}=ye({isAiCfoOpen:s,setIsAiCfoOpen:a,mobileExploreReferrer:"Forecast"});h.useEffect(()=>{if(!f&&b)p(!0),l||o(ae());else if(l&&!g){A(!0);const t=((m,R,P)=>R!=null?m.forecasts.findIndex(I=>I.id===R):P!=null?m.forecasts.findIndex(I=>I.id===P):m.forecasts.length>0?0:-1)(c,i,D?.id);t===-1&&i!=null?e("page-not-found",{replace:!0}):t!==-1&&t!=D?.index?(o(w(c.forecasts[t].id,t)),T(i,c.forecasts[t].id,e,r.search)):i==null&&t!==-1&&T(void 0,c.forecasts[t].id,e,r.search),t!==-1&&!j(c.forecasts[t].id)&&b&&o(y(c.forecasts[t].id))}},[f,p,o,l,c,g,A,U,y,b]);const E=Fe(),V=E?.loggedInUserRole!=null&&te(E.loggedInUserRole),{useFeatureGate:W}=$(),{isFeatureEnabled:L}=W(N.isReportsCommentingEnabled),Y=Ae(L?x?.companyId:void 0,{clearParams:l&&g}),[J,Q]=h.useState(!1),O=t=>{Q(t)};return n.jsxs(n.Fragment,{children:[l?n.jsx(ge,{analytics:q,onLoad:t=>(m=>m.trackForecast())(t)}):null,n.jsx(ke,{isAppContentDrawerOpen:J,handleDrawerToggle:O}),n.jsx(De,{firstMonthOfFY:B,tenantEmailDomain:F,forecastIdFromUrlPath:i,navigate:e,location:r,isPandLReportFetched:j,meetingUrl:oe(`https://meetings.hubspot.com/svitlana-grankovska?firstname=${u?.firstName}&lastname=${u?.lastName}&email=${u?.userEmail}`),hasTransactionAccess:V,isAiCfoAccessEnabled:G,onAskAiCfoClick:_,isReportsCommentingEnabled:L,isZeniUser:se(u),initialOpenThreadRequest:Y,onClickMenuIcon:()=>{O(!0)}})]})}function Ke(){const s=d(i=>M(i)),{useFeatureGate:a}=$(),{isFeatureEnabled:e}=a(N.isDebitCardFeatureEnabled),o=me(e,s),r=fe(s);return o===!0||r===!0?n.jsx(Se,{}):n.jsxs(ee,{children:[n.jsx(C,{path:"/",element:n.jsx(v,{})}),n.jsx(C,{path:"/:forecastId",element:n.jsx(v,{})}),n.jsx(C,{path:"/:forecastId/*",element:n.jsx(Ce,{})})]})}export{Ke as PandLWithForecastRoutes,Ke as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as n}from"./liveblocks-Cm6P1Xg9.js";import _ from"./NotFoundScreen-DCVl9MiG.js";import{a as r}from"./sentry-CH1ai1xG.js";import{j as M,u as v,g,l as U,h as P,N as z,k as N,n as V,o as h}from"./core-AMZJGpoV.js";import{eM as B,OG as b,bn as F,bm as G,h2 as H,gy as X}from"./zeni-epic-state-CaufR46d.js";import{X as $,z as I,N as q,cp as J}from"./index-N5K3qQkU.js";import"./mui-5LlzyiP2.js";import{u as K}from"./useAskAiCfoHostNavButtonProps-Du0DR5Lw.js";import{c as L}from"./useFetchSuggestedQuestionsWhenReady-ChhFydzB.js";import{M as Q}from"./MobileAppDrawer-CAbg3Q-N.js";import"./recharts-LaAu_fL4.js";import"./analytics-CgaqSFat.js";import"./plaid-nK_3ZvzH.js";import"./dnd-C4u70dJH.js";import"./stripe-DMRn4zHo.js";import"./lottie-CEe6fZ1i.js";import"./lexical-hn7WhrHW.js";import"./pdf-DzINawGT.js";import"./utils-DRDD4XTN.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]="6f6b91de-7882-4043-8bd8-9653cb12eec7",e._sentryDebugIdIdentifier="sentry-dbid-6f6b91de-7882-4043-8bd8-9653cb12eec7")}catch{}})();const W=N(function(e){const t=I.getSignedInUser(),c=e.tenantState.currentTenantId,o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:c??""},{aggregatedReportViewState:a}=b(e);return{authParams:o,isDisabled:!1,loggedInUser:t,aggregatedReport:a}},function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}})(J),Y=()=>{const e=M(),t=v(),c=$(),o=g(s=>B(s)),{aggregatedReportViewState:a}=g(s=>b(s)),{tenantEmailDomain:m}=U(),p=P(),l=I.getSignedInUser();if(l==null)throw new Error("Can't access this page without signing in...");const f=r.useRef(!1),[C,S]=r.useState(!1),k=F(o?.userRole??[]),w=o?.userRole?.includes("bookkeeping_admin")??!1,y=G(l),A=k||w||y,d=r.useCallback((s,i,O)=>{p(H({fromMonth:s,toMonth:i,cacheOverride:O}))},[]);r.useEffect(()=>{a?.fetchState==="Completed"&&f.current&&(p(X({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),f.current=!1)},[a?.fetchState]);const D=r.useCallback((s,i)=>{a!=null&&a?.fetchState==="In-Progress"||d(s,i,!0),f.current=!0},[a?.fetchState,d]),x=r.useCallback((s,i)=>{d(s,i,!1)},[d]),u=s=>{S(s)},{isAiCfoOpen:j,setIsAiCfoOpen:R}=q(),{isAiCfoAccessEnabled:T,onAskAiCfoClick:E}=K({isAiCfoOpen:j,setIsAiCfoOpen:R,mobileExploreReferrer:"Performance"});return L({isDataReady:a?.fetchState==="Completed"}),A?n.jsxs(n.Fragment,{children:[n.jsx(Q,{isAppContentDrawerOpen:C,handleDrawerToggle:u}),n.jsx(W,{navigate:e,location:t,themeState:c,currentTenant:o,signedInUser:l,tenantEmailDomain:m,onReload:D,onTimeRangeSelect:x,handleDrawerToggle:u,isAiCfoAccessEnabled:T,onAskAiCfoClick:E})]}):n.jsx(z,{to:`/${m}/dashboard`,replace:!0})};function Ie(){return n.jsxs(V,{children:[n.jsx(h,{path:"*",element:n.jsx(Y,{})}),n.jsx(h,{path:"*",element:n.jsx(_,{})})]})}export{Ie as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-Cm6P1Xg9.js";import x from"./NotFoundScreen-DCVl9MiG.js";import{a as p}from"./sentry-CH1ai1xG.js";import{j as C,u as I,h as A,g as u,N as E,k,n as D,o as f}from"./core-AMZJGpoV.js";import{eM as T,Mo as g,ME as S,Ck as V,Bt as M,Cj as c,Ca as U,MT as _}from"./zeni-epic-state-CaufR46d.js";import{h as B,z as $,B as N,a1 as O,bF as W,aa as z}from"./index-N5K3qQkU.js";import"./mui-5LlzyiP2.js";import{R as v}from"./ReimbursementApprovalRuleDetailScreen-BSJvMfmy.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]="ff424f9b-35b4-4ef4-b095-c25b2ec01fb9",e._sentryDebugIdIdentifier="sentry-dbid-ff424f9b-35b4-4ef4-b095-c25b2ec01fb9")}catch{}})();const m="reimbursement-approval-rule-update",F=k(function(e){return{approvalView:g(e),remiSetupApproverViewUpdateData:S(e).remiSetupApproverViewUpdateData}},function(e,r){const{navigate:a,location:l}=r;return{onApprovalRulesEventReceived:n=>{n.endsWith(m)&&e(_(!1))},onBackClick:()=>{z(l)?a("../../"):a("../../../reimbursements/setup")},onDeleteRuleClick:n=>{e(U(n))},onEditRuleClick:n=>{n!=null?(e(c(n)),a(`./${n}/edit`)):(e(c()),a("./new"))}}})(O(W)),P=()=>{const e=C(),r=I(),a=A(),[l,n]=p.useState(!1),[d,y]=p.useState(!1),b=u(s=>s.remiSetupApproverViewState.fetchState),o=u(s=>T(s)),w=B(),i=u(s=>g(s)),h=u(s=>S(s).remiSetupApproverViewUpdateData);if(p.useEffect(()=>{h?.updateStatus.fetchState==="Completed"&&a(V())},[h]),p.useEffect(()=>{l||b!=="Not-Started"||(n(!0),a(M(!0)))},[l,b,a]),$.getSignedInUser()==null)throw Error("Can't access reimbursement approval without signing in...");p.useEffect(()=>{i.allApprovalRules.length===0&&i.fetchState==="Completed"&&(d||(y(!0),a(c())),e("./new"))},[d,i,a]);const j={events:o.companyId!=null?[`private-${o.companyId}.${m}`]:[],eventCallback:(s,q,R)=>{s.endsWith(m)&&R.onApprovalRulesEventReceived(s)}};return o.companyReimbursementInfo?.info?.isReimbursementTOSAccepted===!1?t.jsx(E,{to:"../../promo"}):o.companyReimbursementInfo?.info?.isReimbursementTOSAccepted!==!0||i.fetchState!=="Completed"&&i.fetchState!=="Error"?t.jsx(N,{fetchState:"In-Progress",style:{backgroundColor:w.colors.grey5}}):t.jsx(F,{currentTenant:o,location:r,navigate:e,...j})};function Z(){return t.jsxs(D,{children:[t.jsx(f,{path:"/",element:t.jsx(P,{})}),t.jsx(f,{path:"/new",element:t.jsx(v,{})}),t.jsx(f,{path:"/:approvalRuleId/edit",element:t.jsx(v,{})}),t.jsx(f,{path:"*",element:t.jsx(x,{})})]})}export{Z as R};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-Cm6P1Xg9.js";import{c as j,z as w,aI as b,E as S,e as p,i as F,cx as P,d as L}from"./index-N5K3qQkU.js";import"./mui-5LlzyiP2.js";import l from"./NotFoundScreen-DCVl9MiG.js";import{a as u}from"./sentry-CH1ai1xG.js";import{h as T,g as y,j as V,u as A,k as R,n as U,o as f}from"./core-AMZJGpoV.js";import{eM as z,Pd as C,M3 as Y,Pe as k,tn as M,eY as G,Pf as O,tl as q}from"./zeni-epic-state-CaufR46d.js";import{R as x}from"./ReferralListScreen-CT8COHO0.js";import"./recharts-LaAu_fL4.js";import"./analytics-CgaqSFat.js";import"./plaid-nK_3ZvzH.js";import"./dnd-C4u70dJH.js";import"./stripe-DMRn4zHo.js";import"./lottie-CEe6fZ1i.js";import"./lexical-hn7WhrHW.js";import"./pdf-DzINawGT.js";import"./utils-DRDD4XTN.js";import"./useAskAiCfoHostNavButtonProps-Du0DR5Lw.js";import"./useFetchSuggestedQuestionsWhenReady-ChhFydzB.js";import"./MobileAppDrawer-CAbg3Q-N.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]="e6569445-7efb-4b9a-8a2c-846159369c1b",e._sentryDebugIdIdentifier="sentry-dbid-e6569445-7efb-4b9a-8a2c-846159369c1b")}catch{}})();const B=R(function(e,t){const n=C(e);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}},function(e,t){const{navigate:n}=t,i=w.getSignedInUser();return{onDismissClick:()=>{e(k()),n("..")},onSendClick:()=>{if(i!=null){const s=[],r=[];t.inviteFormCompayData.forEach(c=>{s.push(c.companyName),r.push(c.emailIds[0])}),p.trackInviteEmailClicked("send",s,r,s.length)}e(q())},onUpdateInviteFormLocalData:s=>{e(O({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{i!=null&&p.trackInviteEmailClicked("cancel")}}})(P),H=()=>{const e=T(),[t,n]=u.useState(!1),[i,s]=u.useState(!1),r=y(o=>z(o)),c=V(),D=A(),{useDynamicConfig:g}=j(),d=w.getSignedInUser();if(d==null)throw Error("Can't access invite referral screen without signing in...");const m=y(o=>C(o)),_=d?.firstName!=null?d.firstName:"User",{configValue:h}=g(b.zeniCardsConfig),{configValue:v}=g(b.zeniAccountsConfig),E=Y(v);u.useEffect(()=>{e(k()),r?.rewardsLastViewedTime==null&&i===!1&&(e(M()),s(!0))},[]),u.useEffect(()=>{t||m.fetchState!=="Not-Started"||(n(!0),e(G(!0)))},[m.fetchState,e]);const I=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[m.fetchState==="Completed"?a.jsx(S,{analytics:p,onLoad:o=>(N=>N.trackPageLoaded(F.Event.inviteEmailViewed))(o)}):null,a.jsx(B,{navigate:c,location:D,currentTenant:r,companyName:I,userName:_,inviteFormCompayData:m.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:E.maxAnnualPercentageYield})]})};function de(){const{useFeatureGate:e}=j(),{isFeatureEnabled:t}=e(L.isReferralFeatureEnabled);return a.jsxs(U,{children:[a.jsx(f,{path:"/",element:t?a.jsx(x,{}):a.jsx(l,{})}),a.jsx(f,{path:"how-it-works",element:t?a.jsx(x,{isReferralDrawerOpen:!0}):a.jsx(l,{})}),a.jsx(f,{path:"refer/*",element:t?a.jsx(H,{}):a.jsx(l,{})}),a.jsx(f,{path:"*",element:a.jsx(l,{})})]})}export{de as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-Cm6P1Xg9.js";import{a}from"./sentry-CH1ai1xG.js";import{h as u,u as m,j as p,N as g}from"./core-AMZJGpoV.js";import{z as f,B as b,t as y,e as c,i as h}from"./index-N5K3qQkU.js";import{IA as I,Ii as x,IB as j}from"./zeni-epic-state-CaufR46d.js";import{n as w}from"./mui-5LlzyiP2.js";import"./recharts-LaAu_fL4.js";import"./analytics-CgaqSFat.js";import"./plaid-nK_3ZvzH.js";import"./dnd-C4u70dJH.js";import"./stripe-DMRn4zHo.js";import"./lottie-CEe6fZ1i.js";import"./lexical-hn7WhrHW.js";import"./pdf-DzINawGT.js";import"./utils-DRDD4XTN.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]="144b8e19-f51e-432c-9bd6-0b787c6f697e",e._sentryDebugIdIdentifier="sentry-dbid-144b8e19-f51e-432c-9bd6-0b787c6f697e")}catch{}})();function q(){const e=u(),t=m(),i=p(),n=a.useRef(!1),d=f.isSignedIn(),r=t.state?.message==="logout",o=r||d;return a.useEffect(()=>{o&&!n.current&&(n.current=!0,setTimeout(()=>{try{f.clearAll(),e(I()),e(x(!1)),j(),y.reset(),c.trackLogout(h.Event.logoutSuccess),c.resetUserIdentity()}catch(l){console.error("Error during sign out:",l)}finally{r||i("/signin/auth",{replace:!0})}},0))},[o,r]),o?s.jsx(v,{children:s.jsx(b,{fetchState:"In-Progress"})}):s.jsx(g,{to:"../",replace:!0})}const v=w.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`;export{q as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-Cm6P1Xg9.js";import z from"./NotFoundScreen-DCVl9MiG.js";import{a as m}from"./sentry-CH1ai1xG.js";import{j as A,h as M,u as V,l as $,g as f,N as _,k as O,n as R,o as u}from"./core-AMZJGpoV.js";import{X as q,z as w,y as C,E as Q,e as D,i as W,cy as H,n as X,ao as Z,w as J}from"./index-N5K3qQkU.js";import{eM as G,Pg as b,EL as v,Ez as K,Fb as Y,Ph as P,Pi as aa,Ev as ea,Es as ta,pA as sa,po as na,jW as oa,EF as ia,Pj as ra,EC as la,EQ as ca,EP as da}from"./zeni-epic-state-CaufR46d.js";import{n as ma}from"./mui-5LlzyiP2.js";import{u as pa}from"./useInitialThreadRequest-vKKjrofy.js";import{M as ua}from"./MobileAppDrawer-CAbg3Q-N.js";import ka from"./TaskListScreen-DT8MICZp.js";import"./recharts-LaAu_fL4.js";import"./analytics-CgaqSFat.js";import"./plaid-nK_3ZvzH.js";import"./dnd-C4u70dJH.js";import"./stripe-DMRn4zHo.js";import"./lottie-CEe6fZ1i.js";import"./lexical-hn7WhrHW.js";import"./pdf-DzINawGT.js";import"./utils-DRDD4XTN.js";import"./useAskAiCfoHostNavButtonProps-Du0DR5Lw.js";import"./useFetchSuggestedQuestionsWhenReady-ChhFydzB.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]="34dffa18-6352-4cec-a647-7d4874a638d2",a._sentryDebugIdIdentifier="sentry-dbid-34dffa18-6352-4cec-a647-7d4874a638d2")}catch{}})();const fa=O(function(a,t){const{location:n,taskGroupId:l}=t,d=P(a,t.taskId),c=G(a),i=l!=null?aa(a.taskGroupState,l):void 0,p=w.getSignedInUser(),e=c.tenantId,r={userId:p?.userId??"",sessionId:p?.zeniSessionId??"",tenantId:e??""},k=b(a);return{taskDetailSelectorView:d,authParams:r,isNewClicked:n.state?.message==="comingFromTaskListPage",filesEndPoint:Z.fileMicroServiceBaseUrl,companyName:t.currentTenant.companyName,companyId:t.currentTenant.companyId,currentUrl:`${X.appUrl}${t.location.pathname}`,tagListView:k,taskGroupName:l!=null&&i!=null&&i.isDefault===!1?i.name:void 0}},function(a,t){const{taskId:n,navigate:l,currentTenant:d,location:c,taskGroupId:i}=t,{tenantEmailDomain:p}=d;return{onSaveChangesToLocalStore:e=>{a(da({taskDetailLocalData:e,taskId:n}))},onSaveDetailClick:()=>{a(ca(n,i))},onArchiveTaskClick:()=>{t.taskId!=null&&a(la(t.taskId))},onDismissClick:()=>{if(c.state?.message==="triggerBackClick"){const e=J(c.state?.pathnameStackToGoBack),r=e.poppedPathname??"../../dashboard";l(r,{state:{pathnameStackToGoBack:e.newStack}})}else{const e=B(p),r=C(c.state?.pathnameStackToGoBack,c.pathname);l(e,{state:{pathnameStackToGoBack:r}})}a(ra({taskId:n}))},onDeleteTaskClick:()=>{a(ia(n))},updateFilesEntity:e=>{a(oa({files:e}))},onDeleteFile:e=>{a(na(e))},onEditFileName:(e,r)=>{a(sa(e,r.split(".")[0]))},onReloadTaskDetailPage:()=>{a(v(!1,n))},onCreateTagClick:e=>{a(ta(e,n))},onDeleteTagClick:e=>{a(ea(e,n))}}})(H);function I(){const a=A(),t=M(),n=V(),l=q(),{taskId:d,taskGroupId:c}=$(),i=f(o=>G(o)),p=pa(i?.companyId),[e,r]=m.useState(!1),[k,F]=m.useState(!1),[S,L]=m.useState(!1),[x,N]=m.useState(!1),y=f(o=>b(o)),j=f(o=>o.taskGroupViewState.fetchState);m.useEffect(()=>{k||(F(!0),t(v(!1,d)))},[k,t]),m.useEffect(()=>{S||y.fetchState==="Completed"||(L(!0),t(K()))},[S,t,y.fetchState]),m.useEffect(()=>{x||j==="Completed"||(N(!0),t(Y()))},[x,t,j]);const E=f(o=>P(o,d)),g=E.fetchState,T=w.getSignedInUser();if(T==null)throw Error("Can't access task detail page without signing in...");if(g==="Error"&&E.error?.code===400){const{tenantEmailDomain:o}=i,h=B(o),U=C(n.state?.pathnameStackToGoBack,n.pathname);return s.jsx(_,{to:h,state:{pathnameStackToGoBack:U}})}return s.jsxs(s.Fragment,{children:[g==="Completed"?s.jsx(Q,{analytics:D,onLoad:o=>(h=>h.trackPageLoaded(W.Event.taskDetailPage))(o)}):null,s.jsxs(ga,{children:[s.jsx(ua,{isAppContentDrawerOpen:e,handleDrawerToggle:o=>{r(o)}}),s.jsx(fa,{analytics:D,currentTenant:i,handleZeniLogoClick:()=>{l.toggle()},initialOpenThreadRequest:p,location:n,loggedInUser:T,navigate:a,taskGroupId:c,taskId:d,taskDetailFetchState:g})]})]})}const ga=ma.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${a=>a.theme.colors.grey4};
|
|
9
|
-
`,B=a=>`/${a}/tasks`;function Aa(){return s.jsxs(R,{children:[s.jsx(u,{path:"/new",element:s.jsx(I,{})}),s.jsx(u,{path:"/new/:taskGroupId",element:s.jsx(I,{})}),s.jsx(u,{path:"/group/:taskGroupId",element:s.jsx(ka,{})}),s.jsx(u,{path:"/:taskId",element:s.jsx(I,{})}),s.jsx(u,{path:"*",element:s.jsx(z,{})})]})}export{Aa as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-Cm6P1Xg9.js";import i from"./NotFoundScreen-DCVl9MiG.js";import{T as r}from"./TransactionDetailScreen-DRrJTiHG.js";import"./sentry-CH1ai1xG.js";import{n as d,o as e}from"./core-AMZJGpoV.js";import"./zeni-epic-state-CaufR46d.js";import"./recharts-LaAu_fL4.js";import"./index-N5K3qQkU.js";import"./mui-5LlzyiP2.js";import"./analytics-CgaqSFat.js";import"./plaid-nK_3ZvzH.js";import"./dnd-C4u70dJH.js";import"./stripe-DMRn4zHo.js";import"./lottie-CEe6fZ1i.js";import"./lexical-hn7WhrHW.js";import"./pdf-DzINawGT.js";import"./utils-DRDD4XTN.js";import"./useAskAiCfoHostNavButtonProps-Du0DR5Lw.js";import"./useFetchSuggestedQuestionsWhenReady-ChhFydzB.js";import"./decodeURIComponentSafe-DNGRwvKs.js";import"./routePaths-meDm6KLz.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new o.Error().stack;n&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[n]="256f287b-7a3d-4d6d-890e-a8cb9db8b86d",o._sentryDebugIdIdentifier="sentry-dbid-256f287b-7a3d-4d6d-890e-a8cb9db8b86d")}catch{}})();function q(){return t.jsxs(d,{children:[t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId",element:t.jsx(r,{})}),t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId/page-not-found",element:t.jsx(i,{})}),t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId/vendor/create",element:t.jsx(r,{})}),t.jsx(e,{path:"/*",element:t.jsx(r,{})})]})}export{q as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./liveblocks-Cm6P1Xg9.js";import{a as f}from"./sentry-CH1ai1xG.js";import{q as u,h,g as b,N as y}from"./core-AMZJGpoV.js";import{Iz as I,eN as w,yU as x}from"./zeni-epic-state-CaufR46d.js";import{z as l,B as j,I as S,J as D}from"./index-N5K3qQkU.js";import{n as g}from"./mui-5LlzyiP2.js";import"./recharts-LaAu_fL4.js";import"./analytics-CgaqSFat.js";import"./plaid-nK_3ZvzH.js";import"./dnd-C4u70dJH.js";import"./stripe-DMRn4zHo.js";import"./lottie-CEe6fZ1i.js";import"./lexical-hn7WhrHW.js";import"./pdf-DzINawGT.js";import"./utils-DRDD4XTN.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]="5f012dfa-f94e-4074-9b39-6dd28b5bca0d",e._sentryDebugIdIdentifier="sentry-dbid-5f012dfa-f94e-4074-9b39-6dd28b5bca0d")}catch{}})();const A=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",p=e.get("profileId")??"",[n,c]=f.useState(!1),a=h(),i=b(m=>I(m)),r=l.getSignedInUser(),d=l.getSignedInUserTenantWithId(s);if(r==null||d==null)return o.jsx(y,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return w(r.userId,r.zeniSessionId,d?.tenantId),f.useEffect(()=>{n||(c(!0),a(x(t,p,s)))},[n,a]),i.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(j,{fetchState:"In-Progress"}))},E=g.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: 100vh;
|
|
5
|
-
flex-direction: row;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
9
|
-
`,_=g(D.LargeRegular)`
|
|
10
|
-
display: flex;
|
|
11
|
-
color: ${S.important};
|
|
12
|
-
`;export{A as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-Cm6P1Xg9.js";import{a as f}from"./sentry-CH1ai1xG.js";import{j as x,h as B,u as $,l as j,g as p}from"./core-AMZJGpoV.js";import{Hz as s,Hy as v,NG as z,eM as C,NH as N}from"./zeni-epic-state-CaufR46d.js";import{q as D,ao as g,h as E,z as L,B as P,bW as T,w as G}from"./index-N5K3qQkU.js";import{n as H}from"./mui-5LlzyiP2.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]="08e8a531-1c2d-49bc-9ba7-a908b1353d49",e._sentryDebugIdIdentifier="sentry-dbid-08e8a531-1c2d-49bc-9ba7-a908b1353d49")}catch{}})();const _=H.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`;function Z(){const e=x(),n=B(),d=D(),l=$();let{accountId:a}=j(),m=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&l.pathname.includes(`${s}/statements`)&&(a=s,m=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[u,y]=f.useState(!1),b=E();f.useEffect(()=>{u||(y(!0),n(v(a??"",!1)))},[u,n]);const o=p(t=>z(t,a??"")),h=()=>{const t=G(l.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},r=L.getSignedInUser(),c=p(t=>C(t)),I={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:c.tenantId??""},w=N(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=c.company?.companyInfo.companyLegalName??c.companyName;if(r==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?i.jsx(P,{fetchState:"In-Progress",style:{backgroundColor:b.colors.grey5}}):i.jsx(_,{windowSize:d,children:i.jsx(T,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:h,authParams:I,downloadEndPoint:m})})}export{Z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{K as n}from"./index-N5K3qQkU.js";import"./mui-5LlzyiP2.js";import"./sentry-CH1ai1xG.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]="353727bb-7ffa-4571-a2eb-c8fe8d9f0f1a",e._sentryDebugIdIdentifier="sentry-dbid-353727bb-7ffa-4571-a2eb-c8fe8d9f0f1a")}catch{}})();function c(e){if(e.companyLocaleInfo!=null&&e.companyLocaleInfo.languageCode.length>0&&e.companyLocaleInfo.companyIncCountryCode.length>0){const o=`${e.companyLocaleInfo.languageCode.toLowerCase()}-${e.companyLocaleInfo.companyIncCountryCode.toUpperCase()}`;return console.warn(`localeID ${o}`),n(o)??"en"}return"en"}export{c as t};
|