@zeniai/web-app-ui 5.0.11-qa → 5.0.12-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-RZvAbm7b.js +1 -0
- package/dist/assets/AddressScreen-fg6k52x4.js +9 -0
- package/dist/assets/AiCfoScreen-jLlIeMQC.js +11 -0
- package/dist/assets/{BillPayApprovalRoutes-D1G1EEnU.js → BillPayApprovalRoutes-BuPgz0VZ.js} +1 -1
- package/dist/assets/{BillPayRoutes-DzsUW3zL.js → BillPayRoutes-CQiDaAlk.js} +10 -10
- package/dist/assets/{BusinessVerificationPageScreen-D3SOVYA6.js → BusinessVerificationPageScreen-Z_-aQI_5.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-BzSBkBL5.js → ChargeCardRoutes-mbNdCQ5I.js} +1 -1
- package/dist/assets/CompanyPassportScreen-Dof8QyCO.js +1 -0
- package/dist/assets/{ConnectionAuthScreen-Co54Kb5x.js → ConnectionAuthScreen-D3iY5CZB.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-InYw6yWH.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-BeHfvWk3.js → CustomerOnboardingRoutes-DNuKHrz2.js} +4 -4
- package/dist/assets/{DashboardRoutes-Byh6Wica.js → DashboardRoutes-B8hxKVWr.js} +1 -1
- package/dist/assets/{DefaultTenantHome-VOG2pJf5.js → DefaultTenantHome-By01i4JV.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-D--tuAm3.js → DomesticWireDetailScreen-BknvyqFc.js} +1 -1
- package/dist/assets/{DrawerScreen-B5IcX1NQ.js → DrawerScreen-CPuMvDg7.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-BgOBvlJ0.js → EntityDetailRoutes-CehcYova.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-g5zvTO2O.js → ExpenseAutomationRoutes--qEGkNAZ.js} +5 -5
- package/dist/assets/FeaturePreviewScreen-BDotwidZ.js +1 -0
- package/dist/assets/MagicLinkRoutes-B7lTPJi5.js +72 -0
- package/dist/assets/MagicLinkSignInScreen-CIKfHfB4.js +12 -0
- package/dist/assets/{MobileAppDrawer-D4Lm7SnG.js → MobileAppDrawer-gMG7WLxC.js} +1 -1
- package/dist/assets/NotFoundScreen-DKiPvQrK.js +1 -0
- package/dist/assets/{NotificationRoutes-DBvEJit6.js → NotificationRoutes-DRSZhtx9.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-DdrBP85e.js → PandLWithForecastRoutes-CzASlWgo.js} +1 -1
- package/dist/assets/{PeopleRoutes-BElhGlGm.js → PeopleRoutes-2EjYhZMl.js} +3 -3
- package/dist/assets/PerformanceRoutes-hWmBUaHL.js +1 -0
- package/dist/assets/{Preview-CKmcpteJ.js → Preview-C3TcKeZU.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-C3OSQzLP.js → QBOConnectionScreen-CHf-hKza.js} +1 -1
- package/dist/assets/{ReferralListScreen-DdUl0T7k.js → ReferralListScreen-DmQVP2Me.js} +2 -2
- package/dist/assets/{ReimbursementApprovalRoutes-tJ8vLs2I.js → ReimbursementApprovalRoutes-D_6AwVb9.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-C-7RGxpi.js → ReimbursementApprovalRuleDetailScreen-CMkDXxn8.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-CDamna2D.js → ReimbursementRoutes-DpKjqTcA.js} +4 -4
- package/dist/assets/{ReportsRoutes-BmQ5XJSE.js → ReportsRoutes-D7nHEFeV.js} +1 -1
- package/dist/assets/RewardsRoutes-BgSfJ48K.js +1 -0
- package/dist/assets/{ScreenRoutes-B-Nb3wBc.js → ScreenRoutes-CPqWF-Ww.js} +2 -2
- package/dist/assets/{SettingsRoutes-BIWZSv3F.js → SettingsRoutes-B5wg5ovm.js} +7 -7
- package/dist/assets/{SetupPagesScreen-DhkETt-o.js → SetupPagesScreen-BanbOOgQ.js} +5 -5
- package/dist/assets/SignInScreen-CZI8HoAd.js +1 -0
- package/dist/assets/SignOutScreen-CpX3JLX_.js +9 -0
- package/dist/assets/{TaskListScreen-PZG8iT0i.js → TaskListScreen-C090Vv7j.js} +2 -2
- package/dist/assets/TaskRoutes-D4NPFxWo.js +9 -0
- package/dist/assets/TransactionDetailRoutes-DQpiFP5C.js +1 -0
- package/dist/assets/{TransactionDetailScreen-C2vSq-tp.js → TransactionDetailScreen-B_ny21sj.js} +1 -1
- package/dist/assets/{TransactionListRoutes-BAY1BHys.js → TransactionListRoutes-BeBY15XF.js} +1 -1
- package/dist/assets/{TreasuryRoutes-DPgpDe0A.js → TreasuryRoutes-Cfd3gerU.js} +5 -5
- package/dist/assets/{VendorsRoutes-CEWWGZ92.js → VendorsRoutes-Bg_qB9es.js} +1 -1
- package/dist/assets/WiseConfirmationScreen-RvJMSTLm.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-cVh2JOw7.js → ZeniAccountRoutes-B-_OsFeA.js} +8 -8
- package/dist/assets/{ZeniAccountStatementScreen-C4d7tQ2P.js → ZeniAccountStatementScreen-CVRPKBLf.js} +1 -1
- package/dist/assets/{accountMappingHelper-BIF_cEGy.js → accountMappingHelper-DUJwjv4V.js} +1 -1
- package/dist/assets/{analytics-YTm4e0V2.js → analytics-DuZD1FBf.js} +1 -1
- package/dist/assets/{analyticsHelper-DpEWp8DR.js → analyticsHelper-CezXrIid.js} +1 -1
- package/dist/assets/{core-cQ_UGuA8.js → core-CHx9v1R3.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-CzQtaU9d.js → decodeURIComponentSafe-IyDHJK_-.js} +1 -1
- package/dist/assets/{dnd-BKb14efZ.js → dnd-Ci4anwe2.js} +1 -1
- package/dist/assets/{empty-DNHXYLLo.js → empty-CXijM8Yn.js} +1 -1
- package/dist/assets/{empty-DZNLkcgK.js → empty-DC_zzPcD.js} +1 -1
- package/dist/assets/{emptyVideoElement-CBnuw-R_.js → emptyVideoElement-C2-_1qo0.js} +1 -1
- package/dist/assets/{epic-B020-YAE.js → epic-ClqXieiv.js} +1 -1
- package/dist/assets/getLocaleForTenant-BobWg4Hu.js +1 -0
- package/dist/assets/{index-Dv9AJolW.js → index-BJaFzjLY.js} +1 -1
- package/dist/assets/{index-jWD7VWky.js → index-BYgpnDFl.js} +1 -1
- package/dist/assets/{index-BU0MpF_k.js → index-DW2V2aM1.js} +1 -1
- package/dist/assets/{index-DAAltHsi.js → index-DXrrGmep.js} +1 -1
- package/dist/assets/{index-COB8HvQe.js → index-DZjotWfe.js} +2 -2
- package/dist/assets/{index-6MiIPIRp.js → index-DvW5_poC.js} +1 -1
- package/dist/assets/{index-D90Egw4V.js → index-_YbuoSTd.js} +12394 -12319
- package/dist/assets/{lexical-Dhe13gAE.js → lexical-DQpmcVQ9.js} +1 -1
- package/dist/assets/{liveblocks-BGrTvYCQ.js → liveblocks-CQd3J_Jz.js} +1 -1
- package/dist/assets/{lottie-DunuFFva.js → lottie-Dnly7PBz.js} +1 -1
- package/dist/assets/{mui-bgnk9Y8D.js → mui-B5MJXy46.js} +1 -1
- package/dist/assets/{pathToGoBack-CrwnkzZo.js → pathToGoBack-eAzzRDV4.js} +1 -1
- package/dist/assets/{pdf-pb-ViLbf.js → pdf-DYwn2DuC.js} +4 -4
- package/dist/assets/{pdf-lib-CWFeXKHq.js → pdf-lib-DV6Dg2jz.js} +1 -1
- package/dist/assets/{plaid-D86kekqV.js → plaid-CcgrQve1.js} +1 -1
- package/dist/assets/{pusher-Dl_gaLc0.js → pusher-SIueaQE_.js} +1 -1
- package/dist/assets/{react-DjMti-au.js → react-BOC875DV.js} +1 -1
- package/dist/assets/{react-B-GK82Mh.js → react-B_6uxiQm.js} +1 -1
- package/dist/assets/{react-BSv395g0.js → react-C7IO6ybw.js} +1 -1
- package/dist/assets/{react-CsXicgmu.js → react-Df7SmVuu.js} +1 -1
- package/dist/assets/{react-BGx71-xQ.js → react-fY2vQLDW.js} +1 -1
- package/dist/assets/{react-amVh9j5p.js → react-vH2UXDZO.js} +1 -1
- package/dist/assets/{recharts-d-EnR1VF.js → recharts-nKX4-UUs.js} +1 -1
- package/dist/assets/{routePaths-D-FUiDMc.js → routePaths-abbP8AF2.js} +1 -1
- package/dist/assets/{sentry-B-sG2CiU.js → sentry-BO53Tmje.js} +1 -1
- package/dist/assets/{url-DXZa-f5b.js → url-CXCHGUpp.js} +1 -1
- package/dist/assets/{url-BOXP7fzy.js → url-kAF8xbJK.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-BndHsfWo.js +1 -0
- package/dist/assets/{useDeviceId-D2nSr5j2.js → useDeviceId-J1-jcXdc.js} +1 -1
- package/dist/assets/useFetchSuggestedQuestionsWhenReady-B8UnhkhU.js +1 -0
- package/dist/assets/{useInitialThreadRequest-lcYH42cE.js → useInitialThreadRequest-DORcYYgp.js} +1 -1
- package/dist/assets/{utils-CU50wlH3.js → utils-DpJstXha.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-o5Urauag.js → withTransactionSidePanel-Bvasj9MO.js} +1 -1
- package/dist/assets/{zeni-epic-state-BObvmHAZ.js → zeni-epic-state-T7UkKQQw.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/AddressRoutes-BkGoEeBW.js +0 -1
- package/dist/assets/AddressScreen-DouQ279W.js +0 -9
- package/dist/assets/AiCfoScreen-iECVixdo.js +0 -11
- package/dist/assets/CompanyPassportScreen-CL7XHD_F.js +0 -1
- package/dist/assets/CustomerOnboardingAuthScreen-BWGLMwze.js +0 -1
- package/dist/assets/FeaturePreviewScreen-BpVrGVPq.js +0 -1
- package/dist/assets/MagicLinkRoutes-DsWR1Cjg.js +0 -72
- package/dist/assets/MagicLinkSignInScreen-DlkgV1Z3.js +0 -12
- package/dist/assets/NotFoundScreen-ClHj7JWB.js +0 -1
- package/dist/assets/PerformanceRoutes-DdVgwzjx.js +0 -1
- package/dist/assets/RewardsRoutes-B7CBXK5j.js +0 -1
- package/dist/assets/SignInScreen-BmYSO_nO.js +0 -1
- package/dist/assets/SignOutScreen-kE-3hEpL.js +0 -9
- package/dist/assets/TaskRoutes-BaQsCuUy.js +0 -9
- package/dist/assets/TransactionDetailRoutes-D--EBwAj.js +0 -1
- package/dist/assets/WiseConfirmationScreen-Cy7oxgWV.js +0 -12
- package/dist/assets/getLocaleForTenant-DVON2lLJ.js +0 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-B7HVYURz.js +0 -1
- package/dist/assets/useFetchSuggestedQuestionsWhenReady-CE9JYbxS.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-_YbuoSTd.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-BO53Tmje.js"><link rel="modulepreload" crossorigin href="/assets/core-CHx9v1R3.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-T7UkKQQw.js"><link rel="modulepreload" crossorigin href="/assets/mui-B5MJXy46.js"><link rel="modulepreload" crossorigin href="/assets/analytics-DuZD1FBf.js"><link rel="modulepreload" crossorigin href="/assets/utils-DpJstXha.js"><link rel="stylesheet" crossorigin href="/assets/index-D-vub4_t.css"></head><body style="margin:0"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><div class="app-shell-loader" id="app-shell-loader"><div class="app-shell-sidebar"><div class="app-shell-sidebar-group"><div class="app-shell-bar zeni-logo" style="width:96px;height:20px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:78px;height:16px"></div><div class="app-shell-bar" style="width:46px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:110px;height:16px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div><div class="app-shell-bar" style="width:64px;height:16px"></div></div></div><div class="app-shell-main"><div class="app-shell-navbar"><div class="app-shell-bar" style="width:106px;height:27px"></div><div class="app-shell-bar" style="width:111px;height:32px"></div></div><div class="app-shell-logo"><svg width="96" height="96" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.768 0.0270284C16.571 -0.055168 16.348 0.0572476 16.2913 0.267574C16.2713 0.342517 16.2489 0.417461 16.2253 0.491196C16.0094 1.15723 15.6459 1.76645 15.148 2.27776C14.3056 3.14203 13.1847 3.61949 11.9918 3.6207H11.9883C10.7978 3.6207 9.67689 3.14565 8.83445 2.2838C8.33653 1.7737 7.97077 1.16448 7.75367 0.499657C7.73007 0.425922 7.70765 0.350979 7.68641 0.276035C7.62978 0.065709 7.40678 -0.0454978 7.20974 0.0366985C6.05463 0.522624 4.98565 1.17899 4.0323 1.97436C3.91195 2.07468 3.87301 2.24512 3.93083 2.39259C3.9792 2.51589 4.03112 2.63797 4.08539 2.75764C4.51133 3.70894 5.10364 4.5853 5.84815 5.34682C7.48937 7.0246 9.66863 7.9493 11.9871 7.9493H11.9954C14.3162 7.94689 16.4978 7.01855 18.1379 5.33595C18.8812 4.57321 19.4711 3.69564 19.8959 2.74434C19.9502 2.62347 20.0009 2.50138 20.0493 2.37809C20.1071 2.23062 20.0682 2.06018 19.9478 1.95985C18.9933 1.16569 17.9231 0.511745 16.768 0.0270284Z"/><path d="M19.9102 21.2422C19.4843 20.2933 18.8931 19.4194 18.151 18.6603C16.5086 16.9801 14.3223 16.053 12.0038 16.0578C8.50304 16.0614 5.48371 18.1961 4.11031 21.2603C4.05722 21.38 4.0053 21.5009 3.95575 21.623C3.89675 21.7704 3.93569 21.9421 4.05722 22.0436C5.01175 22.8366 6.08073 23.4893 7.23466 23.9728C7.4317 24.055 7.65352 23.9438 7.71134 23.7335C7.73139 23.6573 7.75381 23.5836 7.77859 23.5086C8.37207 21.6979 10.0416 20.3888 12.0073 20.3864H12.012C13.2025 20.3864 14.3234 20.8614 15.1659 21.7233C15.6626 22.231 16.026 22.8378 16.2431 23.5002C16.2679 23.5739 16.2903 23.6489 16.3104 23.7238C16.3682 23.9341 16.59 24.0453 16.787 23.9619C17.9422 23.476 19.01 22.8209 19.9633 22.0255C20.0837 21.9252 20.1226 21.7535 20.0648 21.606C20.0164 21.4828 19.9645 21.3631 19.9102 21.2422Z"/><path d="M0.132148 10.1666C0.158105 9.98769 0.305591 9.85352 0.482575 9.85352L23.5093 9.81726C23.6863 9.81726 23.8338 9.95022 23.8609 10.1291C23.9518 10.7347 23.999 11.3548 23.999 11.9858C24.0001 12.6131 23.9541 13.2284 23.8668 13.8292C23.8408 14.0081 23.6934 14.1422 23.5164 14.1422L0.489654 14.1773C0.312671 14.1773 0.165185 14.0443 0.138047 13.8654C0.0471956 13.2598 0 12.6397 0 12.0088C0 11.3826 0.0448358 10.7673 0.132148 10.1666Z"/></svg></div></div></div></body></html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/web-app-ui",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.12-dev",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/**/*"
|
|
6
6
|
],
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"@sentry/react": "^9.42.1",
|
|
29
29
|
"@stripe/stripe-js": "^4.4.0",
|
|
30
30
|
"@zeniai/client-analytics": "2.0.2",
|
|
31
|
-
"@zeniai/client-epic-state": "5.0.
|
|
32
|
-
"@zeniai/web-components": "4.0.
|
|
31
|
+
"@zeniai/client-epic-state": "5.0.8",
|
|
32
|
+
"@zeniai/web-components": "4.0.16",
|
|
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-BGrTvYCQ.js";import{A as d}from"./AddressScreen-DouQ279W.js";import i from"./NotFoundScreen-ClHj7JWB.js";import"./sentry-B-sG2CiU.js";import{n as s,o as r}from"./core-cQ_UGuA8.js";import"./zeni-epic-state-BObvmHAZ.js";import"./recharts-d-EnR1VF.js";import"./index-D90Egw4V.js";import"./mui-bgnk9Y8D.js";import"./analytics-YTm4e0V2.js";import"./plaid-D86kekqV.js";import"./dnd-BKb14efZ.js";import"./stripe-DMRn4zHo.js";import"./lottie-DunuFFva.js";import"./lexical-Dhe13gAE.js";import"./pdf-pb-ViLbf.js";import"./utils-CU50wlH3.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,9 +0,0 @@
|
|
|
1
|
-
import{j as d}from"./liveblocks-BGrTvYCQ.js";import{a as h}from"./sentry-B-sG2CiU.js";import{j as P,h as _,u as j,l as E,g as $,k as B}from"./core-cQ_UGuA8.js";import{J as M,h as D,z as L,S as K,B as R,w as z,d as I,f as m,Q as F,k as b,q as N}from"./index-D90Egw4V.js";import{IZ as C,gI as U,eM as q,I_ as G,b$ as O,I$ as V,k2 as H}from"./zeni-epic-state-BObvmHAZ.js";import{n as J}from"./mui-bgnk9Y8D.js";import Q from"./NotFoundScreen-ClHj7JWB.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]="a5f972a4-0a15-42c1-968e-973b6ac2fe5f",e._sentryDebugIdIdentifier="sentry-dbid-a5f972a4-0a15-42c1-968e-973b6ac2fe5f")}catch{}})();const Z=J.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`,W=B(function(e,t){const{addressId:o,isSubPage:i,addressType:c}=t,l=q(e),a=t.roleMap!=null&&G(t.roleMap),r=i||c==="user_address"||O(l?.userRole??[])||a?void 0:"readonly";if(o==null){const s=V(c,e);return{addressToEdit:s?.addressToCreate,loadingState:s?.status?.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:r,isSubPage:i,dontShowSaveConfirmationPopup:t.dontShowSaveConfirmation}}const n=C(e,o);return{addressToEdit:n.address,loadingState:n.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:r}},function(e,t){const{navigate:o,location:i,addressType:c}=t,l=a=>{if(a==="express-pay")o("../express-pay/add-wire");else{const r=i.state,n=N(r?.pathnameStackToGoBack);let s=n.poppedPathname??k();const u=r?.queryParams;if(u){const f=new URLSearchParams(u).toString();f&&(s=`${s}?${f}`)}o(s,{state:{pathnameStackToGoBack:n.newStack}})}};return{onSubmitHandler:a=>{const r=X(a);e(H({addressType:c,addressToCreate:r})),I?.trackSaveAddressClicked(m.Event.saveAddressClicked,{street:a.street.addressString,city:a.city,state:a.state,country:a.country.selectedOption??"",postalCode:a.postalCode,suite:a.suite,secondaryInfo:a.secondaryInfo}),l(t.bankAccountContext)},onCancel:()=>{l(t.bankAccountContext)}}})(F);function de({isSubPage:e,hideAddressSubTitle:t=!1,hideAddressBackButton:o=!1,dontShowSaveConfirmation:i,accountContext:c,addressTypeParam:l}){const a=P(),r=_(),n=j(),{addressId:s,addressType:u}=E(),f=M(),w=D(),v=L.getSignedInUser(),[g,x]=h.useState(s==null),p=$(S=>s!=null?C(S,s).fetchState:"Not-Started"),A=K();if(v==null)throw Error("Can't access address page without signing in...");const T=S=>S.trackPageLoaded(s!=null?m.Event.editAddress:m.Event.addAddress),y=l??u;return h.useEffect(()=>{g||s==null||(x(!0),r(U(s,!1)))},[g,s,r]),y==null||y.match(/(user_address|company_address|company_registered_address|vendor_address|officer_([1-9]|10)_address)$/g)?!g&&p==="Not-Started"||g&&p==="In-Progress"?d.jsx(R,{fetchState:p,style:{backgroundColor:w.colors.grey5}}):s!=null&&p==="Error"?(a(`${k(1)}/new`,{replace:!0}),d.jsx(d.Fragment,{})):d.jsxs(d.Fragment,{children:[d.jsx(z,{analytics:I,onLoad:T}),d.jsx(Z,{windowSize:f,children:d.jsx(W,{location:n,navigate:a,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:t,addressId:s,addressType:y,dontShowSaveConfirmation:i,bankAccountContext:c,roleMap:A?.loggedInUserRoleMap})})]}):d.jsx(Q,{})}const k=(e=2)=>{let t="../";for(let o=0;o<e;o++)t=`${t}../`;return t},X=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng});export{de as A,X as t};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{j as g}from"./liveblocks-BGrTvYCQ.js";import{a as i}from"./sentry-B-sG2CiU.js";import{h as te,j as se,u as ae,g as R,l as ne,k as oe}from"./core-cQ_UGuA8.js";import{K as ie,cB as re,z as le,J as ce,cC as ue,cD as de,cE as $,w as me,d as _,R as U,cF as pe,cG as fe,f as he,a1 as Se,cH as ge,T as Ce,v as we,q as j,cI as ke,cJ as Ie}from"./index-D90Egw4V.js";import{fE as be,f3 as q,eM as Ee,hm as Te,Pv as Pe,eL as ye,hw as _e,hs as ve,fu as xe,fo as Ae,fh as Qe,fl as G,fp as Oe,fq as Fe,fr as Be,fs as De,ft as Le}from"./zeni-epic-state-BObvmHAZ.js";import{D as Me,n as v,P as Re,S as Ue}from"./mui-bgnk9Y8D.js";import{p as je}from"./pathToGoBack-CrwnkzZo.js";import"./recharts-d-EnR1VF.js";import"./analytics-YTm4e0V2.js";import"./plaid-D86kekqV.js";import"./dnd-BKb14efZ.js";import"./stripe-DMRn4zHo.js";import"./lottie-DunuFFva.js";import"./lexical-Dhe13gAE.js";import"./pdf-pb-ViLbf.js";import"./utils-CU50wlH3.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new a.Error().stack;r&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[r]="2b443012-8e21-4a8e-9416-01984c777d51",a._sentryDebugIdIdentifier="sentry-dbid-2b443012-8e21-4a8e-9416-01984c777d51")}catch{}})();const N="chat-response-generated",Ge=oe(function(a,r){const s=q(a),m=r.isSubmitting;return{showSampleQuestions:r.sessionFromUrl==="explore"&&s.uiState.currentChatSessionId==null,aiCfoView:s,isSubmitting:m,isNewChatSession:r.sessionFromUrl==="new_chat"||r.sessionFromUrl==="explore",isFullView:!0,tableDownloadEndPoint:`${Ce}/tableDownload`,emailLinkQuestion:r.emailLinkQuestion,autoSubmitEmailLinkQuestion:r.autoSubmitEmailLinkQuestion,onEmailLinkQuestionProcessed:r.onEmailLinkQuestionProcessed,isFileUploadEnabled:r.isFileUploadEnabled}},function(a,r){const{location:s,currentTenant:m,userId:d,navigate:p,currentChatSessionId:f,allSessionsWithOrderedQuestionAnswers:C,setIsAiCfoOpen:l}=r;return{onEventReceived:(e,n)=>{if(e===N&&typeof n.text=="string"&&typeof n.metadata=="object"){const o=n,c=Fe(o.type),t=o.metadata.chat_session_id??null,{currentChatSession:w,currentQuestionAnswer:h,currentQuestionAnswerSummary:S}=$(C,t);c!=="answer"?_.trackAICFOChatResponseGenerated(c,h?.question.questionText??"",o.text,t,Ie(S,w),o.metadata.message_id??null):_.trackAICFOChatAnswerGenerated(o.text,h?.question.questionText??"",(o.follow_up_questions?.length??0)>0,!!o.assumptions,!!o.insights,o.visualization!=null,Be(o.visualization?.type??"")??null,t,o.summarized_title,o.metadata.message_id??null),a(De({chatSessionId:o.metadata.chat_session_id,responseType:c,fetchState:{fetchState:"Completed",error:void 0}})),a(Le({chatSessionId:o.metadata.chat_session_id,answerPayload:o,userId:d}))}},onSubmit:(e,n,o,c)=>{e&&ke(a,e,n,f,C,d,c,o)},updateCurrentInput:e=>{a(G(e))},onStopSubmit:()=>{},onUpdateScrollYOffset:e=>{a(Oe(e))},onSelectSampleQuestion:()=>{},onBackClick:()=>{p(-1)},onCloseClick:()=>{const e=j(s.state?.pathnameStackToGoBack),n=e.poppedPathname??je(1);p(n,{state:{...s.state,pathnameStackToGoBack:e.newStack}}),a(G(""))},togglePageView:()=>{const e=j(s.state?.pathnameStackToGoBack),n=e.poppedPathname??`/${m.tenantEmailDomain}/dashboard`;p(n,{state:{...s.state,pathnameStackToGoBack:e.newStack,message:"open_ai_cfo_drawer"}}),l(!0)},onCopy:()=>{},onThumbsUp:()=>{},onThumbsDown:()=>{},onTogglePageView:()=>{p(-1)},onNewChatClick:()=>{f!=null&&a(Qe());const e=we(s.state?.pathnameStackToGoBack,s.pathname);p(`/${m.tenantEmailDomain}/ai-cfo/new_chat`,{state:{pathnameStackToGoBack:e.slice(0,-1),referrer:"Sidebar"}})},onToggleCotCollapsed:(e,n)=>{a(Ae({questionAnswerId:e,isCollapsed:n}))},onMenuClick:r.onMenuClick}})(Se(ge)),rt=({isFileUploadEnabled:a})=>{const{setIsAiCfoOpen:r}=ie(),s=te(),m=se(),d=ae(),[p,f]=i.useState(!1);i.useEffect(()=>{s(be())},[s]);const{customPageTitle:C}=re(),l=R(u=>q(u)),e=le.getSignedInUser(),{session_id:n}=ne(),o=ce(),c=R(u=>Ee(u)),t=l.uiState.currentChatSessionId,w=ue({currentTenant:c,currentChatSessionId:t,aiCfoView:l}),h=d.state,S=h?.aiCfoInitialQuestion,x=!!h?.aiCfoShouldSubmit,[V,b]=i.useState(null),[H,E]=i.useState(!1),A=i.useRef(!1);i.useEffect(()=>{A.current||S==null||S===""||(b(S),E(x),A.current=!0)},[S,x]);const W=i.useCallback(()=>{b(null),E(!1)},[]),Q=i.useMemo(()=>new URLSearchParams(d.search),[d.search]),O=Q.get("ref")??h?.aiCfoRef,T=Q.get("emailRefId")??h?.aiCfoEmailRefId,F=i.useRef(!1);i.useEffect(()=>{F.current||O!=="month-end-email"||T==null||t!=null||e==null||(s(Te("controller",e.userId,T,"MONTH_END_EMAIL")),F.current=!0)},[O,T,t,s,e]);const k=l.uiState.lastContextMessage;i.useEffect(()=>{k!=null&&k!==""&&t!=null&&(b(k),E(!0),s(Pe()))},[k,t,s]);const z=c.masterTOSInfo,I=z?.isMasterTOSAccepted??!1,{visitedSessions:B}=de(t),P=l.fetchState,y=l.uiState.chatSessionsNextPageToken.hasMore||!l.uiState.chatSessionsFirstPageFetched,D=t!=null?l.fetchChatSessionHistoryByChatSessionId?.[t]?.fetchState??"Not-Started":"Not-Started",L=t==null||(l.uiState.chatHistoryNextPageToken[t]?.hasMore??!0),M=l.allSessionsWithOrderedQuestionAnswers,{currentSessionQuestionAnswers:J}=$(M,t),K=J.length===0;i.useEffect(()=>{I||m("../dashboard",{state:{...d.state,message:"open_ai_cfo_drawer"}})},[I]),i.useEffect(()=>{t!=null&&n!==t&&m(`../ai-cfo/${t}`,{state:{...d.state}})},[t,n]),i.useEffect(()=>{n!=null&&t==null&&n!=="new_chat"&&n!=="explore"&&s(ye({sessionId:n,agentId:"controller"}))},[]);const X=i.useMemo(()=>({events:B.map(u=>`private-chat-${u}.${N}`),eventCallback:(u,Z,ee)=>ee.onEventReceived(u,Z)}),[B]);if(i.useEffect(()=>{P!=="In-Progress"&&y&&s(_e())},[P,y,s]),i.useEffect(()=>{t!=null&&D!=="In-Progress"&&L&&e!=null&&P==="Completed"&&!y&&s(ve(t,e.userId))},[D,L,t,e,s]),e==null||n==null)throw Error("Can't access AI Controller page without signing in...");const Y=t!=null&&l.responseStateByChatSessionId?.[t]?.answer?.fetchState==="In-Progress";return g.jsxs(qe,{children:[g.jsx(me,{analytics:_,onLoad:u=>u.trackPageLoaded(he.Event.aiCFOPage)}),U(o)&&w.drawerElement,g.jsx(Ge,{...X,currentChatSessionId:t,allSessionsWithOrderedQuestionAnswers:M,openOnboardingPage:()=>f(!0),userId:e.userId,setIsAiCfoOpen:r,navigate:m,sessionFromUrl:n,location:d,isSubmitting:Y,isEmptyChatWithSession:K,customPageTitle:C,currentTenant:c,emailLinkQuestion:V??void 0,autoSubmitEmailLinkQuestion:H,onEmailLinkQuestionProcessed:W,onMenuClick:U(o)?w.open:void 0,isFileUploadEnabled:a}),g.jsx(Me,{anchor:"right",open:p,transitionDuration:250,PaperProps:{component:Ne,style:{width:`${pe}vw`}},slotProps:{backdrop:{style:{backgroundColor:"transparent",cursor:"pointer"}}},onClose:()=>f(!1),children:g.jsx($e,{onClick:u=>u.stopPropagation(),children:g.jsx(fe,{isTOSAccepted:I,acceptMasterTOSState:l.masterTOSAcceptanceState,customPageTitle:C,onCloseClick:()=>f(!1),onCompleteClick:()=>{I||c.userRoleId==null||s(xe(c.userRoleId)),f(!1)}})})})]})},$e=v(Ue)`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`,qe=v.div`
|
|
6
|
-
height: 100vh;
|
|
7
|
-
width: 100%;
|
|
8
|
-
`,Ne=v(Re)`
|
|
9
|
-
box-shadow: ${({theme:a})=>a.colors.elevation2};
|
|
10
|
-
color: ${({theme:a})=>a.colors.grey4};
|
|
11
|
-
`;export{rt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as m}from"./liveblocks-BGrTvYCQ.js";import{a as g}from"./sentry-B-sG2CiU.js";import{j as w,h as x,u as k,l as T,g as O,k as E}from"./core-cQ_UGuA8.js";import{z as C,aZ as F,w as P,d as L,f as V,aa as N,a_ as j,ao as A,ap as B,v as U}from"./index-D90Egw4V.js";import{eM as h,fC as M,rt as _,fx as R,b$ as z,Lt as G,bm as Y,pB as Z,pp as $,jW as q,lq as S,Lu as H,bB as W,cr as D,ly as J,lB as K}from"./zeni-epic-state-BObvmHAZ.js";import"./mui-bgnk9Y8D.js";import{c as Q}from"./routePaths-D-FUiDMc.js";import{M as X}from"./MobileAppDrawer-D4Lm7SnG.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]="efadca26-9d65-41e0-9980-3918717126f3",a._sentryDebugIdIdentifier="sentry-dbid-efadca26-9d65-41e0-9980-3918717126f3")}catch{}})();const ee=E(function(a){const n=R(a),i=C.getSignedInUser(),l=h(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:b}=r,v={companyInfo:{...t,website:u!=""&&u!=null?D(u):void 0,meetingLink:y!=""&&y!=null?D(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:b.selectedOptions.map(I=>parseInt(I)),fileId:r.fileIds[0]}};a(S({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{a(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{a(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:void 0}]}))},onNewCompanyOfficerRemoved:e=>{a(H(e))},onCompanyOfficerUpdated:e=>{a(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:e.userId}]}))},updateFilesEntity:e=>{a(q({files:e}))},onDeleteFile:e=>{a($(e))},onEditFileName:(e,t)=>{a(Z(e,t.split(".")[0]))}}})(j);function de(){const a=w(),n=x(),i=k(),{tenantEmailDomain:l}=T(),[c,p]=g.useState(!1),[f,e]=g.useState(!1),t=O(s=>s.companyViewState.passportView.fetchState),o=O(s=>s.companyConfigState.fetchState),r=O(s=>h(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,N(i)?"Settings":"Company Passport")}),N(i)?m.jsx(X,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:a,location:i,isLoading:y,currentTenant:r,isSettings:N(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as d}from"./liveblocks-BGrTvYCQ.js";import{z as n}from"./index-D90Egw4V.js";import{g as p}from"./QBOConnectionScreen-C3OSQzLP.js";import"./sentry-B-sG2CiU.js";import{u as a,N as i}from"./core-cQ_UGuA8.js";import"./zeni-epic-state-BObvmHAZ.js";import"./recharts-d-EnR1VF.js";import"./mui-bgnk9Y8D.js";import"./analytics-YTm4e0V2.js";import"./plaid-D86kekqV.js";import"./dnd-BKb14efZ.js";import"./stripe-DMRn4zHo.js";import"./lottie-DunuFFva.js";import"./lexical-Dhe13gAE.js";import"./pdf-pb-ViLbf.js";import"./utils-CU50wlH3.js";import"./empty-DZNLkcgK.js";import"./pdf-lib-CWFeXKHq.js";import"./index-6MiIPIRp.js";import"./url-BOXP7fzy.js";import"./index-DAAltHsi.js";import"./decodeURIComponentSafe-CzQtaU9d.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 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-BGrTvYCQ.js";import{a as r}from"./sentry-B-sG2CiU.js";import{Y as d,Z as f,_ as l,q as p}from"./index-D90Egw4V.js";import"./mui-bgnk9Y8D.js";import m from"./NotFoundScreen-ClHj7JWB.js";import{j as u,u as b}from"./core-cQ_UGuA8.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]="17ccba14-7d96-4ca4-91c0-974c08b1f79f",e._sentryDebugIdIdentifier="sentry-dbid-17ccba14-7d96-4ca4-91c0-974c08b1f79f")}catch{}})();const j=()=>{const e=u(),a=b(),t=r.useCallback(()=>{window.open("https://www.zeni.ai/demo/request","_blank")},[]),c=r.useCallback(()=>{(()=>{const n=p(a.state?.pathnameStackToGoBack),i=n.poppedPathname??k();e(i,{state:{pathnameStackToGoBack:n.newStack}})})()},[]),o=d(a.pathname);return o!=null?s.jsx(f,{menuItem:l(o),onDemoClick:t,onGoBack:c}):s.jsx(m,{})},k=(e=2)=>{let a="../";for(let t=0;t<e;t++)a=`${a}../`;return a};export{j as F};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-BGrTvYCQ.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-cQ_UGuA8.js";import{Iu as S,Iv as k,Iw as N,yQ as $,yC as L,Ix as C,Iy as ne,Iz as oe,yG as ie,eN as I,yN as se,yK as le}from"./zeni-epic-state-BObvmHAZ.js";import{J as g,o as r,p as re,d as v,k as E,Q as de,q as ce,x as me,v as F,i as pe,s as ue,y as he,G as xe,h as ge,B as fe,w as we,m as be,A as ye,X as Se,C as ke,E as ve}from"./index-D90Egw4V.js";import{n as c}from"./mui-bgnk9Y8D.js";import f from"./NotFoundScreen-ClHj7JWB.js";import{a as P}from"./sentry-B-sG2CiU.js";import"./recharts-d-EnR1VF.js";import"./analytics-YTm4e0V2.js";import"./plaid-D86kekqV.js";import"./dnd-BKb14efZ.js";import"./stripe-DMRn4zHo.js";import"./lottie-DunuFFva.js";import"./lexical-Dhe13gAE.js";import"./pdf-pb-ViLbf.js";import"./utils-CU50wlH3.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]="4ca71592-0159-42f0-8334-cf895d8a5ec3",e._sentryDebugIdIdentifier="sentry-dbid-4ca71592-0159-42f0-8334-cf895d8a5ec3")}catch{}})();const Ie=c.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100%;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
10
|
-
`,je=x(function(e){const 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}))}}})(re);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 ${r.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()}}})(de);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 ${r.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:d}=s;e(N({data:d}))},onAddressClick:()=>{const s=o.pathname.replace("us-domestic","address"),d=F(o.state?.pathnameStackToGoBack,o.pathname);n(s,{state:{pathnameStackToGoBack:d}})}}})(me);function Ne(){const e=j(),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 ${r.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:d}=s;e(oe({data:d}))},onAddressClick:()=>{const s=o.pathname.replace("international","address"),d=F(o.state?.pathnameStackToGoBack,o.pathname);n(s,{state:{pathnameStackToGoBack:d}})}}})(he);function Fe(){const e=j(),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: ${r.sp4};
|
|
39
|
-
height: ${r.sp4};
|
|
40
|
-
margin-bottom: ${r.sp3};
|
|
41
|
-
margin-top: ${r.sp3};
|
|
42
|
-
margin-left: ${r.sp8};
|
|
43
|
-
cursor: pointer;
|
|
44
|
-
position: absolute;
|
|
45
|
-
color: ${e=>e.theme.colors.brandColorJade};
|
|
46
|
-
`,He=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
|
-
`,Ke=c.div`
|
|
54
|
-
display: flex;
|
|
55
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
56
|
-
flex-direction: column;
|
|
57
|
-
width: ${e=>`${Te.containerWidth.value(e.windowSize)}%`};
|
|
58
|
-
${e=>e.windowSize!=="small"?"overflow: auto;":""}
|
|
59
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
60
|
-
padding-top: ${e=>e.windowSize!=="small"?r.sp2:"0px"};
|
|
61
|
-
`,Me=c.div`
|
|
62
|
-
display: flex;
|
|
63
|
-
flex-direction: column;
|
|
64
|
-
align-items: center;
|
|
65
|
-
justify-content: center;
|
|
66
|
-
padding: ${e=>e.windowSize==="small"?r.sp3:`62px ${r.sp6} ${r.sp9} ${r.sp8}`};
|
|
67
|
-
height: ${e=>e.windowSize==="small"?"490px":"auto"};
|
|
68
|
-
overflow: ${e=>e.windowSize==="small"?"unset":"hidden"};
|
|
69
|
-
width: ${e=>e.windowSize=="small"?"auto":"42%"};
|
|
70
|
-
background-color: ${e=>e.windowSize==="small"?e.theme.colors.grey4:e.theme.colors.background};
|
|
71
|
-
margin-top: ${e=>e.windowSize==="small"?e.isAddressPage?"0px":"186px":"unset"};
|
|
72
|
-
`,Ve=x(function(e,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(),d=s.get("token"),T=n.pathname.includes("address"),w=g(),G=xe(),B=ge(),H=()=>{G.toggle()},K=A(u=>S(u)),M=A(u=>k(u)),{authParams:V,fetchState:m,billAttachment:W,billFetchState:D,companyName:_,currencySymbol:U,amount:J}=K,{tenantId:q,userId:O,sessionId:Q}=V,{fetchState:X,internationalBankAccountCreateStatus:R}=M;return P.useEffect(()=>{I(),m==="Not-Started"&&i!=null&&o!=null&&d!=null&&a(se(i,o,d))},[]),P.useEffect(()=>{m==="Completed"&&(I(O,Q,q),l!=null&&a(le(l)))},[m]),m==="Error"?t.jsx(f,{}):X==="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 ${r.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,J))(u)}),t.jsxs(He,{windowSize:w,children:[w!=="small"?t.jsx(Ge,{onClick:H}):null,t.jsx(Me,{windowSize:w,isAddressPage:T,children:D==="In-Progress"?t.jsx(be,{size:"ExtraLarge",start:!0}):t.jsx(Ve,{file:W,type:"bill"})}),t.jsx(Ke,{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 f}from"./liveblocks-BGrTvYCQ.js";import{a as u}from"./sentry-B-sG2CiU.js";import{h as U,u as _,j as w,q as M,g as l,N as T}from"./core-cQ_UGuA8.js";import{z as r,h as P,D as V,e as A,d as N,f as q,r as R,m as W,j as $}from"./index-D90Egw4V.js";import{eM as B,Ie as G,Ip as H,If as J,eN as K,fi as Q,Il as X,fF as Y,cR as Z,Iq as ee,Ir as te}from"./zeni-epic-state-BObvmHAZ.js";import{n as ne}from"./mui-bgnk9Y8D.js";import{u as se}from"./useDeviceId-D2nSr5j2.js";import{f as ae}from"./analyticsHelper-DpEWp8DR.js";import{t as ie}from"./getLocaleForTenant-DVON2lLJ.js";import"./recharts-d-EnR1VF.js";import"./analytics-YTm4e0V2.js";import"./plaid-D86kekqV.js";import"./dnd-BKb14efZ.js";import"./stripe-DMRn4zHo.js";import"./lottie-DunuFFva.js";import"./lexical-Dhe13gAE.js";import"./pdf-pb-ViLbf.js";import"./utils-CU50wlH3.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="bab5b853-dad9-4f77-877d-34d2482dfd4f",t._sentryDebugIdIdentifier="sentry-dbid-bab5b853-dad9-4f77-877d-34d2482dfd4f")}catch{}})();const D=(t,a)=>t!=null&&t.length>0&&a==="magic_links";function De(){const t=U(),a=_(),m=w(),[k]=M(),n=k.get("token"),p=k.get("stytch_token_type"),g=r.getMagicLinkCodeVerifier(),i=se(),{otpChallenge:d,twoFAPhoneNumber:x,magicLinkEmail:c,verifyDeviceFetchState:z,resendVerifyDeviceOTPFetchState:C}=l(e=>e.tenantState),I=l(e=>e.tenantState.fetchState),y=l(e=>e.tenantState.activeTenantFetchState.fetchState),S=l(e=>e.tenantState.signInState),h=l(e=>e.tenantState.magicLinkSignInFetchState.fetchState),s=l(e=>e.tenantState.loggedInUser),o=l(e=>B(e)),b=l(e=>G(e)),E=r.getSignedInUser(),v=P().mode;u.useEffect(()=>{s?.zeniSessionId==null&&n!=null&&D(n,p)&&i!=null&&g!=null&&(r.saveMagicLinkTriggered(n),t(H(n,i,g)))},[n,p,t,i,g,s?.zeniSessionId]),u.useEffect(()=>{S!=="In-Progress"||I!=="Completed"&&y!=="Completed"||s?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(s,s.zeniSessionId),r.saveSignedInUserTenants(J(b.tenantsInOrder),s.zeniSessionId),K(s.userId,s.zeniSessionId,o.tenantId),t(Q(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(X("Completed")),V.updateAppLocaleID(ie(o)),ae(s,o,v,void 0,b.tenantsInOrder),Y().then(()=>{const e=$();e!=null&&A(e)}),setTimeout(()=>{N.trackLogin(q.Event.loginSuccess,"email",Z(o.productSettings))},2e3))},[S,I,y,s,o,b,v,a.state,t]);const j=u.useCallback(()=>{m("/signin/auth")},[m]),F=u.useCallback(()=>{i!=null&&d!=null&&c!=null&&t(ee(i,c,d))},[i,d,t,c]),O=u.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 f.jsx(R,{phoneNumber:x,verifyOtpFetchState:z.fetchState,resendVerifyDeviceOTPFetchState:C,onResendOtp:F,onVerifyOtp:O,onCancelVerifyDevice:j});if(S==="In-Progress"&&I==="Completed"&&s?.zeniSessionId!=null&&o!=null||E!=null){const e=a.state?.origin??"/";return f.jsx(T,{to:e,state:{...a.state,origin:""}})}if(!D(n,p)||g==null||h==="Error"){const e=a.state?.origin??"/",L=n!=null&&r.getLastUsedMagicLinkToken()===n;return f.jsx(T,{to:e,state:{...a.state,origin:"",magicLinkAlreadyUsed:L,magicLinkExpired:!L&&(r.isMagicLinkTriggered(n??"")||h==="Error"&&s?.zeniSessionId==null)}})}return f.jsx(oe,{"data-testid":"smooth-loader",children:f.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 e}from"./liveblocks-BGrTvYCQ.js";import{j as r,k as i}from"./core-cQ_UGuA8.js";import{W as n}from"./index-D90Egw4V.js";import"./mui-bgnk9Y8D.js";import"./sentry-B-sG2CiU.js";import"./zeni-epic-state-BObvmHAZ.js";import"./recharts-d-EnR1VF.js";import"./analytics-YTm4e0V2.js";import"./plaid-D86kekqV.js";import"./dnd-BKb14efZ.js";import"./stripe-DMRn4zHo.js";import"./lottie-DunuFFva.js";import"./lexical-Dhe13gAE.js";import"./pdf-pb-ViLbf.js";import"./utils-CU50wlH3.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 s}from"./liveblocks-BGrTvYCQ.js";import _ from"./NotFoundScreen-ClHj7JWB.js";import{a as r}from"./sentry-B-sG2CiU.js";import{j as M,u as v,g,l as U,h as P,N as z,k as V,n as B,o as h}from"./core-cQ_UGuA8.js";import{eM as F,OH as b,bn as G,bm as H,h2 as N,gy as K}from"./zeni-epic-state-BObvmHAZ.js";import{G as $,z as I,K as q,cp as J}from"./index-D90Egw4V.js";import"./mui-bgnk9Y8D.js";import{u as L}from"./useAskAiCfoHostNavButtonProps-B7HVYURz.js";import{c as Q}from"./useFetchSuggestedQuestionsWhenReady-CE9JYbxS.js";import{M as W}from"./MobileAppDrawer-D4Lm7SnG.js";import"./recharts-d-EnR1VF.js";import"./analytics-YTm4e0V2.js";import"./plaid-D86kekqV.js";import"./dnd-BKb14efZ.js";import"./stripe-DMRn4zHo.js";import"./lottie-DunuFFva.js";import"./lexical-Dhe13gAE.js";import"./pdf-pb-ViLbf.js";import"./utils-CU50wlH3.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]="9eedb3b1-8348-4931-8c80-ae754a3a8494",e._sentryDebugIdIdentifier="sentry-dbid-9eedb3b1-8348-4931-8c80-ae754a3a8494")}catch{}})();const X=V(function(e){const t=I.getSignedInUser(),c=e.tenantState.currentTenantId,o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:c??""},{aggregatedReportViewState:n}=b(e);return{authParams:o,isDisabled:!1,loggedInUser:t,aggregatedReport:n}},function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}})(J),Y=()=>{const e=M(),t=v(),c=$(),o=g(a=>F(a)),{aggregatedReportViewState:n}=g(a=>b(a)),{tenantEmailDomain:f}=U(),p=P(),d=I.getSignedInUser();if(d==null)throw new Error("Can't access this page without signing in...");const m=r.useRef(!1),[C,S]=r.useState(!1),k=G(o?.userRole??[]),w=o?.userRole?.includes("bookkeeping_admin")??!1,y=H(d),A=k||w||y,l=r.useCallback((a,i,O)=>{p(N({fromMonth:a,toMonth:i,cacheOverride:O}))},[]);r.useEffect(()=>{n?.fetchState==="Completed"&&m.current&&(p(K({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),m.current=!1)},[n?.fetchState]);const D=r.useCallback((a,i)=>{n!=null&&n?.fetchState==="In-Progress"||l(a,i,!0),m.current=!0},[n?.fetchState,l]),x=r.useCallback((a,i)=>{l(a,i,!1)},[l]),u=a=>{S(a)},{isAiCfoOpen:j,setIsAiCfoOpen:R}=q(),{isAiCfoAccessEnabled:T,onAskAiCfoClick:E}=L({isAiCfoOpen:j,setIsAiCfoOpen:R,mobileExploreReferrer:"Performance"});return Q({isDataReady:n?.fetchState==="Completed"}),A?s.jsxs(s.Fragment,{children:[s.jsx(W,{isAppContentDrawerOpen:C,handleDrawerToggle:u}),s.jsx(X,{navigate:e,location:t,themeState:c,currentTenant:o,signedInUser:d,tenantEmailDomain:f,onReload:D,onTimeRangeSelect:x,handleDrawerToggle:u,isAiCfoAccessEnabled:T,onAskAiCfoClick:E})]}):s.jsx(z,{to:`/${f}/dashboard`,replace:!0})};function Ie(){return s.jsxs(B,{children:[s.jsx(h,{path:"*",element:s.jsx(Y,{})}),s.jsx(h,{path:"*",element:s.jsx(_,{})})]})}export{Ie as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-BGrTvYCQ.js";import{i as w,z as x,aI as b,w as E,d as p,f as F,cy as P,s as L}from"./index-D90Egw4V.js";import"./mui-bgnk9Y8D.js";import l from"./NotFoundScreen-ClHj7JWB.js";import{a as f}from"./sentry-B-sG2CiU.js";import{h as T,g as y,j as V,u as A,k as R,n as U,o as d}from"./core-cQ_UGuA8.js";import{eM as z,Pe as C,M4 as M,Pf as k,to as Y,eZ as G,Pg as O,tm as Z}from"./zeni-epic-state-BObvmHAZ.js";import{R as j}from"./ReferralListScreen-DdUl0T7k.js";import"./recharts-d-EnR1VF.js";import"./analytics-YTm4e0V2.js";import"./plaid-D86kekqV.js";import"./dnd-BKb14efZ.js";import"./stripe-DMRn4zHo.js";import"./lottie-DunuFFva.js";import"./lexical-Dhe13gAE.js";import"./pdf-pb-ViLbf.js";import"./utils-CU50wlH3.js";import"./useAskAiCfoHostNavButtonProps-B7HVYURz.js";import"./useFetchSuggestedQuestionsWhenReady-CE9JYbxS.js";import"./MobileAppDrawer-D4Lm7SnG.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]="af38d16f-47d9-43f5-bb0c-eb286cf0e5ec",e._sentryDebugIdIdentifier="sentry-dbid-af38d16f-47d9-43f5-bb0c-eb286cf0e5ec")}catch{}})();const q=R(function(e,t){const n=C(e);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}},function(e,t){const{navigate:n}=t,i=x.getSignedInUser();return{onDismissClick:()=>{e(k()),n("..")},onSendClick:()=>{if(i!=null){const s=[],r=[];t.inviteFormCompayData.forEach(c=>{s.push(c.companyName),r.push(c.emailIds[0])}),p.trackInviteEmailClicked("send",s,r,s.length)}e(Z())},onUpdateInviteFormLocalData:s=>{e(O({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{i!=null&&p.trackInviteEmailClicked("cancel")}}})(P),B=()=>{const e=T(),[t,n]=f.useState(!1),[i,s]=f.useState(!1),r=y(o=>z(o)),c=V(),_=A(),{useDynamicConfig:g}=w(),u=x.getSignedInUser();if(u==null)throw Error("Can't access invite referral screen without signing in...");const m=y(o=>C(o)),v=u?.firstName!=null?u.firstName:"User",{configValue:h}=g(b.zeniCardsConfig),{configValue:D}=g(b.zeniAccountsConfig),I=M(D);f.useEffect(()=>{e(k()),r?.rewardsLastViewedTime==null&&i===!1&&(e(Y()),s(!0))},[]),f.useEffect(()=>{t||m.fetchState!=="Not-Started"||(n(!0),e(G(!0)))},[m.fetchState,e]);const N=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[m.fetchState==="Completed"?a.jsx(E,{analytics:p,onLoad:o=>(S=>S.trackPageLoaded(F.Event.inviteEmailViewed))(o)}):null,a.jsx(q,{navigate:c,location:_,currentTenant:r,companyName:N,userName:v,inviteFormCompayData:m.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:I.maxAnnualPercentageYield})]})};function ue(){const{useFeatureGate:e}=w(),{isFeatureEnabled:t}=e(L.isReferralFeatureEnabled);return a.jsxs(U,{children:[a.jsx(d,{path:"/",element:t?a.jsx(j,{}):a.jsx(l,{})}),a.jsx(d,{path:"how-it-works",element:t?a.jsx(j,{isReferralDrawerOpen:!0}):a.jsx(l,{})}),a.jsx(d,{path:"refer/*",element:t?a.jsx(B,{}):a.jsx(l,{})}),a.jsx(d,{path:"*",element:a.jsx(l,{})})]})}export{ue as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as f}from"./liveblocks-BGrTvYCQ.js";import{a as u,b as T,q as A}from"./sentry-B-sG2CiU.js";import{h as D,j as z,g as c,u as M,N as j,k as O}from"./core-cQ_UGuA8.js";import{u as F,z as s,h as N,d as E,D as P,e as _,f as B,g as V,j as $,N as q,k as v}from"./index-D90Egw4V.js";import{eM as J,Ie as Q,If as R,eN as W,fi as H,Il as G,fF as K,cR as X,Im as C,In as Y,Io as Z,bQ as y}from"./zeni-epic-state-BObvmHAZ.js";import"./mui-bgnk9Y8D.js";import{u as ee}from"./useDeviceId-D2nSr5j2.js";import{f as te}from"./analyticsHelper-DpEWp8DR.js";import{t as ne}from"./getLocaleForTenant-DVON2lLJ.js";import"./recharts-d-EnR1VF.js";import"./analytics-YTm4e0V2.js";import"./plaid-D86kekqV.js";import"./dnd-BKb14efZ.js";import"./stripe-DMRn4zHo.js";import"./lottie-DunuFFva.js";import"./lexical-Dhe13gAE.js";import"./pdf-pb-ViLbf.js";import"./utils-CU50wlH3.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="64622ed7-7afc-432a-994c-ec9a8fd6aa3f",t._sentryDebugIdIdentifier="sentry-dbid-64622ed7-7afc-432a-994c-ec9a8fd6aa3f")}catch{}})();const ae=O(function(t,a){const d=t.tenantState.fetchState,g=t.tenantState.sendEmailMagicLinkFetchState,{magicLinkExpired:n,magicLinkAlreadyUsed:i,magicLinkExpiredEmail:l}=a;return{googleClientId:v.googleClientId,microsoftClientId:v.microsoftClientId,signInError:t.tenantState.error?.error,fetchState:d,sendMagicLinkStatus:g,magicLinkExpired:n,magicLinkAlreadyUsed:i,magicLinkExpiredEmail:l}},function(t,a){const{location:d,navigate:g}=a;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,i)=>{A({message:`OAuth error from provider ${i} with error ${n}`,level:"error",tags:{authProvider:i,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,i)=>{const l=i==="google"?window.location.origin:window.location.origin+window.location.pathname;t(Z({authCode:n,oauthProvider:i,appType:"web",redirectUri:y(l),sourceUri:y(d.state!=null?d.state.origin:"")}))},getSignedInUser:()=>s.getSignedInUser(),onSignedInCallback:()=>{const n=d.state?.origin;n&&n!=="/"?g(n,{replace:!0}):window.open(window.location.origin,"_self")},sendMagicLink:n=>{const{deviceId:i}=a;i!=null&&(s.saveMagicLinkEmail(n),t(Y(n,i)))},clearSignInError:()=>{t(C())}}})(q),ie=T.memo(ae);function ve({setTenantEmailDomain:t}){const a=D(),d=z(),{clearAllLoading:g}=F(),n=s.getSignedInUser();u.useLayoutEffect(()=>{g()},[g]);const i=ee(),l=c(e=>e.tenantState.magicLinkCodeVerifier),{sendEmailMagicLinkFetchState:h,accountLocked:U,accountUnlockTime:k}=c(e=>e.tenantState),p=c(e=>e.tenantState.fetchState),L=c(e=>e.tenantState.activeTenantFetchState.fetchState),I=c(e=>e.tenantState.signInState),o=c(e=>e.tenantState.loggedInUser),r=c(e=>J(e)),S=c(e=>Q(e)),m=M(),w=N().mode,b=m.state?.magicLinkExpired,x=m.state?.magicLinkAlreadyUsed;if(u.useEffect(()=>{h.fetchState==="Completed"&&l!=null&&(E.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(l))},[h.fetchState,l]),u.useEffect(()=>{t(void 0)},[]),u.useEffect(()=>{I!=="In-Progress"||p!=="Completed"&&L!=="Completed"||o?.zeniSessionId==null||r==null||(s.savePayNowInfoTooltip(!0,o.zeniSessionId),s.saveSignedInUserWithSession(o,o.zeniSessionId),s.saveSignedInUserTenants(R(S.tenantsInOrder),o.zeniSessionId),W(o.userId,o.zeniSessionId,r.tenantId),a(H(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),a(G("Completed")),P.updateAppLocaleID(ne(r)),te(o,r,w,void 0,S.tenantsInOrder),K().then(()=>{const e=$();e!=null&&_(e)}),setTimeout(()=>{E.trackLogin(B.Event.loginSuccess,o.authProvider??"google",X(r.productSettings))},2e3))},[I,p,L,o,r,S,w,m.state,a]),I==="In-Progress"&&p==="Completed"&&o?.zeniSessionId!=null&&r!=null||n!=null){const e=m.state?.origin??"/";return f.jsx(j,{to:e,state:{...m.state,origin:""}})}return f.jsxs(f.Fragment,{children:[f.jsx(ie,{magicLinkExpired:!!b,magicLinkAlreadyUsed:!!x,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:i??void 0,showEmailLogin:!0}),U===!0&&k!=null?f.jsx(V,{onClose:()=>a(C()),unlockDate:k}):null]})}export{ve as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-BGrTvYCQ.js";import{a as n}from"./sentry-B-sG2CiU.js";import{h as u,u as m,j as p,N as g}from"./core-cQ_UGuA8.js";import{z as c,B as y,t as b,d as f,f as h}from"./index-D90Egw4V.js";import{IB as I,Ij as x,IC as j}from"./zeni-epic-state-BObvmHAZ.js";import{n as w}from"./mui-bgnk9Y8D.js";import"./recharts-d-EnR1VF.js";import"./analytics-YTm4e0V2.js";import"./plaid-D86kekqV.js";import"./dnd-BKb14efZ.js";import"./stripe-DMRn4zHo.js";import"./lottie-DunuFFva.js";import"./lexical-Dhe13gAE.js";import"./pdf-pb-ViLbf.js";import"./utils-CU50wlH3.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]="9292abfd-6c43-4c5f-912c-b270cc21d3ac",e._sentryDebugIdIdentifier="sentry-dbid-9292abfd-6c43-4c5f-912c-b270cc21d3ac")}catch{}})();function $(){const e=u(),t=m(),i=p(),a=n.useRef(!1),d=c.isSignedIn(),r=t.state?.message==="logout",o=r||d;return n.useEffect(()=>{o&&!a.current&&(a.current=!0,setTimeout(()=>{try{c.clearAll(),e(I()),e(x(!1)),j(),b.reset(),f.trackLogout(h.Event.logoutSuccess),f.resetUserIdentity()}catch(l){console.error("Error during sign out:",l)}finally{r||i("/signin/auth",{replace:!0})}},0))},[o,r]),o?s.jsx(v,{children:s.jsx(y,{fetchState:"In-Progress"})}):s.jsx(g,{to:"../",replace:!0})}const v=w.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`;export{$ as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-BGrTvYCQ.js";import M from"./NotFoundScreen-ClHj7JWB.js";import{a as p}from"./sentry-B-sG2CiU.js";import{j as A,h as R,u as $,l as q,g as f,N as z,k as V,n as _,o as u}from"./core-cQ_UGuA8.js";import{G as O,z as w,v as G,w as Q,d as E,f as W,cz as H,k as Z,ao as J,q as K}from"./index-D90Egw4V.js";import{eM as b,Ph as C,EM as v,EA as X,Fc as Y,Pi as P,Pj as ee,Ew as ae,Et as te,pB as se,pp as ne,jW as oe,EG as ie,Pk as re,ED as le,ER as ce,EQ as de}from"./zeni-epic-state-BObvmHAZ.js";import{n as pe}from"./mui-bgnk9Y8D.js";import{u as me}from"./useInitialThreadRequest-lcYH42cE.js";import{M as ue}from"./MobileAppDrawer-D4Lm7SnG.js";import ke from"./TaskListScreen-PZG8iT0i.js";import"./recharts-d-EnR1VF.js";import"./analytics-YTm4e0V2.js";import"./plaid-D86kekqV.js";import"./dnd-BKb14efZ.js";import"./stripe-DMRn4zHo.js";import"./lottie-DunuFFva.js";import"./lexical-Dhe13gAE.js";import"./pdf-pb-ViLbf.js";import"./utils-CU50wlH3.js";import"./useAskAiCfoHostNavButtonProps-B7HVYURz.js";import"./useFetchSuggestedQuestionsWhenReady-CE9JYbxS.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]="e96b4bc1-828a-4957-8308-5053d7453f25",e._sentryDebugIdIdentifier="sentry-dbid-e96b4bc1-828a-4957-8308-5053d7453f25")}catch{}})();const fe=V(function(e,t){const{location:n,taskGroupId:l}=t,d=P(e,t.taskId),c=b(e),i=l!=null?ee(e.taskGroupState,l):void 0,m=w.getSignedInUser(),a=c.tenantId,r={userId:m?.userId??"",sessionId:m?.zeniSessionId??"",tenantId:a??""},k=C(e);return{taskDetailSelectorView:d,authParams:r,isNewClicked:n.state?.message==="comingFromTaskListPage",filesEndPoint:J.fileMicroServiceBaseUrl,companyName:t.currentTenant.companyName,companyId:t.currentTenant.companyId,currentUrl:`${Z.appUrl}${t.location.pathname}`,tagListView:k,taskGroupName:l!=null&&i!=null&&i.isDefault===!1?i.name:void 0}},function(e,t){const{taskId:n,navigate:l,currentTenant:d,location:c,taskGroupId:i}=t,{tenantEmailDomain:m}=d;return{onSaveChangesToLocalStore:a=>{e(de({taskDetailLocalData:a,taskId:n}))},onSaveDetailClick:()=>{e(ce(n,i))},onArchiveTaskClick:()=>{t.taskId!=null&&e(le(t.taskId))},onDismissClick:()=>{if(c.state?.message==="triggerBackClick"){const a=K(c.state?.pathnameStackToGoBack),r=a.poppedPathname??"../../dashboard";l(r,{state:{pathnameStackToGoBack:a.newStack}})}else{const a=B(m),r=G(c.state?.pathnameStackToGoBack,c.pathname);l(a,{state:{pathnameStackToGoBack:r}})}e(re({taskId:n}))},onDeleteTaskClick:()=>{e(ie(n))},updateFilesEntity:a=>{e(oe({files:a}))},onDeleteFile:a=>{e(ne(a))},onEditFileName:(a,r)=>{e(se(a,r.split(".")[0]))},onReloadTaskDetailPage:()=>{e(v(!1,n))},onCreateTagClick:a=>{e(te(a,n))},onDeleteTagClick:a=>{e(ae(a,n))}}})(H);function I(){const e=A(),t=R(),n=$(),l=O(),{taskId:d,taskGroupId:c}=q(),i=f(o=>b(o)),m=me(i?.companyId),[a,r]=p.useState(!1),[k,F]=p.useState(!1),[S,L]=p.useState(!1),[x,N]=p.useState(!1),j=f(o=>C(o)),y=f(o=>o.taskGroupViewState.fetchState);p.useEffect(()=>{k||(F(!0),t(v(!1,d)))},[k,t]),p.useEffect(()=>{S||j.fetchState==="Completed"||(L(!0),t(X()))},[S,t,j.fetchState]),p.useEffect(()=>{x||y==="Completed"||(N(!0),t(Y()))},[x,t,y]);const D=f(o=>P(o,d)),g=D.fetchState,T=w.getSignedInUser();if(T==null)throw Error("Can't access task detail page without signing in...");if(g==="Error"&&D.error?.code===400){const{tenantEmailDomain:o}=i,h=B(o),U=G(n.state?.pathnameStackToGoBack,n.pathname);return s.jsx(z,{to:h,state:{pathnameStackToGoBack:U}})}return s.jsxs(s.Fragment,{children:[g==="Completed"?s.jsx(Q,{analytics:E,onLoad:o=>(h=>h.trackPageLoaded(W.Event.taskDetailPage))(o)}):null,s.jsxs(ge,{children:[s.jsx(ue,{isAppContentDrawerOpen:a,handleDrawerToggle:o=>{r(o)}}),s.jsx(fe,{analytics:E,currentTenant:i,handleZeniLogoClick:()=>{l.toggle()},initialOpenThreadRequest:m,location:n,loggedInUser:T,navigate:e,taskGroupId:c,taskId:d,taskDetailFetchState:g})]})]})}const ge=pe.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`,B=e=>`/${e}/tasks`;function Ae(){return s.jsxs(_,{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(ke,{})}),s.jsx(u,{path:"/:taskId",element:s.jsx(I,{})}),s.jsx(u,{path:"*",element:s.jsx(M,{})})]})}export{Ae as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-BGrTvYCQ.js";import i from"./NotFoundScreen-ClHj7JWB.js";import{T as r}from"./TransactionDetailScreen-C2vSq-tp.js";import"./sentry-B-sG2CiU.js";import{n as d,o as e}from"./core-cQ_UGuA8.js";import"./zeni-epic-state-BObvmHAZ.js";import"./recharts-d-EnR1VF.js";import"./index-D90Egw4V.js";import"./mui-bgnk9Y8D.js";import"./analytics-YTm4e0V2.js";import"./plaid-D86kekqV.js";import"./dnd-BKb14efZ.js";import"./stripe-DMRn4zHo.js";import"./lottie-DunuFFva.js";import"./lexical-Dhe13gAE.js";import"./pdf-pb-ViLbf.js";import"./utils-CU50wlH3.js";import"./useAskAiCfoHostNavButtonProps-B7HVYURz.js";import"./useFetchSuggestedQuestionsWhenReady-CE9JYbxS.js";import"./decodeURIComponentSafe-CzQtaU9d.js";import"./routePaths-D-FUiDMc.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-BGrTvYCQ.js";import{a as f}from"./sentry-B-sG2CiU.js";import{q as u,h,g as y,N as I}from"./core-cQ_UGuA8.js";import{IA as w,eN as b,yV as x}from"./zeni-epic-state-BObvmHAZ.js";import{z as l,B as j,F as S,H as D}from"./index-D90Egw4V.js";import{n as c}from"./mui-bgnk9Y8D.js";import"./recharts-d-EnR1VF.js";import"./analytics-YTm4e0V2.js";import"./plaid-D86kekqV.js";import"./dnd-BKb14efZ.js";import"./stripe-DMRn4zHo.js";import"./lottie-DunuFFva.js";import"./lexical-Dhe13gAE.js";import"./pdf-pb-ViLbf.js";import"./utils-CU50wlH3.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]="c4c68da8-9c84-4f91-8f32-f31926d3e20d",e._sentryDebugIdIdentifier="sentry-dbid-c4c68da8-9c84-4f91-8f32-f31926d3e20d")}catch{}})();const R=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",g=e.get("profileId")??"",[n,p]=f.useState(!1),a=h(),i=y(m=>w(m)),r=l.getSignedInUser(),d=l.getSignedInUserTenantWithId(s);if(r==null||d==null)return o.jsx(I,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return b(r.userId,r.zeniSessionId,d?.tenantId),f.useEffect(()=>{n||(p(!0),a(x(t,g,s)))},[n,a]),i.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(j,{fetchState:"In-Progress"}))},E=c.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: 100vh;
|
|
5
|
-
flex-direction: row;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
9
|
-
`,_=c(D.LargeRegular)`
|
|
10
|
-
display: flex;
|
|
11
|
-
color: ${S.important};
|
|
12
|
-
`;export{R as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n}from"./index-D90Egw4V.js";import"./mui-bgnk9Y8D.js";import"./sentry-B-sG2CiU.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]="8f615ada-cbf3-4f3b-9d44-87b6c97d7e87",e._sentryDebugIdIdentifier="sentry-dbid-8f615ada-cbf3-4f3b-9d44-87b6c97d7e87")}catch{}})();function f(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{f as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as p}from"./sentry-B-sG2CiU.js";import{J as d,a as m,v as u,R as b}from"./index-D90Egw4V.js";import"./mui-bgnk9Y8D.js";import{b as y}from"./useFetchSuggestedQuestionsWhenReady-CE9JYbxS.js";import{j as k,u as g,l as h}from"./core-cQ_UGuA8.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]="9c4f21fc-3b1f-4ec6-95f0-655f37aa5e6e",e._sentryDebugIdIdentifier="sentry-dbid-9c4f21fc-3b1f-4ec6-95f0-655f37aa5e6e")}catch{}})();function E(e){const{isAiCfoOpen:a,setIsAiCfoOpen:t,mobileExploreReferrer:f}=e,n=k(),o=g(),{tenantEmailDomain:s}=h(),i=d(),r=b(i),c=m();return{isAiCfoAccessEnabled:y()&&c&&!a,onAskAiCfoClick:p.useCallback(()=>{if(s!=null)if(r){const l=u(o.state?.pathnameStackToGoBack,o.pathname);n(`/${s}/ai-cfo/explore`,{state:{pathnameStackToGoBack:l,referrer:f}})}else t(!0)},[r,o.pathname,o.state,f,n,t,s])}}export{E as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as c}from"./sentry-B-sG2CiU.js";import{h as i,s as d}from"./core-cQ_UGuA8.js";import{i as y,s as h,a as g,$ as m,M as C}from"./index-D90Egw4V.js";import"./mui-bgnk9Y8D.js";import{eJ as l,hA as b}from"./zeni-epic-state-BObvmHAZ.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]="672b8a5a-8b6b-42ec-a2ca-4543d7392b72",e._sentryDebugIdIdentifier="sentry-dbid-672b8a5a-8b6b-42ec-a2ca-4543d7392b72")}catch{}})();function x(){const{useFeatureGate:e}=y(),{isFeatureEnabled:t}=e(h.isAiCfoNavButtonEnabled),n=g();return t&&n}function p(e,t){return e!=="Completed"&&e!=="In-Progress"&&!(e==="Error"&&!t)}function I(e){const{areTenantIdsInSync:t}=C(),n=g(),a=x();return t&&e&&a&&n}function _(e){const{pageContexts:t,canFetchSuggestedQuestions:n}=e,a=i(),s=d(),o=c.useRef(null);c.useEffect(()=>{const r=o.current===!1&&n===!0;if(o.current=n,n&&t!=null&&t.length!==0)for(const u of t){const f=l(s.getState(),u)?.fetchState;p(f,r)&&a(b({pageContext:u}))}},[n,a,t,s])}function S(e){(function(t){const{pageContext:n,canFetchSuggestedQuestions:a}=t,s=i(),o=d(),r=c.useRef(null);c.useEffect(()=>{const u=r.current===!1&&a===!0;if(r.current=a,n==null||!a)return;const f=l(o.getState(),n)?.fetchState;p(f,u)&&s(b({pageContext:n}))},[a,s,n,o])})({canFetchSuggestedQuestions:I(e.isDataReady),pageContext:e.pageContext})}function Q(e){S({pageContext:m(),isDataReady:e.isDataReady})}export{_ as a,x as b,Q as c,I as u};
|