@zeniai/web-app-ui 5.1.64-prod → 5.1.65-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-ZPs03itT.js +1 -0
- package/dist/assets/{AddressScreen-CrELiOFW.js → AddressScreen-DRkNCoFL.js} +2 -2
- package/dist/assets/{AiCfoScreen-DkWFatQV.js → AiCfoScreen-D-u8ipUi.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-DReXyx-X.js → BillPayApprovalRoutes-BvU9483p.js} +1 -1
- package/dist/assets/{BillPayRoutes-CB4wkUct.js → BillPayRoutes-BU_8K1M6.js} +8 -8
- package/dist/assets/{BusinessVerificationPageScreen-DHRW6Wky.js → BusinessVerificationPageScreen-BTZMu3mu.js} +2 -2
- package/dist/assets/{ChargeCardRoutes-CxhuYewL.js → ChargeCardRoutes-Xtry7c49.js} +10 -10
- package/dist/assets/CompanyPassportScreen-CflJgZzM.js +1 -0
- package/dist/assets/{ConnectionAuthScreen-CmzZV-oG.js → ConnectionAuthScreen-BEwd3uud.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-Bd9wJ72z.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-CvGHNdC4.js → CustomerOnboardingRoutes-C_F3TxKa.js} +4 -4
- package/dist/assets/{DashboardRoutes-SqMDnsuU.js → DashboardRoutes-GIiFG-1s.js} +3 -3
- package/dist/assets/{DefaultTenantHome-eTh4KI8o.js → DefaultTenantHome-DL6SBBlS.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-DgnT4350.js → DomesticWireDetailScreen-DQfmG0KY.js} +3 -3
- package/dist/assets/DrawerScreen-COKN8vXf.js +1 -0
- package/dist/assets/{EntityDetailRoutes-wsSvdZi8.js → EntityDetailRoutes-BVL9ZAaH.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-ZSLVxDiU.js → ExpenseAutomationRoutes-B65oMKGx.js} +3 -3
- package/dist/assets/FeaturePreviewScreen-qdJQX-H8.js +1 -0
- package/dist/assets/{HubSpotOAuthCallbackScreen-Uw2Q2Yn0.js → HubSpotOAuthCallbackScreen-DHyw1pK9.js} +1 -1
- package/dist/assets/MagicLinkRoutes-BIkgPK91.js +72 -0
- package/dist/assets/MagicLinkSignInScreen-C4HXJpeQ.js +12 -0
- package/dist/assets/{MobileAppDrawer-BwfkZaly.js → MobileAppDrawer-CrgnLvLU.js} +1 -1
- package/dist/assets/NotFoundScreen-v5_de3EY.js +1 -0
- package/dist/assets/{NotificationRoutes-C7NmV3D1.js → NotificationRoutes-P-83L_ys.js} +1 -1
- package/dist/assets/OAuthConsentScreen-IVBM6Dko.js +1 -0
- package/dist/assets/PandLWithForecastRoutes-_37Co_bv.js +1 -0
- package/dist/assets/PeopleRoutes-DS3elLhn.js +22 -0
- package/dist/assets/PerformanceRoutes-BkeJXfUd.js +1 -0
- package/dist/assets/{Preview-DQnGgLz4.js → Preview-BcvozuOU.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-B2KgDy20.js → QBOConnectionScreen-BgQQew_6.js} +1 -1
- package/dist/assets/ReferralListScreen-DuGf9HFb.js +5 -0
- package/dist/assets/{ReimbursementApprovalRoutes-Bty_f9tp.js → ReimbursementApprovalRoutes-CbRVuJWF.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-DwMF9u74.js → ReimbursementApprovalRuleDetailScreen-CVwi5aJZ.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-DqgPcxuP.js → ReimbursementRoutes-D5yYUU5V.js} +4 -4
- package/dist/assets/{ReportsRoutes-BrMVew2H.js → ReportsRoutes-D75uQqxz.js} +1 -1
- package/dist/assets/RewardsRoutes-fbazCSso.js +1 -0
- package/dist/assets/{ScreenRoutes-xvX9mg6-.js → ScreenRoutes-BCcnBfC_.js} +2 -2
- package/dist/assets/{SettingsRoutes-CrkivrOV.js → SettingsRoutes-B9LjzWe2.js} +4 -4
- package/dist/assets/{SetupPagesScreen-CCPurpiK.js → SetupPagesScreen-BXETP8g-.js} +1 -1
- package/dist/assets/SignInScreen-Dt-aJmha.js +1 -0
- package/dist/assets/SignOutScreen-CpGvmkUq.js +9 -0
- package/dist/assets/{TaskListScreen-B_GxqcnW.js → TaskListScreen-DMtc09u5.js} +2 -2
- package/dist/assets/TaskRoutes-CdtXHU0-.js +9 -0
- package/dist/assets/{TransactionDetailRoutes-D-Vm0A8d.js → TransactionDetailRoutes-D7bsCiCx.js} +1 -1
- package/dist/assets/{TransactionDetailScreen-BSy8ANSu.js → TransactionDetailScreen-Cx8OkHWh.js} +1 -1
- package/dist/assets/{TransactionListRoutes-Co9XAJJS.js → TransactionListRoutes-CPPEwrQh.js} +1 -1
- package/dist/assets/{TreasuryRoutes-CSrz1qr9.js → TreasuryRoutes-BPDk9A8T.js} +5 -5
- package/dist/assets/{VendorsRoutes-X8RpweCC.js → VendorsRoutes-7Qv63VB1.js} +16 -16
- package/dist/assets/WiseConfirmationScreen--ohBUsvV.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-8cKy1c-W.js → ZeniAccountRoutes-jdmuBqTz.js} +7 -7
- package/dist/assets/{ZeniAccountStatementScreen-Byja66MI.js → ZeniAccountStatementScreen-Bpoumjnq.js} +2 -2
- package/dist/assets/{accountMappingHelper-DgsLTCOB.js → accountMappingHelper-DcHRTvHW.js} +1 -1
- package/dist/assets/{analytics-DogagTok.js → analytics-C--DBRuq.js} +1 -1
- package/dist/assets/{analyticsHelper-qYMcDtpJ.js → analyticsHelper-De1N1-Zw.js} +1 -1
- package/dist/assets/{core-Dy5geFFY.js → core-yFUZRhgi.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-BHzk-lYl.js → decodeURIComponentSafe-DJGiVKY3.js} +1 -1
- package/dist/assets/{dnd-C6_ImgHk.js → dnd-BsfjgQaS.js} +1 -1
- package/dist/assets/{empty-DnlV1_6u.js → empty-36OhCPgu.js} +1 -1
- package/dist/assets/{empty-B8ZcIMO5.js → empty-DWXN0zXu.js} +1 -1
- package/dist/assets/{emptyVideoElement-CpidquOV.js → emptyVideoElement-W528gJEP.js} +1 -1
- package/dist/assets/{epic-CC8A9smL.js → epic-CIRzUJFx.js} +1 -1
- package/dist/assets/getLocaleForTenant-DYvzcoGq.js +1 -0
- package/dist/assets/{index-DtQAcrNp.js → index-BN3A7Q7k.js} +1 -1
- package/dist/assets/{index-YYYxfHMB.js → index-Biw-dXZD.js} +1 -1
- package/dist/assets/{index-CX--7waM.js → index-BjC87z-8.js} +1 -1
- package/dist/assets/{index-CKGMban5.js → index-D6SI2XXD.js} +1 -1
- package/dist/assets/{index-BYGD7gTN.js → index-D8lrtix7.js} +1 -1
- package/dist/assets/{index-B4dtQqSs.js → index-Tz5qKzzr.js} +2 -2
- package/dist/assets/{index-CnHOubJH.js → index-_WROnW1b.js} +1 -1
- package/dist/assets/{index-D8bcM0OI.js → index-jqYKktfd.js} +11072 -11076
- package/dist/assets/{lexical-BnBssm1Q.js → lexical-a5QW-f2c.js} +1 -1
- package/dist/assets/{liveblocks-CpylJur5.js → liveblocks-DQxWCA7d.js} +1 -1
- package/dist/assets/{lottie-4KjPkDjS.js → lottie-CUC8jYi2.js} +1 -1
- package/dist/assets/{mui-DFcD3xcf.js → mui-ChC8whdU.js} +1 -1
- package/dist/assets/{pathToGoBack-BmgyqKoO.js → pathToGoBack-48OEEFN8.js} +1 -1
- package/dist/assets/{pdf-BdyTZZ2K.js → pdf-BzsAlPE_.js} +3 -3
- package/dist/assets/{pdf-lib-BNHl9sAH.js → pdf-lib-Bunmyp1f.js} +1 -1
- package/dist/assets/{plaid-BQjvSm3J.js → plaid-G4AU8x-v.js} +1 -1
- package/dist/assets/{pusher-CjJr-mrB.js → pusher-C00F4DWB.js} +1 -1
- package/dist/assets/{react-DBHMRUJq.js → react-7oSJc21D.js} +1 -1
- package/dist/assets/{react-3rPY7_V1.js → react-B-EV2fAl.js} +1 -1
- package/dist/assets/{react-CBaiEKN9.js → react-B_Y4cViF.js} +1 -1
- package/dist/assets/{react-B4eUHgFH.js → react-C6PubH1a.js} +1 -1
- package/dist/assets/{react-CXEIl3_r.js → react-gwfdXk9P.js} +1 -1
- package/dist/assets/{react-Y-Gp3WIo.js → react-y_zdXwGN.js} +1 -1
- package/dist/assets/{recharts-DcwEgdud.js → recharts-BPALCGe7.js} +1 -1
- package/dist/assets/{routePaths-B4y5xfCn.js → routePaths-Bboudd1B.js} +1 -1
- package/dist/assets/{sentry-CmBsv1n9.js → sentry-yFsVWhao.js} +1 -1
- package/dist/assets/{url-DPCkeT4T.js → url-CItc7ZnZ.js} +1 -1
- package/dist/assets/{url-DHoAX7CB.js → url-DdmozPE3.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-Ce43Sy4q.js → useAiCfoDashboardSuggestedQuestionsChips-BMRAWQ1G.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-CVkVwVMM.js +1 -0
- package/dist/assets/{useDeviceId-Dpq7OEQK.js → useDeviceId-BY2vlOSe.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-BbaWe__z.js → useInitialThreadRequest-Ds4FzIV5.js} +1 -1
- package/dist/assets/{utils-N7zgpLmj.js → utils-CaIGWeOv.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-CQzj7LUw.js → withTransactionSidePanel-Ufj2Gl6g.js} +2 -2
- package/dist/assets/{zeni-epic-state-CWKVVeO1.js → zeni-epic-state-Co_KJ39L.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AddressRoutes-F_ZbmwBW.js +0 -1
- package/dist/assets/CompanyPassportScreen-CBpbUX8I.js +0 -1
- package/dist/assets/CustomerOnboardingAuthScreen-CkJh80DS.js +0 -1
- package/dist/assets/DrawerScreen-BVYBp03j.js +0 -1
- package/dist/assets/FeaturePreviewScreen-DOvAQfOF.js +0 -1
- package/dist/assets/MagicLinkRoutes-DuHLhIoH.js +0 -72
- package/dist/assets/MagicLinkSignInScreen-C_wTdjq9.js +0 -12
- package/dist/assets/NotFoundScreen-D1PVRWbS.js +0 -1
- package/dist/assets/OAuthConsentScreen-DFqVtzPz.js +0 -1
- package/dist/assets/PandLWithForecastRoutes-DtgNpGCF.js +0 -1
- package/dist/assets/PeopleRoutes-D9zcmtbW.js +0 -22
- package/dist/assets/PerformanceRoutes-CE5CUOQ9.js +0 -1
- package/dist/assets/ReferralListScreen-DMSe6BHf.js +0 -5
- package/dist/assets/RewardsRoutes-C8XxnjEx.js +0 -1
- package/dist/assets/SignInScreen-4h09sy2R.js +0 -1
- package/dist/assets/SignOutScreen-Bn6Ijki0.js +0 -9
- package/dist/assets/TaskRoutes-C_zaSf12.js +0 -9
- package/dist/assets/WiseConfirmationScreen-rK0FySkp.js +0 -12
- package/dist/assets/getLocaleForTenant-Bg-B9fDc.js +0 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-C5D4FFaY.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-jqYKktfd.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-yFsVWhao.js"><link rel="modulepreload" crossorigin href="/assets/core-yFUZRhgi.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-Co_KJ39L.js"><link rel="modulepreload" crossorigin href="/assets/mui-ChC8whdU.js"><link rel="modulepreload" crossorigin href="/assets/analytics-C--DBRuq.js"><link rel="modulepreload" crossorigin href="/assets/utils-CaIGWeOv.js"><link rel="stylesheet" crossorigin href="/assets/index-R6GjjTB3.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.1.
|
|
3
|
+
"version": "5.1.65-dev",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/**/*"
|
|
6
6
|
],
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@stripe/stripe-js": "^4.4.0",
|
|
30
30
|
"@zeniai/client-analytics": "2.0.24",
|
|
31
31
|
"@zeniai/client-epic-state": "5.1.7",
|
|
32
|
-
"@zeniai/web-components": "4.1.
|
|
32
|
+
"@zeniai/web-components": "4.1.85",
|
|
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-CpylJur5.js";import{A as d}from"./AddressScreen-CrELiOFW.js";import i from"./NotFoundScreen-D1PVRWbS.js";import"./sentry-CmBsv1n9.js";import{o as s,p as r}from"./core-Dy5geFFY.js";import"./zeni-epic-state-CWKVVeO1.js";import"./recharts-DcwEgdud.js";import"./index-D8bcM0OI.js";import"./mui-DFcD3xcf.js";import"./analytics-DogagTok.js";import"./plaid-BQjvSm3J.js";import"./dnd-C6_ImgHk.js";import"./stripe-DMRn4zHo.js";import"./lottie-4KjPkDjS.js";import"./lexical-BnBssm1Q.js";import"./pdf-BdyTZZ2K.js";import"./utils-N7zgpLmj.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]="4677917c-1bd8-4b00-9bd0-d308073173a3",t._sentryDebugIdIdentifier="sentry-dbid-4677917c-1bd8-4b00-9bd0-d308073173a3")}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 +0,0 @@
|
|
|
1
|
-
import{j as m}from"./liveblocks-CpylJur5.js";import{a as g}from"./sentry-CmBsv1n9.js";import{h as w,u as k,g as x,i as T,j as O,n as E}from"./core-Dy5geFFY.js";import{z as b,b9 as F,y as P,e as V,g as L,af as N,ba as j,at as A,au as U,s as M}from"./index-D8bcM0OI.js";import{eR as C,fI as B,sD as R,fD as _,c1 as z,Ne as G,bn as q,qL as Y,qz as H,kg as X,lM as S,Nf as Z,bE as $,cu as D,lU as J,lX as K}from"./zeni-epic-state-CWKVVeO1.js";import"./mui-DFcD3xcf.js";import{d as Q}from"./routePaths-B4y5xfCn.js";import{M as W}from"./MobileAppDrawer-BwfkZaly.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new n.Error().stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="d2021f63-cd83-4409-aced-ba9bf746a5dd",n._sentryDebugIdIdentifier="sentry-dbid-d2021f63-cd83-4409-aced-ba9bf746a5dd")}catch{}})();const ee=E(function(n){const t=_(n),i=b.getSignedInUser(),l=C(n),c=l.tenantId,p={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=z(l?.userRole??[])&&t.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=G(n.companyConfigState),a=n.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:t.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:t,allIndustries:e.companyIndustries??[],allNationalityCountries:a,isDisabled:f,authParams:p,filesEndPoint:`${A.fileMicroServiceBaseUrl}`,isZeniUser:q(i)}},function(n,t){const{companyId:i,currentTenant:l,navigate:c,location:p}=t,{tenantEmailDomain:f}=l;return{onScheduleClick:e=>{let a=e.href;a.includes("http")||(a="https://".concat(a)),window.open(a,"_blank")},onSaveAll:()=>{n(K())},onAddressClick:e=>{const a=Q(f,e),o=M(p.state?.pathnameStackToGoBack,p.pathname);c(a,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{n(J({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:a,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=a,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:h}=r,v={companyInfo:{...a,website:u!=""&&u!=null?D(u):void 0,meetingLink:y!=""&&y!=null?D(y):void 0,industry:a.industry.selectedOption,companyIndustryType:a.companyIndustryType?.selectedOption??void 0,companySubIndustry:a.companySubIndustry?.selectedOption??void 0,businessModel:a.businessModel.selectedOption??"",companySourceOfFunds:a.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:a.companySourceOfFundsDescription??void 0,countriesOfOperations:a.countriesOfOperations?.selectedOptions?.map(I=>I.length===2?I:U(I))??[],transactionVolume:a.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:a.transactionVolumeDescription??void 0,regulatedStatus:a.regulatedStatus??void 0,regulatedStatusDescription:a.regulatedStatusDescription??void 0,usNexus:a.usNexus??void 0,usNexusTypes:a.usNexusTypes?.selectedOptions??[],purposeOfAccount:a.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:a.purposeOfAccountDescription??void 0},incInfo:{typeOfInc:o.typeOfInc.selectedOption??"",stateOfInc:o.stateOfInc.selectedOption??"",incDate:s!=null?$(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]}};n(S({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{n(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{n(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=>{n(Z(e))},onCompanyOfficerUpdated:e=>{n(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=>{n(X({files:e}))},onDeleteFile:e=>{n(H(e))},onEditFileName:(e,a)=>{n(Y(e,a.split(".")[0]))}}})(j);function de(){const n=w(),t=k(),i=x(),{tenantEmailDomain:l}=T(),[c,p]=g.useState(!1),[f,e]=g.useState(!1),a=O(s=>s.companyViewState.passportView.fetchState),o=O(s=>s.companyConfigState.fetchState),r=O(s=>C(s)),d=r.companyId??b.getSignedInUserTenant(l)?.companyId;if(b.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect(()=>{c||a!=="Not-Started"||d==null||(p(!0),t(B(d)))},[c,a,d,t]),g.useEffect(()=>{o==="Not-Started"&&t(R())},[o,t]);const u=s=>{e(s)},y=a==="Not-Started"||a==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&a==="Error"?m.jsx(F,{onGoHome:()=>n("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(P,{analytics:V,onLoad:s=>s.trackPageLoaded(L.Event.companyPassport,N(i)?"Settings":"Company Passport")}),N(i)?m.jsx(W,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:n,location:i,isLoading:y,currentTenant:r,isSettings:N(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-CpylJur5.js";import{z as n}from"./index-D8bcM0OI.js";import{g as d}from"./QBOConnectionScreen-B2KgDy20.js";import"./sentry-CmBsv1n9.js";import{g as p,N as a}from"./core-Dy5geFFY.js";import"./zeni-epic-state-CWKVVeO1.js";import"./recharts-DcwEgdud.js";import"./mui-DFcD3xcf.js";import"./analytics-DogagTok.js";import"./plaid-BQjvSm3J.js";import"./dnd-C6_ImgHk.js";import"./stripe-DMRn4zHo.js";import"./lottie-4KjPkDjS.js";import"./lexical-BnBssm1Q.js";import"./pdf-BdyTZZ2K.js";import"./utils-N7zgpLmj.js";import"./empty-B8ZcIMO5.js";import"./pdf-lib-BNHl9sAH.js";import"./index-CKGMban5.js";import"./url-DPCkeT4T.js";import"./index-BYGD7gTN.js";import"./decodeURIComponentSafe-BHzk-lYl.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]="e53e9b9f-4e1e-4d41-afae-a46e42efc4b3",e._sentryDebugIdIdentifier="sentry-dbid-e53e9b9f-4e1e-4d41-afae-a46e42efc4b3")}catch{}})();const U=()=>{const e=p(),{code:t,realmId:o,state:r}=d(e.search),s=n.getSignedInUser()?.userId??"";if(f(t,o,r,s)===!0){const m=`../../${r}/onboarding?code=${t}&realmId=${o}&state=auth_flow`;return i.jsx(a,{to:m})}return i.jsx(a,{to:"../../"})},f=(e,t,o,r)=>e!=""&&t!=""&&o!=""&&r!=null&&r!="";export{U as default,f as hasValidParams};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-CpylJur5.js";import{J as f,E as l,m as c}from"./index-D8bcM0OI.js";import{D as p}from"./mui-DFcD3xcf.js";import"./sentry-CmBsv1n9.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]="085d2278-ebaf-460b-8661-4493fef27612",e._sentryDebugIdIdentifier="sentry-dbid-085d2278-ebaf-460b-8661-4493fef27612")}catch{}})();const b={drawerLeftMargin:new l(0,0,240)};function m(e){const{isOpen:r,drawerLeftMargin:o,children:t,onClose:s}=e,n=f(),a=o?.valuePx(n)??b.drawerLeftMargin.valuePx(n),d=c();return i.jsx(p,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${a})`}},slotProps:{backdrop:{style:{backgroundColor:d.colors.black,opacity:.8,cursor:"pointer"}}},onClose:s,children:t})}export{m as D};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CpylJur5.js";import{a as r}from"./sentry-CmBsv1n9.js";import{a3 as l,a4 as p,a5 as d,r as f}from"./index-D8bcM0OI.js";import"./mui-DFcD3xcf.js";import m from"./NotFoundScreen-D1PVRWbS.js";import{h as u,g as b}from"./core-Dy5geFFY.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]="5300824e-7c2e-424f-a4a9-b633eae03cb4",e._sentryDebugIdIdentifier="sentry-dbid-5300824e-7c2e-424f-a4a9-b633eae03cb4")}catch{}})();const _=()=>{const e=u(),a=b(),t=r.useCallback(()=>{window.open("https://www.zeni.ai/demo/request","_blank")},[]),i=r.useCallback(()=>{(()=>{const n=f(a.state?.pathnameStackToGoBack),c=n.poppedPathname??k();e(c,{state:{pathnameStackToGoBack:n.newStack}})})()},[]),o=l(a.pathname);return o!=null?s.jsx(p,{menuItem:d(o),onDemoClick:t,onGoBack:i}):s.jsx(m,{})},k=(e=2)=>{let a="../";for(let t=0;t<e;t++)a=`${a}../`;return a};export{_ as F};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-CpylJur5.js";import{i as S,n as g,h as C,g as y,u as ee,s as te,j as E,N as ae,o as ne,p}from"./core-Dy5geFFY.js";import{Kb as k,Kc as v,Kd as K,A8 as A,zW as T,Ke as B,Kf as oe,Kg as se,z_ as ie,eY as $,A5 as le,A2 as re}from"./zeni-epic-state-CWKVVeO1.js";import{J as x,o as r,p as de,e as j,i as G,q as ce,r as me,X as pe,s as _,a as ue,G as he,v as ge,w as xe,m as fe,x as we,B as be,y as Se,n as ye,S as ke,A as ve,E as je,F as $e}from"./index-D8bcM0OI.js";import{n as m}from"./mui-DFcD3xcf.js";import f from"./NotFoundScreen-D1PVRWbS.js";import{a as I}from"./sentry-CmBsv1n9.js";import"./recharts-DcwEgdud.js";import"./analytics-DogagTok.js";import"./plaid-BQjvSm3J.js";import"./dnd-C6_ImgHk.js";import"./stripe-DMRn4zHo.js";import"./lottie-4KjPkDjS.js";import"./lexical-BnBssm1Q.js";import"./pdf-BdyTZZ2K.js";import"./utils-N7zgpLmj.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]="687c498c-c835-4311-8782-d9bf9f23736f",e._sentryDebugIdIdentifier="sentry-dbid-687c498c-c835-4311-8782-d9bf9f23736f")}catch{}})();const Ie=m.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100%;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
10
|
-
`,Ce=g(function(e){const a=k(e),n=v(e),{companyName:o}=a;return{companyName:o,isDisabled:a.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,magicLinkViewState:a}},function(e,a){const{vendorId:n,billId:o}=a;return{onFetchBankName:s=>{e(T(s))},onSaveHandler:s=>{j.trackBillPayMagicLinkSubmitBankAccountDetails(o),e(A(s,"standard",n,o))},onACHDetailsUpdated:s=>{const{bankAccountSection:l}=s;e(K({data:l}))}}})(de);function F(){const e=x(),{vendorId:a,billId:n}=S();return a==null||n==null?t.jsx(f,{}):t.jsx(t.Fragment,{children:t.jsx(Ie,{windowSize:e,children:t.jsx(Ce,{vendorId:a,billId:n})})})}const Ae=m.div`
|
|
11
|
-
display: flex;
|
|
12
|
-
height: 100vh;
|
|
13
|
-
width: 100%;
|
|
14
|
-
flex: 1 1 auto;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
align-items: center;
|
|
17
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
18
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
19
|
-
`,Be=g(function(e,a){const{isSubPage:n}=a;return{addressToEdit:B(e),googleAPIKey:G.googleMapsAPIKey,isSubPage:n}},function(e,a){const{navigate:n,location:o}=a,s=()=>{const l=me(o.state?.pathnameStackToGoBack),i=l.poppedPathname??ze();n(i,{state:{pathnameStackToGoBack:l.newStack}})};return{onSubmitHandler:l=>{const i=Pe(l);e(oe({addressToCreate:i})),s()},onCancel:()=>{s()}}})(ce);function De({isSubPage:e}){const a=C(),n=y(),o=x();return t.jsx(t.Fragment,{children:t.jsx(Ae,{windowSize:o,children:t.jsx(Be,{location:n,navigate:a,isSubPage:e===!0,googleAPIKey:G.googleMapsAPIKey})})})}const ze=(e=2)=>{let a="../";for(let n=0;n<e;n++)a=`${a}../`;return a},Pe=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng}),Le=m.div`
|
|
20
|
-
display: flex;
|
|
21
|
-
height: 100%;
|
|
22
|
-
width: 100%;
|
|
23
|
-
flex: 1 1 auto;
|
|
24
|
-
flex-direction: column;
|
|
25
|
-
align-items: center;
|
|
26
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
27
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
28
|
-
`,Ne=g(function(e){const a=k(e),n=v(e),o=B(e),{companyName:s}=a;return{companyName:s,isDisabled:a.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,mailingAddressDetails:o,magicLinkViewState:a}},function(e,a){const{navigate:n,location:o,vendorId:s,billId:l}=a;return{onFetchBankName:i=>{e(T(i))},onSaveHandler:i=>{j.trackBillPayMagicLinkSubmitBankAccountDetails(l),e(A(i,"us-domestic",s,l))},onWireDetailsUpdated:i=>{const{bankAccountSection:d}=i;e(K({data:d}))},onAddressClick:()=>{const i=o.pathname.replace("us-domestic","address"),d=_(o.state?.pathnameStackToGoBack,o.pathname);n(i,{state:{pathnameStackToGoBack:d}})}}})(pe);function Ee(){const e=C(),a=y(),n=x(),{vendorId:o,billId:s}=S();return o==null||s==null?t.jsx(f,{}):t.jsx(t.Fragment,{children:t.jsx(Le,{windowSize:n,children:t.jsx(Ne,{location:a,navigate:e,vendorId:o,billId:s})})})}const Fe=m.div`
|
|
29
|
-
display: flex;
|
|
30
|
-
height: 100%;
|
|
31
|
-
width: 100%;
|
|
32
|
-
flex: 1 1 auto;
|
|
33
|
-
flex-direction: column;
|
|
34
|
-
align-items: center;
|
|
35
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
36
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
37
|
-
`,Ke=g(function(e){const a=k(e),n=v(e),o=B(e),{companyName:s}=a;return{companyName:s,isDisabled:a.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,mailingAddressDetails:o,magicLinkViewState:a}},function(e,a){const{navigate:n,location:o,vendorId:s,billId:l}=a;return{onFetchBankNameBySwift:i=>{e(ie(i))},onSaveHandler:i=>{j.trackBillPayMagicLinkSubmitBankAccountDetails(l),e(A(i,"international",s,l,a.isLocalCurrencyEnabled))},onBankDetailsUpdated:i=>{const{internationalWireSwiftAccountSection:d}=i;e(se({data:d}))},onAddressClick:()=>{const i=o.pathname.replace("international","address"),d=_(o.state?.pathnameStackToGoBack,o.pathname);n(i,{state:{pathnameStackToGoBack:d}})}}})(ge);function Te(){const e=C(),a=y(),n=x(),{vendorId:o,billId:s}=S(),{useFeatureGate:l}=ue(),{isFeatureEnabled:i}=l(he.isBillPayLocalCurrencyFeatureEnabled);return o==null||s==null?t.jsx(f,{}):t.jsx(Fe,{windowSize:n,children:t.jsx(Ke,{location:a,navigate:e,vendorId:o,billId:s,isLocalCurrencyEnabled:i})})}const Ge={containerWidth:new je(100,58)},_e=m(ke)`
|
|
38
|
-
width: ${r.sp4};
|
|
39
|
-
height: ${r.sp4};
|
|
40
|
-
margin-bottom: ${r.sp3};
|
|
41
|
-
margin-top: ${r.sp3};
|
|
42
|
-
margin-left: ${r.sp8};
|
|
43
|
-
cursor: pointer;
|
|
44
|
-
position: absolute;
|
|
45
|
-
color: ${e=>e.theme.colors.brandColorJade};
|
|
46
|
-
`,He=m.div`
|
|
47
|
-
display: flex;
|
|
48
|
-
height: 100vh;
|
|
49
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
50
|
-
width: 100vw;
|
|
51
|
-
overflow-y: scroll;
|
|
52
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
53
|
-
`,Me=m.div`
|
|
54
|
-
display: flex;
|
|
55
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
56
|
-
flex-direction: column;
|
|
57
|
-
width: ${e=>`${Ge.containerWidth.value(e.windowSize)}%`};
|
|
58
|
-
${e=>e.windowSize!=="small"?"overflow: auto;":""}
|
|
59
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
60
|
-
padding-top: ${e=>e.windowSize!=="small"?r.sp2:"0px"};
|
|
61
|
-
`,Ve=m.div`
|
|
62
|
-
display: flex;
|
|
63
|
-
flex-direction: column;
|
|
64
|
-
align-items: center;
|
|
65
|
-
justify-content: center;
|
|
66
|
-
padding: ${e=>e.windowSize==="small"?r.sp3:`62px ${r.sp6} ${r.sp9} ${r.sp8}`};
|
|
67
|
-
height: ${e=>e.windowSize==="small"?"490px":"auto"};
|
|
68
|
-
overflow: ${e=>e.windowSize==="small"?"unset":"hidden"};
|
|
69
|
-
width: ${e=>e.windowSize=="small"?"auto":"42%"};
|
|
70
|
-
background-color: ${e=>e.windowSize==="small"?e.theme.colors.grey4:e.theme.colors.background};
|
|
71
|
-
margin-top: ${e=>e.windowSize==="small"?e.isAddressPage?"0px":"186px":"unset"};
|
|
72
|
-
`,We=g(function(e,a){return{file:a.file,type:a.type}})(ve);function h({appContent:e}){const a=ee(),n=y(),{tenantEmailDomain:o,vendorId:s,billId:l}=S(),[i]=te(),d=i.get("token"),H=n.pathname.includes("address"),w=x(),M=xe(),D=fe(),b=we(),V=()=>{M.toggle()},W=E(u=>k(u)),U=E(u=>v(u)),{authParams:J,fetchState:c,billAttachment:O,billFetchState:z,companyName:X,currencySymbol:Y,amount:q}=W,{tenantId:P,userId:L,sessionId:N}=J,{fetchState:Q,internationalBankAccountCreateStatus:R}=U;return I.useEffect(()=>{$()},[]),I.useEffect(()=>{b&&c==="Not-Started"&&s!=null&&o!=null&&d!=null&&a(le(s,o,d))},[b,c,s,o,d,a]),I.useEffect(()=>{b&&c==="Completed"&&($(L,N,P),l!=null&&a(re(l)))},[c,b,L,N,P,l,a]),c==="Error"?t.jsx(f,{}):Q==="Completed"||R.fetchState==="Completed"?($(),t.jsx(ae,{to:"../../../../../../../bank/account/save/success",replace:!0,relative:"path"})):c==="In-Progress"?t.jsx(be,{fetchState:c,style:{height:"100vh",backgroundColor:D.colors.grey5,boxShadow:`0px 2px ${r.sp1} ${D.colors.dropShadowNormal}`}}):t.jsxs(t.Fragment,{children:[c==="Completed"&&z==="Completed"&&t.jsx(Se,{analytics:j,onLoad:u=>(Z=>Z.trackBillPayMagicLinkPageLoad(o??"",s??"",X,l??"",Ue(n.pathname),Y,q))(u)}),t.jsxs(He,{windowSize:w,children:[w!=="small"?t.jsx(_e,{onClick:V}):null,t.jsx(Ve,{windowSize:w,isAddressPage:H,children:z==="In-Progress"?t.jsx(ye,{size:"ExtraLarge",start:!0}):t.jsx(We,{file:O,type:"bill"})}),t.jsx(Me,{windowSize:w,children:e})]})]})}const Ue=e=>`${e.split("/").at(-2)}_${e.split("/").at(-1)}`;function Je(){return t.jsx($e,{})}function dt(){return t.jsxs(ne,{children:[t.jsx(p,{path:"bank/account/save/success",element:t.jsx(Je,{})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/ach/standard",element:t.jsx(h,{appContent:t.jsx(F,{})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/ach/same-day",element:t.jsx(h,{appContent:t.jsx(F,{})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/address",element:t.jsx(h,{appContent:t.jsx(De,{isSubPage:!0})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/us-domestic",element:t.jsx(h,{appContent:t.jsx(Ee,{})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/international",element:t.jsx(h,{appContent:t.jsx(Te,{})})}),t.jsx(p,{path:"*",element:t.jsx(f,{})})]})}export{dt as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-CpylJur5.js";import{a as g}from"./sentry-CmBsv1n9.js";import{u as U,g as _,h as w,s as M,j as l,N as D}from"./core-Dy5geFFY.js";import{z as r,m as P,D as V,f as A,e as K,g as N,j as J,n as R,h as Y}from"./index-D8bcM0OI.js";import{eR as W,JY as Z,K6 as $,JZ as q,eY as B,fp as G,K2 as H,fN as Q,cS as X,K7 as ee,K8 as te}from"./zeni-epic-state-CWKVVeO1.js";import{n as ne}from"./mui-DFcD3xcf.js";import{u as se}from"./useDeviceId-Dpq7OEQK.js";import{f as ae}from"./analyticsHelper-qYMcDtpJ.js";import{t as ie}from"./getLocaleForTenant-Bg-B9fDc.js";import"./recharts-DcwEgdud.js";import"./analytics-DogagTok.js";import"./plaid-BQjvSm3J.js";import"./dnd-C6_ImgHk.js";import"./stripe-DMRn4zHo.js";import"./lottie-4KjPkDjS.js";import"./lexical-BnBssm1Q.js";import"./pdf-BdyTZZ2K.js";import"./utils-N7zgpLmj.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]="f5722670-07a2-44d3-90eb-5980b9ad765d",t._sentryDebugIdIdentifier="sentry-dbid-f5722670-07a2-44d3-90eb-5980b9ad765d")}catch{}})();const T=(t,a)=>t!=null&&t.length>0&&a==="magic_links";function Te(){const t=U(),a=_(),m=w(),[k]=M(),n=k.get("token"),p=k.get("stytch_token_type"),f=r.getMagicLinkCodeVerifier(),i=se(),{otpChallenge:d,twoFAPhoneNumber:x,magicLinkEmail:c,verifyDeviceFetchState:z,resendVerifyDeviceOTPFetchState:C}=l(e=>e.tenantState),S=l(e=>e.tenantState.fetchState),y=l(e=>e.tenantState.activeTenantFetchState.fetchState),h=l(e=>e.tenantState.signInState),I=l(e=>e.tenantState.magicLinkSignInFetchState.fetchState),s=l(e=>e.tenantState.loggedInUser),o=l(e=>W(e)),b=l(e=>Z(e)),E=r.getSignedInUser(),v=P().mode;g.useEffect(()=>{s?.zeniSessionId==null&&n!=null&&T(n,p)&&i!=null&&f!=null&&(r.saveMagicLinkTriggered(n),t($(n,i,f)))},[n,p,t,i,f,s?.zeniSessionId]),g.useEffect(()=>{h!=="In-Progress"||S!=="Completed"&&y!=="Completed"||s?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(s,s.zeniSessionId),r.saveSignedInUserTenants(q(b.tenantsInOrder),s.zeniSessionId),B(s.userId,s.zeniSessionId,o.tenantId),t(G(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(H("Completed")),V.updateAppLocaleID(ie(o)),ae(s,o,v,void 0,b.tenantsInOrder),Q().then(()=>{const e=Y();e!=null&&A(e)}),setTimeout(()=>{K.trackLogin(N.Event.loginSuccess,"email",X(o.productSettings))},2e3))},[h,S,y,s,o,b,v,a.state,t]);const j=g.useCallback(()=>{m("/signin/auth")},[m]),F=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(I==="Completed"&&d!=null)return u.jsx(J,{phoneNumber:x,verifyOtpFetchState:z.fetchState,resendVerifyDeviceOTPFetchState:C,onResendOtp:F,onVerifyOtp:O,onCancelVerifyDevice:j});if(h==="In-Progress"&&S==="Completed"&&s?.zeniSessionId!=null&&o!=null||E!=null){const e=a.state?.origin??"/";return u.jsx(D,{to:e,state:{...a.state,origin:""}})}if(!T(n,p)||f==null||I==="Error"){const e=a.state?.origin??"/",L=n!=null&&r.getLastUsedMagicLinkToken()===n;return u.jsx(D,{to:e,state:{...a.state,origin:"",magicLinkAlreadyUsed:L,magicLinkExpired:!L&&(r.isMagicLinkTriggered(n??"")||I==="Error"&&s?.zeniSessionId==null)}})}return u.jsx(oe,{"data-testid":"smooth-loader",children:u.jsx(R,{size:"ExtraLarge",start:!0})})}const oe=ne.div`
|
|
2
|
-
position: fixed;
|
|
3
|
-
top: 0;
|
|
4
|
-
left: 0;
|
|
5
|
-
right: 0;
|
|
6
|
-
bottom: 0;
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
z-index: 9999;
|
|
11
|
-
background-color: ${t=>t.theme.colors.background};
|
|
12
|
-
`;export{Te as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./liveblocks-CpylJur5.js";import{h as n,n as i}from"./core-Dy5geFFY.js";import{O as e}from"./index-D8bcM0OI.js";import"./mui-DFcD3xcf.js";import"./sentry-CmBsv1n9.js";import"./zeni-epic-state-CWKVVeO1.js";import"./recharts-DcwEgdud.js";import"./analytics-DogagTok.js";import"./plaid-BQjvSm3J.js";import"./dnd-C6_ImgHk.js";import"./stripe-DMRn4zHo.js";import"./lottie-4KjPkDjS.js";import"./lexical-BnBssm1Q.js";import"./pdf-BdyTZZ2K.js";import"./utils-N7zgpLmj.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]="d7666c0b-2a75-4baf-97d7-b828025403bf",o._sentryDebugIdIdentifier="sentry-dbid-d7666c0b-2a75-4baf-97d7-b828025403bf")}catch{}})();const a=i(null,function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}})(e);function _(){const o=n();return r.jsx(a,{navigate:o})}export{_ as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as m}from"./liveblocks-CpylJur5.js";import{a as r}from"./sentry-CmBsv1n9.js";import{u as A,g as j,j as o,N as C}from"./core-Dy5geFFY.js";import{Kl as K,eR as P,f9 as R,Km as x,Kn as z,Ko as D,Kp as M,ng as k,Jh as L}from"./zeni-epic-state-CWKVVeO1.js";import{z as h,Z as I}from"./index-D8bcM0OI.js";import"./mui-DFcD3xcf.js";import"./recharts-DcwEgdud.js";import"./analytics-DogagTok.js";import"./plaid-BQjvSm3J.js";import"./dnd-C6_ImgHk.js";import"./stripe-DMRn4zHo.js";import"./lottie-4KjPkDjS.js";import"./lexical-BnBssm1Q.js";import"./pdf-BdyTZZ2K.js";import"./utils-N7zgpLmj.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new n.Error().stack;s&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[s]="4f721c94-f623-4f5b-a938-bd627e1b3653",n._sentryDebugIdIdentifier="sentry-dbid-4f721c94-f623-4f5b-a938-bd627e1b3653")}catch{}})();function ee(){const n=A(),s=j(),{params:t,error:i}=r.useMemo(()=>K(s.search),[s.search]),w=r.useMemo(()=>new URLSearchParams(s.search).get("client_name")??t?.clientId??"Unknown Application",[s.search,t]),f=h.isSignedIn(),a=h.getSignedInUser(),p=o(e=>P(e)),l=o(e=>R(e)),d=o(e=>e.tenantState.fetchState),b=o(x),y=o(z),u=o(D),[v,S]=r.useState(null),[E,_]=r.useState(null);r.useEffect(()=>{document.querySelector("#app-shell-loader")?.remove()},[]),r.useEffect(()=>()=>{n(M())},[n,s.search]),r.useEffect(()=>{i!=null&&console.warn("[OAuthConsent] invalid params:",i)},[i]);const g=r.useRef(!1);r.useEffect(()=>{f&&a!=null&&!g.current&&(d!=="Not-Started"&&d!=="Error"||(g.current=!0,n(k(a.userId,a.zeniSessionId??void 0))))},[f,a,d,n]),r.useEffect(()=>{u!=null&&u!==""&&(window.location.href=u)},[u]);const U=r.useMemo(()=>{if(p?.tenantId!=null)return p.tenantId;const e=h.getActiveTenantForUser()?.tenantId;return e!=null&&l.some(T=>T.tenantId===e)?e:l.length===1?l[0].tenantId:null},[p?.tenantId,l]),c=v??U;return i!=null?m.jsx(I,{variant:"invalid_params",paramsError:i}):f?m.jsx(I,{variant:"signed_in",clientName:w,userEmail:a?.userEmail,isInitializing:d!=="Completed",tenants:l,selectedTenantId:c,onSelectTenant:S,approveError:E??y,isApproving:b==="In-Progress",showAllowButton:c!=null,onApprove:()=>{t!=null&&a!=null&&c!=null&&n(L(a.userId,a.zeniSessionId??void 0,c,t.clientId,t.redirectUri,t.codeChallenge,t.codeChallengeMethod,t.state,t.responseType))},onDeny:()=>{if(t!=null)try{const e=new URL(t.redirectUri);e.searchParams.set("error","access_denied"),e.searchParams.set("error_description","The user denied the request"),e.searchParams.set("state",t.state),window.location.href=e.toString()}catch{_("Unable to deny: redirect_uri is not a valid URL. Close this window or contact support.")}}}):m.jsx(C,{to:"/signin/auth",state:{origin:s.pathname+s.search},replace:!0})}export{ee as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as n}from"./liveblocks-CpylJur5.js";import{h as Y,u as z,g as Q,i as Z,j as d,n as H,o as J,p as I}from"./core-Dy5geFFY.js";import{eR as O,rl as P,qV as X,KT as v,qQ as T,bs as ee,bn as ae,bT as te,qR as se,KU as oe,KF as C,dE as re,uS as ne,KV as ce,vd as ie,f0 as le,e_ as de}from"./zeni-epic-state-CWKVVeO1.js";import{z as fe,W as me,_ as pe,k as ue,a as M,G as q,y as he,e as $,ao as be,s as Fe}from"./index-D8bcM0OI.js";import"./mui-DFcD3xcf.js";import ge from"./NotFoundScreen-D1PVRWbS.js";import{F as Ie}from"./FeaturePreviewScreen-DOvAQfOF.js";import{a as b}from"./sentry-CmBsv1n9.js";import{u as Ce}from"./useAskAiCfoHostNavButtonProps-C5D4FFaY.js";import{u as Te}from"./useInitialThreadRequest-BbaWe__z.js";import{t as Se}from"./routePaths-B4y5xfCn.js";import{M as ye}from"./MobileAppDrawer-BwfkZaly.js";import"./recharts-DcwEgdud.js";import"./analytics-DogagTok.js";import"./plaid-BQjvSm3J.js";import"./dnd-C6_ImgHk.js";import"./stripe-DMRn4zHo.js";import"./lottie-4KjPkDjS.js";import"./lexical-BnBssm1Q.js";import"./pdf-BdyTZZ2K.js";import"./utils-N7zgpLmj.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new s.Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="d8b86eb1-ff90-43b6-9efb-1cf5c54cd3a4",s._sentryDebugIdIdentifier="sentry-dbid-d8b86eb1-ff90-43b6-9efb-1cf5c54cd3a4")}catch{}})();const S=(s,e,a,o)=>{if(s!=e){const r=o??"";s!=null&&s.length>0?a(`../${e}${r}`,{replace:!0}):a(`${e}${r}`,{replace:!0})}},ke=H(function(s){const e=oe(s),a={},o=e.pandLReportWithForecast.uiState.nodeCollapseState;return Object.keys(o).forEach(r=>{a[r]=o[r]===!1}),{selectedTimeframe:e.selectedTimeframe,isForecastVsActualOn:e.isForecastVsActualOn,compareMode:e.compareMode,forecastList:e.forecastList,selectedForecast:e.selectedForecast,pandLreport:e.pandLReportWithForecast,scrollPosition:e.pandLReportWithForecast.uiState.scrollPosition,nodeOpenStatus:a,type:"name+balances_forecast",analytics:$}},function(s,e){return{onForecastSelectionChanged:(a,o)=>{s(v(a,o)),e.isPandLReportFetched(a)||s(T(a)),S(e.forecastIdFromUrlPath,a,e.navigate)},onTimeframeChanged:a=>{s(ie(a))},onForecastVsActualsCompareToggle:a=>{s(ce(a)),s(C({forecastId:e.forecastIdFromUrlPath,scrollPosition:{scrollLeft:0,scrollTop:0}}))},onCompareModeChanged:a=>{s(ne(e.firstMonthOfFY,a,0,[]))},onAccountBalanceClick:e.hasTransactionAccess!==!0?void 0:(a,o)=>{let r,c;const p=a.accountName===""?a.accountDescription:a.accountName;if(o.balanceTimeFrame==="month"||o.balanceTimeFrame==="quarter"?(r=o.balanceTimeFrame,c=re(o)):o.balanceTimeFrame==="year"?(r="quarter",c={startDate:o.endDate.startOf("quarter"),endDate:o.endDate}):console.error(`timeframe ${o.balanceTimeFrame} is not supported`),c!=null&&r!=null){const f=Se(e.tenantEmailDomain,a.accountId,a.accountType,p,r,c),u=Fe(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(f,{state:{pathnameStackToGoBack:u,referrer:"Forecast"}})}},onNodeCollapseToggled:(a,o)=>{s(C({forecastId:e.forecastIdFromUrlPath,nodeCollapseState:{nodeId:a,isCollapsed:o===!1}}))},onTableScroll:a=>{s(C({forecastId:e.forecastIdFromUrlPath,scrollPosition:a}))},onBackClick:()=>{e.navigate("../../")}}})(be);function U(){const s=Y(),e=z(),a=Q(),{forecastId:o,tenantEmailDomain:r}=Z(),[c,p]=b.useState(!1),[f,u]=b.useState(!1),h=fe.getSignedInUser(),y=d(t=>O(t)),w=y.company?.companyInfo.firstMonthOfFY??1,i=d(t=>P(t.forecastState,t.forecastListState)),l=d(t=>t.forecastListState.fetchState==="Completed"),k=d(t=>t.profitAndLossState),A=d(t=>t.reportUIOptionsState.selectedForecast),x=t=>k.pandLByForecastID[t]!=null&&se(t,k).reducedAllFetchState.fetchState==="Completed",{areTenantIdsInSync:F}=me();pe({isDataReady:l});const{isAiCfoAccessEnabled:_,onAskAiCfoClick:G}=Ce({mobileExploreReferrer:"Forecast"});b.useEffect(()=>{if(!c&&F)p(!0),l||e(X());else if(l&&!f){u(!0);const t=((m,L,R)=>L!=null?m.forecasts.findIndex(g=>g.id===L):R!=null?m.forecasts.findIndex(g=>g.id===R):m.forecasts.length>0?0:-1)(i,o,A?.id);t===-1&&o!=null?s("page-not-found",{replace:!0}):t!==-1&&t!=A?.index?(e(v(i.forecasts[t].id,t)),S(o,i.forecasts[t].id,s,a.search)):o==null&&t!==-1&&S(void 0,i.forecasts[t].id,s,a.search),t!==-1&&!x(i.forecasts[t].id)&&F&&e(T(i.forecasts[t].id))}},[c,p,e,l,i,f,u,P,T,F]);const D=ue(),W=D?.loggedInUserRole!=null&&ee(D.loggedInUserRole),{useFeatureGate:B}=M(),{isFeatureEnabled:E}=B(q.isReportsCommentingEnabled),N=Te(E?y?.companyId:void 0,{clearParams:l&&f}),[V,K]=b.useState(!1),j=t=>{K(t)};return n.jsxs(n.Fragment,{children:[l?n.jsx(he,{analytics:$,onLoad:t=>(m=>m.trackForecast())(t)}):null,n.jsx(ye,{isAppContentDrawerOpen:V,handleDrawerToggle:j}),n.jsx(ke,{firstMonthOfFY:w,tenantEmailDomain:r,forecastIdFromUrlPath:o,navigate:s,location:a,isPandLReportFetched:x,meetingUrl:te(`https://meetings.hubspot.com/svitlana-grankovska?firstname=${h?.firstName}&lastname=${h?.lastName}&email=${h?.userEmail}`),hasTransactionAccess:W,isAiCfoAccessEnabled:_,onAskAiCfoClick:G,isReportsCommentingEnabled:E,isZeniUser:ae(h),initialOpenThreadRequest:N,onClickMenuIcon:()=>{j(!0)}})]})}function Ke(){const s=d(c=>O(c)),{useFeatureGate:e}=M(),{isFeatureEnabled:a}=e(q.isDebitCardFeatureEnabled),o=le(a,s),r=de(s);return o===!0||r===!0?n.jsx(Ie,{}):n.jsxs(J,{children:[n.jsx(I,{path:"/",element:n.jsx(U,{})}),n.jsx(I,{path:"/:forecastId",element:n.jsx(U,{})}),n.jsx(I,{path:"/:forecastId/*",element:n.jsx(ge,{})})]})}export{Ke as PandLWithForecastRoutes,Ke as default};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CpylJur5.js";import{KO as te,eR as J,jI as z,f0 as X,e_ as ne,Ie as q,Ks as oe,tQ as Ee,KP as N,tE as Ie,tZ as ke,tT as ie,tI as re,tX as Pe,tU as je,KQ as le,vE as Le,KR as Te,fD as ve,KS as $,tN as ce,tL as de,u0 as Fe,c1 as Re}from"./zeni-epic-state-CWKVVeO1.js";import{J as pe,a as Y,G as E,z as H,a9 as ue,H as me,ak as ge,al as Ae,E as he,o as A,I as fe,D as Ce,am as Oe,W as Ve,_ as Ue,y as Ze,e as be,g as Be,s as Ke,an as $e,k as _e}from"./index-D8bcM0OI.js";import{D as ye,n as W,S as Se}from"./mui-DFcD3xcf.js";import ae from"./NotFoundScreen-D1PVRWbS.js";import{a as r}from"./sentry-CmBsv1n9.js";import{u as ee,i as Ge,j as m,h as ze,g as He,n as We,o as se,p as K}from"./core-Dy5geFFY.js";import{u as Qe}from"./useAskAiCfoHostNavButtonProps-C5D4FFaY.js";import{M as Me}from"./MobileAppDrawer-BwfkZaly.js";import"./recharts-DcwEgdud.js";import"./analytics-DogagTok.js";import"./plaid-BQjvSm3J.js";import"./dnd-C6_ImgHk.js";import"./stripe-DMRn4zHo.js";import"./lottie-4KjPkDjS.js";import"./lexical-BnBssm1Q.js";import"./pdf-BdyTZZ2K.js";import"./utils-N7zgpLmj.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]="c7a1a7c0-4d49-45fc-a6b7-3f21c2a1cc7c",a._sentryDebugIdIdentifier="sentry-dbid-c7a1a7c0-4d49-45fc-a6b7-3f21c2a1cc7c")}catch{}})();const Ne={overlayWidth:new he(100,100,48)},_=Ce.getLocalizedStrings().peoplePage.invitePage,Je=({companyId:a,managersListView:t,companyPassportView:l,classListView:n,mode:g,isEditPeopleDrawerOpen:o,closeDrawerHandler:y})=>{const h=pe(),p=ee(),[O,V]=r.useState(!1),[k,S]=r.useState(!1),{userId:w}=Ge(),c=m(e=>te(e)),u=m(e=>J(e)),D=m(e=>z(e)),{useFeatureGate:f}=Y(),{isFeatureEnabled:I}=f(E.isDebitCardFeatureEnabled),P=X(I,u),T=ne(u),v=q(u),U=oe(u),Z=!!u.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,x=!P&&D&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||l.fetchState!=="Completed"||a==null;if(H.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const C=()=>{p(N()),y()},F=()=>{O===!0?S(!0):C()},B=l.companyView?.controllers?.map(e=>e.user),{isFeatureEnabled:d}=f(E.isDepositAccountsFeatureEnabled),{isFeatureEnabled:j}=f(E.isChargeCardFeatureEnabled),L=ue(u,j,I),{isFeatureEnabled:R}=f(E.isTreasuryEnabled),b={peopleDetails:c,classList:n.classes,managersList:t.users,controllersList:B,mode:g,isZeniTenant:v,isAccountingClassesEnabled:D,isReimbursementDisabled:Z===!1,isZeniAccountsDisabled:d===!1,isChargeCardDisabled:L===!1,isTreasuryDisabled:R===!1,isLiteRoleDisabled:U===!1,isBankingOnlyTenant:P,isCardsOnlyTenant:T,onResetClick:C,onDeleteUser:e=>{p(re(e.userId,e.userRole.userRoleId))},onPeopleLocalDataUpdated:e=>{p(ie({peopleLocalData:e})),V(!0)},onSaveClick:()=>{p(g==="zeni_only"?Ie(a):ke(v))},onCloseClick:F,isLoading:x||c.person==null},i={onOkClick:()=>{S(!1),C()},onCancelClick:()=>{S(!1)}};return r.useEffect(()=>{x===!1&&w!=null&&p(Ee(w))},[x,w]),r.useEffect(()=>{c.updatePersonState.fetchState==="Completed"&&C()},[c.updatePersonState.fetchState]),s.jsx(ye,{anchor:"right",open:o,PaperProps:{style:{width:Ne.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:me.overlayDark,cursor:"pointer"}}},onClose:F,children:s.jsxs(Xe,{onClick:e=>e.stopPropagation(),children:[k===!0?s.jsx(ge,{titleComponent:s.jsx(we,{children:_.discardTitle}),descriptionComponent:s.jsx(De,{children:_.discardDescription}),primaryButtonText:_.discard,secondaryButtonText:_.no,action:i,isEditPopup:!0}):null,s.jsx(Ae,{...b})]})})},Xe=W(Se)`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`,we=W(fe.H6Regular)`
|
|
6
|
-
margin-top: ${A.sp7};
|
|
7
|
-
padding-left: ${A.sp8};
|
|
8
|
-
padding-right: ${A.sp8};
|
|
9
|
-
color: ${a=>a.theme.colors.primary};
|
|
10
|
-
word-break: break-word;
|
|
11
|
-
`,De=W(fe.LargeRegularSp)`
|
|
12
|
-
color: ${a=>a.theme.colors.hero};
|
|
13
|
-
padding-left: ${A.sp8};
|
|
14
|
-
padding-right: ${A.sp8};
|
|
15
|
-
margin-bottom: 30px;
|
|
16
|
-
margin-top: ${A.sp4};
|
|
17
|
-
white-space: pre-line;
|
|
18
|
-
`,qe={overlayWidth:new he(100,100,48)},G=Ce.getLocalizedStrings().peoplePage.invitePage,Ye=({companyId:a,managersListView:t,companyPassportView:l,classListView:n,mode:g,isInvitePeopleDrawerOpen:o,closeDrawerHandler:y})=>{const h=pe(),p=ee(),[O,V]=r.useState(!1),[k,S]=r.useState(!1),w=m(i=>te(i)),c=m(i=>J(i)),u=m(i=>z(i)),{useFeatureGate:D}=Y(),{isFeatureEnabled:f}=D(E.isDebitCardFeatureEnabled),I=X(f,c),P=ne(c),T=q(c),v=oe(c),U=!!c.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,Z=!I&&u&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||l.fetchState!=="Completed"||a==null;if(H.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const x=()=>{y(),p(N())},C=()=>{O===!0?S(!0):x()},F={onOkClick:()=>{S(!1),x()},onCancelClick:()=>{S(!1)}},B=l.companyView?.controllers.map(i=>i.user),{isFeatureEnabled:d}=D(E.isDepositAccountsFeatureEnabled),{isFeatureEnabled:j}=D(E.isChargeCardFeatureEnabled),L=ue(c,j,f),{isFeatureEnabled:R}=D(E.isTreasuryEnabled),b={classList:n.classes,managersList:t.users,controllersList:B,mode:g,isZeniTenant:T,onPeopleLocalDataUpdated:i=>{p(ie({peopleLocalData:i})),V(!0)},onResetClick:x,onSaveClick:()=>{p(g==="zeni_only"?Pe(a):je())},onCloseClick:C,peopleDetails:w,isAccountingClassesEnabled:u,isReimbursementDisabled:U===!1,isLiteRoleDisabled:v===!1,isZeniAccountsDisabled:d===!1,isChargeCardDisabled:L===!1,isTreasuryDisabled:R===!1,isBankingOnlyTenant:I,isCardsOnlyTenant:P,isLoading:Z};return r.useEffect(()=>{w.invitePersonState.fetchState==="Completed"&&(y(),p(N()))},[w.invitePersonState.fetchState]),s.jsx(ye,{anchor:"right",open:o,PaperProps:{style:{width:qe.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:me.overlayDark,cursor:"pointer"}}},onClose:C,children:s.jsxs(ea,{onClick:i=>i.stopPropagation(),children:[k===!0?s.jsx(ge,{titleComponent:s.jsx(we,{children:G.discardTitle}),descriptionComponent:s.jsx(De,{children:G.discardDescription}),primaryButtonText:G.discard,secondaryButtonText:G.no,action:F}):null,s.jsx(Oe,{...b})]})})},ea=W(Se)`
|
|
19
|
-
display: flex;
|
|
20
|
-
min-height: 100%;
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
`,aa=We(function(a,t){const l=le(a),n=H.getSignedInUser();return{data:l,loggedinUserId:n?.userId??"",isZeniTenant:t.isZeniTenant===!0,shouldFetchClasses:t.shouldFetchClasses,isZeniAdminUser:n?.userEmailDomain==="zeni.ai"&&t.isZeni===!0,isAccountingClassesEnabled:z(a),analytics:be}},function(a,t){const{navigate:l,companyId:n,shouldFetchClasses:g}=t;return{personAction:{onPersonDelete:(o,y)=>{a(re(o,y))},onResendInvite:o=>{a(Fe(o))},onReloadPeople:()=>{a(ce()),a(de(n,g))},onBackClick:()=>{l("../../")},onModeChange:o=>{a($({mode:o,searchText:"",sortKey:"name",sortOrder:"ascending"}))},onSearchTextChanged:o=>{a($({searchText:o}))}}}})($e);function M({isInvitePeopleDrawerOpen:a,isEditPeopleDrawerOpen:t}){const l=ze(),n=ee(),g=He(),{areTenantIdsInSync:o}=Ve(),y=H.getSignedInUser(),h=m(e=>J(e)),{useFeatureGate:p}=Y(),{isFeatureEnabled:O}=p(E.isDebitCardFeatureEnabled),V=m(e=>z(e)),k=!X(O,h)&&V,S=q(h),w=h?.tenantId,{tenantEmailDomain:c}=h,[u,D]=r.useState(!1),[f,I]=r.useState(!1),[P,T]=r.useState(!1),[v,U]=r.useState("off"),[Z,x]=r.useState(!1),C=e=>{x(e)},{isAiCfoAccessEnabled:F,onAskAiCfoClick:B}=Qe({mobileExploreReferrer:"People"}),d=m(e=>le(e));Ue({isDataReady:d.fetchState==="Completed"});const j=m(e=>Le(e.classState,e.classListState)),L=m(e=>Te(e.userState,e.userRoleState,e.userListViewState,"manager")),R=m(e=>ve(e)),b=h?.companyId;r.useEffect(()=>{u&&v===d.uiState.mode||!o||(n($({searchText:"",sortKey:"name",sortOrder:"ascending"})),U(d.uiState.mode),D(!0),n(ce()))},[u,y,w,n,d.uiState.mode,o]),r.useEffect(()=>{b!=null&&o&&n(de(b,k))},[b,k,o]),r.useEffect(()=>{I(a!=null&&a===!0),T(t!=null&&t===!0&&t)},[a,t]),r.useEffect(()=>{n($({searchText:"",sortKey:"name",sortOrder:"ascending"}))},[]);const i=()=>{I(!1),T(!1),l("../")};return s.jsxs(s.Fragment,{children:[d.fetchState==="Completed"?s.jsx(Ze,{analytics:be,onLoad:e=>e.trackPageLoaded(Be.Event.members)}):null,f===!0?s.jsx(Ye,{closeDrawerHandler:i,isInvitePeopleDrawerOpen:f,managersListView:L,companyPassportView:R,classListView:j,companyId:b,mode:d.uiState.mode}):null,P===!0?s.jsx(Je,{closeDrawerHandler:i,isEditPeopleDrawerOpen:P,managersListView:L,companyPassportView:R,classListView:j,companyId:b,mode:d.uiState.mode}):null,s.jsx(Me,{isAppContentDrawerOpen:Z,handleDrawerToggle:C}),s.jsx(aa,{navigate:l,signedInUser:y,isZeni:h.isZeni,isZeniTenant:S,peopleUIState:d.uiState,companyId:b,shouldFetchClasses:k,classList:j,managersView:L,peopleView:d,onInvitePeopleClick:()=>{l("./new")},onColumnSortConfigChanged:(e,Q)=>{n($({sortKey:e,sortOrder:Q}))},onRowClick:e=>{const Q=`/${c}/people/${encodeURIComponent(e)}/edit`,xe=Ke(g.state?.pathnameStackToGoBack,g.pathname);l(Q,{state:{pathnameStackToGoBack:xe}})},onClickMenuIcon:()=>{C(!0)},isAiCfoAccessEnabled:F,onAskAiCfoClick:B})]})}function Sa(){const a=_e();return Re(a?.loggedInUserRole??[])?s.jsxs(se,{children:[s.jsx(K,{path:"/",element:s.jsx(M,{})}),s.jsx(K,{path:"new",element:s.jsx(M,{isInvitePeopleDrawerOpen:!0})}),s.jsx(K,{path:":userId/edit",element:s.jsx(M,{isEditPeopleDrawerOpen:!0})}),s.jsx(K,{path:"*",element:s.jsx(ae,{})})]}):s.jsx(se,{children:s.jsx(K,{path:"*",element:s.jsx(ae,{})})})}export{Sa as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CpylJur5.js";import T from"./NotFoundScreen-D1PVRWbS.js";import{a as r}from"./sentry-CmBsv1n9.js";import{h as _,g as v,j as p,i as M,u as U,N as P,n as V,o as z,p as h}from"./core-Dy5geFFY.js";import{eR as F,QE as b,bq as B,bn as N,hp as O,gV as q}from"./zeni-epic-state-CWKVVeO1.js";import{w as Q,z as I,_ as $,cF as G}from"./index-D8bcM0OI.js";import"./mui-DFcD3xcf.js";import{u as H}from"./useAskAiCfoHostNavButtonProps-C5D4FFaY.js";import{M as J}from"./MobileAppDrawer-BwfkZaly.js";import"./recharts-DcwEgdud.js";import"./analytics-DogagTok.js";import"./plaid-BQjvSm3J.js";import"./dnd-C6_ImgHk.js";import"./stripe-DMRn4zHo.js";import"./lottie-4KjPkDjS.js";import"./lexical-BnBssm1Q.js";import"./pdf-BdyTZZ2K.js";import"./utils-N7zgpLmj.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]="525c40d1-f88c-4b82-a1f0-8d3a3b100dc6",e._sentryDebugIdIdentifier="sentry-dbid-525c40d1-f88c-4b82-a1f0-8d3a3b100dc6")}catch{}})();const K=V(function(e){const t=I.getSignedInUser(),c=e.tenantState.currentTenantId,o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:c??""},{aggregatedReportViewState:n}=b(e);return{authParams:o,isDisabled:!1,loggedInUser:t,aggregatedReport:n}},function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}})(G),L=()=>{const e=_(),t=v(),c=Q(),o=p(a=>F(a)),{aggregatedReportViewState:n}=p(a=>b(a)),{tenantEmailDomain:m}=M(),u=U(),l=I.getSignedInUser();if(l==null)throw new Error("Can't access this page without signing in...");const f=r.useRef(!1),[w,S]=r.useState(!1),C=B(o?.userRole??[]),k=o?.userRole?.includes("bookkeeping_admin")??!1,x=N(l),y=C||k||x,d=r.useCallback((a,i,E)=>{u(O({fromMonth:a,toMonth:i,cacheOverride:E}))},[]);r.useEffect(()=>{n?.fetchState==="Completed"&&f.current&&(u(q({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),f.current=!1)},[n?.fetchState]);const D=r.useCallback((a,i)=>{n!=null&&n?.fetchState==="In-Progress"||d(a,i,!0),f.current=!0},[n?.fetchState,d]),R=r.useCallback((a,i)=>{d(a,i,!1)},[d]),g=a=>{S(a)},{isAiCfoAccessEnabled:j,onAskAiCfoClick:A}=H({mobileExploreReferrer:"Performance"});return $({isDataReady:n?.fetchState==="Completed"}),y?s.jsxs(s.Fragment,{children:[s.jsx(J,{isAppContentDrawerOpen:w,handleDrawerToggle:g}),s.jsx(K,{navigate:e,location:t,themeState:c,currentTenant:o,signedInUser:l,tenantEmailDomain:m,onReload:D,onTimeRangeSelect:R,handleDrawerToggle:g,isAiCfoAccessEnabled:j,onAskAiCfoClick:A})]}):s.jsx(P,{to:`/${m}/dashboard`,replace:!0})};function ge(){return s.jsxs(z,{children:[s.jsx(h,{path:"*",element:s.jsx(L,{})}),s.jsx(h,{path:"*",element:s.jsx(T,{})})]})}export{ge as default};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CpylJur5.js";import{a as o}from"./sentry-CmBsv1n9.js";import{j as f,h as L,u as N,g as _,n as F}from"./core-Dy5geFFY.js";import{m as V,J as W,z as R,bb as M,E as U,W as $,_ as z,y as q,e as l,g as G,a7 as J,bc as K}from"./index-D8bcM0OI.js";import{f4 as Q,eR as X,Ng as I,Nh as Y,uI as Z,uy as g,f6 as ee,bO as ae,uD as re,Ni as ne}from"./zeni-epic-state-CWKVVeO1.js";import{D as te,e as se,n as oe,S as ie}from"./mui-DFcD3xcf.js";import{u as le}from"./useAskAiCfoHostNavButtonProps-C5D4FFaY.js";import{M as de}from"./MobileAppDrawer-BwfkZaly.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]="61aa171d-9dc6-49ba-932e-18b5d49d7005",e._sentryDebugIdIdentifier="sentry-dbid-61aa171d-9dc6-49ba-932e-18b5d49d7005")}catch{}})();const ce={overlayWidth:new U(100,100,30)},fe=({isReferralDrawerOpen:e,closeDrawerHandler:a})=>{const r=V(),n=W();if(R.getSignedInUser()==null)throw Error("Can't access How Referral works without signing in...");const i=()=>{a(!0)},u=f(d=>Q(d));return s.jsx(te,{anchor:"right",open:e,PaperProps:{style:{width:ce.overlayWidth.valuePercentage(n),boxShadow:"none"}},slotProps:{backdrop:{style:{opacity:.75,backgroundColor:r.colors.black,cursor:"pointer"}}},onClose:()=>i(),children:s.jsx(se,{in:e,direction:"left",children:s.jsx(ue,{onClick:d=>d.stopPropagation(),children:s.jsx(M,{onDismissClick:i,rewardsPlan:u.rewardsPlan})})})})},ue=oe(ie)`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`,P="refer-and-earn-status-update",we=F(function(e){const a=I(e),r=e.referralViewState.rewardsPlanFetchState,n=ae([a,r]);return{inviteList:a.invitations,uiState:a.uiState,pendingBonus:a.pendingBonus,earnedBonus:a.earnedBonus,pendingReferrals:a.pendingReferrals,fetchState:n.fetchState,rewardsPlan:a.rewardsPlan}},function(e,a){const{navigate:r}=a;return{onColumnSortConfigChanged:(n,i)=>{e(ne({sortOrder:i,sortkey:n}))},onInviteClick:()=>{l.trackRewardsPageClicked("invite via email"),r("../refer")},onHowItWorksClick:()=>{l.trackRewardsPageClicked("know more"),r("../how-it-works")},onResendInviteClick:n=>{l.trackRewardsPageClicked("resend invite"),e(re(n))},onBackClick:()=>{r("../",{relative:"path"})},onReloadInvitees:()=>{e(g(!0))},onCopyReferralLink:()=>{l.trackRewardsPageClicked("copy referral link")},onClickRefer:()=>{l.trackRewardsPageClicked("refer")},onEventReceived:n=>{n===P&&e(g(!0,!0))}}})(J(K));function ve({isReferralDrawerOpen:e}){const a=L(),r=N(),n=_(),[i,u]=o.useState(!1),[d,x]=o.useState(!1),[D,E]=o.useState(!1),[k,h]=o.useState(!1),w=R.getSignedInUser(),C=f(t=>X(t)),m=f(t=>I(t)),b=m.fetchState,p=f(t=>t.referralViewState.rewardsPlanFetchState),y=Y([m,p]),{areTenantIdsInSync:c}=$();o.useEffect(()=>{C?.rewardsLastViewedTime==null&&D===!1&&(r(Z()),E(!0))},[]),o.useEffect(()=>{!i&&b==="Not-Started"&&c&&(u(!0),r(g(!0)))},[b,r,c]),o.useEffect(()=>{!d&&p.fetchState==="Not-Started"&&c&&(x(!0),r(ee(!0)))},[p,r,c]),o.useEffect(()=>{h(e!=null&&e===!0)},[e]);const[j,A]=o.useState(!1),v=t=>{A(t)},{isAiCfoAccessEnabled:T,onAskAiCfoClick:B}=le({mobileExploreReferrer:"Rewards"});z({isDataReady:y===!0});const O={events:w?.userId!=null?[`private-encrypted-${w.userId}.${P}`]:[],eventCallback:(t,S,H)=>{H.onEventReceived(t)}};return s.jsxs(s.Fragment,{children:[y===!0?s.jsx(q,{analytics:l,onLoad:t=>(S=>{w!=null&&S.trackPageLoaded(G.Event.rewardsPageViewed)})(t)}):null,s.jsx(de,{isAppContentDrawerOpen:j,handleDrawerToggle:v}),k===!0?s.jsx(fe,{closeDrawerHandler:()=>{h(!1),a("..")},isReferralDrawerOpen:k}):null,s.jsx(we,{location:n,navigate:a,currentTenant:C,onClickMenuIcon:()=>{v(!0)},isAiCfoAccessEnabled:T,onAskAiCfoClick:B,...O})]})}export{ve as R};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-CpylJur5.js";import{a as j,z as w,aN as y,y as E,e as p,g as R,cQ as F,G as L}from"./index-D8bcM0OI.js";import"./mui-DFcD3xcf.js";import l from"./NotFoundScreen-D1PVRWbS.js";import{a as u}from"./sentry-CmBsv1n9.js";import{u as P,j as b,h as T,g as V,n as U,o as z,p as f}from"./core-Dy5geFFY.js";import{eR as A,Rg as C,NR as G,Rh as v,uI as Y,f6 as O,Ri as Q,uG as q}from"./zeni-epic-state-CWKVVeO1.js";import{R as x}from"./ReferralListScreen-DMSe6BHf.js";import"./recharts-DcwEgdud.js";import"./analytics-DogagTok.js";import"./plaid-BQjvSm3J.js";import"./dnd-C6_ImgHk.js";import"./stripe-DMRn4zHo.js";import"./lottie-4KjPkDjS.js";import"./lexical-BnBssm1Q.js";import"./pdf-BdyTZZ2K.js";import"./utils-N7zgpLmj.js";import"./useAskAiCfoHostNavButtonProps-C5D4FFaY.js";import"./MobileAppDrawer-BwfkZaly.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]="67186c81-87eb-4dc9-89ff-3ee75a209164",e._sentryDebugIdIdentifier="sentry-dbid-67186c81-87eb-4dc9-89ff-3ee75a209164")}catch{}})();const B=U(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,o=w.getSignedInUser();return{onDismissClick:()=>{e(v()),n("..")},onSendClick:()=>{if(o!=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(Q({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{o!=null&&p.trackInviteEmailClicked("cancel")}}})(F),H=()=>{const e=P(),[t,n]=u.useState(!1),[o,s]=u.useState(!1),r=b(i=>A(i)),c=T(),N=V(),{useDynamicConfig:g}=j(),d=w.getSignedInUser();if(d==null)throw Error("Can't access invite referral screen without signing in...");const m=b(i=>C(i)),_=d?.firstName!=null?d.firstName:"User",{configValue:h}=g(y.zeniCardsConfig),{configValue:k}=g(y.zeniAccountsConfig),D=G(k);u.useEffect(()=>{e(v()),r?.rewardsLastViewedTime==null&&o===!1&&(e(Y()),s(!0))},[]),u.useEffect(()=>{t||m.fetchState!=="Not-Started"||(n(!0),e(O(!0)))},[m.fetchState,e]);const I=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[m.fetchState==="Completed"?a.jsx(E,{analytics:p,onLoad:i=>(S=>S.trackPageLoaded(R.Event.inviteEmailViewed))(i)}):null,a.jsx(B,{navigate:c,location:N,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:D.maxAnnualPercentageYield})]})};function fe(){const{useFeatureGate:e}=j(),{isFeatureEnabled:t}=e(L.isReferralFeatureEnabled);return a.jsxs(z,{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{fe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as f}from"./liveblocks-CpylJur5.js";import{a as u,b as T,q as A}from"./sentry-CmBsv1n9.js";import{u as D,h as z,j as l,g as M,N as O,n as j}from"./core-Dy5geFFY.js";import{u as P,z as s,m as F,e as E,D as K,f as N,g as _,M as B,h as J,C as V,i as v}from"./index-D8bcM0OI.js";import{eR as Y,JY as $,JZ as q,eY as R,fp as W,K2 as H,fN as Z,cS as G,K3 as b,K4 as Q,K5 as X,bT as y}from"./zeni-epic-state-CWKVVeO1.js";import"./mui-DFcD3xcf.js";import{u as ee}from"./useDeviceId-Dpq7OEQK.js";import{f as te}from"./analyticsHelper-qYMcDtpJ.js";import{t as ne}from"./getLocaleForTenant-Bg-B9fDc.js";import"./recharts-DcwEgdud.js";import"./analytics-DogagTok.js";import"./plaid-BQjvSm3J.js";import"./dnd-C6_ImgHk.js";import"./stripe-DMRn4zHo.js";import"./lottie-4KjPkDjS.js";import"./lexical-BnBssm1Q.js";import"./pdf-BdyTZZ2K.js";import"./utils-N7zgpLmj.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="e23feb85-7aa0-4f71-8e99-a4dea793c1e6",t._sentryDebugIdIdentifier="sentry-dbid-e23feb85-7aa0-4f71-8e99-a4dea793c1e6")}catch{}})();const ie=j(function(t,i){const d=t.tenantState.fetchState,g=t.tenantState.sendEmailMagicLinkFetchState,{magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:c}=i;return{googleClientId:v.googleClientId,microsoftClientId:v.microsoftClientId,signInError:t.tenantState.error?.error,fetchState:d,sendMagicLinkStatus:g,magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:c}},function(t,i){const{location:d,navigate:g}=i;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,a)=>{A({message:`OAuth error from provider ${a} with error ${n}`,level:"error",tags:{authProvider:a,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,a)=>{const c=a==="google"?window.location.origin:window.location.origin+window.location.pathname;t(X({authCode:n,oauthProvider:a,appType:"web",redirectUri:y(c),sourceUri:y(d.state!=null?d.state.origin:"")}))},getSignedInUser:()=>s.getSignedInUser(),onSignedInCallback:()=>{const n=d.state?.origin;n&&n!=="/"?g(n,{replace:!0}):window.open(window.location.origin,"_self")},sendMagicLink:n=>{const{deviceId:a}=i;a!=null&&(s.saveMagicLinkEmail(n),t(Q(n,a)))},clearSignInError:()=>{t(b())}}})(V),ae=T.memo(ie);function ve({setTenantEmailDomain:t}){const i=D(),d=z(),{clearAllLoading:g}=P(),n=s.getSignedInUser();u.useLayoutEffect(()=>{g()},[g]);const a=ee(),c=l(e=>e.tenantState.magicLinkCodeVerifier),{sendEmailMagicLinkFetchState:h,accountLocked:C,accountUnlockTime:k}=l(e=>e.tenantState),p=l(e=>e.tenantState.fetchState),L=l(e=>e.tenantState.activeTenantFetchState.fetchState),S=l(e=>e.tenantState.signInState),o=l(e=>e.tenantState.loggedInUser),r=l(e=>Y(e)),I=l(e=>$(e)),m=M(),w=F().mode,U=m.state?.magicLinkExpired,x=m.state?.magicLinkAlreadyUsed;if(u.useEffect(()=>{h.fetchState==="Completed"&&c!=null&&(E.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(c))},[h.fetchState,c]),u.useEffect(()=>{t(void 0)},[]),u.useEffect(()=>{S!=="In-Progress"||p!=="Completed"&&L!=="Completed"||o?.zeniSessionId==null||r==null||(s.savePayNowInfoTooltip(!0,o.zeniSessionId),s.saveSignedInUserWithSession(o,o.zeniSessionId),s.saveSignedInUserTenants(q(I.tenantsInOrder),o.zeniSessionId),R(o.userId,o.zeniSessionId,r.tenantId),i(W(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(H("Completed")),K.updateAppLocaleID(ne(r)),te(o,r,w,void 0,I.tenantsInOrder),Z().then(()=>{const e=J();e!=null&&N(e)}),setTimeout(()=>{E.trackLogin(_.Event.loginSuccess,o.authProvider??"google",G(r.productSettings))},2e3))},[S,p,L,o,r,I,w,m.state,i]),S==="In-Progress"&&p==="Completed"&&o?.zeniSessionId!=null&&r!=null||n!=null){const e=m.state?.origin??"/";return f.jsx(O,{to:e,state:{...m.state,origin:""}})}return f.jsxs(f.Fragment,{children:[f.jsx(ae,{magicLinkExpired:!!U,magicLinkAlreadyUsed:!!x,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),C===!0&&k!=null?f.jsx(B,{onClose:()=>i(b()),unlockDate:k}):null]})}export{ve as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CpylJur5.js";import{a as n}from"./sentry-CmBsv1n9.js";import{u,g as m,h as g,N as p}from"./core-Dy5geFFY.js";import{z as f,B as y,t as h,e as l,g as b}from"./index-D8bcM0OI.js";import{fS as x,fT as I,Kk as w}from"./zeni-epic-state-CWKVVeO1.js";import{n as j}from"./mui-DFcD3xcf.js";import"./recharts-DcwEgdud.js";import"./analytics-DogagTok.js";import"./plaid-BQjvSm3J.js";import"./dnd-C6_ImgHk.js";import"./stripe-DMRn4zHo.js";import"./lottie-4KjPkDjS.js";import"./lexical-BnBssm1Q.js";import"./pdf-BdyTZZ2K.js";import"./utils-N7zgpLmj.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]="09495237-999e-4971-a511-2c548a6a2aa3",e._sentryDebugIdIdentifier="sentry-dbid-09495237-999e-4971-a511-2c548a6a2aa3")}catch{}})();function $(){const e=u(),t=m(),a=g(),i=n.useRef(!1),c=f.isSignedIn(),r=t.state?.message==="logout",o=r||c;return n.useEffect(()=>{o&&!i.current&&(i.current=!0,setTimeout(()=>{try{f.clearAll(),e(x()),e(I(!1)),w(),h.reset(),l.trackLogout(b.Event.logoutSuccess),l.resetUserIdentity()}catch(d){console.error("Error during sign out:",d)}finally{r||a("/signin/auth",{replace:!0})}},0))},[o,r]),o?s.jsx(k,{children:s.jsx(y,{fetchState:"In-Progress"})}):s.jsx(p,{to:"../",replace:!0})}const k=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
|
-
`;export{$ as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as n}from"./liveblocks-CpylJur5.js";import se from"./NotFoundScreen-D1PVRWbS.js";import{a as c}from"./sentry-CmBsv1n9.js";import{h as M,u as Z,j as f,g as ne,i as oe,N as ie,n as re,o as ce,p as g}from"./core-Dy5geFFY.js";import{G6 as O,G9 as le,G3 as de,eR as Y,Rj as H,Gn as J,G0 as pe,GT as ue,GM as ke,Rk as W,Rl as N,FY as me,FV as ge,qL as fe,qz as he,kg as Se,Gh as Ge,Rm as Ie,Gy as be,Gv as Te,Gc as Ee,Gs as Ce,Gr as De}from"./zeni-epic-state-CWKVVeO1.js";import{z as C,cR as ye,w as Re,a as xe,G as b,r as X,s as w,y as je,e as V,g as we,cS as ve,i as q,at as Fe}from"./index-D8bcM0OI.js";import{n as Be}from"./mui-DFcD3xcf.js";import{u as Pe}from"./useInitialThreadRequest-BbaWe__z.js";import{M as Ue}from"./MobileAppDrawer-BwfkZaly.js";import Le from"./TaskListScreen-B_GxqcnW.js";import"./recharts-DcwEgdud.js";import"./analytics-DogagTok.js";import"./plaid-BQjvSm3J.js";import"./dnd-C6_ImgHk.js";import"./stripe-DMRn4zHo.js";import"./lottie-4KjPkDjS.js";import"./lexical-BnBssm1Q.js";import"./pdf-BdyTZZ2K.js";import"./utils-N7zgpLmj.js";import"./useAskAiCfoHostNavButtonProps-C5D4FFaY.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]="67be747c-f509-476c-abe6-b6e00cb67fad",e._sentryDebugIdIdentifier="sentry-dbid-67be747c-f509-476c-abe6-b6e00cb67fad")}catch{}})();function $e(){const e=M(),t=Z(),s=C.getSignedInUser(),{cannedResponses:u,fetchState:r,saveFetchState:d}=f(o=>o.cannedResponsesState),l=c.useCallback(()=>{t(O())},[t]),k=c.useCallback((o,h,S)=>{t(le({name:o,content:h,cannedResponseId:S}))},[t]),a=c.useCallback(o=>{t(de({cannedResponseId:o}))},[t]);if(s==null)throw Error("Can't access quick responses page without signing in...");return n.jsx(ye,{cannedResponses:u,isLoading:r==="In-Progress"||r==="Not-Started",isSaving:d==="In-Progress",onBackClick:()=>e(-1),onDelete:a,onFetch:l,onSave:k})}let A,_=[];const ze=re(function(e,t){const{location:s,taskGroupId:u}=t,r=W(e,t.taskId),d=Y(e),l=r.taskGroupId??u,k=l!=null?N(e.taskGroupState,l):void 0,a=C.getSignedInUser(),o=d.tenantId,h={userId:a?.userId??"",sessionId:a?.zeniSessionId??"",tenantId:o??""},S=H(e),{tenantEmailDomain:D}=d,T=r.recurringSourceTaskId,y=T!=null?`${q.appUrl}/${D}/tasks/${encodeURIComponent(T)}`:void 0;var G;return{taskDetailSelectorView:r,authParams:h,isZeniUser:C.isZeniUser(),userGroupList:((G=e.userGroupsState.userGroupByUserGroupId)!==A&&(A=G,_=Object.values(G)),_),isNewClicked:s.state?.message==="comingFromTaskListPage",filesEndPoint:Fe.fileMicroServiceBaseUrl,companyName:t.currentTenant.companyName,companyId:t.currentTenant.companyId,currentUrl:`${q.appUrl}${t.location.pathname}`,cannedResponses:e.cannedResponsesState.cannedResponses,isCannedResponsesLoading:e.cannedResponsesState.fetchState==="In-Progress",recurringSourceTaskUrl:y,tagListView:S,taskGroupName:l!=null&&k!=null&&k.isDefault===!1?k.name:void 0,taskGroupList:e.taskGroupViewState.taskGroupsIds.map(p=>N(e.taskGroupState,p)).filter(p=>p!=null&&!p.isDeleted).map(p=>({id:p.id,name:p.name,isDefault:p.isDefault}))}},function(e,t){const{taskId:s,navigate:u,currentTenant:r,location:d,taskGroupId:l}=t,{tenantEmailDomain:k}=r;return{onSaveChangesToLocalStore:a=>{e(De({taskDetailLocalData:a,taskId:s}))},onSaveDetailClick:a=>{e(Ce(s,a??l))},onArchiveTaskClick:()=>{t.taskId!=null&&e(Ee(t.taskId))},onSnoozeTask:(a,o)=>{e(Te(a,o))},onUnsnoozeTask:a=>{e(be(a))},onDismissClick:()=>{if(d.state?.message==="triggerBackClick"){const a=X(d.state?.pathnameStackToGoBack),o=a.poppedPathname??"../../dashboard";u(o,{state:{pathnameStackToGoBack:a.newStack}})}else{const a=v(k),o=w(d.state?.pathnameStackToGoBack,d.pathname);u(a,{state:{pathnameStackToGoBack:o}})}e(Ie({taskId:s}))},onDeleteTaskClick:()=>{e(Ge(s))},updateFilesEntity:a=>{e(Se({files:a}))},onDeleteFile:a=>{e(he(a))},onEditFileName:(a,o)=>{e(fe(a,o.split(".")[0]))},onReloadTaskDetailPage:()=>{e(J(!1,s))},onCreateTagClick:a=>{e(ge(a,s))},onDeleteTagClick:a=>{e(me(a,s))},onFetchCannedResponses:()=>{e(O())},onManageTemplatesClick:()=>{u(`/${r.tenantEmailDomain}/tasks/quick-responses`)}}})(ve);function j(){const e=M(),t=Z(),s=ne(),u=Re(),{taskId:r,taskGroupId:d}=oe(),l=f(i=>Y(i)),k=Pe(l?.companyId),{useFeatureGate:a}=xe(),{isFeatureEnabled:o}=a(b.isTaskSnoozeEnabled),{isFeatureEnabled:h}=a(b.isTaskVisibilityEnabled),{isFeatureEnabled:S}=a(b.isTaskCannedResponsesEnabled),{isFeatureEnabled:D}=a(b.isTaskRecurringParentEnabled),{isFeatureEnabled:T}=a(b.isTaskGroupAssigneesEnabled),[y,G]=c.useState(!1),[p,K]=c.useState(!1),[F,Q]=c.useState(!1),[B,ee]=c.useState(!1),[P,R]=c.useState(!1),I=c.useRef(!1),E=f(i=>i.taskListState.updateTasksFetchState.fetchState),U=f(i=>H(i)),L=f(i=>i.taskGroupViewState.fetchState);c.useEffect(()=>{p||(K(!0),t(J(!1,r)))},[p,t]),c.useEffect(()=>{F||U.fetchState==="Completed"||(Q(!0),t(pe()))},[F,t,U.fetchState]),c.useEffect(()=>{B||L==="Completed"||(ee(!0),t(ue()))},[B,t,L]);const ae=c.useCallback(()=>{r!=null&&(I.current=!1,t(ke([r],null,{isArchived:!1})),R(!0))},[t,r]);c.useEffect(()=>{if(P)if(E!=="In-Progress"){if(I.current){if(E==="Error")return R(!1),void(I.current=!1);if(E==="Completed"){R(!1),I.current=!1;const{tenantEmailDomain:i}=l;if(s.state?.message==="triggerBackClick"){const m=X(s.state?.pathnameStackToGoBack);e(m.poppedPathname??"../../dashboard",{state:{pathnameStackToGoBack:m.newStack}})}else{const m=v(i);e(m,{state:{pathnameStackToGoBack:w(s.state?.pathnameStackToGoBack,s.pathname)}})}}}}else I.current=!0},[P,E,l,s,e]);const $=f(i=>W(i,r)),x=$.fetchState,z=C.getSignedInUser();if(z==null)throw Error("Can't access task detail page without signing in...");if(x==="Error"&&$.error?.code===400){const{tenantEmailDomain:i}=l,m=v(i),te=w(s.state?.pathnameStackToGoBack,s.pathname);return n.jsx(ie,{to:m,state:{pathnameStackToGoBack:te}})}return n.jsxs(n.Fragment,{children:[x==="Completed"?n.jsx(je,{analytics:V,onLoad:i=>(m=>m.trackPageLoaded(we.Event.taskDetailPage))(i)}):null,n.jsxs(Ne,{children:[n.jsx(Ue,{isAppContentDrawerOpen:y,handleDrawerToggle:i=>{G(i)}}),n.jsx(ze,{analytics:V,currentTenant:l,handleZeniLogoClick:()=>{u.toggle()},initialOpenThreadRequest:k,location:s,loggedInUser:z,navigate:e,taskGroupId:d,taskId:r,taskDetailFetchState:x,onUnarchiveTaskClick:ae,isTaskSnoozeEnabled:o,isTaskVisibilityEnabled:h,isTaskCannedResponsesEnabled:S,isTaskRecurringParentEnabled:D,isTaskGroupAssigneesEnabled:T})]})]})}const Ne=Be.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
|
-
`,v=e=>`/${e}/tasks`;function ia(){return n.jsxs(ce,{children:[n.jsx(g,{path:"/new",element:n.jsx(j,{})}),n.jsx(g,{path:"/new/:taskGroupId",element:n.jsx(j,{})}),n.jsx(g,{path:"/group/:taskGroupId",element:n.jsx(Le,{})}),n.jsx(g,{path:"/quick-responses",element:n.jsx($e,{})}),n.jsx(g,{path:"/:taskId",element:n.jsx(j,{})}),n.jsx(g,{path:"*",element:n.jsx(se,{})})]})}export{ia as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./liveblocks-CpylJur5.js";import{a as l}from"./sentry-CmBsv1n9.js";import{s as u,u as h,j as y,N as I}from"./core-Dy5geFFY.js";import{Kh as b,eY as w,Ad as j}from"./zeni-epic-state-CWKVVeO1.js";import{z as f,B as x,H as S,I as D}from"./index-D8bcM0OI.js";import{n as p}from"./mui-DFcD3xcf.js";import"./recharts-DcwEgdud.js";import"./analytics-DogagTok.js";import"./plaid-BQjvSm3J.js";import"./dnd-C6_ImgHk.js";import"./stripe-DMRn4zHo.js";import"./lottie-4KjPkDjS.js";import"./lexical-BnBssm1Q.js";import"./pdf-BdyTZZ2K.js";import"./utils-N7zgpLmj.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]="853b3dab-8ee7-4346-9918-d39ae04516c8",e._sentryDebugIdIdentifier="sentry-dbid-853b3dab-8ee7-4346-9918-d39ae04516c8")}catch{}})();const W=()=>{const[e]=u(),t=e.get("code")??"",i=e.get("state")??"",c=e.get("profileId")??"",[n,g]=l.useState(!1),a=h(),s=y(m=>b(m)),r=f.getSignedInUser(),d=f.getSignedInUserTenantWithId(i);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 w(r.userId,r.zeniSessionId,d?.tenantId),l.useEffect(()=>{n||(g(!0),a(j(t,c,i)))},[n,a]),s.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:s.error?.message??""})}):(s.fetchState==="Completed"&&window.close(),o.jsx(x,{fetchState:"In-Progress"}))},E=p.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
|
-
`,_=p(D.LargeRegular)`
|
|
10
|
-
display: flex;
|
|
11
|
-
color: ${S.important};
|
|
12
|
-
`;export{W as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as n}from"./index-D8bcM0OI.js";import"./mui-DFcD3xcf.js";import"./sentry-CmBsv1n9.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]="00adc275-10e6-4125-98f6-6a9a60be4c31",e._sentryDebugIdIdentifier="sentry-dbid-00adc275-10e6-4125-98f6-6a9a60be4c31")}catch{}})();function l(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{l as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as u}from"./sentry-CmBsv1n9.js";import{h as b,g,i as h,j as S}from"./core-Dy5geFFY.js";import{eR as y}from"./zeni-epic-state-CWKVVeO1.js";import{V as k,J as C,c as A,Y as T,$ as I,s as w,a1 as D}from"./index-D8bcM0OI.js";import"./mui-DFcD3xcf.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]="8d7fdc40-a8ee-4433-a78e-aa9c38963373",e._sentryDebugIdIdentifier="sentry-dbid-8d7fdc40-a8ee-4433-a78e-aa9c38963373")}catch{}})();function j(e){const{mobileExploreReferrer:a}=e,{isAiCfoOpen:r,setIsAiCfoOpen:i}=k(),s=b(),o=g(),{tenantEmailDomain:n}=h(),d=C(),f=D(d),l=A(),p=T(),m=S(t=>t.tenantState.fetchState==="Completed"||t.tenantState.activeTenantFetchState.fetchState==="Completed"?y(t):void 0),c=m?.masterTOSInfo?.isMasterTOSAccepted??!1;return{isAiCfoAccessEnabled:p&&l&&!r,onAskAiCfoClick:u.useCallback(()=>{if(n!=null)if(c)if(f){const t=w(o.state?.pathnameStackToGoBack,o.pathname);s(`/${n}/ai-cfo/explore`,{state:{pathnameStackToGoBack:t,referrer:a}})}else i(!0);else I({location:o,navigate:s,mergeState:{referrer:a}})},[c,f,o,a,s,i,n])}}export{j as u};
|