@zeniai/web-app-ui 5.2.18-qa → 5.2.19-next
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-D14Xrcr-.js +1 -0
- package/dist/assets/AddressScreen-DM3Cytik.js +9 -0
- package/dist/assets/AiCfoScreen-C7VAZJ1A.js +22 -0
- package/dist/assets/{BillPayApprovalRoutes-8Ll-z-xT.js → BillPayApprovalRoutes-C9icCWAb.js} +1 -1
- package/dist/assets/{BillPayRoutes-pfP5wo_C.js → BillPayRoutes-DffUP74I.js} +12 -12
- package/dist/assets/{BusinessVerificationPageScreen-MOMZNf2n.js → BusinessVerificationPageScreen-qG6q7Wb6.js} +2 -2
- package/dist/assets/CardsAiCfoScreen-BahaNrfe.js +14 -0
- package/dist/assets/{ChargeCardRoutes-CkepWz7M.js → ChargeCardRoutes-SaV3T-oM.js} +10 -10
- package/dist/assets/CompanyPassportScreen-CQUCnlmj.js +1 -0
- package/dist/assets/ConnectionAuthScreen-DxTli2yc.js +11 -0
- package/dist/assets/CustomerOnboardingAuthScreen-DCVZbjhG.js +1 -0
- package/dist/assets/CustomerOnboardingRoutes-Ber4B0KW.js +30 -0
- package/dist/assets/{DashboardRoutes-MCNi0Cm3.js → DashboardRoutes-CDwIkoUk.js} +4 -4
- package/dist/assets/{DefaultTenantHome-B8QXwYfi.js → DefaultTenantHome-CLCoE5KB.js} +1 -1
- package/dist/assets/DomesticWireDetailScreen-Cy5XGzM3.js +18 -0
- package/dist/assets/DrawerScreen-CFq_1rdP.js +1 -0
- package/dist/assets/EntityDetailRoutes-lCFdhj0N.js +1 -0
- package/dist/assets/ExpenseAutomationRoutes-BnRbsSz6.js +25 -0
- package/dist/assets/FeaturePreviewScreen-1q69VsC1.js +1 -0
- package/dist/assets/HubSpotOAuthCallbackScreen-X0-DSjZb.js +1 -0
- package/dist/assets/MagicLinkRoutes-Dfdz57KO.js +72 -0
- package/dist/assets/MagicLinkSignInScreen-3rm3mwQp.js +12 -0
- package/dist/assets/MobileAppDrawer-uvkpUvp_.js +1 -0
- package/dist/assets/NotFoundScreen-DR4zbgK0.js +1 -0
- package/dist/assets/{NotificationRoutes-CghqA--C.js → NotificationRoutes-Cd2QvtFH.js} +1 -1
- package/dist/assets/OAuthConsentScreen-B3JPBskg.js +1 -0
- package/dist/assets/PandLWithForecastRoutes-W3OrOyHu.js +1 -0
- package/dist/assets/PeopleRoutes-DNg7Ihue.js +22 -0
- package/dist/assets/PerformanceRoutes-o3ofDHl6.js +1 -0
- package/dist/assets/{Preview-C3t9OASa.js → Preview-GrKYlvV7.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-BxSTUR6Z.js → QBOConnectionScreen-Bky1RVSb.js} +1 -1
- package/dist/assets/ReimbursementApprovalRoutes-DGVz-GX1.js +1 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-BCDSmsvv.js → ReimbursementApprovalRuleDetailScreen-4DU8eod7.js} +1 -1
- package/dist/assets/{ReimbursementRoutes--vh1Dgkn.js → ReimbursementRoutes-C1MfITXr.js} +8 -8
- package/dist/assets/{ReportsRoutes-B0L7XL0D.js → ReportsRoutes-CoMGWCHx.js} +1 -1
- package/dist/assets/RewardsRoutes-e7w8wtnX.js +1 -0
- package/dist/assets/ScreenRoutes-KCqCdpwt.js +2 -0
- package/dist/assets/SettingsRoutes-BZ_pWEty.js +57 -0
- package/dist/assets/{SetupPagesScreen-z1fhy2nD.js → SetupPagesScreen-D_WJHeIH.js} +5 -5
- package/dist/assets/SignInScreen-BNoucZFL.js +1 -0
- package/dist/assets/SignOutScreen-CMf4hwn3.js +9 -0
- package/dist/assets/TaskListScreen-C_rNr9Jk.js +9 -0
- package/dist/assets/TaskRoutes-CpISGdNU.js +9 -0
- package/dist/assets/{TransactionDetailRoutes-Ds78cNrz.js → TransactionDetailRoutes-CmH9g66g.js} +1 -1
- package/dist/assets/TransactionDetailScreen-BAzuDRZQ.js +5 -0
- package/dist/assets/{TransactionListRoutes-CbJW0jN6.js → TransactionListRoutes-CoFY3pbX.js} +1 -1
- package/dist/assets/TreasuryRoutes--lIehLfz.js +37 -0
- package/dist/assets/{VendorsRoutes-WaC1MSeH.js → VendorsRoutes-BlvpjJIF.js} +15 -15
- package/dist/assets/WiseConfirmationScreen-C62-fzuC.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-ChKECbqX.js → ZeniAccountRoutes-DsEwo2kw.js} +10 -10
- package/dist/assets/ZeniAccountStatementScreen-DsIySC9T.js +9 -0
- package/dist/assets/{accountMappingHelper-B-kf-Qnc.js → accountMappingHelper-DF_wZmqr.js} +1 -1
- package/dist/assets/{analytics-DtYJ-EGT.js → analytics-CsrWBSkJ.js} +1 -1
- package/dist/assets/{analyticsHelper-DcIIaR44.js → analyticsHelper-eo4F52XS.js} +1 -1
- package/dist/assets/{core-DnZcjy6X.js → core-Ct1Na3r4.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-CjxujRw-.js → decodeURIComponentSafe-Dl7JnLtd.js} +1 -1
- package/dist/assets/{dnd-eoV-_JYH.js → dnd-DXTfJSUb.js} +1 -1
- package/dist/assets/{empty-Dq2hLrCm.js → empty-C9Atwx5F.js} +1 -1
- package/dist/assets/{empty-DkIaLxCd.js → empty-enRUfXAJ.js} +1 -1
- package/dist/assets/{emptyVideoElement-BFB9pddL.js → emptyVideoElement-BWmmLkB3.js} +1 -1
- package/dist/assets/epic-CPUd8eYu.js +2 -0
- package/dist/assets/getLocaleForTenant-C9iKXyPU.js +1 -0
- package/dist/assets/{index-Bar5dTpy.js → index-BBFNuY8-.js} +15820 -16753
- package/dist/assets/{index-nn6YvIGD.js → index-C5jp_Nos.js} +1 -1
- package/dist/assets/{index-DUKU6sVX.js → index-CpAcGISI.js} +1 -1
- package/dist/assets/index-Czu7h9lW.css +1 -0
- package/dist/assets/{index-D_CZgugN.js → index-DD29fIsd.js} +1 -1
- package/dist/assets/{index-Wtyhkk6J.js → index-DHN0iULb.js} +1 -1
- package/dist/assets/{index-C8_nlYo6.js → index-D_W5SS2j.js} +2 -2
- package/dist/assets/{index-Dmm4l94W.js → index-Lktm9qH-.js} +1 -1
- package/dist/assets/{index-CiCTnO2S.js → index-UCOMlrxB.js} +1 -1
- package/dist/assets/{lexical-CSqytB8g.js → lexical-5nbymAIm.js} +1 -1
- package/dist/assets/liveblocks-P0DntAgT.js +54 -0
- package/dist/assets/{lottie-Dz5luYQG.js → lottie-7Wgw-CzS.js} +1 -1
- package/dist/assets/{mui-sr6zger7.js → mui-SSWNL1tt.js} +1 -1
- package/dist/assets/{pathToGoBack-DpO-gBzq.js → pathToGoBack-wtH43kNb.js} +1 -1
- package/dist/assets/{pdf-BNSeVvBm.js → pdf-COhrBMN3.js} +3 -3
- package/dist/assets/{pdf-lib-DwpnbCVp.js → pdf-lib-DerHPYIF.js} +1 -1
- package/dist/assets/{plaid-QvRDxgoN.js → plaid-CdfVkhIW.js} +1 -1
- package/dist/assets/{pusher-senIjtt-.js → pusher-hTFVCAHJ.js} +1 -1
- package/dist/assets/{react-CBRcLxW-.js → react-C3avayV7.js} +1 -1
- package/dist/assets/{react-CiyNePZ5.js → react-CB88nZl5.js} +1 -1
- package/dist/assets/{react-OAPKV4uC.js → react-CYqO4utD.js} +1 -1
- package/dist/assets/{react-ClmbMdlp.js → react-Ci3GJXKz.js} +1 -1
- package/dist/assets/{react-CuKQRzYG.js → react-DAcDxy2I.js} +1 -1
- package/dist/assets/{react-BGDkRw8Y.js → react-G31LEvJE.js} +1 -1
- package/dist/assets/{recharts-Bim6mdwu.js → recharts-KVNUr0cO.js} +1 -1
- package/dist/assets/routePaths-Dvh0MCMy.js +1 -0
- package/dist/assets/{sentry-DFI2OQU2.js → sentry-CfbcqWq3.js} +1 -1
- package/dist/assets/{url-p6YiHaLn.js → url-CbJg2s3J.js} +1 -1
- package/dist/assets/{url-4e0ZWhZq.js → url-FHfZtBCR.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-zVG2a35W.js → useAiCfoDashboardSuggestedQuestionsChips-BLXE02N5.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-BeiXTDS4.js +1 -0
- package/dist/assets/useCashManagementBanner-D5vpE0Fa.js +1 -0
- package/dist/assets/{useChargeCardPusherEvents-0JCfQ36-.js → useChargeCardPusherEvents-B55cb89o.js} +1 -1
- package/dist/assets/{useDeviceId-DasP_-mC.js → useDeviceId-BAVWaoiW.js} +1 -1
- package/dist/assets/{useEmailConnectResultRefresh-2wnXRew_.js → useEmailConnectResultRefresh-DZEhjfaj.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-DW3cIl_2.js → useInitialThreadRequest-J5ElkQVA.js} +1 -1
- package/dist/assets/{utils-cHxIh7E8.js → utils-BmRSZi-a.js} +1 -1
- package/dist/assets/withTransactionSidePanel-u9hB8oy5.js +21 -0
- package/dist/assets/{zeni-epic-state-m4zoW3ek.js → zeni-epic-state-x9uZgubN.js} +6 -6
- package/dist/index.html +1 -1
- package/package.json +6 -9
- package/dist/assets/AddressRoutes-C8XYQ13t.js +0 -1
- package/dist/assets/AddressScreen-DCby60TJ.js +0 -9
- package/dist/assets/AiCfoScreen-BV-DOocp.js +0 -22
- package/dist/assets/CardsAiCfoScreen-C6GxFeya.js +0 -14
- package/dist/assets/CompanyPassportScreen-CF1WCnT9.js +0 -1
- package/dist/assets/ConnectionAuthScreen-CBqhtWai.js +0 -11
- package/dist/assets/CustomerOnboardingAuthScreen-DkQZlHKP.js +0 -1
- package/dist/assets/CustomerOnboardingRoutes-B4msejL-.js +0 -30
- package/dist/assets/DomesticWireDetailScreen-CTMJQoQi.js +0 -18
- package/dist/assets/DrawerScreen-B34R7bdb.js +0 -1
- package/dist/assets/EntityDetailRoutes-D5iLxjcN.js +0 -1
- package/dist/assets/ExpenseAutomationRoutes-Bem3Gc7u.js +0 -25
- package/dist/assets/FeaturePreviewScreen-O1rkkX9g.js +0 -1
- package/dist/assets/HubSpotOAuthCallbackScreen-Bzg62ZZu.js +0 -1
- package/dist/assets/MagicLinkRoutes-CSc1SUSL.js +0 -72
- package/dist/assets/MagicLinkSignInScreen-BVxqZuYQ.js +0 -12
- package/dist/assets/MobileAppDrawer-BoTcj0FT.js +0 -1
- package/dist/assets/NotFoundScreen-D7eT4TBn.js +0 -1
- package/dist/assets/OAuthConsentScreen-BzSEu8Ts.js +0 -1
- package/dist/assets/PandLWithForecastRoutes-BfaNIbxL.js +0 -1
- package/dist/assets/PeopleRoutes-B44-Upod.js +0 -22
- package/dist/assets/PerformanceRoutes-Bv8XOGTE.js +0 -1
- package/dist/assets/ReimbursementApprovalRoutes-D_w-vyXX.js +0 -1
- package/dist/assets/RewardsRoutes-4lrT5UUo.js +0 -1
- package/dist/assets/ScreenRoutes-x2ZEU7XA.js +0 -2
- package/dist/assets/SettingsRoutes-CLQ49ROa.js +0 -57
- package/dist/assets/SignInScreen-CbCM_7kJ.js +0 -1
- package/dist/assets/SignOutScreen-CPqtbwhE.js +0 -9
- package/dist/assets/TaskListScreen-ChqMZGua.js +0 -9
- package/dist/assets/TaskRoutes-DqVkv1wh.js +0 -9
- package/dist/assets/TransactionDetailScreen-DTD0gbHD.js +0 -5
- package/dist/assets/TreasuryRoutes-BzPs578Q.js +0 -37
- package/dist/assets/WiseConfirmationScreen-DP0HNbpz.js +0 -12
- package/dist/assets/ZeniAccountStatementScreen-nptp5yY4.js +0 -9
- package/dist/assets/epic-Blr6eiMV.js +0 -2
- package/dist/assets/getLocaleForTenant-DIOFG6A5.js +0 -1
- package/dist/assets/index-Cx4f0JbF.css +0 -1
- package/dist/assets/liveblocks-DKL6viSK.js +0 -54
- package/dist/assets/routePaths-BQ28bs96.js +0 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-DZXDQgDN.js +0 -1
- package/dist/assets/useCashManagementBanner-DM17aUQt.js +0 -1
- package/dist/assets/withTransactionSidePanel-CBujpiDq.js +0 -21
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-BBFNuY8-.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-CfbcqWq3.js"><link rel="modulepreload" crossorigin href="/assets/core-Ct1Na3r4.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-x9uZgubN.js"><link rel="modulepreload" crossorigin href="/assets/mui-SSWNL1tt.js"><link rel="modulepreload" crossorigin href="/assets/analytics-CsrWBSkJ.js"><link rel="modulepreload" crossorigin href="/assets/utils-BmRSZi-a.js"><link rel="stylesheet" crossorigin href="/assets/index-Czu7h9lW.css"></head><body style="margin:0"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><div class="app-shell-loader" id="app-shell-loader"><div class="app-shell-sidebar"><div class="app-shell-sidebar-group"><div class="app-shell-bar zeni-logo" style="width:96px;height:20px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:78px;height:16px"></div><div class="app-shell-bar" style="width:46px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:110px;height:16px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div><div class="app-shell-bar" style="width:64px;height:16px"></div></div></div><div class="app-shell-main"><div class="app-shell-navbar"><div class="app-shell-bar" style="width:106px;height:27px"></div><div class="app-shell-bar" style="width:111px;height:32px"></div></div><div class="app-shell-logo"><svg width="96" height="96" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.768 0.0270284C16.571 -0.055168 16.348 0.0572476 16.2913 0.267574C16.2713 0.342517 16.2489 0.417461 16.2253 0.491196C16.0094 1.15723 15.6459 1.76645 15.148 2.27776C14.3056 3.14203 13.1847 3.61949 11.9918 3.6207H11.9883C10.7978 3.6207 9.67689 3.14565 8.83445 2.2838C8.33653 1.7737 7.97077 1.16448 7.75367 0.499657C7.73007 0.425922 7.70765 0.350979 7.68641 0.276035C7.62978 0.065709 7.40678 -0.0454978 7.20974 0.0366985C6.05463 0.522624 4.98565 1.17899 4.0323 1.97436C3.91195 2.07468 3.87301 2.24512 3.93083 2.39259C3.9792 2.51589 4.03112 2.63797 4.08539 2.75764C4.51133 3.70894 5.10364 4.5853 5.84815 5.34682C7.48937 7.0246 9.66863 7.9493 11.9871 7.9493H11.9954C14.3162 7.94689 16.4978 7.01855 18.1379 5.33595C18.8812 4.57321 19.4711 3.69564 19.8959 2.74434C19.9502 2.62347 20.0009 2.50138 20.0493 2.37809C20.1071 2.23062 20.0682 2.06018 19.9478 1.95985C18.9933 1.16569 17.9231 0.511745 16.768 0.0270284Z"/><path d="M19.9102 21.2422C19.4843 20.2933 18.8931 19.4194 18.151 18.6603C16.5086 16.9801 14.3223 16.053 12.0038 16.0578C8.50304 16.0614 5.48371 18.1961 4.11031 21.2603C4.05722 21.38 4.0053 21.5009 3.95575 21.623C3.89675 21.7704 3.93569 21.9421 4.05722 22.0436C5.01175 22.8366 6.08073 23.4893 7.23466 23.9728C7.4317 24.055 7.65352 23.9438 7.71134 23.7335C7.73139 23.6573 7.75381 23.5836 7.77859 23.5086C8.37207 21.6979 10.0416 20.3888 12.0073 20.3864H12.012C13.2025 20.3864 14.3234 20.8614 15.1659 21.7233C15.6626 22.231 16.026 22.8378 16.2431 23.5002C16.2679 23.5739 16.2903 23.6489 16.3104 23.7238C16.3682 23.9341 16.59 24.0453 16.787 23.9619C17.9422 23.476 19.01 22.8209 19.9633 22.0255C20.0837 21.9252 20.1226 21.7535 20.0648 21.606C20.0164 21.4828 19.9645 21.3631 19.9102 21.2422Z"/><path d="M0.132148 10.1666C0.158105 9.98769 0.305591 9.85352 0.482575 9.85352L23.5093 9.81726C23.6863 9.81726 23.8338 9.95022 23.8609 10.1291C23.9518 10.7347 23.999 11.3548 23.999 11.9858C24.0001 12.6131 23.9541 13.2284 23.8668 13.8292C23.8408 14.0081 23.6934 14.1422 23.5164 14.1422L0.489654 14.1773C0.312671 14.1773 0.165185 14.0443 0.138047 13.8654C0.0471956 13.2598 0 12.6397 0 12.0088C0 11.3826 0.0448358 10.7673 0.132148 10.1666Z"/></svg></div></div></div></body></html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/web-app-ui",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.19-next",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/**/*"
|
|
6
6
|
],
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"@sentry/core": "^9.42.1",
|
|
28
28
|
"@sentry/react": "^9.42.1",
|
|
29
29
|
"@stripe/stripe-js": "^4.4.0",
|
|
30
|
-
"@zeniai/client-analytics": "2.0.
|
|
31
|
-
"@zeniai/client-epic-state": "5.1.
|
|
32
|
-
"@zeniai/web-components": "4.2.
|
|
30
|
+
"@zeniai/client-analytics": "2.0.40",
|
|
31
|
+
"@zeniai/client-epic-state": "5.1.45",
|
|
32
|
+
"@zeniai/web-components": "4.2.43",
|
|
33
33
|
"color": "3.1.3",
|
|
34
34
|
"cross-fetch": "^4.0.0",
|
|
35
35
|
"crypto-js": "4.2.0",
|
|
@@ -60,8 +60,7 @@
|
|
|
60
60
|
"url-parse": "^1.5.10",
|
|
61
61
|
"vite-plugin-minify": "^2.1.0",
|
|
62
62
|
"vite-plugin-optimize-css-modules": "^1.2.0",
|
|
63
|
-
"web-vitals": "^1.1.1"
|
|
64
|
-
"reselect": "4.1.8"
|
|
63
|
+
"web-vitals": "^1.1.1"
|
|
65
64
|
},
|
|
66
65
|
"devDependencies": {
|
|
67
66
|
"@babel/plugin-transform-runtime": "^7.22.7",
|
|
@@ -110,9 +109,7 @@
|
|
|
110
109
|
"vite-plugin-svgr": "^4.5.0",
|
|
111
110
|
"vite-tsconfig-paths": "^5.1.4",
|
|
112
111
|
"vitest": "^4.1.0",
|
|
113
|
-
"web-vitals": "^3.5.0"
|
|
114
|
-
"@testing-library/react": "^16.3.2",
|
|
115
|
-
"jsdom": "^29.1.1"
|
|
112
|
+
"web-vitals": "^3.5.0"
|
|
116
113
|
},
|
|
117
114
|
"eslintConfig": {
|
|
118
115
|
"extends": "react-app"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-DKL6viSK.js";import{A as d}from"./AddressScreen-DCby60TJ.js";import i from"./NotFoundScreen-D7eT4TBn.js";import"./sentry-DFI2OQU2.js";import{o as s,p as r}from"./core-DnZcjy6X.js";import"./zeni-epic-state-m4zoW3ek.js";import"./recharts-Bim6mdwu.js";import"./index-Bar5dTpy.js";import"./mui-sr6zger7.js";import"./analytics-DtYJ-EGT.js";import"./plaid-QvRDxgoN.js";import"./dnd-eoV-_JYH.js";import"./stripe-cKAAJElX.js";import"./lottie-Dz5luYQG.js";import"./lexical-CSqytB8g.js";import"./pdf-BNSeVvBm.js";import"./utils-cHxIh7E8.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="cd0ff2b4-1e27-4329-addf-f475e5a9db34",t._sentryDebugIdIdentifier="sentry-dbid-cd0ff2b4-1e27-4329-addf-f475e5a9db34")}catch{}})();function _(){return e.jsxs(s,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(d,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(d,{})}),e.jsx(r,{path:"*",element:e.jsx(i,{})})]})}export{_ as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as n}from"./liveblocks-DKL6viSK.js";import{a as h}from"./sentry-DFI2OQU2.js";import{h as T,u as _,g as E,i as j,j as B,n as D}from"./core-DnZcjy6X.js";import{J as $,E as M,z as L,D as N,B as K,F,e as C,g as m,p as z,k as b,q as R}from"./index-Bar5dTpy.js";import{Nf as k,i1 as U,e$ as q,Ng as G,c7 as O,Nh as V,lr as H}from"./zeni-epic-state-m4zoW3ek.js";import{n as J}from"./mui-sr6zger7.js";import Q from"./NotFoundScreen-D7eT4TBn.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]="e8e8af68-0926-4e46-8044-3cb675a0ac64",e._sentryDebugIdIdentifier="sentry-dbid-e8e8af68-0926-4e46-8044-3cb675a0ac64")}catch{}})();const W=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
|
-
`,X=D((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 d=k(e,o);return{addressToEdit:d.address,loadingState:d.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,d=R(r?.pathnameStackToGoBack);let s=d.poppedPathname??w();const u=r?.queryParams;if(u){const g=new URLSearchParams(u).toString();g&&(s=`${s}?${g}`)}o(s,{state:{pathnameStackToGoBack:d.newStack}})}};return{onSubmitHandler:a=>{const r=Y(a);e(H({addressType:c,addressToCreate:r})),C?.trackSaveAddressClicked(m.Event.saveAddressClicked,{street:a.street.addressString,city:a.city,state:a.state,country:a.country.selectedOption??"",postalCode:a.postalCode,suite:a.suite,secondaryInfo:a.secondaryInfo}),l(t.bankAccountContext)},onCancel:()=>{l(t.bankAccountContext)}}}))(z);function ne({isSubPage:e,hideAddressSubTitle:t=!1,hideAddressBackButton:o=!1,dontShowSaveConfirmation:i,accountContext:c,addressTypeParam:l}){const a=T(),r=_(),d=E(),{addressId:s,addressType:u}=j(),g=$(),I=M(),v=L.getSignedInUser(),[f,x]=h.useState(s==null),p=B((S=>s!=null?k(S,s).fetchState:"Not-Started")),A=N();if(v==null)throw Error("Can't access address page without signing in...");const P=S=>S.trackPageLoaded(s!=null?m.Event.editAddress:m.Event.addAddress),y=l??u;return h.useEffect((()=>{f||s==null||(x(!0),r(U(s,!1)))}),[f,s,r]),y==null||y.match(/(user_address|company_address|company_registered_address|vendor_address|officer_([1-9]|10)_address)$/g)?!f&&p==="Not-Started"||f&&p==="In-Progress"?n.jsx(K,{fetchState:p,style:{backgroundColor:I.colors.grey5}}):s!=null&&p==="Error"?(a(`${w(1)}/new`,{replace:!0}),n.jsx(n.Fragment,{})):n.jsxs(n.Fragment,{children:[n.jsx(F,{analytics:C,onLoad:P}),n.jsx(W,{windowSize:g,children:n.jsx(X,{location:d,navigate:a,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:t,addressId:s,addressType:y,dontShowSaveConfirmation:i,bankAccountContext:c,roleMap:A?.loggedInUserRoleMap})})]}):n.jsx(Q,{})}const w=(e=2)=>{let t="../";for(let o=0;o<e;o++)t=`${t}../`;return t},Y=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{ne as A,Y as t};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-DKL6viSK.js";import{a as l}from"./sentry-DFI2OQU2.js";import{u as we,h as Pe,g as ye,j as X,i as Ee,n as Te}from"./core-DnZcjy6X.js";import{Y as ve,de as Ae,z as Qe,J as _e,df as Ue,dg as Oe,bb as Z,dh as ae,di as je,ba as oe,q as V,F as B,e as I,dj as R,dk as Fe,dl as Le,a3 as De,g as Be,a9 as Re,dm as Me,dn as Ve,a4 as $e,dp as qe,dq as Ge,dr as Ne,r as ze,b6 as He,ds as We}from"./index-Bar5dTpy.js";import{gr as Je,e_ as ne,e$ as Ye,iJ as Ke,Uw as Xe,fu as Ze,iT as et,iP as tt,f0 as M,fB as st,ga as at,gb as ot,g3 as nt,j7 as ee,g7 as te,gc as it,gd as rt,ge as lt,gf as dt,gg as ct,gh as ut}from"./zeni-epic-state-m4zoW3ek.js";import{D as mt,n as k,S as pt,P as ht}from"./mui-sr6zger7.js";import{u as St}from"./useAiCfoDashboardSuggestedQuestionsChips-zVG2a35W.js";import{p as gt}from"./pathToGoBack-DpO-gBzq.js";import"./recharts-Bim6mdwu.js";import"./analytics-DtYJ-EGT.js";import"./plaid-QvRDxgoN.js";import"./dnd-eoV-_JYH.js";import"./stripe-cKAAJElX.js";import"./lottie-Dz5luYQG.js";import"./lexical-CSqytB8g.js";import"./pdf-BNSeVvBm.js";import"./utils-cHxIh7E8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="fc489416-b0f6-4ded-b4a9-0498cc810337",e._sentryDebugIdIdentifier="sentry-dbid-fc489416-b0f6-4ded-b4a9-0498cc810337")}catch{}})();const ie="chat-response-generated",ft=Te((function(e,n){const a=ne(e),p=n.isSubmitting,o=a.uiState?.currentChatSessionId,S=o!=null?st(e.aiCfoState,o):[],d=Ve(e,{allUsers:n.allUsers,onCardPolicyVendorSearchTextChange:n.onCardPolicyVendorSearchTextChange});return{showSampleQuestions:n.sessionFromUrl==="explore"&&a.uiState.currentChatSessionId==null,aiCfoView:a,isSubmitting:p,isNewChatSession:n.sessionFromUrl==="new_chat"||n.sessionFromUrl==="explore",isFullView:!0,tableDownloadEndPoint:`${$e}/tableDownload`,emailLinkQuestion:n.emailLinkQuestion,autoSubmitEmailLinkQuestion:n.autoSubmitEmailLinkQuestion,onEmailLinkQuestionProcessed:n.onEmailLinkQuestionProcessed,routedInitialQuestionSource:n.routedInitialQuestionSource,routedInitialQuestionSuggestionIndex:n.routedInitialQuestionSuggestionIndex,exploreSuggestedPromptQuestions:n.exploreSuggestedPromptQuestions,exploreSuggestedPromptQuestionsLoading:n.exploreSuggestedPromptQuestionsLoading,isFileUploadEnabled:n.isFileUploadEnabled,isUploadPromoVisible:n.isUploadPromoVisible,onUploadPromoClose:n.onUploadPromoClose,skills:at(e).skills,syntheticAnswers:S,resolveSyntheticAnswerCardTile:Ge(e),resolveSyntheticAnswerPolicyTile:qe(e),...d}}),(function(e,n){const{location:a,currentTenant:p,userId:o,navigate:S,currentChatSessionId:d,allSessionsWithOrderedQuestionAnswers:x,isAiCardCreationEnabled:T,isCardPolicyEnabled:v,setIsAiCfoOpen:b}=n,h=p.tenantEmailDomain;return{onEventReceived:(s,t)=>{if(s===ie&&typeof t.text=="string"&&typeof t.metadata=="object"){const c=t,g=lt(c.type),m=c.metadata.chat_session_id??null,{currentChatSession:i,currentQuestionAnswer:w,currentQuestionAnswerSummary:A}=oe(x,m);g!=="answer"?I.trackAICFOChatResponseGenerated(g,w?.question.questionText??"",c.text,m,We(A,i),c.metadata.message_id??null):I.trackAICFOChatAnswerGenerated(c.text,w?.question.questionText??"",(c.follow_up_questions?.length??0)>0,!!c.assumptions,!!c.insights,c.visualization!=null,dt(c.visualization?.type??"")??null,m,c.summarized_title,c.metadata.message_id??null),e(ct({chatSessionId:c.metadata.chat_session_id,responseType:g,fetchState:{fetchState:"Completed",error:void 0}})),e(ut({chatSessionId:c.metadata.chat_session_id,answerPayload:c,userId:o}))}},onSubmit:(s,t,c,g,m)=>{s&&He(e,s,t,d,x,o,g,c,void 0,m)},onFetchSkills:()=>{e(rt())},updateCurrentInput:s=>{e(te(s))},onStopSubmit:()=>{},onUpdateScrollYOffset:s=>{e(it(s))},onSelectSampleQuestion:()=>{},onBackClick:()=>{S(-1)},onCloseClick:()=>{const s=V(a.state?.pathnameStackToGoBack),t=s.poppedPathname??gt(1);S(t,{state:{...a.state,pathnameStackToGoBack:s.newStack}}),e(te(""))},togglePageView:()=>{const s=V(a.state?.pathnameStackToGoBack),t=s.poppedPathname??`/${p.tenantEmailDomain}/dashboard`;S(t,{state:{...ae(a.state),pathnameStackToGoBack:s.newStack,message:"open_ai_cfo_drawer"}}),b(!0)},onCopy:()=>{},onThumbsUp:(s,t)=>{d!=null&&t?.messageId!=null&&e(ee(d,t.messageId,"positive",t.questionText,t.answerText))},onThumbsDown:(s,t)=>{d!=null&&t?.messageId!=null&&e(ee(d,t.messageId,"negative",t.questionText,t.answerText))},onTogglePageView:()=>{S(-1)},onNewChatClick:()=>{d!=null&&e(nt());const s=ze(a.state?.pathnameStackToGoBack,a.pathname);S(`/${p.tenantEmailDomain}/ai-cfo/new_chat`,{state:{pathnameStackToGoBack:s.slice(0,-1),referrer:"Sidebar"}})},onToggleCotCollapsed:(s,t)=>{e(ot({questionAnswerId:s,isCollapsed:t}))},onMenuClick:n.onMenuClick,...Ne(e,{isAiCardCreationEnabled:T,isCardPolicyEnabled:v,currentChatSessionId:d,onAfterCardsCreationSubmit:()=>{b(!0),S(`/${h}/cards`,{state:{...a.state}})},onAfterCardPolicySubmit:()=>{b(!0),S(`/${h}/cards/policy`,{state:{...a.state}})}})}}))(Re(Me)),Rt=({isFileUploadEnabled:e})=>{const{setIsAiCfoOpen:n}=ve(),a=we(),p=Pe(),o=ye(),[S,d]=l.useState(!1),{allUsers:x,isAiCardCreationEnabled:T,isCardPolicyEnabled:v,onCardPolicyVendorSearchTextChange:b}=Ae();l.useEffect((()=>{a(Je())}),[a]);const h=X((r=>ne(r))),s=Qe.getSignedInUser(),{session_id:t}=Ee(),c=_e(),g=De(c),m=X((r=>Ye(r))),i=h.uiState.currentChatSessionId,w=m.tenantEmailDomain,{handleUploadPromoClose:A,isUploadPromoVisible:re}=Ue({isFileUploadEnabled:e,tenantEmailDomain:w}),Q=Oe({currentTenant:m,currentChatSessionId:i,aiCfoView:h}),{isSuggestedQuestionsLoading:le,suggestedPromptQuestions:de}=St(),P=o.state,y=P?.aiCfoInitialQuestion,$=!!P?.aiCfoShouldSubmit;l.useEffect((()=>{const r=o.state;if(r?.[Z]!==!0)return;d(!0);const f={...r};delete f[Z],p(o,{replace:!0,state:f})}),[o.pathname,o.search,o.state,p]);const[ce,_]=l.useState(null),[ue,U]=l.useState(!1),[me,O]=l.useState(void 0),[pe,j]=l.useState(void 0),q=l.useRef(!1);l.useEffect((()=>{if(!q.current&&y!=null&&y!==""){const r=o.state;_(y),U($),O(r?.aiCfoInitialSubmissionSource!=null?r.aiCfoInitialSubmissionSource:void 0);const f=r?.aiCfoSuggestionIndex;j(typeof f=="number"?f:void 0),q.current=!0}}),[y,$,o.state]);const he=l.useCallback((()=>{_(null),U(!1),O(void 0),j(void 0),p(o.pathname,{replace:!0,state:ae(o.state)})}),[o.pathname,o.state,p]),G=l.useMemo((()=>new URLSearchParams(o.search)),[o.search]),N=G.get("ref")??P?.aiCfoRef,F=G.get("emailRefId")??P?.aiCfoEmailRefId,z=l.useRef(!1);l.useEffect((()=>{z.current||N!=="month-end-email"||F==null||i!=null||s==null||(a(Ke("controller",s.userId,F,"MONTH_END_EMAIL")),z.current=!0)}),[N,F,i,a,s]);const E=h.uiState.lastContextMessage;l.useEffect((()=>{E!=null&&E!==""&&i!=null&&(_(E),U(!0),O(void 0),j(void 0),a(Xe()))}),[E,i,a]);const Se=m.masterTOSInfo,C=Se?.isMasterTOSAccepted??!1,{visitedSessions:H}=je(i),L=h.fetchState,D=h.uiState.chatSessionsNextPageToken.hasMore||!h.uiState.chatSessionsFirstPageFetched,W=i!=null?h.fetchChatSessionHistoryByChatSessionId?.[i]?.fetchState??"Not-Started":"Not-Started",J=i==null||(h.uiState.chatHistoryNextPageToken[i]?.hasMore??!0),Y=h.allSessionsWithOrderedQuestionAnswers,{currentSessionQuestionAnswers:ge}=oe(Y,i),fe=ge.length===0;l.useEffect((()=>{C||g||p("../dashboard",{state:{...o.state,message:"open_ai_cfo_drawer"}})}),[C,g,p,o.state]);const Ce=l.useCallback((()=>{const r=V(o.state?.pathnameStackToGoBack),f=m.tenantEmailDomain;p(r.poppedPathname??(f!=null?`/${f}/dashboard`:".."),{state:{...o.state,pathnameStackToGoBack:r.newStack}})}),[m.tenantEmailDomain,o.state,p]);l.useEffect((()=>{i!=null&&t!==i&&p(`../ai-cfo/${i}`,{state:{...o.state}})}),[i,t]),l.useEffect((()=>{t!=null&&i==null&&t!=="new_chat"&&t!=="explore"&&a(Ze({sessionId:t,agentId:"controller"}))}),[]);const be=l.useMemo((()=>({events:H.map((r=>`private-encrypted-chat-${r}.${ie}`)),eventCallback:(r,f,xe)=>xe.onEventReceived(r,f)})),[H]);l.useEffect((()=>{L!=="In-Progress"&&D&&a(et())}),[L,D,a]),l.useEffect((()=>{i!=null&&W!=="In-Progress"&&J&&s!=null&&L==="Completed"&&!D&&a(tt(i,s.userId))}),[W,J,i,s,a]);const K=r=>r.trackAICFOOnboardingScreenStateChanged("open","first_visit");if(s==null||t==null)throw Error("Can't access AI Controller page without signing in...");const Ie=i!=null&&h.responseStateByChatSessionId?.[i]?.answer?.fetchState==="In-Progress";if(!C&&g)return u.jsxs(bt,{children:[u.jsx(B,{analytics:I,onLoad:K}),Q.drawerElement,u.jsx(It,{children:u.jsx(se,{children:u.jsx(R,{isTOSAccepted:!1,acceptMasterTOSState:h.masterTOSAcceptanceState,onCloseClick:Ce,onCompleteClick:()=>{m.userRoleId!=null&&a(M(m.userRoleId))}})})})]});const ke=u.jsxs(u.Fragment,{children:[S&&!C?u.jsx(B,{analytics:I,onLoad:K}):null,u.jsx(R,{isTOSAccepted:C,acceptMasterTOSState:h.masterTOSAcceptanceState,showHeader:!1,togglePageView:C?()=>d(!1):void 0,onCloseClick:()=>d(!1),onCompleteClick:()=>{C||m.userRoleId==null||a(M(m.userRoleId)),d(!1)}})]});return u.jsxs(u.Fragment,{children:[u.jsxs(Ct,{children:[u.jsx(B,{analytics:I,onLoad:r=>r.trackPageLoaded(Be.Event.aiCFOPage)}),g&&Q.drawerElement,u.jsx(ft,{...be,currentChatSessionId:i,allSessionsWithOrderedQuestionAnswers:Y,allUsers:x,isAiCardCreationEnabled:T,isCardPolicyEnabled:v,openOnboardingPage:()=>d(!0),userId:s.userId,setIsAiCfoOpen:n,navigate:p,sessionFromUrl:t,location:o,isSubmitting:Ie,isEmptyChatWithSession:fe,currentTenant:m,emailLinkQuestion:ce??void 0,autoSubmitEmailLinkQuestion:ue,onEmailLinkQuestionProcessed:he,routedInitialQuestionSource:me,routedInitialQuestionSuggestionIndex:pe,onCardPolicyVendorSearchTextChange:b,onMenuClick:g?Q.open:void 0,isFileUploadEnabled:e,isUploadPromoVisible:re,onUploadPromoClose:A,exploreSuggestedPromptQuestions:de,exploreSuggestedPromptQuestionsLoading:le}),S&&g?u.jsx(mt,{anchor:"right",open:S,transitionDuration:250,PaperProps:{component:kt,style:{width:"100%"}},slotProps:{backdrop:{style:{backgroundColor:"transparent",cursor:"pointer"}}},onClose:()=>d(!1),children:u.jsx(se,{onClick:r=>r.stopPropagation(),children:u.jsx(R,{isTOSAccepted:C,acceptMasterTOSState:h.masterTOSAcceptanceState,onCloseClick:()=>d(!1),onCompleteClick:()=>{C||m.userRoleId==null||a(M(m.userRoleId)),d(!1)}})})}):null]}),S&&!g?u.jsx(Fe,{open:S,onClose:()=>d(!1),children:u.jsx(Le,{children:ke})}):null]})},se=k(pt)`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`,Ct=k.div`
|
|
6
|
-
height: 100vh;
|
|
7
|
-
width: 100%;
|
|
8
|
-
`,bt=k.div`
|
|
9
|
-
height: 100vh;
|
|
10
|
-
width: 100%;
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
min-height: 0;
|
|
14
|
-
`,It=k.div`
|
|
15
|
-
flex: 1;
|
|
16
|
-
min-height: 0;
|
|
17
|
-
display: flex;
|
|
18
|
-
flex-direction: column;
|
|
19
|
-
`,kt=k(ht)`
|
|
20
|
-
box-shadow: ${({theme:e})=>e.colors.elevation2};
|
|
21
|
-
color: ${({theme:e})=>e.colors.grey4};
|
|
22
|
-
`;export{Rt as default};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import{j as S}from"./liveblocks-DKL6viSK.js";import{a as l}from"./sentry-DFI2OQU2.js";import{u as pe,h as he,g as fe,j as M,i as Ce,n as ge}from"./core-DnZcjy6X.js";import{Y as Se,de as be,z as ye,df as Pe,dh as z,di as Ie,ba as W,F as we,e as $,dj as H,dt as Ee,a as Te,g as ke,a9 as Ae,dm as xe,dn as Ue,a4 as _e,dr as Oe,b6 as ve,ds as Qe}from"./index-Bar5dTpy.js";import{gr as Fe,e_ as G,e$ as $e,fu as De,iT as Le,iP as Ve,f0 as B,gb as je,g3 as Re,g7 as N,gc as qe,ge as Me,gf as He,gg as Be,gh as Ne}from"./zeni-epic-state-m4zoW3ek.js";import{D as ze,n as L,P as We,S as Ge}from"./mui-sr6zger7.js";import"./recharts-Bim6mdwu.js";import"./analytics-DtYJ-EGT.js";import"./plaid-QvRDxgoN.js";import"./dnd-eoV-_JYH.js";import"./stripe-cKAAJElX.js";import"./lottie-Dz5luYQG.js";import"./lexical-CSqytB8g.js";import"./pdf-BNSeVvBm.js";import"./utils-cHxIh7E8.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]="0e2ed2df-c222-48fc-94f2-dda8a2144c8f",e._sentryDebugIdIdentifier="sentry-dbid-0e2ed2df-c222-48fc-94f2-dda8a2144c8f")}catch{}})();const Y="chat-response-generated",Z="cards/ask",J="card_policy_hero";function D(e){return`/${e}/cards`}function K(e){return`/${e}/cards/policy`}const Ye=ge((function(e,a){const o=G(e),c=a.isSubmitting,d=Ue(e,{allUsers:a.allUsers,onCardPolicyVendorSearchTextChange:a.onCardPolicyVendorSearchTextChange});return{showSampleQuestions:a.sessionFromUrl==="new_chat"&&o.uiState.currentChatSessionId==null,aiCfoView:o,isSubmitting:c,isNewChatSession:a.sessionFromUrl==="new_chat",isFullView:!0,tableDownloadEndPoint:`${_e}/tableDownload`,emailLinkQuestion:a.emailLinkQuestion,autoSubmitEmailLinkQuestion:a.autoSubmitEmailLinkQuestion,onEmailLinkQuestionProcessed:a.onEmailLinkQuestionProcessed,isFileUploadEnabled:a.isFileUploadEnabled,isUploadPromoVisible:a.isUploadPromoVisible,onUploadPromoClose:a.onUploadPromoClose,...d}}),(function(e,a){const{location:o,currentTenant:c,userId:d,navigate:m,currentChatSessionId:h,allSessionsWithOrderedQuestionAnswers:E,isAiCardCreationEnabled:A,isCardPolicyEnabled:x,cardPolicyPageContext:U}=a,i=c.tenantEmailDomain,f=o.state?.referrer,p=f===J?K(i):D(i);return{onEventReceived:(n,t)=>{if(n===Y&&typeof t.text=="string"&&typeof t.metadata=="object"){const s=t,C=Me(s.type),b=s.metadata.chat_session_id??null,{currentChatSession:y,currentQuestionAnswer:u,currentQuestionAnswerSummary:P}=W(E,b);C!=="answer"?$.trackAICFOChatResponseGenerated(C,u?.question.questionText??"",s.text,b,Qe(P,y),s.metadata.message_id??null):$.trackAICFOChatAnswerGenerated(s.text,u?.question.questionText??"",(s.follow_up_questions?.length??0)>0,!!s.assumptions,!!s.insights,s.visualization!=null,He(s.visualization?.type??"")??null,b,s.summarized_title,s.metadata.message_id??null),e(Be({chatSessionId:s.metadata.chat_session_id,responseType:C,fetchState:{fetchState:"Completed",error:void 0}})),e(Ne({chatSessionId:s.metadata.chat_session_id,answerPayload:s,userId:d}))}},onSubmit:(n,t,s,C)=>{n&&ve(e,n,t,h,E,d,C,s,U)},updateCurrentInput:n=>{e(N(n))},onStopSubmit:()=>{},onUpdateScrollYOffset:n=>{e(qe(n))},onSelectSampleQuestion:()=>{},onBackClick:()=>{m(-1)},onCloseClick:()=>{m(p,{state:{...o.state}}),e(N(""))},togglePageView:()=>{m(p,{state:z(o.state)}),a.setIsAiCfoOpen(!0)},onCopy:()=>{},onThumbsUp:()=>{},onThumbsDown:()=>{},onTogglePageView:()=>{m(-1)},onNewChatClick:()=>{h!=null&&e(Re()),m((function(n){return`/${n}/${Z}`})(i),{state:{...o.state}})},onToggleCotCollapsed:(n,t)=>{e(je({questionAnswerId:n,isCollapsed:t}))},...Oe(e,{isAiCardCreationEnabled:A,isCardPolicyEnabled:x,currentChatSessionId:h,onAfterCardsCreationSubmit:()=>{a.setIsAiCfoOpen(!0),m(D(i),{state:{...o.state}})},onAfterCardPolicySubmit:()=>{a.setIsAiCfoOpen(!0),m(`/${i}/cards/policy`,{state:{...o.state}})}})}}))(Ae(xe)),{spendManagement:{chargeCard:{cardsAiCfoHero:X,cardPolicyAiCfoHero:ee}}}=Te.getLocalizedStrings(),k=X.pageTitle,Ze=ee.pageTitle,Je=X.chatHeaderSubtitle,Ke=ee.chatHeaderSubtitle,gt=({isFileUploadEnabled:e})=>{const{setIsAiCfoOpen:a}=Se(),o=pe(),c=he(),d=fe(),[m,h]=l.useState(!1),{allUsers:E,isAiCardCreationEnabled:A,isCardPolicyEnabled:x,onCardPolicyVendorSearchTextChange:U}=be();l.useEffect((()=>{o(Fe())}),[o]);const i=M((r=>G(r))),f=ye.getSignedInUser(),{session_id:p}=Ce(),n=M((r=>$e(r))),t=i.uiState.currentChatSessionId,s=n.tenantEmailDomain,{handleUploadPromoClose:C,isUploadPromoVisible:b}=Pe({isFileUploadEnabled:e,tenantEmailDomain:s}),y=d.state,u=y?.aiCfoInitialQuestion??null,P=!!y?.aiCfoShouldSubmit,I=y?.referrer===J,te=I?"card_policy":void 0,se=l.useMemo((()=>({title:I?Ze:k,subtitle:I?Ke:Je})),[I]),[ae,_]=l.useState(null),[oe,O]=l.useState(!1),v=l.useRef(!1);l.useEffect((()=>{v.current||u==null||u===""||(_(u),O(P),v.current=!0)}),[u,P]);const ne=l.useCallback((()=>{_(null),O(!1),c(d.pathname,{replace:!0,state:z(d.state)})}),[d.pathname,d.state,c]),ie=n.masterTOSInfo,g=ie?.isMasterTOSAccepted??!1,T=l.useRef(null);l.useEffect((()=>{if(g&&T.current!=null){const{question:r,shouldSubmit:w}=T.current;T.current=null,_(r),O(w),v.current=!1}}),[g]);const{visitedSessions:V}=Ie(t),Q=i.fetchState,F=i.uiState.chatSessionsNextPageToken.hasMore||!i.uiState.chatSessionsFirstPageFetched,j=t!=null?i.fetchChatSessionHistoryByChatSessionId?.[t]?.fetchState??"Not-Started":"Not-Started",R=t==null||(i.uiState.chatHistoryNextPageToken[t]?.hasMore??!0),q=i.allSessionsWithOrderedQuestionAnswers,{currentSessionQuestionAnswers:re}=W(q,t),le=re.length===0;l.useEffect((()=>{t!=null&&p!==t&&c((function(r,w){return`/${r}/${Z}/${w}`})(s,t),{state:{...d.state},replace:!0})}),[t,p,s,c,d.state]),l.useEffect((()=>{p!=null&&t==null&&p!=="new_chat"&&o(De({sessionId:p,agentId:"controller"}))}),[]);const de=l.useMemo((()=>({events:V.map((r=>`private-encrypted-chat-${r}.${Y}`)),eventCallback:(r,w,me)=>me.onEventReceived(r,w)})),[V]);if(l.useEffect((()=>{Q!=="In-Progress"&&F&&o(Le())}),[Q,F,o]),l.useEffect((()=>{t!=null&&j!=="In-Progress"&&R&&f!=null&&Q==="Completed"&&!F&&o(Ve(t,f.userId))}),[j,R,t,f,o]),f==null)throw Error("Can't access Cards AI CFO page without signing in...");const ce=p??"new_chat",ue=t!=null&&i.responseStateByChatSessionId?.[t]?.answer?.fetchState==="In-Progress";return S.jsxs(et,{children:[S.jsx(we,{analytics:$,onLoad:r=>r.trackPageLoaded(ke.Event.aiCFOPage)}),g?S.jsx(Ye,{...de,currentChatSessionId:t,allSessionsWithOrderedQuestionAnswers:q,allUsers:E,isAiCardCreationEnabled:A,isCardPolicyEnabled:x,openOnboardingPage:()=>h(!0),userId:f.userId,setIsAiCfoOpen:a,navigate:c,sessionFromUrl:ce,location:d,isSubmitting:ue,isEmptyChatWithSession:le,customPageTitle:k,chatHeader:se,currentTenant:n,emailLinkQuestion:ae??void 0,autoSubmitEmailLinkQuestion:oe,onEmailLinkQuestionProcessed:ne,isFileUploadEnabled:e,isUploadPromoVisible:b,onUploadPromoClose:C,onCardPolicyVendorSearchTextChange:U,cardPolicyPageContext:te}):S.jsx(H,{isTOSAccepted:g,acceptMasterTOSState:i.masterTOSAcceptanceState,customPageTitle:k,onCloseClick:()=>{c(I?K(s):D(s),{state:{...d.state}})},onCompleteClick:()=>{g||n.userRoleId==null||(u!=null&&u!==""&&(T.current={question:u,shouldSubmit:P}),o(B(n.userRoleId)))}}),S.jsx(ze,{anchor:"right",open:m,transitionDuration:250,PaperProps:{component:tt,style:{width:`${Ee}vw`}},slotProps:{backdrop:{style:{backgroundColor:"transparent",cursor:"pointer"}}},onClose:()=>h(!1),children:S.jsx(Xe,{onClick:r=>r.stopPropagation(),children:S.jsx(H,{isTOSAccepted:g,acceptMasterTOSState:i.masterTOSAcceptanceState,customPageTitle:k,onCloseClick:()=>h(!1),onCompleteClick:()=>{g||n.userRoleId==null||o(B(n.userRoleId)),h(!1)}})})})]})},Xe=L(Ge)`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`,et=L.div`
|
|
6
|
-
flex: 1 1 auto;
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
min-height: 0;
|
|
10
|
-
width: 100%;
|
|
11
|
-
`,tt=L(We)`
|
|
12
|
-
box-shadow: ${({theme:e})=>e.colors.elevation2};
|
|
13
|
-
color: ${({theme:e})=>e.colors.grey4};
|
|
14
|
-
`;export{gt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as m}from"./liveblocks-DKL6viSK.js";import{a as g}from"./sentry-DFI2OQU2.js";import{h as w,u as k,g as x,i as T,j as O,n as E}from"./core-DnZcjy6X.js";import{z as N,be as P,F,e as V,g as j,ag as C,bf as A,au as L,av as U,r as B}from"./index-Bar5dTpy.js";import{e$ as D,gp as _,t_ as M,gk as R,c7 as z,PW as G,bn as $,r$ as Y,rP as H,lj as W,mU as S,PX as X,bE as Z,cB as b,n2 as q,n5 as J}from"./zeni-epic-state-m4zoW3ek.js";import"./mui-sr6zger7.js";import{d as K}from"./routePaths-BQ28bs96.js";import{M as Q}from"./MobileAppDrawer-BoTcj0FT.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]="7a491dc7-8074-4e95-949f-7a773c19b95d",t._sentryDebugIdIdentifier="sentry-dbid-7a491dc7-8074-4e95-949f-7a773c19b95d")}catch{}})();const ee=E((function(t){const a=R(t),i=N.getSignedInUser(),p=D(t),c=p.tenantId,l={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=z(p?.userRole??[])&&a.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=G(t.companyConfigState),n=t.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:a.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:a,allIndustries:e.companyIndustries??[],allNationalityCountries:n,isDisabled:f,authParams:l,filesEndPoint:`${L.fileMicroServiceBaseUrl}`,isZeniUser:$(i)}}),(function(t,a){const{companyId:i,currentTenant:p,navigate:c,location:l}=a,{tenantEmailDomain:f}=p;return{onScheduleClick:e=>{let n=e.href;n.includes("http")||(n="https://".concat(n)),window.open(n,"_blank")},onSaveAll:()=>{t(J())},onAddressClick:e=>{const n=K(f,e),o=B(l.state?.pathnameStackToGoBack,l.pathname);c(n,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{t(q({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:n,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=n,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:h}=r,v={companyInfo:{...n,website:u!=""&&u!=null?b(u):void 0,meetingLink:y!=""&&y!=null?b(y):void 0,industry:n.industry.selectedOption,companyIndustryType:n.companyIndustryType?.selectedOption??void 0,companySubIndustry:n.companySubIndustry?.selectedOption??void 0,businessModel:n.businessModel.selectedOption??"",companySourceOfFunds:n.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:n.companySourceOfFundsDescription??void 0,countriesOfOperations:n.countriesOfOperations?.selectedOptions?.map((I=>I.length===2?I:U(I)))??[],transactionVolume:n.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:n.transactionVolumeDescription??void 0,regulatedStatus:n.regulatedStatus??void 0,regulatedStatusDescription:n.regulatedStatusDescription??void 0,usNexus:n.usNexus??void 0,usNexusTypes:n.usNexusTypes?.selectedOptions??[],purposeOfAccount:n.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:n.purposeOfAccountDescription??void 0},incInfo:{typeOfInc:o.typeOfInc.selectedOption??"",stateOfInc:o.stateOfInc.selectedOption??"",incDate:s!=null?Z(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:h.selectedOptions.map((I=>parseInt(I))),fileId:r.fileIds[0]}};t(S({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{t(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{t(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:void 0}]}))},onNewCompanyOfficerRemoved:e=>{t(X(e))},onCompanyOfficerUpdated:e=>{t(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:e.userId}]}))},updateFilesEntity:e=>{t(W({files:e}))},onDeleteFile:e=>{t(H(e))},onEditFileName:(e,n)=>{t(Y(e,n.split(".")[0]))}}}))(A);function de(){const t=w(),a=k(),i=x(),{tenantEmailDomain:p}=T(),[c,l]=g.useState(!1),[f,e]=g.useState(!1),n=O((s=>s.companyViewState.passportView.fetchState)),o=O((s=>s.companyConfigState.fetchState)),r=O((s=>D(s))),d=r.companyId??N.getSignedInUserTenant(p)?.companyId;if(N.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect((()=>{c||n!=="Not-Started"||d==null||(l(!0),a(_(d)))}),[c,n,d,a]),g.useEffect((()=>{o==="Not-Started"&&a(M())}),[o,a]);const u=s=>{e(s)},y=n==="Not-Started"||n==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&n==="Error"?m.jsx(P,{onGoHome:()=>t("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(F,{analytics:V,onLoad:s=>s.trackPageLoaded(j.Event.companyPassport,C(i)?"Settings":"Company Passport")}),C(i)?m.jsx(Q,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:t,location:i,isLoading:y,currentTenant:r,isSettings:C(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{j as g}from"./liveblocks-DKL6viSK.js";import{a}from"./sentry-DFI2OQU2.js";import{u as D,g as v,j as m,N as w}from"./core-DnZcjy6X.js";import{Mq as A,e$ as O,g5 as _,on as j,gB as h,g4 as U,fE as L,Mx as $}from"./zeni-epic-state-m4zoW3ek.js";import{u as F,z as p,L as C,a as k,o as H}from"./index-Bar5dTpy.js";import{n as z}from"./mui-sr6zger7.js";import{t as R}from"./getLocaleForTenant-DIOFG6A5.js";import{g as M,Q as P}from"./QBOConnectionScreen-BxSTUR6Z.js";import"./recharts-Bim6mdwu.js";import"./analytics-DtYJ-EGT.js";import"./plaid-QvRDxgoN.js";import"./dnd-eoV-_JYH.js";import"./stripe-cKAAJElX.js";import"./lottie-Dz5luYQG.js";import"./lexical-CSqytB8g.js";import"./pdf-BNSeVvBm.js";import"./utils-cHxIh7E8.js";import"./empty-DkIaLxCd.js";import"./pdf-lib-DwpnbCVp.js";import"./index-Dmm4l94W.js";import"./url-p6YiHaLn.js";import"./index-DUKU6sVX.js";import"./decodeURIComponentSafe-CjxujRw-.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]="5140ed66-599a-4d8b-8ba4-d190bcad8302",t._sentryDebugIdIdentifier="sentry-dbid-5140ed66-599a-4d8b-8ba4-d190bcad8302")}catch{}})();const q=z.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
flex: 1 1 auto;
|
|
4
|
-
flex-direction: row;
|
|
5
|
-
justify-content: center;
|
|
6
|
-
align-items: center;
|
|
7
|
-
width: 100%;
|
|
8
|
-
height: 100vh;
|
|
9
|
-
background-color: ${t=>t.theme.colors.background};
|
|
10
|
-
box-shadow: ${t=>`0px 2px ${H.sp1} ${t.theme.colors.dropShadowNormal}`};
|
|
11
|
-
`;function ce(){const t=D(),i=v(),{setLoading:d,clearAllLoading:b}=F(),c=a.useRef(!1),f=a.useRef(!1),{code:x,realmId:T,state:y}=M(i.search),N=x!==""&&T!==""&&y!=="",I=m((l=>A(l))),e=m((l=>O(l))),n=m((l=>l.tenantState.fetchState)),r=m((l=>l.tenantState.activeTenantFetchState.fetchState)),o=p.getSignedInUser(),u=p.getActiveTenantForUser()?.tenantId,s=e?.externalConnections?.fetchState,E=e?.externalConnections?.saveConnectionState,S=e.externalConnections?.accounting[0]?.isValid;return a.useLayoutEffect((()=>{d(C.CONNECTION_AUTH)}),[d]),a.useEffect((()=>{c.current||o==null||u==null||(c.current=!0,n==="Completed"||r!=="Not-Started"&&r!=="Error"||(d(C.TENANT_FETCHING),t(_(o.userId,u))))}),[c,n,d]),a.useEffect((()=>{e.tenantId==null&&!f.current&&o!=null&&(f.current=!0,!(u==null||u!=null&&(r==="Completed"||r==="Error"))||n!=="Not-Started"&&n!=="Error"||t(j(o.userId)))}),[f,n,r]),a.useEffect((()=>{o==null||e?.tenantId==null||e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||s==="In-Progress"||E!=="Error"||(d(C.CONNECTION_AUTH),t(h(o.userId,e.tenantId)))}),[E]),a.useEffect((()=>{n!=="Completed"&&r!=="Completed"||o==null||e?.tenantId==null||(t(U(e.tenantId)),p.saveActiveTenantDomainForUser(e.tenantEmailDomain),L(o?.userId,o?.zeniSessionId,e.tenantId),k.updateAppLocaleID(R($(e))),e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||s==="In-Progress"||o==null||e==null||t(h(o.userId,e.tenantId)))}),[n,r,s]),a.useEffect((()=>{I.tenantsCoreDetailsInOrder.length>0&&n==="Completed"&&p.saveSignedInUserTenants(I.tenantsCoreDetailsInOrder)}),[I.tenantsCoreDetailsInOrder.length,n]),a.useEffect((()=>{n!=="Completed"&&n!=="Error"||r!=="Completed"&&r!=="Error"||s!=="Completed"&&s!=="Error"||b()}),[n,r,s]),e==null||n!=="Completed"&&r!=="Completed"||s!=="Completed"?null:N||S!==!0?g.jsx(q,{children:g.jsx(P,{})}):g.jsx(w,{to:"/",replace:!0})}export{ce as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-DKL6viSK.js";import{z as n}from"./index-Bar5dTpy.js";import{g as d}from"./QBOConnectionScreen-BxSTUR6Z.js";import"./sentry-DFI2OQU2.js";import{g as p,N as s}from"./core-DnZcjy6X.js";import"./zeni-epic-state-m4zoW3ek.js";import"./recharts-Bim6mdwu.js";import"./mui-sr6zger7.js";import"./analytics-DtYJ-EGT.js";import"./plaid-QvRDxgoN.js";import"./dnd-eoV-_JYH.js";import"./stripe-cKAAJElX.js";import"./lottie-Dz5luYQG.js";import"./lexical-CSqytB8g.js";import"./pdf-BNSeVvBm.js";import"./utils-cHxIh7E8.js";import"./empty-DkIaLxCd.js";import"./pdf-lib-DwpnbCVp.js";import"./index-Dmm4l94W.js";import"./url-p6YiHaLn.js";import"./index-DUKU6sVX.js";import"./decodeURIComponentSafe-CjxujRw-.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="817363c8-7f1d-4590-b58b-cef70b99ca15",t._sentryDebugIdIdentifier="sentry-dbid-817363c8-7f1d-4590-b58b-cef70b99ca15")}catch{}})();const U=()=>{const t=p(),{code:o,realmId:r,state:e}=d(t.search),m=n.getSignedInUser()?.userId??"";if(f(o,r,e,m)===!0){const a=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return i.jsx(s,{to:a})}return i.jsx(s,{to:"../../"})},f=(t,o,r,e)=>t!=""&&o!=""&&r!=""&&e!=null&&e!="";export{U as default,f as hasValidParams};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-DKL6viSK.js";import{t as ht,A as Ve}from"./AddressScreen-DCby60TJ.js";import St from"./NotFoundScreen-D7eT4TBn.js";import{a as d}from"./sentry-DFI2OQU2.js";import{h as Ce,g as Ie,u as ae,i as ke,j as k,N as B,l as bt,n as tt,o as Ct,p as H}from"./core-DnZcjy6X.js";import{e$ as X,fI as _e,fG as Oe,bs as It,fW as kt,bS as _t,ol as Ot,tK as vt,tN as Tt,Np as wt,Nq as xt,kn as he,kq as nt,MW as Et,bZ as At,c7 as ue,uc as ve,tZ as Pt,Nr as de,ud as at,KP as Dt,lr as ot,Ns as jt,Nt as Ft,rI as Bt,hz as Nt,MO as me,hw as Vt,MP as Ut,yp as Rt,rM as Lt,ho as $t,hr as Ue,Nu as st,Nv as Gt,Es as Mt,Nw as zt,Ew as Qt,tQ as Kt,Nx as qt,Ny as Ht,kl as Zt,ko as Wt,up as Jt,t$ as it,ub as Xt,bE as Re,cB as Yt,uo as Le,r$ as en,rP as tn,lj as nn,gn as an,gm as on,gl as sn,Nz as rn,tT as cn,uq as dn,ut as un,uw as ln,uC as pn,c_ as mn}from"./zeni-epic-state-m4zoW3ek.js";import{z as L,w as Te,i as Z,_ as gn,r as Q,F as oe,e as N,aq as fn,J as yn,x as rt,D as ct,ar as $e,k as Se,g as be,as as hn,o as Ge,at as Me,au as Sn,av as ze,aw as bn,ax as Cn}from"./index-Bar5dTpy.js";import{n as we}from"./mui-sr6zger7.js";import{g as In,h as kn,q as se}from"./QBOConnectionScreen-BxSTUR6Z.js";import{u as _n,a as On}from"./useEmailConnectResultRefresh-2wnXRew_.js";import{u as vn}from"./useChargeCardPusherEvents-0JCfQ36-.js";import"./recharts-Bim6mdwu.js";import"./analytics-DtYJ-EGT.js";import"./plaid-QvRDxgoN.js";import"./dnd-eoV-_JYH.js";import"./stripe-cKAAJElX.js";import"./lottie-Dz5luYQG.js";import"./lexical-CSqytB8g.js";import"./pdf-BNSeVvBm.js";import"./utils-cHxIh7E8.js";import"./empty-DkIaLxCd.js";import"./pdf-lib-DwpnbCVp.js";import"./index-Dmm4l94W.js";import"./url-p6YiHaLn.js";import"./index-DUKU6sVX.js";import"./decodeURIComponentSafe-CjxujRw-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},u=new e.Error().stack;u&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[u]="55fb89b9-b857-4849-8d8f-8e395ff5407b",e._sentryDebugIdIdentifier="sentry-dbid-55fb89b9-b857-4849-8d8f-8e395ff5407b")}catch{}})();const Qe=e=>{switch(e){case"Complete":return"yes";case"Pending Review":case"Incomplete":return"partially";default:return"no"}},Tn=()=>{const e=Ce(),u=Ie(),i=ae(),[o,l]=d.useState(!1),[c,y]=d.useState(!1),{tenantEmailDomain:S}=ke(),t=L.getSignedInUser(),{useFeatureGate:n}=Te(),{isFeatureEnabled:s}=n(Z.isApAgingFeatureEnabled),{isFeatureEnabled:b}=n(Z.isArAgingFeatureEnabled),{isFeatureEnabled:_}=n(Z.isReferralFeatureEnabled),{isFeatureEnabled:I}=n(Z.isExpenseAutomationEnabledV2),{isFeatureEnabled:w}=n(Z.isDebitCardFeatureEnabled),r=gn(),g=k((h=>X(h))),p=k((h=>h.onboardingCustomerViewState.fetchState)),O=g.excludedResources,T=g.companyId??L.getSignedInUserTenant(S)?.companyId;if(t==null)throw Error("Can't access onboarding flow without signing in...");const x=_e(w,g),D=Oe(g),m=[],$=O?.resources?.find((h=>h.resource==="/reports/top_expenses"))==null,j=O?.resources?.find((h=>h.resource==="/reports/task_card"))==null,G=g?.userRole!=null&&It(g?.userRole),M=O?.resources?.find((h=>h.resource==="/bills"))==null&&!G,A=O?.resources?.find((h=>h.resource==="/reimbursements"))==null;$===!1&&m.push("top_expenses"),j===!1&&m.push("task_card"),M===!1&&m.push("bill_pay_card","bill_pay_promo_card"),A===!1&&m.push("reimbursement_card","reimbursement_promo_card"),m.push("zeni_accounts_promo_card","treasury_promo_card"),_===!1&&m.push("rewards_card");const F=k((h=>{const v=[];s===!1&&v.push("accounts_payable_aging"),b===!1&&v.push("accounts_receivable_aging"),v.push("zeni_accounts_promo_card","treasury_promo_card"),_===!1&&v.push("rewards_card"),r===!1&&v.push("expense_automation_card");const W=kt(h,v,t,I,r);return _t(W.reportsInOrder.map((P=>({fetchState:P.fetchState,error:P.error})))).fetchState}));d.useEffect((()=>{p!=="Completed"||o||x||D||(l(!0),i(Ot(t.userId,T,g.tenantId,!0,!1,m)))}),[o,p,x,D,t,g.tenantId,i]);const K=d.useRef(!1),z=d.useCallback((()=>{const h={pathnameStackToGoBack:Q(u.state?.pathnameStackToGoBack,u.pathname),message:"activation"};e(x?"../../checking":D?"../../cards":"../../dashboard",{state:h})}),[e,u,x,D]),V=d.useCallback((()=>{K.current||(K.current=!0,z())}),[z]);if(d.useEffect((()=>{const h=setTimeout((()=>y(!0)),3e3);return()=>clearTimeout(h)}),[]),d.useEffect((()=>{const h=setTimeout(V,6e3);return()=>clearTimeout(h)}),[V]),d.useEffect((()=>{x||D||!c||F!=="Completed"&&F!=="Error"||V()}),[c,F,x,D,V]),p!=="Completed")return a.jsx(B,{to:"../"});const U=g.company?.companyOnboardingInfo?.onboardingInfo,q={timeSinceQuoteSign:U?.onboardingTimeSinceQuoteSigned??"",timeSinceQuoteSignInMinutes:U?.onboardingToQuoteSignMinutes??0,isKybDone:Qe(U?.businessVerified?.status),isKycDone:Qe(U?.identityVerified?.status),paymentType:"",paymentSource:"",qboConnectionSource:U?.accountingConnectionCreationMode??""};return a.jsxs(a.Fragment,{children:[a.jsx(oe,{analytics:N,onLoad:h=>h.trackOnboardingDashboardActivation(q)}),a.jsx(fn,{show:!0,onComplete:V})]})},ge=["reading_books","finance_graph","reconciliation","cfo_foundation"],fe=["llm_fine_tuning","rag_knowledge_graph","personalized_context"],Ke=(e,u)=>{const i=new Map(e.map((o=>[o.key,o])));return u.map((o=>{return l=i.get(o)?.status,l==="starting"||l==="building"?l:"idle";var l}))},qe=(e,u)=>{if(e.length===0)return!1;const i=new Map(e.map((o=>[o.key,o])));return u.every((o=>i.get(o)?.status==="ready"))},He=we.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
5
|
-
`,Ze=we.div`
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
align-items: center;
|
|
9
|
-
flex: 1;
|
|
10
|
-
min-width: 0;
|
|
11
|
-
|
|
12
|
-
${e=>e.skipLegacyDrawerOffset?`
|
|
13
|
-
width: 100%;
|
|
14
|
-
padding-left: ${Ge.sp0};
|
|
15
|
-
`:`
|
|
16
|
-
min-width: calc(100% - ${Me}px);
|
|
17
|
-
padding-left: ${Me}px;
|
|
18
|
-
`}
|
|
19
|
-
|
|
20
|
-
${e=>e.theme.breakpoints.down("md")} {
|
|
21
|
-
width: 100%;
|
|
22
|
-
padding-left: ${Ge.sp0};
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
${e=>e.windowSize!=="small"?"overflow: auto;":""}
|
|
26
|
-
`,We=tt((function(e,u){const{companyId:i,isAdmin:o,currentTenant:l,isOnAddressPage:c}=u,y=L.getSignedInUser(),S=l.tenantId,t={userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:S??""},n=X(e),s=ve(e,i),b=st(e),_=ue(l?.userRole??[])&&s.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",I=Gt(e.userRoleConfigState);return{onboardingCustomerView:s,analytics:N,isRefreshingViewInBackground:!1,isDisabled:_,companyTitles:I.companyTitles,connectedAccountProvider:n.company?.featuresActivationInfo.connectedAccountProvider??"",fileProps:{filesEndPoint:Sn.fileMicroServiceBaseUrl,authParams:t},signedInUser:L.getSignedInUser(),currentTenant:n,isAdmin:o,isOnAddressPage:c,meetingUrl:"https://meetings.hubspot.com/niharn/zeni-onboarding-overview?embed=true",cardPaymentView:b,isCardPaymentPopupOpen:!1,stripeKey:Se.stripeKey}}),(function(e,u){const{companyId:i,currentTenant:o,themeState:l,navigate:c,location:y}=u,{tenantEmailDomain:S}=o;return{onFetchLinkTokenClick:(t,n)=>{e(pn(t,n))},onEstablishConnectionClick:(t,n)=>{e(ln(t,n))},onUpdatePaymentAccountStatus:(t,n,s)=>{e(un(t,n,s))},onUpdatePaymentAccountLoginStatus:(t,n)=>{e(dn(!1,t,n))},onEstablishConnectionSuccess:()=>{e(cn(i,!0,!1))},handleOnConnectClick:()=>{N.trackOnboardingConnectQBO(),se.handleClick()},updateQBOPopupState:t=>{e(de({isQBOPopupOpen:t}))},onCompanyOfficerUpdated:t=>{const n=t.map((s=>{const{officerType:b,userId:_,name:I,email:w,ssn:r,nationalityCountryCode:g,dob:p,phone:O,syncToken:T,selectDocument:x,role:D,ownership:m,isSelectedForVerification:$,userVerificationStatus:j,fileIds:G,isPhoneVerified:M}=s;let A;return x.selectDocumentType==="driverLicense"?A="driving_license":x.selectDocumentType==="passport"?A="passport":x.selectDocumentType==="stateId"?A="id_document":x.selectDocumentType==="ssnCard"&&(A="social_security_card"),{officerType:b,userId:_,firstName:I.firstName,lastName:I.lastName,email:w,ssn:r,nationalityCountryCode:g?.selectedOption!=null?ze(g.selectedOption):void 0,phone:O,birthday:p!=null?Re(p?.toString()):p,syncToken:T,titleAtCompany:D.selectedOption,ownershipInCompany:m,documentTypeSelectedForVerification:A,isSelectedForVerification:$,userVerificationStatus:j,fileIds:G,additionalDocumentTypesRequestedForVerification:[],additionalSubmittedDocumentsForVerificationFileIds:[],areAdditionalDocumentsRequestedForVerification:!1,areAdditionalDocumentsSubmittedForVerification:!1,isPhoneVerified:M}}));e(Le({officers:n}))},onGetOtp:(t,n)=>{e(sn(t,"CustomerOnboarding")),n!=null&&e(rn({officerType:n,phone:t}))},onResendOtp:t=>{e(on(t,"CustomerOnboarding"))},onVerifyOtp:(t,n)=>{e(an(t,n,"CustomerOnboarding"))},updateFilesEntity:t=>{e(nn({files:t}))},onDeleteFile:t=>{e(tn(t))},onEditFileName:(t,n)=>{e(en(t,n.split(".")[0]))},onCompanyDetailsChanged:t=>{const{companyDescription:n,companyIndustry:s,companyIndustryType:b,companyLegalName:_,companyTaxId:I,companyWebsite:w,companyPhone:r,primaryContactEmail:g,primaryContactName:p,primaryContactUserId:O,primaryContactSyncToken:T,syncToken:x,fileIds:D,typeOfIncorporation:m,stateOfIncorporation:$,incDate:j,companySourceOfFunds:G,companySourceOfFundsDescription:M,companySubIndustry:A,countriesOfOperations:F,purposeOfAccount:K,purposeOfAccountDescription:z,regulatedStatus:V,regulatedStatusDescription:U,transactionVolume:q,transactionVolumeDescription:h,usNexus:v,usNexusTypes:W}=t,P={companyId:i,companyDescription:n,companyIndustry:s.selectedOption,companyIndustryType:b?.selectedOption??"",companyLegalName:_,taxIdOrEIN:I,website:w!=""&&w!=null?Yt(w):void 0,phone:r,syncToken:x,fileIds:D,incDate:j!=null?Re(j?.toString()):j,typeOfIncorporation:m?.selectedOption??"",stateOfIncorporation:$?.selectedOption??"",companySourceOfFunds:G?.selectedOption??"",companySourceOfFundsDescription:M,companySubIndustry:A?.selectedOption??"",countriesOfOperations:F?.selectedOptions.map((Y=>Y.length===2?Y:ze(Y)))??[],purposeOfAccount:K?.selectedOption??"",purposeOfAccountDescription:z,regulatedStatus:V??"",regulatedStatusDescription:U,transactionVolume:q?.selectedOption??"",transactionVolumeDescription:h,usNexus:v,usNexusTypes:W?.selectedOptions??[]},le={userId:O,firstName:p.firstName,lastName:p.lastName,email:g,syncToken:T};e(Le({companyDetails:P,primaryContactDetails:le}))},onAddressClick:(t,n)=>{const s=Xe(S,t,n),b=Q(y.state?.pathnameStackToGoBack,y.pathname);c(s,{state:{pathnameStackToGoBack:b}})},onRegisteredAddressClick:(t,n)=>{const s=Xe(S,t,n),b=Q(y.state?.pathnameStackToGoBack,y.pathname);c(s,{state:{pathnameStackToGoBack:b}})},onUpdateCustomerView:(t,n,s)=>{e(Xt(i,!1,n,s,t))},onAddressEditHandler:t=>{if(t!=null){const n=ht(t);e(ot({addressType:"subscription_billing_address",addressToCreate:n}))}},onSkipSetupClick:()=>{const t=Q(y.state?.pathnameStackToGoBack,y.pathname);e(it(i,!1,!1)),c("./activation",{state:{pathnameStackToGoBack:t}})},onUpdateStep:t=>{e(at({step:t}))},onUpdateSubStep:t=>{e(Jt({subStep:t}))},onZeniLogoClick:()=>{l.toggle()},handleLogOutClick:()=>{const t=Q(y.state?.pathnameStackToGoBack,y.pathname);c("/signout",{replace:!0,state:{pathnameStackToGoBack:t,message:"logout"}})},handleCockpitClick:()=>{window.open("/cockpit")},handleReferralsClick:()=>{c(`/${S}/rewards`)},handleCreateCardSetupIntent:t=>{e(nt(t))},handleConfirmCardSetupIntent:t=>{e(Wt(t))},updateCardPaymentModalState:t=>{e(de({isCardPaymentPopupOpen:t}))},handleAddCardPaymentSource:(t,n,s)=>{e(Zt(t,n,s))},handleFetchPaymentSources:()=>{e(he())},resetCardPaymentViewState:()=>{e(Ht())},handleResetCardPaymentErrorStatuses:()=>{e(qt())},redirectToProductSuitePage:()=>{const t=Q(y.state?.pathnameStackToGoBack,y.pathname);c(`/${S}/onboarding/thankyou`,{state:{pathnameStackToGoBack:t,message:"OnboardingThankyou"},replace:!0})},onAcknowledgeAiFinanceTeam:()=>{i!=null&&(N.trackOnboardingAiFinanceTeamAcknowledged(),e(Kt(i)))},onIdentityDocumentUploadedForAutofill:t=>{if(i==null)return;const n=zt(t.documentType);n!=null&&e(Qt({target:"onboarding",companyId:i,officerType:t.officerType,fileId:t.fileId,documentType:n}))},onCompanyDocumentUploadedForAutofill:t=>{i!=null&&e(Mt({target:"onboarding",companyId:i,fileId:t.fileId,documentType:t.documentType}))}}}))(hn),ce=({taxCFOCustomer:e=!1,isOnAddressPage:u=!1,appContent:i})=>{const o=Ce(),l=Ie(),c=ae(),y=yn(),S=rt(),[t,n]=d.useState(!1),[s,b]=d.useState(!1),[_,I]=d.useState(!1),{tenantEmailDomain:w}=ke(),r=ct(),{useFeatureGate:g}=Te(),{isFeatureEnabled:p}=g(Z.isDebitCardFeatureEnabled),O=bt("/:tenantEmailDomain/onboarding")!==null&&l.search?.includes("code"),T=k((f=>f.onboardingCustomerViewState.fetchState)),x=k((f=>f.onboardingCustomerViewState.currentStep)),D=k((f=>f.onboardingCustomerViewState.uiState)),m=k((f=>X(f))),$=k((f=>f.userRoleConfigState.fetchState)),j=k((f=>f.cardPaymentViewState)),G=$e(j.addCardPaymentSourceStatus.fetchState),M=j.addCardPaymentSourceStatus.fetchState,{code:A,realmId:F,state:K}=In(l.search),z=m.externalConnections?.accounting[0],V=z?.connectionType,U=z?.connectionName,q=z?.connectionId??"",h=L.getSignedInUser()?.userId??"";d.useEffect((()=>{s||(b(!0),c(he()))}),[s,c]),d.useEffect((()=>{_||(nt(["card"]),I(!0))}),[_]),d.useEffect((()=>{G==="In-Progress"&&M==="Completed"&&c(he())}),[G,M]),d.useEffect((()=>{kn(A,F,K,q,h)===!0&&m.externalConnections?.saveConnectionState!=="In-Progress"&&T==="Completed"&&(c(Et(m.tenantId,{connection_type:V??"accounting",connection_name:U??"quickbooks_online",authorization_code:A,realm_id:F,connection_id:q,user_id:h},At(window.location.origin+"/onboarding/auth"))),N.trackOnboardingSaveQBOConnection(F,q),o(l.pathname))}),[A,F,K,l.pathname,T]),d.useEffect((()=>{se.isInitiated===!1&&T==="Completed"&&se.init("/onboarding/auth",m.tenantEmailDomain)}),[T]);const v=m.companyId??L.getSignedInUserTenant(w)?.companyId,W=ue(m?.userRole??[]),P=k((f=>ve(f,v)));d.useEffect((()=>{t||T!=="Not-Started"||v==null||(n(!0),c(Pt(v,!0,!O)))}),[t,T,v]),d.useEffect((()=>{m.externalConnections?.saveConnectionState!=="Completed"&&m.externalConnections?.saveConnectionState!=="Error"||!D.isQBOPopupOpen||x!=="connect_ledger"||c(de({isQBOPopupOpen:!1}))}),[m.externalConnections?.saveConnectionState]),d.useEffect((()=>{T==="Completed"&&O&&(c(at({step:"connect_ledger"})),c(de({isQBOPopupOpen:!0})))}),[O,T]),d.useEffect((()=>{$==="Not-Started"&&c(Dt(!0))}),[$,c]);const le=$e(P.companyDetailsLocalData?.addressStatus);d.useEffect((()=>{P.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&P.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&le==null&&c(ot({addressType:"company_registered_address",addressToCreate:P.companyDetailsLocalData?.addressStatus?.addressToCreate}))}),[P.companyDetailsLocalData?.addressStatus?.addressToCreate,P.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate]);const Y=P.isInterimEmailSent,xe=L.getSignedInUser();if(xe==null)throw Error("Can't access onboarding flow without signing in...");const dt=_e(p,m),ut=Oe(m),Ee=m.company?.companyOnboardingInfo.isOnboardingCompleted,Ae=f=>f.trackPageLoaded(be.Event.onboardingPage),Pe=m.productSettings.isOtherProductsEnabled,lt=m.productSettings.isTreasuryEnabled,De=wn({tenantEmailDomain:w??"",signedInUserEmail:xe.userEmail??"",companyId:v}),je=(({companyId:f})=>{const R=ae(),ie=k((E=>E.onboardingCustomerViewState?.aiAgentsActivation)),ee=k((E=>X(E).company?.companyOnboardingInfo?.onboardingInfo?.onboardingAiActivationInfo?.isOnboardingAiActivationViewed??!1)),pe=d.useCallback((()=>{R(vt())}),[R]);d.useEffect((()=>{pe()}),[pe]);const Fe=d.useCallback((()=>{f==null||f===""||ee||R(Tt(f))}),[f,ee,R]),pt=d.useMemo((()=>{if(f==null||f==="")return[];const E=`private-encrypted-${f}`;return[`${E}.ledger-ingestion.counts-updated`,`${E}.ai-agents-activation.phase-changed`]}),[f]),mt=d.useCallback(((E,te)=>{if(te==null||typeof te!="object")return;const C=te;if(E!=="ledger-ingestion.counts-updated"){if(E==="ai-agents-activation.phase-changed"){const re=typeof C.phase_key=="string"?C.phase_key:typeof C.key=="string"?C.key:"",J=typeof C.status=="string"?C.status:"idle";if(re==="")return;R(xt({key:re,status:J==="starting"||J==="building"||J==="ready"?J:"idle",startedAt:typeof C.started_at=="string"?C.started_at:void 0,completedAt:typeof C.completed_at=="string"?C.completed_at:void 0}))}}else R(wt({customerCount:typeof C.customer_count=="number"?C.customer_count:void 0,glAccountCount:typeof C.gl_account_count=="number"?C.gl_account_count:void 0,targetTransactionCount:typeof C.target_transaction_count=="number"?C.target_transaction_count:void 0,transactionCount:typeof C.transaction_count=="number"?C.transaction_count:void 0,vendorCount:typeof C.vendor_count=="number"?C.vendor_count:void 0}))}),[R]);return vn({events:pt,onEvent:mt,onSubscribed:pe}),d.useMemo((()=>{const E=ie?.phases??[],te=Ke(E,ge),C=Ke(E,fe),re=qe(E,ge),J=qe(E,fe),Be=E.some((yt=>yt.status!=="idle")),ne=!ee&&!Be,Ne=ee&&!Be,gt=Ne?ge.map((()=>"building")):te,ft=Ne?fe.map((()=>"building")):C;return{ledgerRowStatuses:ne?void 0:gt,backgroundRowStatuses:ne?void 0:ft,showLedgerReadyInLabel:ne?void 0:re,showBackgroundReadyInLabel:ne?void 0:J,forceContinueEnabled:!ne||void 0,counts:ie?.counts,onContinueClicked:Fe}}),[ie?.phases,ie?.counts,ee,Fe])})({companyId:v});if(Ee===!0){if(!Pe)return lt?a.jsx(B,{to:"../../treasury"}):dt?a.jsx(B,{to:"../../checking"}):ut?a.jsx(B,{to:"../../cards"}):a.jsx(B,{to:"../../dashboard"});const f=P.updateStatus.fetchState==="In-Progress";if(Pe&&!f)return e?a.jsxs(He,{children:[a.jsx(oe,{analytics:N,onLoad:R=>Ae(R)}),a.jsx(We,{navigate:o,location:l,companyId:v,currentTenant:m,isAdmin:W,isOnAddressPage:u,themeState:S,googleAPIKey:Se.googleMapsAPIKey,integrationsSectionProps:De,aiAgentsActivationProps:je}),i!=null?a.jsx(Ze,{windowSize:y,skipLegacyDrawerOffset:u&&m.productSettings.isOtherProductsEnabled!==!0,children:i}):null]}):a.jsx(B,{to:"../../onboarding/thankyou"})}else if(Ee===!1&&r?.loggedInUserRoleMap!=null)return Y===!0?a.jsx(B,{to:"../../onboarding/thankyou"}):a.jsxs(He,{children:[a.jsx(oe,{analytics:N,onLoad:f=>Ae(f)}),a.jsx(We,{navigate:o,location:l,companyId:v,currentTenant:m,isAdmin:W,isOnAddressPage:u,themeState:S,googleAPIKey:Se.googleMapsAPIKey,integrationsSectionProps:De,aiAgentsActivationProps:je}),i!=null?a.jsx(Ze,{windowSize:y,skipLegacyDrawerOffset:u&&m.productSettings.isOtherProductsEnabled!==!0,children:i}):null]});return null},ye="external_integrations",wn=({tenantEmailDomain:e,signedInUserEmail:u,companyId:i})=>{const o=ae(),{pendingAutoFocusTabId:l}=_n(),{plaidAccounts:c,onAddPlaidAccount:y}=On({companyId:i}),S=k((r=>r.plaidAccountViewState.external_account.plaidConnectionDetails)),t=k((r=>X(r))),n=k((r=>r.tenantState.fetchState)),s=k((r=>jt(r,i))),b=k((r=>Ft(r,ye))),_=d.useMemo((()=>new Set(b.map((r=>r.additionalInfo)).filter((r=>r!=null)))),[b]),I=t.tenantId,w=ue(t.userRole??[]);return d.useEffect((()=>{o(Bt(ye))}),[o]),d.useMemo((()=>({isAdmin:w,integrationsView:s,isLoading:n==="In-Progress",notifyMeRegisteredSlugs:_,autoFocusTabId:l??void 0,saveChargeBeeState:s.externalConnections?.saveAPIKeyConnectionState??"Not-Started",saveChargeBeeError:s.externalConnections?.saveAPIKeyConnectionError?.message,saveHubSpotState:s.externalConnections?.saveOAuthConnectionState??"Not-Started",saveHubSpotError:s.externalConnections?.saveOAuthConnectionError?.message,saveConnectorCredentialsStateBySlug:s.externalConnections?.saveConnectorCredentialsStateBySlug??{},saveConnectorCredentialsErrorBySlug:Object.fromEntries(Object.entries(s.externalConnections?.saveConnectorCredentialsErrorBySlug??{}).map((([r,g])=>[r,g?.message]))),deleteConnectionState:s.externalConnections?.deleteConnectionState??"Not-Started",deleteConnectionError:s.externalConnections?.deleteConnectionError?.message,onConnectGmail:()=>{o(Ue(I,"gmail",Je()))},onConnectOutlook:()=>{o(Ue(I,"outlook",Je()))},onConnectHubSpot:(r,g)=>{const p=s.externalConnections?.revenue?.find((T=>T.connectionName==="hubspot"))?.connectionId;if(p==null)return;const O=`${window.location.origin}/oauth/hubspot/callback`;sessionStorage.setItem("hubspot_oauth_pending",JSON.stringify({client_id:r,client_secret:g,connection_id:p,redirect_uri:O,tenant_id:I})),window.location.href=`https://app.hubspot.com/oauth/authorize?client_id=${encodeURIComponent(r)}&scope=${encodeURIComponent("oauth crm.objects.deals.read crm.objects.owners.read")}&redirect_uri=${encodeURIComponent(O)}`},onDisconnect:(r,g)=>{o($t(I,r,me(g)))},onNotifyMe:r=>{N.trackIntegrationsNotifyMeClicked("Onboarding",r),o(Lt(ye,r,u))},onReconnectQBO:()=>{se.init("/onboarding/auth",e),se.handleClick()},onRefreshClick:()=>{s.integrations.refreshQBO.fetchState!=="In-Progress"&&o(Rt())},onSaveChargeBeeCredentials:(r,g)=>{const p=s.externalConnections?.revenue?.find((O=>O.connectionName==="chargebee"))?.connectionId;p!=null&&o(Vt(I,p,me("revenue"),Ut("chargebee"),{api_key:r,site:g}))},onSaveConnectorCredentials:r=>{o(Nt(I,me("payments"),r))},plaidAccounts:c,onAddPlaidAccount:y,plaidConnectionDetails:S})),[w,s,n,_,l,I,u,e,o,c,y,S])};function Je(){const e=new URL(window.location.href);return e.searchParams.set("onboarding_step","connect_data_source"),e.toString()}function Xe(e,u,i){let o=`/${e}/onboarding/address`;return o=i!=null?o.concat(`/edit/${u}/${encodeURIComponent(i)}`):o.concat(`/new/${u}`),o}const Ye=we.div`
|
|
27
|
-
display: flex;
|
|
28
|
-
height: 100vh;
|
|
29
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
30
|
-
`,et=tt((function(e,u){const{companyId:i,currentTenant:o}=u,l=ve(e,i),c=st(e);return{hasVerifiedBankAccount:(l.paymentAccount?.providerVerificationStatus?.code?.includes("verified")??!1)||(c.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1),isDisabled:ue(o?.userRole??[])&&l.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",signedInUser:L.getSignedInUser(),currentTenant:o,meetingUrl:"https://meetings.hubspot.com/niharn/zeni-onboarding-overview?embed=true"}}),(function(e,u){const{currentTenant:i,themeState:o,navigate:l,location:c}=u,{tenantEmailDomain:y}=i;return{onZeniLogoClick:()=>{o.toggle()},handleLogOutClick:()=>{const S=Q(c.state?.pathnameStackToGoBack,c.pathname);l("/signout",{replace:!0,state:{pathnameStackToGoBack:S,message:"logout"}})},handleCockpitClick:()=>{window.open("/cockpit")},handleReferralsClick:()=>{l(`/${y}/rewards`)},handleUpdatePaymentAddressDetailClick:()=>{const S=Q(c.state?.pathnameStackToGoBack,c.pathname);l(`/${y}/onboarding/billing/edit`,{state:{pathnameStackToGoBack:S,message:"UpdatePaymentAddressDetail"}})}}}))(Cn),xn=()=>{const e=Ce(),u=ae(),i=Ie(),o=rt(),{useFeatureGate:l}=Te(),{isFeatureEnabled:c}=l(Z.isDebitCardFeatureEnabled),{tenantEmailDomain:y}=ke(),S=ct(),[t,n]=d.useState(!1);d.useEffect((()=>{t===!1&&i.state?.message==="OnboardingThankyou"&&n(!0)}),[i.state]);const s=k((p=>X(p))),b=s.productSettings.isOtherProductsEnabled;d.useEffect((()=>{u(it(_,!1,!b))}),[]);const _=s.companyId??L.getSignedInUserTenant(y)?.companyId;if(S.loggedInUser==null)throw Error("Can't access onboarding flow without signing in...");const I=_e(c,s),w=Oe(s),r=k((p=>p.onboardingCustomerViewState.updateStatus.fetchState)),g=s.company?.companyOnboardingInfo.isOnboardingCompleted;if(g!==!0||b)return r==="Completed"&&g===!0&&b&&S?.loggedInUserRoleMap!=null?a.jsxs(Ye,{children:[a.jsx(oe,{analytics:N,onLoad:p=>{p.trackPageLoaded(be.Event.onboardingLandingPage,"Onboarding",mn(s.productSettings))}}),a.jsx(et,{navigate:e,showUpdatePaymentDetailButton:b,location:i,companyId:_,currentTenant:s,themeState:o,isVisitingFirstTime:t})]}):r==="Completed"&&g===!1&&S?.loggedInUserRoleMap!=null?a.jsxs(Ye,{children:[a.jsx(oe,{analytics:N,onLoad:p=>{p.trackPageLoaded(be.Event.onboardingInterimPage)}}),a.jsx(et,{navigate:e,showUpdatePaymentDetailButton:b,location:i,companyId:_,currentTenant:s,themeState:o,isVisitingFirstTime:t})]}):a.jsx(bn,{});{const p={pathnameStackToGoBack:i.state?.pathnameStackToGoBack,message:"activation"};return I?a.jsx(B,{to:"../../checking",state:p,replace:!0}):w?a.jsx(B,{to:"../../cards",state:p,replace:!0}):a.jsx(B,{to:"../../dashboard",state:p,replace:!0})}};function ta(){return a.jsxs(Ct,{children:[a.jsx(H,{path:"/",element:a.jsx(ce,{})}),a.jsx(H,{path:"/billing/edit",element:a.jsx(ce,{taxCFOCustomer:!0})}),a.jsx(H,{path:"/thankyou",element:a.jsx(xn,{})}),a.jsx(H,{path:"/activation",element:a.jsx(Tn,{})}),a.jsx(H,{path:"/address/edit/:addressType/:addressId",element:a.jsx(ce,{isOnAddressPage:!0,appContent:a.jsx(Ve,{})})}),a.jsx(H,{path:"/address/new/:addressType",element:a.jsx(ce,{isOnAddressPage:!0,appContent:a.jsx(Ve,{})})}),a.jsx(H,{path:"*",element:a.jsx(St,{})})]})}export{ta as default};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-DKL6viSK.js";import{h as w,g as C,j as h,n as A,i as P}from"./core-DnZcjy6X.js";import{QA as k,QH as _,gn as q,gm as J,gl as K,jI as W,NH as L,rS as M,e$ as V,Q6 as D,jG as T,QB as S,QK as j,jE as F,j$ as G}from"./zeni-epic-state-m4zoW3ek.js";import{bz as X,J as N,w as R,z as U,E as H,q as p,i as v,B as Q,bA as Y,o as z,bB as ee,r as te}from"./index-Bar5dTpy.js";import{n as O}from"./mui-sr6zger7.js";import"./sentry-DFI2OQU2.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]="6a3541fe-b82b-4bfb-b6fe-da51211d89c6",e._sentryDebugIdIdentifier="sentry-dbid-6a3541fe-b82b-4bfb-b6fe-da51211d89c6")}catch{}})();const ne=A(null,(function(e,t){return{onSaveVendor:n=>{e(W(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(L("common")),n!=null&&e(M(n))},onGetOtp:n=>{e(K(n,"BillPayVendor"))},onResendOtp:n=>{e(J(n,"BillPayVendor"))},onVerifyOtp:(n,a)=>{e(q(n,a,"BillPayVendor"))},onVerifyOtpSuccess:(n,a,o)=>{e(_(n,a,o))}}}))(X);function Z({vendorId:e,billId:t,isExpressPayPage:n}){const a=w(),o=C(),s=h((i=>k(i,e)));return l.jsx(ne,{location:o,navigate:a,vendorId:e,billId:t,vendorViewDetails:s,isExpressPayPage:n??!1})}const ae=O.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`,oe=A((function(e,t){const{vendorId:n,billId:a}=t,o=k(e,n),s=D(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,a);return{billId:a,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}}),(function(e,t){const{navigate:n,location:a,vendorId:o}=t;return{onFetchBankName:s=>{e(G(s))},onSaveHandler:s=>{e(F(t.bankAccountContext,s,"standard",o))},onCancel:()=>{(()=>{const s=p(a.state?.pathnameStackToGoBack),i=s.poppedPathname??$();n(i,{state:{pathnameStackToGoBack:s.newStack}})})(),e(S())},onACHDetailsUpdated:s=>{const{bankAccountSection:i}=s;e(j({data:i}))},onBackClick:()=>{if(e(T({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")n("../",{relative:"path"});else{const s=p(t.location.state?.pathnameStackToGoBack),i=s.poppedPathname??$(0);t.navigate(i,{state:{pathnameStackToGoBack:s.newStack}})}e(S())}}}))(Y);function fe({vendorIdParam:e,accountContext:t}){const n=w(),a=C(),o=N(),{vendorId:s,billId:i}=P(),c=e??s,{useFeatureGate:r}=R(),d=U.getSignedInUser(),b=h((u=>V(u))),g=H(),I=p(a.state?.pathnameStackToGoBack),f=t??(I.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h((u=>k(u,c))),{isFeatureEnabled:x}=r(v.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=r(v.isDepositAccountsFeatureEnabled);if(d==null)throw Error("Can't access address page without signing in...");return f==="billDetail"&&m.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(Q,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:g.colors.grey5}}):l.jsxs(ae,{windowSize:o,children:[l.jsx(Z,{vendorId:c,billId:i}),l.jsx(oe,{location:a,navigate:n,billId:i,vendorId:c,currentTenant:b,bankAccountContext:f,isVendorRecommendationEnabled:x,isZeniAccountsFeatureEnabled:y})]})}const $=(e=2)=>{let t="../";for(let n=0;n<e;n++)t=`${t}../`;return t},me=(e,t,n)=>{let a=`/${e}/bill/${encodeURIComponent(t)}`;return n=="draft"&&(a+="/edit"),a},he=e=>`/${e}/bills`,ke=(e,t)=>{let n=`/${e}/bill`;return n=t!=null?n.concat(`/${t}/edit`):n.concat("/new"),n},E=(e,t,n,a)=>{let o=`/${e}/bill`;return o+=n!=null?`/${n}/edit/vendor`:"/new/vendor",o+=a!=null?`/${a}/edit/${t}`:`/create/${t}`,o};function Se(e,t,n){return E(e,"ach",t,n)}function ve(e,t,n){return E(e,"domestic",t,n)}function ge(e,t,n){return E(e,"international",t,n)}const se=(e,t,n)=>{let a=`/${e}/bill/`;return a=n!=null?a.concat(`${encodeURIComponent(n)}/${t}/`):a.concat(`new/${t}/`),a},re=O.div`
|
|
10
|
-
display: flex;
|
|
11
|
-
height: 100vh;
|
|
12
|
-
width: 100%;
|
|
13
|
-
flex: 1 1 auto;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
align-items: center;
|
|
16
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
17
|
-
box-shadow: ${e=>`0px 2px ${z.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
18
|
-
`,ie=A((function(e,t){const{vendorId:n,billId:a}=t,o=k(e,n),s=D(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,a);return{billId:a,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}}),(function(e,t){const{billId:n,navigate:a,location:o,vendorId:s,currentTenant:i}=t,{tenantEmailDomain:c}=i;return{onFetchBankName:r=>{e(G(r))},onSaveHandler:r=>{e(F(t.bankAccountContext,r,"us-domestic",s))},onWireDetailsUpdated:r=>{const{bankAccountSection:d}=r;e(j({data:d}))},onCancel:()=>{(()=>{const r=p(o.state?.pathnameStackToGoBack),d=r.poppedPathname??B();a(d,{state:{pathnameStackToGoBack:r.newStack}})})(),e(S())},onAddressClick:r=>{if(t.bankAccountContext==="express-pay")a("./add-address");else{const d=se(c,r,n),b=te(o.state?.pathnameStackToGoBack,o.pathname);a(d,{state:{pathnameStackToGoBack:b}})}},onBackClick:()=>{if(e(T({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")a("../",{relative:"path"});else{const r=p(t.location.state?.pathnameStackToGoBack),d=r.poppedPathname??B(0);t.navigate(d,{state:{pathnameStackToGoBack:r.newStack}})}e(S())}}}))(ee);function Ie({vendorIdParam:e,accountContext:t}){const n=w(),a=C(),o=N(),{vendorId:s,billId:i}=P(),c=e??s,r=U.getSignedInUser(),{useFeatureGate:d}=R(),b=H(),g=h((u=>V(u))),I=p(a.state?.pathnameStackToGoBack),f=t??(I.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h((u=>k(u,c))),{isFeatureEnabled:x}=d(v.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=d(v.isDepositAccountsFeatureEnabled);if(r==null)throw Error("Can't access address page without signing in...");return f==="billDetail"&&m.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(Q,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:b.colors.grey5,boxShadow:`0px 2px ${z.sp1} ${b.colors.dropShadowNormal}`}}):l.jsxs(re,{windowSize:o,children:[l.jsx(Z,{vendorId:c,billId:i}),l.jsx(ie,{location:a,navigate:n,billId:i,vendorId:c,currentTenant:g,bankAccountContext:f,isVendorRecommendationEnabled:x,isZeniAccountsFeatureEnabled:y})]})}const B=(e=2)=>{let t="../";for(let n=0;n<e;n++)t=`${t}../`;return t};export{fe as A,Ie as D,Z as V,me as a,se as b,ke as c,ve as d,he as g,ge as i,Se as v};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-DKL6viSK.js";import{J as l,G as c,E as f}from"./index-Bar5dTpy.js";import{D as p}from"./mui-sr6zger7.js";import"./sentry-DFI2OQU2.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]="a9db073a-25eb-4a7d-9307-cd57c4a62335",e._sentryDebugIdIdentifier="sentry-dbid-a9db073a-25eb-4a7d-9307-cd57c4a62335")}catch{}})();const b={drawerLeftMargin:new c(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:n,onClose:t}=e,a=l(),s=o?.valuePx(a)??b.drawerLeftMargin.valuePx(a),d=f();return i.jsx(p,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${s})`}},slotProps:{backdrop:{style:{backgroundColor:d.colors.black,opacity:.8,cursor:"pointer"}}},onClose:t,children:n})}export{h as D};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-DKL6viSK.js";import{a as d}from"./sentry-DFI2OQU2.js";import{h as A,u as B,g as G,i as N,j as l,N as q,n as F,o as _,p as $}from"./core-DnZcjy6X.js";import{OP as z,e$ as K,Ob as L,lL as M,KI as k,OU as R,NG as W,kL as Y,KJ as S,Og as H,Oh as J,NI as U,NH as V}from"./zeni-epic-state-m4zoW3ek.js";import{aX as X,e as Q,q as Z,r as tt}from"./index-Bar5dTpy.js";import"./mui-sr6zger7.js";import{d as I}from"./decodeURIComponentSafe-CjxujRw-.js";import{w as et}from"./withTransactionSidePanel-CBujpiDq.js";import{f as at,c as nt}from"./routePaths-BQ28bs96.js";import"./recharts-Bim6mdwu.js";import"./analytics-DtYJ-EGT.js";import"./plaid-QvRDxgoN.js";import"./dnd-eoV-_JYH.js";import"./stripe-cKAAJElX.js";import"./lottie-Dz5luYQG.js";import"./lexical-CSqytB8g.js";import"./pdf-BNSeVvBm.js";import"./utils-cHxIh7E8.js";import"./useAskAiCfoHostNavButtonProps-DZXDQgDN.js";import"./TransactionDetailScreen-DTD0gbHD.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]="799a1b53-2a4a-4161-9643-342d9adeef62",a._sentryDebugIdIdentifier="sentry-dbid-799a1b53-2a4a-4161-9643-342d9adeef62")}catch{}})();const ot=F((function(a,t){const e=t.entity,o=R(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:W(a,"common")},trendWithTransactionsReport:o,analytics:Q,isAccountingClassesEnabled:Y(a)}}),(function(a,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const o=`${nt(e,t.tenantEmailDomain)}`,c=tt(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(o,{state:{pathnameStackToGoBack:c}})},autoCompleteActions:{onAutoCompleteInputChange:e=>{e.trim().length>=2?a(U({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(V("common"))},onAutoCompleteEntity:e=>{const o=at(e,t.tenantEmailDomain);a(H()),a(J()),t.resetTrendIsFetchedStates(),t.navigate(o,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=Z(t.location.state?.pathnameStackToGoBack),o=e.poppedPathname??b();t.navigate(o,{state:{pathnameStackToGoBack:e.newStack}})}},onTrendSelectedPeriodChange:e=>{if(t.closeSidePanel?.(),e==null)t.defaultTransactionTimePeriod!=null&&a(S(t.entity,"EntityDetail",{timeframe:"quarter",timePeriod:t.defaultTransactionTimePeriod}));else{const o=e.currentTimePeriod==null?e.addTimePeriod:{startDate:e.addTimePeriod.startDate,endDate:e.currentTimePeriod.endDate};a(k(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),a(S(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:o}))}}}}))(X),it=et((function({entityType:a,...t}){const e=A(),o=B(),c=G(),[m,h]=d.useState(!1),[T,g]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:w,entityNameEncoded:x}=N(),r=I(w??""),p=I(x??""),u=rt(r,p),O=[r,p].filter((n=>n!=null)),i={name:p,id:r,type:a,zeniId:r,qboId:r},D=l((n=>z(n.customerIncomeState,n.vendorExpenseState,n.trendState,i,"quarter"))),j=l((n=>K(n).company?.companyInfo.firstMonthOfFY??1)),f=l((n=>L(n.trendWithTransactionsState,i,"EntityDetail")));d.useEffect((()=>{m===!1&&u===!0&&(h(!0),o(M(i)))}),[m,u,i]);const P=l((n=>n.trendState.fetchState)),E=f?.selectedPeriod?.timePeriod??D,v=(function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y})(f?.selectedPeriod?.timePeriod,D);return d.useEffect((()=>{m===!0&&T===!1&&P==="Completed"&&(g(!0),E!=null&&o(k(i,"EntityDetail",{timeframe:f?.selectedPeriod?.timeframe??"quarter",timePeriod:E})))}),[m,T,P]),u?s.jsx(ot,{firstMonthOfFY:j,tenantEmailDomain:C,location:c,navigate:e,entity:i,defaultTransactionTimePeriod:v,resetTrendIsFetchedStates:()=>{h(!1),g(!1)},...t}):s.jsx(q,{to:b(O.length)})})),rt=(a,t)=>t!=null&&t.length>0&&a!=null&&a.length>0,b=(a=2)=>{let t="../";for(let e=0;e<a;e++)t=`${t}../`;return t};function wt({entityType:a}){return s.jsx(_,{children:s.jsx($,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:a})})})}export{wt as EntityDetailRoutes,wt as default};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import{j as S}from"./liveblocks-DKL6viSK.js";import ia from"./NotFoundScreen-D7eT4TBn.js";import{a,b as tn}from"./sentry-DFI2OQU2.js";import{n as Le,S as la}from"./mui-sr6zger7.js";import{u as Se,h as nn,g as tt,j as R,n as ra,i as Vt,o as da,p as He}from"./core-DnZcjy6X.js";import{e$ as Oe,Ty as ua,ox as ve,g0 as ma,st as pa,Tz as Ke,fD as nt,TA as Ot,el as ha,fm as ga,TB as _t,TC as Be,pd as Ca,TD as Sa,pq as Ia,oO as an,gt as ue,gv as fa,TE as ka,p7 as on,pt as Ea,TF as sn,oI as ba,r$ as Ta,fN as ye,TG as _e,uz as cn,EV as ln,TH as rn,TI as ya,rz as at,OQ as zt,OS as va,kO as Aa,OT as Pa,kV as wa,c$ as Ra,vP as ot,oU as dn,py as ze,TJ as xa,NI as Mt,NH as Fe,TK as Lt,la as Da,TL as Ua,TM as Fa,TN as Ba,TO as Va,o$ as Oa,pB as Ve,TP as _a,TQ as za,TR as Ma,pI as La,kZ as ja,kQ as $a,TS as qa,kY as jt,P1 as Ga,TT as Na,TU as Ja,rv as Ya,r7 as Qa,pz as Ce,r6 as We,TV as Za,TW as Ha,TX as Ka,mt as Wa,bo as Xa,mo as $t,ma as eo,TY as to,gG as no,ml as ao,xI as oo,TZ as so,q7 as co,q2 as io,q6 as lo,pT as ro,T_ as uo,fQ as un,ph as mo,oX as po,g1 as qt,pD as ho,T$ as go,U0 as Co,pA as mn,U1 as So,U2 as Io,U3 as fo,U4 as ko,U5 as Gt,rH as Eo,q_ as bo,NG as To,U6 as yo,U7 as vo,kX as Ao,U8 as Po,JJ as wo,kW as Ro,kL as xo,fP as Do,qw as pn,qS as Uo,px as Nt,pC as Fo,bE as Bo,mi as Vo,mf as Oo,U9 as _o,pS as Jt,qO as Yt,qM as zo,Ua as Mo,qB as Lo,qh as jo,qP as $o,Ub as qo,Uc as Go,ql as No,Ud as Jo,qc as Yo,qk as Qo,qi as Zo,qV as Ho}from"./zeni-epic-state-m4zoW3ek.js";import{w as Me,i as Q,e as J,r as ie,Z as hn,a0 as gn,cZ as Ko,z as je,c_ as Wo,c$ as Xo,d0 as es,au as Ae,d1 as ts,d2 as Qt,aZ as Zt,B as Cn,d3 as ns,ar as Xe,a as as,a9 as os,d4 as ss,a4 as cs,d5 as is,Y as ls,d6 as rs,d7 as ds,x as us,D as ms,aS as ps,d8 as hs,d9 as gs,be as Cs,G as Ss,aV as Is}from"./index-Bar5dTpy.js";import{u as Sn}from"./useAskAiCfoHostNavButtonProps-DZXDQgDN.js";import{f as Ht,a as fs,b as ks,g as Es,C as bs}from"./TransactionDetailScreen-DTD0gbHD.js";import{w as Ts}from"./withTransactionSidePanel-CBujpiDq.js";import{h as ys,v as vs}from"./routePaths-BQ28bs96.js";import{g as et}from"./accountMappingHelper-B-kf-Qnc.js";import{D as As}from"./DrawerScreen-B34R7bdb.js";import"./recharts-Bim6mdwu.js";import"./analytics-DtYJ-EGT.js";import"./plaid-QvRDxgoN.js";import"./dnd-eoV-_JYH.js";import"./stripe-cKAAJElX.js";import"./lottie-Dz5luYQG.js";import"./lexical-CSqytB8g.js";import"./pdf-BNSeVvBm.js";import"./utils-cHxIh7E8.js";import"./decodeURIComponentSafe-CjxujRw-.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="6ae4d1c8-0b4c-4726-b60e-2b96136a866d",t._sentryDebugIdIdentifier="sentry-dbid-6ae4d1c8-0b4c-4726-b60e-2b96136a866d")}catch{}})();const Ps=()=>{const t=Se(),s=nn(),P=tt(),E=R((u=>Oe(u))),{useFeatureGate:T}=Me(),{isFeatureEnabled:i}=T(Q.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:m}=T(Q.aiAuditScorePercentage),I=R((u=>u.expenseAutomationViewState.selectedPeriodByTenantId)),c=R((u=>ua(u,E.tenantId))),{isAiCfoAccessEnabled:C,onAskAiCfoClick:h}=Sn({mobileExploreReferrer:"Month-End Close Overview"}),w=a.useCallback(((u,M,ae=!1)=>{t(ve({tenantId:M,period:{month:u.month,year:u.year},refreshViewInBackground:ae}))}),[]),v=a.useCallback((u=>{const M=P.state?.referrer;c.monthEndCloseChecks?.auditSummary!=null&&J.trackMonthCloseAuditPage(u.month,u.year,c.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",c.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,M??null),t(ma(E.tenantId,u))}),[E.tenantId,c.monthEndCloseChecks?.auditSummary,c.monthEndCloseChecks?.reportEmailSentDate]),r=I[E.tenantId],p=a.useCallback((()=>{const u=P.state?.referrer;c.monthEndCloseChecks?.auditSummary!=null&&J.trackMonthCloseAuditPage(r.month,r.year,c.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",c.monthEndCloseChecks.auditSummary.auditScorePercentage,!0,u??null),w(r,E.tenantId,!0)}),[w,r,E.tenantId,c.monthEndCloseChecks?.auditSummary,c.monthEndCloseChecks?.reportEmailSentDate]),V=ie(P.state?.pathnameStackToGoBack,P.pathname),x=a.useCallback((()=>{if(c.monthEndCloseChecks!=null&&r!=null){const u=c.monthEndCloseChecks.monthEndCloseCheckList.find((M=>M.progress<100));if(u!=null)return void s(`./${u.id}/${r.month}-${r.year}`,{state:{pathnameStackToGoBack:V,message:"comingFromOverview"}});s(`./month_end_insights/${r.month}-${r.year}`,{state:{pathnameStackToGoBack:V,message:"comingFromOverview"}})}}),[c.monthEndCloseChecks,r]),{areTenantIdsInSync:f}=hn();return gn({isDataReady:c.fetchState==="Completed"}),a.useEffect((()=>{r!=null&&c.fetchState!=="In-Progress"&&c.fetchState!=="Completed"&&f&&w(r,E.tenantId)}),[w,r,c.fetchState,E.tenantId,f]),a.useEffect((()=>{r!=null&&c.monthClosePerformanceTrendFetchStatus.fetchState!=="In-Progress"&&c.monthClosePerformanceTrendFetchStatus.fetchState!=="Completed"&&f&&t(pa(r))}),[r,c.monthClosePerformanceTrendFetchStatus.fetchState,f]),a.useEffect((()=>{const u=setInterval((()=>{c.fetchState!=="In-Progress"&&c.fetchState==="Completed"&&p()}),3e5);return()=>clearInterval(u)}),[c.fetchState]),a.useEffect((()=>{if(c.fetchState==="Completed"&&c.monthEndCloseChecks?.auditSummary!=null){const u=P.state?.referrer;J.trackMonthCloseAuditPage(c.selectedPeriod.month,c.selectedPeriod.year,c.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",c.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,u??null)}}),[c.fetchState,c.selectedPeriod,c.monthEndCloseChecks?.auditSummary,c.monthEndCloseChecks?.reportEmailSentDate]),S.jsx(ws,{children:S.jsx(Ko,{monthEndCloseChecksView:c,isRealtimeInsightsFeatureEnabled:i,onMonthEndCheckClick:u=>{s(`./${u}/${r.month}-${r.year}`,{state:{pathnameStackToGoBack:V,message:"comingFromOverview",referrer:"Expense Automation - Overview"}})},onPeriodChange:v,handleReviewButtonClick:x,onBackClick:()=>{s("../../dashboard")},onReload:p,isAiCfoAccessEnabled:C,onAskAiCfoClick:h,aiAuditScorePercentageEnabled:m})})},ws=Le.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
background-color: ${t=>t.theme.colors.grey4};
|
|
8
|
-
`,Rs=tn.memo((({reconciliation:t,selectedDrawerAccountId:s,onClose:P,onFetchLinkTokenClick:E,onEstablishConnectionClick:T})=>{const i=Se(),{useFeatureGate:m}=Me(),{isFeatureEnabled:I}=m(Q.isReconV3Enabled),c=je.getSignedInUser(),C=R((k=>Oe(k))),h=t.excludedAccountIDs,w=a.useMemo((()=>({userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:C?.tenantId??""})),[c?.userId,c?.zeniSessionId,C?.tenantId]),{accountReconciliationsByAccountID:v,monthYearPeriod:r,statementUploadChosen:p}=t,V=v[s],x=a.useRef(!1),f=a.useCallback((k=>{x.current=k,Qt(s,k)}),[s]),u=a.useCallback((k=>{i(Ke({accountId:s,selectedPeriod:r,dismissedToBackground:!0,backgroundCompletedSteps:k.completedSteps,startedAtMs:k.startedAtMs,totalDurationSeconds:k.totalDurationSeconds})),V!=null&&requestAnimationFrame((()=>{x.current||i(nt({messageSection:"statement_parsing_in_progress",messageText:"success",type:"info",showStatusIcon:!0,variables:[{variableName:"_account_name_",variableValue:Wo(V)}]}))}))}),[i,r,V,s]),M=a.useCallback((()=>{i(Ke({accountId:s,selectedPeriod:r,dismissedToBackground:!1}))}),[i,s,r]),ae=a.useCallback((k=>{i(Ot({accountId:s,selectedPeriod:r,backgroundCompletedSteps:k}))}),[i,r,s]),j=a.useCallback((()=>{i(Ot({accountId:s,selectedPeriod:r,backgroundCompletedSteps:0})),i(Ke({accountId:s,selectedPeriod:r,dismissedToBackground:!1}))}),[i,r,s]);a.useEffect((()=>()=>{Qt(null,!1)}),[]);const O=V?.parsedStatementData?.statementUpload?.statementMeta?.statementUploadId??V?.accountReconEntity.statementMetaData?.statementUploadId,e=V?.statementDateConflict?.previousReconciliationInfo?.reconciledByUserId,n=R((k=>e!=null&&e!==""?ha(ga(k.userState,e)):"")),l=a.useCallback((()=>{i(_t({accountId:s,selectedPeriod:r}))}),[i,s,r]),d=a.useCallback((()=>{i(_t({accountId:s,selectedPeriod:r})),i(Be({statementUploadChosen:!0}))}),[i,s,r]),b=(k,pe)=>{i(Ta(k,pe.split(".")[0]))},g=k=>{O!=null&&i(ba({accountId:s,selectedPeriod:r,fileId:k,statementUploadId:O}))},y=()=>{i(Be({statementUploadChosen:!1}))},D=k=>{i(Ea({accountId:s,selectedPeriod:r,payload:k}))},U=a.useCallback(((k,pe,$e)=>{i(Ca({accountId:k,selectedPeriod:pe,statementUploadId:$e}))}),[i]),F=a.useCallback((k=>{i(Sa({accountId:s,selectedPeriod:r,statementUpdateLocalData:k}))}),[i,s,r]),L=a.useCallback((()=>{O!=null&&i(Ia({accountId:s,selectedPeriod:r,statementUploadId:O}))}),[i,s,r,O]),ee=a.useCallback((()=>{i(Be({statementUploadChosen:!0}))}),[i]),W=k=>{i(sn({accountId:s,selectedPeriod:r,localData:{accountSource:k}}))},me=a.useCallback((()=>{i(an({accountId:s}))}),[i,s]),Ie=a.useCallback((k=>{i(ue(r,k)),P()}),[i,r,P]),G=a.useCallback((()=>{i(fa({accountId:s,selectedPeriod:r,statementProcessingFailed:!1})),i(ka({accountId:s,selectedPeriod:r}))}),[i,s,r]),Pe=a.useCallback((()=>{i(on({accountId:s}))}),[i,s]),le=h.includes(s)?t.excludedAccountReconciliationByAccountID[s]:void 0;if(le!=null)return S.jsx(Kt,{children:S.jsx(Wt,{$isV3:I===!0,children:S.jsx(Xo,{excludedAccountReconciliation:le,includeAccountFetch:t.includeAccountFetchState,isReconV3Enabled:I,onDismissClick:P,onIncludeIntoReconciliation:Pe})})});if(V!=null){const k=I===!0?S.jsx(es,{excludeAccountFetch:t.excludeAccountFetchState,accountReconciliation:V,monthYearPeriod:r,onDismissClick:P,plaidConnectionDetails:t.plaidConnectionDetails,onFetchLinkTokenClick:E,onEstablishConnectionClick:T,onEditFileName:b,onDeleteFile:g,onSelectSourceType:W,filesEndPoint:Ae.fileMicroServiceBaseUrl,authParams:w,openFilePicker:p,onStatementUploadSuccess:D,onUploadWindowOpenedOnce:y,onExcludeFromReconciliation:me,onRetryParsing:U,onReviewClicked:Ie,statementProcessingFailed:V.statementProcessingFailed,statementProcessingDismissedToBackground:V.statementProcessingDismissedToBackground,onDismissStatementProcessingFailed:G,onContinueInBackground:u,onClearStatementProcessingDismissedToBackground:M,onResetStatementProcessingProgress:j,onStatementProcessingProgressChange:ae,onStatementFlowVisibilityChange:f,onReuploadStatement:ee,onStatementFormDataChange:F,onStatementConfirmSave:L,reconciledByName:n,onDismissDateConflict:l,onReuploadAfterDateConflict:d,isReconV3Enabled:I}):S.jsx(ts,{excludeAccountFetch:t.excludeAccountFetchState,accountReconciliation:V,monthYearPeriod:r,onDismissClick:P,plaidConnectionDetails:t.plaidConnectionDetails,onFetchLinkTokenClick:E,onEstablishConnectionClick:T,onEditFileName:b,onDeleteFile:g,onSelectSourceType:W,filesEndPoint:Ae.fileMicroServiceBaseUrl,authParams:w,openFilePicker:p,onStatementUploadSuccess:D,onUploadWindowOpenedOnce:y,onExcludeFromReconciliation:me});return S.jsx(Kt,{children:S.jsx(Wt,{$isV3:I===!0,children:k})})}return null})),Kt=Le.div`
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
height: 100%;
|
|
12
|
-
`,Wt=Le.div`
|
|
13
|
-
flex: 1;
|
|
14
|
-
min-height: 0;
|
|
15
|
-
display: flex;
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
box-sizing: border-box;
|
|
18
|
-
min-width: 0;
|
|
19
|
-
overflow-x: hidden;
|
|
20
|
-
overflow-y: ${t=>t.$isV3===!0?"hidden":"auto"};
|
|
21
|
-
`;function xs({companyId:t,closeCustomerRequestDrawer:s,addCustomerRequest:P,resetCustomerRequest:E}){const T=je.getSignedInUser();if(T==null)throw Error("Can't access Customer Request page without signing in...");const i=R((m=>ya(m,t,T)));return a.useEffect((()=>{E()}),[]),S.jsx(S.Fragment,{children:i.fetchState==="In-Progress"||i.companyMonthEndReportTemplatesData.fetchState==="In-Progress"?S.jsx(Cn,{fetchState:"In-Progress"}):S.jsx(ns,{onCloseClick:s,addCustomerRequest:P,snippets:i.companyMonthEndReportTemplatesData,bulletPoints:i.zeniRequestsData??[]})})}const Ds=t=>t.sections.generalExpense.vendors.length+t.sections.reimbursement.vendors.length,{common:{strings:{hyphen:Us,comma:Xt,space:Fs}},dateFormat:In}=as.getLocalizedStrings(),en=Ho,Bs=ra((function(t,s){const{uncategorizedAccounts:P,vendorSearchAutoCompleteData:E,monthEndInsightsCustomerRequestData:T,monthEndInsightsPreviewMode:i,companyId:m,isMissingReceiptsBulkUploadEnabled:I,isTransactionActivityEnabled:c}=s,C=je.getSignedInUser(),h=t.tenantState.currentTenantId,w={userId:C?.userId??"",sessionId:C?.zeniSessionId??"",tenantId:h??""},v=ye(t),{selectedTransactionCategorizationTab:r}=v;return{expenseAutomationViewSelector:v,bulkUploadSelector:I===!0?v.missingReceipts.bulkUpload:void 0,vendorSearchAutoCompleteData:E,authParams:w,receiptUploadEndpoint:`${Ae.accountMicroServiceBaseUrl}`,transactionAttachmentsEndpoint:`${cs}/transaction_attachments`,bulkUploadEndpoint:I===!0?`${Ae.communicationAgentMicroServiceBaseUrl}/1.0/receipts/bulk-upload`:void 0,isDisabled:!1,currentTab:r,monthEndInsightsCustomerRequestData:T,monthEndInsightsPreviewMode:i,allThreadsSectionOpen:!1,enableMonthEndInsightsZeniGPTFeature:!1,loggedInUser:C,uncategorizedAccounts:P,companyId:m,isTransactionActivityEnabled:c}}),(function(t,s){const{themeState:P,isAccountingClassesEnabled:E,isCOTEnabled:T,isUncategorizedExpenseCategoryEnabled:i,isMissingReceiptsBulkUploadEnabled:m,location:I,vendorSearchAutoCompleteData:c,expenseAutomationViewSelector:C,currentTenant:h,uncategorizedAccounts:w,navigate:v,onClickCustomerRequest:r,handleEditClick:p,setActivityLogTransactionId:V}=s,{selectedPeriod:x,currentSelectedView:f,reconciliation:{selectedAccountId:u}}=C,{accountSettingsView:M}=C.jeSchedules,ae=dn(x),j=ze(ae.start),O=ze(ae.end);return{onZeniLogoClick:()=>{P.toggle()},onUploadReceiptAttachment:e=>{J.trackMissingReceiptAttached(x.month,x.year),t(bo(e))},onUploadTransactionReceipt:(e,n,l,d,b,g)=>{t(Gt(e,n,{fetchState:"In-Progress"}));const y=()=>t(Gt(e,n,{fetchState:"Error"}));is(`${Ae.accountMicroServiceBaseUrl}/1.0/transactions/${n}/attachments`,g,n,l,d,b).then((D=>{D!=null?t(Eo(e,D)):y()})).catch(y)},onMissingReceiptsRowClick:(e,n)=>{if(s.openTransactionPanel)return void s.openTransactionPanel(e,n);const l=ie(I.state?.pathnameStackToGoBack,I.pathname);v(`../../transaction/${n}/${e}`,{state:{pathnameStackToGoBack:l,message:"expenseAutomation",origin:"missing_receipts"}})},onUploadReceiptComplete:(e,n)=>{t(ko(e,n)),h!=null&&t(ve({tenantId:h.tenantId,period:n,refreshViewInBackground:!0}))},onUploadReceiptFetchStatus:(e,n,l,d)=>{t(fo(e,{fetchState:n,error:l})),l!=null&&t(nt({messageSection:"missing_receipts_attachment",messageText:"failed",type:"error",showStatusIcon:!0,variables:[{variableName:"__message__",variableValue:d!=null?Fs+Us+d+Xt:Xt}]}))},onUpdateJESchedulesUIState:e=>{t(Io(e))},onUpdateMissingReceiptsUIState:e=>{t(So(e))},onFetchMissingReceiptsList:()=>{O!=null&&j!=null&&t(mn({start:j,end:O},{amount:75,currencyCode:"USD",currencySymbol:"$"},!0,!1))},...m===!0?{onBulkUploadFiles:e=>{t(Zo(e))},onBulkUploadProgress:e=>{t(Qo(e))},onBulkUploadSuccess:e=>{t(Yo({batchId:e}))},onBulkUploadUploadedFileCount:e=>{t(Jo(e))},onConfirmBulkUploadMatch:(e,n,l,d,b)=>{t(No(e,n,l,d,b))},onBulkUploadConfirmMatchAcknowledged:()=>{t(Go())},onSetBulkUploadResultsTab:e=>{t(qo(e))},onSetBulkUploadCompletedSubTab:e=>{t($o(e))},onSetBulkUploadSortConfig:(e,n)=>{t(Yt({sortKey:e,sortOrder:n}))},onClearBulkUpload:()=>{t(jo())},onSearchTransactionsForManualMatch:(e,n)=>{t(en(e,n??void 0))},onLoadMoreManualSearch:()=>{const{manualSearch:e}=C.missingReceipts.bulkUpload;e.nextPageToken!=null&&e.searchQuery!==""&&t(en(e.searchQuery,e.nextPageToken))},onFetchCompletedTransactions:(e,n)=>{t(Lo(e,n))},onClearBulkUploadBatchDetailsForScopeChange:()=>{t(Mo())},onFetchBulkUploadBatches:e=>{t(pn(e))},onFetchMoreBatchDetails:()=>{t(zo())},onResetBulkUploadSort:()=>{t(Yt({sortKey:void 0,sortOrder:void 0}))}}:{},onClearMissingReceiptsTabNavigation:()=>{t(Co())},onSearchTextChanged:e=>{const n=C.currentSelectedView,l=C.selectedTransactionCategorizationTab;n==="transaction_categorization"&&(t(We({selectedTab:l,uiState:{searchString:e}})),O!=null&&j!=null&&t(Ce(l,{start:j,end:O},!0,!1,e,void 0,!1,!0)))},onFiltersChange:e=>{const n=C.selectedTransactionCategorizationTab;t(go({filters:e,selectedTab:n}))},onRefresh:()=>{s.trackExpenseAutomationTabAnalytics(!0),t(ho(i))},onClose:()=>{f==="reconciliation"&&u!=null&&t(qt({selectedAccountId:void 0})),v("../")},onBack:()=>{f==="reconciliation"&&u!=null&&t(qt({selectedAccountId:void 0}))},onSaveReconciliation:e=>{t(po(e))},onSaveReconciliationReview:e=>{t(mo(e))},onUpdateStep:e=>{const{selectedPeriod:n}=C,l=ie(I.state?.pathnameStackToGoBack,I.pathname);v(`../${e}/${n.month}-${n.year}`,{state:{pathnameStackToGoBack:l,referrer:C.currentSelectedView}}),t(un(e))},handleLogOutClick:()=>{const e=ie(I.state?.pathnameStackToGoBack,I.pathname);v("/signout",{replace:!0,state:{pathnameStackToGoBack:e,message:"logout"}})},onJeAccountSettingsChange:e=>{const{vendorsAccountSection:n}=e,{prepaidExpensesAccount:l,fixedAssetsAccount:d,accruedExpensesAccount:b}=n,g=et(M.prepaidExpensesAccountList,l.selectedOptions),y=et(M.fixedAssetsAccountList,d.selectedOptions),D=et(M.accruedExpensesAccountList,b.selectedOptions),U={selectedPrepaidExpensesAccountIds:g.map((F=>F.accountId)),selectedFixedAssetsAccountIds:y.map((F=>F.accountId)),selectedAccruedExpensesAccountIds:D.map((F=>F.accountId))};t(uo({data:U}))},onSaveJeAccountSettingsClick:()=>{t(ro())},onJESchedulesFormDataChange(e,n){const{jeScheduleID:l,accumulatedDepreciationCategory:d,scheduleClass:b,scheduleExpenseCategory:g,vendor:y}=n,{allAccountList:D,allClassList:U,allDepreciationAccountList:F}=C.jeSchedules,L=c.entityAutoCompleteView.vendor.length>0?c.entityAutoCompleteView.vendor.find((G=>G.id===y?.selectedOption)):void 0,ee={id:L?.zeniId??y?.selectedOption??"",name:L?.name??y?.defaultOptions.find((G=>G.value===y?.selectedOption))?.label??"",logo:L?.logo},W=g?.selectedOption!=null?D.find((G=>G.qboId===g.selectedOption)):void 0,me=b?.selectedOption!=null?U.find((G=>G.classId===b.selectedOption)):void 0,Ie=d?.selectedOption!=null?F.find((G=>G.qboId===d.selectedOption)):void 0;t(lo({scheduledJournalEntryID:e,localData:{jeScheduleID:l,scheduledJournalEntryID:e,updatedCategoryId:W?.accountId,updatedClassId:me?.classId,updatedAccumulatedDepreciationCategoryID:Ie?.accountId,updatedVendor:{id:ee.id,name:ee.name}}}))},ignoreRecommendedJeSchedule(e,n){t(io(e,n))},vendorSearchAutoCompleteActions:{onAutoCompleteInputChange:(e,n)=>{e.trim().length>=2?t(Mt({searchString:e,entityType:n,searchOrigin:"common"})):e.trim().length===0&&t(Fe("common"))},onCancelAutoComplete:()=>{t(Fe("common"))}},onPostJESchedule(e,n){t(co({scheduledJournalEntryID:e,jeScheduleTransactionKey:n}))},clearJeScheduleLocalData(){t(so())},handleJeScheduleClick:(e,n,l)=>{t(oo({selectedJEScheduleKey:n}));const d=ie(I.state?.pathnameStackToGoBack,I.pathname);v(`../../vendors/schedules/${l}/details/${e}`,{state:{pathnameStackToGoBack:d,message:"expenseAutomation",origin:"je_schedules"}})},improveMonthEndInsightsUsingZeniGPTClick:e=>{h!=null&&t(ao(e,h.companyId,h.tenantId))},onClickCustomerRequest:r,setActivityLogTransactionId:V,onCloseAllThreadsSection:()=>{},onCloseFileAttachmentSnackBar:()=>{t(no())},onOpenFileAttachmentSnackBar:()=>{t(nt({messageSection:"cockpit_month_end_email_attachment_upload",messageText:"failed",type:"error",showStatusIcon:!0}))},onRemoveFileAttachment:e=>{t(to(e))},onUpdateFileAttachment:e=>{t(eo({files:e}))},previewMonthEndReport:(e,n,l,d)=>{h!=null&&t($t(e,h.companyId,n,!0,l,d,h.tenantId))},saveMonthEndReport:(e,n,l,d)=>{h!=null&&t($t(e,h.companyId,n,!1,l,d,h.tenantId))},onEditMonthEndInsightsClick:p,sendMonthEndReport:e=>{const n=I.state?.referrer,{selectedPeriod:l,auditSummary:d}=C;h!=null&&d?.auditScorePercentage!=null&&(t(Wa(h.companyId,e,h.tenantId)),J.trackInsightsEmailPage(l.month,l.year,!1,"draft",d.auditScorePercentage,Xa().format(In.analytics.MMMDDCommaYYYYformat),n??null))},onTransactionCategorizationRowClick:(e,n)=>{if(s.openTransactionPanel)return void s.openTransactionPanel(e,n);const l=ie(I.state?.pathnameStackToGoBack,I.pathname);v(`../../transaction/${n}/${e}`,{state:{pathnameStackToGoBack:l,message:"expenseAutomation",origin:"transaction_categorization"}})},setLocalDataForCategoryAndClass:(e,n,l,d,b,g,y,D,U,F,L,ee,W)=>{t(Ka(e,n,l,d,w,b,g,y,D,U,F,L,ee,W))},onCancelAutoComplete:()=>{t(Fe("common"))},updateExpenseAutomationReconListScrollPosition:e=>{t(Lt({scrollPosition:e}))},onUpdateTab:e=>{s.closeSidePanel?.(),O!=null&&j!=null&&(t(Ce(e,{start:j,end:O},!1,!1)),t(Ha(e)))},onUpdateTransactionCategorizationCompletedSubTab:e=>{s.closeSidePanel?.(),O!=null&&j!=null&&(t(Za(e)),t(Ce("autoCategorized",{start:j,end:O},!1,!1)))},onUpdateTransactionCategorizationUIState:(e,n)=>{t(We({selectedTab:e,uiState:n})),O!=null&&j!=null&&t(Ce(e,{start:j,end:O},!1,!1,n.searchString,null,!0))},onUpdateScrollYOffSetTransactionCategorizationUIState:(e,n)=>{t(We({selectedTab:e,uiState:n}))},onFetchTransactionCategorizationList:(e,n,l,d,b,g,y)=>{O!=null&&j!=null&&t(Ce(e,{start:j,end:O},!0,l,n,d,b,g,y))},resetTransactionCategorizationLocalData:(e,n,l,d,b,g,y,D)=>{t(Qa(e,n,l,d,D??null,b,g,!1,y))},updateSelectedVendorForTransaction:(e,n,l,d,b)=>{t(jt({selectedTab:e,transactionId:n,lineId:l,selectedTransaction:d,uncategorizedAccounts:w,updatedVendor:b,isAccountingClassesEnabled:E}))},onSaveUpdateTransactionCategorization:(e,n,l)=>{const d=I.state?.referrer;e==="autoCategorized"?J.trackTransactionsAutoCategorisedPage(x.month,x.year,C.transactionView.totalCountByTab.autoCategorized,n.length,!1,d??null):J.trackTransactionsReviewPage(x.month,x.year,C.transactionView.totalCountByTab.review,n.length,!1,d??null),t(Ya(e,n,l,i))},onUpdateSelectedCheckboxTransactionIds:(e,n)=>{t(Ja({selectedTab:e,transactionIds:n}))},onFetchRecommendationsForEntityCategorizationWithCustomer:(e,n,l,d,b,g,y)=>{const{transactionId:D,transaction:U,lineIds:F}=n;g!=null&&t(Ga({transactionId:D,customerUpdates:g})),t(Na({selectedTab:d,transactionId:D.id,lineId:F[0],selectedTransaction:U,uncategorizedAccounts:w,updatedCustomer:g,selectedEntity:b,isAccountingClassesEnabled:E,isUncategorizedExpenseCategoryEnabled:y})),b!=null&&t(ot({entity:b,amount:e,transactionDetails:n,flowType:"categorization",selectedTab:d,isFetchCOT:T,isUncategorizedExpenseCategoryEnabled:y}))},onFetchRecommendationsForEntityCategorization:(e,n,l,d,b,g,y)=>{const{transactionId:D,transaction:U,lineIds:F}=n;g!=null&&(t(ja({transactionId:D,vendorUpdates:{name:g.name,id:g.id?g.id:void 0}})),t($a({vendorId:g.id?g.id:void 0,localData:{vendorName:g.name,vendorId:g.id?g.id:void 0}}))),g?.id?(t(jt({selectedTab:d,transactionId:D.id,lineId:F[0],selectedTransaction:U,uncategorizedAccounts:w,updatedVendor:g,selectedEntity:b,isAccountingClassesEnabled:E,isUncategorizedExpenseCategoryEnabled:y})),b!=null&&t(ot({entity:b,amount:e,transactionDetails:n,flowType:"categorization",selectedTab:d,isFetchCOT:T,isUncategorizedExpenseCategoryEnabled:y}))):t(qa({selectedTab:d,transactionId:D.id,lineId:F[0]}))},fetchFluxViewOnScroll:(e,n)=>{t(Ve(e,!0,!1,n,!1,!0))},onFetchFluxViewList:()=>{t(Ve(x,!0,!1,null,!1,!1))},markAsReview:(e,n,l,d)=>{J.trackFluxAnalysisReviewed(l.month,l.year,d??!1,e),t(La(n,e,l,d??!1))},onUpdateFluxAnalysisUIState:e=>{t(Ma(e))},updateOperatingExpensesIdsForReview:e=>{t(za({operatingExpenseIds:e,selectedPeriod:x}))},redirectToVendorDetailPage:e=>{if(s.tenantEmailDomain!=null){const n=vs(e.id,e.qboId,s.tenantEmailDomain),l=ie(s.location.state?.pathnameStackToGoBack,s.location.pathname);s.navigate(n,{state:{pathnameStackToGoBack:l,message:"expenseAutomation",referrer:"Vendor List",origin:"flux_analysis"}})}},updateSectionIdsForReview:e=>{t(_a({sectionId:e,selectedPeriod:x}))},onFetchReimbursementView:(e,n,l)=>{t(Ve(e,!0,!1,n,!0,l))},onReviewClicked:e=>{t(ue(x,e))},setOpenDrawerClicked:e=>{t(_e({selectedDrawerAccountId:e}))},onFetchLinkTokenClick:(e,n)=>{t(cn("expense_automation_reconcile",e,n))},onEstablishConnectionClick:(e,n)=>{const l=h?.companyId;l!=null&&(t(ln(e,l,"expense_automation_reconcile",void 0,"link_account_no_microdeposit",n)),t(rn({accountId:n,connectionInProgress:!0})))},onAddStatementClick:e=>{t(_e({selectedDrawerAccountId:e})),t(sn({accountId:e,selectedPeriod:x,localData:{accountSource:"bank_statement"}})),t(Be({statementUploadChosen:!0}))},onReloadReconciliationListPage:()=>{t(ue(x,void 0,!0,!1))},onUpdateReconcileTabLocalData:e=>{t(Oa({selectedTransactionIds:e}))},onReconTabColumnSortConfigChanged:(e,n)=>{t(Va({sortKey:e,sortOrder:n}))},onReconReviewTabColumnSortConfigChanged:(e,n)=>{t(Ba({sortKey:e,sortOrder:n}))},onReconTabUpdate:e=>{s.closeSidePanel?.(),t(Fa({selectedTab:e}))},updateReconReviewTabLocalData:(e,n,l)=>{const d=e.vendor?.id;l&&d!=null&&t(Da(d)),t(Ua({data:e,transactionId:n}))},onReconMatchedTransactionClick:e=>{if(s.openTransactionPanel)return void s.openTransactionPanel(e,at("bill"));const n=ie(I.state?.pathnameStackToGoBack,I.pathname);v(`../../transaction/bill/${e}`,{state:{pathnameStackToGoBack:n,message:"expenseAutomation",origin:"reconciliation"}})},onReloadPage:()=>{window.location.reload()},onBackClick:()=>{v(-1)},onReconListPageScroll:e=>{t(Lt({scrollPosition:e}))},onVendorAutoCompleteInputChange:e=>{e.trim().length>=2?t(Mt({searchString:e,searchOrigin:"common"})):e.trim().length===0&&t(Fe("common"))},onReconNodeCollapseToggled:(e,n)=>{t(xa({nodeId:e,collapsed:n}))},updateSectionCollapseStatus:()=>{},onExcludeAccountFromReconciliation:e=>{t(an({accountId:e}))},onIncludeAccountIntoReconciliation:e=>{t(on({accountId:e}))}}}),((t,s,P)=>{const{isMissingReceiptsBulkUploadEnabled:E,...T}=P;return(function(i,m,I){return{...i,...m,...I,onUploadTransactionReceipt:(c,C,h,w,v)=>{m.onUploadTransactionReceipt(c,C,h,w,v,i.authParams)}}})(t,s,T)}))(os(ss)),Vs=Ts((function(t){const s=t.displayName??t.name??"Component",P=tn.memo(t),E=T=>{const i=Se(),m=(function(){const f=Se(),u=R((M=>ye(M).reconciliation.selectedDrawerAccountId));return{isOpen:u!=null,selectedAccountId:u,openPanel:a.useCallback((M=>{f(_e({selectedDrawerAccountId:M}))}),[f]),closePanel:a.useCallback((()=>{f(_e({selectedDrawerAccountId:void 0}))}),[f])}})(),I=R((f=>ye(f).reconciliation)),c=R((f=>Oe(f))),C=a.useCallback(((f,u)=>{i(cn("expense_automation_reconcile",f,u))}),[i]),h=a.useCallback(((f,u)=>{const M=c?.companyId;M!=null&&(i(ln(f,M,"expense_automation_reconcile",void 0,"link_account_no_microdeposit",u)),i(rn({accountId:u,connectionInProgress:!0})))}),[i,c?.companyId]),w=a.useMemo((()=>{if(m.isOpen&&m.selectedAccountId!=null)return S.jsx(Rs,{reconciliation:I,selectedDrawerAccountId:m.selectedAccountId,onClose:m.closePanel,onFetchLinkTokenClick:C,onEstablishConnectionClick:h})}),[m.isOpen,m.selectedAccountId,m.closePanel,I,C,h]),v=a.useMemo((()=>({reconPanelContent:w,reconSidePanelIsOpen:m.isOpen,closeReconSidePanel:m.closePanel})),[w,m.isOpen,m.closePanel]),{useFeatureGate:r}=Me(),{isFeatureEnabled:p}=r(Q.isReconV3Enabled),V=a.useContext(Zt),x=a.useMemo((()=>m.isOpen?p===!0?{selectedItemId:m.selectedAccountId}:{closePanel:m.closePanel,selectedItemId:m.selectedAccountId}:V),[m.isOpen,m.closePanel,m.selectedAccountId,V,p]);return S.jsx(Zt.Provider,{value:x,children:S.jsx(P,{...T,...v})})};return E.displayName=`withReconSidePanel(${s})`,E})((({closeSidePanel:t,openTransactionPanel:s,panelContent:P,sidePanelIsFullView:E,sidePanelIsOpen:T,reconPanelContent:i,reconSidePanelIsOpen:m,closeReconSidePanel:I})=>{const{isAiCfoOpen:c,setIsAiCfoOpen:C}=ls(),h=rs(),{isOpen:w}=ds(),v=nn(),r=tt(),p=Se(),{isAiCfoAccessEnabled:V,onAskAiCfoClick:x}=Sn({mobileExploreReferrer:"Transaction categorization"}),f=a.useCallback((()=>{T===!0&&E!==!0&&t?.()}),[t,T,E]),{areTenantIdsInSync:u}=hn(),M=(()=>{const o=R((Y=>ye(Y))),A=tt(),{currentSelectedViewFetchState:N,currentSelectedView:q,selectedPeriod:B}=o,te=Xe(q),H=Xe(N.fetchState),X=a.useCallback((Y=>{const ne=A.state?.referrer;q==="transaction_categorization"&&(o.selectedTransactionCategorizationTab==="review"?J.trackTransactionsReviewPage(B.month,B.year,o.transactionView.totalCountByTab.review,0,Y,ne??null):J.trackTransactionsAutoCategorisedPage(B.month,B.year,o.transactionView.totalCountByTab.autoCategorized,0,Y,ne??null)),q==="missing_receipts"&&J.trackMissingReceiptsPage(B.month,B.year,Y,o.missingReceipts.transactions.length,ne??null),q==="je_schedules"&&J.trackMonthCloseScheduleListPage(B.month,B.year,Y,o.jeSchedules.draftSchedules.length,o.jeSchedules.resolveSchedules.length,ne??null),q==="flux_analysis"&&J.trackFluxAnalysisPage(B.month,B.year,Y,Ds(o.fluxAnalysis),ne??null),q==="month_end_insights"&&o.auditSummary?.auditScorePercentage!=null&&J.trackInsightsEmailPage(B.month,B.year,Y,"draft",o.auditSummary.auditScorePercentage,null,ne??null)}),[B,o]);return a.useEffect((()=>{H===N.fetchState&&q===te||N.fetchState!=="Completed"||X(!1)}),[q,N.fetchState,te]),X})(),ae=us(),[j,O]=a.useState(!1),e=R((o=>zt(o))),n=R((o=>Oe(o))),[l,d]=a.useState(!1),[b,g]=a.useState(!1),[y,D]=a.useState([]),[U,F]=a.useState(null),L=a.useCallback((()=>{F(null)}),[]),ee=U?.contentType==="activity"?U.detail.transactionId:void 0,W=a.useCallback((o=>{o!=null?(c&&C(!1),h(),f(),F({contentType:"activity",detail:{transactionId:o}})):F((A=>A?.contentType==="activity"?null:A))}),[f,c,h,C]),me=a.useCallback((o=>{c&&C(!1),h(),f(),F({contentType:"transfer",detail:o})}),[f,c,h,C]),Ie=a.useCallback((()=>{h(),L(),f(),x()}),[f,L,x,h]),G=a.useRef(c);a.useEffect((()=>{c===!0&&G.current===!1&&(h(),L(),f()),G.current=c}),[f,L,c,h]);const Pe=a.useRef(w);a.useEffect((()=>{w===!0&&Pe.current===!1&&(c&&C(!1),L(),T===!0&&E!==!0&&t?.()),Pe.current=w}),[L,t,w,c,C,E,T]);const le=T===!0&&E!==!0,k=a.useRef(le);a.useEffect((()=>{le&&!k.current&&(c&&C(!1),h(),L()),k.current=le}),[L,c,le,h,C]);const[pe,$e]=a.useState(!1),st=a.useRef(!1),{selectedTab:ct}=Vt(),{tenantEmailDomain:fn}=Vt(),[qe,it]=a.useState(r.state?.message==="comingFromTransactionDetail"),lt=r.state?.message==="comingFromOverview",kn=ms(),Ge=je.getSignedInUser(),{useDynamicConfig:En,useFeatureGate:oe}=Me(),{configValue:bn}=En(ps.enableUncategorizedExpenseCategory),se=bn?.uncategorized_expense_category_enabled===!0,{isFeatureEnabled:rt}=oe(Q.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:fe}=oe(Q.isMissingReceiptsBulkUploadEnabled),{isFeatureEnabled:Ne}=oe(Q.isTransactionActivityEnabled),{isFeatureEnabled:dt}=oe(Q.isCreateTransferEntryFromExpenseEnabled),{isFeatureEnabled:Tn}=oe(Q.isExpenseAutomationCommentingEnabled),{isFeatureEnabled:yn}=oe(Q.isProjectsTransactionsEnabled),{isFeatureEnabled:vn}=oe(Q.isReconV3Enabled),{isFeatureEnabled:An}=oe(Q.isJEScheduleCOTEnabled),Pn=a.useCallback((o=>{const A=at(o.view==="reconciliation"?"bill":"expense");s?.(o.entityId,A)}),[s]),wn=R((o=>To(o,"common"))),$=R((o=>ye(o))),{categoryOptions:Rn,paymentAccountNames:xn}=R((o=>yo(o.accountState))),Dn=R((o=>vo(o.classState))),{monthEndCloseChecksView:Z,currentSelectedView:_,selectedPeriod:z,selectedTransactionCategorizationTab:Je,currentSelectedViewBackgroundRefreshFetchState:Un,currentSelectedViewFetchState:he,jeSchedules:Ye,reconciliation:ut}=$;fs(_==="transaction_categorization");const Fn=$.transactionView.saveStatus.fetchState,mt=$.transactionView.transactions,pt=a.useRef(mt);pt.current=mt;const ht=R((o=>o.expenseAutomationTransactionsViewState?.transactionCategorizationView)),gt=R((o=>o.expenseAutomationTransactionsViewState?.selectedTransactionCategorizationTab)),Ct=a.useRef(ht);Ct.current=ht;const St=a.useRef(gt);St.current=gt;const ce=ks(Fn,(()=>{const o=[],A=St.current,N=Ct.current,q=N!=null&&A!=null?N[A]:void 0;if(q?.transactionReviewLocalDataById!=null)for(const te of Object.values(q.transactionReviewLocalDataById)){const H=te?.transactionReviewLocalData?.lineItemById;if(H!=null)for(const X of Object.values(H)){const Y=X?.account;Y?.accountId!=null&&o.push(Y.accountId)}}const B=pt.current;for(const te of B)for(const H of te.lines??[])"account"in H&&H.account?.accountId!=null&&o.push(H.account.accountId);return o}));a.useEffect((()=>{_==="transaction_categorization"&&T!==!0||W(void 0)}),[_,W,T]),a.useEffect((()=>{m===!0&&I?.()}),[_,ut.selectedAccountId]);const Bn=$.transactionView.selectedTransactionCategorizationCompletedSubTab,we=`${Je}|${Bn}`,Re=a.useRef(null),It=a.useRef(null);a.useEffect((()=>{Re.current!==null?Re.current!==we&&(Re.current=we,_==="transaction_categorization"&&L()):Re.current=we}),[L,_,we]);const Vn=R((o=>ee==null?void 0:Ao(o.transactionState,ee))),re=Vn?.qboId,ft=R((o=>re==null?void 0:Po(o,re)));a.useEffect((()=>{re!=null&&p(wo(re))}),[p,re]);const{createTransferEntryStatus:kt,creditCardTransferAccountsList:Et,transferAccounts:bt}=$.transactionView,Tt=a.useCallback((o=>Es(p,o)),[p]),yt=a.useMemo((()=>_!=="transaction_categorization"||U==null?null:U.contentType==="activity"?Ne===!0?S.jsx(hs,{activityLogView:ft,qboId:re,onClose:()=>F(null),selectedTransactionId:U.detail.transactionId,isQuickViewCardStyle:!0},String(U.detail.transactionId)):null:U.contentType==="transfer"?S.jsx(gs,{createTransferEntryStatus:kt,transaction:U.detail,transferAccounts:U.detail.transactionType==="credit_card_payment"?Et:bt,onClose:()=>F(null),onCreateTransfer:Tt,isQuickViewCardStyle:!0},String(U.detail.transactionId)):null),[_,U,Ne,ft,re,kt,Et,bt,Tt]),On=yt!=null,{selectedAccountId:ke}=ut,vt=Xe(Ye.accountSettingsView.saveState.fetchState),_n=R((o=>Ro(o.accountState,o.accountListState,"accountList"))),zn=R((o=>xo(o))),Ee=ct!=null?Do(ct):_,Mn=R((o=>o.entityAutoCompleteState.autoCompleteText.common));if(gn({isDataReady:he.fetchState==="Completed"}),Ge==null)throw Error("Can't access expense automation screen without signing in...");const At=dn(z),be=ze(At.start),Te=ze(At.end);if(be==null||Te==null)throw Error(`Invalid start - ${be} and end - ${Te} period from given ${z}`);const Ln=a.useCallback((()=>{d(!1)}),[]),jn=a.useCallback((()=>{g(!0)}),[]),$n=a.useCallback((o=>{D(o),g(!1)}),[]),qn=a.useCallback((()=>{D([])}),[]),xe=$.missingReceipts.bulkUpload.phase,Pt=$.missingReceipts.bulkUpload.currentBatchId;a.useEffect((()=>{fe===!0&&_==="missing_receipts"&&xe==="matching"&&Pt!=null&&p(pn({cacheOverride:!0}))}),[fe,_,xe,Pt,p]);const wt=Ge?.userId,Gn=z.month,Nn=z.year,Rt=n?.tenantId;a.useEffect((()=>{_==="missing_receipts"&&fe!==!1&&xe==="idle"&&wt!=null&&Rt!=null&&p(Uo())}),[_,fe,xe,wt,Rt,Gn,Nn,p]),a.useEffect((()=>{e.newVendorState?.vendorDetailLocalData?.vendorName!=null?O(!0):O(!1)}),[e.newVendorState?.vendorDetailLocalData?.vendorName]),a.useEffect((()=>{Ee!=null&&_!==Ee&&p(un(Ee))}),[Ee]),a.useEffect((()=>{pe===!1&&he.fetchState==="Completed"&&u&&($e(!0),p(Nt(!1,!1,se)))}),[pe,he,u,se]),a.useEffect((()=>{const o={month:z.month,year:z.year},A=It.current;It.current=o,A===null||A.month===o.month&&A.year===o.year||!lt&&u&&(p(Nt(!1,!1,se)),p(ue(z,ke,!1,!1)))}),[z.month,z.year,u,se]);const xt=a.useCallback(((o=!1,A=!1)=>{const N={start:be,end:Te};switch(_){case"transaction_categorization":p(Ce(Je,N,o,!qe,void 0,void 0,A,void 0,se)),it(!1);break;case"flux_analysis":p(Ve(z,o,A,null));break;case"month_end_insights":if(A===!1){const q=new Date(z.year,z.month,0),B=Bo(q.toDateString()).format(In.analytics.YYYYDashMMDashDDFormat);p(Vo(!0,n.companyId,n.tenantId,B)),p(Oo(n.companyId,n.tenantId))}break;case"je_schedules":p(Fo(N,A));break;case"missing_receipts":p(mn(N,{amount:75,currencyCode:"USD",currencySymbol:"$"},o,A));break;default:p(ue(z,ke,o,A))}}),[_,be,Te,n.companyId,n.tenantId,Je,z,ke,qe,it,se]);a.useEffect((()=>{_===Ee&&he.fetchState==="Not-Started"&&u&&xt(!0)}),[he,be,Te,n.companyId,n.tenantId,u]),a.useEffect((()=>{lt||qe||st.current||Un.fetchState==="In-Progress"||he.fetchState!=="Completed"||(st.current=!0,xt(!0,!0))}),[]),a.useEffect((()=>{Z.fetchState!=="In-Progress"&&Z.fetchState!=="Completed"&&Z.fetchState!=="Error"&&n?.tenantId!=null&&p(ve({tenantId:n.tenantId,period:z,refreshViewInBackground:!1}))}),[Z.fetchState,n?.tenantId]),a.useEffect((()=>{$.monthEndInsights?.previewMonthEndReportStatus?.fetchState==="Completed"?d(!0):d(!1)}),[$.monthEndInsights?.previewMonthEndReportStatus?.fetchState]),a.useEffect((()=>{$.monthEndInsights?.sendMonthEndReportStatus?.fetchState==="Completed"&&u&&(p(ve({tenantId:n.tenantId,period:z,refreshViewInBackground:!0})),p(_o({companyId:n.companyId})),v("../"))}),[$.monthEndInsights?.sendMonthEndReportStatus?.fetchState,n.tenantId,z,n.companyId,u]),a.useEffect((()=>{const o=setInterval((()=>{Z.fetchState!=="In-Progress"&&Z.fetchState==="Completed"&&p(ve({tenantId:n.tenantId,period:z,refreshViewInBackground:!0}))}),3e5);return()=>clearInterval(o)}),[Z.fetchState,n.tenantId,z,p]),a.useEffect((()=>{const o=setInterval((()=>{_==="reconciliation"&&ke==null&&$.reconciliation.fetchStatus.fetchState==="Completed"&&$.reconciliation.refreshStatus.fetchState!=="In-Progress"&&p(ue(z,void 0,!0,!0))}),3e5);return()=>clearInterval(o)}),[_,p,$.reconciliation.fetchStatus.fetchState,$.reconciliation.refreshStatus.fetchState,ue,ke,z]);const Jn=Ht();a.useEffect((()=>{const o=(Z.monthEndCloseChecks?.monthEndCloseCheckList.find((A=>A.id==="month_end_insights"))?.isDisabled??!1)&&!rt;_!=="month_end_insights"||!o&&Z.monthEndCloseChecks?.reportEmailSentDate==null||v("../")}),[_,Z.monthEndCloseChecks]);const Yn=m===!0?i:P,Qn=m===!0||T===!0,Zn=m===!0?I:t;a.useEffect((()=>{vt==="In-Progress"&&Ye.accountSettingsView.saveState.fetchState==="Completed"&&p(Jt())}),[vt,Ye.accountSettingsView.saveState.fetchState,Jt]);const{transactionId:Dt,onSaveVendor:Hn,onSaveSuccess:Kn,onCancel:Wn,vendorViewDetails:Xn}=(({expenseAutomationViewSelector:o,closeDrawerHandler:A,currentSelectedView:N,isUncategorizedExpenseCategoryEnabled:q})=>{const B=Se();let te,H,X;const Y=Ht(),ne=o.transactionView;let Ut=()=>{};const{transactions:ea,selectedTransactionId:ge,selectedTransactionLineId:De,transactionLocalData:ta}=ne;if(N==="transaction_categorization"){const Qe=ta.find((de=>de.transactionId===ge)),K=ea.find((de=>de.id===ge)),Ft=De!=null?Qe?.transactionReviewLocalData?.lineItemById[De]:void 0,Bt=Ft?.account;H=Ft?.class?.classId,te=["Uncategorized Income","Uncategorized Expense"].includes(Bt?.accountName??"")?void 0:Bt?.accountId;const aa=ys(ge,K?.typeOfTransaction);K!=null&&aa&&(X={id:ge,type:at(K.typeOfTransaction)}),Ut=()=>{if(ge!=null&&De!=null&&K!=null){const de=ne.transactionLocalData.find((Ue=>Ue.transactionId===ge))?.transactionReviewLocalData;if(de!=null&&K.lines!=null&&K.lines.length>0){const Ue=de.lineItemById[De];let Ze=de.selectedEntity;if(Ra(K)||(Ze=Ue.selectedEntityLine),Ze!=null){const oa=Ze,sa={transactionId:{id:K.id,type:K.type},transaction:K,lineIds:K.lines.map((ca=>ca.id))??[]};B(ot({entity:oa,amount:Ue.amount.amount,transactionDetails:sa,flowType:"categorization",selectedTab:o.selectedTransactionCategorizationTab,isFetchCOT:Y,isUncategorizedExpenseCategoryEnabled:q}))}}}}}const na=R((Qe=>zt(Qe,void 0,te,H)));return{transactionId:X,onSaveVendor:()=>{B(wa(X,void 0,!1,!0))},onSaveSuccess:Ut,onCancel:()=>{X!=null&&B(va({transactionId:X})),B(Aa()),B(Pa()),A()},vendorViewDetails:na}})({expenseAutomationViewSelector:$,closeDrawerHandler:()=>{O(!1)},currentSelectedView:_,isUncategorizedExpenseCategoryEnabled:se});return kn?.loggedInUserRoleMap==null?Z.fetchState==="Error"?S.jsx(Cs,{onGoHome:()=>v("../",{replace:!0}),onReload:()=>window.location.reload()}):S.jsx(Cn,{fetchState:"In-Progress"}):S.jsxs(S.Fragment,{children:[S.jsx(As,{isOpen:b,drawerLeftMargin:new Ss(0,0,300,650),onClose:()=>{g(!1)},children:S.jsx(Os,{onClick:o=>o.stopPropagation(),children:S.jsx(xs,{companyId:n.companyId,closeCustomerRequestDrawer:()=>g(!1),addCustomerRequest:$n,resetCustomerRequest:qn})})}),Dt!=null&&j&&S.jsx(bs,{isOpen:j,transactionId:Dt,onSaveVendor:Hn,onSaveSuccess:Kn,onCancel:Wn,vendorViewDetails:Xn}),S.jsx(Bs,{events:[],eventCallback:(o,A,N)=>{},navigate:v,location:r,themeState:ae,categoryOptions:Rn,classesForFilters:Dn,accountsForFilters:xn,vendorSearchAutoCompleteData:{autoCompleteText:Mn,entityAutoCompleteView:wn},expenseAutomationViewSelector:$,isMissingReceiptsBulkUploadEnabled:fe,monthEndInsightsPreviewMode:l,monthEndInsightsCustomerRequestData:y,isRealtimeInsightsFeatureEnabled:rt,isCreateTransferEntryFromExpenseEnabled:dt,isUncategorizedExpenseCategoryEnabled:se,isAccountingClassesEnabled:zn,isProjectsTransactionsEnabled:yn,isCOTEnabled:Jn,isJEScheduleCOTEnabled:An,currentTenant:n,companyId:n.companyId,signedInUser:Ge,isTransactionActivityEnabled:Ne,isRightPanelOpen:On,rightSidePanel:yt,onOpenTransferRightPanel:dt===!0?me:void 0,uncategorizedAccounts:_n,onClickCustomerRequest:jn,handleEditClick:Ln,tenantEmailDomain:fn,trackExpenseAutomationTabAnalytics:M,setActivityLogTransactionId:W,closeSidePanel:Zn,openTransactionPanel:s,sidePanelIsOpen:Qn,sidePanelIsFullView:m!==!0&&E,panelContent:Yn,isAiCfoAccessEnabled:V,onAskAiCfoClick:Ie,isExpenseAutomationCommentingEnabled:Tn,isReconV3Enabled:vn,onExpenseAutomationCommentingThreadClick:Pn,sidePanelListPercent:m===!0?66:void 0}),ce.showPopup&&ce.popupType!=null&&S.jsx(Is,{popupType:ce.popupType,currencySymbol:ce.currencySymbol,accountId:ce.popupAccountId??"",accountName:ce.popupAccountName??"",onSubmit:ce.handleSubmit,onDismiss:ce.handleDismiss})]})}))),Os=Le(la)`
|
|
22
|
-
display: flex;
|
|
23
|
-
min-height: 100%;
|
|
24
|
-
flex-direction: column;
|
|
25
|
-
`;function cc(){return S.jsxs(da,{children:[S.jsx(He,{path:"*",element:S.jsx(Ps,{})}),S.jsx(He,{path:"/:selectedTab/:selectedPeriod/*",element:S.jsx(Vs,{})}),S.jsx(He,{path:"*",element:S.jsx(ia,{})})]})}export{cc as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-DKL6viSK.js";import{a as r}from"./sentry-DFI2OQU2.js";import{a5 as c,a6 as l,a7 as p,q as b}from"./index-Bar5dTpy.js";import"./mui-sr6zger7.js";import m from"./NotFoundScreen-D7eT4TBn.js";import{h as f,g as u}from"./core-DnZcjy6X.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]="527d9e25-3d01-4280-b0c1-0c01931b4bab",e._sentryDebugIdIdentifier="sentry-dbid-527d9e25-3d01-4280-b0c1-0c01931b4bab")}catch{}})();const _=()=>{const e=f(),a=u(),t=r.useCallback((()=>{window.open("https://www.zeni.ai/demo/request","_blank")}),[]),d=r.useCallback((()=>{(()=>{const n=b(a.state?.pathnameStackToGoBack),i=n.poppedPathname??k();e(i,{state:{pathnameStackToGoBack:n.newStack}})})()}),[]),o=c(a.pathname);return o!=null?s.jsx(l,{menuItem:p(o),onDemoClick:t,onGoBack:d}):s.jsx(m,{})},k=(e=2)=>{let a="../";for(let t=0;t<e;t++)a=`${a}../`;return a};export{_ as F};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as r}from"./sentry-DFI2OQU2.js";import{u as f,h as l,g as m}from"./core-DnZcjy6X.js";import{hC as p,MO as g,MP as b}from"./zeni-epic-state-m4zoW3ek.js";import{u as _,L as h,z as y}from"./index-Bar5dTpy.js";import"./liveblocks-DKL6viSK.js";import"./recharts-Bim6mdwu.js";import"./mui-sr6zger7.js";import"./analytics-DtYJ-EGT.js";import"./plaid-QvRDxgoN.js";import"./dnd-eoV-_JYH.js";import"./stripe-cKAAJElX.js";import"./lottie-Dz5luYQG.js";import"./lexical-CSqytB8g.js";import"./pdf-BNSeVvBm.js";import"./utils-cHxIh7E8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="01741b05-80b9-4544-88f8-dc62844efb5f",e._sentryDebugIdIdentifier="sentry-dbid-01741b05-80b9-4544-88f8-dc62844efb5f")}catch{}})();function P(){const e=f(),n=l(),o=m(),{setLoading:i,clearAllLoading:d}=_(),s=r.useRef(!1);return r.useLayoutEffect((()=>{i(h.CONNECTION_AUTH)}),[i]),r.useEffect((()=>{if(s.current)return;s.current=!0;const a=new URLSearchParams(o.search).get("code"),u=sessionStorage.getItem("hubspot_oauth_pending");if(sessionStorage.removeItem("hubspot_oauth_pending"),a!=null&&u!=null){const t=JSON.parse(u);e(p(t.tenant_id,t.connection_id,g("revenue"),b("hubspot"),{authorization_code:a,client_id:t.client_id,client_secret:t.client_secret,redirect_uri:t.redirect_uri}))}d();const c=y.getActiveTenantForUser();n(c?.tenantEmailDomain!=null?`/${c.tenantEmailDomain}/settings/integrations`:"/",{replace:!0})}),[]),null}export{P as default};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-DKL6viSK.js";import{i as S,n as x,h as C,g as y,u as ee,t as te,j as N,N as ae,o as ne,p}from"./core-DnZcjy6X.js";import{MH as k,MI as v,MJ as F,BD as B,Bp as T,MK as D,ML as oe,MM as ie,Bt as se,fE as $,BA as le,Bx as re}from"./zeni-epic-state-m4zoW3ek.js";import{J as g,o as r,n as de,e as j,k as G,p as ce,q as me,V as pe,r as V,w as ue,i as he,s as xe,x as ge,E as fe,y as we,B as be,F as Se,Q as ye,S as ke,M as ve,G as je,U as $e}from"./index-Bar5dTpy.js";import{n as m}from"./mui-sr6zger7.js";import f from"./NotFoundScreen-D7eT4TBn.js";import{a as I}from"./sentry-DFI2OQU2.js";import"./recharts-Bim6mdwu.js";import"./analytics-DtYJ-EGT.js";import"./plaid-QvRDxgoN.js";import"./dnd-eoV-_JYH.js";import"./stripe-cKAAJElX.js";import"./lottie-Dz5luYQG.js";import"./lexical-CSqytB8g.js";import"./pdf-BNSeVvBm.js";import"./utils-cHxIh7E8.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]="19a9333d-8856-4881-86e4-63a27d80de48",e._sentryDebugIdIdentifier="sentry-dbid-19a9333d-8856-4881-86e4-63a27d80de48")}catch{}})();const Ie=m.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100%;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
10
|
-
`,Ce=x((function(e){const a=k(e),n=v(e),{companyName:o}=a;return{companyName:o,isDisabled:a.fetchState!=="Completed"?"disabled":void 0,magicLinkBankAccountDetails:n,magicLinkViewState:a}}),(function(e,a){const{vendorId:n,billId:o}=a;return{onFetchBankName:i=>{e(T(i))},onSaveHandler:i=>{j.trackBillPayMagicLinkSubmitBankAccountDetails(o),e(B(i,"standard",n,o))},onACHDetailsUpdated:i=>{const{bankAccountSection:l}=i;e(F({data:l}))}}}))(de);function M(){const e=g(),{vendorId:a,billId:n}=S();return a==null||n==null?t.jsx(f,{}):t.jsx(t.Fragment,{children:t.jsx(Ie,{windowSize:e,children:t.jsx(Ce,{vendorId:a,billId:n})})})}const Be=m.div`
|
|
11
|
-
display: flex;
|
|
12
|
-
height: 100vh;
|
|
13
|
-
width: 100%;
|
|
14
|
-
flex: 1 1 auto;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
align-items: center;
|
|
17
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
18
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
19
|
-
`,De=x((function(e,a){const{isSubPage:n}=a;return{addressToEdit:D(e),googleAPIKey:G.googleMapsAPIKey,isSubPage:n}}),(function(e,a){const{navigate:n,location:o}=a,i=()=>{const l=me(o.state?.pathnameStackToGoBack),s=l.poppedPathname??Pe();n(s,{state:{pathnameStackToGoBack:l.newStack}})};return{onSubmitHandler:l=>{const s=ze(l);e(oe({addressToCreate:s})),i()},onCancel:()=>{i()}}}))(ce);function Ae({isSubPage:e}){const a=C(),n=y(),o=g();return t.jsx(t.Fragment,{children:t.jsx(Be,{windowSize:o,children:t.jsx(De,{location:n,navigate:a,isSubPage:e===!0,googleAPIKey:G.googleMapsAPIKey})})})}const Pe=(e=2)=>{let a="../";for(let n=0;n<e;n++)a=`${a}../`;return a},ze=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng}),Le=m.div`
|
|
20
|
-
display: flex;
|
|
21
|
-
height: 100%;
|
|
22
|
-
width: 100%;
|
|
23
|
-
flex: 1 1 auto;
|
|
24
|
-
flex-direction: column;
|
|
25
|
-
align-items: center;
|
|
26
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
27
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
28
|
-
`,Ee=x((function(e){const a=k(e),n=v(e),o=D(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(T(s))},onSaveHandler:s=>{j.trackBillPayMagicLinkSubmitBankAccountDetails(l),e(B(s,"us-domestic",i,l))},onWireDetailsUpdated:s=>{const{bankAccountSection:d}=s;e(F({data:d}))},onAddressClick:()=>{const s=o.pathname.replace("us-domestic","address"),d=V(o.state?.pathnameStackToGoBack,o.pathname);n(s,{state:{pathnameStackToGoBack:d}})}}}))(pe);function Ne(){const e=C(),a=y(),n=g(),{vendorId:o,billId:i}=S();return o==null||i==null?t.jsx(f,{}):t.jsx(t.Fragment,{children:t.jsx(Le,{windowSize:n,children:t.jsx(Ee,{location:a,navigate:e,vendorId:o,billId:i})})})}const Me=m.div`
|
|
29
|
-
display: flex;
|
|
30
|
-
height: 100%;
|
|
31
|
-
width: 100%;
|
|
32
|
-
flex: 1 1 auto;
|
|
33
|
-
flex-direction: column;
|
|
34
|
-
align-items: center;
|
|
35
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
36
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
37
|
-
`,Fe=x((function(e){const a=k(e),n=v(e),o=D(e),{companyName: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(se(s))},onSaveHandler:s=>{j.trackBillPayMagicLinkSubmitBankAccountDetails(l),e(B(s,"international",i,l,a.isLocalCurrencyEnabled))},onBankDetailsUpdated:s=>{const{internationalWireSwiftAccountSection:d}=s;e(ie({data:d}))},onAddressClick:()=>{const s=o.pathname.replace("international","address"),d=V(o.state?.pathnameStackToGoBack,o.pathname);n(s,{state:{pathnameStackToGoBack:d}})}}}))(xe);function Te(){const e=C(),a=y(),n=g(),{vendorId:o,billId:i}=S(),{useFeatureGate:l}=ue(),{isFeatureEnabled:s}=l(he.isBillPayLocalCurrencyFeatureEnabled);return o==null||i==null?t.jsx(f,{}):t.jsx(Me,{windowSize:n,children:t.jsx(Fe,{location:a,navigate:e,vendorId:o,billId:i,isLocalCurrencyEnabled:s})})}const Ge={containerWidth:new je(100,58)},Ve=m(ke)`
|
|
38
|
-
width: ${r.sp4};
|
|
39
|
-
height: ${r.sp4};
|
|
40
|
-
margin-bottom: ${r.sp3};
|
|
41
|
-
margin-top: ${r.sp3};
|
|
42
|
-
margin-left: ${r.sp8};
|
|
43
|
-
cursor: pointer;
|
|
44
|
-
position: absolute;
|
|
45
|
-
color: ${e=>e.theme.colors.brandColorJade};
|
|
46
|
-
`,He=m.div`
|
|
47
|
-
display: flex;
|
|
48
|
-
height: 100vh;
|
|
49
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
50
|
-
width: 100vw;
|
|
51
|
-
overflow-y: scroll;
|
|
52
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
53
|
-
`,Ke=m.div`
|
|
54
|
-
display: flex;
|
|
55
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
56
|
-
flex-direction: column;
|
|
57
|
-
width: ${e=>`${Ge.containerWidth.value(e.windowSize)}%`};
|
|
58
|
-
${e=>e.windowSize!=="small"?"overflow: auto;":""}
|
|
59
|
-
box-shadow: ${e=>`0px 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
60
|
-
padding-top: ${e=>e.windowSize!=="small"?r.sp2:"0px"};
|
|
61
|
-
`,_e=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
|
-
`,Ue=x((function(e,a){return{file:a.file,type:a.type}}))(ve);function h({appContent:e}){const a=ee(),n=y(),{tenantEmailDomain:o,vendorId:i,billId:l}=S(),[s]=te(),d=s.get("token"),H=n.pathname.includes("address"),w=g(),K=ge(),A=fe(),b=we(),_=()=>{K.toggle()},U=N((u=>k(u))),W=N((u=>v(u))),{authParams:J,fetchState:c,billAttachment:Q,billFetchState:P,companyName:q,currencySymbol:O,amount:R}=U,{tenantId:z,userId:L,sessionId:E}=J,{fetchState:X,internationalBankAccountCreateStatus:Y}=W;return I.useEffect((()=>{$()}),[]),I.useEffect((()=>{b&&c==="Not-Started"&&i!=null&&o!=null&&d!=null&&a(le(i,o,d))}),[b,c,i,o,d,a]),I.useEffect((()=>{b&&c==="Completed"&&($(L,E,z),l!=null&&a(re(l)))}),[c,b,L,E,z,l,a]),c==="Error"?t.jsx(f,{}):X==="Completed"||Y.fetchState==="Completed"?($(),t.jsx(ae,{to:"../../../../../../../bank/account/save/success",replace:!0,relative:"path"})):c==="In-Progress"?t.jsx(be,{fetchState:c,style:{height:"100vh",backgroundColor:A.colors.grey5,boxShadow:`0px 2px ${r.sp1} ${A.colors.dropShadowNormal}`}}):t.jsxs(t.Fragment,{children:[c==="Completed"&&P==="Completed"&&t.jsx(Se,{analytics:j,onLoad:u=>(Z=>Z.trackBillPayMagicLinkPageLoad(o??"",i??"",q,l??"",We(n.pathname),O,R))(u)}),t.jsxs(He,{windowSize:w,children:[w!=="small"?t.jsx(Ve,{onClick:_}):null,t.jsx(_e,{windowSize:w,isAddressPage:H,children:P==="In-Progress"?t.jsx(ye,{size:"ExtraLarge",start:!0}):t.jsx(Ue,{file:Q,type:"bill"})}),t.jsx(Ke,{windowSize:w,children:e})]})]})}const We=e=>`${e.split("/").at(-2)}_${e.split("/").at(-1)}`;function Je(){return t.jsx($e,{})}function dt(){return t.jsxs(ne,{children:[t.jsx(p,{path:"bank/account/save/success",element:t.jsx(Je,{})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/ach/standard",element:t.jsx(h,{appContent:t.jsx(M,{})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/ach/same-day",element:t.jsx(h,{appContent:t.jsx(M,{})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/address",element:t.jsx(h,{appContent:t.jsx(Ae,{isSubPage:!0})})}),t.jsx(p,{path:":tenantEmailDomain/vendor/:vendorId/bill/:billId/wire/us-domestic",element:t.jsx(h,{appContent:t.jsx(Ne,{})})}),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};
|