@zeniai/web-app-ui 5.4.1-dev → 5.4.2-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-CwpNdkmg.js → AccountMappingScreen-DfowxAc-.js} +1 -1
- package/dist/assets/ActualMatchingMatchDetailScreen-DpqBi3lD.js +1 -0
- package/dist/assets/AddressRoutes-DAUco87Q.js +1 -0
- package/dist/assets/AddressScreen-Diwm_C2C.js +9 -0
- package/dist/assets/{AiCfoScreen-Mop8GwP8.js → AiCfoScreen-k4JvYL5q.js} +1 -1
- package/dist/assets/{AppDrawer-D8l4xFIY.js → AppDrawer-DBMNE-tW.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-BuDIXzCh.js → BillPayApprovalRoutes-D9G2_YOz.js} +1 -1
- package/dist/assets/{BillPayRoutes-BepWGIQA.js → BillPayRoutes-P8ok7ngf.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-CrtGdhXl.js → BusinessVerificationPageScreen-B4wIaSZ_.js} +2 -2
- package/dist/assets/CardsAiCfoScreen-csdwe-Dr.js +14 -0
- package/dist/assets/{ChargeCardRoutes-DDmhnmhS.js → ChargeCardRoutes-D1ZdbX_z.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-UQoTd90a.js → CompanyPassportScreen-d28meAXB.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-BoOX_y4E.js → ConnectionAuthScreen-CIc-7q2q.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-BCLoKVKx.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-BdSnyHRG.js → CustomerOnboardingRoutes-DcNGx8td.js} +3 -3
- package/dist/assets/{DashboardRoutes-Bs9dEevm.js → DashboardRoutes-Cn2JvSx_.js} +3 -3
- package/dist/assets/{DefaultTenantHome-l_1V4BPr.js → DefaultTenantHome-CsXVfKlZ.js} +1 -1
- package/dist/assets/DomesticWireDetailScreen-Cxel_MVr.js +18 -0
- package/dist/assets/{DrawerScreen-MkRuLqUU.js → DrawerScreen-C2EkheMn.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-BoMYch1p.js → EntityDetailRoutes-DYnrDK2H.js} +1 -1
- package/dist/assets/ExpenseAutomationRoutes-CFonPv_D.js +38 -0
- package/dist/assets/{FeaturePreviewScreen-Dck-h9RH.js → FeaturePreviewScreen-DDYtwmUp.js} +1 -1
- package/dist/assets/{HubSpotOAuthCallbackScreen-BMI_G2ee.js → HubSpotOAuthCallbackScreen-DrQG17NC.js} +1 -1
- package/dist/assets/{InboxNotificationsProvider-TM2N59sT.js → InboxNotificationsProvider-Bh2XZMjj.js} +1 -1
- package/dist/assets/{InvoicingRoutes-jyFsZoET.js → InvoicingRoutes-aLT5Oywn.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-CeTFMXyt.js → MagicLinkRoutes-B98z2_te.js} +3 -3
- package/dist/assets/MagicLinkSignInScreen-CUSvf6DA.js +12 -0
- package/dist/assets/{MobileAppDrawer-B8l2doly.js → MobileAppDrawer-CYOS7P1p.js} +1 -1
- package/dist/assets/NotFoundScreen-Cg7JNFkQ.js +1 -0
- package/dist/assets/{NotificationRoutes-DRtqPFLG.js → NotificationRoutes-Cw3UPZ5H.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-CXYDMo83.js → OAuthConsentScreen-DvsId_K6.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-CUsWcA3X.js → PandLWithForecastRoutes-BtveWrPc.js} +1 -1
- package/dist/assets/{PaymentLinkScreen-CytqkD2I.js → PaymentLinkScreen-CyUO-4Wu.js} +1 -1
- package/dist/assets/{PeopleRoutes-Ccaq-4FY.js → PeopleRoutes-DVMl8LKW.js} +1 -1
- package/dist/assets/PerformanceRoutes-DDDEYaGA.js +1 -0
- package/dist/assets/{Preview-DdNlHcw7.js → Preview-Bk5qAysj.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-Bmu4vOrn.js → QBOConnectionScreen-BZaN5thA.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-BhU4bIfF.js → ReimbursementApprovalRoutes-D7E_M16q.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-PInTcz3b.js → ReimbursementApprovalRuleDetailScreen-CXyB0PcY.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-Dl102T-O.js → ReimbursementRoutes-CRRoqag9.js} +4 -4
- package/dist/assets/{ReportsRoutes-B2CyvsP0.js → ReportsRoutes-Cgg5QVAq.js} +1 -1
- package/dist/assets/RewardsRoutes-phMlkhIl.js +1 -0
- package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-p2vq5B9i.js → ScheduleDetailsPrepaidExpensesScreen-y_RWHH2C.js} +4 -4
- package/dist/assets/{ScreenRoutes-B155Z_PT.js → ScreenRoutes-BfdhNdv6.js} +2 -2
- package/dist/assets/{SettingsRoutes-Cl-6oX8J.js → SettingsRoutes-C030Wm5E.js} +1 -1
- package/dist/assets/{SetupPagesScreen-wTK2UkyR.js → SetupPagesScreen-BhmiBe4o.js} +5 -5
- package/dist/assets/{SignInScreen-BPwb_Vzw.js → SignInScreen-uxgoeqdj.js} +1 -1
- package/dist/assets/{SignOutScreen-Q021eXBv.js → SignOutScreen-DlEh7dhK.js} +1 -1
- package/dist/assets/{TaskListScreen-BEQG6eXo.js → TaskListScreen-BAeSb59G.js} +2 -2
- package/dist/assets/{TaskRoutes-SAL6oNdJ.js → TaskRoutes-B0DNH_tz.js} +2 -2
- package/dist/assets/TransactionDetailRoutes-CvRMjyJd.js +1 -0
- package/dist/assets/{TransactionDetailScreen-GlpiD3Ft.js → TransactionDetailScreen-wMG_3E3j.js} +1 -1
- package/dist/assets/{TransactionListRoutes-CEr-_gt3.js → TransactionListRoutes-BP3KJlde.js} +1 -1
- package/dist/assets/{TreasuryRoutes-Dgot2Msu.js → TreasuryRoutes-18cBgc_x.js} +1 -1
- package/dist/assets/{VendorsRoutes-nIrlEnpr.js → VendorsRoutes-DLFjUFun.js} +10 -10
- package/dist/assets/{WiseConfirmationScreen-DKXZAv0O.js → WiseConfirmationScreen-Tt2rFi3i.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-CjX_nDmm.js → ZeniAccountRoutes-wVFrAQ-3.js} +9 -9
- package/dist/assets/ZeniAccountStatementScreen-ku-97h_n.js +9 -0
- package/dist/assets/{accountMappingHelper-DpK2x2pO.js → accountMappingHelper-CHry1WVR.js} +1 -1
- package/dist/assets/{analytics-CvDaD8K9.js → analytics-C4h9uwWs.js} +1 -1
- package/dist/assets/{analyticsHelper-CcVWjFHu.js → analyticsHelper-CsTjLa_U.js} +1 -1
- package/dist/assets/{core-BEvMNwAD.js → core-DRRkK-nh.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-CYLAirQ0.js → decodeURIComponentSafe-DZs4O12l.js} +1 -1
- package/dist/assets/{dnd-B2-znEgk.js → dnd-_2sJc_42.js} +1 -1
- package/dist/assets/{empty-MCEjxjzc.js → empty-CTTtTEUb.js} +1 -1
- package/dist/assets/{empty-YxcYKzZr.js → empty-DLiHGVfw.js} +1 -1
- package/dist/assets/{emptyVideoElement-B-77FBVY.js → emptyVideoElement-DVRRW-8o.js} +1 -1
- package/dist/assets/{epic-DBYEx4XZ.js → epic-1JvU70v2.js} +1 -1
- package/dist/assets/{expenseAutomationHelper-n1rnu5_l.js → expenseAutomationHelper-BC0QbU5f.js} +1 -1
- package/dist/assets/{getLocaleForTenant-CX8UOlD0.js → getLocaleForTenant-UyMudcKz.js} +1 -1
- package/dist/assets/{index-BLeLfbhZ.js → index-4rD-Inub.js} +2 -2
- package/dist/assets/{index-Bo2P7yfm.js → index-C4gCcAzE.js} +1 -1
- package/dist/assets/{index-DjrnIAGb.js → index-C8t0n_dK.js} +6800 -6800
- package/dist/assets/{index-CknhGBud.js → index-C9SmCfob.js} +1 -1
- package/dist/assets/{index-BRtn7Fg5.js → index-DV4hjrJB.js} +1 -1
- package/dist/assets/{index-CHQdsKk6.js → index-DojZx2HJ.js} +1 -1
- package/dist/assets/{index-BNJSTOyr.js → index-DsnNO9ob.js} +1 -1
- package/dist/assets/{index-B8gVWGQ4.js → index-tDitJ4zF.js} +1 -1
- package/dist/assets/{lexical-VH-Dh1bf.js → lexical-DcIe1jg7.js} +1 -1
- package/dist/assets/{liveblocks-DXMWX-Ft.js → liveblocks-BMZsanry.js} +1 -1
- package/dist/assets/{lottie-CunmMvLM.js → lottie-C0cdlMyO.js} +1 -1
- package/dist/assets/{mui-Bueuo6bM.js → mui-Cs4dDAVi.js} +1 -1
- package/dist/assets/{pathToGoBack-Mm2jhyqa.js → pathToGoBack-CkgUjsRE.js} +1 -1
- package/dist/assets/{pdf-byaFE2JF.js → pdf-DTtYOrE_.js} +4 -4
- package/dist/assets/{pdf-lib-Dvs_Xgmp.js → pdf-lib-0L0P6hdy.js} +1 -1
- package/dist/assets/{plaid-QK7fwo4O.js → plaid-3Z5MZAow.js} +1 -1
- package/dist/assets/{pusher-C7Bm4ma8.js → pusher-CwJ3oZrv.js} +1 -1
- package/dist/assets/{react-Cb2nvCGx.js → react-BFbkar2S.js} +1 -1
- package/dist/assets/{react-D6s1bFFI.js → react-CM1VGrgK.js} +1 -1
- package/dist/assets/{react-DIKP2Ov_.js → react-DEFivwtJ.js} +1 -1
- package/dist/assets/{react-DThrm6Ze.js → react-DdN0oGm3.js} +1 -1
- package/dist/assets/{react-B64enUeQ.js → react-Du8d_1DW.js} +1 -1
- package/dist/assets/{react-DaoXpjNM.js → react-clYOjmSd.js} +1 -1
- package/dist/assets/{recharts-DktJiIze.js → recharts-Dv_Zobiy.js} +1 -1
- package/dist/assets/{reportTimeframe-oMu7u5jv.js → reportTimeframe-BZ8sifp3.js} +1 -1
- package/dist/assets/{routePaths-B90RU5D-.js → routePaths-CXiI4qT4.js} +1 -1
- package/dist/assets/{sentry-B8ZcloT9.js → sentry-w92aQEbS.js} +1 -1
- package/dist/assets/{stripSplatSuffix-DqLj2OQc.js → stripSplatSuffix-Dsy_ttXJ.js} +1 -1
- package/dist/assets/{url-BjOfzwJn.js → url--dAX0VEW.js} +1 -1
- package/dist/assets/{url-BhMCuX-k.js → url-CfBqFLaf.js} +1 -1
- package/dist/assets/{useActualMatchingMatchDetail-B5L1drFO.js → useActualMatchingMatchDetail-D7oh67gX.js} +1 -1
- package/dist/assets/useAiCfoDashboardSuggestedQuestionsChips-C_YRnGmr.js +1 -0
- package/dist/assets/{useAskAiCfoHostNavButtonProps-HzP0ICaF.js → useAskAiCfoHostNavButtonProps-DYip9Dx9.js} +1 -1
- package/dist/assets/{useChargeCardPusherEvents-DafK3E50.js → useChargeCardPusherEvents-DoonLDx8.js} +1 -1
- package/dist/assets/{useDeviceId-TkNUqREt.js → useDeviceId-BCt1yivX.js} +1 -1
- package/dist/assets/{useEmailConnectResultRefresh-bSDRfQXs.js → useEmailConnectResultRefresh-Bp56oLLy.js} +1 -1
- package/dist/assets/{useEnsureVendorListLoaded-CbpMm19m.js → useEnsureVendorListLoaded-C9_7Q9zw.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-DMWJ57or.js → useInitialThreadRequest-BLzbdgeM.js} +1 -1
- package/dist/assets/{useTaskManagerAccess-D-e_eB5r.js → useTaskManagerAccess-D2-4N0AP.js} +1 -1
- package/dist/assets/{useTaskManagerPusherEvents-DBT26LaD.js → useTaskManagerPusherEvents-DiIvQwiL.js} +1 -1
- package/dist/assets/{utils-BVoHYbte.js → utils-BKjdMjTj.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-DcDvlXJT.js → withTransactionSidePanel-By5bvka9.js} +2 -2
- package/dist/assets/{zeni-epic-state-D1qILDrP.js → zeni-epic-state-BgQvRRQh.js} +7 -7
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/ActualMatchingMatchDetailScreen-BE4yaDq3.js +0 -1
- package/dist/assets/AddressRoutes-DRLOkAC3.js +0 -1
- package/dist/assets/AddressScreen-D--nXmCk.js +0 -9
- package/dist/assets/CardsAiCfoScreen-sTrfRKYu.js +0 -14
- package/dist/assets/CustomerOnboardingAuthScreen-BVwisf0O.js +0 -1
- package/dist/assets/DomesticWireDetailScreen-BRQnjG76.js +0 -18
- package/dist/assets/ExpenseAutomationRoutes-tvVgBVw2.js +0 -38
- package/dist/assets/MagicLinkSignInScreen-CkLCfVZb.js +0 -12
- package/dist/assets/NotFoundScreen-D3mOwLoO.js +0 -1
- package/dist/assets/PerformanceRoutes-1eLkkMnP.js +0 -1
- package/dist/assets/RewardsRoutes-BDHyGFdK.js +0 -1
- package/dist/assets/TransactionDetailRoutes-CPTgaDiE.js +0 -1
- package/dist/assets/ZeniAccountStatementScreen-D_iLjeEJ.js +0 -9
- package/dist/assets/useAiCfoDashboardSuggestedQuestionsChips-CEfbNmUc.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-C8t0n_dK.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-w92aQEbS.js"><link rel="modulepreload" crossorigin href="/assets/core-DRRkK-nh.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-BgQvRRQh.js"><link rel="modulepreload" crossorigin href="/assets/mui-Cs4dDAVi.js"><link rel="modulepreload" crossorigin href="/assets/analytics-C4h9uwWs.js"><link rel="modulepreload" crossorigin href="/assets/utils-BKjdMjTj.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.2-dev",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/**/*"
|
|
6
6
|
],
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"@sentry/react": "^9.42.1",
|
|
30
30
|
"@stripe/stripe-js": "^4.4.0",
|
|
31
31
|
"@zeniai/client-analytics": "2.1.9",
|
|
32
|
-
"@zeniai/client-epic-state": "5.2.
|
|
33
|
-
"@zeniai/web-components": "4.4.
|
|
32
|
+
"@zeniai/client-epic-state": "5.2.96",
|
|
33
|
+
"@zeniai/web-components": "4.4.38",
|
|
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-DXMWX-Ft.js";import{a as y}from"./sentry-B8ZcloT9.js";import{a2 as A,dP as v}from"./index-DjrnIAGb.js";import"./mui-Bueuo6bM.js";import{u as F}from"./useActualMatchingMatchDetail-B5L1drFO.js";import R from"./NotFoundScreen-D3mOwLoO.js";import{i as P,h as U,g as w}from"./core-BEvMNwAD.js";import"./zeni-epic-state-D1qILDrP.js";import"./recharts-DktJiIze.js";import"./analytics-CvDaD8K9.js";import"./plaid-QK7fwo4O.js";import"./dnd-B2-znEgk.js";import"./stripe-cKAAJElX.js";import"./lottie-CunmMvLM.js";import"./lexical-VH-Dh1bf.js";import"./pdf-byaFE2JF.js";import"./utils-BVoHYbte.js";import"./stripSplatSuffix-DqLj2OQc.js";import"./decodeURIComponentSafe-CYLAirQ0.js";import"./routePaths-B90RU5D-.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]="d983674b-8653-4e6a-aa34-fb0424b786be",t._sentryDebugIdIdentifier="sentry-dbid-d983674b-8653-4e6a-aa34-fb0424b786be")}catch{}})();function V(){const{matchId:t,tenantEmailDomain:e}=P(),o=U(),n=w(),k=F(t??""),r=y.useCallback((()=>{const b=A(n.state?.pathnameStackToGoBack);o(b.poppedPathname??`/${e??""}/month_end_close_checks/review`,{state:{pathnameStackToGoBack:b.newStack}})}),[n.state,o,e]);if(t==null)return s.jsx(R,{});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(v,{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(R,{}):s.jsx(v,{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-DXMWX-Ft.js";import{A as i}from"./AddressScreen-D--nXmCk.js";import s from"./NotFoundScreen-D3mOwLoO.js";import"./sentry-B8ZcloT9.js";import{n as d,o as r}from"./core-BEvMNwAD.js";import"./zeni-epic-state-D1qILDrP.js";import"./recharts-DktJiIze.js";import"./index-DjrnIAGb.js";import"./mui-Bueuo6bM.js";import"./analytics-CvDaD8K9.js";import"./plaid-QK7fwo4O.js";import"./dnd-B2-znEgk.js";import"./stripe-cKAAJElX.js";import"./lottie-CunmMvLM.js";import"./lexical-VH-Dh1bf.js";import"./pdf-byaFE2JF.js";import"./utils-BVoHYbte.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 r}from"./liveblocks-DXMWX-Ft.js";import{a as S}from"./sentry-B8ZcloT9.js";import{h as T,u as P,g as j,i as E,j as $,l as B}from"./core-BEvMNwAD.js";import{$ as L,z as M,V as D,a5 as K,a6 as R,k as C,R as m,a1 as W,W as h,a2 as z}from"./index-DjrnIAGb.js";import{Wa as _,it as F,fI as U,Wb as V,ca as G,Wc as N,mL as O}from"./zeni-epic-state-D1qILDrP.js";import{u as q,n as H}from"./mui-Bueuo6bM.js";import J from"./NotFoundScreen-D3mOwLoO.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]="33b60b70-99ec-4c7b-9a4d-34a97e53b49c",e._sentryDebugIdIdentifier="sentry-dbid-33b60b70-99ec-4c7b-9a4d-34a97e53b49c")}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&&V(s.roleMap),n=i||c==="user_address"||G(l?.userRole??[])||a?void 0:"readonly";if(o==null){const t=N(c,e);return{addressToEdit:t?.addressToCreate,loadingState:t?.status?.fetchState,googleAPIKey:h.googleMapsAPIKey,isDisabled:n,isSubPage:i,dontShowSaveConfirmationPopup:s.dontShowSaveConfirmation}}const d=_(e,o);return{addressToEdit:d.address,loadingState:d.fetchState,googleAPIKey:h.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,d=z(n?.pathnameStackToGoBack);let t=d.poppedPathname??k();const u=n?.queryParams;if(u){const g=new URLSearchParams(u).toString();g&&(t=`${t}?${g}`)}o(t,{state:{pathnameStackToGoBack:d.newStack}})}};return{onSubmitHandler:a=>{const n=Y(a);e(O({addressType:c,addressToCreate:n})),C?.trackSaveAddressClicked(m.Event.saveAddressClicked,{street:a.street.addressString,city:a.city,state:a.state,country:a.country.selectedOption??"",postalCode:a.postalCode,suite:a.suite,secondaryInfo:a.secondaryInfo}),l(s.bankAccountContext)},onCancel:()=>{l(s.bankAccountContext)}}}))(W);function re({isSubPage:e,hideAddressSubTitle:s=!1,hideAddressBackButton:o=!1,dontShowSaveConfirmation:i,accountContext:c,addressTypeParam:l}){const a=T(),n=P(),d=j(),{addressId:t,addressType:u}=E(),g=L(),v=q(),w=M.getSignedInUser(),[p,I]=S.useState(t==null),f=$((b=>t!=null?_(b,t).fetchState:"Not-Started")),x=D();if(w==null)throw Error("Can't access address page without signing in...");const A=b=>b.trackPageLoaded(t!=null?m.Event.editAddress:m.Event.addAddress),y=l??u;return S.useEffect((()=>{p||t==null||(I(!0),n(F(t,!1)))}),[p,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)?!p&&f==="Not-Started"||p&&f==="In-Progress"?r.jsx(K,{fetchState:f,style:{backgroundColor:v.colors.grey5}}):t!=null&&f==="Error"?(a(`${k(1)}/new`,{replace:!0}),r.jsx(r.Fragment,{})):r.jsxs(r.Fragment,{children:[r.jsx(R,{analytics:C,onLoad:A}),r.jsx(Q,{windowSize:g,children:r.jsx(X,{location:d,navigate:a,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:s,addressId:t,addressType:y,dontShowSaveConfirmation:i,bankAccountContext:c,roleMap:x?.loggedInUserRoleMap})})]}):r.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{re as A,Y as t};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import{j as g}from"./liveblocks-DXMWX-Ft.js";import{a as r}from"./sentry-B8ZcloT9.js";import{u as he,h as Ce,g as fe,j as H,i as Se,l as ge}from"./core-BEvMNwAD.js";import{e8 as be,a as Pe,e9 as ye,z as Ie,eb as we,ed as W,ee as Ee,bo as G,a6 as ke,k as F,ef as M,ep as xe,G as Ae,R as Te,w as Ue,ei as Oe,ej as _e,at as ve,em as Qe,en as je,bk as De,eo as Fe}from"./index-DjrnIAGb.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-D1qILDrP.js";import{D as Je,n as L,v as Ye,S as Ke}from"./mui-Bueuo6bM.js";import"./recharts-DktJiIze.js";import"./analytics-CvDaD8K9.js";import"./plaid-QK7fwo4O.js";import"./dnd-B2-znEgk.js";import"./stripe-cKAAJElX.js";import"./lottie-CunmMvLM.js";import"./lexical-VH-Dh1bf.js";import"./pdf-byaFE2JF.js";import"./utils-BVoHYbte.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]="92067c61-1200-4788-9d4a-8e0d65b088de",t._sentryDebugIdIdentifier="sentry-dbid-92067c61-1200-4788-9d4a-8e0d65b088de")}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=ge((function(t,s){const d=J(t),l=s.isSubmitting,u=_e(t,{allUsers:s.allUsers,onCardPolicyVendorSearchTextChange:s.onCardPolicyVendorSearchTextChange});return{showSampleQuestions:s.sessionFromUrl==="new_chat"&&d.uiState.currentChatSessionId==null,aiCfoView:d,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:d,currentTenant:l,userId:u,navigate:o,currentChatSessionId:P,allSessionsWithOrderedQuestionAnswers:C,isAiCardCreationEnabled:x,isCardPolicyEnabled:A,cardPolicyPageContext:T}=s,f=l.tenantEmailDomain,c=d.state?.referrer,h=c===X?Z(f):$(f);return{onEventReceived:(a,n)=>{if(a===Y&&typeof n.text=="string"&&typeof n.metadata=="object"){const e=n,m=Ne(e.type),y=e.metadata.chat_session_id??null,{currentChatSession:U,currentQuestionAnswer:b,currentQuestionAnswerSummary:p}=G(C,y);m!=="answer"?F.trackAICFOChatResponseGenerated(m,b?.question.questionText??"",e.text,y,Fe(p,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:m,fetchState:{fetchState:"Completed",error:void 0}})),t(Ge({chatSessionId:e.metadata.chat_session_id,answerPayload:e,userId:u}))}},onSubmit:(a,n,e,m)=>{a&&De(t,a,n,P,C,u,m,e,T)},updateCurrentInput:a=>{t(z(a))},onStopSubmit:()=>{},onUpdateScrollYOffset:a=>{t(Me(a))},onSelectSampleQuestion:()=>{},onBackClick:()=>{o(-1)},onCloseClick:()=>{o(h,{state:{...d.state}}),t(z(""))},togglePageView:()=>{o(h,{state:W(d.state)}),s.setIsAiCfoOpen(!0)},onCopy:()=>{},onThumbsUp:()=>{},onThumbsDown:()=>{},onTogglePageView:()=>{o(-1)},onNewChatClick:()=>{P!=null&&t(He()),o((function(a){return`/${a}/${K}`})(f),{state:{...d.state}})},onToggleCotCollapsed:(a,n)=>{t(Be({questionAnswerId:a,isCollapsed:n}))},...je(t,{isAiCardCreationEnabled:x,isCardPolicyEnabled:A,currentChatSessionId:P,onAfterCardsCreationSubmit:()=>{s.setIsAiCfoOpen(!0),o($(f),{state:{...d.state}})},onAfterCardPolicySubmit:()=>{s.setIsAiCfoOpen(!0),o(`/${f}/cards/policy`,{state:{...d.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:d}=Pe(),l=he(),u=Ce(),o=fe(),[P,C]=r.useState(!1),{allUsers:x,isAiCardCreationEnabled:A,isCardPolicyEnabled:T,onCardPolicyVendorSearchTextChange:f}=ye();r.useEffect((()=>{l($e())}),[l]);const c=H((i=>J(i))),h=Ie.getSignedInUser(),{session_id:a}=Se(),n=H((i=>Le(i))),e=c.uiState.currentChatSessionId,m=n.tenantEmailDomain,{handleUploadPromoClose:y,isUploadPromoVisible:U}=we({isFileUploadEnabled:t,tenantEmailDomain:m}),b=o.state,p=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||p==null||p===""||(_(p),v(O),Q.current=!0)}),[p,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,S=re?.isMasterTOSAccepted??!1,E=r.useRef(null);r.useEffect((()=>{if(S&&E.current!=null){const{question:i,shouldSubmit:w}=E.current;E.current=null,_(i),v(w),Q.current=!1}}),[S]);const{visitedSessions:V}=Ee(e),j=c.fetchState,D=c.uiState.chatSessionsNextPageToken.hasMore||!c.uiState.chatSessionsFirstPageFetched,R=e!=null?c.fetchChatSessionHistoryByChatSessionId?.[e]?.fetchState??"Not-Started":"Not-Started",q=e==null||(c.uiState.chatHistoryNextPageToken[e]?.hasMore??!0),B=c.allSessionsWithOrderedQuestionAnswers,{currentSessionQuestionAnswers:le}=G(B,e),de=le.length===0;r.useEffect((()=>{e!=null&&a!==e&&u((function(i,w){return`/${i}/${K}/${w}`})(m,e),{state:{...o.state},replace:!0})}),[e,a,m,u,o.state]),r.useEffect((()=>{a!=null&&e==null&&a!=="new_chat"&&l(Ve({sessionId:a,agentId:"controller"}))}),[]);const ce=r.useMemo((()=>({events:V.map((i=>`private-encrypted-chat-${i}.${Y}`)),eventCallback:(i,w,pe)=>pe.onEventReceived(i,w)})),[V]);if(r.useEffect((()=>{j!=="In-Progress"&&D&&l(Re())}),[j,D,l]),r.useEffect((()=>{e!=null&&R!=="In-Progress"&&q&&h!=null&&j==="Completed"&&!D&&l(qe(e,h.userId))}),[R,q,e,h,l]),h==null)throw Error("Can't access Cards AI CFO page without signing in...");const ue=a??"new_chat",me=e!=null&&c.responseStateByChatSessionId?.[e]?.answer?.fetchState==="In-Progress";return g.jsxs(at,{children:[g.jsx(ke,{analytics:F,onLoad:i=>i.trackPageLoaded(Te.Event.aiCFOPage)}),S?g.jsx(Xe,{answerExportEndPoint:s,...ce,currentChatSessionId:e,allSessionsWithOrderedQuestionAnswers:B,allUsers:x,isAiCardCreationEnabled:A,isCardPolicyEnabled:T,openOnboardingPage:()=>C(!0),userId:h.userId,setIsAiCfoOpen:d,navigate:u,sessionFromUrl:ue,location:o,isSubmitting:me,isEmptyChatWithSession:de,customPageTitle:k,chatHeader:ae,currentTenant:n,emailLinkQuestion:oe??void 0,autoSubmitEmailLinkQuestion:ne,onEmailLinkQuestionProcessed:ie,isFileUploadEnabled:t,isUploadPromoVisible:U,onUploadPromoClose:y,onCardPolicyVendorSearchTextChange:f,cardPolicyPageContext:se}):g.jsx(M,{isTOSAccepted:S,acceptMasterTOSState:c.masterTOSAcceptanceState,customPageTitle:k,onCloseClick:()=>{u(I?Z(m):$(m),{state:{...o.state}})},onCompleteClick:()=>{S||n.userRoleId==null||(p!=null&&p!==""&&(E.current={question:p,shouldSubmit:O}),l(N(n.userRoleId)))}}),g.jsx(Je,{anchor:"right",open:P,transitionDuration:250,PaperProps:{component:ot,style:{width:`${xe}vw`}},slotProps:{backdrop:{style:{backgroundColor:"transparent",cursor:"pointer"}}},onClose:()=>C(!1),children:g.jsx(st,{onClick:i=>i.stopPropagation(),children:g.jsx(M,{isTOSAccepted:S,acceptMasterTOSState:c.masterTOSAcceptanceState,customPageTitle:k,onCloseClick:()=>C(!1),onCompleteClick:()=>{S||n.userRoleId==null||l(N(n.userRoleId)),C(!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 i}from"./liveblocks-DXMWX-Ft.js";import{z as m}from"./index-DjrnIAGb.js";import{g as n}from"./QBOConnectionScreen-Bmu4vOrn.js";import"./sentry-B8ZcloT9.js";import{g as p,N as a}from"./core-BEvMNwAD.js";import"./zeni-epic-state-D1qILDrP.js";import"./recharts-DktJiIze.js";import"./mui-Bueuo6bM.js";import"./analytics-CvDaD8K9.js";import"./plaid-QK7fwo4O.js";import"./dnd-B2-znEgk.js";import"./stripe-cKAAJElX.js";import"./lottie-CunmMvLM.js";import"./lexical-VH-Dh1bf.js";import"./pdf-byaFE2JF.js";import"./utils-BVoHYbte.js";import"./empty-MCEjxjzc.js";import"./pdf-lib-Dvs_Xgmp.js";import"./index-BRtn7Fg5.js";import"./url-BhMCuX-k.js";import"./index-B8gVWGQ4.js";import"./decodeURIComponentSafe-CYLAirQ0.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,18 +0,0 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-DXMWX-Ft.js";import{h as w,g as C,j as h,l as A,i as V}from"./core-BEvMNwAD.js";import{ZO as k,ZV as J,gJ as W,gI as X,gH as Y,kT as q,XF as K,uV as L,fI as B,Zl as D,kR as F,ZP as S,ZY as T,kP as G,la as j}from"./zeni-epic-state-D1qILDrP.js";import{bN as M,$ as R,c as N,z as Z,a2 as p,F as v,a5 as O,bO as Q,J as U,bP as ee,p as te}from"./index-DjrnIAGb.js";import{u as H,n as z}from"./mui-Bueuo6bM.js";import"./sentry-B8ZcloT9.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]="db5e7539-3e6b-4c89-a75d-d65917338a3b",e._sentryDebugIdIdentifier="sentry-dbid-db5e7539-3e6b-4c89-a75d-d65917338a3b")}catch{}})();const ae=A(null,(function(e,t){return{onSaveVendor:a=>{e(q(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(K("common")),a!=null&&e(L(a))},onGetOtp:a=>{e(Y(a,"BillPayVendor"))},onResendOtp:a=>{e(X(a,"BillPayVendor"))},onVerifyOtp:(a,n)=>{e(W(a,n,"BillPayVendor"))},onVerifyOtpSuccess:(a,n,o)=>{e(J(a,n,o))}}}))(M);function _({vendorId:e,billId:t,isExpressPayPage:a}){const n=w(),o=C(),s=h((r=>k(r,e)));return l.jsx(ae,{location:o,navigate:n,vendorId:e,billId:t,vendorViewDetails:s,isExpressPayPage:a??!1})}const ne=z.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`,oe=A((function(e,t){const{vendorId:a,billId:n}=t,o=k(e,a),s=D(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,n);return{billId:n,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}}),(function(e,t){const{navigate:a,location:n,vendorId:o}=t;return{onFetchBankName:s=>{e(j(s))},onSaveHandler:s=>{e(G(t.bankAccountContext,s,"standard",o))},onCancel:()=>{(()=>{const s=p(n.state?.pathnameStackToGoBack),r=s.poppedPathname??P();a(r,{state:{pathnameStackToGoBack:s.newStack}})})(),e(S())},onACHDetailsUpdated:s=>{const{bankAccountSection:r}=s;e(T({data:r}))},onBackClick:()=>{if(e(F({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")a("../",{relative:"path"});else{const s=p(t.location.state?.pathnameStackToGoBack),r=s.poppedPathname??P(0);t.navigate(r,{state:{pathnameStackToGoBack:s.newStack}})}e(S())}}}))(Q);function me({vendorIdParam:e,accountContext:t}){const a=w(),n=C(),o=R(),{vendorId:s,billId:r}=V(),i=e??s,{useFeatureGate:d}=N(),c=Z.getSignedInUser(),b=h((u=>B(u))),g=H(),I=p(n.state?.pathnameStackToGoBack),m=t??(I.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),f=h((u=>k(u,i))),{isFeatureEnabled:x}=d(v.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=d(v.isDepositAccountsFeatureEnabled);if(c==null)throw Error("Can't access address page without signing in...");return m==="billDetail"&&f.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(O,{fetchState:f.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:g.colors.grey5}}):l.jsxs(ne,{windowSize:o,children:[l.jsx(_,{vendorId:i,billId:r}),l.jsx(oe,{location:n,navigate:a,billId:r,vendorId:i,currentTenant:b,bankAccountContext:m,isVendorRecommendationEnabled:x,isZeniAccountsFeatureEnabled:y})]})}const P=(e=2)=>{let t="../";for(let a=0;a<e;a++)t=`${t}../`;return t},fe=(e,t,a)=>{let n=`/${e}/bill/${encodeURIComponent(t)}`;return a=="draft"&&(n+="/edit"),n},he=e=>`/${e}/bills`,ke=(e,t)=>{let a=`/${e}/bill`;return a=t!=null?a.concat(`/${t}/edit`):a.concat("/new"),a},E=(e,t,a,n)=>{let o=`/${e}/bill`;return o+=a!=null?`/${a}/edit/vendor`:"/new/vendor",o+=n!=null?`/${n}/edit/${t}`:`/create/${t}`,o};function Se(e,t,a){return E(e,"ach",t,a)}function ve(e,t,a){return E(e,"domestic",t,a)}function ge(e,t,a){return E(e,"international",t,a)}const se=(e,t,a)=>{let n=`/${e}/bill/`;return n=a!=null?n.concat(`${encodeURIComponent(a)}/${t}/`):n.concat(`new/${t}/`),n},de=z.div`
|
|
10
|
-
display: flex;
|
|
11
|
-
height: 100vh;
|
|
12
|
-
width: 100%;
|
|
13
|
-
flex: 1 1 auto;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
align-items: center;
|
|
16
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
17
|
-
box-shadow: ${e=>`0px 2px ${U.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
18
|
-
`,re=A((function(e,t){const{vendorId:a,billId:n}=t,o=k(e,a),s=D(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,n);return{billId:n,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}}),(function(e,t){const{billId:a,navigate:n,location:o,vendorId:s,currentTenant:r}=t,{tenantEmailDomain:i}=r;return{onFetchBankName:d=>{e(j(d))},onSaveHandler:d=>{e(G(t.bankAccountContext,d,"us-domestic",s))},onWireDetailsUpdated:d=>{const{bankAccountSection:c}=d;e(T({data:c}))},onCancel:()=>{(()=>{const d=p(o.state?.pathnameStackToGoBack),c=d.poppedPathname??$();n(c,{state:{pathnameStackToGoBack:d.newStack}})})(),e(S())},onAddressClick:d=>{if(t.bankAccountContext==="express-pay")n("./add-address");else{const c=se(i,d,a),b=te(o.state?.pathnameStackToGoBack,o.pathname);n(c,{state:{pathnameStackToGoBack:b}})}},onBackClick:()=>{if(e(F({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")n("../",{relative:"path"});else{const d=p(t.location.state?.pathnameStackToGoBack),c=d.poppedPathname??$(0);t.navigate(c,{state:{pathnameStackToGoBack:d.newStack}})}e(S())}}}))(ee);function Ie({vendorIdParam:e,accountContext:t}){const a=w(),n=C(),o=R(),{vendorId:s,billId:r}=V(),i=e??s,d=Z.getSignedInUser(),{useFeatureGate:c}=N(),b=H(),g=h((u=>B(u))),I=p(n.state?.pathnameStackToGoBack),m=t??(I.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),f=h((u=>k(u,i))),{isFeatureEnabled:x}=c(v.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=c(v.isDepositAccountsFeatureEnabled);if(d==null)throw Error("Can't access address page without signing in...");return m==="billDetail"&&f.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(O,{fetchState:f.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:b.colors.grey5,boxShadow:`0px 2px ${U.sp1} ${b.colors.dropShadowNormal}`}}):l.jsxs(de,{windowSize:o,children:[l.jsx(_,{vendorId:i,billId:r}),l.jsx(re,{location:n,navigate:a,billId:r,vendorId:i,currentTenant:g,bankAccountContext:m,isVendorRecommendationEnabled:x,isZeniAccountsFeatureEnabled:y})]})}const $=(e=2)=>{let t="../";for(let a=0;a<e;a++)t=`${t}../`;return t};export{me as A,Ie as D,_ as V,fe as a,se as b,ke as c,ve as d,he as g,ge as i,Se as v};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import{j as P}from"./liveblocks-DXMWX-Ft.js";import{u as ge,h as Ue,g as Ie,j as _,i as ve,t as Yn,l as mo,n as po,o as Ye,N as ho}from"./core-BEvMNwAD.js";import{fI as Ae,a1_ as Wn,q4 as Oe,U_ as xt,Aq as So,a1$ as fo,a20 as go,a21 as Io,a22 as yt,a23 as rt,gk as wt,a24 as kn,eH as Co,g3 as ko,a25 as bn,a26 as dt,qX as bo,uY as To,gW as yo,gU as Po,a27 as Eo,r8 as vo,rh as Ao,qf as Ro,qt as Hn,gT as ue,gV as xo,a28 as wo,qP as Kn,ri as Do,qq as Fo,ql as _o,v2 as Mo,gS as Ee,a29 as pt,CA as Xn,N4 as Qn,a2a as Zn,F$ as ea,a2b as Bo,e$ as Oo,f1 as Uo,sZ as Dt,XS as Tn,XU as Vo,m6 as jo,XV as $o,md as zo,dn as Lo,DT as Ft,a2c as Go,a2d as No,a2e as qo,a2f as Jo,fp as _t,sN as yn,a2g as Yo,XE as Wo,a2h as Ho,a2i as Ko,mf as Xo,a2j as Qo,RP as Zo,me as es,m3 as ts,qI as ta,rn as ht,tA as na,tW as ns,UQ as aa,rm as Pn,rp as oa,rr as as,bG as os,nC as ss,nz as cs,rq as ut,ro as Pe,a2k as is,rI as En,a2l as ls,a2m as rs,sR as ds,sS as us,XA as ms,WG as sa,a1s as ps,a2n as hs,XG as vn,XF as lt,a2o as An,mu as Ss,a2p as fs,a2q as gs,a2r as Is,a2s as Cs,qD as ks,a2t as bs,a2u as Ts,a2v as ys,ry as Ps,mh as Es,m8 as vs,a2w as As,mg as Rn,Y3 as Rs,a2x as xs,a2y as ws,uz as Ds,ua as Fs,u9 as Pt,a2z as _s,a2A as Ms,a2B as Bs,a2C as Os,nN as Us,br as ca,nI as xn,nu as Vs,a2D as js,h3 as $s,nF as zs,s$ as Ls,t1 as Gs,sK as Ns,WJ as qs,WK as Js,Ft as Ys,Fs as Ws,FJ as Hs,a2E as wn,sQ as Ks,sl as Xs,a2F as Qs,s1 as Zs,s6 as ec,sh as tc,s4 as nc,a2G as ac,rZ as oc,sg as sc,sW as cc,a2H as ic,t7 as lc,sE as rc,td as dc,sJ as uc,rJ as mc,a2I as pc,q$ as hc,qz as Sc,qG as Dn,rt as fc,a2J as gc,a2K as Ic,a2L as Cc,a2M as kc,a2N as bc,a2O as Tc,a2P as yc,th as Pc,a2Q as Ec,a2R as vc,a2S as Fn,uK as Ac,u1 as Rc,tS as _n,tQ as xc,a2T as wc,tF as Dc,tk as Fc,tT as _c,a2U as Mc,a2V as Bc,tq as Oc,a2W as Uc,tl as Vc,tp as jc,tn as $c,tZ as zc,a2X as Mn,q8 as Et,a2Y as Lc,E3 as Bn,cA as Gc,qu as Nc,a2Z as qc}from"./zeni-epic-state-D1qILDrP.js";import Ut from"./NotFoundScreen-D3mOwLoO.js";import{a as o,R as ia}from"./sentry-B8ZcloT9.js";import{n as Ve,S as Jc}from"./mui-Bueuo6bM.js";import{c as He,F as K,k as Z,p as te,ao as la,aq as ra,dO as Yc,dP as Wc,z as Ke,dQ as Mt,dR as Hc,dS as Kc,ac as We,dT as Xc,dU as On,ba as Un,dV as Qc,a5 as da,dW as Zc,j as mt,a as ei,dX as ti,dY as ni,Y as ai,V as oi,dZ as si,d_ as ci,d$ as ii,b4 as li,bs as ri,a9 as di,b5 as ui,b6 as mi,G as ua,w as pi,e0 as hi,at as Bt,e1 as Si,a2 as fi,e2 as gi,e3 as Ii}from"./index-DjrnIAGb.js";import{u as Vt}from"./useAskAiCfoHostNavButtonProps-HzP0ICaF.js";import{g as Vn,u as Ci,c as ki,h as bi,b as Ti,i as yi,r as Pi,C as Ei}from"./TransactionDetailScreen-GlpiD3Ft.js";import{u as vi,a as Ai}from"./useActualMatchingMatchDetail-B5L1drFO.js";import{d as Ri}from"./decodeURIComponentSafe-CYLAirQ0.js";import{m as jt,a as ma,b as pa,i as Ot}from"./expenseAutomationHelper-n1rnu5_l.js";import{u as ha,a as Sa,w as xi}from"./withTransactionSidePanel-DcDvlXJT.js";import{b as wi,S as Di,a as Fi,J as _i}from"./ScheduleDetailsPrepaidExpensesScreen-p2vq5B9i.js";import{s as jn,i as fa,h as Mi,j as Bi,v as Oi,c as Ui}from"./routePaths-B90RU5D-.js";import{a as vt}from"./accountMappingHelper-DpK2x2pO.js";import{D as Vi}from"./DrawerScreen-MkRuLqUU.js";import"./recharts-DktJiIze.js";import"./analytics-CvDaD8K9.js";import"./plaid-QK7fwo4O.js";import"./dnd-B2-znEgk.js";import"./stripe-cKAAJElX.js";import"./lottie-CunmMvLM.js";import"./lexical-VH-Dh1bf.js";import"./pdf-byaFE2JF.js";import"./utils-BVoHYbte.js";import"./useInitialThreadRequest-DMWJ57or.js";import"./stripSplatSuffix-DqLj2OQc.js";import"./pathToGoBack-Mm2jhyqa.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]="d7a4c41f-2027-4581-9fd8-4120b9cfe7c3",t._sentryDebugIdIdentifier="sentry-dbid-d7a4c41f-2027-4581-9fd8-4120b9cfe7c3")}catch{}})();const ji=()=>{const t=ge(),a=Ue(),S=Ie(),f=_((m=>Ae(m))),{useFeatureGate:d}=He(),{isFeatureEnabled:c}=d(K.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:l}=d(K.aiAuditScorePercentage),A=_((m=>m.expenseAutomationViewState.selectedPeriodByTenantId)),r=_((m=>Wn(m,f.tenantId))),{isAiCfoAccessEnabled:E,onAskAiCfoClick:k}=Vt({mobileExploreReferrer:"Month-End Close Overview"}),b=o.useCallback(((m,u,g=!1)=>{t(Oe({tenantId:u,period:{month:m.month,year:m.year},refreshViewInBackground:g}))}),[]),I=o.useCallback((m=>{const u=S.state?.referrer;r.monthEndCloseChecks?.auditSummary!=null&&Z.trackMonthCloseAuditPage(m.month,m.year,r.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",r.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,u??null),t(xt(f.tenantId,m))}),[f.tenantId,r.monthEndCloseChecks?.auditSummary,r.monthEndCloseChecks?.reportEmailSentDate]),y=A[f.tenantId],D=o.useCallback((()=>{const m=S.state?.referrer;r.monthEndCloseChecks?.auditSummary!=null&&Z.trackMonthCloseAuditPage(y.month,y.year,r.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",r.monthEndCloseChecks.auditSummary.auditScorePercentage,!0,m??null),b(y,f.tenantId,!0)}),[b,y,f.tenantId,r.monthEndCloseChecks?.auditSummary,r.monthEndCloseChecks?.reportEmailSentDate]),U=te(S.state?.pathnameStackToGoBack,S.pathname),V=o.useCallback((()=>{if(r.monthEndCloseChecks!=null&&y!=null){const m=r.monthEndCloseChecks.monthEndCloseCheckList.find((u=>u.progress<100));if(m!=null)return void a(`./${m.id}/${y.month}-${y.year}`,{state:{pathnameStackToGoBack:U,message:"comingFromOverview"}});a(`./month_end_insights/${y.month}-${y.year}`,{state:{pathnameStackToGoBack:U,message:"comingFromOverview"}})}}),[r.monthEndCloseChecks,y]),{areTenantIdsInSync:T}=la();return ra({isDataReady:r.fetchState==="Completed"}),o.useEffect((()=>{y!=null&&r.fetchState!=="In-Progress"&&r.fetchState!=="Completed"&&T&&b(y,f.tenantId)}),[b,y,r.fetchState,f.tenantId,T]),o.useEffect((()=>{y!=null&&r.monthClosePerformanceTrendFetchStatus.fetchState!=="In-Progress"&&r.monthClosePerformanceTrendFetchStatus.fetchState!=="Completed"&&T&&t(So(y))}),[y,r.monthClosePerformanceTrendFetchStatus.fetchState,T]),o.useEffect((()=>{const m=setInterval((()=>{r.fetchState!=="In-Progress"&&r.fetchState==="Completed"&&D()}),3e5);return()=>clearInterval(m)}),[r.fetchState]),o.useEffect((()=>{if(r.fetchState==="Completed"&&r.monthEndCloseChecks?.auditSummary!=null){const m=S.state?.referrer;Z.trackMonthCloseAuditPage(r.selectedPeriod.month,r.selectedPeriod.year,r.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",r.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,m??null)}}),[r.fetchState,r.selectedPeriod,r.monthEndCloseChecks?.auditSummary,r.monthEndCloseChecks?.reportEmailSentDate]),P.jsx($i,{children:P.jsx(Yc,{monthEndCloseChecksView:r,isRealtimeInsightsFeatureEnabled:c,onMonthEndCheckClick:m=>{a(`./${m}/${y.month}-${y.year}`,{state:{pathnameStackToGoBack:U,message:"comingFromOverview",referrer:"Expense Automation - Overview"}})},onPeriodChange:I,handleReviewButtonClick:V,onBackClick:()=>{a("../../dashboard")},onReload:D,isAiCfoAccessEnabled:E,onAskAiCfoClick:k,aiAuditScorePercentageEnabled:l})})},$i=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 zi({isFullView:t,matchId:a,onClose:S}){const{match:f,detailFetchState:d,handleOpenBill:c,handleApproveAndReverse:l,handleIgnoreMatchSuggestion:A,handleRefresh:r,handleUndoReversal:E,lastMatchResults:k,lastUndoResults:b,refreshStatus:I,ignoreStatus:y,matchAndReverseStatus:D,undoReversalStatus:U}=vi(a);return P.jsx(Wc,{match:f,detailFetchState:d.fetchState,isRenderedInPanel:!t,isApproveInFlight:D.fetchState==="In-Progress",isIgnoreInFlight:y.fetchState==="In-Progress",isUndoInFlight:U.fetchState==="In-Progress",refreshStatus:I.fetchState,onNavigateBack:S,onOpenBill:c,onApproveAndReverse:l,onIgnoreMatchSuggestion:A,onRefresh:r,onUndoReversal:E,lastMatchResults:k,lastUndoResults:b})}const Li=/^match\/([^/?]+)$/,Gi=Sa({displayNamePrefix:"withActualMatchingSidePanel",usePanelSetup:function(t){const{useFeatureGate:a}=He(),{isFeatureEnabled:S}=a(K.isTransactionDetailSplitViewEnabled),{isFeatureEnabled:f}=a(K.isAccrualEnabled),d=(function(l=!0){const A=Ue(),r=Ie(),E=ve(),k=jt(E),b=ha({childPathPattern:Li,enabled:l,listPath:k}),I=b.matchGroups[0]!=null&&b.matchGroups[0]!==""?Ri(b.matchGroups[0]):void 0,y=E.tenantEmailDomain??r.pathname.split("/").find(Boolean)??"",D=o.useRef({isOpen:b.isOpen,matchId:I});D.current={isOpen:b.isOpen,matchId:I};const U=o.useCallback((m=>{!b.isMobile&&l?D.current.isOpen&&D.current.matchId===m?b.closePanel():b.navigateToChild(`match/${encodeURIComponent(m)}`,{replace:D.current.isOpen}):A(`/${y}/expense-automation/actual-matching/${encodeURIComponent(m)}`)}),[A,b.isMobile,b.navigateToChild,b.closePanel,l,y]),V=o.useCallback((()=>{if(I==null)return;const m=te(r.state?.pathnameStackToGoBack,`${r.pathname}${r.search}`);A(`/${y}/expense-automation/actual-matching/${encodeURIComponent(I)}`,{state:{pathnameStackToGoBack:m}})}),[r.pathname,r.search,r.state,I,A,y]),T=b.isOpen&&I!=null;return{closePanel:b.closePanel,isOpen:T,maximize:V,matchId:l&&T?I:void 0,openPanel:U}})(t&&f===!0&&S===!0),c=o.useMemo((()=>{if(d.isOpen&&d.matchId!=null)return P.jsx(zi,{isFullView:!1,matchId:d.matchId,onClose:d.closePanel},d.matchId)}),[d.closePanel,d.isOpen,d.matchId]);return{injectedProps:o.useMemo((()=>({closeMatchSidePanel:d.closePanel,isMatchPanelOpen:d.isOpen,matchPanelContent:c,matchPanelMatchId:d.matchId,openMatchPanel:d.openPanel})),[c,d.closePanel,d.isOpen,d.matchId,d.openPanel]),selectedItemId:d.matchId,sidePanel:{closePanel:d.closePanel,maximize:d.maximize}}}}),Ni=ia.memo((({reconciliation:t,selectedDrawerAccountId:a,onClose:S,onFetchLinkTokenClick:f,onEstablishConnectionClick:d})=>{const c=ge(),l=Ue(),A=Ie(),{tenantEmailDomain:r,selectedTab:E,selectedPeriod:k}=ve(),{useFeatureGate:b}=He(),{isFeatureEnabled:I}=b(K.isReconV3Enabled),{isFeatureEnabled:y}=b(K.isReconciliationCombinedStatementEnabled),{isFeatureEnabled:D}=b(K.isReconReportEnabled),U=Ke.getSignedInUser(),V=_((x=>Ae(x))),T=o.useMemo((()=>({userId:U?.userId??"",sessionId:U?.zeniSessionId??"",tenantId:V?.tenantId??""})),[U?.userId,U?.zeniSessionId,V?.tenantId]),{accountReconciliationsByAccountID:m,excludedAccountIDs:u,monthYearPeriod:g,statementUploadChosen:O}=t,w=m[a],z=o.useMemo((()=>fo(m,a)),[m,a]),h=o.useMemo((()=>go(m)),[m]),L=o.useMemo((()=>Io(m,a)),[m,a]),e=o.useRef(!1),n=o.useCallback((x=>{e.current=x,On(a,x)}),[a]),i=o.useCallback((x=>{c(yt({accountId:a,selectedPeriod:g,dismissedToBackground:!0,backgroundCompletedSteps:x.completedSteps,startedAtMs:x.startedAtMs,totalDurationSeconds:x.totalDurationSeconds})),x.accountMappings!=null&&c(rt({accountId:a,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,a]),p=o.useCallback((()=>{c(yt({accountId:a,selectedPeriod:g,dismissedToBackground:!1}))}),[c,a,g]),C=o.useCallback((x=>{c(kn({accountId:a,selectedPeriod:g,backgroundCompletedSteps:x}))}),[c,g,a]),R=o.useCallback((()=>{c(kn({accountId:a,selectedPeriod:g,backgroundCompletedSteps:0})),c(yt({accountId:a,selectedPeriod:g,dismissedToBackground:!1}))}),[c,g,a]);o.useEffect((()=>()=>{On(null,!1)}),[]);const F=w?.parsedStatementData?.statementUpload?.statementMeta?.statementUploadId??w?.accountReconEntity.statementMetaData?.statementUploadId,j=w?.statementDateConflict?.previousReconciliationInfo?.reconciledByUserId,H=_((x=>j!=null&&j!==""?Co(ko(x.userState,j)):"")),X=o.useCallback((()=>{c(bn({accountId:a,selectedPeriod:g}))}),[c,a,g]),se=o.useCallback((()=>{c(bn({accountId:a,selectedPeriod:g})),c(dt({statementUploadChosen:!0}))}),[c,a,g]),ne=(x,ee)=>{c(Mo(x,ee.split(".")[0]))},v=(x,ee)=>{if(ee===!0){const oe=w?.combinedStatementGroupId??w?.parsedStatementData?.statementUpload?.statementMeta?.combinedStatementGroupId??w?.parsedStatementData?.statementUpload?.combinedStatementDetails?.combinedStatementGroupId;if(oe!=null&&oe!=="")return void c(Fo({accountId:a,selectedPeriod:g,combinedStatementGroupId:oe,fileId:x}))}F!=null&&c(_o({accountId:a,selectedPeriod:g,fileId:x,statementUploadId:F}))},B=()=>{c(dt({statementUploadChosen:!1}))},W=x=>{c(Do({accountId:a,selectedPeriod:g,payload:x,statementAccountScope:y===!0?w?.localData?.statementAccountScope??"single_account":"single_account"}))},Q=o.useCallback(((x,ee,oe)=>{c(bo({accountId:x,selectedPeriod:ee,statementUploadId:oe}))}),[c]),Ce=o.useCallback(((x,ee,oe,we,De)=>{De!=null&&De!==""&&c(To(De)),c(we==null||we===""?Po({accountId:x,selectedPeriod:ee,statementUploadId:oe}):yo({accountId:x,selectedPeriod:ee,statementUploadId:oe,combinedStatementGroupId:we}))}),[c]),Re=o.useCallback(((x,ee)=>{ee!==""&&c(Eo({accountId:a,selectedPeriod:g,statementUpdateLocalData:x,statementUploadId:ee}))}),[c,a,g]),$=o.useCallback((()=>{F!=null&&c(w?.localData?.statementAccountScope!=="multi_account"?Ao({accountId:a,selectedPeriod:g,statementUploadId:F}):vo({accountId:a,selectedPeriod:g,statementUploadId:F}))}),[c,w?.localData?.statementAccountScope,a,g,F]),ke=o.useCallback((x=>{F!=null&&c(Ro({accountId:a,selectedPeriod:g,statementUploadId:F,accountMappings:x}))}),[c,g,a,F]),me=o.useCallback((()=>{c(dt({statementUploadChosen:!0}))}),[c]),pe=x=>{c(rt({accountId:a,selectedPeriod:g,localData:{accountSource:x}}))},xe=x=>{c(rt({accountId:a,selectedPeriod:g,localData:{statementAccountScope:x}}))},Xe=o.useCallback((()=>{c(Hn({accountId:a}))}),[c,a]),Qe=o.useCallback((x=>{c(ue(g,x,!0)),S()}),[c,g,S]),ce=o.useCallback((x=>{if(r==null||E==null||k==null)return;const ee=te(A.state?.pathnameStackToGoBack,A.pathname);S();const oe=ma({tenantEmailDomain:r,selectedTab:E,accountId:x,period:k});oe!=null&&l(oe,{state:{pathnameStackToGoBack:ee}})}),[A.pathname,A.state,l,S,k,E,r]),he=o.useCallback((()=>{c(xo({accountId:a,selectedPeriod:g,statementProcessingFailed:!1})),c(wo({accountId:a,selectedPeriod:g}))}),[c,a,g]),ie=o.useCallback((()=>{c(Kn({accountId:a}))}),[c,a]),je=u.includes(a)?t.excludedAccountReconciliationByAccountID[a]:void 0;if(je!=null)return P.jsx($n,{children:P.jsx(zn,{$isV3:I===!0,children:P.jsx(Hc,{excludedAccountReconciliation:je,includeAccountFetch:t.includeAccountFetchState,isReconV3Enabled:I,onDismissClick:S,onIncludeIntoReconciliation:ie})})});if(w!=null){const x=I===!0?P.jsx(Kc,{excludeAccountFetch:t.excludeAccountFetchState,accountReconciliation:w,monthYearPeriod:g,onDismissClick:S,plaidConnectionDetails:t.plaidConnectionDetails,onFetchLinkTokenClick:f,onEstablishConnectionClick:d,onEditFileName:ne,onDeleteFile:v,onSelectSourceType:pe,onSelectStatementAccountScope:xe,isReconciliationCombinedStatementEnabled:y===!0,ledgerAccounts:z,statementOverrideWarningAccountIds:L,unavailableLedgerAccountIds:h,onConfirmStatementMapping:ke,filesEndPoint:We.fileMicroServiceBaseUrl,authParams:T,openFilePicker:O,onStatementUploadSuccess:W,onUploadWindowOpenedOnce:B,onExcludeFromReconciliation:Xe,onRetryParsing:Q,onFetchStatementParseInfo:Ce,onReviewClicked:Qe,onViewReportClicked:D===!0?ce:void 0,statementProcessingFailed:w.statementProcessingFailed,statementProcessingDismissedToBackground:w.statementProcessingDismissedToBackground,onDismissStatementProcessingFailed:he,onContinueInBackground:i,onClearStatementProcessingDismissedToBackground:p,onResetStatementProcessingProgress:R,onStatementProcessingProgressChange:C,onStatementFlowVisibilityChange:n,onReuploadStatement:me,onStatementFormDataChange:Re,onStatementConfirmSave:$,reconciledByName:H,onDismissDateConflict:X,onReuploadAfterDateConflict:se,isReconV3Enabled:I}):P.jsx(Xc,{excludeAccountFetch:t.excludeAccountFetchState,accountReconciliation:w,monthYearPeriod:g,onDismissClick:S,plaidConnectionDetails:t.plaidConnectionDetails,onFetchLinkTokenClick:f,onEstablishConnectionClick:d,onEditFileName:ne,onDeleteFile:v,onSelectSourceType:pe,filesEndPoint:We.fileMicroServiceBaseUrl,authParams:T,openFilePicker:O,onStatementUploadSuccess:W,onUploadWindowOpenedOnce:B,onExcludeFromReconciliation:Xe});return P.jsx($n,{children:P.jsx(zn,{$isV3:I===!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 qi({panelType:t,scheduleId:a,onClose:S,onCloseAfterDecision:f}){return P.jsx(Yi,{children:P.jsx(Wi,{children:Ji(t,a,S,f)})})}function Ji(t,a,S,f){switch(t){case"one_time_accrual":return P.jsx(_i,{isRenderedInPanel:!0,accrualIdOverride:a,onPanelNavigateBack:S});case"accrued_expenses":return P.jsx(Fi,{isRenderedInPanel:!0,scheduleDetailIdOverride:a,onPanelNavigateBack:S,onPanelCloseAfterDecision:f});case"fixed_assets":return P.jsx(Di,{isRenderedInPanel:!0,scheduleDetailIdOverride:a,onPanelNavigateBack:S,onPanelCloseAfterDecision:f});case"prepaid_expenses":return P.jsx(wi,{isRenderedInPanel:!0,scheduleDetailIdOverride:a,scheduleTypeOverride:"prepaid_expenses",onPanelNavigateBack:S,onPanelCloseAfterDecision:f})}}const Yi=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
|
-
`,Hi=/^schedule\/(prepaid_expenses|fixed_assets|accrued_expenses|one_time_accrual)\/([^/?]+)$/,Ki=Sa({displayNamePrefix:"withScheduleSidePanel",usePanelSetup:function(t){const a=(function(I=!0){const y=Ue(),D=Ie(),U=ge(),V=ve(),T=ha({childPathPattern:Hi,enabled:I}),m=T.matchGroups[0],u=fa(m)?m:void 0,g=T.matchGroups[1]!=null&&T.matchGroups[1]!==""?T.matchGroups[1]:void 0,O=T.isOpen&&u!=null&&g!=null,w=V.tenantEmailDomain??D.pathname.split("/").find(Boolean)??"",z=o.useRef({isOpen:O,scheduleId:g});z.current={isOpen:O,scheduleId:g};const h=o.useCallback(((e,n,i)=>{i!=null&&(n==="prepaid_expenses"||n==="fixed_assets")&&U(ea({selectedJEScheduleKey:i})),!T.isMobile&&I?z.current.isOpen&&z.current.scheduleId===e?T.closePanel():T.navigateToChild(`schedule/${n}/${e}`,{replace:z.current.isOpen}):y(jn(n,e,w),{state:{message:"expenseAutomation",origin:"je_schedules"}})}),[U,y,T.isMobile,T.navigateToChild,T.closePanel,I,w]),L=o.useCallback((()=>{if(u==null||g==null)return;const e=te(D.state?.pathnameStackToGoBack,D.pathname);y(jn(u,g,w),{state:{pathnameStackToGoBack:e,message:"expenseAutomation",origin:"je_schedules"}})}),[y,u,g,w,D.pathname,D.state]);return{closePanel:T.closePanel,isOpen:O,maximize:L,openPanel:h,panelType:O?u:void 0,scheduleId:O?g:void 0}})(t),S=o.useRef(null),[f,d]=o.useState(null),c=o.useMemo((()=>({registerPanelDirtyGuard:I=>{S.current=I}})),[]),l=o.useCallback((I=>{S.current?.isDirty()===!0?d((()=>I)):I()}),[]),A=o.useCallback((()=>{l(a.closePanel)}),[l,a.closePanel]),r=o.useCallback((()=>{l(a.maximize)}),[l,a.maximize]),E=o.useCallback(((I,y,D)=>{l((()=>a.openPanel(I,y,D)))}),[l,a.openPanel]),k=o.useMemo((()=>{if(f!=null)return{onCancel:()=>d(null),onDiscard:()=>{S.current=null,d(null),f()}}}),[f]),b=o.useMemo((()=>{if(a.isOpen&&a.panelType!=null&&a.scheduleId!=null)return P.jsx(Qc.Provider,{value:c,children:P.jsx(qi,{panelType:a.panelType,scheduleId:a.scheduleId,onClose:A,onCloseAfterDecision:()=>{S.current=null,a.closePanel()}},`${a.panelType}:${a.scheduleId}`)})}),[a.isOpen,a.panelType,a.scheduleId,a.closePanel,A,c]);return{injectedProps:o.useMemo((()=>({closeSchedulePanel:A,isSchedulePanelOpen:a.isOpen,openSchedulePanel:E,schedulePanelContent:b,schedulePendingDiscardConfirmation:k})),[A,E,b,k,a.isOpen]),selectedItemId:a.scheduleId,sidePanel:{closePanel:A,maximize:r}}}});function Xi({companyId:t,closeCustomerRequestDrawer:a,addCustomerRequest:S,resetCustomerRequest:f}){const d=Ke.getSignedInUser();if(d==null)throw Error("Can't access Customer Request page without signing in...");const c=_((l=>Bo(l,t,d)));return o.useEffect((()=>{f()}),[]),P.jsx(P.Fragment,{children:c.fetchState==="In-Progress"||c.companyMonthEndReportTemplatesData.fetchState==="In-Progress"?P.jsx(da,{fetchState:"In-Progress"}):P.jsx(Zc,{onCloseClick:a,addCustomerRequest:S,snippets:c.companyMonthEndReportTemplatesData,bulletPoints:c.zeniRequestsData??[]})})}const Qi={schedules:"Review Schedules",actual_matching:"Actual Matching",existing_schedules:"Existing Schedules"},Zi=()=>{const t=_((k=>Ee(k))),a=Ie(),{currentSelectedViewFetchState:S,currentSelectedView:f,selectedPeriod:d}=t,c=mt(f),l=mt(S.fetchState),A=t.jeSchedules.uiState.selectedPageTab??"schedules",r=mt(A),E=o.useCallback((k=>{const b=a.state?.referrer;f==="transaction_categorization"&&(t.selectedTransactionCategorizationTab==="review"?Z.trackTransactionsReviewPage(d.month,d.year,t.transactionView.totalCountByTab.review,0,k,b??null):Z.trackTransactionsAutoCategorisedPage(d.month,d.year,t.transactionView.totalCountByTab.autoCategorized,0,k,b??null)),f==="missing_receipts"&&Z.trackMissingReceiptsPage(d.month,d.year,k,t.missingReceipts.transactions.length,b??null),f==="je_schedules"&&Z.trackMonthCloseScheduleListPage(d.month,d.year,k,t.jeSchedules.pendingReviewSchedules.length,t.jeSchedules.failedPostings.length,(I=>{const y={accruedCount:0,fixedAssetsCount:0,oneTimeAccrualCount:0,prepaidCount:0};return I.forEach((D=>{if(Oo(D))y.oneTimeAccrualCount+=1;else switch(Uo(D)){case"prepaid_expenses":y.prepaidCount+=1;break;case"fixed_assets":y.fixedAssetsCount+=1;break;case"accrued_expenses":y.accruedCount+=1}})),y})(t.jeSchedules.pendingReviewSchedules),Qi[A],b??null),f==="flux_analysis"&&Z.trackFluxAnalysisPage(d.month,d.year,k,el(t.fluxAnalysis),b??null),f==="month_end_insights"&&t.auditSummary?.auditScorePercentage!=null&&Z.trackInsightsEmailPage(d.month,d.year,k,"draft",t.auditSummary.auditScorePercentage,null,b??null)}),[d,t,A]);return o.useEffect((()=>{(l!==S.fetchState||f!==c||f==="je_schedules"&&r!=null&&A!==r)&&S.fetchState==="Completed"&&E(!1)}),[f,S.fetchState,c,A,r]),E},el=t=>t.sections.generalExpense.vendors.length+t.sections.reimbursement.vendors.length,{common:{strings:{hyphen:tl,comma:Ln,space:nl}},dateFormat:ga}=ua.getLocalizedStrings(),Gn=zc,al=mo((function(t,a){const{uncategorizedAccounts:S,vendorSearchAutoCompleteData:f,monthEndInsightsCustomerRequestData:d,monthEndInsightsPreviewMode:c,companyId:l,isMissingReceiptsBulkUploadEnabled:A,isTransactionActivityEnabled:r,newScheduleActiveType:E}=a,k=Ke.getSignedInUser(),b=t.tenantState.currentTenantId,I={userId:k?.userId??"",sessionId:k?.zeniSessionId??"",tenantId:b??""},y=Ee(t),{selectedTransactionCategorizationTab:D}=y,{searchTransactionsResults:U,searchTransactionsFetchState:V}=ls(t),T=E==="prepaid_expenses"?"prepaid_expenses":"fixed_assets",{accountListNestedAccountHierarchy:m,classListNestedAccountHierarchy:u,allDepreciationAccountListNestedAccountHierarchy:g,newScheduleLocalData:O,saveStatus:w}=rs(t,T);return{expenseAutomationViewSelector:y,accountListNestedAccountHierarchy:m,allDepreciationAccountListNestedAccountHierarchy:g,baseTransactionSearchFetchState:V,baseTransactionSearchResults:U,classListNestedAccountHierarchy:u,newScheduleLocalData:O,initialSelectedBaseTransaction:O.selectedBaseTransactionId!=null?ds(t.transactionState,us(O.selectedBaseTransactionId)):void 0,newAccrualAccountsView:ms(t),newScheduleSaveStatus:w,bulkUploadSelector:A===!0?y.missingReceipts.bulkUpload:void 0,vendorSearchAutoCompleteData:f,authParams:I,receiptUploadEndpoint:`${We.accountMicroServiceBaseUrl}`,transactionAttachmentsEndpoint:`${Bt}/transaction_attachments`,bulkUploadEndpoint:A===!0?`${We.communicationAgentMicroServiceBaseUrl}/1.0/receipts/bulk-upload`:void 0,isDisabled:!1,currentTab:D,selectedTransactionGroup:y.transactionView.selectedTransactionGroup,monthEndInsightsCustomerRequestData:d,monthEndInsightsPreviewMode:c,allThreadsSectionOpen:!1,enableMonthEndInsightsZeniGPTFeature:!1,loggedInUser:k,uncategorizedAccounts:S,companyId:l,isTransactionActivityEnabled:r,receiptsEmail:ps(t.tenantState,b),downloadParams:{authParams:I,jeScheduleEndPoint:`${Bt}/jeScheduleReports`,timezone:sa(),companyName:Ae(t).companyName}}}),(function(t,a){const{themeState:S,isAccountingClassesEnabled:f,isCOTEnabled:d,isMissingReceiptsBulkUploadEnabled:c,location:l,vendorSearchAutoCompleteData:A,expenseAutomationViewSelector:r,currentTenant:E,newScheduleActiveType:k,uncategorizedAccounts:b,navigate:I,onClickCustomerRequest:y,handleEditClick:D,closeSchedulePanel:U,isSchedulePanelOpen:V,openSchedulePanel:T,setActivityLogTransactionId:m}=a,{selectedPeriod:u,currentSelectedView:g,reconciliation:{selectedAccountId:O}}=r,{accountSettingsView:w}=r.jeSchedules,z=ta(u),h=ht(z.start),L=ht(z.end);return{onZeniLogoClick:()=>{S.toggle()},onUploadReceiptAttachment:e=>{Z.trackMissingReceiptAttached(u.month,u.year),t(Rc(e))},onUploadTransactionReceipt:(e,n,i,p,C,R)=>{t(Fn(e,n,{fetchState:"In-Progress"}));const F=()=>t(Fn(e,n,{fetchState:"Error"}));Si(`${We.accountMicroServiceBaseUrl}/1.0/transactions/${n}/attachments`,R,n,i,p,C).then((j=>{j!=null?t(Ac(e,j)):F()})).catch(F)},onMissingReceiptsRowClick:(e,n)=>{if(a.openTransactionPanel)return void a.openTransactionPanel(e,n);const i=te(l.state?.pathnameStackToGoBack,l.pathname);I(`../../transaction/${n}/${e}`,{state:{pathnameStackToGoBack:i,message:"expenseAutomation",origin:"missing_receipts"}})},onUploadReceiptComplete:(e,n)=>{t(vc(e,n)),E!=null&&t(Oe({tenantId:E.tenantId,period:n,refreshViewInBackground:!0}))},onUploadReceiptFetchStatus:(e,n,i,p)=>{t(Ec(e,{fetchState:n,error:i})),i!=null&&t(wt({messageSection:"missing_receipts_attachment",messageText:"failed",type:"error",showStatusIcon:!0,variables:[{variableName:"__message__",variableValue:p!=null?nl+tl+p+Ln:Ln}]}))},onUpdateJESchedulesUIState:e=>{const n=r.jeSchedules.uiState,i=e.selectedPageTab!=null&&e.selectedPageTab!==n.selectedPageTab,p=e.selectedJETypeFilter!==void 0&&e.selectedJETypeFilter!==n.selectedJETypeFilter;i&&a.closeMatchSidePanel?.(),V===!0&&(i||p)&&U?.(),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&&h!=null&&t(oa({start:h,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,n,i,p,C)=>{t(Oc(e,n,i,p,C))},onBulkUploadConfirmMatchAcknowledged:()=>{t(Bc())},onSetBulkUploadResultsTab:e=>{t(Mc(e))},onSetBulkUploadCompletedSubTab:e=>{t(_c(e))},onSetBulkUploadSortConfig:(e,n)=>{t(_n({sortKey:e,sortOrder:n}))},onClearBulkUpload:()=>{t(Fc())},onSearchTransactionsForManualMatch:(e,n)=>{t(Gn(e,n??void 0))},onLoadMoreManualSearch:()=>{const{manualSearch:e}=r.missingReceipts.bulkUpload;e.nextPageToken!=null&&e.searchQuery!==""&&t(Gn(e.searchQuery,e.nextPageToken))},onFetchCompletedTransactions:(e,n)=>{t(Dc(e,n))},onClearBulkUploadBatchDetailsForScopeChange:()=>{t(wc())},onFetchBulkUploadBatches:e=>{t(na(e))},onFetchMoreBatchDetails:()=>{t(xc())},onResetBulkUploadSort:()=>{t(_n({sortKey:void 0,sortOrder:void 0}))}}:{},onClearMissingReceiptsTabNavigation:()=>{t(Ic())},onSearchTextChanged:e=>{const n=r.currentSelectedView,i=r.selectedTransactionCategorizationTab;n==="transaction_categorization"&&(t(Pt({selectedTab:i,uiState:{searchString:e}})),L!=null&&h!=null&&t(Pe(i,{start:h,end:L},!0,!1,e,void 0,!1,!0)))},onFiltersChange:e=>{const n=r.selectedTransactionCategorizationTab;t(gc({filters:e,selectedTab:n}))},onRefresh:()=>{a.trackExpenseAutomationTabAnalytics(!0),t(fc())},onClose:()=>{g==="reconciliation"&&O!=null&&t(Dn({selectedAccountId:void 0})),I("../")},onBack:()=>{g==="reconciliation"&&O!=null&&t(Dn({selectedAccountId:void 0}))},onSaveReconciliation:e=>{t(Sc(e))},onSaveReconciliationReview:e=>{t(hc(e))},onUpdateStep:e=>{const{selectedPeriod:n}=r,i=te(l.state?.pathnameStackToGoBack,l.pathname);I(`../${e}/${n.month}-${n.year}`,{state:{pathnameStackToGoBack:i,referrer:r.currentSelectedView}}),t(aa(e))},handleLogOutClick:()=>{const e=te(l.state?.pathnameStackToGoBack,l.pathname);I("/signout",{replace:!0,state:{pathnameStackToGoBack:e,message:"logout"}})},onJeAccountSettingsChange:e=>{const{vendorsAccountSection:n}=e,{prepaidExpensesAccount:i,fixedAssetsAccount:p,accruedExpensesAccount:C}=n,R=vt(w.prepaidExpensesAccountList,i.selectedOptions),F=vt(w.fixedAssetsAccountList,p.selectedOptions),j=vt(w.accruedExpensesAccountList,C.selectedOptions),H={selectedPrepaidExpensesAccountIds:R.map((X=>X.accountId)),selectedFixedAssetsAccountIds:F.map((X=>X.accountId)),selectedAccruedExpensesAccountIds:j.map((X=>X.accountId))};t(pc({data:H}))},onSaveJeAccountSettingsClick:()=>{t(mc())},onJESchedulesFormDataChange(e,n){const{jeScheduleID:i,accumulatedDepreciationCategory:p,scheduleClass:C,scheduleExpenseCategory:R,vendor:F}=n,{allAccountList:j,allClassList:H,allDepreciationAccountList:X}=r.jeSchedules,se=A.entityAutoCompleteView.vendor.length>0?A.entityAutoCompleteView.vendor.find((Q=>Q.id===F?.selectedOption)):void 0,ne={id:se?.zeniId??F?.selectedOption??"",name:se?.name??F?.defaultOptions.find((Q=>Q.value===F?.selectedOption))?.label??"",logo:se?.logo},v=R?.selectedOption!=null?j.find((Q=>Q.qboId===R.selectedOption)):void 0,B=C?.selectedOption!=null?H.find((Q=>Q.classId===C.selectedOption)):void 0,W=p?.selectedOption!=null?X.find((Q=>Q.qboId===p.selectedOption)):void 0;t(uc({scheduledJournalEntryID:e,localData:{jeScheduleID:i,scheduledJournalEntryID:e,updatedCategoryId:v?.accountId,updatedClassId:B?.classId,updatedAccumulatedDepreciationCategoryID:W?.accountId,updatedVendor:{id:ne.id,name:ne.name}}}))},onRevertJeSchedule(e,n,i,p,C){t(dc(e,n,i,p,C))},ignoreRecommendedJeSchedule(e,n,i,p){t(rc(e,n,i,p))},vendorSearchAutoCompleteActions:{onAutoCompleteInputChange:(e,n)=>{e.trim().length>=2?t(vn({searchString:e,entityType:n,searchOrigin:"common"})):e.trim().length===0&&t(lt("common"))},onCancelAutoComplete:()=>{t(lt("common"))}},onPostJESchedule(e,n){t(lc({scheduledJournalEntryID:e,jeScheduleTransactionKey:n}))},clearJeScheduleLocalData(){t(ic())},onViewTransaction(e){if(a.tenantEmailDomain==null)return;const n=Ui(e,a.tenantEmailDomain),i=te(a.location.state?.pathnameStackToGoBack,`${a.location.pathname}${a.location.search}`);a.navigate(n,{state:{pathnameStackToGoBack:i,message:"expenseAutomation",origin:"je_schedules"}})},onSearchBaseTransaction(e){t(cc({query:e,scheduleType:k==="prepaid_expenses"?"prepaid_expenses":"fixed_assets"}))},onNewScheduleFormChange(e,n){const i=_t(e)==="prepaid_expenses"?"prepaid_expenses":"fixed_assets";t(wn({scheduleType:i,localData:n}))},onOpenMatchNewModal(){t(sc())},onIgnoreMatchSuggestion(e,n,i){t(oc(e,n,i))},onCloseMatchNewModal(){t(ac())},onClearMatchNewModal(){t(nc())},onSearchMatchTransactions(e,n){t(tc(e,n))},onSearchMatchAccruals(e,n){t(ec(e,n))},onMatchAndReverse(e){t(Zs(e.transactionId,e.transactionIntegrationId,e.transactionType,e.lineIds,e.transactionSyncToken,e.accrualIds,!0))},onUpdateActualMatchingUIState(e){t(Qs(e))},onUndoReversal(e,n){t(Xs(e,n))},onSaveSchedule(e,n){const i=e==="prepaid_expenses"?"prepaid_expenses":"fixed_assets",{allAccountList:p,allDepreciationAccountList:C}=r.jeSchedules,R=n.selectedAccount!=null?p.find((j=>j.qboId===n.selectedAccount)):void 0,F=n.selectedAccumulatedDepreciationCategory!=null?C.find((j=>j.qboId===n.selectedAccumulatedDepreciationCategory)):void 0;t(wn({scheduleType:i,localData:{...n,selectedAccount:R?.accountId,selectedAccumulatedDepreciationCategory:F?.accountId}})),t(Ks({scheduleType:i}))},onCreateAccruedSchedule(e){const n="accrued_expenses";t(qs()),t(Js()),t(Ys({scheduleType:n,localData:e,selectedJeScheduleDetailId:void 0})),t(Ws({scheduleType:n})),t(Hs(n,void 0))},onCreateOneTimeAccrual(e){t(Ns(e))},handleJeScheduleClick:(e,n,i)=>{if((function(C,R){return R!=="accrued_expenses"})(0,i)&&t(ea({selectedJEScheduleKey:n})),T!=null&&fa(i))return void T(e,i,n);const p=te(l.state?.pathnameStackToGoBack,l.pathname);I(`../../vendors/schedules/${i}/details/${e}`,{state:{pathnameStackToGoBack:p,message:"expenseAutomation",origin:"je_schedules"}})},onOneTimeAccrualFeedback:(e,n,i,p)=>{t(n!=="revert"?Gs(e,i,p):Ls(e,i,p))},onOneTimeAccrualClick:e=>{if(T!=null)return void T(e,"one_time_accrual");const n=te(l.state?.pathnameStackToGoBack,l.pathname);I(`../../vendors/schedules/one_time_accrual/details/${e}`,{state:{pathnameStackToGoBack:n,message:"expenseAutomation",origin:"je_schedules"}})},onOpenMatch:e=>{a.openMatchPanel?.(e)},onOpenBill(e){if(a.tenantEmailDomain==null)return;const n=Ai(e,a.tenantEmailDomain,a.location);a.navigate(n.pathname,{state:n.state})},improveMonthEndInsightsUsingZeniGPTClick:e=>{E!=null&&t(zs(e,E.companyId,E.tenantId))},onClickCustomerRequest:y,setActivityLogTransactionId:m,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,n,i,p,C)=>{E!=null&&t(xn(e,E.companyId,n,!0,i,p,{agentInsightEdits:C,tenantId:E.tenantId}))},saveMonthEndReport:(e,n,i,p,C)=>{E!=null&&t(xn(e,E.companyId,n,!1,i,p,{agentInsightEdits:C,tenantId:E.tenantId}))},onEditMonthEndInsightsClick:D,sendMonthEndReport:e=>{const n=l.state?.referrer,{selectedPeriod:i,auditSummary:p}=r;E!=null&&p?.auditScorePercentage!=null&&(t(Us(E.companyId,e,E.tenantId)),Z.trackInsightsEmailPage(i.month,i.year,!1,"draft",p.auditScorePercentage,ca().format(ga.analytics.MMMDDCommaYYYYformat),n??null))},onTransactionCategorizationRowClick:(e,n)=>{const i=r.transactionView.uiState.searchString??"",p=r.transactionView.transactions,C=p.findIndex((j=>j.id===e)),R=i.length>0?{resultPosition:C>=0?C+1:void 0,resultsCount:p.length,searchTerm:i}:void 0;if(a.openTransactionPanel)return void a.openTransactionPanel(e,n,R);const F=te(l.state?.pathnameStackToGoBack,l.pathname);I(`../../transaction/${n}/${e}`,{state:{pathnameStackToGoBack:F,message:"expenseAutomation",origin:"transaction_categorization",searchContext:R}})},setLocalDataForCategoryAndClass:(e,n,i,p,C,R,F,j,H,X,se,ne)=>{t(Os(e,n,i,p,b,C,R,F,j,H,X,se,ne))},onCancelAutoComplete:()=>{t(lt("common"))},updateExpenseAutomationReconListScrollPosition:e=>{t(An({scrollPosition:e}))},onUpdateTab:e=>{a.closeSidePanel?.(),L!=null&&h!=null&&(t(Pe(e,{start:h,end:L},!1,!1)),t(Bs(e)))},onUpdateTransactionCategorizationCompletedSubTab:e=>{a.closeSidePanel?.(),L!=null&&h!=null&&(t(Ms(e)),t(Pe("autoCategorized",{start:h,end:L},!1,!1)))},onTransactionGroupChange:e=>{a.closeSidePanel?.(),L!=null&&h!=null&&(t(_s(e)),t(Pe(a.expenseAutomationViewSelector.selectedTransactionCategorizationTab,{start:h,end:L},!1,!1)))},onUpdateTransactionCategorizationUIState:(e,n)=>{t(Pt({selectedTab:e,uiState:n})),L!=null&&h!=null&&t(Pe(e,{start:h,end:L},!1,!1,n.searchString,null,!0))},onUpdateScrollYOffSetTransactionCategorizationUIState:(e,n)=>{t(Pt({selectedTab:e,uiState:n}))},onFetchTransactionCategorizationList:(e,n,i,p,C,R)=>{L!=null&&h!=null&&t(Pe(e,{start:h,end:L},!0,i,n,p,C,R))},resetTransactionCategorizationLocalData:(e,n,i,p,C,R,F)=>{t(Fs(e,n,i,p,F??null,C,R,!1)),Pi(t,n.map(String))},updateSelectedVendorForTransaction:(e,n,i,p,C)=>{t(Rn({selectedTab:e,transactionId:n,lineId:i,selectedTransaction:p,uncategorizedAccounts:b,updatedVendor:C,isAccountingClassesEnabled:f}))},onSaveUpdateTransactionCategorization:(e,n,i)=>{const p=l.state?.referrer;e==="autoCategorized"?Z.trackTransactionsAutoCategorisedPage(u.month,u.year,r.transactionView.totalCountByTab.autoCategorized,n.length,!1,p??null):Z.trackTransactionsReviewPage(u.month,u.year,r.transactionView.totalCountByTab.review,n.length,!1,p??null),t(Ds(e,n,i)),yi(n.map(String))},onUpdateSelectedCheckboxTransactionIds:(e,n)=>{t(ws({selectedTab:e,transactionIds:n}))},onFetchRecommendationsForEntityCategorizationWithCustomer:(e,n,i,p,C,R)=>{const{transactionId:F,transaction:j,lineIds:H}=n;R!=null&&t(Rs({transactionId:F,customerUpdates:R})),t(xs({selectedTab:p,transactionId:F.id,lineId:H[0],selectedTransaction:j,uncategorizedAccounts:b,updatedCustomer:R,selectedEntity:C,isAccountingClassesEnabled:f})),C!=null&&t(Ft({entity:C,amount:e,transactionDetails:n,flowType:"categorization",selectedTab:p,isFetchCOT:d}))},onFetchRecommendationsForEntityCategorization:(e,n,i,p,C,R)=>{const{transactionId:F,transaction:j,lineIds:H}=n;R!=null&&(t(Es({transactionId:F,vendorUpdates:{name:R.name,id:R.id?R.id:void 0}})),t(vs({vendorId:R.id?R.id:void 0,localData:{vendorName:R.name,vendorId:R.id?R.id:void 0}}))),R?.id?(t(Rn({selectedTab:p,transactionId:F.id,lineId:H[0],selectedTransaction:j,uncategorizedAccounts:b,updatedVendor:R,selectedEntity:C,isAccountingClassesEnabled:f})),C!=null&&t(Ft({entity:C,amount:e,transactionDetails:n,flowType:"categorization",selectedTab:p,isFetchCOT:d}))):t(As({selectedTab:p,transactionId:F.id,lineId:H[0]}))},fetchFluxViewOnScroll:(e,n)=>{t(ut(e,!0,!1,n,!1,!0))},onFetchFluxViewList:()=>{t(ut(u,!0,!1,null,!1,!1))},markAsReview:(e,n,i,p)=>{Z.trackFluxAnalysisReviewed(i.month,i.year,p??!1,e),t(Ps(n,e,i,p??!1))},onUpdateFluxAnalysisUIState:e=>{t(ys(e))},updateOperatingExpensesIdsForReview:e=>{t(Ts({operatingExpenseIds:e,selectedPeriod:u}))},redirectToVendorDetailPage:e=>{if(a.tenantEmailDomain!=null){const n=Oi(e.id,e.qboId,a.tenantEmailDomain),i=te(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(n,{state:{pathnameStackToGoBack:i,message:"expenseAutomation",referrer:"Vendor List",origin:"flux_analysis"}})}},updateSectionIdsForReview:e=>{t(bs({sectionId:e,selectedPeriod:u}))},onFetchReimbursementView:(e,n,i)=>{t(ut(e,!0,!1,n,!0,i))},onReviewClicked:e=>{t(ue(u,e))},onViewReportClicked:e=>{const n=a.tenantEmailDomain,i=g,p=`${u.month}-${u.year}`;if(n==null||i==null)return;const C=te(l.state?.pathnameStackToGoBack,l.pathname),R=ma({tenantEmailDomain:n,selectedTab:i,accountId:e,period:p});R!=null&&I(R,{state:{pathnameStackToGoBack:C}})},setOpenDrawerClicked:e=>{t(pt({selectedDrawerAccountId:e}))},onFetchLinkTokenClick:(e,n)=>{t(Xn("expense_automation_reconcile",e,n))},onEstablishConnectionClick:(e,n)=>{const i=E?.companyId;i!=null&&(t(Qn(e,i,"expense_automation_reconcile",void 0,"link_account_no_microdeposit",n)),t(Zn({accountId:n,connectionInProgress:!0})))},onAddStatementClick:e=>{t(pt({selectedDrawerAccountId:e})),t(rt({accountId:e,selectedPeriod:u,localData:{accountSource:"bank_statement"}})),t(dt({statementUploadChosen:!0}))},onReloadReconciliationListPage:()=>{t(ue(u,void 0,!0,!1))},onUpdateReconcileTabLocalData:e=>{t(ks({selectedTransactionIds:e}))},onReconTabColumnSortConfigChanged:(e,n)=>{t(Cs({sortKey:e,sortOrder:n}))},onReconReviewTabColumnSortConfigChanged:(e,n)=>{t(Is({sortKey:e,sortOrder:n}))},onReconTabUpdate:e=>{a.closeSidePanel?.(),t(gs({selectedTab:e}))},updateReconReviewTabLocalData:(e,n,i)=>{const p=e.vendor?.id;i&&p!=null&&t(Ss(p)),t(fs({data:e,transactionId:n}))},onReconMatchedTransactionClick:e=>{if(a.openTransactionPanel)return void a.openTransactionPanel(e,Dt("bill"));const n=te(l.state?.pathnameStackToGoBack,l.pathname);I(`../../transaction/bill/${e}`,{state:{pathnameStackToGoBack:n,message:"expenseAutomation",origin:"reconciliation"}})},onReloadPage:()=>{window.location.reload()},onBackClick:()=>{I(-1)},onReconListPageScroll:e=>{t(An({scrollPosition:e}))},onVendorAutoCompleteInputChange:e=>{e.trim().length>=2?t(vn({searchString:e,searchOrigin:"common"})):e.trim().length===0&&t(lt("common"))},onReconNodeCollapseToggled:(e,n)=>{t(hs({nodeId:e,collapsed:n}))},updateSectionCollapseStatus:()=>{},onExcludeAccountFromReconciliation:e=>{t(Hn({accountId:e}))},onIncludeAccountIntoReconciliation:e=>{t(Kn({accountId:e}))}}}),((t,a,S)=>{const{isMissingReceiptsBulkUploadEnabled:f,...d}=S;return(function(c,l,A){return{...c,...l,...A,onUploadTransactionReceipt:(r,E,k,b,I)=>{l.onUploadTransactionReceipt(r,E,k,b,I,c.authParams)}}})(t,a,d)}))(pi(hi)),At="newScheduleMode",Rt="newScheduleType",ol=Ki(xi((function(t){const a=t.displayName??t.name??"Component",S=ia.memo(t),f=d=>{const c=ge(),l=(function(){const T=ge(),m=_((u=>Ee(u).reconciliation.selectedDrawerAccountId));return{isOpen:m!=null,selectedAccountId:m,openPanel:o.useCallback((u=>{T(pt({selectedDrawerAccountId:u}))}),[T]),closePanel:o.useCallback((()=>{T(pt({selectedDrawerAccountId:void 0}))}),[T])}})(),A=_((T=>Ee(T).reconciliation)),r=_((T=>Ae(T))),E=o.useCallback(((T,m)=>{c(Xn("expense_automation_reconcile",T,m))}),[c]),k=o.useCallback(((T,m)=>{const u=r?.companyId;u!=null&&(c(Qn(T,u,"expense_automation_reconcile",void 0,"link_account_no_microdeposit",m)),c(Zn({accountId:m,connectionInProgress:!0})))}),[c,r?.companyId]),b=o.useMemo((()=>{if(l.isOpen&&l.selectedAccountId!=null)return P.jsx(Ni,{reconciliation:A,selectedDrawerAccountId:l.selectedAccountId,onClose:l.closePanel,onFetchLinkTokenClick:E,onEstablishConnectionClick:k})}),[l.isOpen,l.selectedAccountId,l.closePanel,A,E,k]),I=o.useMemo((()=>({reconPanelContent:b,reconSidePanelIsOpen:l.isOpen,closeReconSidePanel:l.closePanel})),[b,l.isOpen,l.closePanel]),{useFeatureGate:y}=He(),{isFeatureEnabled:D}=y(K.isReconV3Enabled),U=o.useContext(Un),V=o.useMemo((()=>l.isOpen?D===!0?{selectedItemId:l.selectedAccountId}:{closePanel:l.closePanel,selectedItemId:l.selectedAccountId}:U),[l.isOpen,l.closePanel,l.selectedAccountId,U,D]);return P.jsx(Un.Provider,{value:V,children:P.jsx(S,{...d,...I})})};return f.displayName=`withReconSidePanel(${a})`,f})(Gi((({closeMatchSidePanel:t,closeReconSidePanel:a,closeSidePanel:S,matchPanelContent:f,isMatchPanelOpen:d,matchPanelMatchId:c,openMatchPanel:l,openTransactionPanel:A,panelContent:r,reconPanelContent:E,reconSidePanelIsOpen:k,isSchedulePanelOpen:b,closeSchedulePanel:I,openSchedulePanel:y,schedulePanelContent:D,schedulePendingDiscardConfirmation:U,sidePanelIsFullView:V,sidePanelIsOpen:T})=>{const{isAiCfoOpen:m,setIsAiCfoOpen:u}=ei(),g=ti(),{isOpen:O}=ni(),w=Ue(),z=Ie(),h=ge(),{isAiCfoAccessEnabled:L,onAskAiCfoClick:e}=Vt({mobileExploreReferrer:"Transaction categorization"}),n=o.useCallback((()=>{d===!0&&t?.(),T===!0&&V!==!0&&S?.()}),[t,S,d,V,T]),i=_(Go);o.useEffect((()=>{i!=null&&(c===i&&n(),h(No()))}),[i,n,h,c]);const p=_(qo);o.useEffect((()=>{p!=null&&(c===p&&n(),h(Jo()))}),[p,n,h,c]);const{areTenantIdsInSync:C}=la(),R=Zi(),F=ai(),[j,H]=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(Rt),Y):(Y.set(At,s.scheduleDetailsMode),Y.set(Rt,s.scheduleType),Y)}),{replace:!0})}),[se]),[v,B]=o.useState(void 0),W=o.useCallback(((s,M,Y)=>{const J=_t(s);B(J),ne({scheduleDetailsMode:M,scheduleType:s}),h(yn({scheduleType:J==="prepaid_expenses"?"prepaid_expenses":"fixed_assets",shouldResetEnteredData:Y}))}),[h,ne]),Q=o.useMemo((()=>{const s=X.get(At),M=X.get(Rt);return s!=null&&M!=null?{scheduleDetailsMode:s,scheduleType:M}:void 0}),[X]),Ce=o.useCallback((s=>{ne(s),s!=null&&h(yn({scheduleType:_t(s.scheduleType)==="prepaid_expenses"?"prepaid_expenses":"fixed_assets",shouldResetEnteredData:!0}))}),[h,ne]),Re=_((s=>Tn(s))),$=_((s=>Ae(s))),[ke,me]=o.useState(!1),[pe,xe]=o.useState(!1),[Xe,Qe]=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?(m&&u(!1),g(),n(),he({contentType:"activity",detail:{transactionId:s}})):he((M=>M?.contentType==="activity"?null:M))}),[n,m,g,u]),ee=o.useCallback((s=>{m&&u(!1),g(),n(),he({contentType:"transfer",detail:s})}),[n,m,g,u]),oe=o.useCallback((()=>{g(),ie(),n(),e()}),[n,ie,e,g]),we=o.useRef(m);o.useEffect((()=>{m===!0&&we.current===!1&&(g(),ie(),n()),we.current=m}),[n,ie,m,g]);const De=o.useRef(O);o.useEffect((()=>{O===!0&&De.current===!1&&(m&&u(!1),ie(),d===!0&&t?.(),T===!0&&V!==!0&&S?.()),De.current=O}),[ie,t,S,O,m,d,u,V,T]);const Ze=T===!0&&V!==!0||d===!0,$t=o.useRef(Ze);o.useEffect((()=>{Ze&&!$t.current&&(m&&u(!1),g(),ie()),$t.current=Ze}),[ie,m,Ze,g,u]);const[zt,Ia]=o.useState(!1),Lt=o.useRef(!1),{selectedTab:Ca}=ve(),{tenantEmailDomain:$e}=ve(),[St,Gt]=o.useState(z.state?.message==="comingFromTransactionDetail"),Nt=z.state?.message==="comingFromOverview",qt=oi(),ft=Ke.getSignedInUser(),{useFeatureGate:de}=He(),{isFeatureEnabled:Jt}=de(K.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:ze}=de(K.isMissingReceiptsBulkUploadEnabled),{isFeatureEnabled:gt}=de(K.isTransactionActivityEnabled),{isFeatureEnabled:be}=de(K.isAccrualEnabled),{isFeatureEnabled:Yt}=de(K.isCreateTransferEntryFromExpenseEnabled),{isFeatureEnabled:ka}=de(K.isCreateTransactionEnabled),ba=_((s=>Yo(s))),{isFeatureEnabled:Ta}=de(K.isProjectsTransactionsEnabled),{isFeatureEnabled:ya}=de(K.isReconV3Enabled),{isFeatureEnabled:Pa}=de(K.isReconReportEnabled),Ea=o.useCallback((s=>{const M=Dt(s.transactionType??(s.view==="reconciliation"?"bill":"expense")),Y=te(z.state?.pathnameStackToGoBack,z.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,z.state,z.pathname]),va=_((s=>Wo(s,"common"))),q=_((s=>Ee(s))),{categoryOptions:Aa,paymentAccountNames:Ra}=_((s=>Ho(s.accountState))),xa=_((s=>Ko(s.classState))),{monthEndCloseChecksView:ae,currentSelectedView:G,selectedPeriod:N,selectedTransactionCategorizationTab:It,currentSelectedViewBackgroundRefreshFetchState:wa,currentSelectedViewFetchState:Se,jeSchedules:Ct,reconciliation:Wt}=q;Ci(G==="transaction_categorization");const Da=q.transactionView.saveStatus.fetchState,et=q.transactionView.transactions,Ht=o.useRef(et);Ht.current=et;const Kt=_((s=>s.expenseAutomationTransactionsViewState?.transactionCategorizationView)),Xt=_((s=>s.expenseAutomationTransactionsViewState?.selectedTransactionCategorizationTab)),Qt=o.useRef(Kt);Qt.current=Kt;const Zt=o.useRef(Xt);Zt.current=Xt;const tt=_((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=tt!=null?si(tt):0,Y=tt?.categories.filter((J=>J.values.length>0&&String(J.values[0]??"").trim()!=="")).map((J=>`${J.field}:${J.values.join(",")}`))??[];Z.trackAiCloseTransactionSearch({filtersApplied:Y,hasResults:et.length>0,isFiltered:M>0,resultsCount:et.length,searchTerm:s,searchType:"free_text"})}),[G,Se.fetchState,q.transactionView.uiState.searchString,q.transactionView.transactions,tt]);const fe=ki(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=Ht.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((()=>{k===!0&&a?.()}),[G,Wt.selectedAccountId]);const Fa=q.transactionView.selectedTransactionCategorizationCompletedSubTab,_a=q.transactionView.selectedTransactionGroup,nt=`${It}|${Fa}|${_a}`,at=o.useRef(null),tn=o.useRef(null);o.useEffect((()=>{at.current!==null?at.current!==nt&&(at.current=nt,G==="transaction_categorization"&&ie()):at.current=nt}),[ie,G,nt]);const Ma=_((s=>je==null?void 0:Xo(s.transactionState,je))),Te=Ma?.qboId,nn=_((s=>Te==null?void 0:Qo(s,Te)));o.useEffect((()=>{Te!=null&&h(Zo(Te))}),[h,Te]);const{createTransferEntryStatus:an,creditCardTransferAccountsList:on,transferAccounts:sn}=q.transactionView,cn=o.useCallback((s=>bi(h,s)),[h]),ln=o.useMemo((()=>G!=="transaction_categorization"||ce==null?null:ce.contentType==="activity"?gt===!0?P.jsx(ci,{activityLogView:nn,qboId:Te,onClose:()=>he(null),selectedTransactionId:ce.detail.transactionId,isQuickViewCardStyle:!0},String(ce.detail.transactionId)):null:ce.contentType==="transfer"?P.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}=Wt,rn=mt(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=ht(dn.start),qe=ht(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((()=>{xe(!0)}),[]),za=o.useCallback((s=>{Qe(s),xe(!1)}),[]),La=o.useCallback((()=>{Qe([])}),[]),ot=q.missingReceipts.bulkUpload.phase,un=q.missingReceipts.bulkUpload.currentBatchId;o.useEffect((()=>{ze===!0&&G==="missing_receipts"&&ot==="matching"&&un!=null&&h(na({cacheOverride:!0}))}),[ze,G,ot,un,h]);const mn=ft?.userId,Ga=N.month,Na=N.year,pn=$?.tenantId;o.useEffect((()=>{G==="missing_receipts"&&ze!==!1&&ot==="idle"&&mn!=null&&pn!=null&&h(ns())}),[G,ze,ot,mn,pn,Ga,Na,h]),o.useEffect((()=>{Re.newVendorState?.vendorDetailLocalData?.vendorName!=null?H(!0):H(!1)}),[Re.newVendorState?.vendorDetailLocalData?.vendorName]),o.useEffect((()=>{Ge!=null&&G!==Ge&&h(aa(Ge))}),[Ge]),o.useEffect((()=>{zt===!1&&Se.fetchState==="Completed"&&C&&(Ia(!0),h(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&&(h(Pn(!1,!1,be===!0)),h(ue(N,Le,!1,!1)))}),[N.month,N.year,C,be]);const st=o.useCallback(((s=!1,M=!1)=>{const Y={start:Ne,end:qe};switch(G){case"transaction_categorization":h(Pe(It,Y,s,!St,void 0,void 0,M)),Gt(!1);break;case"flux_analysis":h(ut(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);h(ss(!0,$.companyId,$.tenantId,Fe)),h(cs($.companyId,$.tenantId))}break;case"je_schedules":h(as(Y,M,be===!0));break;case"missing_receipts":h(oa(Y,{amount:75,currencyCode:"USD",currencySymbol:"$"},s,M));break;default:h(ue(N,Le,s,M))}}),[G,Ne,qe,$.companyId,$.tenantId,It,N,Le,St,Gt,be]),qa=o.useCallback((()=>{st(!0,!0)}),[st]);o.useEffect((()=>{G===Ge&&Se.fetchState==="Not-Started"&&C&&st(!0)}),[Se,Ne,qe,$.companyId,$.tenantId,C]),o.useEffect((()=>{Nt||St||Lt.current||wa.fetchState==="In-Progress"||Se.fetchState!=="Completed"||(Lt.current=!0,st(!0,!0))}),[]),o.useEffect((()=>{ae.fetchState!=="In-Progress"&&ae.fetchState!=="Completed"&&ae.fetchState!=="Error"&&$?.tenantId!=null&&h(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"&&h(ue(N,void 0,!1,!1))}),[ae.fetchState,C,N.month,N.year,q.reconciliation.fetchStatus.fetchState,h]),o.useEffect((()=>{q.monthEndInsights?.previewMonthEndReportStatus?.fetchState==="Completed"?me(!0):me(!1)}),[q.monthEndInsights?.previewMonthEndReportStatus?.fetchState]),o.useEffect((()=>{q.monthEndInsights?.sendMonthEndReportStatus?.fetchState==="Completed"&&C&&(h(Oe({tenantId:$.tenantId,period:N,refreshViewInBackground:!0})),h(is({companyId:$.companyId})),w("../"))}),[q.monthEndInsights?.sendMonthEndReportStatus?.fetchState,$.tenantId,N,$.companyId,C]),o.useEffect((()=>{const s=setInterval((()=>{ae.fetchState!=="In-Progress"&&ae.fetchState==="Completed"&&h(Oe({tenantId:$.tenantId,period:N,refreshViewInBackground:!0}))}),3e5);return()=>clearInterval(s)}),[ae.fetchState,$.tenantId,N,h]),o.useEffect((()=>{const s=setInterval((()=>{G==="reconciliation"&&Le==null&&q.reconciliation.fetchStatus.fetchState==="Completed"&&q.reconciliation.refreshStatus.fetchState!=="In-Progress"&&h(ue(N,void 0,!0,!0))}),3e5);return()=>clearInterval(s)}),[G,h,q.reconciliation.fetchStatus.fetchState,q.reconciliation.refreshStatus.fetchState,ue,Le,N]);const Ja=Vn(),{isFeatureEnabled:Ya}=de(K.isRecommendationFeedbackEnabled),hn=li(),{onRecommendationSelection:Sn,popup:Wa}=Ti({isEnabled:Ya}),Ha=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 Ka=k===!0?E:r,Xa=k===!0||T===!0,Qa=k===!0?a:S,Za=k!==!0&&V;o.useEffect((()=>{rn==="In-Progress"&&Ct.accountSettingsView.saveState.fetchState==="Completed"&&h(En())}),[rn,Ct.accountSettingsView.saveState.fetchState,En]);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:ct,transactionLocalData:so}=Je;if(Y==="transaction_categorization"){const bt=so.find((ye=>ye.transactionId===Me)),re=oo.find((ye=>ye.id===Me)),In=ct!=null?bt?.transactionReviewLocalData?.lineItemById[ct]:void 0,Cn=In?.account;_e=In?.class?.classId,Fe=["Uncategorized Income","Uncategorized Expense"].includes(Cn?.accountName??"")?void 0:Cn?.accountId;const io=Mi(Me,re?.typeOfTransaction);re!=null&&io&&(le={id:Me,type:Dt(re.typeOfTransaction)}),gn=()=>{if(Me!=null&&ct!=null&&re!=null){const ye=Je.transactionLocalData.find((it=>it.transactionId===Me))?.transactionReviewLocalData;if(ye!=null&&re.lines!=null&&re.lines.length>0){const it=ye.lineItemById[ct];let Tt=ye.selectedEntity;if(Lo(re)||(Tt=it.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:it.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:()=>{H(!1)},currentSelectedView:G});return qt?.loggedInUserRoleMap==null?ae.fetchState==="Error"?P.jsx(ri,{onGoHome:()=>w("../",{replace:!0}),onReload:()=>window.location.reload()}):P.jsx(da,{fetchState:"In-Progress"}):P.jsxs(P.Fragment,{children:[P.jsx(Vi,{isOpen:pe,drawerLeftMargin:new di(0,0,300,650),onClose:()=>{xe(!1)},children:P.jsx(sl,{onClick:s=>s.stopPropagation(),children:P.jsx(Xi,{companyId:$.companyId,closeCustomerRequestDrawer:()=>xe(!1),addCustomerRequest:za,resetCustomerRequest:La})})}),fn!=null&&j&&P.jsx(Ei,{isOpen:j,transactionId:fn,onSaveVendor:eo,onSaveSuccess:to,onCancel:no,vendorViewDetails:ao}),P.jsx(ui,{toolkit:Ha,children:P.jsx(al,{events:[],eventCallback:(s,M,Y)=>{},navigate:w,location:z,themeState:F,categoryOptions:Aa,classesForFilters:xa,accountsForFilters:Ra,vendorSearchAutoCompleteData:{autoCompleteText:Va,entityAutoCompleteView:va},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&&(Z.trackCreateTransactionRequested({transactionType:s}),w(Bi($e,s)))},isAccountingClassesEnabled:Ua,isProjectsTransactionsEnabled:Ta,isCOTEnabled:Ja,currentTenant:$,companyId:$.companyId,signedInUser:ft,isTransactionActivityEnabled:gt,isRightPanelOpen:Ba,rightSidePanel:ln,onOpenTransferRightPanel:Yt===!0?ee:void 0,uncategorizedAccounts:Oa,newScheduleActiveType:v,isAccrualEnabled:be,newScheduleSelection:Q,onNewScheduleSelectionChange:Ce,onScheduleTypeChange:W,onNewScheduleSaved:qa,onClickCustomerRequest:$a,handleEditClick:ja,tenantEmailDomain:$e,trackExpenseAutomationTabAnalytics:R,setActivityLogTransactionId:x,closeMatchSidePanel:t,closeSidePanel:Qa,openTransactionPanel:A,closeSchedulePanel:I,openSchedulePanel:y,openMatchPanel:l,sidePanelIsOpen:Xa,sidePanelIsFullView:Za,panelContent:Ka,isAiCfoAccessEnabled:L,onAskAiCfoClick:oe,isReconReportEnabled:Pa===!0,isReconV3Enabled:ya,onExpenseAutomationCommentingThreadClick:Ea,sidePanelListPercent:k===!0?66:void 0,isMatchPanelOpen:d,isSchedulePanelOpen:b,matchPanelContent:f,schedulePanelContent:D,schedulePendingDiscardConfirmation:U})}),Wa,fe.showPopup&&fe.popupType!=null&&P.jsx(mi,{popupType:fe.popupType,currencySymbol:fe.currencySymbol,accountId:fe.popupAccountId??"",accountName:fe.popupAccountName??"",onSubmit:fe.handleSubmit,onDismiss:fe.handleDismiss})]})}))))),sl=Ve(Jc)`
|
|
35
|
-
display: flex;
|
|
36
|
-
min-height: 100%;
|
|
37
|
-
flex-direction: column;
|
|
38
|
-
`;async function cl({authParams:t,endpoint:a,report:S}){const f=await fetch(a,{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:S,locale_id:"en-US",timezone:sa()})});if(!f.ok)throw new Error(`Reconciliation report download failed: ${f.statusText}`);const d=(function(c,l){return c==null?l:/filename="?([^"]+)"?/i.exec(c)?.[1]??l})(f.headers.get("Content-Disposition"),"Reconciliation_Report.pdf");(function(c,l){const A=new Blob([c]),r=URL.createObjectURL(A),E=document.createElement("a");E.href=r,E.download=l,document.body.appendChild(E),E.click(),document.body.removeChild(E),URL.revokeObjectURL(r)})(await f.arrayBuffer(),d)}const il=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[a,S]=t.split("-"),f=Number(a),d=Number(S);return Number.isNaN(f)||Number.isNaN(d)?void 0:{month:Gc(f),year:d}}function Jn(t){const a=ca().set("year",t.year).set("month",t.month-1).startOf("month"),S=a.endOf("month");return`${a.format(Nn)} – ${S.format(Nn)}`}function ll(t){const a=t.split("_");if(a.length!==2||a[0]===""||a[1]==="")return;const S=Number(a[0]),f=Number(a[1]);if(Number.isInteger(S)!==!0||Number.isInteger(f)!==!0)return;const d=qc(S);return d!=null?{month:d,year:f}:void 0}function rl(){const{tenantEmailDomain:t,selectedTab:a}=ve(),[S,f]=Yn(),d=Ue(),c=Ie(),l=ge(),A=Vt({mobileExploreReferrer:"reconciliation_report"}),[r,E]=o.useState("Not-Started"),k=S.get("accountId")??void 0,b=S.get("period")??void 0,I=_((v=>Ae(v))),y=_((v=>Ee(v))),D=_((v=>Wn(v,I.tenantId))),U=_((v=>Mn(v))),V=y.reconciliation.fetchStatus.fetchState,T=y.reconciliation.accountReconciliationsByAccountID,m=y.reconciliation.monthYearPeriod,u=o.useMemo((()=>b!=null?qn(b):void 0),[b]),g=o.useMemo((()=>{const v=(D.monthEndCloseChecks?.historicMonthYear??[]).map((W=>({periodId:Be(W),label:Jn(W)})));if(u==null)return v;const B=Be(u);return v.some((W=>W.periodId===B))?v:[{periodId:B,label:Jn(u)},...v]}),[D.monthEndCloseChecks?.historicMonthYear,u]),O=u!=null&&m.month===u.month&&m.year===u.year,w=_((v=>{if(k==null)return;const B=Ee(v).reconciliation.accountReconciliationsByAccountID[k];return B!=null?Mt(B):(function(W,Q,Ce){if(Ce!=null)for(const Re of Object.keys(Ce)){const $=ll(Re);if($==null)continue;const ke=Ce[Et($)];if(ke==null||ke.reconciliationByAccountID[Q]==null&&ke.accountIDs.includes(Q)===!1)continue;const me=Nc(W,Q,$);if(me==null)continue;const pe=me.account.accountName;if(pe!=null&&pe!=="")return Ii(pe,me.account.last4Digits)}})(v,k,Mn(v))})),z=o.useMemo((()=>{const v=Object.values(T).filter((B=>{return W=B.accountReconEntity.reconciliationStatus?.code,W!=null&&il.has(W);var W})).map((B=>({accountId:B.accountReconEntity.account.accountId,label:Mt(B)})));return k==null||v.some((B=>B.accountId===k))?v:[{accountId:k,label:w??k},...v]}),[k,T,w]),h=o.useMemo((()=>{if(k!=null&&O===!0)return T[k]?.accountReconEntity.reconciliationId}),[k,T,O]),L=u!=null?Et(u):void 0,e=L!=null&&U[L]!=null&&U[L].accountIDs.length>0,n=u!=null&&(O!==!0||V==="In-Progress"||e!==!0&&V!=="Completed"&&V!=="Error"),i=n!==!0&&O===!0&&h==null&&(k!=null||z.length===0),p=_((v=>h!=null?Lc(v,h):void 0)),C=o.useCallback((v=>{const B=new URLSearchParams;v.accountId!=null&&v.accountId!==""&&B.set("accountId",v.accountId),Ot(v.period)&&B.set("period",v.period),f(B,{replace:!0})}),[f]);o.useEffect((()=>{const v=u??m;I.tenantId!=null&&v!=null&&D.fetchState!=="In-Progress"&&D.fetchState!=="Completed"&&D.fetchState!=="Error"&&l(Oe({tenantId:I.tenantId,period:v,refreshViewInBackground:!1}))}),[I.tenantId,l,D.fetchState,u,m]),o.useEffect((()=>{u!=null&&O!==!0&&l(xt(I.tenantId,u))}),[I.tenantId,l,u,O]),o.useEffect((()=>{if(u==null||O!==!0||V==="In-Progress")return;const v=Et(u),B=U[v];!(B!=null&&B.accountIDs.length>0)&&l(ue(u,void 0,!0,!1))}),[l,V,U,u,O]),o.useEffect((()=>{u!=null&&O===!0&&z.length!==0&&k==null&&C({accountId:z[0].accountId,period:Be(u)})}),[k,z,u,C,O]),o.useEffect((()=>{h!=null&&l(Bn(h))}),[l,h]);const R=o.useCallback((()=>{const v=fi(c.state?.pathnameStackToGoBack),B=b??(m!=null?Be(m):void 0),W=jt({tenantEmailDomain:t,selectedTab:a,selectedPeriod:B})??`/${t??""}/month_end_close_checks/review`;d(v.poppedPathname??W,{state:{pathnameStackToGoBack:v.newStack}})}),[c.state,d,b,m,a,t]),F=o.useCallback((()=>{h!=null&&l(Bn(h,!0))}),[l,h]),j=o.useCallback((()=>{if(p?.report==null||r==="In-Progress")return;const v=Ke.getSignedInUser();E("In-Progress"),cl({endpoint:`${Bt}/reconciliation_report`,report:p.report,authParams:{userId:v?.userId??"",sessionId:v?.zeniSessionId??"",tenantId:I.tenantId}}).then((()=>{E("Completed")})).catch((()=>{E("Error")}))}),[I.tenantId,r,p?.report]),H=o.useCallback((v=>{u!=null&&C({accountId:v,period:Be(u)})}),[u,C]),X=o.useCallback((v=>{const B=qn(v);B!=null&&(l(xt(I.tenantId,B)),l(ue(B,void 0,!0,!1)),C({accountId:k,period:v}))}),[k,I.tenantId,l,C]);if(b==null||!Ot(b)||u==null)return P.jsx(Ut,{});const se=k??z[0]?.accountId??p?.report?.account.accountId??"",ne=n?"In-Progress":i===!0?"Completed":p?.fetchState??"Not-Started";return P.jsx(gi,{accountOptions:z,periodOptions:g,selectedAccountId:se,selectedPeriodId:Be(u),fetchState:ne,isReportNotFound:i,report:p?.report,downloadState:r,onAccountChange:H,onPeriodChange:X,onBackClick:R,onDownloadClick:j,onRetry:F,onAskAiCfoClick:A.isAiCfoAccessEnabled===!0?A.onAskAiCfoClick:void 0})}function dl(){const t=Ie(),{selectedTab:a,tenantEmailDomain:S}=ve(),f=_((l=>Ae(l))),d=_((l=>l.expenseAutomationViewState.selectedPeriodByTenantId[f.tenantId]));if(pa(a)==null)return P.jsx(Ut,{});const c=jt({tenantEmailDomain:S,selectedTab:a,selectedPeriod:d!=null?`${d.month}-${d.year}`:void 0});return c==null?null:P.jsx(ho,{to:c,replace:!0,state:t.state})}function $l(){return P.jsxs(po,{children:[P.jsx(Ye,{index:!0,element:P.jsx(ji,{})}),P.jsx(Ye,{path:"/:selectedTab/report",element:P.jsx(rl,{})}),P.jsx(Ye,{path:"/:selectedTab/:selectedPeriod/*",element:P.jsx(ol,{})}),P.jsx(Ye,{path:"/:selectedTab",element:P.jsx(dl,{})}),P.jsx(Ye,{path:"*",element:P.jsx(Ut,{})})]})}export{$l as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-DXMWX-Ft.js";import{a as g}from"./sentry-B8ZcloT9.js";import{u as F,g as O,h as _,t as w,j as l,N as T}from"./core-BEvMNwAD.js";import{z as r,G as M,Q as P,k as A,R as N,X as R,Z as G,T as J}from"./index-DjrnIAGb.js";import{fI as Q,UJ as W,Va as X,V1 as Y,gl as Z,gn as $,V6 as q,gY as B,dl as H,Vb as K,Vc as ee}from"./zeni-epic-state-D1qILDrP.js";import{u as te,n as ne}from"./mui-Bueuo6bM.js";import{u as se}from"./useDeviceId-TkNUqREt.js";import{f as ie}from"./analyticsHelper-CcVWjFHu.js";import{t as ae}from"./getLocaleForTenant-CX8UOlD0.js";import"./recharts-DktJiIze.js";import"./analytics-CvDaD8K9.js";import"./plaid-QK7fwo4O.js";import"./dnd-B2-znEgk.js";import"./stripe-cKAAJElX.js";import"./lottie-CunmMvLM.js";import"./lexical-VH-Dh1bf.js";import"./pdf-byaFE2JF.js";import"./utils-BVoHYbte.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]="15029782-7de6-466d-b811-341433d3c335",t._sentryDebugIdIdentifier="sentry-dbid-15029782-7de6-466d-b811-341433d3c335")}catch{}})();const C=(t,i)=>t!=null&&t.length>0&&i==="magic_links";function Ce(){const t=F(),i=O(),f=_(),[y]=w(),n=y.get("token"),p=y.get("stytch_token_type"),m=r.getMagicLinkCodeVerifier(),a=se(),{otpChallenge:d,twoFAPhoneNumber:D,magicLinkEmail:c,verifyDeviceFetchState:x,resendVerifyDeviceOTPFetchState:z}=l((e=>e.tenantState)),S=l((e=>e.tenantState.fetchState)),b=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=>Q(e))),k=l((e=>W(e))),E=r.getSignedInUser(),v=te().mode;g.useEffect((()=>{s?.zeniSessionId==null&&n!=null&&C(n,p)&&a!=null&&m!=null&&(r.saveMagicLinkTriggered(n),t(X(n,a,m)))}),[n,p,t,a,m,s?.zeniSessionId]),g.useEffect((()=>{I!=="In-Progress"||S!=="Completed"&&b!=="Completed"||s?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(s,s.zeniSessionId),r.saveSignedInUserTenants(Y(k.tenantsInOrder),s.zeniSessionId),Z(s.userId,s.zeniSessionId,o.tenantId),t($(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(q("Completed")),M.updateAppLocaleID(ae(o)),ie(s,o,v,void 0,k.tenantsInOrder),B().then((()=>{const e=J();e!=null&&P(e)})),setTimeout((()=>{A.trackLogin(N.Event.loginSuccess,"email",H(o.productSettings))}),2e3))}),[I,S,b,s,o,k,v,i.state,t]);const V=g.useCallback((()=>{f("/signin/auth")}),[f]),U=g.useCallback((()=>{a!=null&&d!=null&&c!=null&&t(K(a,c,d))}),[a,d,t,c]),j=g.useCallback((e=>{a!=null&&n!=null&&c!=null&&d!=null&&t(ee(e,a,c,d))}),[a,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=i.state?.origin??"/";return u.jsx(T,{to:e,state:{...i.state,origin:""}})}if(!C(n,p)||m==null||h==="Error"){const e=i.state?.origin??"/",L=n!=null&&r.getLastUsedMagicLinkToken()===n;return u.jsx(T,{to:e,state:{...i.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(G,{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-DXMWX-Ft.js";import{h as r,l as i}from"./core-BEvMNwAD.js";import{ak as n}from"./index-DjrnIAGb.js";import"./mui-Bueuo6bM.js";import"./sentry-B8ZcloT9.js";import"./zeni-epic-state-D1qILDrP.js";import"./recharts-DktJiIze.js";import"./analytics-CvDaD8K9.js";import"./plaid-QK7fwo4O.js";import"./dnd-B2-znEgk.js";import"./stripe-cKAAJElX.js";import"./lottie-CunmMvLM.js";import"./lexical-VH-Dh1bf.js";import"./pdf-byaFE2JF.js";import"./utils-BVoHYbte.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 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-DXMWX-Ft.js";import E from"./NotFoundScreen-D3mOwLoO.js";import{a as r}from"./sentry-B8ZcloT9.js";import{h as _,g as v,j as p,i as M,u as P,N as U,l as z,n as N,o as h}from"./core-BEvMNwAD.js";import{fI as O,a1Z as b,bo as B,bn as F,iP as V,gk as q}from"./zeni-epic-state-D1qILDrP.js";import{Y,z as I,aq as Z,dN as $}from"./index-DjrnIAGb.js";import"./mui-Bueuo6bM.js";import{u as G}from"./useAskAiCfoHostNavButtonProps-HzP0ICaF.js";import{M as H}from"./MobileAppDrawer-B8l2doly.js";import"./recharts-DktJiIze.js";import"./analytics-CvDaD8K9.js";import"./plaid-QK7fwo4O.js";import"./dnd-B2-znEgk.js";import"./stripe-cKAAJElX.js";import"./lottie-CunmMvLM.js";import"./lexical-VH-Dh1bf.js";import"./pdf-byaFE2JF.js";import"./utils-BVoHYbte.js";import"./InboxNotificationsProvider-TM2N59sT.js";import"./useTaskManagerAccess-D-e_eB5r.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]="f1cd11d5-59e0-4517-81ea-0ca721d179ee",e._sentryDebugIdIdentifier="sentry-dbid-f1cd11d5-59e0-4517-81ea-0ca721d179ee")}catch{}})();const J=z((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)}}}))($),K=()=>{const e=_(),t=v(),c=Y(),o=p((a=>O(a))),{aggregatedReportViewState:n}=p((a=>b(a))),{tenantEmailDomain:f}=M(),u=P(),l=I.getSignedInUser();if(l==null)throw new Error("Can't access this page without signing in...");const m=r.useRef(!1),[w,S]=r.useState(!1),C=B(o?.userRole??[]),k=o?.userRole?.includes("bookkeeping_admin")??!1,x=F(l),y=C||k||x,d=r.useCallback(((a,i,T)=>{u(V({fromMonth:a,toMonth:i,cacheOverride:T}))}),[]);r.useEffect((()=>{n?.fetchState==="Completed"&&m.current&&(u(q({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),m.current=!1)}),[n?.fetchState]);const D=r.useCallback(((a,i)=>{n!=null&&n?.fetchState==="In-Progress"||d(a,i,!0),m.current=!0}),[n?.fetchState,d]),j=r.useCallback(((a,i)=>{d(a,i,!1)}),[d]),g=a=>{S(a)},{isAiCfoAccessEnabled:R,onAskAiCfoClick:A}=G({mobileExploreReferrer:"Performance"});return Z({isDataReady:n?.fetchState==="Completed"}),y?s.jsxs(s.Fragment,{children:[s.jsx(H,{isAppContentDrawerOpen:w,handleDrawerToggle:g}),s.jsx(J,{navigate:e,location:t,themeState:c,currentTenant:o,signedInUser:l,tenantEmailDomain:f,onReload:D,onTimeRangeSelect:j,handleDrawerToggle:g,isAiCfoAccessEnabled:R,onAskAiCfoClick:A})]}):s.jsx(U,{to:`/${f}/dashboard`,replace:!0})};function he(){return s.jsxs(N,{children:[s.jsx(h,{path:"*",element:s.jsx(K,{})}),s.jsx(h,{path:"*",element:s.jsx(E,{})})]})}export{he as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-DXMWX-Ft.js";import{z as b,a6 as N,k as d,R as S,e4 as k,c as I,F as C}from"./index-DjrnIAGb.js";import"./mui-Bueuo6bM.js";import g from"./NotFoundScreen-D3mOwLoO.js";import{a as c}from"./sentry-B8ZcloT9.js";import{u as D,j as h,h as F,g as L,l as T,n as U,o as f,N as y}from"./core-BEvMNwAD.js";import{fI as _,a30 as j,a31 as p,Ei as P,q3 as V,a32 as R,Eg as q}from"./zeni-epic-state-D1qILDrP.js";import"./recharts-DktJiIze.js";import"./analytics-CvDaD8K9.js";import"./plaid-QK7fwo4O.js";import"./dnd-B2-znEgk.js";import"./stripe-cKAAJElX.js";import"./lottie-CunmMvLM.js";import"./lexical-VH-Dh1bf.js";import"./pdf-byaFE2JF.js";import"./utils-BVoHYbte.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]="03a577b9-e0f6-4922-be41-e0a5e78af2b4",e._sentryDebugIdIdentifier="sentry-dbid-03a577b9-e0f6-4922-be41-e0a5e78af2b4")}catch{}})();const z=T((function(e,t){const n=j(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=b.getSignedInUser();return{onDismissClick:()=>{e(p()),n("/")},onSendClick:()=>{if(i!=null){const s=[],r=[];t.inviteFormCompayData.forEach((l=>{s.push(l.companyName),r.push(l.emailIds[0])})),d.trackInviteEmailClicked("send",s,r,s.length)}e(q())},onUpdateInviteFormLocalData:s=>{e(R({localData:s}))},onSubmitSuccess:()=>{e(p())},onCancelClick:()=>{i!=null&&d.trackInviteEmailClicked("cancel")}}}))(k),G=()=>{const e=D(),[t,n]=c.useState(!1),[i,s]=c.useState(!1),r=h((o=>_(o))),l=F(),w=L(),u=b.getSignedInUser();if(u==null)throw Error("Can't access invite referral screen without signing in...");const m=h((o=>j(o))),x=u?.firstName!=null?u.firstName:"User";c.useEffect((()=>{e(p()),r?.rewardsLastViewedTime==null&&i===!1&&(e(P()),s(!0))}),[]),c.useEffect((()=>{t||m.fetchState!=="Not-Started"||(n(!0),e(V(!0)))}),[m.fetchState,e]);const E=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[m.fetchState==="Completed"?a.jsx(N,{analytics:d,onLoad:o=>(v=>v.trackPageLoaded(S.Event.inviteEmailViewed))(o)}):null,a.jsx(z,{navigate:l,location:w,currentTenant:r,companyName:E,userName:x,inviteFormCompayData:m.localData})]})};function ne(){const{useFeatureGate:e}=I(),{isFeatureEnabled:t}=e(C.isReferralFeatureEnabled);return a.jsxs(U,{children:[a.jsx(f,{path:"/",element:a.jsx(y,{to:"refer",replace:!0})}),a.jsx(f,{path:"how-it-works",element:a.jsx(y,{to:"refer",replace:!0})}),a.jsx(f,{path:"refer/*",element:t?a.jsx(G,{}):a.jsx(g,{})}),a.jsx(f,{path:"*",element:a.jsx(g,{})})]})}export{ne as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-DXMWX-Ft.js";import P from"./NotFoundScreen-D3mOwLoO.js";import{a as n}from"./sentry-B8ZcloT9.js";import{u as le,h as ue,g as me,i as pe,j as o,n as fe,o as p}from"./core-BEvMNwAD.js";import{fI as ye,gZ as be,m3 as Ie,uh as Se,XJ as he,XE as je,XK as Ce,S1 as ge,S2 as Ee,i3 as Te,m1 as Le,ui as ve,RT as ke,Ss as xe,XL as De,XM as Ae,R_ as Fe,RX as Me,XN as Xe,XO as we,XP as Ne}from"./zeni-epic-state-D1qILDrP.js";import{c as Re,V as _e,F as _,b0 as qe,z as ze,g as Pe,k as q,b1 as Ue,ac as He,G as Ge}from"./index-DjrnIAGb.js";import"./mui-Bueuo6bM.js";import{d as Oe}from"./decodeURIComponentSafe-CYLAirQ0.js";import{u as Ve}from"./useEnsureVendorListLoaded-CbpMm19m.js";import{u as $e,T as h}from"./TransactionDetailScreen-GlpiD3Ft.js";import{c as Be}from"./routePaths-B90RU5D-.js";import"./recharts-DktJiIze.js";import"./analytics-CvDaD8K9.js";import"./plaid-QK7fwo4O.js";import"./dnd-B2-znEgk.js";import"./stripe-cKAAJElX.js";import"./lottie-CunmMvLM.js";import"./lexical-VH-Dh1bf.js";import"./pdf-byaFE2JF.js";import"./utils-BVoHYbte.js";import"./useAskAiCfoHostNavButtonProps-HzP0ICaF.js";import"./useInitialThreadRequest-DMWJ57or.js";import"./expenseAutomationHelper-n1rnu5_l.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]="0a9a0eb3-a508-4226-8786-c806a6fee4d4",t._sentryDebugIdIdentifier="sentry-dbid-0a9a0eb3-a508-4226-8786-c806a6fee4d4")}catch{}})();const{common:{currency:z}}=Ge.getLocalizedStrings();function Je(){const t=le(),i=ue(),y=me(),{tenantEmailDomain:l,transactionTypeEncoded:U}=pe(),{useFeatureGate:j}=Re(),H=_e(),{isFeatureEnabled:G}=j(_.isCreateTransactionEnabled),{isFeatureEnabled:C}=j(_.isProjectsTransactionsEnabled),O=Oe(U??""),a=Ne.find((e=>e===O)),b=o((e=>ye(e))),g=qe(b.companyId,a),E=o((e=>be(e.companyState,b.companyId)?.company.companyLocaleInfo)),V=E?.currencyCode??z.currencyCode,$=E?.currencySymbol??z.currencySymbol,T=o((e=>e.tenantState.currentTenantId)),L=ze.getSignedInUser(),v=L?.userId??"",k=L?.zeniSessionId??"",B=n.useMemo((()=>({userId:v,sessionId:k,tenantId:T??""})),[v,k,T]),J=o((e=>Ie(e))),x=o((e=>Se(e))),D=x&&C===!0,I=o((e=>e.projectListState)),A=o((e=>e.projectState)),K=n.useMemo((()=>he(A,I).projects),[A,I]),S=o((e=>je(e,"common"))),F=o((e=>e.accountListState.byReportId.accountList.fetchState)),M=o((e=>e.classListState.fetchState)),r=o((e=>a!=null?Ce(e,a):void 0));n.useEffect((()=>{if(a!=null)return t(ge(a)),()=>{t(Ee(a))}}),[t,a]);const Z=Pe(),Q=o((e=>{const{activeTenantFetchState:c,currentTenantId:R,fetchState:ie,tenantsById:de}=e.tenantState;return R!=null&&de[R]!=null&&(c.fetchState==="Completed"||ie==="Completed")})),d=Z&&Q;n.useEffect((()=>{d&&F==="Not-Started"&&t(Te("accountList"))}),[t,d,F]),n.useEffect((()=>{d&&M==="Not-Started"&&t(Le())}),[t,d,M]);const X=I.fetchState;n.useEffect((()=>{d&&D&&X==="Not-Started"&&t(ve())}),[t,d,D,X]),Ve(d),$e(d&&a==="transfer",!1);const W=n.useCallback(((e,c=[])=>{c.length>0&&t(ke(c)),l!=null&&i(Be(e,l))}),[t,l,i]),Y=n.useCallback((()=>{y.key==="default"?l!=null&&i(`/${l}/month_end_close_checks/review/transaction_categorization`):i(-1)}),[y.key,i,l]),ee=n.useCallback((e=>{t(xe(e))}),[t]),w=n.useRef(void 0),m=r?.createStatus.error;n.useEffect((()=>{if(a==null||m==null)return;const e=`${m.code??""}-${m.message??""}`;w.current!==e&&(w.current=e,q.trackCreateTransactionFailed({transactionType:a,errorCode:m.code}))}),[m,a]);const f=n.useCallback((e=>e),[]),u=n.useMemo((()=>(r?.vendorList??[]).filter((e=>!e.isDeleted)).sort(((e,c)=>e.name.localeCompare(c.name)))),[r?.vendorList]),N=r?.localData.vendorId,te=n.useMemo((()=>{const e=u.find((c=>c.id===N));if(e!=null)return e.qboId!==""&&e.qboId!==e.name?e.qboId:e.name}),[u,N]),ae=o((e=>De(e,te))),ne=n.useMemo((()=>f(u.map((e=>({id:e.id,label:e.name}))))),[u,f]),oe=n.useMemo((()=>({...S,vendor:[...u.map((e=>({id:e.id,name:e.name,qboId:e.qboId,type:"vendor",zeniId:e.id}))),...S.vendor]})),[S,u]),se=n.useMemo((()=>f((r?.transferAccountsList??[]).map((e=>({id:e.accountId,label:e.accountName}))))),[r?.transferAccountsList,f]),re=n.useCallback((e=>{a!=null&&t(Ae(a,e))}),[t,a]),ce=n.useCallback(((e,c)=>{a!=null&&t(Fe(a,c,e))}),[t,a]);return g==null?null:a!=null&&r!=null&&G===!0&&g&&H?.connectionName!=="netsuite"?s.jsx(Ue,{analytics:q,attachmentUploadEndpoint:He.accountMicroServiceBaseUrl,authParams:B,createdTransactionId:r.createdTransactionId,transactionType:a,localData:r.localData,createStatus:r.createStatus,accountsHierarchyList:r.accountListNestedAccountHierarchy,classHierarchyList:r.classListNestedAccountHierarchy,vendorOptions:ne,transferAccountOptions:se,isAccountingClassesEnabled:J,isAccountingProjectsEnabled:x,isProjectsTransactionsEnabled:C===!0,projects:K,currencyCode:V,currencySymbol:$,bookCloseDate:b.bookCloseDate?.toDate(),entityAutoCompleteView:oe,vendorRecommendationFetchState:ae.fetchState,onUpdateLocalData:re,onAddLine:()=>t(we(a)),onRemoveLine:e=>t(Xe(a,e)),onSubmit:()=>t(Me(a)),onCancel:Y,onCreateTransactionComplete:W,onUploadAttachmentAttachment:ee,onFetchRecommendationsForVendor:ce}):s.jsx(P,{})}function St(){return s.jsxs(fe,{children:[s.jsx(p,{path:"/new/:transactionTypeEncoded",element:s.jsx(Je,{})}),s.jsx(p,{path:"/:transactionTypeEncoded/:transactionId",element:s.jsx(h,{})}),s.jsx(p,{path:"/:transactionTypeEncoded/:transactionId/page-not-found",element:s.jsx(P,{})}),s.jsx(p,{path:"/:transactionTypeEncoded/:transactionId/vendor/create",element:s.jsx(h,{})}),s.jsx(p,{path:"/*",element:s.jsx(h,{})})]})}export{St as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as c}from"./liveblocks-DXMWX-Ft.js";import{a as m}from"./sentry-B8ZcloT9.js";import{h as x,u as $,g as j,i as v,j as p}from"./core-BEvMNwAD.js";import{U2 as s,U1 as z,a0z as B,fI as C,a0A as T}from"./zeni-epic-state-D1qILDrP.js";import{$ as U,ac as g,z as D,a5 as E,d5 as L,a2 as P}from"./index-DjrnIAGb.js";import{u as N,n as _}from"./mui-Bueuo6bM.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b2142151-3f0d-4593-b0e4-eb2badd62ef6",e._sentryDebugIdIdentifier="sentry-dbid-b2142151-3f0d-4593-b0e4-eb2badd62ef6")}catch{}})();const A=_.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`;function H(){const e=x(),n=$(),d=U(),l=j();let{accountId:a}=v(),f=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&l.pathname.includes(`${s}/statements`)&&(a=s,f=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[u,b]=m.useState(!1),y=N();m.useEffect((()=>{u||(b(!0),n(z(a??"",!1)))}),[u,n]);const o=p((t=>B(t,a??""))),h=()=>{const t=P(l.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},r=D.getSignedInUser(),i=p((t=>C(t))),I={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:i.tenantId??""},w=T(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=i.company?.companyInfo.companyLegalName??i.companyName;if(r==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?c.jsx(E,{fetchState:"In-Progress",style:{backgroundColor:y.colors.grey5}}):c.jsx(A,{windowSize:d,children:c.jsx(L,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:h,authParams:I,downloadEndPoint:f})})}export{H as Z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bu as n}from"./index-DjrnIAGb.js";import"./sentry-B8ZcloT9.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="d1c33b31-8c90-47ac-9f00-1e2f43424666",e._sentryDebugIdIdentifier="sentry-dbid-d1c33b31-8c90-47ac-9f00-1e2f43424666")}catch{}})();function f(){return n("dashboard")}export{f as u};
|