@zeniai/web-app-ui 5.4.7-dev → 5.4.8-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{AccountMappingScreen-D6HgzjWo.js → AccountMappingScreen-DxODZ1Nk.js} +2 -2
- package/dist/assets/ActualMatchingMatchDetailScreen-CpFxldZX.js +1 -0
- package/dist/assets/AddressRoutes-K7qFYU4Q.js +1 -0
- package/dist/assets/AddressScreen-B7HfNJJM.js +9 -0
- package/dist/assets/{AiCfoScreen-C95CmuT8.js → AiCfoScreen-D0ryurTs.js} +1 -1
- package/dist/assets/{AppDrawer-wuSLq_GC.js → AppDrawer-Bz9R1SRM.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-Cz4FnR8k.js → BillPayApprovalRoutes-CUhlkbFZ.js} +1 -1
- package/dist/assets/{BillPayRoutes-lBcH3kG4.js → BillPayRoutes-Cq7a-pm7.js} +18 -18
- package/dist/assets/{BusinessVerificationPageScreen-CNBsygLT.js → BusinessVerificationPageScreen-YH2iMYXG.js} +2 -2
- package/dist/assets/CardsAiCfoScreen-i0herVW8.js +14 -0
- package/dist/assets/{ChargeCardRoutes-BebvufWC.js → ChargeCardRoutes-DKqAyC6V.js} +7 -7
- package/dist/assets/CompanyPassportScreen-B28ZIQmd.js +1 -0
- package/dist/assets/ConnectionAuthScreen-cnuYO2ir.js +11 -0
- package/dist/assets/CustomerOnboardingAuthScreen-BugwGIlC.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-07XvuYSy.js → CustomerOnboardingRoutes-CGeTdTAp.js} +3 -3
- package/dist/assets/{DashboardRoutes-DtOF4t57.js → DashboardRoutes-Cwe3Vuyf.js} +4 -4
- package/dist/assets/{DefaultTenantHome-CweSG_GQ.js → DefaultTenantHome-Y19U_bWi.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-jf25UFiV.js → DomesticWireDetailScreen-C3Fvc0vh.js} +4 -4
- package/dist/assets/{DrawerScreen-5p-VaDVX.js → DrawerScreen-BiLnsYxr.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-CacM-JPm.js → EntityDetailRoutes-DiWWQPIS.js} +1 -1
- package/dist/assets/ExpenseAutomationRoutes-CwVf58CT.js +38 -0
- package/dist/assets/FeaturePreviewScreen-CVxHNITI.js +1 -0
- package/dist/assets/{HubSpotOAuthCallbackScreen-BLlIOZQ7.js → HubSpotOAuthCallbackScreen-D5mS9Mm3.js} +1 -1
- package/dist/assets/{InboxNotificationsProvider-yzTJ7wEQ.js → InboxNotificationsProvider-Lon_JjZI.js} +1 -1
- package/dist/assets/{InvoicingRoutes-D2PWzI_4.js → InvoicingRoutes-CEhIyfKx.js} +2 -2
- package/dist/assets/{MagicLinkRoutes-CaOpn3qT.js → MagicLinkRoutes-Bbw6eA7p.js} +19 -19
- package/dist/assets/MagicLinkSignInScreen-CMSV3Ecy.js +12 -0
- package/dist/assets/{MobileAppDrawer-BixbLTmv.js → MobileAppDrawer-D95K9MWM.js} +1 -1
- package/dist/assets/NotFoundScreen-ngkmWfLO.js +1 -0
- package/dist/assets/{NotificationRoutes-BdD13Onr.js → NotificationRoutes-OU4hmCU4.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-NFsa-sgn.js → OAuthConsentScreen-BfPvpIZK.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-Bm0J5IMo.js → PandLWithForecastRoutes-D5OxnQT-.js} +1 -1
- package/dist/assets/{PaymentLinkScreen-CVV3tuZg.js → PaymentLinkScreen-Cu5uQlbD.js} +5 -5
- package/dist/assets/PeopleRoutes-CRBdsznQ.js +22 -0
- package/dist/assets/PerformanceRoutes-D57LkbmT.js +1 -0
- package/dist/assets/{Preview-C1srXT8b.js → Preview-B_x0UYXC.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-CMu1wr6r.js → QBOConnectionScreen-B_jTzA2E.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-DPr_Xw2e.js → ReimbursementApprovalRoutes-D9UKdBqr.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-B-Gs9TwE.js → ReimbursementApprovalRuleDetailScreen-CdBqEWoC.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-C5mKxHY0.js → ReimbursementRoutes-DqKBNzYH.js} +4 -4
- package/dist/assets/{ReportsRoutes-rLspO2bh.js → ReportsRoutes-97Pz3_w0.js} +1 -1
- package/dist/assets/RewardsRoutes-CP48quzG.js +1 -0
- package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-CUlxxOT4.js → ScheduleDetailsPrepaidExpensesScreen-CXq4al_v.js} +5 -5
- package/dist/assets/ScreenRoutes-EZYd0oGd.js +2 -0
- package/dist/assets/{SettingsRoutes-BafV6BMK.js → SettingsRoutes-CXOUMEST.js} +4 -4
- package/dist/assets/{SetupPagesScreen-CYo2TZ1p.js → SetupPagesScreen-DT18jEZS.js} +5 -5
- package/dist/assets/{SignInScreen-CT-WoxFu.js → SignInScreen-D_kJ7A6-.js} +1 -1
- package/dist/assets/SignOutScreen-Hgz5ILuE.js +9 -0
- package/dist/assets/TaskListScreen-PbWxRl0T.js +9 -0
- package/dist/assets/{TaskRoutes-BeXt3gMh.js → TaskRoutes-8igPnZpC.js} +2 -2
- package/dist/assets/TransactionDetailRoutes-BkrhGwVi.js +1 -0
- package/dist/assets/{TransactionDetailScreen-D3daFCwt.js → TransactionDetailScreen-CUF4XJ-a.js} +2 -2
- package/dist/assets/{TransactionListRoutes-Cp-cSB8W.js → TransactionListRoutes-DFYIfVzR.js} +1 -1
- package/dist/assets/{TreasuryRoutes-DnPKaz7R.js → TreasuryRoutes-DweO_eX_.js} +5 -5
- package/dist/assets/{VendorsRoutes-CY-uooJs.js → VendorsRoutes-CtkEV-aM.js} +7 -7
- package/dist/assets/{WiseConfirmationScreen-CdXrY5Nn.js → WiseConfirmationScreen-Cvz0_zLL.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-CaWZaYnh.js → ZeniAccountRoutes-ulGvqG-O.js} +11 -11
- package/dist/assets/ZeniAccountStatementScreen-Dff7TUu2.js +9 -0
- package/dist/assets/{accountMappingHelper-HDztJioo.js → accountMappingHelper-CCESaK7R.js} +1 -1
- package/dist/assets/{analytics-D7SbUCRL.js → analytics-BSYXJeF4.js} +1 -1
- package/dist/assets/{analyticsHelper-BNh1_jfv.js → analyticsHelper-w2YkQjq1.js} +1 -1
- package/dist/assets/{core-Bc2mnalE.js → core-k1hJbZ6L.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-addd21BI.js → decodeURIComponentSafe-CKsYKxPJ.js} +1 -1
- package/dist/assets/{dnd-B0zyAl0s.js → dnd-CiTl8J_b.js} +1 -1
- package/dist/assets/{empty-CHx0Pvbk.js → empty-Bzngm89v.js} +1 -1
- package/dist/assets/{empty-Nco5SaTV.js → empty-DXUNZiQh.js} +1 -1
- package/dist/assets/{emptyVideoElement-B-mo7W39.js → emptyVideoElement-qNZVYRIB.js} +1 -1
- package/dist/assets/{epic-BS7m068w.js → epic-BVcu5QEC.js} +1 -1
- package/dist/assets/{expenseAutomationHelper-6llqwO2d.js → expenseAutomationHelper-BfCR3sLm.js} +1 -1
- package/dist/assets/{getLocaleForTenant-D-baUPRb.js → getLocaleForTenant-Bok1bQNl.js} +1 -1
- package/dist/assets/{index-Dv6pUA2Y.js → index-B1EgaaVs.js} +1 -1
- package/dist/assets/{index-D3o0K0j9.js → index-BKGXj7ws.js} +1 -1
- package/dist/assets/{index-DLOd76r9.js → index-BYIWMErm.js} +1 -1
- package/dist/assets/{index-L7bL_O40.js → index-CdAfnjbO.js} +1 -1
- package/dist/assets/{index-DcKiQFzt.js → index-Ce30h5vk.js} +1 -1
- package/dist/assets/{index-CtE8HnsY.js → index-Cjqi6Pkt.js} +13151 -13127
- package/dist/assets/{index-CyFWesiE.js → index-DGy3NvOY.js} +1 -1
- package/dist/assets/{index-DLaXtkBa.js → index-iZXXuKOD.js} +2 -2
- package/dist/assets/{lexical-CCch0Fzo.js → lexical-YTMAFU1j.js} +1 -1
- package/dist/assets/{liveblocks-CevUFagi.js → liveblocks-oxGmLiGE.js} +1 -1
- package/dist/assets/{lottie-Dhd_0CJG.js → lottie-DXQhXtqa.js} +1 -1
- package/dist/assets/{mui-CUsYvTMG.js → mui-D8QuRJEy.js} +1 -1
- package/dist/assets/{pathToGoBack-h9zXpfmB.js → pathToGoBack-BvtdrmIA.js} +1 -1
- package/dist/assets/{pdf-CuegwamZ.js → pdf-QcH92u4w.js} +4 -4
- package/dist/assets/{pdf-lib-C0hF4MJX.js → pdf-lib-CmPW-Sf3.js} +1 -1
- package/dist/assets/{plaid-Dxz6lSJz.js → plaid-CbZCK8Pe.js} +1 -1
- package/dist/assets/{pusher-Dov6Wpsh.js → pusher-DrskEKGJ.js} +1 -1
- package/dist/assets/{react-2Pr1ccsY.js → react-BFUAIjFB.js} +1 -1
- package/dist/assets/{react-M3pe5IMI.js → react-BdEbM4Cv.js} +1 -1
- package/dist/assets/{react-1IBu4NKN.js → react-CTz3hOfW.js} +1 -1
- package/dist/assets/{react-CuKi_1_s.js → react-DI5Tj1pD.js} +1 -1
- package/dist/assets/{react-kEWOHePJ.js → react-DLwkwTYN.js} +1 -1
- package/dist/assets/{react-VbHSu8I-.js → react-bRbgXAqh.js} +1 -1
- package/dist/assets/{recharts-BjkXpBn6.js → recharts-DZG9umMy.js} +1 -1
- package/dist/assets/{reportTimeframe-CmNj9zQY.js → reportTimeframe-BoyB48qP.js} +1 -1
- package/dist/assets/{routePaths-Dv28cYw1.js → routePaths-BQiUfv8Y.js} +1 -1
- package/dist/assets/{sentry-BrSPpZKf.js → sentry-CYolppN9.js} +1 -1
- package/dist/assets/{stripSplatSuffix-wwIiiS3L.js → stripSplatSuffix-yEJV_xmD.js} +1 -1
- package/dist/assets/{url-2Ybk2sxg.js → url-BJMHxMoG.js} +1 -1
- package/dist/assets/{url-IFQJDLIg.js → url-Dvn7w47g.js} +1 -1
- package/dist/assets/useActualMatchingMatchDetail-BRI2b5oS.js +1 -0
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-C7G9HKEb.js → useAiCfoDashboardSuggestedQuestionsChips-BBN3Q32c.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-BETiKk63.js +1 -0
- package/dist/assets/{useChargeCardPusherEvents-D_qYIckD.js → useChargeCardPusherEvents-DEUPC1vA.js} +1 -1
- package/dist/assets/{useDeviceId-7gkngZ73.js → useDeviceId-BqvO5dq-.js} +1 -1
- package/dist/assets/{useEmailConnectResultRefresh-aPg3qWb4.js → useEmailConnectResultRefresh-8S-s2Qbg.js} +1 -1
- package/dist/assets/{useEnsureVendorListLoaded-nIoTpKXy.js → useEnsureVendorListLoaded-CbkO2307.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-gQdpW0fv.js → useInitialThreadRequest-DKk3Gbri.js} +1 -1
- package/dist/assets/{useTaskManagerAccess-94Xv3cKO.js → useTaskManagerAccess-CbR2C9f7.js} +1 -1
- package/dist/assets/{useTaskManagerPusherEvents-CdVgZy4d.js → useTaskManagerPusherEvents-CULNono8.js} +1 -1
- package/dist/assets/{utils-BKSIhN7N.js → utils-CZxvf1-B.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-DDzMeSLR.js → withTransactionSidePanel-zjTjrZrt.js} +5 -5
- package/dist/assets/{zeni-epic-state-VmxO3Mnv.js → zeni-epic-state-C2CKsxzr.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/ActualMatchingMatchDetailScreen-DrT4wLj3.js +0 -1
- package/dist/assets/AddressRoutes-D7_KsY7f.js +0 -1
- package/dist/assets/AddressScreen-yLBHCU8H.js +0 -9
- package/dist/assets/CardsAiCfoScreen-Dnj7L-Aq.js +0 -14
- package/dist/assets/CompanyPassportScreen-CWQymYC0.js +0 -1
- package/dist/assets/ConnectionAuthScreen-CTDny4hz.js +0 -11
- package/dist/assets/CustomerOnboardingAuthScreen-CIry93lh.js +0 -1
- package/dist/assets/ExpenseAutomationRoutes-Byqo8eZZ.js +0 -38
- package/dist/assets/FeaturePreviewScreen-CCuIxuhc.js +0 -1
- package/dist/assets/MagicLinkSignInScreen-DiZU5_QE.js +0 -12
- package/dist/assets/NotFoundScreen-BkN7W6JR.js +0 -1
- package/dist/assets/PeopleRoutes-I7YtZIOQ.js +0 -22
- package/dist/assets/PerformanceRoutes-Bh2GJMgS.js +0 -1
- package/dist/assets/RewardsRoutes-BAg5LFP3.js +0 -1
- package/dist/assets/ScreenRoutes-B27hAn5a.js +0 -2
- package/dist/assets/SignOutScreen-CUkfHzEK.js +0 -9
- package/dist/assets/TaskListScreen-CNDqJnu1.js +0 -9
- package/dist/assets/TransactionDetailRoutes-CSoIoyzR.js +0 -1
- package/dist/assets/ZeniAccountStatementScreen-C3LaZbC9.js +0 -9
- package/dist/assets/useActualMatchingMatchDetail-CZpCt66v.js +0 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-JRFYPtx4.js +0 -1
package/dist/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate"><meta http-equiv="expires" content="0"><meta http-equiv="pragma" content="no-cache"><meta charset="UTF-8"><link rel="icon" type="image/svg+xml" href="/assets/favicon-D56XvgAH.ico"><meta name="ROBOTS" content="NOINDEX, NOFOLLOW"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1"><meta name="theme-color" content="#000000"><meta name="description" content="Zeni - Modern Finance Team For Startups"><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&family=Manrope:wght@200..800&display=swap"><link rel="apple-touch-icon" href="/assets/logo192-CqcTe-t4.png"><link rel="manifest" href="/assets/manifest-icT4lOF5.json"><title>Zeni - Modern Finance Team For Startups</title><script src="/theme-detect.js"></script><style>:root{--logo-color-from:#D4DCDD;--logo-color-to:#E9F0F0;--bar-color-from:#E9F0F0;--bar-color-to:#D4DCDD;--sidebar-bg:#F3F7F7;--main-bg:#FAFCFC;--divider-color:#D4DCDD}html{background-color:#f3f7f7}html[data-theme=dark]{background-color:#1b1c1c;--logo-color-from:#545B5C;--logo-color-to:#3E4343;--bar-color-from:#3E4343;--bar-color-to:#545B5C;--sidebar-bg:#1B1C1C;--main-bg:#202222;--divider-color:#545B5C}.app-shell-loader{position:fixed;inset:0;display:flex;background-color:var(--sidebar-bg);z-index:9999}.app-shell-sidebar{width:210px;flex-shrink:0;background-color:var(--sidebar-bg);padding:16px 16px 0;display:flex;flex-direction:column;gap:36px;border-right:1px solid var(--divider-color);box-sizing:border-box}.app-shell-sidebar-group{display:flex;flex-direction:column;gap:10px}.app-shell-bar{height:10px;border-radius:5px;background-color:var(--bar-color-from);animation:app-shell-bar-shimmer 1.6s linear infinite}.app-shell-navbar{height:56px;display:flex;flex-direction:row;border-bottom:1px solid var(--divider-color);padding:0 32px;align-items:center;justify-content:space-between;box-sizing:border-box}@keyframes app-shell-bar-shimmer{0%,100%{background-color:var(--bar-color-from)}50%{background-color:var(--bar-color-to)}}.app-shell-main{flex:1;background-color:var(--main-bg)}.app-shell-logo{display:inline-flex;width:100%;height:calc(100vh - 56px);justify-content:center;align-items:center}.app-shell-logo svg path{animation:app-shell-color-cycle 1.6s linear infinite}@keyframes app-shell-color-cycle{0%,100%{fill:var(--logo-color-from)}50%{fill:var(--logo-color-to)}}@media (max-width:899px){.app-shell-sidebar{display:none}.app-shell-main{background-color:var(--sidebar-bg)}}</style><noscript><style>.app-shell-loader{display:none}</style></noscript><script async type="module" crossorigin src="/assets/index-
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate"><meta http-equiv="expires" content="0"><meta http-equiv="pragma" content="no-cache"><meta charset="UTF-8"><link rel="icon" type="image/svg+xml" href="/assets/favicon-D56XvgAH.ico"><meta name="ROBOTS" content="NOINDEX, NOFOLLOW"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1"><meta name="theme-color" content="#000000"><meta name="description" content="Zeni - Modern Finance Team For Startups"><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&family=Manrope:wght@200..800&display=swap"><link rel="apple-touch-icon" href="/assets/logo192-CqcTe-t4.png"><link rel="manifest" href="/assets/manifest-icT4lOF5.json"><title>Zeni - Modern Finance Team For Startups</title><script src="/theme-detect.js"></script><style>:root{--logo-color-from:#D4DCDD;--logo-color-to:#E9F0F0;--bar-color-from:#E9F0F0;--bar-color-to:#D4DCDD;--sidebar-bg:#F3F7F7;--main-bg:#FAFCFC;--divider-color:#D4DCDD}html{background-color:#f3f7f7}html[data-theme=dark]{background-color:#1b1c1c;--logo-color-from:#545B5C;--logo-color-to:#3E4343;--bar-color-from:#3E4343;--bar-color-to:#545B5C;--sidebar-bg:#1B1C1C;--main-bg:#202222;--divider-color:#545B5C}.app-shell-loader{position:fixed;inset:0;display:flex;background-color:var(--sidebar-bg);z-index:9999}.app-shell-sidebar{width:210px;flex-shrink:0;background-color:var(--sidebar-bg);padding:16px 16px 0;display:flex;flex-direction:column;gap:36px;border-right:1px solid var(--divider-color);box-sizing:border-box}.app-shell-sidebar-group{display:flex;flex-direction:column;gap:10px}.app-shell-bar{height:10px;border-radius:5px;background-color:var(--bar-color-from);animation:app-shell-bar-shimmer 1.6s linear infinite}.app-shell-navbar{height:56px;display:flex;flex-direction:row;border-bottom:1px solid var(--divider-color);padding:0 32px;align-items:center;justify-content:space-between;box-sizing:border-box}@keyframes app-shell-bar-shimmer{0%,100%{background-color:var(--bar-color-from)}50%{background-color:var(--bar-color-to)}}.app-shell-main{flex:1;background-color:var(--main-bg)}.app-shell-logo{display:inline-flex;width:100%;height:calc(100vh - 56px);justify-content:center;align-items:center}.app-shell-logo svg path{animation:app-shell-color-cycle 1.6s linear infinite}@keyframes app-shell-color-cycle{0%,100%{fill:var(--logo-color-from)}50%{fill:var(--logo-color-to)}}@media (max-width:899px){.app-shell-sidebar{display:none}.app-shell-main{background-color:var(--sidebar-bg)}}</style><noscript><style>.app-shell-loader{display:none}</style></noscript><script async type="module" crossorigin src="/assets/index-Cjqi6Pkt.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-CYolppN9.js"><link rel="modulepreload" crossorigin href="/assets/core-k1hJbZ6L.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-C2CKsxzr.js"><link rel="modulepreload" crossorigin href="/assets/mui-D8QuRJEy.js"><link rel="modulepreload" crossorigin href="/assets/analytics-BSYXJeF4.js"><link rel="modulepreload" crossorigin href="/assets/utils-CZxvf1-B.js"><link rel="stylesheet" crossorigin href="/assets/index-BQ3cXEYt.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.4.
|
|
3
|
+
"version": "5.4.8-dev",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/**/*"
|
|
6
6
|
],
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"@sentry/core": "^9.42.1",
|
|
29
29
|
"@sentry/react": "^9.42.1",
|
|
30
30
|
"@stripe/stripe-js": "^4.4.0",
|
|
31
|
-
"@zeniai/client-analytics": "2.1.
|
|
31
|
+
"@zeniai/client-analytics": "2.1.9",
|
|
32
32
|
"@zeniai/client-epic-state": "5.3.2",
|
|
33
|
-
"@zeniai/web-components": "4.4.
|
|
33
|
+
"@zeniai/web-components": "4.4.44",
|
|
34
34
|
"color": "3.1.3",
|
|
35
35
|
"crypto-js": "4.2.0",
|
|
36
36
|
"dnd-core": "^16.0.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CevUFagi.js";import{a as y}from"./sentry-BrSPpZKf.js";import{a2 as A,dQ as R}from"./index-CtE8HnsY.js";import"./mui-CUsYvTMG.js";import{u as F}from"./useActualMatchingMatchDetail-CZpCt66v.js";import b from"./NotFoundScreen-BkN7W6JR.js";import{i as P,h as U,g as w}from"./core-Bc2mnalE.js";import"./zeni-epic-state-VmxO3Mnv.js";import"./recharts-BjkXpBn6.js";import"./analytics-D7SbUCRL.js";import"./plaid-Dxz6lSJz.js";import"./dnd-B0zyAl0s.js";import"./stripe-cKAAJElX.js";import"./lottie-Dhd_0CJG.js";import"./lexical-CCch0Fzo.js";import"./pdf-CuegwamZ.js";import"./utils-BKSIhN7N.js";import"./stripSplatSuffix-wwIiiS3L.js";import"./decodeURIComponentSafe-addd21BI.js";import"./routePaths-Dv28cYw1.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="4d391b37-bedb-4a7c-9596-aa72e5125769",t._sentryDebugIdIdentifier="sentry-dbid-4d391b37-bedb-4a7c-9596-aa72e5125769")}catch{}})();function V(){const{matchId:t,tenantEmailDomain:e}=P(),o=U(),n=w(),k=F(t??""),r=y.useCallback((()=>{const v=A(n.state?.pathnameStackToGoBack);o(v.poppedPathname??`/${e??""}/month_end_close_checks/review`,{state:{pathnameStackToGoBack:v.newStack}})}),[n.state,o,e]);if(t==null)return s.jsx(b,{});const{match:i,detailFetchState:a,handleOpenBill:l,handleRefresh:h,handleUndoReversal:d,handleApproveAndReverse:c,handleIgnoreMatchSuggestion:p,lastMatchResults:f,lastUndoResults:g,refreshStatus:m,ignoreStatus:u,matchAndReverseStatus:S,undoReversalStatus:I}=k;return i==null?a.fetchState==="Not-Started"||a.fetchState==="In-Progress"?s.jsx(R,{detailFetchState:a.fetchState,isIgnoreInFlight:u.fetchState==="In-Progress",isApproveInFlight:S.fetchState==="In-Progress",isUndoInFlight:I.fetchState==="In-Progress",refreshStatus:m.fetchState,onNavigateBack:r,onOpenBill:l,onApproveAndReverse:c,onIgnoreMatchSuggestion:p,onRefresh:h,onUndoReversal:d,lastMatchResults:f,lastUndoResults:g}):s.jsx(b,{}):s.jsx(R,{match:i,detailFetchState:a.fetchState,isIgnoreInFlight:u.fetchState==="In-Progress",isApproveInFlight:S.fetchState==="In-Progress",isUndoInFlight:I.fetchState==="In-Progress",refreshStatus:m.fetchState,onNavigateBack:r,onOpenBill:l,onApproveAndReverse:c,onIgnoreMatchSuggestion:p,onRefresh:h,onUndoReversal:d,lastMatchResults:f,lastUndoResults:g})}export{V as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-CevUFagi.js";import{A as i}from"./AddressScreen-yLBHCU8H.js";import s from"./NotFoundScreen-BkN7W6JR.js";import"./sentry-BrSPpZKf.js";import{n as d,o as r}from"./core-Bc2mnalE.js";import"./zeni-epic-state-VmxO3Mnv.js";import"./recharts-BjkXpBn6.js";import"./index-CtE8HnsY.js";import"./mui-CUsYvTMG.js";import"./analytics-D7SbUCRL.js";import"./plaid-Dxz6lSJz.js";import"./dnd-B0zyAl0s.js";import"./stripe-cKAAJElX.js";import"./lottie-Dhd_0CJG.js";import"./lexical-CCch0Fzo.js";import"./pdf-CuegwamZ.js";import"./utils-BKSIhN7N.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]="da3bef66-2720-4570-8362-1786283303d9",t._sentryDebugIdIdentifier="sentry-dbid-da3bef66-2720-4570-8362-1786283303d9")}catch{}})();function _(){return e.jsxs(d,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(i,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(i,{})}),e.jsx(r,{path:"*",element:e.jsx(s,{})})]})}export{_ as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as d}from"./liveblocks-CevUFagi.js";import{a as h}from"./sentry-BrSPpZKf.js";import{h as T,u as P,g as j,i as E,j as $,l as B}from"./core-Bc2mnalE.js";import{$ as L,z as M,J as D,a5 as K,a6 as R,k as C,R as S,a1 as W,W as b,a2 as z}from"./index-CtE8HnsY.js";import{Wc as _,it as F,fI as U,Wd as G,ca as N,We as O,mL as V}from"./zeni-epic-state-VmxO3Mnv.js";import{u as q,n as H}from"./mui-CUsYvTMG.js";import J from"./NotFoundScreen-BkN7W6JR.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="2e6ac3c4-0a91-425f-b24f-739d60909771",e._sentryDebugIdIdentifier="sentry-dbid-2e6ac3c4-0a91-425f-b24f-739d60909771")}catch{}})();const Q=H.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`,X=B((function(e,s){const{addressId:o,isSubPage:i,addressType:c}=s,l=U(e),a=s.roleMap!=null&&G(s.roleMap),n=i||c==="user_address"||N(l?.userRole??[])||a?void 0:"readonly";if(o==null){const t=O(c,e);return{addressToEdit:t?.addressToCreate,loadingState:t?.status?.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:n,isSubPage:i,dontShowSaveConfirmationPopup:s.dontShowSaveConfirmation}}const r=_(e,o);return{addressToEdit:r.address,loadingState:r.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:n}}),(function(e,s){const{navigate:o,location:i,addressType:c}=s,l=a=>{if(a==="express-pay")o("../express-pay/add-wire");else{const n=i.state,r=z(n?.pathnameStackToGoBack);let t=r.poppedPathname??k();const u=n?.queryParams;if(u){const g=new URLSearchParams(u).toString();g&&(t=`${t}?${g}`)}o(t,{state:{pathnameStackToGoBack:r.newStack}})}};return{onSubmitHandler:a=>{const n=Y(a);e(V({addressType:c,addressToCreate:n})),C?.trackSaveAddressClicked(S.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(s.bankAccountContext)},onCancel:()=>{l(s.bankAccountContext)}}}))(W);function de({isSubPage:e,hideAddressSubTitle:s=!1,hideAddressBackButton:o=!1,dontShowSaveConfirmation:i,accountContext:c,addressTypeParam:l}){const a=T(),n=P(),r=j(),{addressId:t,addressType:u}=E(),g=L(),v=q(),w=M.getSignedInUser(),[f,I]=h.useState(t==null),p=$((m=>t!=null?_(m,t).fetchState:"Not-Started")),x=D();if(w==null)throw Error("Can't access address page without signing in...");const A=m=>m.trackPageLoaded(t!=null?S.Event.editAddress:S.Event.addAddress),y=l??u;return h.useEffect((()=>{f||t==null||(I(!0),n(F(t,!1)))}),[f,t,n]),y==null||y.match(/(user_address|company_address|company_registered_address|vendor_address|officer_([1-9]|10)_address|invoicing_customer_billing_address|invoicing_subscription_shipping_address|invoicing_business_address)$/g)?!f&&p==="Not-Started"||f&&p==="In-Progress"?d.jsx(K,{fetchState:p,style:{backgroundColor:v.colors.grey5}}):t!=null&&p==="Error"?(a(`${k(1)}/new`,{replace:!0}),d.jsx(d.Fragment,{})):d.jsxs(d.Fragment,{children:[d.jsx(R,{analytics:C,onLoad:A}),d.jsx(Q,{windowSize:g,children:d.jsx(X,{location:r,navigate:a,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:s,addressId:t,addressType:y,dontShowSaveConfirmation:i,bankAccountContext:c,roleMap:x?.loggedInUserRoleMap})})]}):d.jsx(J,{})}const k=(e=2)=>{let s="../";for(let o=0;o<e;o++)s=`${s}../`;return s},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{de as A,Y as t};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import{j as S}from"./liveblocks-CevUFagi.js";import{a as r}from"./sentry-BrSPpZKf.js";import{u as fe,h as he,g as Ce,j as H,i as ge,l as Se}from"./core-Bc2mnalE.js";import{e9 as be,a as Pe,ea as ye,z as Ie,ec as we,ee as W,ef as Ee,bp as G,a6 as ke,k as F,eg as M,eq as xe,G as Ae,R as Te,w as Ue,ej as Oe,ek as _e,at as ve,en as Qe,eo as je,bl as De,ep as Fe}from"./index-CtE8HnsY.js";import{gN as $e,fH as J,fI as Le,gb as Ve,jp as Re,jl as qe,fJ as N,gx as Be,gr as He,gt as z,gz as Me,gA as Ne,gB as ze,gC as We,gD as Ge}from"./zeni-epic-state-VmxO3Mnv.js";import{D as Je,n as L,v as Ye,S as Ke}from"./mui-CUsYvTMG.js";import"./recharts-BjkXpBn6.js";import"./analytics-D7SbUCRL.js";import"./plaid-Dxz6lSJz.js";import"./dnd-B0zyAl0s.js";import"./stripe-cKAAJElX.js";import"./lottie-Dhd_0CJG.js";import"./lexical-CCch0Fzo.js";import"./pdf-CuegwamZ.js";import"./utils-BKSIhN7N.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]="ff2622bc-7e91-4e50-9fc8-82678213f72c",t._sentryDebugIdIdentifier="sentry-dbid-ff2622bc-7e91-4e50-9fc8-82678213f72c")}catch{}})();const Y="chat-response-generated",K="cards/ask",X="card_policy_hero";function $(t){return`/${t}/cards`}function Z(t){return`/${t}/cards/policy`}const Xe=Se((function(t,s){const c=J(t),l=s.isSubmitting,u=_e(t,{allUsers:s.allUsers,onCardPolicyVendorSearchTextChange:s.onCardPolicyVendorSearchTextChange});return{showSampleQuestions:s.sessionFromUrl==="new_chat"&&c.uiState.currentChatSessionId==null,aiCfoView:c,isSubmitting:l,isNewChatSession:s.sessionFromUrl==="new_chat",isFullView:!0,tableDownloadEndPoint:`${ve}/tableDownload`,exportDownloadEndPoint:Qe(),emailLinkQuestion:s.emailLinkQuestion,autoSubmitEmailLinkQuestion:s.autoSubmitEmailLinkQuestion,onEmailLinkQuestionProcessed:s.onEmailLinkQuestionProcessed,isFileUploadEnabled:s.isFileUploadEnabled,isUploadPromoVisible:s.isUploadPromoVisible,onUploadPromoClose:s.onUploadPromoClose,...u}}),(function(t,s){const{location:c,currentTenant:l,userId:u,navigate:o,currentChatSessionId:P,allSessionsWithOrderedQuestionAnswers:h,isAiCardCreationEnabled:x,isCardPolicyEnabled:A,cardPolicyPageContext:T}=s,C=l.tenantEmailDomain,d=c.state?.referrer,f=d===X?Z(C):$(C);return{onEventReceived:(a,n)=>{if(a===Y&&typeof n.text=="string"&&typeof n.metadata=="object"){const e=n,p=Ne(e.type),y=e.metadata.chat_session_id??null,{currentChatSession:U,currentQuestionAnswer:b,currentQuestionAnswerSummary:m}=G(h,y);p!=="answer"?F.trackAICFOChatResponseGenerated(p,b?.question.questionText??"",e.text,y,Fe(m,U),e.metadata.message_id??null):F.trackAICFOChatAnswerGenerated(e.text,b?.question.questionText??"",(e.follow_up_questions?.length??0)>0,!!e.assumptions,!!e.insights,e.visualization!=null,ze(e.visualization?.type??"")??null,y,e.summarized_title,e.metadata.message_id??null),t(We({chatSessionId:e.metadata.chat_session_id,responseType:p,fetchState:{fetchState:"Completed",error:void 0}})),t(Ge({chatSessionId:e.metadata.chat_session_id,answerPayload:e,userId:u}))}},onSubmit:(a,n,e,p)=>{a&&De(t,a,n,P,h,u,p,e,T)},updateCurrentInput:a=>{t(z(a))},onStopSubmit:()=>{},onUpdateScrollYOffset:a=>{t(Me(a))},onSelectSampleQuestion:()=>{},onBackClick:()=>{o(-1)},onCloseClick:()=>{o(f,{state:{...c.state}}),t(z(""))},togglePageView:()=>{o(f,{state:W(c.state)}),s.setIsAiCfoOpen(!0)},onCopy:()=>{},onThumbsUp:()=>{},onThumbsDown:()=>{},onTogglePageView:()=>{o(-1)},onNewChatClick:()=>{P!=null&&t(He()),o((function(a){return`/${a}/${K}`})(C),{state:{...c.state}})},onToggleCotCollapsed:(a,n)=>{t(Be({questionAnswerId:a,isCollapsed:n}))},...je(t,{isAiCardCreationEnabled:x,isCardPolicyEnabled:A,currentChatSessionId:P,onAfterCardsCreationSubmit:()=>{s.setIsAiCfoOpen(!0),o($(C),{state:{...c.state}})},onAfterCardPolicySubmit:()=>{s.setIsAiCfoOpen(!0),o(`/${C}/cards/policy`,{state:{...c.state}})}})}}))(Ue(Oe)),{spendManagement:{chargeCard:{cardsAiCfoHero:ee,cardPolicyAiCfoHero:te}}}=Ae.getLocalizedStrings(),k=ee.pageTitle,Ze=te.pageTitle,et=ee.chatHeaderSubtitle,tt=te.chatHeaderSubtitle,Pt=({isFileUploadEnabled:t})=>{const s=be(),{setIsAiCfoOpen:c}=Pe(),l=fe(),u=he(),o=Ce(),[P,h]=r.useState(!1),{allUsers:x,isAiCardCreationEnabled:A,isCardPolicyEnabled:T,onCardPolicyVendorSearchTextChange:C}=ye();r.useEffect((()=>{l($e())}),[l]);const d=H((i=>J(i))),f=Ie.getSignedInUser(),{session_id:a}=ge(),n=H((i=>Le(i))),e=d.uiState.currentChatSessionId,p=n.tenantEmailDomain,{handleUploadPromoClose:y,isUploadPromoVisible:U}=we({isFileUploadEnabled:t,tenantEmailDomain:p}),b=o.state,m=b?.aiCfoInitialQuestion??null,O=!!b?.aiCfoShouldSubmit,I=b?.referrer===X,se=I?"card_policy":void 0,ae=r.useMemo((()=>({title:I?Ze:k,subtitle:I?tt:et})),[I]),[oe,_]=r.useState(null),[ne,v]=r.useState(!1),Q=r.useRef(!1);r.useEffect((()=>{Q.current||m==null||m===""||(_(m),v(O),Q.current=!0)}),[m,O]);const ie=r.useCallback((()=>{_(null),v(!1),u(o.pathname,{replace:!0,state:W(o.state)})}),[o.pathname,o.state,u]),re=n.masterTOSInfo,g=re?.isMasterTOSAccepted??!1,E=r.useRef(null);r.useEffect((()=>{if(g&&E.current!=null){const{question:i,shouldSubmit:w}=E.current;E.current=null,_(i),v(w),Q.current=!1}}),[g]);const{visitedSessions:V}=Ee(e),j=d.fetchState,D=d.uiState.chatSessionsNextPageToken.hasMore||!d.uiState.chatSessionsFirstPageFetched,R=e!=null?d.fetchChatSessionHistoryByChatSessionId?.[e]?.fetchState??"Not-Started":"Not-Started",q=e==null||(d.uiState.chatHistoryNextPageToken[e]?.hasMore??!0),B=d.allSessionsWithOrderedQuestionAnswers,{currentSessionQuestionAnswers:le}=G(B,e),ce=le.length===0;r.useEffect((()=>{e!=null&&a!==e&&u((function(i,w){return`/${i}/${K}/${w}`})(p,e),{state:{...o.state},replace:!0})}),[e,a,p,u,o.state]),r.useEffect((()=>{a!=null&&e==null&&a!=="new_chat"&&l(Ve({sessionId:a,agentId:"controller"}))}),[]);const de=r.useMemo((()=>({events:V.map((i=>`private-encrypted-chat-${i}.${Y}`)),eventCallback:(i,w,me)=>me.onEventReceived(i,w)})),[V]);if(r.useEffect((()=>{j!=="In-Progress"&&D&&l(Re())}),[j,D,l]),r.useEffect((()=>{e!=null&&R!=="In-Progress"&&q&&f!=null&&j==="Completed"&&!D&&l(qe(e,f.userId))}),[R,q,e,f,l]),f==null)throw Error("Can't access Cards AI CFO page without signing in...");const ue=a??"new_chat",pe=e!=null&&d.responseStateByChatSessionId?.[e]?.answer?.fetchState==="In-Progress";return S.jsxs(at,{children:[S.jsx(ke,{analytics:F,onLoad:i=>i.trackPageLoaded(Te.Event.aiCFOPage)}),g?S.jsx(Xe,{answerExportEndPoint:s,...de,currentChatSessionId:e,allSessionsWithOrderedQuestionAnswers:B,allUsers:x,isAiCardCreationEnabled:A,isCardPolicyEnabled:T,openOnboardingPage:()=>h(!0),userId:f.userId,setIsAiCfoOpen:c,navigate:u,sessionFromUrl:ue,location:o,isSubmitting:pe,isEmptyChatWithSession:ce,customPageTitle:k,chatHeader:ae,currentTenant:n,emailLinkQuestion:oe??void 0,autoSubmitEmailLinkQuestion:ne,onEmailLinkQuestionProcessed:ie,isFileUploadEnabled:t,isUploadPromoVisible:U,onUploadPromoClose:y,onCardPolicyVendorSearchTextChange:C,cardPolicyPageContext:se}):S.jsx(M,{isTOSAccepted:g,acceptMasterTOSState:d.masterTOSAcceptanceState,customPageTitle:k,onCloseClick:()=>{u(I?Z(p):$(p),{state:{...o.state}})},onCompleteClick:()=>{g||n.userRoleId==null||(m!=null&&m!==""&&(E.current={question:m,shouldSubmit:O}),l(N(n.userRoleId)))}}),S.jsx(Je,{anchor:"right",open:P,transitionDuration:250,PaperProps:{component:ot,style:{width:`${xe}vw`}},slotProps:{backdrop:{style:{backgroundColor:"transparent",cursor:"pointer"}}},onClose:()=>h(!1),children:S.jsx(st,{onClick:i=>i.stopPropagation(),children:S.jsx(M,{isTOSAccepted:g,acceptMasterTOSState:d.masterTOSAcceptanceState,customPageTitle:k,onCloseClick:()=>h(!1),onCompleteClick:()=>{g||n.userRoleId==null||l(N(n.userRoleId)),h(!1)}})})})]})},st=L(Ke)`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`,at=L.div`
|
|
6
|
-
flex: 1 1 auto;
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
min-height: 0;
|
|
10
|
-
width: 100%;
|
|
11
|
-
`,ot=L(Ye)`
|
|
12
|
-
box-shadow: ${({theme:t})=>t.colors.elevation2};
|
|
13
|
-
color: ${({theme:t})=>t.colors.grey4};
|
|
14
|
-
`;export{Pt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as m}from"./liveblocks-CevUFagi.js";import{a as g}from"./sentry-BrSPpZKf.js";import{h as w,u as x,g as k,i as T,j as O,l as E}from"./core-Bc2mnalE.js";import{z as b,bt as F,a6 as P,k as V,R as L,q as N,bu as j,ac as A,aE as U,l as G}from"./index-CtE8HnsY.js";import{fI as D,gL as B,C3 as M,gG as R,ca as _,Zb as z,bn as Z,v6 as Y,uW as q,mD as H,oc as S,Zc as W,bG as $,cG as C,on as J,ox as K}from"./zeni-epic-state-VmxO3Mnv.js";import"./mui-CUsYvTMG.js";import{d as Q}from"./routePaths-Dv28cYw1.js";import{M as X}from"./MobileAppDrawer-BixbLTmv.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]="0dc76ffd-f1f4-4e70-b666-6a2453c701e7",t._sentryDebugIdIdentifier="sentry-dbid-0dc76ffd-f1f4-4e70-b666-6a2453c701e7")}catch{}})();const ee=E((function(t){const a=R(t),i=b.getSignedInUser(),l=D(t),c=l.tenantId,p={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=_(l?.userRole??[])&&a.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=z(t.companyConfigState),n=t.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:a.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:a,allIndustries:e.companyIndustries??[],allNationalityCountries:n,isDisabled:f,authParams:p,filesEndPoint:`${A.fileMicroServiceBaseUrl}`,isZeniUser:Z(i)}}),(function(t,a){const{companyId:i,currentTenant:l,navigate:c,location:p}=a,{tenantEmailDomain:f}=l;return{onScheduleClick:e=>{let n=e.href;n.includes("http")||(n="https://".concat(n)),window.open(n,"_blank")},onSaveAll:()=>{t(K())},onAddressClick:e=>{const n=Q(f,e),o=G(p.state?.pathnameStackToGoBack,p.pathname);c(n,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{t(J({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?C(u):void 0,meetingLink:y!=""&&y!=null?C(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?$(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(W(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(H({files:e}))},onDeleteFile:e=>{t(q(e))},onEditFileName:(e,n)=>{t(Y(e,n.split(".")[0]))}}}))(j);function de(){const t=w(),a=x(),i=k(),{tenantEmailDomain:l}=T(),[c,p]=g.useState(!1),[f,e]=g.useState(!1),n=O((s=>s.companyViewState.passportView.fetchState)),o=O((s=>s.companyConfigState.fetchState)),r=O((s=>D(s))),d=r.companyId??b.getSignedInUserTenant(l)?.companyId;if(b.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect((()=>{c||n!=="Not-Started"||d==null||(p(!0),a(B(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(F,{onGoHome:()=>t("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(P,{analytics:V,onLoad:s=>s.trackPageLoaded(L.Event.companyPassport,N(i)?"Settings":"Company Passport")}),N(i)?m.jsx(X,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:t,location:i,isLoading:y,currentTenant:r,isSettings:N(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{j as I}from"./liveblocks-CevUFagi.js";import{a as o}from"./sentry-BrSPpZKf.js";import{u as F,h as R,g as H,j as C,N as w}from"./core-Bc2mnalE.js";import{UI as q,fI as z,go as G,p_ as V,gP as A,gn as Q,gl as B,V6 as J,gk as O}from"./zeni-epic-state-VmxO3Mnv.js";import{u as K,z as E,L as D,G as M,E as W}from"./index-CtE8HnsY.js";import{n as X}from"./mui-CUsYvTMG.js";import{P as b,a as T}from"./AccountMappingScreen-D6HgzjWo.js";import{t as Y}from"./getLocaleForTenant-D-baUPRb.js";import{g as Z,Q as ee}from"./QBOConnectionScreen-CMu1wr6r.js";import"./recharts-BjkXpBn6.js";import"./analytics-D7SbUCRL.js";import"./plaid-Dxz6lSJz.js";import"./dnd-B0zyAl0s.js";import"./stripe-cKAAJElX.js";import"./lottie-Dhd_0CJG.js";import"./lexical-CCch0Fzo.js";import"./pdf-CuegwamZ.js";import"./utils-BKSIhN7N.js";import"./MobileAppDrawer-BixbLTmv.js";import"./InboxNotificationsProvider-yzTJ7wEQ.js";import"./useTaskManagerAccess-94Xv3cKO.js";import"./accountMappingHelper-HDztJioo.js";import"./empty-Nco5SaTV.js";import"./pdf-lib-C0hF4MJX.js";import"./index-CyFWesiE.js";import"./url-2Ybk2sxg.js";import"./index-Dv6pUA2Y.js";import"./decodeURIComponentSafe-addd21BI.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]="6bdaa014-e3fb-435e-987a-82ab4f49e01d",t._sentryDebugIdIdentifier="sentry-dbid-6bdaa014-e3fb-435e-987a-82ab4f49e01d")}catch{}})();const te=X.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 ${W.sp1} ${t.theme.colors.dropShadowNormal}`};
|
|
11
|
-
`;function we(){const t=F(),i=R(),v=H(),{setLoading:m,clearAllLoading:c}=K(),h=o.useRef(!1),S=o.useRef(!1),N=o.useRef(!1),p=o.useRef(!1),{code:U,realmId:$,state:L}=Z(v.search),f=U!==""&&$!==""&&L!=="";f&&(N.current=!0);const j=sessionStorage.getItem(b),u=j===T.pending,P=j===T.ready,x=C((s=>q(s))),e=C((s=>z(s))),n=C((s=>s.tenantState.fetchState)),r=C((s=>s.tenantState.activeTenantFetchState.fetchState)),a=E.getSignedInUser(),g=E.getActiveTenantForUser()?.tenantId,l=e?.externalConnections?.fetchState,d=e?.externalConnections?.saveConnectionState,y=e.externalConnections?.accounting[0]?.isValid;o.useLayoutEffect((()=>{m(D.CONNECTION_AUTH)}),[m]),o.useEffect((()=>{h.current||a==null||g==null||(h.current=!0,n==="Completed"||r!=="Not-Started"&&r!=="Error"||(m(D.TENANT_FETCHING),t(G(a.userId,g))))}),[h,n,m]),o.useEffect((()=>{e.tenantId==null&&!S.current&&a!=null&&(S.current=!0,!(g==null||g!=null&&(r==="Completed"||r==="Error"))||n!=="Not-Started"&&n!=="Error"||t(V(a.userId)))}),[S,n,r]),o.useEffect((()=>{a==null||e?.tenantId==null||e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||l==="In-Progress"||d!=="Error"||(m(D.CONNECTION_AUTH),t(A(a.userId,e.tenantId)))}),[d]),o.useEffect((()=>{n!=="Completed"&&r!=="Completed"||a==null||e?.tenantId==null||(t(Q(e.tenantId)),E.saveActiveTenantDomainForUser(e.tenantEmailDomain),B(a?.userId,a?.zeniSessionId,e.tenantId),M.updateAppLocaleID(Y(J(e))),e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||l==="In-Progress"||a==null||e==null||t(A(a.userId,e.tenantId)))}),[n,r,l]),o.useEffect((()=>{x.tenantsCoreDetailsInOrder.length>0&&n==="Completed"&&E.saveSignedInUserTenants(x.tenantsCoreDetailsInOrder)}),[x.tenantsCoreDetailsInOrder.length,n]);const _=e==null||n!=="Completed"&&r!=="Completed"||l!=="Completed";if(o.useEffect((()=>{n!=="Completed"&&n!=="Error"||r!=="Completed"&&r!=="Error"||l!=="Completed"&&l!=="Error"||c()}),[n,r,l]),o.useEffect((()=>{u&&d==="In-Progress"&&(p.current=!0)}),[u,d]),o.useEffect((()=>{if(!u||_)return;const s=e.tenantEmailDomain!=null?`/${e.tenantEmailDomain}/settings/accounting`:"/";return p.current&&d==="Completed"?(sessionStorage.setItem(b,T.ready),c(),void i(s,{replace:!0})):p.current&&d==="Error"?(sessionStorage.removeItem(b),t(O({messageSection:"accounting_projects_qbo_reconnect_failed",messageText:"failed",type:"error"})),c(),void i(s,{replace:!0})):void(f||N.current||p.current||y!==!0||(sessionStorage.removeItem(b),t(O({messageSection:"accounting_projects_qbo_reconnect_failed",messageText:"failed",type:"error"})),c(),i(s,{replace:!0})))}),[u,_,d,f,y,e.tenantEmailDomain,c,t,i]),_)return null;if(f||y!==!0)return I.jsx(te,{children:I.jsx(ee,{})});if(u)return null;const k=e.tenantEmailDomain!=null?`/${e.tenantEmailDomain}/settings/accounting`:"/";return P?I.jsx(w,{to:k,replace:!0}):I.jsx(w,{to:"/",replace:!0})}export{we as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-CevUFagi.js";import{z as m}from"./index-CtE8HnsY.js";import{g as n}from"./QBOConnectionScreen-CMu1wr6r.js";import"./sentry-BrSPpZKf.js";import{g as p,N as a}from"./core-Bc2mnalE.js";import"./zeni-epic-state-VmxO3Mnv.js";import"./recharts-BjkXpBn6.js";import"./mui-CUsYvTMG.js";import"./analytics-D7SbUCRL.js";import"./plaid-Dxz6lSJz.js";import"./dnd-B0zyAl0s.js";import"./stripe-cKAAJElX.js";import"./lottie-Dhd_0CJG.js";import"./lexical-CCch0Fzo.js";import"./pdf-CuegwamZ.js";import"./utils-BKSIhN7N.js";import"./empty-Nco5SaTV.js";import"./pdf-lib-C0hF4MJX.js";import"./index-CyFWesiE.js";import"./url-2Ybk2sxg.js";import"./index-Dv6pUA2Y.js";import"./decodeURIComponentSafe-addd21BI.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]="a1205b81-d106-415b-bd92-85aeae53ace3",t._sentryDebugIdIdentifier="sentry-dbid-a1205b81-d106-415b-bd92-85aeae53ace3")}catch{}})();const U=()=>{const t=p(),{code:o,realmId:r,state:e}=n(t.search),s=m.getSignedInUser()?.userId??"";if(f(o,r,e,s)===!0){const d=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return i.jsx(a,{to:d})}return i.jsx(a,{to:"../../"})},f=(t,o,r,e)=>t!=""&&o!=""&&r!=""&&e!=null&&e!="";export{U as default,f as hasValidParams};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import{j as y}from"./liveblocks-CevUFagi.js";import{u as ge,h as Ue,g as Ie,j as _,i as Ee,t as Yn,l as mo,n as po,o as Ye,N as ho}from"./core-Bc2mnalE.js";import{fI as Ae,a20 as Hn,q8 as Oe,U$ as Rt,Au as So,a21 as fo,a22 as go,a23 as Io,a24 as yt,a25 as lt,gk as wt,a26 as kn,eH as Co,g3 as ko,a27 as bn,a28 as rt,q$ as bo,v0 as To,gW as yo,gU as Po,a29 as vo,rc as Eo,rl as Ao,qj as xo,qx as Wn,gT as ue,gV as Ro,a2a as wo,qT as Xn,rm as Do,qu as Fo,qp as _o,v6 as Mo,gS as ve,a2b as mt,CE as Kn,N8 as Qn,a2c as Zn,G3 as ea,a2d as Bo,e$ as Oo,f1 as Uo,t1 as Dt,XU as Tn,XW as Vo,m6 as jo,XX as $o,md as zo,dn as Lo,DX as Ft,a2e as Go,a2f as No,a2g as qo,a2h as Jo,fp as _t,sR as yn,a2i as Yo,XG as Ho,a2j as Wo,a2k as Xo,mf as Ko,a2l as Qo,RQ as Zo,me as es,m3 as ts,qM as ta,rr as pt,tE as na,t_ as ns,UR as aa,rq as Pn,rt as oa,rv as as,bG as os,nC as ss,nz as cs,ru as dt,rs as Pe,a2m as is,rM as vn,a2n as ls,a2o as rs,sV as ds,sW as us,XC as ms,WI as sa,a1u as ps,a2p as hs,XI as En,XH as it,a2q as An,mu as Ss,a2r as fs,a2s as gs,a2t as Is,a2u as Cs,qH as ks,a2v as bs,a2w as Ts,a2x as ys,rC as Ps,mh as vs,m8 as Es,a2y as As,mg as xn,Y5 as xs,a2z as Rs,a2A as ws,uD as Ds,ue as Fs,ud as Pt,a2B as _s,a2C as Ms,a2D as Bs,a2E as Os,nN as Us,br as ca,nI as Rn,nu as Vs,a2F as js,h3 as $s,nF as zs,t3 as Ls,t5 as Gs,sO as Ns,WL as qs,WM as Js,Fx as Ys,Fw as Hs,FN as Ws,a2G as wn,sU as Xs,sp as Ks,a2H as Qs,s5 as Zs,sa as ec,sl as tc,s8 as nc,a2I as ac,s1 as oc,sk as sc,s_ as cc,a2J as ic,tb as lc,sI as rc,th as dc,sN as uc,rN as mc,a2K as pc,r3 as hc,qD as Sc,qK as Dn,rx as fc,a2L as gc,a2M as Ic,a2N as Cc,a2O as kc,a2P as bc,a2Q as Tc,a2R as yc,tl as Pc,a2S as vc,a2T as Ec,a2U as Fn,uO as Ac,u5 as xc,tW as _n,tU as Rc,a2V as wc,tJ as Dc,to as Fc,tX as _c,a2W as Mc,a2X as Bc,tu as Oc,a2Y as Uc,tp as Vc,tt as jc,tr as $c,u1 as zc,a2Z as Mn,qc as vt,a2_ as Lc,E7 as Bn,cA as Gc,qy as Nc,a2$ as qc}from"./zeni-epic-state-VmxO3Mnv.js";import Ut from"./NotFoundScreen-BkN7W6JR.js";import{a as o,R as ia}from"./sentry-BrSPpZKf.js";import{n as Ve,S as Jc}from"./mui-CUsYvTMG.js";import{p as ht,d as Q,k as ee,l as Z,ao as la,aq as ra,dP as Yc,dQ as Hc,z as We,dR as Mt,dS as Wc,dT as Xc,ac as He,dU as Kc,dV as On,bb as Un,dW as Qc,a5 as da,dX as Zc,j as ut,a as ei,dY as ti,dZ as ni,c as ai,J as oi,d_ as si,d$ as ci,e0 as ii,b5 as li,bt as ri,a9 as di,b6 as ui,b1 as mi,b7 as pi,G as ua,w as hi,e1 as Si,at as Bt,e2 as fi,a2 as gi,e3 as Ii,e4 as Ci}from"./index-CtE8HnsY.js";import{u as Vt}from"./useAskAiCfoHostNavButtonProps-JRFYPtx4.js";import{g as Vn,u as ki,c as bi,h as Ti,b as yi,i as Pi,r as vi,C as Ei}from"./TransactionDetailScreen-D3daFCwt.js";import{u as Ai,a as xi}from"./useActualMatchingMatchDetail-CZpCt66v.js";import{d as Ri}from"./decodeURIComponentSafe-addd21BI.js";import{m as jt,a as ma,b as pa,i as Ot}from"./expenseAutomationHelper-6llqwO2d.js";import{u as ha,a as Sa,w as wi}from"./withTransactionSidePanel-DDzMeSLR.js";import{b as Di,S as Fi,a as _i,J as Mi}from"./ScheduleDetailsPrepaidExpensesScreen-CUlxxOT4.js";import{s as jn,i as fa,h as Bi,j as Oi,v as Ui,c as Vi}from"./routePaths-Dv28cYw1.js";import{a as Et}from"./accountMappingHelper-HDztJioo.js";import{D as ji}from"./DrawerScreen-5p-VaDVX.js";import"./recharts-BjkXpBn6.js";import"./analytics-D7SbUCRL.js";import"./plaid-Dxz6lSJz.js";import"./dnd-B0zyAl0s.js";import"./stripe-cKAAJElX.js";import"./lottie-Dhd_0CJG.js";import"./lexical-CCch0Fzo.js";import"./pdf-CuegwamZ.js";import"./utils-BKSIhN7N.js";import"./useInitialThreadRequest-gQdpW0fv.js";import"./stripSplatSuffix-wwIiiS3L.js";import"./pathToGoBack-h9zXpfmB.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="caef4984-2968-4f14-8335-3e9186e218ff",t._sentryDebugIdIdentifier="sentry-dbid-caef4984-2968-4f14-8335-3e9186e218ff")}catch{}})();const $i=()=>{const t=ge(),n=Ue(),h=Ie(),m=_((p=>Ae(p))),{useFeatureGate:f}=ht(),{isFeatureEnabled:c}=f(Q.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:r}=f(Q.aiAuditScorePercentage),R=_((p=>p.expenseAutomationViewState.selectedPeriodByTenantId)),i=_((p=>Hn(p,m.tenantId))),{isAiCfoAccessEnabled:k,onAskAiCfoClick:I}=Vt({mobileExploreReferrer:"Month-End Close Overview"}),E=o.useCallback(((p,d,g=!1)=>{t(Oe({tenantId:d,period:{month:p.month,year:p.year},refreshViewInBackground:g}))}),[]),b=o.useCallback((p=>{const d=h.state?.referrer;i.monthEndCloseChecks?.auditSummary!=null&&ee.trackMonthCloseAuditPage(p.month,p.year,i.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",i.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,d??null),t(Rt(m.tenantId,p))}),[m.tenantId,i.monthEndCloseChecks?.auditSummary,i.monthEndCloseChecks?.reportEmailSentDate]),P=R[m.tenantId],F=o.useCallback((()=>{const p=h.state?.referrer;i.monthEndCloseChecks?.auditSummary!=null&&ee.trackMonthCloseAuditPage(P.month,P.year,i.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",i.monthEndCloseChecks.auditSummary.auditScorePercentage,!0,p??null),E(P,m.tenantId,!0)}),[E,P,m.tenantId,i.monthEndCloseChecks?.auditSummary,i.monthEndCloseChecks?.reportEmailSentDate]),B=Z(h.state?.pathnameStackToGoBack,h.pathname),z=o.useCallback((()=>{if(i.monthEndCloseChecks!=null&&P!=null){const p=i.monthEndCloseChecks.monthEndCloseCheckList.find((d=>d.progress<100));if(p!=null)return void n(`./${p.id}/${P.month}-${P.year}`,{state:{pathnameStackToGoBack:B,message:"comingFromOverview"}});n(`./month_end_insights/${P.month}-${P.year}`,{state:{pathnameStackToGoBack:B,message:"comingFromOverview"}})}}),[i.monthEndCloseChecks,P]),{areTenantIdsInSync:T}=la();return ra({isDataReady:i.fetchState==="Completed"}),o.useEffect((()=>{P!=null&&i.fetchState!=="In-Progress"&&i.fetchState!=="Completed"&&T&&E(P,m.tenantId)}),[E,P,i.fetchState,m.tenantId,T]),o.useEffect((()=>{P!=null&&i.monthClosePerformanceTrendFetchStatus.fetchState!=="In-Progress"&&i.monthClosePerformanceTrendFetchStatus.fetchState!=="Completed"&&T&&t(So(P))}),[P,i.monthClosePerformanceTrendFetchStatus.fetchState,T]),o.useEffect((()=>{const p=setInterval((()=>{i.fetchState!=="In-Progress"&&i.fetchState==="Completed"&&F()}),3e5);return()=>clearInterval(p)}),[i.fetchState]),o.useEffect((()=>{if(i.fetchState==="Completed"&&i.monthEndCloseChecks?.auditSummary!=null){const p=h.state?.referrer;ee.trackMonthCloseAuditPage(i.selectedPeriod.month,i.selectedPeriod.year,i.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",i.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,p??null)}}),[i.fetchState,i.selectedPeriod,i.monthEndCloseChecks?.auditSummary,i.monthEndCloseChecks?.reportEmailSentDate]),y.jsx(zi,{children:y.jsx(Yc,{monthEndCloseChecksView:i,isRealtimeInsightsFeatureEnabled:c,onMonthEndCheckClick:p=>{n(`./${p}/${P.month}-${P.year}`,{state:{pathnameStackToGoBack:B,message:"comingFromOverview",referrer:"Expense Automation - Overview"}})},onPeriodChange:b,handleReviewButtonClick:z,onBackClick:()=>{n("../../dashboard")},onReload:F,isAiCfoAccessEnabled:k,onAskAiCfoClick:I,aiAuditScorePercentageEnabled:r})})},zi=Ve.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
|
-
`;function Li({isFullView:t,matchId:n,onClose:h}){const{match:m,detailFetchState:f,handleOpenBill:c,handleApproveAndReverse:r,handleIgnoreMatchSuggestion:R,handleRefresh:i,handleUndoReversal:k,lastMatchResults:I,lastUndoResults:E,refreshStatus:b,ignoreStatus:P,matchAndReverseStatus:F,undoReversalStatus:B}=Ai(n);return y.jsx(Hc,{match:m,detailFetchState:f.fetchState,isRenderedInPanel:!t,isApproveInFlight:F.fetchState==="In-Progress",isIgnoreInFlight:P.fetchState==="In-Progress",isUndoInFlight:B.fetchState==="In-Progress",refreshStatus:b.fetchState,onNavigateBack:h,onOpenBill:c,onApproveAndReverse:r,onIgnoreMatchSuggestion:R,onRefresh:i,onUndoReversal:k,lastMatchResults:I,lastUndoResults:E})}const Gi=/^match\/([^/?]+)$/,Ni=Sa({displayNamePrefix:"withActualMatchingSidePanel",usePanelSetup:function(t){const n=(function(m=!0){const f=Ue(),c=Ie(),r=Ee(),R=jt(r),i=ha({childPathPattern:Gi,enabled:m,listPath:R}),k=i.matchGroups[0]!=null&&i.matchGroups[0]!==""?Ri(i.matchGroups[0]):void 0,I=r.tenantEmailDomain??c.pathname.split("/").find(Boolean)??"",E=o.useRef({isOpen:i.isOpen,matchId:k});E.current={isOpen:i.isOpen,matchId:k};const b=o.useCallback((B=>{!i.isMobile&&m?E.current.isOpen&&E.current.matchId===B?i.closePanel():i.navigateToChild(`match/${encodeURIComponent(B)}`,{replace:E.current.isOpen}):f(`/${I}/expense-automation/actual-matching/${encodeURIComponent(B)}`)}),[f,i.isMobile,i.navigateToChild,i.closePanel,m,I]),P=o.useCallback((()=>{if(k==null)return;const B=Z(c.state?.pathnameStackToGoBack,`${c.pathname}${c.search}`);f(`/${I}/expense-automation/actual-matching/${encodeURIComponent(k)}`,{state:{pathnameStackToGoBack:B}})}),[c.pathname,c.search,c.state,k,f,I]),F=i.isOpen&&k!=null;return{closePanel:i.closePanel,isOpen:F,maximize:P,matchId:m&&F?k:void 0,openPanel:b}})(t),h=o.useMemo((()=>{if(n.isOpen&&n.matchId!=null)return y.jsx(Li,{isFullView:!1,matchId:n.matchId,onClose:n.closePanel},n.matchId)}),[n.closePanel,n.isOpen,n.matchId]);return{injectedProps:o.useMemo((()=>({closeMatchSidePanel:n.closePanel,isMatchPanelOpen:n.isOpen,matchPanelContent:h,matchPanelMatchId:n.matchId,openMatchPanel:n.openPanel})),[h,n.closePanel,n.isOpen,n.matchId,n.openPanel]),selectedItemId:n.matchId,sidePanel:{closePanel:n.closePanel,maximize:n.maximize}}}}),qi=ia.memo((({reconciliation:t,selectedDrawerAccountId:n,onClose:h,onFetchLinkTokenClick:m,onEstablishConnectionClick:f})=>{const c=ge(),r=Ue(),R=Ie(),{tenantEmailDomain:i,selectedTab:k,selectedPeriod:I}=Ee(),{useFeatureGate:E}=ht(),{isFeatureEnabled:b}=E(Q.isReconV3Enabled),{isFeatureEnabled:P}=E(Q.isReconciliationCombinedStatementEnabled),{isFeatureEnabled:F}=E(Q.isReconReportEnabled),B=We.getSignedInUser(),z=_((x=>Ae(x))),T=o.useMemo((()=>({userId:B?.userId??"",sessionId:B?.zeniSessionId??"",tenantId:z?.tenantId??""})),[B?.userId,B?.zeniSessionId,z?.tenantId]),{accountReconciliationsByAccountID:p,excludedAccountIDs:d,monthYearPeriod:g,statementUploadChosen:U}=t,w=p[n],V=o.useMemo((()=>fo(p,n)),[p,n]),S=o.useMemo((()=>go(p)),[p]),L=o.useMemo((()=>Io(p,n)),[p,n]),e=o.useRef(!1),a=o.useCallback((x=>{e.current=x,On(n,x)}),[n]),l=o.useCallback((x=>{c(yt({accountId:n,selectedPeriod:g,dismissedToBackground:!0,backgroundCompletedSteps:x.completedSteps,startedAtMs:x.startedAtMs,totalDurationSeconds:x.totalDurationSeconds})),x.accountMappings!=null&&c(lt({accountId:n,selectedPeriod:g,localData:{combinedStatementAccountMappings:x.accountMappings}})),w!=null&&requestAnimationFrame((()=>{e.current||c(wt({messageSection:"statement_parsing_in_progress",messageText:"success",type:"info",showStatusIcon:!0,variables:[{variableName:"_account_name_",variableValue:Mt(w)}]}))}))}),[c,g,w,n]),u=o.useCallback((()=>{c(yt({accountId:n,selectedPeriod:g,dismissedToBackground:!1}))}),[c,n,g]),C=o.useCallback((x=>{c(kn({accountId:n,selectedPeriod:g,backgroundCompletedSteps:x}))}),[c,g,n]),A=o.useCallback((()=>{c(kn({accountId:n,selectedPeriod:g,backgroundCompletedSteps:0})),c(yt({accountId:n,selectedPeriod:g,dismissedToBackground:!1}))}),[c,g,n]);o.useEffect((()=>()=>{On(null,!1)}),[]);const D=w?.parsedStatementData?.statementUpload?.statementMeta?.statementUploadId??w?.accountReconEntity.statementMetaData?.statementUploadId,j=w?.statementDateConflict?.previousReconciliationInfo?.reconciledByUserId,W=_((x=>j!=null&&j!==""?Co(ko(x.userState,j)):"")),X=o.useCallback((()=>{c(bn({accountId:n,selectedPeriod:g}))}),[c,n,g]),se=o.useCallback((()=>{c(bn({accountId:n,selectedPeriod:g})),c(rt({statementUploadChosen:!0}))}),[c,n,g]),ne=(x,te)=>{c(Mo(x,te.split(".")[0]))},v=(x,te)=>{if(te===!0){const oe=w?.combinedStatementGroupId??w?.parsedStatementData?.statementUpload?.statementMeta?.combinedStatementGroupId??w?.parsedStatementData?.statementUpload?.combinedStatementDetails?.combinedStatementGroupId;if(oe!=null&&oe!=="")return void c(Fo({accountId:n,selectedPeriod:g,combinedStatementGroupId:oe,fileId:x}))}D!=null&&c(_o({accountId:n,selectedPeriod:g,fileId:x,statementUploadId:D}))},O=()=>{c(rt({statementUploadChosen:!1}))},H=x=>{c(Do({accountId:n,selectedPeriod:g,payload:x,statementAccountScope:P===!0?w?.localData?.statementAccountScope??"single_account":"single_account"}))},K=o.useCallback(((x,te,oe)=>{c(bo({accountId:x,selectedPeriod:te,statementUploadId:oe}))}),[c]),Ce=o.useCallback(((x,te,oe,we,De)=>{De!=null&&De!==""&&c(To(De)),c(we==null||we===""?Po({accountId:x,selectedPeriod:te,statementUploadId:oe}):yo({accountId:x,selectedPeriod:te,statementUploadId:oe,combinedStatementGroupId:we}))}),[c]),xe=o.useCallback(((x,te)=>{te!==""&&c(vo({accountId:n,selectedPeriod:g,statementUpdateLocalData:x,statementUploadId:te}))}),[c,n,g]),$=o.useCallback((()=>{D!=null&&c(w?.localData?.statementAccountScope!=="multi_account"?Ao({accountId:n,selectedPeriod:g,statementUploadId:D}):Eo({accountId:n,selectedPeriod:g,statementUploadId:D}))}),[c,w?.localData?.statementAccountScope,n,g,D]),ke=o.useCallback((x=>{D!=null&&c(xo({accountId:n,selectedPeriod:g,statementUploadId:D,accountMappings:x}))}),[c,g,n,D]),me=o.useCallback((()=>{c(rt({statementUploadChosen:!0}))}),[c]),pe=x=>{c(lt({accountId:n,selectedPeriod:g,localData:{accountSource:x}}))},Re=x=>{c(lt({accountId:n,selectedPeriod:g,localData:{statementAccountScope:x}}))},Xe=o.useCallback((()=>{c(Wn({accountId:n}))}),[c,n]),Ke=o.useCallback((x=>{c(ue(g,x,!0)),h()}),[c,g,h]),ce=o.useCallback((x=>{if(i==null||k==null||I==null)return;const te=Z(R.state?.pathnameStackToGoBack,R.pathname);h();const oe=ma({tenantEmailDomain:i,selectedTab:k,accountId:x,period:I});oe!=null&&r(oe,{state:{pathnameStackToGoBack:te}})}),[R.pathname,R.state,r,h,I,k,i]),he=o.useCallback((()=>{c(Ro({accountId:n,selectedPeriod:g,statementProcessingFailed:!1})),c(wo({accountId:n,selectedPeriod:g}))}),[c,n,g]),ie=o.useCallback((()=>{c(Xn({accountId:n}))}),[c,n]),je=d.includes(n)?t.excludedAccountReconciliationByAccountID[n]:void 0;if(je!=null)return y.jsx($n,{children:y.jsx(zn,{$isV3:b===!0,children:y.jsx(Wc,{excludedAccountReconciliation:je,includeAccountFetch:t.includeAccountFetchState,isReconV3Enabled:b,onDismissClick:h,onIncludeIntoReconciliation:ie})})});if(w!=null){const x=b===!0?y.jsx(Xc,{excludeAccountFetch:t.excludeAccountFetchState,accountReconciliation:w,monthYearPeriod:g,onDismissClick:h,plaidConnectionDetails:t.plaidConnectionDetails,onFetchLinkTokenClick:m,onEstablishConnectionClick:f,onEditFileName:ne,onDeleteFile:v,onSelectSourceType:pe,onSelectStatementAccountScope:Re,isReconciliationCombinedStatementEnabled:P===!0,ledgerAccounts:V,statementOverrideWarningAccountIds:L,unavailableLedgerAccountIds:S,onConfirmStatementMapping:ke,filesEndPoint:He.fileMicroServiceBaseUrl,authParams:T,openFilePicker:U,onStatementUploadSuccess:H,onUploadWindowOpenedOnce:O,onExcludeFromReconciliation:Xe,onRetryParsing:K,onFetchStatementParseInfo:Ce,onReviewClicked:Ke,onViewReportClicked:F===!0?ce:void 0,statementProcessingFailed:w.statementProcessingFailed,statementProcessingDismissedToBackground:w.statementProcessingDismissedToBackground,onDismissStatementProcessingFailed:he,onContinueInBackground:l,onClearStatementProcessingDismissedToBackground:u,onResetStatementProcessingProgress:A,onStatementProcessingProgressChange:C,onStatementFlowVisibilityChange:a,onReuploadStatement:me,onStatementFormDataChange:xe,onStatementConfirmSave:$,reconciledByName:W,onDismissDateConflict:X,onReuploadAfterDateConflict:se,isReconV3Enabled:b}):y.jsx(Kc,{excludeAccountFetch:t.excludeAccountFetchState,accountReconciliation:w,monthYearPeriod:g,onDismissClick:h,plaidConnectionDetails:t.plaidConnectionDetails,onFetchLinkTokenClick:m,onEstablishConnectionClick:f,onEditFileName:ne,onDeleteFile:v,onSelectSourceType:pe,filesEndPoint:He.fileMicroServiceBaseUrl,authParams:T,openFilePicker:U,onStatementUploadSuccess:H,onUploadWindowOpenedOnce:O,onExcludeFromReconciliation:Xe});return y.jsx($n,{children:y.jsx(zn,{$isV3:b===!0,children:x})})}return null})),$n=Ve.div`
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
height: 100%;
|
|
12
|
-
`,zn=Ve.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 Ji({panelType:t,scheduleId:n,onClose:h,onCloseAfterDecision:m}){return y.jsx(Hi,{children:y.jsx(Wi,{children:Yi(t,n,h,m)})})}function Yi(t,n,h,m){switch(t){case"one_time_accrual":return y.jsx(Mi,{isRenderedInPanel:!0,accrualIdOverride:n,onPanelNavigateBack:h});case"accrued_expenses":return y.jsx(_i,{isRenderedInPanel:!0,scheduleDetailIdOverride:n,onPanelNavigateBack:h,onPanelCloseAfterDecision:m});case"fixed_assets":return y.jsx(Fi,{isRenderedInPanel:!0,scheduleDetailIdOverride:n,onPanelNavigateBack:h,onPanelCloseAfterDecision:m});case"prepaid_expenses":return y.jsx(Di,{isRenderedInPanel:!0,scheduleDetailIdOverride:n,scheduleTypeOverride:"prepaid_expenses",onPanelNavigateBack:h,onPanelCloseAfterDecision:m})}}const Hi=Ve.div`
|
|
22
|
-
display: flex;
|
|
23
|
-
flex-direction: column;
|
|
24
|
-
height: 100%;
|
|
25
|
-
`,Wi=Ve.div`
|
|
26
|
-
flex: 1;
|
|
27
|
-
min-height: 0;
|
|
28
|
-
display: flex;
|
|
29
|
-
flex-direction: column;
|
|
30
|
-
box-sizing: border-box;
|
|
31
|
-
min-width: 0;
|
|
32
|
-
overflow-x: hidden;
|
|
33
|
-
overflow-y: auto;
|
|
34
|
-
`,Xi=/^schedule\/(prepaid_expenses|fixed_assets|accrued_expenses|one_time_accrual)\/([^/?]+)$/,Ki=Sa({displayNamePrefix:"withScheduleSidePanel",usePanelSetup:function(t){const n=(function(b=!0){const P=Ue(),F=Ie(),B=ge(),z=Ee(),T=ha({childPathPattern:Xi,enabled:b}),p=T.matchGroups[0],d=fa(p)?p:void 0,g=T.matchGroups[1]!=null&&T.matchGroups[1]!==""?T.matchGroups[1]:void 0,U=T.isOpen&&d!=null&&g!=null,w=z.tenantEmailDomain??F.pathname.split("/").find(Boolean)??"",V=o.useRef({isOpen:U,scheduleId:g});V.current={isOpen:U,scheduleId:g};const S=o.useCallback(((e,a,l)=>{l!=null&&(a==="prepaid_expenses"||a==="fixed_assets")&&B(ea({selectedJEScheduleKey:l})),!T.isMobile&&b?V.current.isOpen&&V.current.scheduleId===e?T.closePanel():T.navigateToChild(`schedule/${a}/${e}`,{replace:V.current.isOpen}):P(jn(a,e,w),{state:{message:"expenseAutomation",origin:"je_schedules"}})}),[B,P,T.isMobile,T.navigateToChild,T.closePanel,b,w]),L=o.useCallback((()=>{if(d==null||g==null)return;const e=Z(F.state?.pathnameStackToGoBack,F.pathname);P(jn(d,g,w),{state:{pathnameStackToGoBack:e,message:"expenseAutomation",origin:"je_schedules"}})}),[P,d,g,w,F.pathname,F.state]);return{closePanel:T.closePanel,isOpen:U,maximize:L,openPanel:S,panelType:U?d:void 0,scheduleId:U?g:void 0}})(t),h=o.useRef(null),[m,f]=o.useState(null),c=o.useMemo((()=>({registerPanelDirtyGuard:b=>{h.current=b}})),[]),r=o.useCallback((b=>{h.current?.isDirty()===!0?f((()=>b)):b()}),[]),R=o.useCallback((()=>{r(n.closePanel)}),[r,n.closePanel]),i=o.useCallback((()=>{r(n.maximize)}),[r,n.maximize]),k=o.useCallback(((b,P,F)=>{r((()=>n.openPanel(b,P,F)))}),[r,n.openPanel]),I=o.useMemo((()=>{if(m!=null)return{onCancel:()=>f(null),onDiscard:()=>{h.current=null,f(null),m()}}}),[m]),E=o.useMemo((()=>{if(n.isOpen&&n.panelType!=null&&n.scheduleId!=null)return y.jsx(Qc.Provider,{value:c,children:y.jsx(Ji,{panelType:n.panelType,scheduleId:n.scheduleId,onClose:R,onCloseAfterDecision:()=>{h.current=null,n.closePanel()}},`${n.panelType}:${n.scheduleId}`)})}),[n.isOpen,n.panelType,n.scheduleId,n.closePanel,R,c]);return{injectedProps:o.useMemo((()=>({closeSchedulePanel:R,isSchedulePanelOpen:n.isOpen,openSchedulePanel:k,schedulePanelContent:E,schedulePendingDiscardConfirmation:I})),[R,k,E,I,n.isOpen]),selectedItemId:n.scheduleId,sidePanel:{closePanel:R,maximize:i}}}});function Qi({companyId:t,closeCustomerRequestDrawer:n,addCustomerRequest:h,resetCustomerRequest:m}){const f=We.getSignedInUser();if(f==null)throw Error("Can't access Customer Request page without signing in...");const c=_((r=>Bo(r,t,f)));return o.useEffect((()=>{m()}),[]),y.jsx(y.Fragment,{children:c.fetchState==="In-Progress"||c.companyMonthEndReportTemplatesData.fetchState==="In-Progress"?y.jsx(da,{fetchState:"In-Progress"}):y.jsx(Zc,{onCloseClick:n,addCustomerRequest:h,snippets:c.companyMonthEndReportTemplatesData,bulletPoints:c.zeniRequestsData??[]})})}const Zi={schedules:"Review Schedules",actual_matching:"Actual Matching",existing_schedules:"Existing Schedules"},el=()=>{const t=_((I=>ve(I))),n=Ie(),{currentSelectedViewFetchState:h,currentSelectedView:m,selectedPeriod:f}=t,c=ut(m),r=ut(h.fetchState),R=t.jeSchedules.uiState.selectedPageTab??"schedules",i=ut(R),k=o.useCallback((I=>{const E=n.state?.referrer;m==="transaction_categorization"&&(t.selectedTransactionCategorizationTab==="review"?ee.trackTransactionsReviewPage(f.month,f.year,t.transactionView.totalCountByTab.review,0,I,E??null):ee.trackTransactionsAutoCategorisedPage(f.month,f.year,t.transactionView.totalCountByTab.autoCategorized,0,I,E??null)),m==="missing_receipts"&&ee.trackMissingReceiptsPage(f.month,f.year,I,t.missingReceipts.transactions.length,E??null),m==="je_schedules"&&ee.trackMonthCloseScheduleListPage(f.month,f.year,I,t.jeSchedules.pendingReviewSchedules.length,t.jeSchedules.failedPostings.length,(b=>{const P={accruedCount:0,fixedAssetsCount:0,oneTimeAccrualCount:0,prepaidCount:0};return b.forEach((F=>{if(Oo(F))P.oneTimeAccrualCount+=1;else switch(Uo(F)){case"prepaid_expenses":P.prepaidCount+=1;break;case"fixed_assets":P.fixedAssetsCount+=1;break;case"accrued_expenses":P.accruedCount+=1}})),P})(t.jeSchedules.pendingReviewSchedules),Zi[R],E??null),m==="flux_analysis"&&ee.trackFluxAnalysisPage(f.month,f.year,I,tl(t.fluxAnalysis),E??null),m==="month_end_insights"&&t.auditSummary?.auditScorePercentage!=null&&ee.trackInsightsEmailPage(f.month,f.year,I,"draft",t.auditSummary.auditScorePercentage,null,E??null)}),[f,t,R]);return o.useEffect((()=>{(r!==h.fetchState||m!==c||m==="je_schedules"&&i!=null&&R!==i)&&h.fetchState==="Completed"&&k(!1)}),[m,h.fetchState,c,R,i]),k},tl=t=>t.sections.generalExpense.vendors.length+t.sections.reimbursement.vendors.length,{common:{strings:{hyphen:nl,comma:Ln,space:al}},dateFormat:ga}=ua.getLocalizedStrings(),Gn=zc,ol=mo((function(t,n){const{uncategorizedAccounts:h,vendorSearchAutoCompleteData:m,monthEndInsightsCustomerRequestData:f,monthEndInsightsPreviewMode:c,companyId:r,isMissingReceiptsBulkUploadEnabled:R,isTransactionActivityEnabled:i,newScheduleActiveType:k}=n,I=We.getSignedInUser(),E=t.tenantState.currentTenantId,b={userId:I?.userId??"",sessionId:I?.zeniSessionId??"",tenantId:E??""},P=ve(t),{selectedTransactionCategorizationTab:F}=P,{searchTransactionsResults:B,searchTransactionsFetchState:z}=ls(t),T=k==="prepaid_expenses"?"prepaid_expenses":"fixed_assets",{accountListNestedAccountHierarchy:p,classListNestedAccountHierarchy:d,allDepreciationAccountListNestedAccountHierarchy:g,newScheduleLocalData:U,saveStatus:w}=rs(t,T);return{expenseAutomationViewSelector:P,accountListNestedAccountHierarchy:p,allDepreciationAccountListNestedAccountHierarchy:g,baseTransactionSearchFetchState:z,baseTransactionSearchResults:B,classListNestedAccountHierarchy:d,newScheduleLocalData:U,initialSelectedBaseTransaction:U.selectedBaseTransactionId!=null?ds(t.transactionState,us(U.selectedBaseTransactionId)):void 0,newAccrualAccountsView:ms(t),newScheduleSaveStatus:w,bulkUploadSelector:R===!0?P.missingReceipts.bulkUpload:void 0,vendorSearchAutoCompleteData:m,authParams:b,receiptUploadEndpoint:`${He.accountMicroServiceBaseUrl}`,transactionAttachmentsEndpoint:`${Bt}/transaction_attachments`,bulkUploadEndpoint:R===!0?`${He.communicationAgentMicroServiceBaseUrl}/1.0/receipts/bulk-upload`:void 0,isDisabled:!1,currentTab:F,selectedTransactionGroup:P.transactionView.selectedTransactionGroup,monthEndInsightsCustomerRequestData:f,monthEndInsightsPreviewMode:c,allThreadsSectionOpen:!1,enableMonthEndInsightsZeniGPTFeature:!1,loggedInUser:I,uncategorizedAccounts:h,companyId:r,isTransactionActivityEnabled:i,receiptsEmail:ps(t.tenantState,E),downloadParams:{authParams:b,jeScheduleEndPoint:`${Bt}/jeScheduleReports`,timezone:sa(),companyName:Ae(t).companyName}}}),(function(t,n){const{themeState:h,isAccountingClassesEnabled:m,isCOTEnabled:f,isMissingReceiptsBulkUploadEnabled:c,location:r,vendorSearchAutoCompleteData:R,expenseAutomationViewSelector:i,currentTenant:k,newScheduleActiveType:I,uncategorizedAccounts:E,navigate:b,onClickCustomerRequest:P,handleEditClick:F,closeSchedulePanel:B,isSchedulePanelOpen:z,openSchedulePanel:T,setActivityLogTransactionId:p}=n,{selectedPeriod:d,currentSelectedView:g,reconciliation:{selectedAccountId:U}}=i,{accountSettingsView:w}=i.jeSchedules,V=ta(d),S=pt(V.start),L=pt(V.end);return{onZeniLogoClick:()=>{h.toggle()},onUploadReceiptAttachment:e=>{ee.trackMissingReceiptAttached(d.month,d.year),t(xc(e))},onUploadTransactionReceipt:(e,a,l,u,C,A)=>{t(Fn(e,a,{fetchState:"In-Progress"}));const D=()=>t(Fn(e,a,{fetchState:"Error"}));fi(`${He.accountMicroServiceBaseUrl}/1.0/transactions/${a}/attachments`,A,a,l,u,C).then((j=>{j!=null?t(Ac(e,j)):D()})).catch(D)},onMissingReceiptsRowClick:(e,a)=>{if(n.openTransactionPanel)return void n.openTransactionPanel(e,a);const l=Z(r.state?.pathnameStackToGoBack,r.pathname);b(`../../transaction/${a}/${e}`,{state:{pathnameStackToGoBack:l,message:"expenseAutomation",origin:"missing_receipts"}})},onUploadReceiptComplete:(e,a)=>{t(Ec(e,a)),k!=null&&t(Oe({tenantId:k.tenantId,period:a,refreshViewInBackground:!0}))},onUploadReceiptFetchStatus:(e,a,l,u)=>{t(vc(e,{fetchState:a,error:l})),l!=null&&t(wt({messageSection:"missing_receipts_attachment",messageText:"failed",type:"error",showStatusIcon:!0,variables:[{variableName:"__message__",variableValue:u!=null?al+nl+u+Ln:Ln}]}))},onUpdateJESchedulesUIState:e=>{const a=i.jeSchedules.uiState,l=e.selectedPageTab!=null&&e.selectedPageTab!==a.selectedPageTab,u=e.selectedJETypeFilter!==void 0&&e.selectedJETypeFilter!==a.selectedJETypeFilter;l&&n.closeMatchSidePanel?.(),z===!0&&(l||u)&&B?.(),e.createdGroupCollapsed!=null?t(kc()):e.pendingGroupCollapsed!=null?t(bc()):e.failedGroupCollapsed!=null?t(Tc()):e.selectedJETypeFilter!==void 0?t(yc(e.selectedJETypeFilter)):t(Pc(e))},onUpdateMissingReceiptsUIState:e=>{t(Cc(e))},onFetchMissingReceiptsList:()=>{L!=null&&S!=null&&t(oa({start:S,end:L},{amount:75,currencyCode:"USD",currencySymbol:"$"},!0,!1))},...c===!0?{onBulkUploadFiles:e=>{t($c(e))},onBulkUploadProgress:e=>{t(jc(e))},onBulkUploadSuccess:e=>{t(Vc({batchId:e}))},onBulkUploadUploadedFileCount:e=>{t(Uc(e))},onConfirmBulkUploadMatch:(e,a,l,u,C)=>{t(Oc(e,a,l,u,C))},onBulkUploadConfirmMatchAcknowledged:()=>{t(Bc())},onSetBulkUploadResultsTab:e=>{t(Mc(e))},onSetBulkUploadCompletedSubTab:e=>{t(_c(e))},onSetBulkUploadSortConfig:(e,a)=>{t(_n({sortKey:e,sortOrder:a}))},onClearBulkUpload:()=>{t(Fc())},onSearchTransactionsForManualMatch:(e,a)=>{t(Gn(e,a??void 0))},onLoadMoreManualSearch:()=>{const{manualSearch:e}=i.missingReceipts.bulkUpload;e.nextPageToken!=null&&e.searchQuery!==""&&t(Gn(e.searchQuery,e.nextPageToken))},onFetchCompletedTransactions:(e,a)=>{t(Dc(e,a))},onClearBulkUploadBatchDetailsForScopeChange:()=>{t(wc())},onFetchBulkUploadBatches:e=>{t(na(e))},onFetchMoreBatchDetails:()=>{t(Rc())},onResetBulkUploadSort:()=>{t(_n({sortKey:void 0,sortOrder:void 0}))}}:{},onClearMissingReceiptsTabNavigation:()=>{t(Ic())},onSearchTextChanged:e=>{const a=i.currentSelectedView,l=i.selectedTransactionCategorizationTab;a==="transaction_categorization"&&(t(Pt({selectedTab:l,uiState:{searchString:e}})),L!=null&&S!=null&&t(Pe(l,{start:S,end:L},!0,!1,e,void 0,!1,!0)))},onFiltersChange:e=>{const a=i.selectedTransactionCategorizationTab;t(gc({filters:e,selectedTab:a}))},onRefresh:()=>{n.trackExpenseAutomationTabAnalytics(!0),t(fc())},onClose:()=>{g==="reconciliation"&&U!=null&&t(Dn({selectedAccountId:void 0})),b("../")},onBack:()=>{g==="reconciliation"&&U!=null&&t(Dn({selectedAccountId:void 0}))},onSaveReconciliation:e=>{t(Sc(e))},onSaveReconciliationReview:e=>{t(hc(e))},onUpdateStep:e=>{const{selectedPeriod:a}=i,l=Z(r.state?.pathnameStackToGoBack,r.pathname);b(`../${e}/${a.month}-${a.year}`,{state:{pathnameStackToGoBack:l,referrer:i.currentSelectedView}}),t(aa(e))},handleLogOutClick:()=>{const e=Z(r.state?.pathnameStackToGoBack,r.pathname);b("/signout",{replace:!0,state:{pathnameStackToGoBack:e,message:"logout"}})},onJeAccountSettingsChange:e=>{const{vendorsAccountSection:a}=e,{prepaidExpensesAccount:l,fixedAssetsAccount:u,accruedExpensesAccount:C}=a,A=Et(w.prepaidExpensesAccountList,l.selectedOptions),D=Et(w.fixedAssetsAccountList,u.selectedOptions),j=Et(w.accruedExpensesAccountList,C.selectedOptions),W={selectedPrepaidExpensesAccountIds:A.map((X=>X.accountId)),selectedFixedAssetsAccountIds:D.map((X=>X.accountId)),selectedAccruedExpensesAccountIds:j.map((X=>X.accountId))};t(pc({data:W}))},onSaveJeAccountSettingsClick:()=>{t(mc())},onJESchedulesFormDataChange(e,a){const{jeScheduleID:l,accumulatedDepreciationCategory:u,scheduleClass:C,scheduleExpenseCategory:A,vendor:D}=a,{allAccountList:j,allClassList:W,allDepreciationAccountList:X}=i.jeSchedules,se=R.entityAutoCompleteView.vendor.length>0?R.entityAutoCompleteView.vendor.find((K=>K.id===D?.selectedOption)):void 0,ne={id:se?.zeniId??D?.selectedOption??"",name:se?.name??D?.defaultOptions.find((K=>K.value===D?.selectedOption))?.label??"",logo:se?.logo},v=A?.selectedOption!=null?j.find((K=>K.qboId===A.selectedOption)):void 0,O=C?.selectedOption!=null?W.find((K=>K.classId===C.selectedOption)):void 0,H=u?.selectedOption!=null?X.find((K=>K.qboId===u.selectedOption)):void 0;t(uc({scheduledJournalEntryID:e,localData:{jeScheduleID:l,scheduledJournalEntryID:e,updatedCategoryId:v?.accountId,updatedClassId:O?.classId,updatedAccumulatedDepreciationCategoryID:H?.accountId,updatedVendor:{id:ne.id,name:ne.name}}}))},onRevertJeSchedule(e,a,l,u,C){t(dc(e,a,l,u,C))},ignoreRecommendedJeSchedule(e,a,l,u){t(rc(e,a,l,u))},vendorSearchAutoCompleteActions:{onAutoCompleteInputChange:(e,a)=>{e.trim().length>=2?t(En({searchString:e,entityType:a,searchOrigin:"common"})):e.trim().length===0&&t(it("common"))},onCancelAutoComplete:()=>{t(it("common"))}},onPostJESchedule(e,a){t(lc({scheduledJournalEntryID:e,jeScheduleTransactionKey:a}))},clearJeScheduleLocalData(){t(ic())},onViewTransaction(e){if(n.tenantEmailDomain==null)return;const a=Vi(e,n.tenantEmailDomain),l=Z(n.location.state?.pathnameStackToGoBack,`${n.location.pathname}${n.location.search}`);n.navigate(a,{state:{pathnameStackToGoBack:l,message:"expenseAutomation",origin:"je_schedules"}})},onSearchBaseTransaction(e){t(cc({query:e,scheduleType:I==="prepaid_expenses"?"prepaid_expenses":"fixed_assets"}))},onNewScheduleFormChange(e,a){const l=_t(e)==="prepaid_expenses"?"prepaid_expenses":"fixed_assets";t(wn({scheduleType:l,localData:a}))},onOpenMatchNewModal(){t(sc())},onIgnoreMatchSuggestion(e,a,l){t(oc(e,a,l))},onCloseMatchNewModal(){t(ac())},onClearMatchNewModal(){t(nc())},onSearchMatchTransactions(e,a){t(tc(e,a))},onSearchMatchAccruals(e,a){t(ec(e,a))},onMatchAndReverse(e){t(Zs(e.transactionId,e.transactionIntegrationId,e.transactionType,e.lineIds,e.transactionSyncToken,e.accrualIds,!0))},onUpdateActualMatchingUIState(e){t(Qs(e))},onUndoReversal(e,a){t(Ks(e,a))},onSaveSchedule(e,a){const l=e==="prepaid_expenses"?"prepaid_expenses":"fixed_assets",{allAccountList:u,allDepreciationAccountList:C}=i.jeSchedules,A=a.selectedAccount!=null?u.find((j=>j.qboId===a.selectedAccount)):void 0,D=a.selectedAccumulatedDepreciationCategory!=null?C.find((j=>j.qboId===a.selectedAccumulatedDepreciationCategory)):void 0;t(wn({scheduleType:l,localData:{...a,selectedAccount:A?.accountId,selectedAccumulatedDepreciationCategory:D?.accountId}})),t(Xs({scheduleType:l}))},onCreateAccruedSchedule(e){const a="accrued_expenses";t(qs()),t(Js()),t(Ys({scheduleType:a,localData:e,selectedJeScheduleDetailId:void 0})),t(Hs({scheduleType:a})),t(Ws(a,void 0))},onCreateOneTimeAccrual(e){t(Ns(e))},handleJeScheduleClick:(e,a,l)=>{if((function(C,A){return A!=="accrued_expenses"})(0,l)&&t(ea({selectedJEScheduleKey:a})),T!=null&&fa(l))return void T(e,l,a);const u=Z(r.state?.pathnameStackToGoBack,r.pathname);b(`../../vendors/schedules/${l}/details/${e}`,{state:{pathnameStackToGoBack:u,message:"expenseAutomation",origin:"je_schedules"}})},onOneTimeAccrualFeedback:(e,a,l,u)=>{t(a!=="revert"?Gs(e,l,u):Ls(e,l,u))},onOneTimeAccrualClick:e=>{if(T!=null)return void T(e,"one_time_accrual");const a=Z(r.state?.pathnameStackToGoBack,r.pathname);b(`../../vendors/schedules/one_time_accrual/details/${e}`,{state:{pathnameStackToGoBack:a,message:"expenseAutomation",origin:"je_schedules"}})},onOpenMatch:e=>{n.openMatchPanel?.(e)},onOpenBill(e){if(n.tenantEmailDomain==null)return;const a=xi(e,n.tenantEmailDomain,n.location);n.navigate(a.pathname,{state:a.state})},improveMonthEndInsightsUsingZeniGPTClick:e=>{k!=null&&t(zs(e,k.companyId,k.tenantId))},onClickCustomerRequest:P,setActivityLogTransactionId:p,onCloseAllThreadsSection:()=>{},onCloseFileAttachmentSnackBar:()=>{t($s())},onOpenFileAttachmentSnackBar:()=>{t(wt({messageSection:"cockpit_month_end_email_attachment_upload",messageText:"failed",type:"error",showStatusIcon:!0}))},onRemoveFileAttachment:e=>{t(js(e))},onUpdateFileAttachment:e=>{t(Vs({files:e}))},previewMonthEndReport:(e,a,l,u,C)=>{k!=null&&t(Rn(e,k.companyId,a,!0,l,u,{agentInsightEdits:C,tenantId:k.tenantId}))},saveMonthEndReport:(e,a,l,u,C)=>{k!=null&&t(Rn(e,k.companyId,a,!1,l,u,{agentInsightEdits:C,tenantId:k.tenantId}))},onEditMonthEndInsightsClick:F,sendMonthEndReport:e=>{const a=r.state?.referrer,{selectedPeriod:l,auditSummary:u}=i;k!=null&&u?.auditScorePercentage!=null&&(t(Us(k.companyId,e,k.tenantId)),ee.trackInsightsEmailPage(l.month,l.year,!1,"draft",u.auditScorePercentage,ca().format(ga.analytics.MMMDDCommaYYYYformat),a??null))},onTransactionCategorizationRowClick:(e,a)=>{const l=i.transactionView.uiState.searchString??"",u=i.transactionView.transactions,C=u.findIndex((j=>j.id===e)),A=l.length>0?{resultPosition:C>=0?C+1:void 0,resultsCount:u.length,searchTerm:l}:void 0;if(n.openTransactionPanel)return void n.openTransactionPanel(e,a,A);const D=Z(r.state?.pathnameStackToGoBack,r.pathname);b(`../../transaction/${a}/${e}`,{state:{pathnameStackToGoBack:D,message:"expenseAutomation",origin:"transaction_categorization",searchContext:A}})},setLocalDataForCategoryAndClass:(e,a,l,u,C,A,D,j,W,X,se,ne)=>{t(Os(e,a,l,u,E,C,A,D,j,W,X,se,ne))},onCancelAutoComplete:()=>{t(it("common"))},updateExpenseAutomationReconListScrollPosition:e=>{t(An({scrollPosition:e}))},onUpdateTab:e=>{n.closeSidePanel?.(),L!=null&&S!=null&&(t(Pe(e,{start:S,end:L},!1,!1)),t(Bs(e)))},onUpdateTransactionCategorizationCompletedSubTab:e=>{n.closeSidePanel?.(),L!=null&&S!=null&&(t(Ms(e)),t(Pe("autoCategorized",{start:S,end:L},!1,!1)))},onTransactionGroupChange:e=>{n.closeSidePanel?.(),L!=null&&S!=null&&(t(_s(e)),t(Pe(n.expenseAutomationViewSelector.selectedTransactionCategorizationTab,{start:S,end:L},!1,!1)))},onUpdateTransactionCategorizationUIState:(e,a)=>{t(Pt({selectedTab:e,uiState:a})),L!=null&&S!=null&&t(Pe(e,{start:S,end:L},!1,!1,a.searchString,null,!0))},onUpdateScrollYOffSetTransactionCategorizationUIState:(e,a)=>{t(Pt({selectedTab:e,uiState:a}))},onFetchTransactionCategorizationList:(e,a,l,u,C,A)=>{L!=null&&S!=null&&t(Pe(e,{start:S,end:L},!0,l,a,u,C,A))},resetTransactionCategorizationLocalData:(e,a,l,u,C,A,D)=>{t(Fs(e,a,l,u,D??null,C,A,!1)),vi(t,a.map(String))},updateSelectedVendorForTransaction:(e,a,l,u,C)=>{t(xn({selectedTab:e,transactionId:a,lineId:l,selectedTransaction:u,uncategorizedAccounts:E,updatedVendor:C,isAccountingClassesEnabled:m}))},onSaveUpdateTransactionCategorization:(e,a,l)=>{const u=r.state?.referrer;e==="autoCategorized"?ee.trackTransactionsAutoCategorisedPage(d.month,d.year,i.transactionView.totalCountByTab.autoCategorized,a.length,!1,u??null):ee.trackTransactionsReviewPage(d.month,d.year,i.transactionView.totalCountByTab.review,a.length,!1,u??null),t(Ds(e,a,l)),Pi(a.map(String))},onUpdateSelectedCheckboxTransactionIds:(e,a)=>{t(ws({selectedTab:e,transactionIds:a}))},onFetchRecommendationsForEntityCategorizationWithCustomer:(e,a,l,u,C,A)=>{const{transactionId:D,transaction:j,lineIds:W}=a;A!=null&&t(xs({transactionId:D,customerUpdates:A})),t(Rs({selectedTab:u,transactionId:D.id,lineId:W[0],selectedTransaction:j,uncategorizedAccounts:E,updatedCustomer:A,selectedEntity:C,isAccountingClassesEnabled:m})),C!=null&&t(Ft({entity:C,amount:e,transactionDetails:a,flowType:"categorization",selectedTab:u,isFetchCOT:f}))},onFetchRecommendationsForEntityCategorization:(e,a,l,u,C,A)=>{const{transactionId:D,transaction:j,lineIds:W}=a;A!=null&&(t(vs({transactionId:D,vendorUpdates:{name:A.name,id:A.id?A.id:void 0}})),t(Es({vendorId:A.id?A.id:void 0,localData:{vendorName:A.name,vendorId:A.id?A.id:void 0}}))),A?.id?(t(xn({selectedTab:u,transactionId:D.id,lineId:W[0],selectedTransaction:j,uncategorizedAccounts:E,updatedVendor:A,selectedEntity:C,isAccountingClassesEnabled:m})),C!=null&&t(Ft({entity:C,amount:e,transactionDetails:a,flowType:"categorization",selectedTab:u,isFetchCOT:f}))):t(As({selectedTab:u,transactionId:D.id,lineId:W[0]}))},fetchFluxViewOnScroll:(e,a)=>{t(dt(e,!0,!1,a,!1,!0))},onFetchFluxViewList:()=>{t(dt(d,!0,!1,null,!1,!1))},markAsReview:(e,a,l,u)=>{ee.trackFluxAnalysisReviewed(l.month,l.year,u??!1,e),t(Ps(a,e,l,u??!1))},onUpdateFluxAnalysisUIState:e=>{t(ys(e))},updateOperatingExpensesIdsForReview:e=>{t(Ts({operatingExpenseIds:e,selectedPeriod:d}))},redirectToVendorDetailPage:e=>{if(n.tenantEmailDomain!=null){const a=Ui(e.id,e.qboId,n.tenantEmailDomain),l=Z(n.location.state?.pathnameStackToGoBack,n.location.pathname);n.navigate(a,{state:{pathnameStackToGoBack:l,message:"expenseAutomation",referrer:"Vendor List",origin:"flux_analysis"}})}},updateSectionIdsForReview:e=>{t(bs({sectionId:e,selectedPeriod:d}))},onFetchReimbursementView:(e,a,l)=>{t(dt(e,!0,!1,a,!0,l))},onReviewClicked:e=>{t(ue(d,e))},onViewReportClicked:e=>{const a=n.tenantEmailDomain,l=g,u=`${d.month}-${d.year}`;if(a==null||l==null)return;const C=Z(r.state?.pathnameStackToGoBack,r.pathname),A=ma({tenantEmailDomain:a,selectedTab:l,accountId:e,period:u});A!=null&&b(A,{state:{pathnameStackToGoBack:C}})},setOpenDrawerClicked:e=>{t(mt({selectedDrawerAccountId:e}))},onFetchLinkTokenClick:(e,a)=>{t(Kn("expense_automation_reconcile",e,a))},onEstablishConnectionClick:(e,a)=>{const l=k?.companyId;l!=null&&(t(Qn(e,l,"expense_automation_reconcile",void 0,"link_account_no_microdeposit",a)),t(Zn({accountId:a,connectionInProgress:!0})))},onAddStatementClick:e=>{t(mt({selectedDrawerAccountId:e})),t(lt({accountId:e,selectedPeriod:d,localData:{accountSource:"bank_statement"}})),t(rt({statementUploadChosen:!0}))},onReloadReconciliationListPage:()=>{t(ue(d,void 0,!0,!1))},onUpdateReconcileTabLocalData:e=>{t(ks({selectedTransactionIds:e}))},onReconTabColumnSortConfigChanged:(e,a)=>{t(Cs({sortKey:e,sortOrder:a}))},onReconReviewTabColumnSortConfigChanged:(e,a)=>{t(Is({sortKey:e,sortOrder:a}))},onReconTabUpdate:e=>{n.closeSidePanel?.(),t(gs({selectedTab:e}))},updateReconReviewTabLocalData:(e,a,l)=>{const u=e.vendor?.id;l&&u!=null&&t(Ss(u)),t(fs({data:e,transactionId:a}))},onReconMatchedTransactionClick:e=>{if(n.openTransactionPanel)return void n.openTransactionPanel(e,Dt("bill"));const a=Z(r.state?.pathnameStackToGoBack,r.pathname);b(`../../transaction/bill/${e}`,{state:{pathnameStackToGoBack:a,message:"expenseAutomation",origin:"reconciliation"}})},onReloadPage:()=>{window.location.reload()},onBackClick:()=>{b(-1)},onReconListPageScroll:e=>{t(An({scrollPosition:e}))},onVendorAutoCompleteInputChange:e=>{e.trim().length>=2?t(En({searchString:e,searchOrigin:"common"})):e.trim().length===0&&t(it("common"))},onReconNodeCollapseToggled:(e,a)=>{t(hs({nodeId:e,collapsed:a}))},updateSectionCollapseStatus:()=>{},onExcludeAccountFromReconciliation:e=>{t(Wn({accountId:e}))},onIncludeAccountIntoReconciliation:e=>{t(Xn({accountId:e}))}}}),((t,n,h)=>{const{isMissingReceiptsBulkUploadEnabled:m,...f}=h;return(function(c,r,R){return{...c,...r,...R,onUploadTransactionReceipt:(i,k,I,E,b)=>{r.onUploadTransactionReceipt(i,k,I,E,b,c.authParams)}}})(t,n,f)}))(hi(Si)),At="newScheduleMode",xt="newScheduleType",sl=Ki(wi((function(t){const n=t.displayName??t.name??"Component",h=ia.memo(t),m=f=>{const c=ge(),r=(function(){const T=ge(),p=_((d=>ve(d).reconciliation.selectedDrawerAccountId));return{isOpen:p!=null,selectedAccountId:p,openPanel:o.useCallback((d=>{T(mt({selectedDrawerAccountId:d}))}),[T]),closePanel:o.useCallback((()=>{T(mt({selectedDrawerAccountId:void 0}))}),[T])}})(),R=_((T=>ve(T).reconciliation)),i=_((T=>Ae(T))),k=o.useCallback(((T,p)=>{c(Kn("expense_automation_reconcile",T,p))}),[c]),I=o.useCallback(((T,p)=>{const d=i?.companyId;d!=null&&(c(Qn(T,d,"expense_automation_reconcile",void 0,"link_account_no_microdeposit",p)),c(Zn({accountId:p,connectionInProgress:!0})))}),[c,i?.companyId]),E=o.useMemo((()=>{if(r.isOpen&&r.selectedAccountId!=null)return y.jsx(qi,{reconciliation:R,selectedDrawerAccountId:r.selectedAccountId,onClose:r.closePanel,onFetchLinkTokenClick:k,onEstablishConnectionClick:I})}),[r.isOpen,r.selectedAccountId,r.closePanel,R,k,I]),b=o.useMemo((()=>({reconPanelContent:E,reconSidePanelIsOpen:r.isOpen,closeReconSidePanel:r.closePanel})),[E,r.isOpen,r.closePanel]),{useFeatureGate:P}=ht(),{isFeatureEnabled:F}=P(Q.isReconV3Enabled),B=o.useContext(Un),z=o.useMemo((()=>r.isOpen?F===!0?{selectedItemId:r.selectedAccountId}:{closePanel:r.closePanel,selectedItemId:r.selectedAccountId}:B),[r.isOpen,r.closePanel,r.selectedAccountId,B,F]);return y.jsx(Un.Provider,{value:z,children:y.jsx(h,{...f,...b})})};return m.displayName=`withReconSidePanel(${n})`,m})(Ni((({closeMatchSidePanel:t,closeReconSidePanel:n,closeSidePanel:h,matchPanelContent:m,isMatchPanelOpen:f,matchPanelMatchId:c,openMatchPanel:r,openTransactionPanel:R,panelContent:i,reconPanelContent:k,reconSidePanelIsOpen:I,isSchedulePanelOpen:E,closeSchedulePanel:b,openSchedulePanel:P,schedulePanelContent:F,schedulePendingDiscardConfirmation:B,sidePanelIsFullView:z,sidePanelIsOpen:T})=>{const{isAiCfoOpen:p,setIsAiCfoOpen:d}=ei(),g=ti(),{isOpen:U}=ni(),w=Ue(),V=Ie(),S=ge(),{isAiCfoAccessEnabled:L,onAskAiCfoClick:e}=Vt({mobileExploreReferrer:"Transaction categorization"}),a=o.useCallback((()=>{f===!0&&t?.(),T===!0&&z!==!0&&h?.()}),[t,h,f,z,T]),l=_(Go);o.useEffect((()=>{l!=null&&(c===l&&a(),S(No()))}),[l,a,S,c]);const u=_(qo);o.useEffect((()=>{u!=null&&(c===u&&a(),S(Jo()))}),[u,a,S,c]);const{areTenantIdsInSync:C}=la(),A=el(),D=ai(),[j,W]=o.useState(!1),[X,se]=Yn(),ne=o.useCallback((s=>{se((M=>{const Y=new URLSearchParams(M);return s==null?(Y.delete(At),Y.delete(xt),Y):(Y.set(At,s.scheduleDetailsMode),Y.set(xt,s.scheduleType),Y)}),{replace:!0})}),[se]),[v,O]=o.useState(void 0),H=o.useCallback(((s,M,Y)=>{const J=_t(s);O(J),ne({scheduleDetailsMode:M,scheduleType:s}),S(yn({scheduleType:J==="prepaid_expenses"?"prepaid_expenses":"fixed_assets",shouldResetEnteredData:Y}))}),[S,ne]),K=o.useMemo((()=>{const s=X.get(At),M=X.get(xt);return s!=null&&M!=null?{scheduleDetailsMode:s,scheduleType:M}:void 0}),[X]),Ce=o.useCallback((s=>{ne(s),s!=null&&S(yn({scheduleType:_t(s.scheduleType)==="prepaid_expenses"?"prepaid_expenses":"fixed_assets",shouldResetEnteredData:!0}))}),[S,ne]),xe=_((s=>Tn(s))),$=_((s=>Ae(s))),[ke,me]=o.useState(!1),[pe,Re]=o.useState(!1),[Xe,Ke]=o.useState([]),[ce,he]=o.useState(null),ie=o.useCallback((()=>{he(null)}),[]),je=ce?.contentType==="activity"?ce.detail.transactionId:void 0,x=o.useCallback((s=>{s!=null?(p&&d(!1),g(),a(),he({contentType:"activity",detail:{transactionId:s}})):he((M=>M?.contentType==="activity"?null:M))}),[a,p,g,d]),te=o.useCallback((s=>{p&&d(!1),g(),a(),he({contentType:"transfer",detail:s})}),[a,p,g,d]),oe=o.useCallback((()=>{g(),ie(),a(),e()}),[a,ie,e,g]),we=o.useRef(p);o.useEffect((()=>{p===!0&&we.current===!1&&(g(),ie(),a()),we.current=p}),[a,ie,p,g]);const De=o.useRef(U);o.useEffect((()=>{U===!0&&De.current===!1&&(p&&d(!1),ie(),f===!0&&t?.(),T===!0&&z!==!0&&h?.()),De.current=U}),[ie,t,h,U,p,f,d,z,T]);const Qe=T===!0&&z!==!0||f===!0,$t=o.useRef(Qe);o.useEffect((()=>{Qe&&!$t.current&&(p&&d(!1),g(),ie()),$t.current=Qe}),[ie,p,Qe,g,d]);const[zt,Ia]=o.useState(!1),Lt=o.useRef(!1),{selectedTab:Ca}=Ee(),{tenantEmailDomain:$e}=Ee(),[St,Gt]=o.useState(V.state?.message==="comingFromTransactionDetail"),Nt=V.state?.message==="comingFromOverview",qt=oi(),ft=We.getSignedInUser(),{useFeatureGate:de}=ht(),{isFeatureEnabled:Jt}=de(Q.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:ze}=de(Q.isMissingReceiptsBulkUploadEnabled),{isFeatureEnabled:gt}=de(Q.isTransactionActivityEnabled),{isFeatureEnabled:be}=de(Q.isAccrualEnabled),{isFeatureEnabled:Yt}=de(Q.isCreateTransferEntryFromExpenseEnabled),{isFeatureEnabled:ka}=de(Q.isCreateTransactionEnabled),ba=_((s=>Yo(s))),{isFeatureEnabled:Ta}=de(Q.isProjectsTransactionsEnabled),{isFeatureEnabled:ya}=de(Q.isReconV3Enabled),{isFeatureEnabled:Pa}=de(Q.isReconReportEnabled),va=o.useCallback((s=>{const M=Dt(s.transactionType??(s.view==="reconciliation"?"bill":"expense")),Y=Z(V.state?.pathnameStackToGoBack,V.pathname),J=new URLSearchParams({view:"full"});s.threadId!=null&&J.set("thread_id",s.threadId),s.entityType!=null&&J.set("entity_type",s.entityType),w(`/${$e}/transaction/${encodeURIComponent(M)}/${s.transactionId??s.entityId}?${J.toString()}`,{state:{pathnameStackToGoBack:Y,message:"expenseAutomation"}})}),[w,$e,V.state,V.pathname]),Ea=_((s=>Ho(s,"common"))),q=_((s=>ve(s))),{categoryOptions:Aa,paymentAccountNames:xa}=_((s=>Wo(s.accountState))),Ra=_((s=>Xo(s.classState))),{monthEndCloseChecksView:ae,currentSelectedView:G,selectedPeriod:N,selectedTransactionCategorizationTab:It,currentSelectedViewBackgroundRefreshFetchState:wa,currentSelectedViewFetchState:Se,jeSchedules:Ct,reconciliation:Ht}=q;ki(G==="transaction_categorization");const Da=q.transactionView.saveStatus.fetchState,Ze=q.transactionView.transactions,Wt=o.useRef(Ze);Wt.current=Ze;const Xt=_((s=>s.expenseAutomationTransactionsViewState?.transactionCategorizationView)),Kt=_((s=>s.expenseAutomationTransactionsViewState?.selectedTransactionCategorizationTab)),Qt=o.useRef(Xt);Qt.current=Xt;const Zt=o.useRef(Kt);Zt.current=Kt;const et=_((s=>{const M=s.expenseAutomationTransactionsViewState?.selectedTransactionCategorizationTab;return M!=null?s.expenseAutomationTransactionsViewState?.transactionCategorizationView?.[M]?.filters:void 0})),en=o.useRef("");o.useEffect((()=>{if(G!=="transaction_categorization")return;const s=q.transactionView.uiState.searchString??"";if(Se.fetchState!=="Completed"||s.length===0||s===en.current)return;en.current=s;const M=et!=null?si(et):0,Y=et?.categories.filter((J=>J.values.length>0&&String(J.values[0]??"").trim()!=="")).map((J=>`${J.field}:${J.values.join(",")}`))??[];ee.trackAiCloseTransactionSearch({filtersApplied:Y,hasResults:Ze.length>0,isFiltered:M>0,resultsCount:Ze.length,searchTerm:s,searchType:"free_text"})}),[G,Se.fetchState,q.transactionView.uiState.searchString,q.transactionView.transactions,et]);const fe=bi(Da,(()=>{const s=[],M=Zt.current,Y=Qt.current,J=Y!=null&&M!=null?Y[M]:void 0;if(J?.transactionReviewLocalDataById!=null)for(const _e of Object.values(J.transactionReviewLocalDataById)){const le=_e?.transactionReviewLocalData?.lineItemById;if(le!=null)for(const kt of Object.values(le)){const Je=kt?.account;Je?.accountId!=null&&s.push(Je.accountId)}}const Fe=Wt.current;for(const _e of Fe)for(const le of _e.lines??[])"account"in le&&le.account?.accountId!=null&&s.push(le.account.accountId);return s}));o.useEffect((()=>{G==="transaction_categorization"&&T!==!0||x(void 0)}),[G,x,T]),o.useEffect((()=>{I===!0&&n?.()}),[G,Ht.selectedAccountId]);const Fa=q.transactionView.selectedTransactionCategorizationCompletedSubTab,_a=q.transactionView.selectedTransactionGroup,tt=`${It}|${Fa}|${_a}`,nt=o.useRef(null),tn=o.useRef(null);o.useEffect((()=>{nt.current!==null?nt.current!==tt&&(nt.current=tt,G==="transaction_categorization"&&ie()):nt.current=tt}),[ie,G,tt]);const Ma=_((s=>je==null?void 0:Ko(s.transactionState,je))),Te=Ma?.qboId,nn=_((s=>Te==null?void 0:Qo(s,Te)));o.useEffect((()=>{Te!=null&&S(Zo(Te))}),[S,Te]);const{createTransferEntryStatus:an,creditCardTransferAccountsList:on,transferAccounts:sn}=q.transactionView,cn=o.useCallback((s=>Ti(S,s)),[S]),ln=o.useMemo((()=>G!=="transaction_categorization"||ce==null?null:ce.contentType==="activity"?gt===!0?y.jsx(ci,{activityLogView:nn,qboId:Te,onClose:()=>he(null),selectedTransactionId:ce.detail.transactionId,isQuickViewCardStyle:!0},String(ce.detail.transactionId)):null:ce.contentType==="transfer"?y.jsx(ii,{createTransferEntryStatus:an,creditCardTransferAccountsList:on,transaction:ce.detail,transferAccounts:sn,onClose:()=>he(null),onCreateTransfer:cn,isQuickViewCardStyle:!0},String(ce.detail.transactionId)):null),[G,ce,gt,nn,Te,an,on,sn,cn]),Ba=ln!=null,{selectedAccountId:Le}=Ht,rn=ut(Ct.accountSettingsView.saveState.fetchState),Oa=_((s=>es(s.accountState,s.accountListState,"accountList"))),Ua=_((s=>ts(s))),Ge=pa(Ca)??G,Va=_((s=>s.entityAutoCompleteState.autoCompleteText.common));if(ra({isDataReady:Se.fetchState==="Completed"}),ft==null)throw Error("Can't access expense automation screen without signing in...");const dn=ta(N),Ne=pt(dn.start),qe=pt(dn.end);if(Ne==null||qe==null)throw Error(`Invalid start - ${Ne} and end - ${qe} period from given ${N}`);const ja=o.useCallback((()=>{me(!1)}),[]),$a=o.useCallback((()=>{Re(!0)}),[]),za=o.useCallback((s=>{Ke(s),Re(!1)}),[]),La=o.useCallback((()=>{Ke([])}),[]),at=q.missingReceipts.bulkUpload.phase,un=q.missingReceipts.bulkUpload.currentBatchId;o.useEffect((()=>{ze===!0&&G==="missing_receipts"&&at==="matching"&&un!=null&&S(na({cacheOverride:!0}))}),[ze,G,at,un,S]);const mn=ft?.userId,Ga=N.month,Na=N.year,pn=$?.tenantId;o.useEffect((()=>{G==="missing_receipts"&&ze!==!1&&at==="idle"&&mn!=null&&pn!=null&&S(ns())}),[G,ze,at,mn,pn,Ga,Na,S]),o.useEffect((()=>{xe.newVendorState?.vendorDetailLocalData?.vendorName!=null?W(!0):W(!1)}),[xe.newVendorState?.vendorDetailLocalData?.vendorName]),o.useEffect((()=>{Ge!=null&&G!==Ge&&S(aa(Ge))}),[Ge]),o.useEffect((()=>{zt===!1&&Se.fetchState==="Completed"&&C&&(Ia(!0),S(Pn(!1,!1,be===!0)))}),[zt,Se,C,be]),o.useEffect((()=>{const s={month:N.month,year:N.year},M=tn.current;tn.current=s,M===null||M.month===s.month&&M.year===s.year||!Nt&&C&&(S(Pn(!1,!1,be===!0)),S(ue(N,Le,!1,!1)))}),[N.month,N.year,C,be]);const ot=o.useCallback(((s=!1,M=!1)=>{const Y={start:Ne,end:qe};switch(G){case"transaction_categorization":S(Pe(It,Y,s,!St,void 0,void 0,M)),Gt(!1);break;case"flux_analysis":S(dt(N,s,M,null));break;case"month_end_insights":if(M===!1){const J=new Date(N.year,N.month,0),Fe=os(J.toDateString()).format(ga.analytics.YYYYDashMMDashDDFormat);S(ss(!0,$.companyId,$.tenantId,Fe)),S(cs($.companyId,$.tenantId))}break;case"je_schedules":S(as(Y,M,be===!0));break;case"missing_receipts":S(oa(Y,{amount:75,currencyCode:"USD",currencySymbol:"$"},s,M));break;default:S(ue(N,Le,s,M))}}),[G,Ne,qe,$.companyId,$.tenantId,It,N,Le,St,Gt,be]),qa=o.useCallback((()=>{ot(!0,!0)}),[ot]);o.useEffect((()=>{G===Ge&&Se.fetchState==="Not-Started"&&C&&ot(!0)}),[Se,Ne,qe,$.companyId,$.tenantId,C]),o.useEffect((()=>{Nt||St||Lt.current||wa.fetchState==="In-Progress"||Se.fetchState!=="Completed"||(Lt.current=!0,ot(!0,!0))}),[]),o.useEffect((()=>{ae.fetchState!=="In-Progress"&&ae.fetchState!=="Completed"&&ae.fetchState!=="Error"&&$?.tenantId!=null&&S(Oe({tenantId:$.tenantId,period:N,refreshViewInBackground:!1}))}),[ae.fetchState,$?.tenantId]),o.useEffect((()=>{ae.fetchState!=="Completed"||!C||(ae.monthEndCloseChecks?.monthEndCloseCheckList.some((s=>s.id==="reconciliation"))??!1)&&q.reconciliation.fetchStatus.fetchState==="Not-Started"&&S(ue(N,void 0,!1,!1))}),[ae.fetchState,C,N.month,N.year,q.reconciliation.fetchStatus.fetchState,S]),o.useEffect((()=>{q.monthEndInsights?.previewMonthEndReportStatus?.fetchState==="Completed"?me(!0):me(!1)}),[q.monthEndInsights?.previewMonthEndReportStatus?.fetchState]),o.useEffect((()=>{q.monthEndInsights?.sendMonthEndReportStatus?.fetchState==="Completed"&&C&&(S(Oe({tenantId:$.tenantId,period:N,refreshViewInBackground:!0})),S(is({companyId:$.companyId})),w("../"))}),[q.monthEndInsights?.sendMonthEndReportStatus?.fetchState,$.tenantId,N,$.companyId,C]),o.useEffect((()=>{const s=setInterval((()=>{ae.fetchState!=="In-Progress"&&ae.fetchState==="Completed"&&S(Oe({tenantId:$.tenantId,period:N,refreshViewInBackground:!0}))}),3e5);return()=>clearInterval(s)}),[ae.fetchState,$.tenantId,N,S]),o.useEffect((()=>{const s=setInterval((()=>{G==="reconciliation"&&Le==null&&q.reconciliation.fetchStatus.fetchState==="Completed"&&q.reconciliation.refreshStatus.fetchState!=="In-Progress"&&S(ue(N,void 0,!0,!0))}),3e5);return()=>clearInterval(s)}),[G,S,q.reconciliation.fetchStatus.fetchState,q.reconciliation.refreshStatus.fetchState,ue,Le,N]);const Ja=Vn(),{isFeatureEnabled:Ya}=de(Q.isRecommendationFeedbackEnabled),hn=li(),{onRecommendationSelection:Sn,popup:Ha}=yi({isEnabled:Ya}),Wa=o.useMemo((()=>({...hn,onRecommendationSelection:Sn})),[hn,Sn]);o.useEffect((()=>{const s=(ae.monthEndCloseChecks?.monthEndCloseCheckList.find((M=>M.id==="month_end_insights"))?.isDisabled??!1)&&!Jt;G!=="month_end_insights"||!s&&ae.monthEndCloseChecks?.reportEmailSentDate==null||w("../")}),[G,ae.monthEndCloseChecks]);const Xa=I===!0?k:i,Ka=I===!0||T===!0,Qa=I===!0?n:h,Za=I!==!0&&z;o.useEffect((()=>{rn==="In-Progress"&&Ct.accountSettingsView.saveState.fetchState==="Completed"&&S(vn())}),[rn,Ct.accountSettingsView.saveState.fetchState,vn]);const{transactionId:fn,onSaveVendor:eo,onSaveSuccess:to,onCancel:no,vendorViewDetails:ao}=(({expenseAutomationViewSelector:s,closeDrawerHandler:M,currentSelectedView:Y})=>{const J=ge();let Fe,_e,le;const kt=Vn(),Je=s.transactionView;let gn=()=>{};const{transactions:oo,selectedTransactionId:Me,selectedTransactionLineId:st,transactionLocalData:so}=Je;if(Y==="transaction_categorization"){const bt=so.find((ye=>ye.transactionId===Me)),re=oo.find((ye=>ye.id===Me)),In=st!=null?bt?.transactionReviewLocalData?.lineItemById[st]:void 0,Cn=In?.account;_e=In?.class?.classId,Fe=["Uncategorized Income","Uncategorized Expense"].includes(Cn?.accountName??"")?void 0:Cn?.accountId;const io=Bi(Me,re?.typeOfTransaction);re!=null&&io&&(le={id:Me,type:Dt(re.typeOfTransaction)}),gn=()=>{if(Me!=null&&st!=null&&re!=null){const ye=Je.transactionLocalData.find((ct=>ct.transactionId===Me))?.transactionReviewLocalData;if(ye!=null&&re.lines!=null&&re.lines.length>0){const ct=ye.lineItemById[st];let Tt=ye.selectedEntity;if(Lo(re)||(Tt=ct.selectedEntityLine),Tt!=null){const lo=Tt,ro={transactionId:{id:re.id,type:re.type},transaction:re,lineIds:re.lines.map((uo=>uo.id))??[]};J(Ft({entity:lo,amount:ct.amount.amount,transactionDetails:ro,flowType:"categorization",selectedTab:s.selectedTransactionCategorizationTab,isFetchCOT:kt}))}}}}}const co=_((bt=>Tn(bt,void 0,Fe,_e)));return{transactionId:le,onSaveVendor:()=>{J(zo(le,void 0,!1,!0))},onSaveSuccess:gn,onCancel:()=>{le!=null&&J(Vo({transactionId:le})),J(jo()),J($o()),M()},vendorViewDetails:co}})({expenseAutomationViewSelector:q,closeDrawerHandler:()=>{W(!1)},currentSelectedView:G});return qt?.loggedInUserRoleMap==null?ae.fetchState==="Error"?y.jsx(ri,{onGoHome:()=>w("../",{replace:!0}),onReload:()=>window.location.reload()}):y.jsx(da,{fetchState:"In-Progress"}):y.jsxs(y.Fragment,{children:[y.jsx(ji,{isOpen:pe,drawerLeftMargin:new di(0,0,300,650),onClose:()=>{Re(!1)},children:y.jsx(cl,{onClick:s=>s.stopPropagation(),children:y.jsx(Qi,{companyId:$.companyId,closeCustomerRequestDrawer:()=>Re(!1),addCustomerRequest:za,resetCustomerRequest:La})})}),fn!=null&&j&&y.jsx(Ei,{isOpen:j,transactionId:fn,onSaveVendor:eo,onSaveSuccess:to,onCancel:no,vendorViewDetails:ao}),y.jsx(ui,{toolkit:Wa,children:y.jsx(ol,{events:[],eventCallback:(s,M,Y)=>{},navigate:w,location:V,themeState:D,categoryOptions:Aa,classesForFilters:Ra,accountsForFilters:xa,vendorSearchAutoCompleteData:{autoCompleteText:Va,entityAutoCompleteView:Ea},expenseAutomationViewSelector:q,isMissingReceiptsBulkUploadEnabled:ze,monthEndInsightsPreviewMode:ke,monthEndInsightsCustomerRequestData:Xe,isRealtimeInsightsFeatureEnabled:Jt,isCreateTransferEntryFromExpenseEnabled:Yt,isCreateTransactionEnabled:ka===!0&&qt?.connectionName!=="netsuite",isCreatingTransaction:ba.fetchState==="In-Progress",onCreateTransactionSelect:s=>{$e!=null&&(ee.trackCreateTransactionRequested({transactionType:s}),w(Oi($e,s),{state:{pathnameStackToGoBack:Z(mi(V.state),`${V.pathname}${V.search}`)}}))},isAccountingClassesEnabled:Ua,isProjectsTransactionsEnabled:Ta,isCOTEnabled:Ja,currentTenant:$,companyId:$.companyId,signedInUser:ft,isTransactionActivityEnabled:gt,isRightPanelOpen:Ba,rightSidePanel:ln,onOpenTransferRightPanel:Yt===!0?te:void 0,uncategorizedAccounts:Oa,newScheduleActiveType:v,isAccrualEnabled:be,newScheduleSelection:K,onNewScheduleSelectionChange:Ce,onScheduleTypeChange:H,onNewScheduleSaved:qa,onClickCustomerRequest:$a,handleEditClick:ja,tenantEmailDomain:$e,trackExpenseAutomationTabAnalytics:A,setActivityLogTransactionId:x,closeMatchSidePanel:t,closeSidePanel:Qa,openTransactionPanel:R,closeSchedulePanel:b,openSchedulePanel:P,openMatchPanel:r,sidePanelIsOpen:Ka,sidePanelIsFullView:Za,panelContent:Xa,isAiCfoAccessEnabled:L,onAskAiCfoClick:oe,isReconReportEnabled:Pa===!0,isReconV3Enabled:ya,onExpenseAutomationCommentingThreadClick:va,sidePanelListPercent:I===!0?66:void 0,isMatchPanelOpen:f,isSchedulePanelOpen:E,matchPanelContent:m,schedulePanelContent:F,schedulePendingDiscardConfirmation:B})}),Ha,fe.showPopup&&fe.popupType!=null&&y.jsx(pi,{popupType:fe.popupType,currencySymbol:fe.currencySymbol,accountId:fe.popupAccountId??"",accountName:fe.popupAccountName??"",onSubmit:fe.handleSubmit,onDismiss:fe.handleDismiss})]})}))))),cl=Ve(Jc)`
|
|
35
|
-
display: flex;
|
|
36
|
-
min-height: 100%;
|
|
37
|
-
flex-direction: column;
|
|
38
|
-
`;async function il({authParams:t,endpoint:n,report:h}){const m=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json","zeni-user-id":t.userId,"zeni-tenant-id":t.tenantId,"zeni-session-id":t.sessionId},body:JSON.stringify({report:h,locale_id:"en-US",timezone:sa()})});if(!m.ok)throw new Error(`Reconciliation report download failed: ${m.statusText}`);const f=(function(c,r){return c==null?r:/filename="?([^"]+)"?/i.exec(c)?.[1]??r})(m.headers.get("Content-Disposition"),"Reconciliation_Report.pdf");(function(c,r){const R=new Blob([c]),i=URL.createObjectURL(R),k=document.createElement("a");k.href=i,k.download=r,document.body.appendChild(k),k.click(),document.body.removeChild(k),URL.revokeObjectURL(i)})(await m.arrayBuffer(),f)}const ll=new Set(["reconciled"]),{dateFormat:{analytics:{MMSlashDDSlashYYYYFormat:Nn}}}=ua.getLocalizedStrings();function Be(t){return`${t.month}-${t.year}`}function qn(t){if(!Ot(t))return;const[n,h]=t.split("-"),m=Number(n),f=Number(h);return Number.isNaN(m)||Number.isNaN(f)?void 0:{month:Gc(m),year:f}}function Jn(t){const n=ca().set("year",t.year).set("month",t.month-1).startOf("month"),h=n.endOf("month");return`${n.format(Nn)} – ${h.format(Nn)}`}function rl(t){const n=t.split("_");if(n.length!==2||n[0]===""||n[1]==="")return;const h=Number(n[0]),m=Number(n[1]);if(Number.isInteger(h)!==!0||Number.isInteger(m)!==!0)return;const f=qc(h);return f!=null?{month:f,year:m}:void 0}function dl(){const{tenantEmailDomain:t,selectedTab:n}=Ee(),[h,m]=Yn(),f=Ue(),c=Ie(),r=ge(),R=Vt({mobileExploreReferrer:"reconciliation_report"}),[i,k]=o.useState("Not-Started"),I=h.get("accountId")??void 0,E=h.get("period")??void 0,b=_((v=>Ae(v))),P=_((v=>ve(v))),F=_((v=>Hn(v,b.tenantId))),B=_((v=>Mn(v))),z=P.reconciliation.fetchStatus.fetchState,T=P.reconciliation.accountReconciliationsByAccountID,p=P.reconciliation.monthYearPeriod,d=o.useMemo((()=>E!=null?qn(E):void 0),[E]),g=o.useMemo((()=>{const v=(F.monthEndCloseChecks?.historicMonthYear??[]).map((H=>({periodId:Be(H),label:Jn(H)})));if(d==null)return v;const O=Be(d);return v.some((H=>H.periodId===O))?v:[{periodId:O,label:Jn(d)},...v]}),[F.monthEndCloseChecks?.historicMonthYear,d]),U=d!=null&&p.month===d.month&&p.year===d.year,w=_((v=>{if(I==null)return;const O=ve(v).reconciliation.accountReconciliationsByAccountID[I];return O!=null?Mt(O):(function(H,K,Ce){if(Ce!=null)for(const xe of Object.keys(Ce)){const $=rl(xe);if($==null)continue;const ke=Ce[vt($)];if(ke==null||ke.reconciliationByAccountID[K]==null&&ke.accountIDs.includes(K)===!1)continue;const me=Nc(H,K,$);if(me==null)continue;const pe=me.account.accountName;if(pe!=null&&pe!=="")return Ci(pe,me.account.last4Digits)}})(v,I,Mn(v))})),V=o.useMemo((()=>{const v=Object.values(T).filter((O=>{return H=O.accountReconEntity.reconciliationStatus?.code,H!=null&&ll.has(H);var H})).map((O=>({accountId:O.accountReconEntity.account.accountId,label:Mt(O)})));return I==null||v.some((O=>O.accountId===I))?v:[{accountId:I,label:w??I},...v]}),[I,T,w]),S=o.useMemo((()=>{if(I!=null&&U===!0)return T[I]?.accountReconEntity.reconciliationId}),[I,T,U]),L=d!=null?vt(d):void 0,e=L!=null&&B[L]!=null&&B[L].accountIDs.length>0,a=d!=null&&(U!==!0||z==="In-Progress"||e!==!0&&z!=="Completed"&&z!=="Error"),l=a!==!0&&U===!0&&S==null&&(I!=null||V.length===0),u=_((v=>S!=null?Lc(v,S):void 0)),C=o.useCallback((v=>{const O=new URLSearchParams;v.accountId!=null&&v.accountId!==""&&O.set("accountId",v.accountId),Ot(v.period)&&O.set("period",v.period),m(O,{replace:!0})}),[m]);o.useEffect((()=>{const v=d??p;b.tenantId!=null&&v!=null&&F.fetchState!=="In-Progress"&&F.fetchState!=="Completed"&&F.fetchState!=="Error"&&r(Oe({tenantId:b.tenantId,period:v,refreshViewInBackground:!1}))}),[b.tenantId,r,F.fetchState,d,p]),o.useEffect((()=>{d!=null&&U!==!0&&r(Rt(b.tenantId,d))}),[b.tenantId,r,d,U]),o.useEffect((()=>{if(d==null||U!==!0||z==="In-Progress")return;const v=vt(d),O=B[v];!(O!=null&&O.accountIDs.length>0)&&r(ue(d,void 0,!0,!1))}),[r,z,B,d,U]),o.useEffect((()=>{d!=null&&U===!0&&V.length!==0&&I==null&&C({accountId:V[0].accountId,period:Be(d)})}),[I,V,d,C,U]),o.useEffect((()=>{S!=null&&r(Bn(S))}),[r,S]);const A=o.useCallback((()=>{const v=gi(c.state?.pathnameStackToGoBack),O=E??(p!=null?Be(p):void 0),H=jt({tenantEmailDomain:t,selectedTab:n,selectedPeriod:O})??`/${t??""}/month_end_close_checks/review`;f(v.poppedPathname??H,{state:{pathnameStackToGoBack:v.newStack}})}),[c.state,f,E,p,n,t]),D=o.useCallback((()=>{S!=null&&r(Bn(S,!0))}),[r,S]),j=o.useCallback((()=>{if(u?.report==null||i==="In-Progress")return;const v=We.getSignedInUser();k("In-Progress"),il({endpoint:`${Bt}/reconciliation_report`,report:u.report,authParams:{userId:v?.userId??"",sessionId:v?.zeniSessionId??"",tenantId:b.tenantId}}).then((()=>{k("Completed")})).catch((()=>{k("Error")}))}),[b.tenantId,i,u?.report]),W=o.useCallback((v=>{d!=null&&C({accountId:v,period:Be(d)})}),[d,C]),X=o.useCallback((v=>{const O=qn(v);O!=null&&(r(Rt(b.tenantId,O)),r(ue(O,void 0,!0,!1)),C({accountId:I,period:v}))}),[I,b.tenantId,r,C]);if(E==null||!Ot(E)||d==null)return y.jsx(Ut,{});const se=I??V[0]?.accountId??u?.report?.account.accountId??"",ne=a?"In-Progress":l===!0?"Completed":u?.fetchState??"Not-Started";return y.jsx(Ii,{accountOptions:V,periodOptions:g,selectedAccountId:se,selectedPeriodId:Be(d),fetchState:ne,isReportNotFound:l,report:u?.report,downloadState:i,onAccountChange:W,onPeriodChange:X,onBackClick:A,onDownloadClick:j,onRetry:D,onAskAiCfoClick:R.isAiCfoAccessEnabled===!0?R.onAskAiCfoClick:void 0})}function ul(){const t=Ie(),{selectedTab:n,tenantEmailDomain:h}=Ee(),m=_((r=>Ae(r))),f=_((r=>r.expenseAutomationViewState.selectedPeriodByTenantId[m.tenantId]));if(pa(n)==null)return y.jsx(Ut,{});const c=jt({tenantEmailDomain:h,selectedTab:n,selectedPeriod:f!=null?`${f.month}-${f.year}`:void 0});return c==null?null:y.jsx(ho,{to:c,replace:!0,state:t.state})}function zl(){return y.jsxs(po,{children:[y.jsx(Ye,{index:!0,element:y.jsx($i,{})}),y.jsx(Ye,{path:"/:selectedTab/report",element:y.jsx(dl,{})}),y.jsx(Ye,{path:"/:selectedTab/:selectedPeriod/*",element:y.jsx(sl,{})}),y.jsx(Ye,{path:"/:selectedTab",element:y.jsx(ul,{})}),y.jsx(Ye,{path:"*",element:y.jsx(Ut,{})})]})}export{zl as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CevUFagi.js";import{a as r}from"./sentry-BrSPpZKf.js";import{au as l,av as p,_ as m,a2 as c}from"./index-CtE8HnsY.js";import"./mui-CUsYvTMG.js";import f from"./NotFoundScreen-BkN7W6JR.js";import{h as u,g as b}from"./core-Bc2mnalE.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]="7c6445be-ab04-49d9-a804-e930ae7e3d93",e._sentryDebugIdIdentifier="sentry-dbid-7c6445be-ab04-49d9-a804-e930ae7e3d93")}catch{}})();const D=()=>{const e=u(),a=b(),t=r.useCallback((()=>{window.open("https://www.zeni.ai/demo/request","_blank")}),[]),d=r.useCallback((()=>{(()=>{const n=c(a.state?.pathnameStackToGoBack),i=n.poppedPathname??k();e(i,{state:{pathnameStackToGoBack:n.newStack}})})()}),[]),o=l(a.pathname);return o!=null?s.jsx(p,{menuItem:m(o),onDemoClick:t,onGoBack:d}):s.jsx(f,{})},k=(e=2)=>{let a="../";for(let t=0;t<e;t++)a=`${a}../`;return a};export{D as F};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-CevUFagi.js";import{a as g}from"./sentry-BrSPpZKf.js";import{u as F,g as O,h as _,t as w,j as l,N as T}from"./core-Bc2mnalE.js";import{z as r,G as M,N as P,k as A,R as N,X as R,Y,T as G}from"./index-CtE8HnsY.js";import{fI as K,UK as W,Vb as X,V2 as $,gl as q,gn as B,V7 as H,gY as J,dl as Q,Vc as Z,Vd as ee}from"./zeni-epic-state-VmxO3Mnv.js";import{u as te,n as ne}from"./mui-CUsYvTMG.js";import{u as se}from"./useDeviceId-7gkngZ73.js";import{f as ae}from"./analyticsHelper-BNh1_jfv.js";import{t as ie}from"./getLocaleForTenant-D-baUPRb.js";import"./recharts-BjkXpBn6.js";import"./analytics-D7SbUCRL.js";import"./plaid-Dxz6lSJz.js";import"./dnd-B0zyAl0s.js";import"./stripe-cKAAJElX.js";import"./lottie-Dhd_0CJG.js";import"./lexical-CCch0Fzo.js";import"./pdf-CuegwamZ.js";import"./utils-BKSIhN7N.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]="f91bc612-796e-4591-97df-33347bae8157",t._sentryDebugIdIdentifier="sentry-dbid-f91bc612-796e-4591-97df-33347bae8157")}catch{}})();const C=(t,a)=>t!=null&&t.length>0&&a==="magic_links";function Ce(){const t=F(),a=O(),m=_(),[k]=w(),n=k.get("token"),p=k.get("stytch_token_type"),f=r.getMagicLinkCodeVerifier(),i=se(),{otpChallenge:d,twoFAPhoneNumber:D,magicLinkEmail:c,verifyDeviceFetchState:x,resendVerifyDeviceOTPFetchState:z}=l((e=>e.tenantState)),S=l((e=>e.tenantState.fetchState)),y=l((e=>e.tenantState.activeTenantFetchState.fetchState)),I=l((e=>e.tenantState.signInState)),h=l((e=>e.tenantState.magicLinkSignInFetchState.fetchState)),s=l((e=>e.tenantState.loggedInUser)),o=l((e=>K(e))),b=l((e=>W(e))),E=r.getSignedInUser(),v=te().mode;g.useEffect((()=>{s?.zeniSessionId==null&&n!=null&&C(n,p)&&i!=null&&f!=null&&(r.saveMagicLinkTriggered(n),t(X(n,i,f)))}),[n,p,t,i,f,s?.zeniSessionId]),g.useEffect((()=>{I!=="In-Progress"||S!=="Completed"&&y!=="Completed"||s?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(s,s.zeniSessionId),r.saveSignedInUserTenants($(b.tenantsInOrder),s.zeniSessionId),q(s.userId,s.zeniSessionId,o.tenantId),t(B(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(H("Completed")),M.updateAppLocaleID(ie(o)),ae(s,o,v,void 0,b.tenantsInOrder),J().then((()=>{const e=G();e!=null&&P(e)})),setTimeout((()=>{A.trackLogin(N.Event.loginSuccess,"email",Q(o.productSettings))}),2e3))}),[I,S,y,s,o,b,v,a.state,t]);const V=g.useCallback((()=>{m("/signin/auth")}),[m]),U=g.useCallback((()=>{i!=null&&d!=null&&c!=null&&t(Z(i,c,d))}),[i,d,t,c]),j=g.useCallback((e=>{i!=null&&n!=null&&c!=null&&d!=null&&t(ee(e,i,c,d))}),[i,n,t,c,d]);if(h==="Completed"&&d!=null)return u.jsx(R,{phoneNumber:D,verifyOtpFetchState:x.fetchState,resendVerifyDeviceOTPFetchState:z,onResendOtp:U,onVerifyOtp:j,onCancelVerifyDevice:V});if(I==="In-Progress"&&S==="Completed"&&s?.zeniSessionId!=null&&o!=null||E!=null){const e=a.state?.origin??"/";return u.jsx(T,{to:e,state:{...a.state,origin:""}})}if(!C(n,p)||f==null||h==="Error"){const e=a.state?.origin??"/",L=n!=null&&r.getLastUsedMagicLinkToken()===n;return u.jsx(T,{to:e,state:{...a.state,origin:"",magicLinkAlreadyUsed:L,magicLinkExpired:!L&&(r.isMagicLinkTriggered(n??"")||h==="Error"&&s?.zeniSessionId==null)}})}return u.jsx(oe,{"data-testid":"smooth-loader",children:u.jsx(Y,{size:"ExtraLarge",start:!0})})}const oe=ne.div`
|
|
2
|
-
position: fixed;
|
|
3
|
-
top: 0;
|
|
4
|
-
left: 0;
|
|
5
|
-
right: 0;
|
|
6
|
-
bottom: 0;
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
z-index: 9999;
|
|
11
|
-
background-color: ${t=>t.theme.colors.background};
|
|
12
|
-
`;export{Ce as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-CevUFagi.js";import{h as r,l as i}from"./core-Bc2mnalE.js";import{ak as n}from"./index-CtE8HnsY.js";import"./mui-CUsYvTMG.js";import"./sentry-BrSPpZKf.js";import"./zeni-epic-state-VmxO3Mnv.js";import"./recharts-BjkXpBn6.js";import"./analytics-D7SbUCRL.js";import"./plaid-Dxz6lSJz.js";import"./dnd-B0zyAl0s.js";import"./stripe-cKAAJElX.js";import"./lottie-Dhd_0CJG.js";import"./lexical-CCch0Fzo.js";import"./pdf-CuegwamZ.js";import"./utils-BKSIhN7N.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new o.Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="e1fe4b0b-a509-4443-892f-577d1dfd5036",o._sentryDebugIdIdentifier="sentry-dbid-e1fe4b0b-a509-4443-892f-577d1dfd5036")}catch{}})();const a=i(null,(function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}}))(n);function _(){const o=r();return e.jsx(a,{navigate:o})}export{_ as default};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-CevUFagi.js";import{Wf as re,fI as Y,m3 as H,e1 as N,e0 as le,T3 as Q,VD as de,Dm as Pe,Wg as J,Db as je,Dw as Le,Dq as ce,Df as pe,Du as Te,Dr as ve,Wh as ue,sB as Ae,g9 as Re,gG as Ve,Wi as W,Dj as me,Di as ge,Dz as Fe,ca as Oe}from"./zeni-epic-state-VmxO3Mnv.js";import{$ as fe,p as X,d as G,z as _,h as he,I as Ce,ad as ye,ax as be,ay as Be,a9 as De,E as F,ae as Se,G as K,az as Ze,ao as Ue,aq as $e,a6 as ze,k as we,R as We,l as Ge,aA as He,J as _e}from"./index-CtE8HnsY.js";import{D as xe,n as M,S as Ie}from"./mui-CUsYvTMG.js";import ae from"./NotFoundScreen-BkN7W6JR.js";import{a as d}from"./sentry-BrSPpZKf.js";import{u as ee,i as Ke,j as g,h as Me,g as qe,l as Je,n as se,o as z}from"./core-Bc2mnalE.js";import{u as Ye}from"./useAskAiCfoHostNavButtonProps-JRFYPtx4.js";import{M as Ne}from"./MobileAppDrawer-BixbLTmv.js";import"./recharts-BjkXpBn6.js";import"./analytics-D7SbUCRL.js";import"./plaid-Dxz6lSJz.js";import"./dnd-B0zyAl0s.js";import"./stripe-cKAAJElX.js";import"./lottie-Dhd_0CJG.js";import"./lexical-CCch0Fzo.js";import"./pdf-CuegwamZ.js";import"./utils-BKSIhN7N.js";import"./InboxNotificationsProvider-yzTJ7wEQ.js";import"./useTaskManagerAccess-94Xv3cKO.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]="d6ae5697-7eae-4e16-92dd-28cb0fdbf495",e._sentryDebugIdIdentifier="sentry-dbid-d6ae5697-7eae-4e16-92dd-28cb0fdbf495")}catch{}})();const Qe={overlayWidth:new De(100,100,48)},te=K.getLocalizedStrings().peoplePage.invitePage,ne=K.getLocalizedStrings().common,Xe=({companyId:e,managersListView:t,companyPassportView:c,classListView:n,mode:f,isEditPeopleDrawerOpen:i,closeDrawerHandler:b})=>{const h=fe(),m=ee(),[O,B]=d.useState(!1),[k,D]=d.useState(!1),{userId:S}=Ke(),r=g((l=>re(l))),p=g((l=>Y(l))),E=g((l=>H(l))),{useFeatureGate:x}=X(),{isFeatureEnabled:I}=x(G.isDebitCardFeatureEnabled),P=N(I,p),T=le(p),v=Q(p),Z=de(p),U=!!p.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,w=!P&&E&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||c.fetchState!=="Completed"||e==null;if(_.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const C=()=>{m(J()),b()},A=()=>{O===!0?D(!0):C()},$=c.companyView?.controllers?.map((l=>l.user)),u=!!p.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:j}=x(G.isChargeCardFeatureEnabled),L=he(p,j,I),{isCardsHidden:R}=Ce(p?.tenantId),y=!L||R,V=p.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",s={peopleDetails:r,classList:n.classes,managersList:t.users,controllersList:$,mode:f,isZeniTenant:v,isAccountingClassesEnabled:E,isReimbursementDisabled:U===!1,isZeniAccountsDisabled:u===!1,isChargeCardDisabled:y,isTreasuryDisabled:V===!1,isLiteRoleDisabled:Z===!1,isBankingOnlyTenant:P,isCardsOnlyTenant:T,onResetClick:C,onDeleteUser:l=>{m(pe(l.userId,l.userRole.userRoleId))},onPeopleLocalDataUpdated:l=>{m(ce({peopleLocalData:l})),B(!0)},onSaveClick:()=>{m(f==="zeni_only"?je(e):Le(v))},onCloseClick:A,isLoading:w||r.person==null},o={onOkClick:()=>{D(!1),C()},onCancelClick:()=>{D(!1)}};return d.useEffect((()=>{w===!1&&S!=null&&m(Pe(S))}),[w,S]),d.useEffect((()=>{r.updatePersonState.fetchState==="Completed"&&C()}),[r.updatePersonState.fetchState]),a.jsx(xe,{anchor:"right",open:i,PaperProps:{style:{width:Qe.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:ye.overlayDark,cursor:"pointer"}}},onClose:A,children:a.jsxs(ea,{onClick:l=>l.stopPropagation(),children:[k===!0?a.jsx(be,{titleComponent:a.jsx(ke,{children:te.discardTitle}),descriptionComponent:a.jsx(Ee,{children:te.discardDescription}),primaryButtonText:ne.yes,secondaryButtonText:ne.no,action:o,isEditPopup:!0}):null,a.jsx(Be,{...s})]})})},ea=M(Ie)`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`,ke=M(Se.H6Regular)`
|
|
6
|
-
margin-top: ${F.sp7};
|
|
7
|
-
padding-left: ${F.sp8};
|
|
8
|
-
padding-right: ${F.sp8};
|
|
9
|
-
color: ${e=>e.theme.colors.primary};
|
|
10
|
-
word-break: break-word;
|
|
11
|
-
`,Ee=M(Se.LargeRegularSp)`
|
|
12
|
-
color: ${e=>e.theme.colors.hero};
|
|
13
|
-
padding-left: ${F.sp8};
|
|
14
|
-
padding-right: ${F.sp8};
|
|
15
|
-
margin-bottom: 30px;
|
|
16
|
-
margin-top: ${F.sp4};
|
|
17
|
-
white-space: pre-line;
|
|
18
|
-
`,aa={overlayWidth:new De(100,100,48)},oe=K.getLocalizedStrings().peoplePage.invitePage,ie=K.getLocalizedStrings().common,sa=({companyId:e,managersListView:t,companyPassportView:c,classListView:n,mode:f,isInvitePeopleDrawerOpen:i,closeDrawerHandler:b})=>{const h=fe(),m=ee(),[O,B]=d.useState(!1),[k,D]=d.useState(!1),S=g((o=>re(o))),r=g((o=>Y(o))),p=g((o=>H(o))),{useFeatureGate:E}=X(),{isFeatureEnabled:x}=E(G.isDebitCardFeatureEnabled),I=N(x,r),P=le(r),T=Q(r),v=de(r),Z=!!r.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,U=!I&&p&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||c.fetchState!=="Completed"||e==null;if(_.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const w=()=>{b(),m(J())},C=()=>{O===!0?D(!0):w()},A={onOkClick:()=>{D(!1),w()},onCancelClick:()=>{D(!1)}},$=c.companyView?.controllers.map((o=>o.user)),u=!!r.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:j}=E(G.isChargeCardFeatureEnabled),L=he(r,j,x),{isCardsHidden:R}=Ce(r?.tenantId),y=!L||R,V=r.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",s={classList:n.classes,managersList:t.users,controllersList:$,mode:f,isZeniTenant:T,onPeopleLocalDataUpdated:o=>{m(ce({peopleLocalData:o})),B(!0)},onResetClick:w,onSaveClick:()=>{m(f==="zeni_only"?Te(e):ve())},onCloseClick:C,peopleDetails:S,isAccountingClassesEnabled:p,isReimbursementDisabled:Z===!1,isLiteRoleDisabled:v===!1,isZeniAccountsDisabled:u===!1,isChargeCardDisabled:y,isTreasuryDisabled:V===!1,isBankingOnlyTenant:I,isCardsOnlyTenant:P,isLoading:U};return d.useEffect((()=>{S.invitePersonState.fetchState==="Completed"&&(b(),m(J()))}),[S.invitePersonState.fetchState]),a.jsx(xe,{anchor:"right",open:i,PaperProps:{style:{width:aa.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:ye.overlayDark,cursor:"pointer"}}},onClose:C,children:a.jsxs(ta,{onClick:o=>o.stopPropagation(),children:[k===!0?a.jsx(be,{titleComponent:a.jsx(ke,{children:oe.discardTitle}),descriptionComponent:a.jsx(Ee,{children:oe.discardDescription}),primaryButtonText:ie.yes,secondaryButtonText:ie.no,action:A}):null,a.jsx(Ze,{...s})]})})},ta=M(Ie)`
|
|
19
|
-
display: flex;
|
|
20
|
-
min-height: 100%;
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
`,na=Je((function(e,t){const c=ue(e),n=_.getSignedInUser();return{data:c,loggedinUserId:n?.userId??"",isZeniTenant:t.isZeniTenant===!0,shouldFetchClasses:t.shouldFetchClasses,isZeniAdminUser:n?.userEmailDomain==="zeni.ai"&&t.isZeni===!0,isAccountingClassesEnabled:H(e),analytics:we}}),(function(e,t){const{navigate:c,companyId:n,shouldFetchClasses:f}=t;return{personAction:{onPersonDelete:(i,b)=>{e(pe(i,b))},onResendInvite:i=>{e(Fe(i))},onReloadPeople:()=>{e(me()),e(ge(n,f))},onBackClick:()=>{c("../../")},onModeChange:i=>{e(W({mode:i,searchText:"",sortKey:"name",sortOrder:"ascending"}))},onSearchTextChanged:i=>{e(W({searchText:i}))}}}}))(He);function q({isInvitePeopleDrawerOpen:e,isEditPeopleDrawerOpen:t}){const c=Me(),n=ee(),f=qe(),{areTenantIdsInSync:i}=Ue(),b=_.getSignedInUser(),h=g((s=>Y(s))),{useFeatureGate:m}=X(),{isFeatureEnabled:O}=m(G.isDebitCardFeatureEnabled),B=g((s=>H(s))),k=!N(O,h)&&B,D=Q(h),S=h?.tenantId,{tenantEmailDomain:r}=h,[p,E]=d.useState(!1),[x,I]=d.useState(!1),[P,T]=d.useState(!1),[v,Z]=d.useState("off"),[U,w]=d.useState(!1),C=s=>{w(s)},{isAiCfoAccessEnabled:A,onAskAiCfoClick:$}=Ye({mobileExploreReferrer:"People"}),u=g((s=>ue(s)));$e({isDataReady:u.fetchState==="Completed"});const j=g((s=>Ae(s.classState,s.classListState))),L=g((s=>Re(s.userState,s.userRoleState,s.userListViewState,"manager"))),R=g((s=>Ve(s))),y=h?.companyId;d.useEffect((()=>{p&&v===u.uiState.mode||!i||(n(W({searchText:"",sortKey:"name",sortOrder:"ascending"})),Z(u.uiState.mode),E(!0),n(me()))}),[p,b,S,n,u.uiState.mode,i]),d.useEffect((()=>{y!=null&&i&&n(ge(y,k))}),[y,k,i]),d.useEffect((()=>{I(e!=null&&e===!0),T(t!=null&&t===!0&&t)}),[e,t]),d.useEffect((()=>{n(W({searchText:"",sortKey:"name",sortOrder:"ascending"}))}),[]);const V=()=>{I(!1),T(!1),c("../")};return a.jsxs(a.Fragment,{children:[u.fetchState==="Completed"?a.jsx(ze,{analytics:we,onLoad:s=>s.trackPageLoaded(We.Event.members)}):null,x===!0?a.jsx(sa,{closeDrawerHandler:V,isInvitePeopleDrawerOpen:x,managersListView:L,companyPassportView:R,classListView:j,companyId:y,mode:u.uiState.mode}):null,P===!0?a.jsx(Xe,{closeDrawerHandler:V,isEditPeopleDrawerOpen:P,managersListView:L,companyPassportView:R,classListView:j,companyId:y,mode:u.uiState.mode}):null,a.jsx(Ne,{isAppContentDrawerOpen:U,handleDrawerToggle:C}),a.jsx(na,{navigate:c,signedInUser:b,isZeni:h.isZeni,isZeniTenant:D,peopleUIState:u.uiState,companyId:y,shouldFetchClasses:k,classList:j,managersView:L,peopleView:u,onInvitePeopleClick:()=>{c("./new")},onColumnSortConfigChanged:(s,o)=>{n(W({sortKey:s,sortOrder:o}))},onRowClick:s=>{const o=`/${r}/people/${encodeURIComponent(s)}/edit`,l=Ge(f.state?.pathnameStackToGoBack,f.pathname);c(o,{state:{pathnameStackToGoBack:l}})},onClickMenuIcon:()=>{C(!0)},isAiCfoAccessEnabled:A,onAskAiCfoClick:$})]})}function ka(){const e=_e();return Oe(e?.loggedInUserRole??[])?a.jsxs(se,{children:[a.jsx(z,{path:"/",element:a.jsx(q,{})}),a.jsx(z,{path:"new",element:a.jsx(q,{isInvitePeopleDrawerOpen:!0})}),a.jsx(z,{path:":userId/edit",element:a.jsx(q,{isEditPeopleDrawerOpen:!0})}),a.jsx(z,{path:"*",element:a.jsx(ae,{})})]}):a.jsx(se,{children:a.jsx(z,{path:"*",element:a.jsx(ae,{})})})}export{ka as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CevUFagi.js";import E from"./NotFoundScreen-BkN7W6JR.js";import{a as r}from"./sentry-BrSPpZKf.js";import{h as _,g as v,j as p,i as M,u as P,N as U,l as O,n as z,o as h}from"./core-Bc2mnalE.js";import{fI as B,a1$ as b,bo as F,bn as N,iP as V,gk as $}from"./zeni-epic-state-VmxO3Mnv.js";import{c as q,z as I,aq as G,dO as H}from"./index-CtE8HnsY.js";import"./mui-CUsYvTMG.js";import{u as J}from"./useAskAiCfoHostNavButtonProps-JRFYPtx4.js";import{M as K}from"./MobileAppDrawer-BixbLTmv.js";import"./recharts-BjkXpBn6.js";import"./analytics-D7SbUCRL.js";import"./plaid-Dxz6lSJz.js";import"./dnd-B0zyAl0s.js";import"./stripe-cKAAJElX.js";import"./lottie-Dhd_0CJG.js";import"./lexical-CCch0Fzo.js";import"./pdf-CuegwamZ.js";import"./utils-BKSIhN7N.js";import"./InboxNotificationsProvider-yzTJ7wEQ.js";import"./useTaskManagerAccess-94Xv3cKO.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]="9fc16d85-2c13-433e-8fba-62bcc3843f2a",e._sentryDebugIdIdentifier="sentry-dbid-9fc16d85-2c13-433e-8fba-62bcc3843f2a")}catch{}})();const L=O((function(e){const t=I.getSignedInUser(),c=e.tenantState.currentTenantId,o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:c??""},{aggregatedReportViewState:n}=b(e);return{authParams:o,isDisabled:!1,loggedInUser:t,aggregatedReport:n}}),(function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}}))(H),Q=()=>{const e=_(),t=v(),c=q(),o=p((a=>B(a))),{aggregatedReportViewState:n}=p((a=>b(a))),{tenantEmailDomain:m}=M(),u=P(),l=I.getSignedInUser();if(l==null)throw new Error("Can't access this page without signing in...");const f=r.useRef(!1),[w,S]=r.useState(!1),C=F(o?.userRole??[]),k=o?.userRole?.includes("bookkeeping_admin")??!1,x=N(l),y=C||k||x,d=r.useCallback(((a,i,T)=>{u(V({fromMonth:a,toMonth:i,cacheOverride:T}))}),[]);r.useEffect((()=>{n?.fetchState==="Completed"&&f.current&&(u($({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),f.current=!1)}),[n?.fetchState]);const D=r.useCallback(((a,i)=>{n!=null&&n?.fetchState==="In-Progress"||d(a,i,!0),f.current=!0}),[n?.fetchState,d]),j=r.useCallback(((a,i)=>{d(a,i,!1)}),[d]),g=a=>{S(a)},{isAiCfoAccessEnabled:R,onAskAiCfoClick:A}=J({mobileExploreReferrer:"Performance"});return G({isDataReady:n?.fetchState==="Completed"}),y?s.jsxs(s.Fragment,{children:[s.jsx(K,{isAppContentDrawerOpen:w,handleDrawerToggle:g}),s.jsx(L,{navigate:e,location:t,themeState:c,currentTenant:o,signedInUser:l,tenantEmailDomain:m,onReload:D,onTimeRangeSelect:j,handleDrawerToggle:g,isAiCfoAccessEnabled:R,onAskAiCfoClick:A})]}):s.jsx(U,{to:`/${m}/dashboard`,replace:!0})};function he(){return s.jsxs(z,{children:[s.jsx(h,{path:"*",element:s.jsx(Q,{})}),s.jsx(h,{path:"*",element:s.jsx(E,{})})]})}export{he as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-CevUFagi.js";import{z as j,a6 as N,k as u,R as S,e5 as k,p as I,d as C}from"./index-CtE8HnsY.js";import"./mui-CUsYvTMG.js";import g from"./NotFoundScreen-BkN7W6JR.js";import{a as c}from"./sentry-BrSPpZKf.js";import{u as D,j as y,h as F,g as L,l as T,n as U,o as d,N as h}from"./core-Bc2mnalE.js";import{fI as _,a32 as w,a33 as p,Em as P,q7 as V,a34 as R,Ek as q}from"./zeni-epic-state-VmxO3Mnv.js";import"./recharts-BjkXpBn6.js";import"./analytics-D7SbUCRL.js";import"./plaid-Dxz6lSJz.js";import"./dnd-B0zyAl0s.js";import"./stripe-cKAAJElX.js";import"./lottie-Dhd_0CJG.js";import"./lexical-CCch0Fzo.js";import"./pdf-CuegwamZ.js";import"./utils-BKSIhN7N.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]="03d45141-9a2b-440a-8f16-632c16346020",e._sentryDebugIdIdentifier="sentry-dbid-03d45141-9a2b-440a-8f16-632c16346020")}catch{}})();const z=T((function(e,t){const n=w(e);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}}),(function(e,t){const{navigate:n}=t,i=j.getSignedInUser();return{onDismissClick:()=>{e(p()),n("/")},onSendClick:()=>{if(i!=null){const s=[],r=[];t.inviteFormCompayData.forEach((m=>{s.push(m.companyName),r.push(m.emailIds[0])})),u.trackInviteEmailClicked("send",s,r,s.length)}e(q())},onUpdateInviteFormLocalData:s=>{e(R({localData:s}))},onSubmitSuccess:()=>{e(p())},onCancelClick:()=>{i!=null&&u.trackInviteEmailClicked("cancel")}}}))(k),G=()=>{const e=D(),[t,n]=c.useState(!1),[i,s]=c.useState(!1),r=y((o=>_(o))),m=F(),x=L(),f=j.getSignedInUser();if(f==null)throw Error("Can't access invite referral screen without signing in...");const l=y((o=>w(o))),b=f?.firstName!=null?f.firstName:"User";c.useEffect((()=>{e(p()),r?.rewardsLastViewedTime==null&&i===!1&&(e(P()),s(!0))}),[]),c.useEffect((()=>{t||l.fetchState!=="Not-Started"||(n(!0),e(V(!0)))}),[l.fetchState,e]);const E=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[l.fetchState==="Completed"?a.jsx(N,{analytics:u,onLoad:o=>(v=>v.trackPageLoaded(S.Event.inviteEmailViewed))(o)}):null,a.jsx(z,{navigate:m,location:x,currentTenant:r,companyName:E,userName:b,inviteFormCompayData:l.localData})]})};function ne(){const{useFeatureGate:e}=I(),{isFeatureEnabled:t}=e(C.isReferralFeatureEnabled);return a.jsxs(U,{children:[a.jsx(d,{path:"/",element:a.jsx(h,{to:"refer",replace:!0})}),a.jsx(d,{path:"how-it-works",element:a.jsx(h,{to:"refer",replace:!0})}),a.jsx(d,{path:"refer/*",element:t?a.jsx(G,{}):a.jsx(g,{})}),a.jsx(d,{path:"*",element:a.jsx(g,{})})]})}export{ne as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/NotFoundScreen-BkN7W6JR.js","assets/sentry-BrSPpZKf.js","assets/core-Bc2mnalE.js","assets/zeni-epic-state-VmxO3Mnv.js","assets/index-CtE8HnsY.js","assets/mui-CUsYvTMG.js","assets/analytics-D7SbUCRL.js","assets/utils-BKSIhN7N.js","assets/index-BQ3cXEYt.css","assets/DashboardRoutes-DtOF4t57.js","assets/withTransactionSidePanel-DDzMeSLR.js","assets/useAskAiCfoHostNavButtonProps-JRFYPtx4.js","assets/TransactionDetailScreen-D3daFCwt.js","assets/decodeURIComponentSafe-addd21BI.js","assets/useInitialThreadRequest-gQdpW0fv.js","assets/routePaths-Dv28cYw1.js","assets/expenseAutomationHelper-6llqwO2d.js","assets/stripSplatSuffix-wwIiiS3L.js","assets/reportTimeframe-CmNj9zQY.js","assets/analyticsHelper-BNh1_jfv.js","assets/CompanyPassportScreen-CWQymYC0.js","assets/MobileAppDrawer-BixbLTmv.js","assets/InboxNotificationsProvider-yzTJ7wEQ.js","assets/useTaskManagerAccess-94Xv3cKO.js","assets/useAiCfoDashboardSuggestedQuestionsChips-C7G9HKEb.js","assets/FeaturePreviewScreen-CCuIxuhc.js","assets/BillPayRoutes-lBcH3kG4.js","assets/AddressScreen-yLBHCU8H.js","assets/DomesticWireDetailScreen-jf25UFiV.js","assets/BusinessVerificationPageScreen-CNBsygLT.js","assets/DrawerScreen-5p-VaDVX.js","assets/SetupPagesScreen-CYo2TZ1p.js","assets/BillPayApprovalRoutes-Cz4FnR8k.js","assets/useEnsureVendorListLoaded-nIoTpKXy.js","assets/ReimbursementApprovalRuleDetailScreen-B-Gs9TwE.js","assets/getLocaleForTenant-D-baUPRb.js","assets/ReimbursementRoutes-C5mKxHY0.js","assets/ReimbursementApprovalRoutes-DPr_Xw2e.js","assets/TransactionListRoutes-Cp-cSB8W.js","assets/ZeniAccountStatementScreen-C3LaZbC9.js","assets/SettingsRoutes-BafV6BMK.js","assets/AccountMappingScreen-D6HgzjWo.js","assets/QBOConnectionScreen-CMu1wr6r.js","assets/empty-Nco5SaTV.js","assets/index-CyFWesiE.js","assets/url-2Ybk2sxg.js","assets/index-Dv6pUA2Y.js","assets/accountMappingHelper-HDztJioo.js","assets/useEmailConnectResultRefresh-aPg3qWb4.js","assets/ReportsRoutes-rLspO2bh.js","assets/ChargeCardRoutes-BebvufWC.js","assets/useChargeCardPusherEvents-D_qYIckD.js","assets/PeopleRoutes-I7YtZIOQ.js","assets/ExpenseAutomationRoutes-Byqo8eZZ.js","assets/useActualMatchingMatchDetail-CZpCt66v.js","assets/ScheduleDetailsPrepaidExpensesScreen-CUlxxOT4.js","assets/pathToGoBack-h9zXpfmB.js","assets/TreasuryRoutes-DnPKaz7R.js","assets/VendorsRoutes-CY-uooJs.js","assets/ZeniAccountRoutes-CaWZaYnh.js","assets/AddressRoutes-D7_KsY7f.js","assets/PandLWithForecastRoutes-Bm0J5IMo.js","assets/CustomerOnboardingRoutes-07XvuYSy.js","assets/TransactionDetailRoutes-CSoIoyzR.js","assets/EntityDetailRoutes-CacM-JPm.js","assets/InvoicingRoutes-D2PWzI_4.js","assets/NotificationRoutes-BdD13Onr.js","assets/PerformanceRoutes-Bh2GJMgS.js","assets/ActualMatchingMatchDetailScreen-DrT4wLj3.js","assets/RewardsRoutes-BAg5LFP3.js","assets/TaskRoutes-BeXt3gMh.js","assets/TaskListScreen-CNDqJnu1.js","assets/useTaskManagerPusherEvents-CdVgZy4d.js","assets/AiCfoScreen-C95CmuT8.js","assets/CardsAiCfoScreen-Dnj7L-Aq.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as s,bn as hs,fI as Es,e1 as ps,e0 as xs,Bs as Rs,dk as gs,ca as Is,gM as js,gc as Ts,dh as pe,cI as As,gq as fs,cA as Ds,bG as bs,br as ys,U$ as Cs,v as vs,V2 as Os,bq as Ps,V3 as Us,bM as ws,bL as Fs,bu as Ls,cw as Vs,V4 as ks,V5 as Hs,dc as Bs,df as Ss,de as Ns,cH as Ms,cO as Zs,p_ as xe,gl as Re,h0 as $s,gn as ge,gO as Ie,gP as je,go as Gs}from"./zeni-epic-state-VmxO3Mnv.js";import{j as e}from"./liveblocks-CevUFagi.js";import{a as U}from"./sentry-BrSPpZKf.js";import{N as u,u as zs,h as qs,i as Ys,g as Ws,j as $,q as Te,n as Js,o as n}from"./core-Bc2mnalE.js";import{H as l,u as Ks,z as y,p as Xs,f as Qs,K as et,d as S,h as st,I as tt,J as nt,L as F,G as Ae,t as _,P as at,M as ot,k as ne}from"./index-CtE8HnsY.js";import{u as rt}from"./mui-CUsYvTMG.js";import{f as fe}from"./analyticsHelper-BNh1_jfv.js";import{t as it}from"./getLocaleForTenant-D-baUPRb.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},D=new o.Error().stack;D&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[D]="44fbd754-cf91-46d2-95d0-da05da1d5d96",o._sentryDebugIdIdentifier="sentry-dbid-44fbd754-cf91-46d2-95d0-da05da1d5d96")}catch{}})();const lt=l((()=>s((()=>import("./NotFoundScreen-BkN7W6JR.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8])))),ut=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/reimbursements`}),dt=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/bills`}),De=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/treasury`}),be=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/checking`}),ye=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/cards`}),C=({showZeniAccountRoute:o,isUserHasBillPayAccess:D,isUserHasReimbursementAccess:N,showTreasuryRoute:i,isTenantBankingOnly:V,showChargeCardRoute:O,tenantEmailDomain:v})=>{if(V===!0){if(o)return e.jsx(be,{tenantEmailDomain:v});if(i)return e.jsx(De,{tenantEmailDomain:v});if(O)return e.jsx(ye,{tenantEmailDomain:v})}return o?e.jsx(be,{tenantEmailDomain:v}):i?e.jsx(De,{tenantEmailDomain:v}):O?e.jsx(ye,{tenantEmailDomain:v}):D?e.jsx(dt,{tenantEmailDomain:v}):N?e.jsx(ut,{tenantEmailDomain:v}):e.jsx(lt,{})},ct={dashboard:()=>s((()=>import("./DashboardRoutes-DtOF4t57.js")),__vite__mapDeps([9,1,2,3,4,5,6,7,10,11,12,13,14,15,16,17,0,18,19,20,21,22,23,24,25,8])),bills:()=>s((()=>import("./BillPayRoutes-lBcH3kG4.js")),__vite__mapDeps([26,1,2,3,4,5,6,7,27,0,28,11,14,29,15,21,22,23,30,25,31,19,32,33,34,35,8])),reimbursement:()=>s((()=>import("./ReimbursementRoutes-C5mKxHY0.js")),__vite__mapDeps([36,1,2,3,4,5,6,7,0,31,29,15,21,22,23,19,25,11,14,30,37,33,34,35,8])),transactions:()=>s((()=>import("./TransactionListRoutes-Cp-cSB8W.js")),__vite__mapDeps([38,1,2,3,4,5,6,7,10,11,12,13,14,15,16,17,39,8])),settings:()=>s((()=>import("./SettingsRoutes-BafV6BMK.js")),__vite__mapDeps([40,1,2,3,4,5,6,7,23,41,21,22,42,43,44,45,46,13,47,27,0,19,29,15,20,48,32,33,34,37,8])),reports:()=>s((()=>import("./ReportsRoutes-rLspO2bh.js")),__vite__mapDeps([49,1,2,3,4,5,6,7,0,25,14,15,18,21,22,23,8])),chargeCards:()=>s((()=>import("./ChargeCardRoutes-BebvufWC.js")),__vite__mapDeps([50,1,2,3,4,5,6,7,11,21,22,23,31,29,15,0,19,14,51,27,8])),people:()=>s((()=>import("./PeopleRoutes-I7YtZIOQ.js")),__vite__mapDeps([52,1,2,3,4,5,6,7,0,11,21,22,23,8])),expenseAutomation:()=>s((()=>import("./ExpenseAutomationRoutes-Byqo8eZZ.js")),__vite__mapDeps([53,1,2,3,0,4,5,6,7,11,12,13,14,15,16,54,17,10,55,56,47,30,8])),treasury:()=>s((()=>import("./TreasuryRoutes-DnPKaz7R.js")),__vite__mapDeps([57,1,2,3,4,5,6,7,0,31,29,15,21,22,23,19,11,14,25,8])),vendors:()=>s((()=>import("./VendorsRoutes-CY-uooJs.js")),__vite__mapDeps([58,1,2,3,4,5,6,7,27,0,25,55,56,15,11,21,22,23,30,47,8])),zeniAccounts:()=>s((()=>import("./ZeniAccountRoutes-CaWZaYnh.js")),__vite__mapDeps([59,1,2,3,4,5,6,7,0,31,29,15,21,22,23,19,25,28,27,11,39,8]))},mt=["bills","transactions","settings","reimbursement","reports","chargeCards","people"],ae=o=>{"requestIdleCallback"in window?requestIdleCallback(o):setTimeout(o,100)},_t=l((()=>s((()=>import("./ReportsRoutes-rLspO2bh.js")),__vite__mapDeps([49,1,2,3,4,5,6,7,0,25,14,15,18,21,22,23,8])))),ht=l((()=>s((()=>import("./AddressRoutes-D7_KsY7f.js")),__vite__mapDeps([60,1,2,3,27,4,5,6,7,0,8])))),Et=l((()=>s((()=>import("./PeopleRoutes-I7YtZIOQ.js")),__vite__mapDeps([52,1,2,3,4,5,6,7,0,11,21,22,23,8])))),pt=l((()=>s((()=>import("./PandLWithForecastRoutes-Bm0J5IMo.js")),__vite__mapDeps([61,1,2,3,4,5,6,7,0,25,11,14,15,21,22,23,8])))),xt=l((()=>s((()=>import("./CustomerOnboardingRoutes-07XvuYSy.js")),__vite__mapDeps([62,1,2,3,27,4,5,6,7,0,42,43,44,45,46,13,48,51,8])))),Rt=l((()=>s((()=>import("./VendorsRoutes-CY-uooJs.js")),__vite__mapDeps([58,1,2,3,4,5,6,7,27,0,25,55,56,15,11,21,22,23,30,47,8])))),gt=l((()=>s((()=>import("./TransactionDetailRoutes-CSoIoyzR.js")),__vite__mapDeps([63,1,2,3,0,4,5,6,7,13,33,12,11,14,15,16,8])))),Ce=l((()=>s((()=>import("./EntityDetailRoutes-CacM-JPm.js")),__vite__mapDeps([64,1,2,3,4,5,6,7,13,10,11,12,14,15,16,17,8])))),It=l((()=>s((()=>import("./DashboardRoutes-DtOF4t57.js")),__vite__mapDeps([9,1,2,3,4,5,6,7,10,11,12,13,14,15,16,17,0,18,19,20,21,22,23,24,25,8])))),ve=l((()=>s((()=>import("./BillPayRoutes-lBcH3kG4.js")),__vite__mapDeps([26,1,2,3,4,5,6,7,27,0,28,11,14,29,15,21,22,23,30,25,31,19,32,33,34,35,8])))),jt=l((()=>s((()=>import("./SettingsRoutes-BafV6BMK.js")),__vite__mapDeps([40,1,2,3,4,5,6,7,23,41,21,22,42,43,44,45,46,13,47,27,0,19,29,15,20,48,32,33,34,37,8])))),Tt=l((()=>s((()=>import("./InvoicingRoutes-D2PWzI_4.js")),__vite__mapDeps([65,1,2,3,4,5,6,7,27,0,21,22,23,42,43,44,45,46,13,8])))),Oe=l((()=>s((()=>import("./ReimbursementRoutes-C5mKxHY0.js")),__vite__mapDeps([36,1,2,3,4,5,6,7,0,31,29,15,21,22,23,19,25,11,14,30,37,33,34,35,8])))),At=l((()=>s((()=>import("./ZeniAccountRoutes-CaWZaYnh.js")),__vite__mapDeps([59,1,2,3,4,5,6,7,0,31,29,15,21,22,23,19,25,28,27,11,39,8])))),ft=l((()=>s((()=>import("./TreasuryRoutes-DnPKaz7R.js")),__vite__mapDeps([57,1,2,3,4,5,6,7,0,31,29,15,21,22,23,19,11,14,25,8])))),Dt=l((()=>s((()=>import("./TransactionListRoutes-Cp-cSB8W.js")),__vite__mapDeps([38,1,2,3,4,5,6,7,10,11,12,13,14,15,16,17,39,8])))),bt=l((()=>s((()=>import("./ChargeCardRoutes-BebvufWC.js")),__vite__mapDeps([50,1,2,3,4,5,6,7,11,21,22,23,31,29,15,0,19,14,51,27,8])))),yt=l((()=>s((()=>import("./NotificationRoutes-BdD13Onr.js")),__vite__mapDeps([66,1,2,3,0,4,5,6,7,11,23,8])))),Ct=l((()=>s((()=>import("./PerformanceRoutes-Bh2GJMgS.js")),__vite__mapDeps([67,1,2,3,0,4,5,6,7,11,21,22,23,8])))),vt=l((()=>s((()=>import("./ExpenseAutomationRoutes-Byqo8eZZ.js")),__vite__mapDeps([53,1,2,3,0,4,5,6,7,11,12,13,14,15,16,54,17,10,55,56,47,30,8])))),Ot=l((()=>s((()=>import("./ActualMatchingMatchDetailScreen-DrT4wLj3.js")),__vite__mapDeps([68,1,2,3,4,5,6,7,54,17,13,15,0,8])))),Pt=l((()=>s((()=>import("./RewardsRoutes-BAg5LFP3.js")),__vite__mapDeps([69,1,2,3,4,5,6,7,0,8])))),Ut=l((()=>s((()=>import("./TaskRoutes-BeXt3gMh.js")),__vite__mapDeps([70,1,2,3,0,4,5,6,7,14,21,22,23,71,11,72,8])))),wt=l((()=>s((()=>import("./AiCfoScreen-C95CmuT8.js")),__vite__mapDeps([73,1,2,3,4,5,6,7,24,56,15,72,8])))),Pe=l((()=>s((()=>import("./CardsAiCfoScreen-Dnj7L-Aq.js")),__vite__mapDeps([74,1,2,3,4,5,6,7,8])))),f=l((()=>s((()=>import("./NotFoundScreen-BkN7W6JR.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8])))),Ft=l((()=>s((()=>import("./TaskListScreen-CNDqJnu1.js").then((o=>o.f))),__vite__mapDeps([71,1,2,3,4,5,6,7,11,21,22,23,72,8])))),Lt=({isDashboardAccess:o,showZeniAccountRoute:D,isUserHasBillPayAccess:N,isUserHasReimbursementAccess:i,showTreasuryRoute:V,isTenantBankingOnly:O,isTenantCardsOnly:v,showChargeCardRoute:k})=>{if(O===!0){if(D)return e.jsx(u,{to:"checking"});if(V)return e.jsx(u,{to:"treasury"});if(k)return e.jsx(u,{to:"cards"})}return v===!0&&k?e.jsx(u,{to:"cards"}):o?e.jsx(u,{to:"dashboard"}):D?e.jsx(u,{to:"checking"}):V?e.jsx(u,{to:"treasury"}):k?e.jsx(u,{to:"cards"}):N?e.jsx(u,{to:"bills"}):i?e.jsx(u,{to:"reimbursements"}):e.jsx(u,{to:"dashboard"})},Ue=({tenantEmailDomain:o})=>e.jsx(u,{to:`/${o}/dashboard`}),$t=Object.freeze(Object.defineProperty({__proto__:null,default:function({setTenantEmailDomain:o}){const D=zs(),N=qs(),{tenantEmailDomain:i}=Ys(),V=rt().mode,{setLoading:O,clearAllLoading:v,clearLoading:k}=Ks(),b=y.getSignedInUserTenant(i)?.tenantId,j=y.getSignedInUser(),J=hs(j),G=Ws(),[L,we]=U.useState(!1),r=$((a=>Es(a))),{useFeatureGate:H}=Xs(),M=Qs(),K=et(),Fe=!!r.company?.companyZeniAccountInfo?.isZeniAccountEnabled,Le=r.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",{isFeatureEnabled:Ve}=H(S.isChargeCardFeatureEnabled),{isFeatureEnabled:oe}=H(S.isDebitCardFeatureEnabled),T=$((a=>a.tenantState.fetchState)),p=$((a=>a.tenantState.activeTenantFetchState.fetchState)),h=p==="Completed"||T==="Completed"?ps(oe,r):void 0,X=p==="Completed"||T==="Completed"?xs(r):void 0,re=p==="Completed"||T==="Completed"?Rs(r)&&!gs(r):void 0,ke=st(r,Ve,oe),{isCardsHidden:He}=tt(r?.tenantId),Be=!ke||!!He,{isFeatureEnabled:Se}=H(S.isSettingsFeatureEnabled),{isFeatureEnabled:Q}=H(S.isAiCfoFileUploadEnabled),{isFeatureEnabled:Ne}=H(S.isInvoicingFeatureEnabled??"is_invoicing_feature_enabled"),Me=Ne||ot==="DEV",Ze=r?.userRole!=null&&Is(r.userRole),z=$((a=>js(a)));if(i!=null){const a=y.getSignedInUserTenant(i);j!=null&&a!=null&&fe(j,r,V)}const Z={tenantId:b,userId:j?.userId,sessionId:j?.zeniSessionId},ie=Ts(),E=nt(),$e=r.company==null||E?.loggedInUserRoleMap!=null&&pe(E.loggedInUserRole),Ge=As(E?.loggedInUserRoleMap),ee=Te("/:tenantEmailDomain/onboarding/*")!==null,ze=Te("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*"),se=ze?.params.selectedPeriod,qe=$((a=>Z.tenantId!=null?fs(a,Z.tenantId):void 0));U.useEffect((()=>{O(F.TENANT_FETCHING),o(i)}),[i]),U.useEffect((()=>{if(se!=null&&b!=null){const a=se.split("-");if(a.length===2){const A=Ds(Number(a[0])),c=Number(a[1]),t=bs(`01-${A<10?`0${A}`:A}-${c}`,Ae.getLocalizedStrings().dateFormat.analytics.DDDashMMDashYYYY),d=ys();t.isAfter(d,"month")===!1?D(Cs(b,{month:A,year:c})):N(`/${i}/month_end_close_checks/review`)}}}),[se,i,b]),U.useEffect((()=>{L||(we(!0),O(F.TENANT_FETCHING))}),[L,Z,ie,j,D,y]),U.useLayoutEffect((()=>{!vs(ie,Z)&&y.isSignedIn()&&(O(F.TENANT_FETCHING),(function(a,A,c,t){if(Re(A?.userId,A?.zeniSessionId,a.tenantId),c($s(!0)),c(ge(a.tenantId)),a.tenantId!=null&&_.clearTenant(a.tenantId),a.tenantId!=null){const d=y.getSignedInUserTenantWithId(a.tenantId);t&&Ae.updateAppLocaleID(it(t)),d?.tenantEmailDomain!=null&&y.saveActiveTenantDomainForUser(d?.tenantEmailDomain)}a.userId!=null?ne.identify(a.userId,{tenant_id:a.tenantId}):ne.resetUserIdentity()})(Z,j,D,qe))}),[b]),U.useEffect((()=>{y.isSignedIn()&&(O(F.TENANT_FETCHING),(function(a,A,c,t,d,q,B){if(c==null&&t==null)return void console.warn("There is no current tenant selected!!");const Y=t!=null&&d?.zeniSessionId!=null,cs=c==null||c.tenantId!==t,ms=c!=null&&c.excludedResources==null,_s=c!=null&&c.externalConnections==null;if(Y&&cs){B(ge(t));const W=y.getSignedInUserTenantWithId(t);W?.tenantEmailDomain!=null&&y.saveActiveTenantDomainForUser(W?.tenantEmailDomain),Re(d?.userId,d?.zeniSessionId,t),_.shouldFetchExcludedResources(t)&&(_.markExcludedResourcesFetchStarted(t),B(Ie(d.userId,t))),_.shouldFetchConnections(t)&&(_.markConnectionsFetchStarted(t),B(je(d.userId,t)))}else Y&&ms&&_.shouldFetchExcludedResources(t)&&(_.markExcludedResourcesFetchStarted(t),B(Ie(d.userId,t))),Y&&_s&&_.shouldFetchConnections(t)&&(_.markConnectionsFetchStarted(t),B(je(d.userId,t)));if(Y){ne.identify(d.userId,{tenant_id:t});const W=t==null||t!=null&&(A==="Completed"||A==="Error");a==="Completed"||A!=="Not-Started"&&A!=="Error"||t==null||!_.shouldFetchActiveTenant(t)||(_.markActiveTenantFetchStarted(t),q(F.TENANT_FETCHING),B(Gs(d.userId,t,d.zeniSessionId))),W&&(a==="Not-Started"||a==="Error")&&_.shouldFetchAllTenants()&&(_.markAllTenantsFetchStarted(),B(xe(d.userId,d.zeniSessionId)))}})(T,p,r,b,j,O,D))}),[b,p]),U.useEffect((()=>{y.isSignedIn()&&T==="Completed"&&z.tenantsBaseInOrder.length>0&&(k(F.TENANT_FETCHING),y.saveSignedInUserTenants(Os(z.tenantsBaseInOrder)),j!=null&&fe(j,r,V,void 0,z.tenantsBaseInOrder))}),[z,T,r,j]),U.useEffect((()=>{p==="In-Progress"&&O(F.TENANT_FETCHING),p!=="Completed"&&p!=="Error"||(p==="Completed"&&b!=null?(v(),_.markActiveTenantFetchCompleted(b)):p==="Error"&&b!=null&&(_.markActiveTenantFetchFailed(b),k(F.TENANT_FETCHING),k(F.TENANT_SWITCHING))),T!=="Completed"&&T!=="Error"||(T==="Completed"?_.markAllTenantsFetchCompleted():T==="Error"&&_.markAllTenantsFetchFailed())}),[p,T,b,L]);const le=U.useRef(!1);U.useEffect((()=>{!le.current&&p==="Completed"&&L&&(le.current=!0,(function(a=mt,A=3e3){setTimeout((()=>{const c=t=>{if(t>=a.length)return;const d=a[t],q=ct[d];q!=null?q().then((()=>ae((()=>c(t+1))))).catch((()=>ae((()=>c(t+1))))):c(t+1)};ae((()=>c(0)))}),A)})())}),[p,L]);const P=r?.userRole!=null&&Ps(r?.userRole),{isFeatureEnabled:Ye}=H(S.isReferralFeatureEnabled),{isFeatureEnabled:We}=H(S.isAccrualEnabled),Je=r?.userRole!=null&&r.userRole.includes("charge_card_user"),Ke=r?.userRole!=null&&r.userRole.includes("charge_card_admin"),w=r?.userRole!=null&&pe(r.userRole),ue=r?.company==null||r.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!P,de=!Be&&!P,Xe=Us(E?.loggedInUserRoleMap),Qe=r.externalConnections?.accounting[0]?.isValid,es=r.externalConnections?.fetchState==="Completed",te=r.company?.companyOnboardingInfo.isOnboardingCompleted,ce=r?.company==null||r.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!P,me=ce&&ws(E?.loggedInUserRoleMap),_e=Fe&&!P,ss=Le&&!P,ts=ue&&Fs(E?.loggedInUserRoleMap),ns=de&&Ls(E?.loggedInUserRoleMap),as=_e&&Vs(E?.loggedInUserRoleMap),os=ks(E?.loggedInUserRoleMap),rs=Hs(E?.loggedInUserRoleMap),is=Bs(E?.loggedInUserRoleMap),ls=Ss(E?.loggedInUserRoleMap),us=Ns(E?.loggedInUserRoleMap),x=Ms(E?.loggedInUserRoleMap),R=Zs(E?.loggedInUserRoleMap),he=ue&&x,Ee=ce&&R,g=_e&&is,I=ss&&ls,m=de&&us,ds=r.excludedResources?.resources?.find((a=>a.resource==="/invites"))!=null||Ge===!0||Xe===!0||os===!0||rs===!0;return y.isSignedIn()?b==null?T==="Completed"?e.jsx(u,{to:"/",replace:!0,state:{...G.state,message:"...",origin:G.pathname}}):(j!=null&&T!=="In-Progress"&&D(xe(j.userId,j.zeniSessionId)),null):p!=="In-Progress"&&p!=="Not-Started"||T==="Completed"?(te===!0||J&&!ee)&&es&&Qe!==!0&&h===!1&&X===!1&&re===!1?(o(void 0),e.jsx(u,{to:"/connection/auth",replace:!0})):!L||re!==!0||te!==!0||ee||J?!L||te!==!1||ee||J?L&&r?.userRole&&h!=null&&X!=null&&i!=null&&Object.keys(E.loggedInUserRoleMap).length>0?e.jsx(Js,{children:e.jsxs(n,{element:e.jsx(at,{}),children:[e.jsx(n,{path:"/",element:e.jsx(Lt,{isDashboardAccess:w,showZeniAccountRoute:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:R,showTreasuryRoute:I,isTenantBankingOnly:h,isTenantCardsOnly:X,showChargeCardRoute:m})}),e.jsx(n,{path:"dashboard/*",element:w?e.jsx(It,{}):e.jsx(C,{showZeniAccountRoute:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:R,showTreasuryRoute:I,isTenantBankingOnly:h,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"reports/*",element:w?e.jsx(_t,{}):e.jsx(C,{showZeniAccountRoute:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:R,showTreasuryRoute:I,isTenantBankingOnly:h,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"people/*",element:ds||w?e.jsx(Et,{}):e.jsx(C,{showZeniAccountRoute:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:R,showTreasuryRoute:I,isTenantBankingOnly:h,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"forecast/*",element:w?e.jsx(pt,{}):e.jsx(C,{showZeniAccountRoute:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:R,showTreasuryRoute:I,isTenantBankingOnly:h,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"onboarding/*",element:e.jsx(xt,{})}),e.jsx(n,{path:"transaction/*",element:w&&P===!1||Je||Ke?e.jsx(gt,{}):e.jsx(C,{showZeniAccountRoute:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:R,showTreasuryRoute:I,isTenantBankingOnly:h,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"transactions/*",element:w&&P===!1?e.jsx(Dt,{}):e.jsx(C,{showZeniAccountRoute:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:R,showTreasuryRoute:I,isTenantBankingOnly:h,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"customer/*",element:w&&P===!1?e.jsx(Ce,{entityType:"customer"}):e.jsx(C,{showZeniAccountRoute:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:R,isTenantBankingOnly:h,showTreasuryRoute:I,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"vendor/*",element:w&&P===!1?e.jsx(Ce,{entityType:"vendor"}):e.jsx(C,{showZeniAccountRoute:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:R,showTreasuryRoute:I,isTenantBankingOnly:h,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"tasks",element:e.jsx(Ft,{})}),e.jsx(n,{path:"tasks/*",element:e.jsx(Ut,{})}),e.jsx(n,{path:"address/*",element:ts||me||as||ns?e.jsx(ht,{}):e.jsx(C,{showZeniAccountRoute:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:R,showTreasuryRoute:I,isTenantBankingOnly:h,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"checking/*",element:g?e.jsx(At,{}):e.jsx(f,{})}),e.jsx(n,{path:"treasury/*",element:I?e.jsx(ft,{}):e.jsx(f,{})}),e.jsx(n,{path:"performance",element:K===!0?e.jsx(Ct,{}):e.jsx(Ue,{tenantEmailDomain:i})}),e.jsx(n,{path:"month_end_close_checks/review/*",element:K===!0&&P===!1?e.jsx(vt,{}):e.jsx(Ue,{tenantEmailDomain:i})}),e.jsx(n,{path:"expense-automation/actual-matching/:matchId",element:K===!0&&P===!1&&We===!0?e.jsx(Ot,{}):e.jsx(f,{})}),e.jsx(n,{path:"notifications/*",element:e.jsx(yt,{})}),e.jsx(n,{path:"vendors/*",element:$e?e.jsx(Rt,{}):e.jsx(f,{})}),e.jsx(n,{path:"bill/*",element:he?e.jsx(ve,{}):e.jsx(C,{showZeniAccountRoute:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:R,showTreasuryRoute:I,isTenantBankingOnly:h,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"bills/*",element:he?e.jsx(ve,{}):e.jsx(C,{showZeniAccountRoute:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:R,showTreasuryRoute:I,isTenantBankingOnly:h,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"reimbursement/*",element:Ee?e.jsx(Oe,{}):e.jsx(C,{showZeniAccountRoute:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:R,showTreasuryRoute:I,isTenantBankingOnly:h,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"reimbursements/*",element:Ee?e.jsx(Oe,{}):e.jsx(C,{showZeniAccountRoute:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:R,showTreasuryRoute:I,isTenantBankingOnly:h,showChargeCardRoute:m,tenantEmailDomain:i})}),e.jsx(n,{path:"settings/*",element:Se?e.jsx(jt,{hasAdminLevelAccess:me}):e.jsx(f,{})}),e.jsx(n,{path:"invoicing/*",element:Me&&Ze?e.jsx(Tt,{}):e.jsx(f,{})}),e.jsx(n,{path:"cards/ask",element:m&&M?e.jsx(Pe,{isFileUploadEnabled:Q}):e.jsx(f,{})}),e.jsx(n,{path:"cards/ask/:session_id",element:m&&M?e.jsx(Pe,{isFileUploadEnabled:Q}):e.jsx(f,{})}),e.jsx(n,{path:"cards/*",element:m?e.jsx(bt,{}):e.jsx(f,{})}),e.jsx(n,{path:"rewards/*",element:Ye?e.jsx(Pt,{}):e.jsx(f,{})}),e.jsx(n,{path:"/ai-cfo",element:M?e.jsx(u,{to:"explore"}):e.jsx(f,{})}),e.jsx(n,{path:"/ai-cfo/",element:M?e.jsx(u,{to:"explore"}):e.jsx(f,{})}),e.jsx(n,{path:"/ai-cfo/:session_id",element:M?e.jsx(wt,{isFileUploadEnabled:Q}):e.jsx(f,{})}),e.jsx(n,{path:"*",element:e.jsx(f,{})})]})}):null:(o(void 0),e.jsx(u,{to:`/${i}/onboarding`,replace:!0})):(o(void 0),e.jsx(u,{to:`/${i}/onboarding/thankyou`,replace:!0})):null:(console.warn("User logged out!!"),o(void 0),e.jsx(u,{to:"/signin/auth",replace:!0,state:{...G.state,message:"...",origin:G.pathname}}))}},Symbol.toStringTag,{value:"Module"}));export{C as F,$t as S};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CevUFagi.js";import{a as i}from"./sentry-BrSPpZKf.js";import{u as l,g as c,N as u}from"./core-Bc2mnalE.js";import{z as n,k as a,R as m,a5 as p}from"./index-CtE8HnsY.js";import{g$ as g,Vo as y}from"./zeni-epic-state-VmxO3Mnv.js";import{n as b}from"./mui-CUsYvTMG.js";import"./recharts-BjkXpBn6.js";import"./analytics-D7SbUCRL.js";import"./plaid-Dxz6lSJz.js";import"./dnd-B0zyAl0s.js";import"./stripe-cKAAJElX.js";import"./lottie-Dhd_0CJG.js";import"./lexical-CCch0Fzo.js";import"./pdf-CuegwamZ.js";import"./utils-BKSIhN7N.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]="f1d5e0a6-731f-43d1-ad55-4987be6984c6",e._sentryDebugIdIdentifier="sentry-dbid-f1d5e0a6-731f-43d1-ad55-4987be6984c6")}catch{}})();function L(){const e=l(),t=c(),o=i.useRef(!1),d=n.isSignedIn(),r=t.state?.message==="logout"||d;return i.useEffect((()=>{if(r&&!o.current){o.current=!0;try{e(g()),y(),a.trackLogout(m.Event.logoutSuccess),a.resetUserIdentity(),n.clearAll()}catch(f){console.error("Error during sign out:",f)}finally{window.location.replace("/signin/auth")}}}),[r,e]),r?s.jsx(h,{children:s.jsx(p,{fetchState:"In-Progress"})}):s.jsx(u,{to:"../",replace:!0})}const h=b.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`;export{L as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as A}from"./liveblocks-CevUFagi.js";import{a as u}from"./sentry-BrSPpZKf.js";import{u as J,k as H,j as G,h as me,g as Se,i as ye,l as De}from"./core-Bc2mnalE.js";import{z as M,p as be,d as I,aq as Ee,a6 as he,k as Ge,R as Ce,e8 as Ae,l as F,a2 as Ie}from"./index-CtE8HnsY.js";import{QM as Re,Rx as ve,fI as Be,a3b as ne,gQ as Q,a3c as re,a36 as Le,R1 as X,a3d as Ke,Rd as Y,QO as we,Qq as Ue,RJ as ee,a3e as ae,gk as Pe,RA as Fe,RF as je,Rs as xe,Rq as te,RG as Oe,Rn as $e,a3f as Ne,a3g as ze,a3h as qe,a3i as Me,a3j as R,dz as Qe,dy as Ze,a3k as Ve,QL as We}from"./zeni-epic-state-VmxO3Mnv.js";import{n as Je}from"./mui-CUsYvTMG.js";import{u as He}from"./useAskAiCfoHostNavButtonProps-JRFYPtx4.js";import{M as Xe}from"./MobileAppDrawer-BixbLTmv.js";import{u as Ye}from"./useTaskManagerPusherEvents-CdVgZy4d.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]="cf7f5e14-eab5-4ead-af51-b6894f89a7cd",e._sentryDebugIdIdentifier="sentry-dbid-cf7f5e14-eab5-4ead-af51-b6894f89a7cd")}catch{}})();const _={TASK_CREATED:"task-created",TASK_UPDATED:"task-updated",TASK_SNOOZE_RESURFACED:"task-snooze-resurfaced",TASKS_BULK_UPDATED:"tasks-bulk-updated",TASKS_BULK_DELETED:"tasks-bulk-deleted"},ea=(e,t)=>e==null||e===""?[]:t.map((n=>`private-encrypted-${e}.${n}`)),aa=(e,t)=>e==null||e===""?[]:t.map((n=>`private-encrypted-${e}.${n}`)),j=e=>Array.isArray(e)&&e.every((t=>typeof t=="string")),oe=e=>typeof e.task_id=="string"?e.task_id:typeof e.id=="string"?e.id:null,ga=e=>{if(e==null||typeof e!="object")return null;const t=e,n=oe(t);if(n==null)return null;const c={task_id:n};return typeof t.parent_task_id=="string"&&(c.parent_task_id=t.parent_task_id),typeof t.sync_token=="string"&&(c.sync_token=t.sync_token),typeof t.is_deleted=="boolean"&&(c.is_deleted=t.is_deleted),typeof t.is_private=="boolean"&&(c.is_private=t.is_private),c},ta=e=>{if(e==null||typeof e!="object")return null;const t=e;return j(t.task_ids)?{task_ids:t.task_ids}:null},_a=e=>{if(e==null||typeof e!="object")return null;const t=e;return typeof t.task_id!="string"?null:{task_id:t.task_id}},sa=Je.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`,na=De((function(e,t){const n=ne(e,t.isTaskTemplatesEnabled),{taskGroupId:c}=t,p=c!=null&&c!==""?{...n,taskGroupsWithTasksList:n.taskGroupsWithTasksList.map((a=>({...a,tasks:a.tasks.filter((s=>s.taskGroupIds.includes(c)))}))).filter((a=>a.tasks.length>0))}:n,y=Le(e),f=M.isZeniUser(),v=e.taskDetailState?.subTaskCreateStatus?.fetchState;return{taskListView:p,tagListView:y,localData:p.localData,isTaskTemplatesEnabled:t.isTaskTemplatesEnabled,isZeniUser:f,subTaskCreateStatus:v}}),(function(e,t){const{navigate:n,currentTenant:c,location:p,isTaskTemplatesEnabled:y}=t,{tenantEmailDomain:f}=c,{groupByKey:v}=t.uiState;return{onTaskManagementRowClick:a=>{const s=se(f,a),D=F(p.state?.pathnameStackToGoBack,p.pathname);n(s,{state:{pathnameStackToGoBack:D}})},onReloadTasks:()=>{e(Q(!0,y))},onTabChange:a=>{e(Me(a))},onParentTaskClick:a=>{const s=se(f,a);window.open(s,"_blank","noopener")},bulkUpdateTasks:(a,s)=>{e(te(a,null,s))},onNewTaskClick:()=>{if(t.localData.defaultTaskGroupId!=null){const a=q(f,t.localData.defaultTaskGroupId),s=F(p.state?.pathnameStackToGoBack,p.pathname);n(a,{state:{pathnameStackToGoBack:s,message:"comingFromTaskListPage"}})}},onColumnSortConfigChanged:(a,s)=>{e(ae({uiState:{sortKey:a,sortOrder:s}}))},onFiltersChange:a=>{e(qe({filters:a}))},onSearchTextChanged:a=>{e(ze({searchText:a}))},onReloadCards:()=>{e(Q(!0,y))},onBackClick:()=>{if(p.state?.message==="triggerBackClick"){const a=Ie(p.state?.pathnameStackToGoBack),s=a.poppedPathname??"../";n(s,{state:{pathnameStackToGoBack:a.newStack}})}else n("../")},updateLocalData:a=>{e(Ne({localData:a}))},resetLocalData:()=>{e(re({taskGroupById:t.taskGroupState.taskGroupById}))},handleCreateGroup:a=>{e($e(t.localData.newTaskGroupName,a))},assignGroupToTasks:a=>{e(te(t.localData.selectedTaskIds,a,Oe(t.uiState.groupByKey,a)))},onDeleteTaskGroup:a=>{e(xe(a))},onAddNewTaskToTaskGroup:a=>{if(t.localData.defaultTaskGroupId!=null){const s=oa(v,a);e(X({taskDetailLocalData:s}));const D=q(f,t.uiState.groupByKey==="groupName"?a:t.localData.defaultTaskGroupId),x=F(p.state?.pathnameStackToGoBack,p.pathname);n(D,{state:{pathnameStackToGoBack:x,message:"comingFromTaskListPage"}})}},onDragNDrop:(a,s)=>{e(je(t.localData.selectedTaskIds.length>0?t.localData.selectedTaskIds:[a],s))},onTaskGroupRename:(a,s)=>{e(Fe(a,s))},onTimeSpentUpdate:(a,s)=>{e(ee({task:a,updates:s}))},onShowToast:a=>{e(Pe(a))},onGroupByFilterChange:a=>{e(ae({uiState:{groupByKey:a}}))},updateTask:(a,s)=>{e(ee({task:a,updates:s}))},onCreateTagClick:(a,s)=>{e(Ue(a,s))},onSubtaskCreation:(a,s)=>{e(we({...s,parentTaskId:a}))},handleGroupTemplateClick:a=>{e(Y(a,[]))},handleGroupTemplateTaskClick:(a,s)=>{e(Y(a,[s]))},handleNewTaskInitialization:a=>{if(e(X({taskDetailLocalData:{...Ke,name:a}})),t.localData.defaultTaskGroupId!=null){const s=q(f,t.localData.defaultTaskGroupId),D=F(p.state?.pathnameStackToGoBack,p.pathname);n(s,{state:{pathnameStackToGoBack:D,message:"comingFromTaskListPage"}})}},onTaskGroupNameClick:a=>{n(`/${f}/tasks/group/${a}`)},onQuickResponsesClick:()=>{n(`/${f}/tasks/quick-responses`)}}}))(Ae);function ra(){const e=me(),t=J(),n=Se(),c=M.getSignedInUser(),p=M.isZeniUser(),y=H(),f=G((d=>Be(d))),{taskGroupId:v}=ye(),{useFeatureGate:a}=be(),{isFeatureEnabled:s}=a(I.isTaskTemplatesEnabled),{isFeatureEnabled:D}=a(I.isTaskCannedResponsesEnabled),{isFeatureEnabled:x}=a(I.isTaskCategorizationEnabled),{isFeatureEnabled:ie}=a(I.isTaskBulkResolutionEnabled),{isFeatureEnabled:le}=a(I.isTaskGroupAssigneesEnabled),{isFeatureEnabled:ue}=a(I.isTaskRecurringParentEnabled),[ce,de]=u.useState(!1),O=G((d=>ne(d,s))),$=G((d=>d.taskGroupState)),B=O.fetchState,{isAiCfoAccessEnabled:ke,onAskAiCfoClick:pe}=He({mobileExploreReferrer:"Task Checklist"});Ee({isDataReady:B==="Completed"});const{markBoardFetchInFlight:Z,requestTaskRefetch:N}=(function(d){const m=J(),r=H(),T=u.useRef(!1),o=u.useRef(!1),k=u.useRef(!1),g=u.useRef(),l=u.useRef(),S=u.useRef(!1),L=u.useRef(),K=u.useCallback((()=>{L.current=r.getState().taskListState.byTab.live,S.current=!0}),[r]),w=u.useCallback((()=>{K(),m(Re())}),[m,K]),b=u.useCallback((()=>{g.current=r.getState().taskGroupState.taskGroupById,k.current=!0,m(ve())}),[m,r]),E=u.useCallback((()=>{T.current=!1,l.current!=null&&(clearTimeout(l.current),l.current=void 0),w(),k.current||r.getState().taskGroupViewState.fetchState==="In-Progress"?o.current=!0:b()}),[w,b,r]),z=u.useCallback((()=>{S.current?(T.current=!0,l.current==null&&(l.current=setTimeout((()=>{l.current=void 0,T.current&&r.getState().taskListState.fetchState!=="In-Progress"&&(S.current=!1,E())}),6e3))):E()}),[E,r]);u.useEffect((()=>{l.current!=null&&(clearTimeout(l.current),l.current=void 0),T.current=!1,o.current=!1,k.current=!1}),[d]);const h=G((i=>i.taskListState.fetchState)),C=G((i=>i.taskGroupViewState.fetchState)),U=G((i=>i.taskListState.byTab.live)),P=G((i=>i.taskGroupState.taskGroupById));return u.useEffect((()=>{h!=="In-Progress"&&(!S.current||U!==L.current||h==="Error")&&(S.current=!1,T.current&&(h!=="Completed"?h==="Error"&&(T.current=!1,l.current!=null&&(clearTimeout(l.current),l.current=void 0)):E()))}),[h,U,E]),u.useEffect((()=>{C!=="In-Progress"&&(!k.current||P!==g.current||C==="Error")&&(k.current=!1,o.current&&(o.current=!1,C!=="Error"&&b()))}),[C,P,b]),u.useEffect((()=>()=>{l.current!=null&&(clearTimeout(l.current),l.current=void 0)}),[]),{markBoardFetchInFlight:K,requestTaskRefetch:z}})(f?.tenantId);u.useEffect((()=>{y.getState().taskListState.hasValidState()||Z(),t(Q(!1,s))}),[f?.tenantId,t,s,Z,y]);const fe=u.useMemo((()=>{const d=[_.TASK_CREATED,_.TASK_UPDATED,_.TASKS_BULK_UPDATED,_.TASKS_BULK_DELETED],m=[_.TASK_CREATED,_.TASK_UPDATED,_.TASK_SNOOZE_RESURFACED,_.TASKS_BULK_UPDATED];return[...ea(f?.companyId,d),...aa(c?.userId,m)]}),[f?.companyId,c?.userId]);if(Ye({events:fe,onEvent:(d,m)=>{switch(d){case _.TASK_CREATED:case _.TASK_UPDATED:{const r=(T=>{if(T==null||typeof T!="object")return null;const o=T,k=oe(o);if(k==null||typeof o.tenant_id!="string"||typeof o.event_type!="string")return null;const g={task_id:k,tenant_id:o.tenant_id,event_type:o.event_type};return typeof o.is_private=="boolean"&&(g.is_private=o.is_private),j(o.assignees)&&(g.assignees=o.assignees),j(o.direct_assignees)&&(g.direct_assignees=o.direct_assignees),typeof o.created_by=="string"&&(g.created_by=o.created_by),j(o.task_group_ids)&&(g.task_group_ids=o.task_group_ids),typeof o.name=="string"&&(g.name=o.name),typeof o.parent_task_id=="string"&&(g.parent_task_id=o.parent_task_id),g})(m);if(r!=null){const T=y.getState(),o=r.task_id,k=o!=null?T.taskState.taskByID?.[o]:void 0,g=k!=null;if(!p)if(r.is_private===!0){if(!g)return}else{const l=c?.userId,S=new Set([...r.assignees??[],...r.direct_assignees??[]]);if(r.created_by!=null&&r.created_by!==""&&S.add(r.created_by),!(l!=null&&S.has(l))&&!g)return}if(d===_.TASK_UPDATED&&g&&k!=null&&Array.isArray(r.task_group_ids)){const l=new Set(Object.values(T.taskGroupState.taskGroupById??{}).filter((i=>i!=null&&!i.isDeleted)).map((i=>i.id))),S=(k.taskGroupIds??[]).filter((i=>l.has(i))),L=(r.task_group_ids??[]).filter((i=>l.has(i))),K=S.length===L.length&&S.every((i=>L.includes(i))),w=k.taskGroupIds??[],b=r.task_group_ids??[],E=w.length!==b.length||!w.every((i=>b.includes(i))),z=(i,Te)=>{const V=i??[],W=Te??[];if(V.length!==W.length)return!1;const ge=new Set(W);return V.every((_e=>ge.has(_e)))},h=r.name==null||r.name===k.name,C=r.is_private==null||r.is_private===k.isPrivate,U=r.assignees==null||z(r.assignees,k.assignees),P=r.direct_assignees==null;if(K&&E&&h&&C&&U&&P)return}}return void N()}case _.TASKS_BULK_DELETED:{const r=ta(m);return r==null?void 0:void r.task_ids.forEach((T=>t(We(T))))}case _.TASKS_BULK_UPDATED:case _.TASK_SNOOZE_RESURFACED:return void N()}},onSubscribed:()=>{N()}}),u.useEffect((()=>{B==="Completed"&&t(re({taskGroupById:$.taskGroupById}))}),[B,$.taskGroupById]),c==null)throw Error("Can't access task list page without signing in...");return A.jsxs(A.Fragment,{children:[B==="Completed"?A.jsx(he,{analytics:Ge,onLoad:d=>(m=>m.trackPageLoaded(Ce.Event.taskListPage))(d)}):null,A.jsxs(sa,{children:[A.jsx(Xe,{isAppContentDrawerOpen:ce,handleDrawerToggle:d=>{de(d)}}),A.jsx(na,{location:n,navigate:e,currentTenant:f,taskGroupId:v,taskGroupState:$,localData:O.localData,uiState:O.uiState,isTaskTemplatesEnabled:s,taskListFetchState:B,isTaskCategorizationEnabled:x,isTaskCannedResponsesEnabled:D,isTaskBulkResolutionEnabled:ie,isTaskGroupAssigneesEnabled:le,isTaskRecurringParentEnabled:ue,isAiCfoAccessEnabled:ke,onAskAiCfoClick:pe})]})]})}const se=(e,t)=>`/${e}/tasks/${encodeURIComponent(t)}`,q=(e,t)=>`/${e}/tasks/new/${t}`,oa=(e,t)=>{if(e==="assignee"){const n=t.split(",");return{...R.taskDetailLocalData,assignee:n}}if(e==="priority"){const n=Qe(t);return{...R.taskDetailLocalData,priority:n}}if(e==="status"){const n=Ze(t);return{...R.taskDetailLocalData,status:n}}if(e==="tag"){const n=t.split(",");return{...R.taskDetailLocalData,tagIds:n}}if(e==="dueDate"){const n=Ve(t);return{...R.taskDetailLocalData,dueDate:n}}return{...R.taskDetailLocalData}},ma=Object.freeze(Object.defineProperty({__proto__:null,default:ra},Symbol.toStringTag,{value:"Module"}));export{_ as T,aa as a,ea as b,_a as c,ta as d,ra as e,ma as f,ga as t};
|