@zeniai/web-app-ui 5.0.13-qa → 5.0.15-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/AddressRoutes-x8EoHTgO.js +1 -0
- package/dist/assets/AddressScreen-BIexwSUC.js +9 -0
- package/dist/assets/{AiCfoScreen-ewYuEkZ3.js → AiCfoScreen-DN022lRy.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-6DCHmj66.js → BillPayApprovalRoutes-D6a6fZAk.js} +1 -1
- package/dist/assets/{BillPayRoutes-JttMy0pk.js → BillPayRoutes-CdXbo9_x.js} +11 -11
- package/dist/assets/{BusinessVerificationPageScreen-CXOkme37.js → BusinessVerificationPageScreen-CavwhxgK.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-BNVefQP2.js → ChargeCardRoutes-Xfw8idFo.js} +9 -9
- package/dist/assets/{CompanyPassportScreen-hbCeNXET.js → CompanyPassportScreen-BFYWdwCR.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-CYb2h10Q.js → ConnectionAuthScreen-OGsoNPk1.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-BlUS8xnK.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-D38cBz7L.js → CustomerOnboardingRoutes-CdcqOy3h.js} +4 -4
- package/dist/assets/{DashboardRoutes-CXR7RIXZ.js → DashboardRoutes-DBu1dqFJ.js} +3 -3
- package/dist/assets/{DefaultTenantHome-Bds6JS81.js → DefaultTenantHome-vkfDVx8a.js} +1 -1
- package/dist/assets/DomesticWireDetailScreen-BsWJ2Su_.js +18 -0
- package/dist/assets/DrawerScreen-Bw1QfkLT.js +1 -0
- package/dist/assets/EntityDetailRoutes-DDZlauU7.js +1 -0
- package/dist/assets/{ExpenseAutomationRoutes-STqj7D8N.js → ExpenseAutomationRoutes-CbzZZ1fQ.js} +5 -5
- package/dist/assets/FeaturePreviewScreen-Bnq4uovL.js +1 -0
- package/dist/assets/{MagicLinkRoutes-BivSSxVd.js → MagicLinkRoutes-CeL7GNJn.js} +8 -8
- package/dist/assets/MagicLinkSignInScreen-f8Uc14m0.js +12 -0
- package/dist/assets/{MobileAppDrawer-D5mpxBw9.js → MobileAppDrawer-NY5CZpkD.js} +1 -1
- package/dist/assets/NotFoundScreen-DNbVpibd.js +1 -0
- package/dist/assets/{NotificationRoutes-DCkZ7gQ_.js → NotificationRoutes-BRjGOURk.js} +1 -1
- package/dist/assets/PandLWithForecastRoutes-oBHUYnSn.js +1 -0
- package/dist/assets/{PeopleRoutes-C7qECXfl.js → PeopleRoutes-0DuSRKi7.js} +1 -1
- package/dist/assets/PerformanceRoutes-BPySqreL.js +1 -0
- package/dist/assets/{Preview-RtmufjZX.js → Preview-HaN7BDGs.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-B490WYfn.js → QBOConnectionScreen-WktucsBE.js} +1 -1
- package/dist/assets/{ReferralListScreen-B5qHdStP.js → ReferralListScreen-CAsh5C9i.js} +2 -2
- package/dist/assets/{ReimbursementApprovalRoutes-CK4vrOlS.js → ReimbursementApprovalRoutes-BAvS3MWN.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-ihcMaQoX.js → ReimbursementApprovalRuleDetailScreen-ZZIaexmv.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-DKkIKak7.js → ReimbursementRoutes-yVlm9pPF.js} +4 -4
- package/dist/assets/{ReportsRoutes-DZxCy0t1.js → ReportsRoutes-Dlw2t-eT.js} +1 -1
- package/dist/assets/RewardsRoutes-BP5Nzhwq.js +1 -0
- package/dist/assets/{ScreenRoutes-C19HfyTq.js → ScreenRoutes-B_PRMI91.js} +2 -2
- package/dist/assets/{SettingsRoutes-6l5kiZbY.js → SettingsRoutes-BKRiya-R.js} +1 -1
- package/dist/assets/{SetupPagesScreen-CJpk__M_.js → SetupPagesScreen-BlvsgM9d.js} +5 -5
- package/dist/assets/SignInScreen-BYWJfkJz.js +1 -0
- package/dist/assets/SignOutScreen-BDOb5I1P.js +9 -0
- package/dist/assets/{TaskListScreen-C5V8F8lL.js → TaskListScreen-7rCdkI4n.js} +2 -2
- package/dist/assets/TaskRoutes-GSceRjWV.js +9 -0
- package/dist/assets/TransactionDetailRoutes-BJJ7P6dg.js +1 -0
- package/dist/assets/{TransactionDetailScreen-CC0P_ZOY.js → TransactionDetailScreen-BRy8OBJd.js} +2 -2
- package/dist/assets/{TransactionListRoutes-CUiqlXNC.js → TransactionListRoutes-CvETOFD-.js} +1 -1
- package/dist/assets/{TreasuryRoutes-DYlVz1Pn.js → TreasuryRoutes-Cd4RbTnr.js} +5 -5
- package/dist/assets/{VendorsRoutes-Cjp0Gufi.js → VendorsRoutes-BOMpA3qx.js} +12 -12
- package/dist/assets/WiseConfirmationScreen-CfxOf9br.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-BmDqzfW9.js → ZeniAccountRoutes-CTYhth7C.js} +7 -7
- package/dist/assets/ZeniAccountStatementScreen-B0vovcSx.js +9 -0
- package/dist/assets/{accountMappingHelper-VkYriGBP.js → accountMappingHelper-KEN2wBMB.js} +1 -1
- package/dist/assets/{analytics-D3BPH6yx.js → analytics-CqLahF_v.js} +1 -1
- package/dist/assets/{analyticsHelper-DZz2Dorw.js → analyticsHelper-1lOvj-za.js} +1 -1
- package/dist/assets/{core-CZukbx0Q.js → core-BM9YDzPX.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-BMhpBWAI.js → decodeURIComponentSafe-a784xZQy.js} +1 -1
- package/dist/assets/{dnd-C982KOaa.js → dnd-DLVMxaGF.js} +1 -1
- package/dist/assets/{empty-BWCQ_0J5.js → empty-1FgpzQaJ.js} +1 -1
- package/dist/assets/{empty-v0hJlOmn.js → empty-CNAYaS5M.js} +1 -1
- package/dist/assets/{emptyVideoElement-BxwhKJBx.js → emptyVideoElement-BRM3Ls5f.js} +1 -1
- package/dist/assets/{epic-CGgrgTSz.js → epic-BYLgH3Dp.js} +1 -1
- package/dist/assets/getLocaleForTenant-Czitv1AW.js +1 -0
- package/dist/assets/{index-BCMOKGoM.js → index-BxZQbqZa.js} +8622 -8635
- package/dist/assets/{index-BclNqUUi.js → index-Dib88HEg.js} +1 -1
- package/dist/assets/{index-CTCUMK3y.js → index-DpQl7e8K.js} +1 -1
- package/dist/assets/{index-B40Qim0p.js → index-DvjNZZRv.js} +1 -1
- package/dist/assets/{index-BiQB87nE.js → index-HpYLj_bE.js} +2 -2
- package/dist/assets/{index-BCUyk4vZ.js → index-t8Vx9mm2.js} +1 -1
- package/dist/assets/{index-BL5F9FcF.js → index-z1OKiepB.js} +1 -1
- package/dist/assets/{lexical-BiHBh7jO.js → lexical-CFqhubpO.js} +1 -1
- package/dist/assets/{liveblocks-D6KTXvhv.js → liveblocks-585gCzRC.js} +1 -1
- package/dist/assets/{lottie-28Wzb4-h.js → lottie-piZcDgIc.js} +1 -1
- package/dist/assets/{mui-BsWf3aoF.js → mui-Dh_OiBGq.js} +1 -1
- package/dist/assets/{pathToGoBack-DuOzAHpB.js → pathToGoBack-B-VHmIUu.js} +1 -1
- package/dist/assets/{pdf-D4etPH5X.js → pdf-C7LOTluM.js} +4 -4
- package/dist/assets/{pdf-lib-B-kXlgH7.js → pdf-lib-mwEs-5am.js} +1 -1
- package/dist/assets/{plaid-BlZUWQEE.js → plaid-B3TMtaAn.js} +1 -1
- package/dist/assets/{pusher-DNeGnq4j.js → pusher-BGUQs6aC.js} +1 -1
- package/dist/assets/{react-BjugJboI.js → react-BJCRbKNE.js} +1 -1
- package/dist/assets/{react-Bgw1-uo-.js → react-BTYE0_A9.js} +1 -1
- package/dist/assets/{react-BKssAPFM.js → react-CDHObaz0.js} +1 -1
- package/dist/assets/{react-DIioZG0x.js → react-CtpNxQP9.js} +1 -1
- package/dist/assets/{react-ScHkzTjl.js → react-D9pVmjGq.js} +1 -1
- package/dist/assets/{react-Cmcopb6P.js → react-yTm2bgF6.js} +1 -1
- package/dist/assets/{recharts-Kt4_Z9D4.js → recharts-Bk8sahKA.js} +1 -1
- package/dist/assets/{routePaths-tEjN6NOl.js → routePaths-DKtGe48K.js} +1 -1
- package/dist/assets/{sentry-DlTle5wx.js → sentry-CznkHhej.js} +1 -1
- package/dist/assets/{url-B8abWcfS.js → url-Binr_y8q.js} +1 -1
- package/dist/assets/{url-kIFJA3dP.js → url-Bqap2__X.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-DxvBbMZO.js +1 -0
- package/dist/assets/{useDeviceId-DgVtbX-U.js → useDeviceId-D_MFUrrA.js} +1 -1
- package/dist/assets/useFetchSuggestedQuestionsWhenReady-DCbrlg3X.js +1 -0
- package/dist/assets/{useInitialThreadRequest-BTiRAkUA.js → useInitialThreadRequest-F8zTMPR1.js} +1 -1
- package/dist/assets/{utils-CnNkpT2e.js → utils-Boc0JP6O.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-ZDRkIRTY.js → withTransactionSidePanel-DJ3JMAJu.js} +1 -1
- package/dist/assets/zeni-epic-state-1oMHKKZA.js +14 -0
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/AddressRoutes-BA8UpUoz.js +0 -1
- package/dist/assets/AddressScreen-wZpAUSdZ.js +0 -9
- package/dist/assets/CustomerOnboardingAuthScreen-moX3_8mB.js +0 -1
- package/dist/assets/DomesticWireDetailScreen-KeTNW03I.js +0 -18
- package/dist/assets/DrawerScreen-DXNbqsAp.js +0 -1
- package/dist/assets/EntityDetailRoutes-BhAzs2j-.js +0 -1
- package/dist/assets/FeaturePreviewScreen-D9DJst05.js +0 -1
- package/dist/assets/MagicLinkSignInScreen-05q0tCiT.js +0 -12
- package/dist/assets/NotFoundScreen-DnEnkkn2.js +0 -1
- package/dist/assets/PandLWithForecastRoutes-BHSuvYUw.js +0 -1
- package/dist/assets/PerformanceRoutes-OON3zt07.js +0 -1
- package/dist/assets/RewardsRoutes-CwxXiTXh.js +0 -1
- package/dist/assets/SignInScreen-CuXnl8v3.js +0 -1
- package/dist/assets/SignOutScreen-CtWlZGJe.js +0 -9
- package/dist/assets/TaskRoutes-Ij3Vyd6Z.js +0 -9
- package/dist/assets/TransactionDetailRoutes-CVAtnUsR.js +0 -1
- package/dist/assets/WiseConfirmationScreen-Cm2TEEU0.js +0 -12
- package/dist/assets/ZeniAccountStatementScreen-C885RBh5.js +0 -9
- package/dist/assets/getLocaleForTenant-BRQJ8Vdp.js +0 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-CAHHYp9d.js +0 -1
- package/dist/assets/useFetchSuggestedQuestionsWhenReady-CrNlGe8g.js +0 -1
- package/dist/assets/zeni-epic-state-1VZHEC1T.js +0 -14
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-BxZQbqZa.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-CznkHhej.js"><link rel="modulepreload" crossorigin href="/assets/core-BM9YDzPX.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-1oMHKKZA.js"><link rel="modulepreload" crossorigin href="/assets/mui-Dh_OiBGq.js"><link rel="modulepreload" crossorigin href="/assets/analytics-CqLahF_v.js"><link rel="modulepreload" crossorigin href="/assets/utils-Boc0JP6O.js"><link rel="stylesheet" crossorigin href="/assets/index-D-vub4_t.css"></head><body style="margin:0"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><div class="app-shell-loader" id="app-shell-loader"><div class="app-shell-sidebar"><div class="app-shell-sidebar-group"><div class="app-shell-bar zeni-logo" style="width:96px;height:20px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:78px;height:16px"></div><div class="app-shell-bar" style="width:46px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:110px;height:16px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div><div class="app-shell-bar" style="width:64px;height:16px"></div></div></div><div class="app-shell-main"><div class="app-shell-navbar"><div class="app-shell-bar" style="width:106px;height:27px"></div><div class="app-shell-bar" style="width:111px;height:32px"></div></div><div class="app-shell-logo"><svg width="96" height="96" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.768 0.0270284C16.571 -0.055168 16.348 0.0572476 16.2913 0.267574C16.2713 0.342517 16.2489 0.417461 16.2253 0.491196C16.0094 1.15723 15.6459 1.76645 15.148 2.27776C14.3056 3.14203 13.1847 3.61949 11.9918 3.6207H11.9883C10.7978 3.6207 9.67689 3.14565 8.83445 2.2838C8.33653 1.7737 7.97077 1.16448 7.75367 0.499657C7.73007 0.425922 7.70765 0.350979 7.68641 0.276035C7.62978 0.065709 7.40678 -0.0454978 7.20974 0.0366985C6.05463 0.522624 4.98565 1.17899 4.0323 1.97436C3.91195 2.07468 3.87301 2.24512 3.93083 2.39259C3.9792 2.51589 4.03112 2.63797 4.08539 2.75764C4.51133 3.70894 5.10364 4.5853 5.84815 5.34682C7.48937 7.0246 9.66863 7.9493 11.9871 7.9493H11.9954C14.3162 7.94689 16.4978 7.01855 18.1379 5.33595C18.8812 4.57321 19.4711 3.69564 19.8959 2.74434C19.9502 2.62347 20.0009 2.50138 20.0493 2.37809C20.1071 2.23062 20.0682 2.06018 19.9478 1.95985C18.9933 1.16569 17.9231 0.511745 16.768 0.0270284Z"/><path d="M19.9102 21.2422C19.4843 20.2933 18.8931 19.4194 18.151 18.6603C16.5086 16.9801 14.3223 16.053 12.0038 16.0578C8.50304 16.0614 5.48371 18.1961 4.11031 21.2603C4.05722 21.38 4.0053 21.5009 3.95575 21.623C3.89675 21.7704 3.93569 21.9421 4.05722 22.0436C5.01175 22.8366 6.08073 23.4893 7.23466 23.9728C7.4317 24.055 7.65352 23.9438 7.71134 23.7335C7.73139 23.6573 7.75381 23.5836 7.77859 23.5086C8.37207 21.6979 10.0416 20.3888 12.0073 20.3864H12.012C13.2025 20.3864 14.3234 20.8614 15.1659 21.7233C15.6626 22.231 16.026 22.8378 16.2431 23.5002C16.2679 23.5739 16.2903 23.6489 16.3104 23.7238C16.3682 23.9341 16.59 24.0453 16.787 23.9619C17.9422 23.476 19.01 22.8209 19.9633 22.0255C20.0837 21.9252 20.1226 21.7535 20.0648 21.606C20.0164 21.4828 19.9645 21.3631 19.9102 21.2422Z"/><path d="M0.132148 10.1666C0.158105 9.98769 0.305591 9.85352 0.482575 9.85352L23.5093 9.81726C23.6863 9.81726 23.8338 9.95022 23.8609 10.1291C23.9518 10.7347 23.999 11.3548 23.999 11.9858C24.0001 12.6131 23.9541 13.2284 23.8668 13.8292C23.8408 14.0081 23.6934 14.1422 23.5164 14.1422L0.489654 14.1773C0.312671 14.1773 0.165185 14.0443 0.138047 13.8654C0.0471956 13.2598 0 12.6397 0 12.0088C0 11.3826 0.0448358 10.7673 0.132148 10.1666Z"/></svg></div></div></div></body></html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/web-app-ui",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.15-dev",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/**/*"
|
|
6
6
|
],
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"@sentry/react": "^9.42.1",
|
|
29
29
|
"@stripe/stripe-js": "^4.4.0",
|
|
30
30
|
"@zeniai/client-analytics": "2.0.2",
|
|
31
|
-
"@zeniai/client-epic-state": "5.0.
|
|
32
|
-
"@zeniai/web-components": "4.0.
|
|
31
|
+
"@zeniai/client-epic-state": "5.0.10",
|
|
32
|
+
"@zeniai/web-components": "4.0.18",
|
|
33
33
|
"color": "3.1.3",
|
|
34
34
|
"cross-fetch": "^4.0.0",
|
|
35
35
|
"crypto-js": "4.2.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-D6KTXvhv.js";import{A as d}from"./AddressScreen-wZpAUSdZ.js";import i from"./NotFoundScreen-DnEnkkn2.js";import"./sentry-DlTle5wx.js";import{n as s,o as r}from"./core-CZukbx0Q.js";import"./zeni-epic-state-1VZHEC1T.js";import"./recharts-Kt4_Z9D4.js";import"./index-BCMOKGoM.js";import"./mui-BsWf3aoF.js";import"./analytics-D3BPH6yx.js";import"./plaid-BlZUWQEE.js";import"./dnd-C982KOaa.js";import"./stripe-DMRn4zHo.js";import"./lottie-28Wzb4-h.js";import"./lexical-BiHBh7jO.js";import"./pdf-D4etPH5X.js";import"./utils-CnNkpT2e.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="4bd15e18-5b5f-4be1-8d33-8bd696c76da2",t._sentryDebugIdIdentifier="sentry-dbid-4bd15e18-5b5f-4be1-8d33-8bd696c76da2")}catch{}})();function _(){return e.jsxs(s,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(d,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(d,{})}),e.jsx(r,{path:"*",element:e.jsx(i,{})})]})}export{_ as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./liveblocks-D6KTXvhv.js";import{a as h}from"./sentry-DlTle5wx.js";import{j as P,h as _,u as j,l as E,g as $,k as B}from"./core-CZukbx0Q.js";import{J as M,h as D,z as L,S as K,B as R,x as z,c as I,e as m,p as F,j as b,q as N}from"./index-BCMOKGoM.js";import{IZ as C,gI as U,eM as q,I_ as G,b$ as O,I$ as V,k2 as H}from"./zeni-epic-state-1VZHEC1T.js";import{n as J}from"./mui-BsWf3aoF.js";import Z from"./NotFoundScreen-DnEnkkn2.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]="88bd157d-415a-492d-8d46-e1f9f2896eea",e._sentryDebugIdIdentifier="sentry-dbid-88bd157d-415a-492d-8d46-e1f9f2896eea")}catch{}})();const Q=J.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`,W=B(function(e,t){const{addressId:o,isSubPage:i,addressType:c}=t,l=q(e),a=t.roleMap!=null&&G(t.roleMap),d=i||c==="user_address"||O(l?.userRole??[])||a?void 0:"readonly";if(o==null){const s=V(c,e);return{addressToEdit:s?.addressToCreate,loadingState:s?.status?.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:d,isSubPage:i,dontShowSaveConfirmationPopup:t.dontShowSaveConfirmation}}const n=C(e,o);return{addressToEdit:n.address,loadingState:n.fetchState,googleAPIKey:b.googleMapsAPIKey,isDisabled:d}},function(e,t){const{navigate:o,location:i,addressType:c}=t,l=a=>{if(a==="express-pay")o("../express-pay/add-wire");else{const d=i.state,n=N(d?.pathnameStackToGoBack);let s=n.poppedPathname??k();const u=d?.queryParams;if(u){const g=new URLSearchParams(u).toString();g&&(s=`${s}?${g}`)}o(s,{state:{pathnameStackToGoBack:n.newStack}})}};return{onSubmitHandler:a=>{const d=X(a);e(H({addressType:c,addressToCreate:d})),I?.trackSaveAddressClicked(m.Event.saveAddressClicked,{street:a.street.addressString,city:a.city,state:a.state,country:a.country.selectedOption??"",postalCode:a.postalCode,suite:a.suite,secondaryInfo:a.secondaryInfo}),l(t.bankAccountContext)},onCancel:()=>{l(t.bankAccountContext)}}})(F);function re({isSubPage:e,hideAddressSubTitle:t=!1,hideAddressBackButton:o=!1,dontShowSaveConfirmation:i,accountContext:c,addressTypeParam:l}){const a=P(),d=_(),n=j(),{addressId:s,addressType:u}=E(),g=M(),w=D(),x=L.getSignedInUser(),[f,v]=h.useState(s==null),p=$(S=>s!=null?C(S,s).fetchState:"Not-Started"),A=K();if(x==null)throw Error("Can't access address page without signing in...");const T=S=>S.trackPageLoaded(s!=null?m.Event.editAddress:m.Event.addAddress),y=l??u;return h.useEffect(()=>{f||s==null||(v(!0),d(U(s,!1)))},[f,s,d]),y==null||y.match(/(user_address|company_address|company_registered_address|vendor_address|officer_([1-9]|10)_address)$/g)?!f&&p==="Not-Started"||f&&p==="In-Progress"?r.jsx(R,{fetchState:p,style:{backgroundColor:w.colors.grey5}}):s!=null&&p==="Error"?(a(`${k(1)}/new`,{replace:!0}),r.jsx(r.Fragment,{})):r.jsxs(r.Fragment,{children:[r.jsx(z,{analytics:I,onLoad:T}),r.jsx(Q,{windowSize:g,children:r.jsx(W,{location:n,navigate:a,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:t,addressId:s,addressType:y,dontShowSaveConfirmation:i,bankAccountContext:c,roleMap:A?.loggedInUserRoleMap})})]}):r.jsx(Z,{})}const k=(e=2)=>{let t="../";for(let o=0;o<e;o++)t=`${t}../`;return t},X=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng});export{re as A,X as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as d}from"./liveblocks-D6KTXvhv.js";import{z as n}from"./index-BCMOKGoM.js";import{g as p}from"./QBOConnectionScreen-B490WYfn.js";import"./sentry-DlTle5wx.js";import{u as a,N as i}from"./core-CZukbx0Q.js";import"./zeni-epic-state-1VZHEC1T.js";import"./recharts-Kt4_Z9D4.js";import"./mui-BsWf3aoF.js";import"./analytics-D3BPH6yx.js";import"./plaid-BlZUWQEE.js";import"./dnd-C982KOaa.js";import"./stripe-DMRn4zHo.js";import"./lottie-28Wzb4-h.js";import"./lexical-BiHBh7jO.js";import"./pdf-D4etPH5X.js";import"./utils-CnNkpT2e.js";import"./empty-v0hJlOmn.js";import"./pdf-lib-B-kXlgH7.js";import"./index-CTCUMK3y.js";import"./url-kIFJA3dP.js";import"./index-B40Qim0p.js";import"./decodeURIComponentSafe-BMhpBWAI.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="b68d0d57-e81d-4cfb-97e6-d4dd5e5b7ebd",t._sentryDebugIdIdentifier="sentry-dbid-b68d0d57-e81d-4cfb-97e6-d4dd5e5b7ebd")}catch{}})();const U=()=>{const t=a(),{code:o,realmId:r,state:e}=p(t.search),s=n.getSignedInUser()?.userId??"";if(f(o,r,e,s)===!0){const m=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return d.jsx(i,{to:m})}return d.jsx(i,{to:"../../"})},f=(t,o,r,e)=>t!=""&&o!=""&&r!=""&&e!=null&&e!="";export{U as default,f as hasValidParams};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-D6KTXvhv.js";import{j as w,u as C,g as h,k as A,l as B}from"./core-CZukbx0Q.js";import{Ma as k,Mh as _,fA as J,fz as q,fy as L,ii as W,Ji as K,ps as Q,eM as V,LI as D,ig as T,Mb as v,Mk as F,id as G,iC as j}from"./zeni-epic-state-1VZHEC1T.js";import{bj as X,J as R,i as N,z as U,h as M,q as p,s as S,B as z,bk as Y,o as O,bl as ee,v as ae}from"./index-BCMOKGoM.js";import{n as Z}from"./mui-BsWf3aoF.js";import"./sentry-DlTle5wx.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="acaef878-aac3-4311-a462-afbdca4232da",e._sentryDebugIdIdentifier="sentry-dbid-acaef878-aac3-4311-a462-afbdca4232da")}catch{}})();const te=A(null,function(e,a){return{onSaveVendor:t=>{e(W(a.vendorId!==void 0?a.vendorId:void 0,a.billId,void 0,a.isExpressPayPage)),e(K("common")),t!=null&&e(Q(t))},onGetOtp:t=>{e(L(t,"BillPayVendor"))},onResendOtp:t=>{e(q(t,"BillPayVendor"))},onVerifyOtp:(t,n)=>{e(J(t,n,"BillPayVendor"))},onVerifyOtpSuccess:(t,n,o)=>{e(_(t,n,o))}}})(X);function H({vendorId:e,billId:a,isExpressPayPage:t}){const n=w(),o=C(),s=h(c=>k(c,e));return l.jsx(te,{location:o,navigate:n,vendorId:e,billId:a,vendorViewDetails:s,isExpressPayPage:t??!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,a){const{vendorId:t,billId:n}=a,o=k(e,t),s=D(e,a.isVendorRecommendationEnabled,a.isZeniAccountsFeatureEnabled,n);return{billId:n,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:a.bankAccountContext}},function(e,a){const{navigate:t,location:n,vendorId:o}=a;return{onFetchBankName:s=>{e(j(s))},onSaveHandler:s=>{e(G(a.bankAccountContext,s,"standard",o))},onCancel:()=>{(()=>{const s=p(n.state?.pathnameStackToGoBack),c=s.poppedPathname??P();t(c,{state:{pathnameStackToGoBack:s.newStack}})})(),e(v())},onACHDetailsUpdated:s=>{const{bankAccountSection:c}=s;e(F({data:c}))},onBackClick:()=>{if(e(T({fetchState:"Not-Started"})),a.bankAccountContext==="express-pay")t("../",{relative:"path"});else{const s=p(a.location.state?.pathnameStackToGoBack),c=s.poppedPathname??P(0);a.navigate(c,{state:{pathnameStackToGoBack:s.newStack}})}e(v())}}})(Y);function fe({vendorIdParam:e,accountContext:a}){const t=w(),n=C(),o=R(),{vendorId:s,billId:c}=B(),d=e??s,{useFeatureGate:i}=N(),r=U.getSignedInUser(),b=h(u=>V(u)),g=M(),I=p(n.state?.pathnameStackToGoBack),f=a??(I.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h(u=>k(u,d)),{isFeatureEnabled:x}=i(S.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=i(S.isDepositAccountsFeatureEnabled);if(r==null)throw Error("Can't access address page without signing in...");return f==="billDetail"&&m.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(z,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:g.colors.grey5}}):l.jsxs(ne,{windowSize:o,children:[l.jsx(H,{vendorId:d,billId:c}),l.jsx(oe,{location:n,navigate:t,billId:c,vendorId:d,currentTenant:b,bankAccountContext:f,isVendorRecommendationEnabled:x,isZeniAccountsFeatureEnabled:y})]})}const P=(e=2)=>{let a="../";for(let t=0;t<e;t++)a=`${a}../`;return a},me=(e,a,t)=>{let n=`/${e}/bill/${encodeURIComponent(a)}`;return t=="draft"&&(n+="/edit"),n},he=e=>`/${e}/bills`,ke=(e,a)=>{let t=`/${e}/bill`;return t=a!=null?t.concat(`/${a}/edit`):t.concat("/new"),t},E=(e,a,t,n)=>{let o=`/${e}/bill`;return o+=t!=null?`/${t}/edit/vendor`:"/new/vendor",o+=n!=null?`/${n}/edit/${a}`:`/create/${a}`,o};function ve(e,a,t){return E(e,"ach",a,t)}function Se(e,a,t){return E(e,"domestic",a,t)}function ge(e,a,t){return E(e,"international",a,t)}const se=(e,a,t)=>{let n=`/${e}/bill/`;return n=t!=null?n.concat(`${encodeURIComponent(t)}/${a}/`):n.concat(`new/${a}/`),n},ie=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 ${O.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
18
|
-
`,ce=A(function(e,a){const{vendorId:t,billId:n}=a,o=k(e,t),s=D(e,a.isVendorRecommendationEnabled,a.isZeniAccountsFeatureEnabled,n);return{billId:n,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:a.bankAccountContext}},function(e,a){const{billId:t,navigate:n,location:o,vendorId:s,currentTenant:c}=a,{tenantEmailDomain:d}=c;return{onFetchBankName:i=>{e(j(i))},onSaveHandler:i=>{e(G(a.bankAccountContext,i,"us-domestic",s))},onWireDetailsUpdated:i=>{const{bankAccountSection:r}=i;e(F({data:r}))},onCancel:()=>{(()=>{const i=p(o.state?.pathnameStackToGoBack),r=i.poppedPathname??$();n(r,{state:{pathnameStackToGoBack:i.newStack}})})(),e(v())},onAddressClick:i=>{if(a.bankAccountContext==="express-pay")n("./add-address");else{const r=se(d,i,t),b=ae(o.state?.pathnameStackToGoBack,o.pathname);n(r,{state:{pathnameStackToGoBack:b}})}},onBackClick:()=>{if(e(T({fetchState:"Not-Started"})),a.bankAccountContext==="express-pay")n("../",{relative:"path"});else{const i=p(a.location.state?.pathnameStackToGoBack),r=i.poppedPathname??$(0);a.navigate(r,{state:{pathnameStackToGoBack:i.newStack}})}e(v())}}})(ee);function Ie({vendorIdParam:e,accountContext:a}){const t=w(),n=C(),o=R(),{vendorId:s,billId:c}=B(),d=e??s,i=U.getSignedInUser(),{useFeatureGate:r}=N(),b=M(),g=h(u=>V(u)),I=p(n.state?.pathnameStackToGoBack),f=a??(I.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h(u=>k(u,d)),{isFeatureEnabled:x}=r(S.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=r(S.isDepositAccountsFeatureEnabled);if(i==null)throw Error("Can't access address page without signing in...");return f==="billDetail"&&m.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(z,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:b.colors.grey5,boxShadow:`0px 2px ${O.sp1} ${b.colors.dropShadowNormal}`}}):l.jsxs(ie,{windowSize:o,children:[l.jsx(H,{vendorId:d,billId:c}),l.jsx(ce,{location:n,navigate:t,billId:c,vendorId:d,currentTenant:g,bankAccountContext:f,isVendorRecommendationEnabled:x,isZeniAccountsFeatureEnabled:y})]})}const $=(e=2)=>{let a="../";for(let t=0;t<e;t++)a=`${a}../`;return a};export{fe as A,Ie as D,H as V,me as a,se as b,ke as c,Se as d,he as g,ge as i,ve as v};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as d}from"./liveblocks-D6KTXvhv.js";import{J as l,C as f,h as b}from"./index-BCMOKGoM.js";import{D as c}from"./mui-BsWf3aoF.js";import"./sentry-DlTle5wx.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="8b1eb99b-980f-433e-8113-44fe445caabb",e._sentryDebugIdIdentifier="sentry-dbid-8b1eb99b-980f-433e-8113-44fe445caabb")}catch{}})();const p={drawerLeftMargin:new f(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:t,onClose:a}=e,n=l(),s=o?.valuePx(n)??p.drawerLeftMargin.valuePx(n),i=b();return d.jsx(c,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${s})`}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.8,cursor:"pointer"}}},onClose:a,children:t})}export{h as D};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-D6KTXvhv.js";import{a as d}from"./sentry-DlTle5wx.js";import{j as A,h as B,u as J,l as q,g as l,N as F,k as M,n as O,o as N}from"./core-CZukbx0Q.js";import{Kp as _,eM as K,JO as R,km as W,Gw as k,Ku as Y,Jh as $,jm as z,Gx as S,JT as U,JU as V,Jj as H,Ji as L}from"./zeni-epic-state-1VZHEC1T.js";import{aM as Q,c as X,q as Z,v as tt}from"./index-BCMOKGoM.js";import"./mui-BsWf3aoF.js";import{d as b}from"./decodeURIComponentSafe-BMhpBWAI.js";import{w as et}from"./withTransactionSidePanel-ZDRkIRTY.js";import{e as at,b as nt}from"./routePaths-tEjN6NOl.js";import"./recharts-Kt4_Z9D4.js";import"./analytics-D3BPH6yx.js";import"./plaid-BlZUWQEE.js";import"./dnd-C982KOaa.js";import"./stripe-DMRn4zHo.js";import"./lottie-28Wzb4-h.js";import"./lexical-BiHBh7jO.js";import"./pdf-D4etPH5X.js";import"./utils-CnNkpT2e.js";import"./useAskAiCfoHostNavButtonProps-CAHHYp9d.js";import"./useFetchSuggestedQuestionsWhenReady-CrNlGe8g.js";import"./TransactionDetailScreen-CC0P_ZOY.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="4ee1a195-5526-4beb-9eb3-dc56a1f4c5e8",a._sentryDebugIdIdentifier="sentry-dbid-4ee1a195-5526-4beb-9eb3-dc56a1f4c5e8")}catch{}})();const ot=M(function(a,t){const e=t.entity,o=Y(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:$(a,"common")},trendWithTransactionsReport:o,analytics:X,isAccountingClassesEnabled:z(a)}},function(a,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const o=`${nt(e,t.tenantEmailDomain)}`,c=tt(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(o,{state:{pathnameStackToGoBack:c}})},autoCompleteActions:{onAutoCompleteInputChange:e=>{e.trim().length>=2?a(H({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(L("common"))},onAutoCompleteEntity:e=>{const o=at(e,t.tenantEmailDomain);a(U()),a(V()),t.resetTrendIsFetchedStates(),t.navigate(o,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=Z(t.location.state?.pathnameStackToGoBack),o=e.poppedPathname??I();t.navigate(o,{state:{pathnameStackToGoBack:e.newStack}})}},onTrendSelectedPeriodChange:e=>{if(t.closeSidePanel?.(),e==null)t.defaultTransactionTimePeriod!=null&&a(S(t.entity,"EntityDetail",{timeframe:"quarter",timePeriod:t.defaultTransactionTimePeriod}));else{const o=e.currentTimePeriod==null?e.addTimePeriod:{startDate:e.addTimePeriod.startDate,endDate:e.currentTimePeriod.endDate};a(k(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),a(S(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:o}))}}}})(Q),it=et(function({entityType:a,...t}){const e=A(),o=B(),c=J(),[m,T]=d.useState(!1),[h,D]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:j,entityNameEncoded:x}=q(),r=b(j??""),p=b(x??""),u=rt(r,p),w=[r,p].filter(n=>n!=null),i={name:p,id:r,type:a,zeniId:r,qboId:r},g=l(n=>_(n.customerIncomeState,n.vendorExpenseState,n.trendState,i,"quarter")),G=l(n=>K(n).company?.companyInfo.firstMonthOfFY??1),f=l(n=>R(n.trendWithTransactionsState,i,"EntityDetail"));d.useEffect(()=>{m===!1&&u===!0&&(T(!0),o(W(i)))},[m,u,i]);const E=l(n=>n.trendState.fetchState),P=f?.selectedPeriod?.timePeriod??g,v=function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y}(f?.selectedPeriod?.timePeriod,g);return d.useEffect(()=>{m===!0&&h===!1&&E==="Completed"&&(D(!0),P!=null&&o(k(i,"EntityDetail",{timeframe:f?.selectedPeriod?.timeframe??"quarter",timePeriod:P})))},[m,h,E]),u?s.jsx(ot,{firstMonthOfFY:G,tenantEmailDomain:C,location:c,navigate:e,entity:i,defaultTransactionTimePeriod:v,resetTrendIsFetchedStates:()=>{T(!1),D(!1)},...t}):s.jsx(F,{to:I(w.length)})}),rt=(a,t)=>t!=null&&t.length>0&&a!=null&&a.length>0,I=(a=2)=>{let t="../";for(let e=0;e<a;e++)t=`${t}../`;return t};function xt({entityType:a}){return s.jsx(O,{children:s.jsx(N,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:a})})})}export{xt as EntityDetailRoutes,xt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-D6KTXvhv.js";import{a as r}from"./sentry-DlTle5wx.js";import{X as i,$ as l,Z as p,q as d}from"./index-BCMOKGoM.js";import"./mui-BsWf3aoF.js";import m from"./NotFoundScreen-DnEnkkn2.js";import{j as b,u}from"./core-CZukbx0Q.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new a.Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="f0a431af-9ff7-4bb4-8c6c-80849a1f61cb",a._sentryDebugIdIdentifier="sentry-dbid-f0a431af-9ff7-4bb4-8c6c-80849a1f61cb")}catch{}})();const D=()=>{const a=b(),e=u(),t=r.useCallback(()=>{window.open("https://www.zeni.ai/demo/request","_blank")},[]),f=r.useCallback(()=>{(()=>{const n=d(e.state?.pathnameStackToGoBack),c=n.poppedPathname??k();a(c,{state:{pathnameStackToGoBack:n.newStack}})})()},[]),o=i(e.pathname);return o!=null?s.jsx(l,{menuItem:p(o),onDemoClick:t,onGoBack:f}):s.jsx(m,{})},k=(a=2)=>{let e="../";for(let t=0;t<a;t++)e=`${e}../`;return e};export{D as F};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-D6KTXvhv.js";import{a as f}from"./sentry-DlTle5wx.js";import{h as U,u as w,j as _,q as M,g as l,N as T}from"./core-CZukbx0Q.js";import{z as r,h as P,D as V,d as A,c as N,e as q,w as R,k as W,g as $}from"./index-BCMOKGoM.js";import{eM as B,Ie as G,Ip as H,If as J,eN as K,fi as Q,Il as X,fF as Y,cR as Z,Iq as ee,Ir as te}from"./zeni-epic-state-1VZHEC1T.js";import{n as ne}from"./mui-BsWf3aoF.js";import{u as ae}from"./useDeviceId-DgVtbX-U.js";import{f as se}from"./analyticsHelper-DZz2Dorw.js";import{t as ie}from"./getLocaleForTenant-BRQJ8Vdp.js";import"./recharts-Kt4_Z9D4.js";import"./analytics-D3BPH6yx.js";import"./plaid-BlZUWQEE.js";import"./dnd-C982KOaa.js";import"./stripe-DMRn4zHo.js";import"./lottie-28Wzb4-h.js";import"./lexical-BiHBh7jO.js";import"./pdf-D4etPH5X.js";import"./utils-CnNkpT2e.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]="c31c3e87-f625-4a2f-b43b-e7ea45ae5d4a",t._sentryDebugIdIdentifier="sentry-dbid-c31c3e87-f625-4a2f-b43b-e7ea45ae5d4a")}catch{}})();const D=(t,s)=>t!=null&&t.length>0&&s==="magic_links";function De(){const t=U(),s=w(),m=_(),[b]=M(),n=b.get("token"),p=b.get("stytch_token_type"),g=r.getMagicLinkCodeVerifier(),i=ae(),{otpChallenge:d,twoFAPhoneNumber:x,magicLinkEmail:c,verifyDeviceFetchState:z,resendVerifyDeviceOTPFetchState:C}=l(e=>e.tenantState),I=l(e=>e.tenantState.fetchState),y=l(e=>e.tenantState.activeTenantFetchState.fetchState),S=l(e=>e.tenantState.signInState),h=l(e=>e.tenantState.magicLinkSignInFetchState.fetchState),a=l(e=>e.tenantState.loggedInUser),o=l(e=>B(e)),k=l(e=>G(e)),E=r.getSignedInUser(),v=P().mode;f.useEffect(()=>{a?.zeniSessionId==null&&n!=null&&D(n,p)&&i!=null&&g!=null&&(r.saveMagicLinkTriggered(n),t(H(n,i,g)))},[n,p,t,i,g,a?.zeniSessionId]),f.useEffect(()=>{S!=="In-Progress"||I!=="Completed"&&y!=="Completed"||a?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(a,a.zeniSessionId),r.saveSignedInUserTenants(J(k.tenantsInOrder),a.zeniSessionId),K(a.userId,a.zeniSessionId,o.tenantId),t(Q(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(X("Completed")),V.updateAppLocaleID(ie(o)),se(a,o,v,void 0,k.tenantsInOrder),Y().then(()=>{const e=$();e!=null&&A(e)}),setTimeout(()=>{N.trackLogin(q.Event.loginSuccess,"email",Z(o.productSettings))},2e3))},[S,I,y,a,o,k,v,s.state,t]);const F=f.useCallback(()=>{m("/signin/auth")},[m]),j=f.useCallback(()=>{i!=null&&d!=null&&c!=null&&t(ee(i,c,d))},[i,d,t,c]),O=f.useCallback(e=>{i!=null&&n!=null&&c!=null&&d!=null&&t(te(e,i,c,d))},[i,n,t,c,d]);if(h==="Completed"&&d!=null)return u.jsx(R,{phoneNumber:x,verifyOtpFetchState:z.fetchState,resendVerifyDeviceOTPFetchState:C,onResendOtp:j,onVerifyOtp:O,onCancelVerifyDevice:F});if(S==="In-Progress"&&I==="Completed"&&a?.zeniSessionId!=null&&o!=null||E!=null){const e=s.state?.origin??"/";return u.jsx(T,{to:e,state:{...s.state,origin:""}})}if(!D(n,p)||g==null||h==="Error"){const e=s.state?.origin??"/",L=n!=null&&r.getLastUsedMagicLinkToken()===n;return u.jsx(T,{to:e,state:{...s.state,origin:"",magicLinkAlreadyUsed:L,magicLinkExpired:!L&&(r.isMagicLinkTriggered(n??"")||h==="Error"&&a?.zeniSessionId==null)}})}return u.jsx(oe,{"data-testid":"smooth-loader",children:u.jsx(W,{size:"ExtraLarge",start:!0})})}const oe=ne.div`
|
|
2
|
-
position: fixed;
|
|
3
|
-
top: 0;
|
|
4
|
-
left: 0;
|
|
5
|
-
right: 0;
|
|
6
|
-
bottom: 0;
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
z-index: 9999;
|
|
11
|
-
background-color: ${t=>t.theme.colors.background};
|
|
12
|
-
`;export{De as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-D6KTXvhv.js";import{j as r,k as i}from"./core-CZukbx0Q.js";import{W as n}from"./index-BCMOKGoM.js";import"./mui-BsWf3aoF.js";import"./sentry-DlTle5wx.js";import"./zeni-epic-state-1VZHEC1T.js";import"./recharts-Kt4_Z9D4.js";import"./analytics-D3BPH6yx.js";import"./plaid-BlZUWQEE.js";import"./dnd-C982KOaa.js";import"./stripe-DMRn4zHo.js";import"./lottie-28Wzb4-h.js";import"./lexical-BiHBh7jO.js";import"./pdf-D4etPH5X.js";import"./utils-CnNkpT2e.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new o.Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="fe0dc2e3-d6a3-4690-8e18-122b6c1ede12",o._sentryDebugIdIdentifier="sentry-dbid-fe0dc2e3-d6a3-4690-8e18-122b6c1ede12")}catch{}})();const d=i(null,function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}})(n);function h(){const o=r();return e.jsx(d,{navigate:o})}export{h as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as n}from"./liveblocks-D6KTXvhv.js";import{j as H,h as K,u as Q,l as Z,g as d,k as X,n as ee,o as C}from"./core-CZukbx0Q.js";import{eM as M,qb as v,pL as ae,J5 as w,pG as T,bu as te,bm as se,bQ as oe,pH as re,J6 as ne,IS as S,dF as ie,ty as ce,J7 as le,tV as de,eT as me,eR as fe}from"./zeni-epic-state-1VZHEC1T.js";import{K as pe,z as ue,N as he,S as Fe,i as $,s as N,x as be,c as q,aj as ge,v as Ie}from"./index-BCMOKGoM.js";import"./mui-BsWf3aoF.js";import Ce from"./NotFoundScreen-DnEnkkn2.js";import{F as Se}from"./FeaturePreviewScreen-D9DJst05.js";import{a as h}from"./sentry-DlTle5wx.js";import{u as Te}from"./useAskAiCfoHostNavButtonProps-CAHHYp9d.js";import{c as ye}from"./useFetchSuggestedQuestionsWhenReady-CrNlGe8g.js";import{u as Ae}from"./useInitialThreadRequest-BTiRAkUA.js";import{t as xe}from"./routePaths-tEjN6NOl.js";import{M as ke}from"./MobileAppDrawer-D5mpxBw9.js";import"./recharts-Kt4_Z9D4.js";import"./analytics-D3BPH6yx.js";import"./plaid-BlZUWQEE.js";import"./dnd-C982KOaa.js";import"./stripe-DMRn4zHo.js";import"./lottie-28Wzb4-h.js";import"./lexical-BiHBh7jO.js";import"./pdf-D4etPH5X.js";import"./utils-CnNkpT2e.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new s.Error().stack;a&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[a]="ddd68e13-e61b-46cd-9e99-b31bd0507955",s._sentryDebugIdIdentifier="sentry-dbid-ddd68e13-e61b-46cd-9e99-b31bd0507955")}catch{}})();const y=(s,a,e,o)=>{if(s!=a){const r=o??"";s!=null&&s.length>0?e(`../${a}${r}`,{replace:!0}):e(`${a}${r}`,{replace:!0})}},De=X(function(s){const a=ne(s),e={},o=a.pandLReportWithForecast.uiState.nodeCollapseState;return Object.keys(o).forEach(r=>{e[r]=o[r]===!1}),{selectedTimeframe:a.selectedTimeframe,isForecastVsActualOn:a.isForecastVsActualOn,compareMode:a.compareMode,forecastList:a.forecastList,selectedForecast:a.selectedForecast,pandLreport:a.pandLReportWithForecast,scrollPosition:a.pandLReportWithForecast.uiState.scrollPosition,nodeOpenStatus:e,type:"name+balances_forecast",analytics:q}},function(s,a){return{onForecastSelectionChanged:(e,o)=>{s(w(e,o)),a.isPandLReportFetched(e)||s(T(e)),y(a.forecastIdFromUrlPath,e,a.navigate)},onTimeframeChanged:e=>{s(de(e))},onForecastVsActualsCompareToggle:e=>{s(le(e)),s(S({forecastId:a.forecastIdFromUrlPath,scrollPosition:{scrollLeft:0,scrollTop:0}}))},onCompareModeChanged:e=>{s(ce(a.firstMonthOfFY,e,0,[]))},onAccountBalanceClick:a.hasTransactionAccess!==!0?void 0:(e,o)=>{let r,i;const F=e.accountName===""?e.accountDescription:e.accountName;if(o.balanceTimeFrame==="month"||o.balanceTimeFrame==="quarter"?(r=o.balanceTimeFrame,i=ie(o)):o.balanceTimeFrame==="year"?(r="quarter",i={startDate:o.endDate.startOf("quarter"),endDate:o.endDate}):console.error(`timeframe ${o.balanceTimeFrame} is not supported`),i!=null&&r!=null){const f=xe(a.tenantEmailDomain,e.accountId,e.accountType,F,r,i),p=Ie(a.location.state?.pathnameStackToGoBack,a.location.pathname);a.navigate(f,{state:{pathnameStackToGoBack:p,referrer:"Forecast"}})}},onNodeCollapseToggled:(e,o)=>{s(S({forecastId:a.forecastIdFromUrlPath,nodeCollapseState:{nodeId:e,isCollapsed:o===!1}}))},onTableScroll:e=>{s(S({forecastId:a.forecastIdFromUrlPath,scrollPosition:e}))},onBackClick:()=>{a.navigate("../../")}}})(ge);function U(){const{isAiCfoOpen:s,setIsAiCfoOpen:a}=pe(),e=H(),o=K(),r=Q(),{forecastId:i,tenantEmailDomain:F}=Z(),[f,p]=h.useState(!1),[b,A]=h.useState(!1),u=ue.getSignedInUser(),x=d(t=>M(t)),B=x.company?.companyInfo.firstMonthOfFY??1,c=d(t=>v(t.forecastState,t.forecastListState)),l=d(t=>t.forecastListState.fetchState==="Completed"),k=d(t=>t.profitAndLossState),D=d(t=>t.reportUIOptionsState.selectedForecast),j=t=>k.pandLByForecastID[t]!=null&&re(t,k).reducedAllFetchState.fetchState==="Completed",{areTenantIdsInSync:g}=he();ye({isDataReady:l});const{isAiCfoAccessEnabled:G,onAskAiCfoClick:_}=Te({isAiCfoOpen:s,setIsAiCfoOpen:a,mobileExploreReferrer:"Forecast"});h.useEffect(()=>{if(!f&&g)p(!0),l||o(ae());else if(l&&!b){A(!0);const t=((m,R,P)=>R!=null?m.forecasts.findIndex(I=>I.id===R):P!=null?m.forecasts.findIndex(I=>I.id===P):m.forecasts.length>0?0:-1)(c,i,D?.id);t===-1&&i!=null?e("page-not-found",{replace:!0}):t!==-1&&t!=D?.index?(o(w(c.forecasts[t].id,t)),y(i,c.forecasts[t].id,e,r.search)):i==null&&t!==-1&&y(void 0,c.forecasts[t].id,e,r.search),t!==-1&&!j(c.forecasts[t].id)&&g&&o(T(c.forecasts[t].id))}},[f,p,o,l,c,b,A,v,T,g]);const L=Fe(),V=L?.loggedInUserRole!=null&&te(L.loggedInUserRole),{useFeatureGate:W}=$(),{isFeatureEnabled:E}=W(N.isReportsCommentingEnabled),Y=Ae(E?x?.companyId:void 0,{clearParams:l&&b}),[J,z]=h.useState(!1),O=t=>{z(t)};return n.jsxs(n.Fragment,{children:[l?n.jsx(be,{analytics:q,onLoad:t=>(m=>m.trackForecast())(t)}):null,n.jsx(ke,{isAppContentDrawerOpen:J,handleDrawerToggle:O}),n.jsx(De,{firstMonthOfFY:B,tenantEmailDomain:F,forecastIdFromUrlPath:i,navigate:e,location:r,isPandLReportFetched:j,meetingUrl:oe(`https://meetings.hubspot.com/svitlana-grankovska?firstname=${u?.firstName}&lastname=${u?.lastName}&email=${u?.userEmail}`),hasTransactionAccess:V,isAiCfoAccessEnabled:G,onAskAiCfoClick:_,isReportsCommentingEnabled:E,isZeniUser:se(u),initialOpenThreadRequest:Y,onClickMenuIcon:()=>{O(!0)}})]})}function Ke(){const s=d(i=>M(i)),{useFeatureGate:a}=$(),{isFeatureEnabled:e}=a(N.isDebitCardFeatureEnabled),o=me(e,s),r=fe(s);return o===!0||r===!0?n.jsx(Se,{}):n.jsxs(ee,{children:[n.jsx(C,{path:"/",element:n.jsx(U,{})}),n.jsx(C,{path:"/:forecastId",element:n.jsx(U,{})}),n.jsx(C,{path:"/:forecastId/*",element:n.jsx(Ce,{})})]})}export{Ke as PandLWithForecastRoutes,Ke as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-D6KTXvhv.js";import _ from"./NotFoundScreen-DnEnkkn2.js";import{a as r}from"./sentry-DlTle5wx.js";import{j as M,u as v,g,l as U,h as P,N as z,k as V,n as B,o as h}from"./core-CZukbx0Q.js";import{eM as F,OH as b,bn as H,bm as K,h2 as N,gy as Y}from"./zeni-epic-state-1VZHEC1T.js";import{Y as $,z as I,K as q,cp as G}from"./index-BCMOKGoM.js";import"./mui-BsWf3aoF.js";import{u as J}from"./useAskAiCfoHostNavButtonProps-CAHHYp9d.js";import{c as L}from"./useFetchSuggestedQuestionsWhenReady-CrNlGe8g.js";import{M as Q}from"./MobileAppDrawer-D5mpxBw9.js";import"./recharts-Kt4_Z9D4.js";import"./analytics-D3BPH6yx.js";import"./plaid-BlZUWQEE.js";import"./dnd-C982KOaa.js";import"./stripe-DMRn4zHo.js";import"./lottie-28Wzb4-h.js";import"./lexical-BiHBh7jO.js";import"./pdf-D4etPH5X.js";import"./utils-CnNkpT2e.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]="355b019c-d23c-4761-8050-1bd9bfc6674a",e._sentryDebugIdIdentifier="sentry-dbid-355b019c-d23c-4761-8050-1bd9bfc6674a")}catch{}})();const W=V(function(e){const t=I.getSignedInUser(),c=e.tenantState.currentTenantId,o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:c??""},{aggregatedReportViewState:n}=b(e);return{authParams:o,isDisabled:!1,loggedInUser:t,aggregatedReport:n}},function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}})(G),X=()=>{const e=M(),t=v(),c=$(),o=g(s=>F(s)),{aggregatedReportViewState:n}=g(s=>b(s)),{tenantEmailDomain:m}=U(),p=P(),l=I.getSignedInUser();if(l==null)throw new Error("Can't access this page without signing in...");const f=r.useRef(!1),[C,S]=r.useState(!1),k=H(o?.userRole??[]),w=o?.userRole?.includes("bookkeeping_admin")??!1,y=K(l),A=k||w||y,d=r.useCallback((s,i,O)=>{p(N({fromMonth:s,toMonth:i,cacheOverride:O}))},[]);r.useEffect(()=>{n?.fetchState==="Completed"&&f.current&&(p(Y({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),f.current=!1)},[n?.fetchState]);const D=r.useCallback((s,i)=>{n!=null&&n?.fetchState==="In-Progress"||d(s,i,!0),f.current=!0},[n?.fetchState,d]),x=r.useCallback((s,i)=>{d(s,i,!1)},[d]),u=s=>{S(s)},{isAiCfoOpen:j,setIsAiCfoOpen:R}=q(),{isAiCfoAccessEnabled:T,onAskAiCfoClick:E}=J({isAiCfoOpen:j,setIsAiCfoOpen:R,mobileExploreReferrer:"Performance"});return L({isDataReady:n?.fetchState==="Completed"}),A?a.jsxs(a.Fragment,{children:[a.jsx(Q,{isAppContentDrawerOpen:C,handleDrawerToggle:u}),a.jsx(W,{navigate:e,location:t,themeState:c,currentTenant:o,signedInUser:l,tenantEmailDomain:m,onReload:D,onTimeRangeSelect:x,handleDrawerToggle:u,isAiCfoAccessEnabled:T,onAskAiCfoClick:E})]}):a.jsx(z,{to:`/${m}/dashboard`,replace:!0})};function Ie(){return a.jsxs(B,{children:[a.jsx(h,{path:"*",element:a.jsx(X,{})}),a.jsx(h,{path:"*",element:a.jsx(_,{})})]})}export{Ie as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-D6KTXvhv.js";import{i as j,z as w,aI as b,x as E,c as p,e as F,cy as P,s as L}from"./index-BCMOKGoM.js";import"./mui-BsWf3aoF.js";import l from"./NotFoundScreen-DnEnkkn2.js";import{a as d}from"./sentry-DlTle5wx.js";import{h as T,g as y,j as V,u as A,k as R,n as U,o as u}from"./core-CZukbx0Q.js";import{eM as z,Pe as C,M4 as M,Pf as k,to as Y,eZ as G,Pg as O,tm as Z}from"./zeni-epic-state-1VZHEC1T.js";import{R as x}from"./ReferralListScreen-B5qHdStP.js";import"./recharts-Kt4_Z9D4.js";import"./analytics-D3BPH6yx.js";import"./plaid-BlZUWQEE.js";import"./dnd-C982KOaa.js";import"./stripe-DMRn4zHo.js";import"./lottie-28Wzb4-h.js";import"./lexical-BiHBh7jO.js";import"./pdf-D4etPH5X.js";import"./utils-CnNkpT2e.js";import"./useAskAiCfoHostNavButtonProps-CAHHYp9d.js";import"./useFetchSuggestedQuestionsWhenReady-CrNlGe8g.js";import"./MobileAppDrawer-D5mpxBw9.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]="198b305d-4d94-4669-b30d-e5a2b04b2eec",e._sentryDebugIdIdentifier="sentry-dbid-198b305d-4d94-4669-b30d-e5a2b04b2eec")}catch{}})();const q=R(function(e,t){const n=C(e);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}},function(e,t){const{navigate:n}=t,i=w.getSignedInUser();return{onDismissClick:()=>{e(k()),n("..")},onSendClick:()=>{if(i!=null){const s=[],r=[];t.inviteFormCompayData.forEach(c=>{s.push(c.companyName),r.push(c.emailIds[0])}),p.trackInviteEmailClicked("send",s,r,s.length)}e(Z())},onUpdateInviteFormLocalData:s=>{e(O({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{i!=null&&p.trackInviteEmailClicked("cancel")}}})(P),B=()=>{const e=T(),[t,n]=d.useState(!1),[i,s]=d.useState(!1),r=y(o=>z(o)),c=V(),_=A(),{useDynamicConfig:g}=j(),f=w.getSignedInUser();if(f==null)throw Error("Can't access invite referral screen without signing in...");const m=y(o=>C(o)),v=f?.firstName!=null?f.firstName:"User",{configValue:h}=g(b.zeniCardsConfig),{configValue:D}=g(b.zeniAccountsConfig),I=M(D);d.useEffect(()=>{e(k()),r?.rewardsLastViewedTime==null&&i===!1&&(e(Y()),s(!0))},[]),d.useEffect(()=>{t||m.fetchState!=="Not-Started"||(n(!0),e(G(!0)))},[m.fetchState,e]);const N=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[m.fetchState==="Completed"?a.jsx(E,{analytics:p,onLoad:o=>(S=>S.trackPageLoaded(F.Event.inviteEmailViewed))(o)}):null,a.jsx(q,{navigate:c,location:_,currentTenant:r,companyName:N,userName:v,inviteFormCompayData:m.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:I.maxAnnualPercentageYield})]})};function fe(){const{useFeatureGate:e}=j(),{isFeatureEnabled:t}=e(L.isReferralFeatureEnabled);return a.jsxs(U,{children:[a.jsx(u,{path:"/",element:t?a.jsx(x,{}):a.jsx(l,{})}),a.jsx(u,{path:"how-it-works",element:t?a.jsx(x,{isReferralDrawerOpen:!0}):a.jsx(l,{})}),a.jsx(u,{path:"refer/*",element:t?a.jsx(B,{}):a.jsx(l,{})}),a.jsx(u,{path:"*",element:a.jsx(l,{})})]})}export{fe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-D6KTXvhv.js";import{a as f,b as T,q as A}from"./sentry-DlTle5wx.js";import{h as D,j as z,g as c,u as M,N as j,k as O}from"./core-CZukbx0Q.js";import{u as F,z as s,h as P,c as E,D as N,d as _,e as B,f as V,g as $,n as q,j as v}from"./index-BCMOKGoM.js";import{eM as J,Ie as Q,If as R,eN as W,fi as H,Il as G,fF as K,cR as X,Im as y,In as Y,Io as Z,bQ as b}from"./zeni-epic-state-1VZHEC1T.js";import"./mui-BsWf3aoF.js";import{u as ee}from"./useDeviceId-DgVtbX-U.js";import{f as te}from"./analyticsHelper-DZz2Dorw.js";import{t as ne}from"./getLocaleForTenant-BRQJ8Vdp.js";import"./recharts-Kt4_Z9D4.js";import"./analytics-D3BPH6yx.js";import"./plaid-BlZUWQEE.js";import"./dnd-C982KOaa.js";import"./stripe-DMRn4zHo.js";import"./lottie-28Wzb4-h.js";import"./lexical-BiHBh7jO.js";import"./pdf-D4etPH5X.js";import"./utils-CnNkpT2e.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]="e4dd6aca-bd0c-4b01-9734-530815a069b0",t._sentryDebugIdIdentifier="sentry-dbid-e4dd6aca-bd0c-4b01-9734-530815a069b0")}catch{}})();const ie=O(function(t,i){const d=t.tenantState.fetchState,g=t.tenantState.sendEmailMagicLinkFetchState,{magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:l}=i;return{googleClientId:v.googleClientId,microsoftClientId:v.microsoftClientId,signInError:t.tenantState.error?.error,fetchState:d,sendMagicLinkStatus:g,magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:l}},function(t,i){const{location:d,navigate:g}=i;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,a)=>{A({message:`OAuth error from provider ${a} with error ${n}`,level:"error",tags:{authProvider:a,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,a)=>{const l=a==="google"?window.location.origin:window.location.origin+window.location.pathname;t(Z({authCode:n,oauthProvider:a,appType:"web",redirectUri:b(l),sourceUri:b(d.state!=null?d.state.origin:"")}))},getSignedInUser:()=>s.getSignedInUser(),onSignedInCallback:()=>{const n=d.state?.origin;n&&n!=="/"?g(n,{replace:!0}):window.open(window.location.origin,"_self")},sendMagicLink:n=>{const{deviceId:a}=i;a!=null&&(s.saveMagicLinkEmail(n),t(Y(n,a)))},clearSignInError:()=>{t(y())}}})(q),ae=T.memo(ie);function ve({setTenantEmailDomain:t}){const i=D(),d=z(),{clearAllLoading:g}=F(),n=s.getSignedInUser();f.useLayoutEffect(()=>{g()},[g]);const a=ee(),l=c(e=>e.tenantState.magicLinkCodeVerifier),{sendEmailMagicLinkFetchState:h,accountLocked:C,accountUnlockTime:k}=c(e=>e.tenantState),p=c(e=>e.tenantState.fetchState),L=c(e=>e.tenantState.activeTenantFetchState.fetchState),I=c(e=>e.tenantState.signInState),o=c(e=>e.tenantState.loggedInUser),r=c(e=>J(e)),S=c(e=>Q(e)),m=M(),w=P().mode,U=m.state?.magicLinkExpired,x=m.state?.magicLinkAlreadyUsed;if(f.useEffect(()=>{h.fetchState==="Completed"&&l!=null&&(E.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(l))},[h.fetchState,l]),f.useEffect(()=>{t(void 0)},[]),f.useEffect(()=>{I!=="In-Progress"||p!=="Completed"&&L!=="Completed"||o?.zeniSessionId==null||r==null||(s.savePayNowInfoTooltip(!0,o.zeniSessionId),s.saveSignedInUserWithSession(o,o.zeniSessionId),s.saveSignedInUserTenants(R(S.tenantsInOrder),o.zeniSessionId),W(o.userId,o.zeniSessionId,r.tenantId),i(H(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(G("Completed")),N.updateAppLocaleID(ne(r)),te(o,r,w,void 0,S.tenantsInOrder),K().then(()=>{const e=$();e!=null&&_(e)}),setTimeout(()=>{E.trackLogin(B.Event.loginSuccess,o.authProvider??"google",X(r.productSettings))},2e3))},[I,p,L,o,r,S,w,m.state,i]),I==="In-Progress"&&p==="Completed"&&o?.zeniSessionId!=null&&r!=null||n!=null){const e=m.state?.origin??"/";return u.jsx(j,{to:e,state:{...m.state,origin:""}})}return u.jsxs(u.Fragment,{children:[u.jsx(ae,{magicLinkExpired:!!U,magicLinkAlreadyUsed:!!x,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),C===!0&&k!=null?u.jsx(V,{onClose:()=>i(y()),unlockDate:k}):null]})}export{ve as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-D6KTXvhv.js";import{a as n}from"./sentry-DlTle5wx.js";import{h as u,u as m,j as p,N as g}from"./core-CZukbx0Q.js";import{z as c,B as y,t as b,c as d,e as h}from"./index-BCMOKGoM.js";import{IB as I,Ij as x,IC as j}from"./zeni-epic-state-1VZHEC1T.js";import{n as w}from"./mui-BsWf3aoF.js";import"./recharts-Kt4_Z9D4.js";import"./analytics-D3BPH6yx.js";import"./plaid-BlZUWQEE.js";import"./dnd-C982KOaa.js";import"./stripe-DMRn4zHo.js";import"./lottie-28Wzb4-h.js";import"./lexical-BiHBh7jO.js";import"./pdf-D4etPH5X.js";import"./utils-CnNkpT2e.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]="58e59542-9aac-45d1-8b64-34ce6479db69",e._sentryDebugIdIdentifier="sentry-dbid-58e59542-9aac-45d1-8b64-34ce6479db69")}catch{}})();function $(){const e=u(),t=m(),i=p(),a=n.useRef(!1),l=c.isSignedIn(),r=t.state?.message==="logout",o=r||l;return n.useEffect(()=>{o&&!a.current&&(a.current=!0,setTimeout(()=>{try{c.clearAll(),e(I()),e(x(!1)),j(),b.reset(),d.trackLogout(h.Event.logoutSuccess),d.resetUserIdentity()}catch(f){console.error("Error during sign out:",f)}finally{r||i("/signin/auth",{replace:!0})}},0))},[o,r]),o?s.jsx(v,{children:s.jsx(y,{fetchState:"In-Progress"})}):s.jsx(g,{to:"../",replace:!0})}const v=w.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`;export{$ as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-D6KTXvhv.js";import M from"./NotFoundScreen-DnEnkkn2.js";import{a as p}from"./sentry-DlTle5wx.js";import{j as A,h as R,u as $,l as q,g as f,N as z,k as V,n as _,o as u}from"./core-CZukbx0Q.js";import{Y as O,z as E,v as w,x as Q,c as T,e as W,cz as H,j as Y,ao as Z,q as J}from"./index-BCMOKGoM.js";import{eM as C,Ph as G,EM as v,EA as K,Fc as X,Pi as P,Pj as aa,Ew as ea,Et as ta,pB as sa,pp as na,jW as oa,EG as ia,Pk as ra,ED as ca,ER as la,EQ as da}from"./zeni-epic-state-1VZHEC1T.js";import{n as pa}from"./mui-BsWf3aoF.js";import{u as ma}from"./useInitialThreadRequest-BTiRAkUA.js";import{M as ua}from"./MobileAppDrawer-D5mpxBw9.js";import ka from"./TaskListScreen-C5V8F8lL.js";import"./recharts-Kt4_Z9D4.js";import"./analytics-D3BPH6yx.js";import"./plaid-BlZUWQEE.js";import"./dnd-C982KOaa.js";import"./stripe-DMRn4zHo.js";import"./lottie-28Wzb4-h.js";import"./lexical-BiHBh7jO.js";import"./pdf-D4etPH5X.js";import"./utils-CnNkpT2e.js";import"./useAskAiCfoHostNavButtonProps-CAHHYp9d.js";import"./useFetchSuggestedQuestionsWhenReady-CrNlGe8g.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="a81b46db-cdc1-4f72-b6bc-8a6436215b30",a._sentryDebugIdIdentifier="sentry-dbid-a81b46db-cdc1-4f72-b6bc-8a6436215b30")}catch{}})();const fa=V(function(a,t){const{location:n,taskGroupId:c}=t,d=P(a,t.taskId),l=C(a),i=c!=null?aa(a.taskGroupState,c):void 0,m=E.getSignedInUser(),e=l.tenantId,r={userId:m?.userId??"",sessionId:m?.zeniSessionId??"",tenantId:e??""},k=G(a);return{taskDetailSelectorView:d,authParams:r,isNewClicked:n.state?.message==="comingFromTaskListPage",filesEndPoint:Z.fileMicroServiceBaseUrl,companyName:t.currentTenant.companyName,companyId:t.currentTenant.companyId,currentUrl:`${Y.appUrl}${t.location.pathname}`,tagListView:k,taskGroupName:c!=null&&i!=null&&i.isDefault===!1?i.name:void 0}},function(a,t){const{taskId:n,navigate:c,currentTenant:d,location:l,taskGroupId:i}=t,{tenantEmailDomain:m}=d;return{onSaveChangesToLocalStore:e=>{a(da({taskDetailLocalData:e,taskId:n}))},onSaveDetailClick:()=>{a(la(n,i))},onArchiveTaskClick:()=>{t.taskId!=null&&a(ca(t.taskId))},onDismissClick:()=>{if(l.state?.message==="triggerBackClick"){const e=J(l.state?.pathnameStackToGoBack),r=e.poppedPathname??"../../dashboard";c(r,{state:{pathnameStackToGoBack:e.newStack}})}else{const e=B(m),r=w(l.state?.pathnameStackToGoBack,l.pathname);c(e,{state:{pathnameStackToGoBack:r}})}a(ra({taskId:n}))},onDeleteTaskClick:()=>{a(ia(n))},updateFilesEntity:e=>{a(oa({files:e}))},onDeleteFile:e=>{a(na(e))},onEditFileName:(e,r)=>{a(sa(e,r.split(".")[0]))},onReloadTaskDetailPage:()=>{a(v(!1,n))},onCreateTagClick:e=>{a(ta(e,n))},onDeleteTagClick:e=>{a(ea(e,n))}}})(H);function I(){const a=A(),t=R(),n=$(),c=O(),{taskId:d,taskGroupId:l}=q(),i=f(o=>C(o)),m=ma(i?.companyId),[e,r]=p.useState(!1),[k,F]=p.useState(!1),[S,L]=p.useState(!1),[x,N]=p.useState(!1),b=f(o=>G(o)),j=f(o=>o.taskGroupViewState.fetchState);p.useEffect(()=>{k||(F(!0),t(v(!1,d)))},[k,t]),p.useEffect(()=>{S||b.fetchState==="Completed"||(L(!0),t(K()))},[S,t,b.fetchState]),p.useEffect(()=>{x||j==="Completed"||(N(!0),t(X()))},[x,t,j]);const y=f(o=>P(o,d)),g=y.fetchState,D=E.getSignedInUser();if(D==null)throw Error("Can't access task detail page without signing in...");if(g==="Error"&&y.error?.code===400){const{tenantEmailDomain:o}=i,h=B(o),U=w(n.state?.pathnameStackToGoBack,n.pathname);return s.jsx(z,{to:h,state:{pathnameStackToGoBack:U}})}return s.jsxs(s.Fragment,{children:[g==="Completed"?s.jsx(Q,{analytics:T,onLoad:o=>(h=>h.trackPageLoaded(W.Event.taskDetailPage))(o)}):null,s.jsxs(ga,{children:[s.jsx(ua,{isAppContentDrawerOpen:e,handleDrawerToggle:o=>{r(o)}}),s.jsx(fa,{analytics:T,currentTenant:i,handleZeniLogoClick:()=>{c.toggle()},initialOpenThreadRequest:m,location:n,loggedInUser:D,navigate:a,taskGroupId:l,taskId:d,taskDetailFetchState:g})]})]})}const ga=pa.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${a=>a.theme.colors.grey4};
|
|
9
|
-
`,B=a=>`/${a}/tasks`;function Aa(){return s.jsxs(_,{children:[s.jsx(u,{path:"/new",element:s.jsx(I,{})}),s.jsx(u,{path:"/new/:taskGroupId",element:s.jsx(I,{})}),s.jsx(u,{path:"/group/:taskGroupId",element:s.jsx(ka,{})}),s.jsx(u,{path:"/:taskId",element:s.jsx(I,{})}),s.jsx(u,{path:"*",element:s.jsx(M,{})})]})}export{Aa as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-D6KTXvhv.js";import i from"./NotFoundScreen-DnEnkkn2.js";import{T as r}from"./TransactionDetailScreen-CC0P_ZOY.js";import"./sentry-DlTle5wx.js";import{n as d,o as e}from"./core-CZukbx0Q.js";import"./zeni-epic-state-1VZHEC1T.js";import"./recharts-Kt4_Z9D4.js";import"./index-BCMOKGoM.js";import"./mui-BsWf3aoF.js";import"./analytics-D3BPH6yx.js";import"./plaid-BlZUWQEE.js";import"./dnd-C982KOaa.js";import"./stripe-DMRn4zHo.js";import"./lottie-28Wzb4-h.js";import"./lexical-BiHBh7jO.js";import"./pdf-D4etPH5X.js";import"./utils-CnNkpT2e.js";import"./useAskAiCfoHostNavButtonProps-CAHHYp9d.js";import"./useFetchSuggestedQuestionsWhenReady-CrNlGe8g.js";import"./decodeURIComponentSafe-BMhpBWAI.js";import"./routePaths-tEjN6NOl.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new o.Error().stack;n&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[n]="256f287b-7a3d-4d6d-890e-a8cb9db8b86d",o._sentryDebugIdIdentifier="sentry-dbid-256f287b-7a3d-4d6d-890e-a8cb9db8b86d")}catch{}})();function q(){return t.jsxs(d,{children:[t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId",element:t.jsx(r,{})}),t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId/page-not-found",element:t.jsx(i,{})}),t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId/vendor/create",element:t.jsx(r,{})}),t.jsx(e,{path:"/*",element:t.jsx(r,{})})]})}export{q as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./liveblocks-D6KTXvhv.js";import{a as f}from"./sentry-DlTle5wx.js";import{q as u,h,g as y,N as I}from"./core-CZukbx0Q.js";import{IA as b,eN as w,yV as x}from"./zeni-epic-state-1VZHEC1T.js";import{z as l,B as j,F as S,G as D}from"./index-BCMOKGoM.js";import{n as g}from"./mui-BsWf3aoF.js";import"./recharts-Kt4_Z9D4.js";import"./analytics-D3BPH6yx.js";import"./plaid-BlZUWQEE.js";import"./dnd-C982KOaa.js";import"./stripe-DMRn4zHo.js";import"./lottie-28Wzb4-h.js";import"./lexical-BiHBh7jO.js";import"./pdf-D4etPH5X.js";import"./utils-CnNkpT2e.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]="a7811e14-dbaa-4f91-be87-7fe9525ed585",e._sentryDebugIdIdentifier="sentry-dbid-a7811e14-dbaa-4f91-be87-7fe9525ed585")}catch{}})();const R=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",p=e.get("profileId")??"",[n,m]=f.useState(!1),a=h(),i=y(c=>b(c)),r=l.getSignedInUser(),d=l.getSignedInUserTenantWithId(s);if(r==null||d==null)return o.jsx(I,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return w(r.userId,r.zeniSessionId,d?.tenantId),f.useEffect(()=>{n||(m(!0),a(x(t,p,s)))},[n,a]),i.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(j,{fetchState:"In-Progress"}))},E=g.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: 100vh;
|
|
5
|
-
flex-direction: row;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
9
|
-
`,_=g(D.LargeRegular)`
|
|
10
|
-
display: flex;
|
|
11
|
-
color: ${S.important};
|
|
12
|
-
`;export{R as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-D6KTXvhv.js";import{a as u}from"./sentry-DlTle5wx.js";import{j as x,h as B,u as $,l as j,g as p}from"./core-CZukbx0Q.js";import{HA as s,Hz as v,NH as z,eM as C,NI as N}from"./zeni-epic-state-1VZHEC1T.js";import{J as D,ao as g,h as E,z as L,B as P,bW as T,q as H}from"./index-BCMOKGoM.js";import{n as M}from"./mui-BsWf3aoF.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]="aea5d168-bdc1-419c-9171-d42e3d218ffa",e._sentryDebugIdIdentifier="sentry-dbid-aea5d168-bdc1-419c-9171-d42e3d218ffa")}catch{}})();const _=M.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 W(){const e=x(),n=B(),d=D(),l=$();let{accountId:a}=j(),f=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&l.pathname.includes(`${s}/statements`)&&(a=s,f=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[m,y]=u.useState(!1),h=E();u.useEffect(()=>{m||(y(!0),n(v(a??"",!1)))},[m,n]);const o=p(t=>z(t,a??"")),I=()=>{const t=H(l.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},r=L.getSignedInUser(),c=p(t=>C(t)),b={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:c.tenantId??""},w=N(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=c.company?.companyInfo.companyLegalName??c.companyName;if(r==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?i.jsx(P,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}}):i.jsx(_,{windowSize:d,children:i.jsx(T,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:I,authParams:b,downloadEndPoint:f})})}export{W as Z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{m as n}from"./index-BCMOKGoM.js";import"./mui-BsWf3aoF.js";import"./sentry-DlTle5wx.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="38b0b358-29ee-4d06-a445-463d1f803c46",e._sentryDebugIdIdentifier="sentry-dbid-38b0b358-29ee-4d06-a445-463d1f803c46")}catch{}})();function c(e){if(e.companyLocaleInfo!=null&&e.companyLocaleInfo.languageCode.length>0&&e.companyLocaleInfo.companyIncCountryCode.length>0){const o=`${e.companyLocaleInfo.languageCode.toLowerCase()}-${e.companyLocaleInfo.companyIncCountryCode.toUpperCase()}`;return console.warn(`localeID ${o}`),n(o)??"en"}return"en"}export{c as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as b}from"./sentry-DlTle5wx.js";import{J as c,a as p,v as m,Q as u}from"./index-BCMOKGoM.js";import"./mui-BsWf3aoF.js";import{b as y}from"./useFetchSuggestedQuestionsWhenReady-CrNlGe8g.js";import{j as k,u as g,l as h}from"./core-CZukbx0Q.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="205d8db9-c6d6-420f-8bb8-c125605b7d37",e._sentryDebugIdIdentifier="sentry-dbid-205d8db9-c6d6-420f-8bb8-c125605b7d37")}catch{}})();function E(e){const{isAiCfoOpen:a,setIsAiCfoOpen:t,mobileExploreReferrer:n}=e,r=k(),o=g(),{tenantEmailDomain:s}=h(),f=c(),i=u(f),d=p();return{isAiCfoAccessEnabled:y()&&d&&!a,onAskAiCfoClick:b.useCallback(()=>{if(s!=null)if(i){const l=m(o.state?.pathnameStackToGoBack,o.pathname);r(`/${s}/ai-cfo/explore`,{state:{pathnameStackToGoBack:l,referrer:n}})}else t(!0)},[i,o.pathname,o.state,n,r,t,s])}}export{E as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as f}from"./sentry-DlTle5wx.js";import{h as i,s as d}from"./core-CZukbx0Q.js";import{i as b,s as h,a as g,_ as m,N as C}from"./index-BCMOKGoM.js";import"./mui-BsWf3aoF.js";import{eJ as l,hA as p}from"./zeni-epic-state-1VZHEC1T.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]="7774e182-f462-4902-a9fa-d71e846d3e39",e._sentryDebugIdIdentifier="sentry-dbid-7774e182-f462-4902-a9fa-d71e846d3e39")}catch{}})();function x(){const{useFeatureGate:e}=b(),{isFeatureEnabled:t}=e(h.isAiCfoNavButtonEnabled),n=g();return t&&n}function y(e,t){return e!=="Completed"&&e!=="In-Progress"&&!(e==="Error"&&!t)}function I(e){const{areTenantIdsInSync:t}=C(),n=g(),a=x();return t&&e&&a&&n}function _(e){const{pageContexts:t,canFetchSuggestedQuestions:n}=e,a=i(),s=d(),o=f.useRef(null);f.useEffect(()=>{const r=o.current===!1&&n===!0;if(o.current=n,n&&t!=null&&t.length!==0)for(const u of t){const c=l(s.getState(),u)?.fetchState;y(c,r)&&a(p({pageContext:u}))}},[n,a,t,s])}function S(e){(function(t){const{pageContext:n,canFetchSuggestedQuestions:a}=t,s=i(),o=d(),r=f.useRef(null);f.useEffect(()=>{const u=r.current===!1&&a===!0;if(r.current=a,n==null||!a)return;const c=l(o.getState(),n)?.fetchState;y(c,u)&&s(p({pageContext:n}))},[a,s,n,o])})({canFetchSuggestedQuestions:I(e.isDataReady),pageContext:e.pageContext})}function Q(e){S({pageContext:m(),isDataReady:e.isDataReady})}export{_ as a,x as b,Q as c,I as u};
|