@zeniai/web-app-ui 5.0.23-qa → 5.0.24-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-CWm4LI2A.js +1 -0
- package/dist/assets/AddressScreen-BRfd-CkJ.js +9 -0
- package/dist/assets/{AiCfoScreen-VeT_S5hK.js → AiCfoScreen-CSI2_D3j.js} +1 -1
- package/dist/assets/BillPayApprovalRoutes-CVMR--P9.js +1 -0
- package/dist/assets/{BillPayRoutes-Vb4S1Y8K.js → BillPayRoutes-CiAJiA46.js} +5 -5
- package/dist/assets/{BusinessVerificationPageScreen-B2ABlcef.js → BusinessVerificationPageScreen-surI_CG-.js} +2 -2
- package/dist/assets/{ChargeCardRoutes-0wgJAAT_.js → ChargeCardRoutes-DfK6AK1Y.js} +8 -8
- package/dist/assets/CompanyPassportScreen-D3MdOGSR.js +1 -0
- package/dist/assets/{ConnectionAuthScreen-DTlZGYMJ.js → ConnectionAuthScreen-m1ZrPmfY.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-C_ov5V1M.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-CR3VCOF1.js → CustomerOnboardingRoutes-igtoru6q.js} +3 -3
- package/dist/assets/{DashboardRoutes-D3n4VoSd.js → DashboardRoutes-btp07KOK.js} +3 -3
- package/dist/assets/{DefaultTenantHome-D7hhMq-x.js → DefaultTenantHome-wOBWCdoB.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-D2qfhgns.js → DomesticWireDetailScreen-Cq9OTpl5.js} +3 -3
- package/dist/assets/DrawerScreen-BddqtTBk.js +1 -0
- package/dist/assets/EntityDetailRoutes-J5KxaFpN.js +1 -0
- package/dist/assets/{ExpenseAutomationRoutes-v2u24arD.js → ExpenseAutomationRoutes-XSCKWGJC.js} +3 -3
- package/dist/assets/FeaturePreviewScreen-C7s5EUEI.js +1 -0
- package/dist/assets/{MagicLinkRoutes-CXWkfGXB.js → MagicLinkRoutes-Bnt1hH7o.js} +6 -6
- package/dist/assets/MagicLinkSignInScreen-CiUBjUKX.js +12 -0
- package/dist/assets/{MobileAppDrawer-Jd5aa9gg.js → MobileAppDrawer-BTO_dO8H.js} +1 -1
- package/dist/assets/NotFoundScreen-CQPWWkLY.js +1 -0
- package/dist/assets/{NotificationRoutes-BZkZ0nNy.js → NotificationRoutes-DfFcHUc_.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-DuWjgRje.js → PandLWithForecastRoutes-CY2JRBex.js} +1 -1
- package/dist/assets/PeopleRoutes-Ah1x0pI6.js +22 -0
- package/dist/assets/PerformanceRoutes-D-In2h69.js +1 -0
- package/dist/assets/{Preview-C3YwU0I2.js → Preview-1xmWdeBW.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-CBYjGz6H.js → QBOConnectionScreen-D6CMF20W.js} +1 -1
- package/dist/assets/ReferralListScreen-D4dSsS9f.js +5 -0
- package/dist/assets/{ReimbursementApprovalRoutes-BxtQgQ3i.js → ReimbursementApprovalRoutes-CQWk5hg2.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-DPNcDo-z.js → ReimbursementApprovalRuleDetailScreen-CLK4qljf.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-C4Oi6zv2.js → ReimbursementRoutes-Dle1xRUS.js} +1 -1
- package/dist/assets/{ReportsRoutes-BebY5YS1.js → ReportsRoutes-BVE7O3pM.js} +1 -1
- package/dist/assets/RewardsRoutes-BUOQCgBW.js +1 -0
- package/dist/assets/{ScreenRoutes-DAveqqpw.js → ScreenRoutes-CU85YNC5.js} +2 -2
- package/dist/assets/{SettingsRoutes-C_1R1lRs.js → SettingsRoutes-C1UlKVfn.js} +4 -4
- package/dist/assets/{SetupPagesScreen-BatnW9Lm.js → SetupPagesScreen-D5f_S2gA.js} +1 -1
- package/dist/assets/SignInScreen-nIZ9894Z.js +1 -0
- package/dist/assets/SignOutScreen-BBR56tjP.js +9 -0
- package/dist/assets/{TaskListScreen-CR9B7ON8.js → TaskListScreen-vtDblzrs.js} +2 -2
- package/dist/assets/TaskRoutes-6NyFYqIE.js +9 -0
- package/dist/assets/TransactionDetailRoutes-D3tlJJHj.js +1 -0
- package/dist/assets/{TransactionDetailScreen-DZUEdFp2.js → TransactionDetailScreen-DORvf_A0.js} +2 -2
- package/dist/assets/{TransactionListRoutes-DA-II3iy.js → TransactionListRoutes-Dm17WsQR.js} +1 -1
- package/dist/assets/TreasuryRoutes-B_ttsGpb.js +37 -0
- package/dist/assets/{VendorsRoutes-SiTspMG6.js → VendorsRoutes-xehzdyOP.js} +13 -13
- package/dist/assets/WiseConfirmationScreen-BURwrNzz.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-4nO_DRj9.js → ZeniAccountRoutes-D4VHQXPj.js} +10 -10
- package/dist/assets/ZeniAccountStatementScreen-DCQ_lEqk.js +9 -0
- package/dist/assets/{accountMappingHelper-CJzGKxCi.js → accountMappingHelper-Dr0t2P70.js} +1 -1
- package/dist/assets/{analytics-B8BYlogo.js → analytics-Cm9Z6TfJ.js} +1 -1
- package/dist/assets/{analyticsHelper-D2Lkt_0_.js → analyticsHelper-ByMo5A8t.js} +1 -1
- package/dist/assets/{core-C_FlMzhB.js → core-CNZua1e0.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-Bq-dYOxp.js → decodeURIComponentSafe-Dac6kcoy.js} +1 -1
- package/dist/assets/{dnd-CTZ8xt4P.js → dnd-Dmzop572.js} +1 -1
- package/dist/assets/{empty-8tyTORBQ.js → empty-BLoZtodd.js} +1 -1
- package/dist/assets/{empty-Ba3wQ_0C.js → empty-LpcvzIsm.js} +1 -1
- package/dist/assets/{emptyVideoElement-CMq3v722.js → emptyVideoElement-BStHdDf2.js} +1 -1
- package/dist/assets/{epic-DcM6ZH0h.js → epic-D5Ru76Np.js} +1 -1
- package/dist/assets/getLocaleForTenant-BYC6p0GO.js +1 -0
- package/dist/assets/{index-C2TFXiJV.js → index-CUFof7Jj.js} +1 -1
- package/dist/assets/{index-BabuXr6y.js → index-Co04ey3-.js} +10566 -10403
- package/dist/assets/{index-DlR0ZNoW.js → index-DFcSZnAP.js} +1 -1
- package/dist/assets/{index-DKffoxhZ.js → index-DdDiPMGa.js} +1 -1
- package/dist/assets/{index-8DvIGOR_.js → index-QWM1qpc0.js} +1 -1
- package/dist/assets/{index-BU1P3OoO.js → index-jE-fly2Z.js} +1 -1
- package/dist/assets/{index-6WoOptp-.js → index-rFuUBpwP.js} +2 -2
- package/dist/assets/{lexical-BmFHbDfb.js → lexical-Dt1gfKRx.js} +1 -1
- package/dist/assets/{liveblocks-DXiLz49w.js → liveblocks-CGYcZ7Lh.js} +1 -1
- package/dist/assets/{lottie-Bi_BmPss.js → lottie-BoyaSool.js} +1 -1
- package/dist/assets/{mui-D4wswOer.js → mui-DtCOffvy.js} +1 -1
- package/dist/assets/{pathToGoBack-D9SmrC7Q.js → pathToGoBack-gmEN-6lU.js} +1 -1
- package/dist/assets/{pdf-BUMfUQyN.js → pdf-DPV5Ar9D.js} +4 -4
- package/dist/assets/{pdf-lib-BiL5LzBn.js → pdf-lib-CE0iOBgb.js} +1 -1
- package/dist/assets/{plaid-CknlBCWN.js → plaid-DpI35xEc.js} +1 -1
- package/dist/assets/{pusher-919nhfWF.js → pusher-B4AT968C.js} +1 -1
- package/dist/assets/{react-CO9qvT1d.js → react-BTtkL9eY.js} +1 -1
- package/dist/assets/{react-BegT7c31.js → react-CSl1Gs8y.js} +1 -1
- package/dist/assets/{react-CxtHJFJc.js → react-Cuwn10s4.js} +1 -1
- package/dist/assets/{react-DORUVTyV.js → react-DbRkstrq.js} +1 -1
- package/dist/assets/{react-tG70id2q.js → react-gN9MAt-j.js} +1 -1
- package/dist/assets/{react-OYc9lUHZ.js → react-xRWOC5n2.js} +1 -1
- package/dist/assets/{recharts-BjJxsXby.js → recharts-Dq7pGiC-.js} +1 -1
- package/dist/assets/{routePaths-Du0f4vF0.js → routePaths-CHVZiiJU.js} +1 -1
- package/dist/assets/{sentry-C8WyuRaf.js → sentry-DCGk37l1.js} +1 -1
- package/dist/assets/{url-CK7SN0RL.js → url-C3uYKzo6.js} +1 -1
- package/dist/assets/{url-rqOciRjJ.js → url-Cg5cCxLh.js} +1 -1
- package/dist/assets/{useAskAiCfoHostNavButtonProps-CM6KSCVu.js → useAskAiCfoHostNavButtonProps-BW2SwSZE.js} +1 -1
- package/dist/assets/{useDeviceId-DFIMsX1U.js → useDeviceId-SQLvKnL0.js} +1 -1
- package/dist/assets/useFetchSuggestedQuestionsWhenReady-cPo0or_6.js +1 -0
- package/dist/assets/{useInitialThreadRequest-PIljdErr.js → useInitialThreadRequest-BV4XmA3t.js} +1 -1
- package/dist/assets/{utils-l6Jt_9tl.js → utils-DWAOcXZK.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-BeLe_Kr7.js → withTransactionSidePanel-ykEXkuoH.js} +3 -3
- package/dist/assets/{zeni-epic-state-BP6Uj047.js → zeni-epic-state-eW2EQdSt.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AddressRoutes-BUvoDB1G.js +0 -1
- package/dist/assets/AddressScreen-eeo6LcCG.js +0 -9
- package/dist/assets/BillPayApprovalRoutes-B3yMYaND.js +0 -1
- package/dist/assets/CompanyPassportScreen-DVWLNjCs.js +0 -1
- package/dist/assets/CustomerOnboardingAuthScreen-v9d5sdON.js +0 -1
- package/dist/assets/DrawerScreen-B4dcA_LN.js +0 -1
- package/dist/assets/EntityDetailRoutes-6Vf4c0CK.js +0 -1
- package/dist/assets/FeaturePreviewScreen-3Jf-sujQ.js +0 -1
- package/dist/assets/MagicLinkSignInScreen-D1VdpvOF.js +0 -12
- package/dist/assets/NotFoundScreen-DG_ouxiW.js +0 -1
- package/dist/assets/PeopleRoutes-DAqZunqX.js +0 -22
- package/dist/assets/PerformanceRoutes-ArSreWe6.js +0 -1
- package/dist/assets/ReferralListScreen-D6S_Namj.js +0 -5
- package/dist/assets/RewardsRoutes-D3ZdanqE.js +0 -1
- package/dist/assets/SignInScreen-DztMfSvO.js +0 -1
- package/dist/assets/SignOutScreen-DMjdePlb.js +0 -9
- package/dist/assets/TaskRoutes-C3kXaPvb.js +0 -9
- package/dist/assets/TransactionDetailRoutes-v7cR8Xnn.js +0 -1
- package/dist/assets/TreasuryRoutes-CO1mD9L_.js +0 -37
- package/dist/assets/WiseConfirmationScreen-9IfsZKyz.js +0 -12
- package/dist/assets/ZeniAccountStatementScreen-CFC4jyF3.js +0 -9
- package/dist/assets/getLocaleForTenant-BZmydyUi.js +0 -1
- package/dist/assets/useFetchSuggestedQuestionsWhenReady-CqG_ou6v.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-Co04ey3-.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-DCGk37l1.js"><link rel="modulepreload" crossorigin href="/assets/core-CNZua1e0.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-eW2EQdSt.js"><link rel="modulepreload" crossorigin href="/assets/mui-DtCOffvy.js"><link rel="modulepreload" crossorigin href="/assets/analytics-Cm9Z6TfJ.js"><link rel="modulepreload" crossorigin href="/assets/utils-DWAOcXZK.js"><link rel="stylesheet" crossorigin href="/assets/index-Bc34frN_.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.24-dev",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/**/*"
|
|
6
6
|
],
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@stripe/stripe-js": "^4.4.0",
|
|
30
30
|
"@zeniai/client-analytics": "2.0.3",
|
|
31
31
|
"@zeniai/client-epic-state": "5.0.13",
|
|
32
|
-
"@zeniai/web-components": "4.0.
|
|
32
|
+
"@zeniai/web-components": "4.0.28",
|
|
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-DXiLz49w.js";import{A as d}from"./AddressScreen-eeo6LcCG.js";import i from"./NotFoundScreen-DG_ouxiW.js";import"./sentry-C8WyuRaf.js";import{n as s,o as r}from"./core-C_FlMzhB.js";import"./zeni-epic-state-BP6Uj047.js";import"./recharts-BjJxsXby.js";import"./index-BabuXr6y.js";import"./mui-D4wswOer.js";import"./analytics-B8BYlogo.js";import"./plaid-CknlBCWN.js";import"./dnd-CTZ8xt4P.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bi_BmPss.js";import"./lexical-BmFHbDfb.js";import"./pdf-BUMfUQyN.js";import"./utils-l6Jt_9tl.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-DXiLz49w.js";import{a as h}from"./sentry-C8WyuRaf.js";import{j as P,h as _,u as j,l as E,g as B,k as M}from"./core-C_FlMzhB.js";import{K as $,h as D,z as K,S as L,B as R,v as z,d as I,f as m,p as F,j as b,q as N}from"./index-BabuXr6y.js";import{IY as C,gI as U,eM as q,IZ as G,b$ as O,I_ as V,k2 as H}from"./zeni-epic-state-BP6Uj047.js";import{n as Y}from"./mui-D4wswOer.js";import Z from"./NotFoundScreen-DG_ouxiW.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]="3af74b34-0f3a-4849-aed2-0f1db7aaa724",e._sentryDebugIdIdentifier="sentry-dbid-3af74b34-0f3a-4849-aed2-0f1db7aaa724")}catch{}})();const J=Y.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
|
-
`,Q=M(function(e,t){const{addressId:o,isSubPage:i,addressType:c}=t,l=q(e),s=t.roleMap!=null&&G(t.roleMap),d=i||c==="user_address"||O(l?.userRole??[])||s?void 0:"readonly";if(o==null){const a=V(c,e);return{addressToEdit:a?.addressToCreate,loadingState:a?.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=s=>{if(s==="express-pay")o("../express-pay/add-wire");else{const d=i.state,n=N(d?.pathnameStackToGoBack);let a=n.poppedPathname??k();const u=d?.queryParams;if(u){const f=new URLSearchParams(u).toString();f&&(a=`${a}?${f}`)}o(a,{state:{pathnameStackToGoBack:n.newStack}})}};return{onSubmitHandler:s=>{const d=W(s);e(H({addressType:c,addressToCreate:d})),I?.trackSaveAddressClicked(m.Event.saveAddressClicked,{street:s.street.addressString,city:s.city,state:s.state,country:s.country.selectedOption??"",postalCode:s.postalCode,suite:s.suite,secondaryInfo:s.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 s=P(),d=_(),n=j(),{addressId:a,addressType:u}=E(),f=$(),v=D(),w=K.getSignedInUser(),[g,x]=h.useState(a==null),p=B(S=>a!=null?C(S,a).fetchState:"Not-Started"),A=L();if(w==null)throw Error("Can't access address page without signing in...");const T=S=>S.trackPageLoaded(a!=null?m.Event.editAddress:m.Event.addAddress),y=l??u;return h.useEffect(()=>{g||a==null||(x(!0),d(U(a,!1)))},[g,a,d]),y==null||y.match(/(user_address|company_address|company_registered_address|vendor_address|officer_([1-9]|10)_address)$/g)?!g&&p==="Not-Started"||g&&p==="In-Progress"?r.jsx(R,{fetchState:p,style:{backgroundColor:v.colors.grey5}}):a!=null&&p==="Error"?(s(`${k(1)}/new`,{replace:!0}),r.jsx(r.Fragment,{})):r.jsxs(r.Fragment,{children:[r.jsx(z,{analytics:I,onLoad:T}),r.jsx(J,{windowSize:f,children:r.jsx(Q,{location:n,navigate:s,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:t,addressId:a,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},W=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,W as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-DXiLz49w.js";import{a as y}from"./sentry-C8WyuRaf.js";import{j as B,u as U,h as T,g as v,N as $,k as j,l as L,n as O,o as h}from"./core-C_FlMzhB.js";import{eM as N,Mf as R,LX as b,x4 as w,w_ as F,x2 as x,wT as W,LZ as M,wW as q,x6 as z,x5 as C}from"./zeni-epic-state-BP6Uj047.js";import{h as P,z as k,B as V,a1 as X,bx as Z,aa as _,by as G}from"./index-BabuXr6y.js";import"./mui-D4wswOer.js";import{i as H}from"./ReimbursementApprovalRuleDetailScreen-DPNcDo-z.js";import J from"./NotFoundScreen-DG_ouxiW.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]="92281e79-a87f-42ed-ac4e-d1702ac2dc82",e._sentryDebugIdIdentifier="sentry-dbid-92281e79-a87f-42ed-ac4e-d1702ac2dc82")}catch{}})();const I="bill-approval-rule-update",K=j(function(e){return{approvalView:R(e),billPaySetupApproverViewUpdateData:b(e).billPaySetupApproverViewUpdateData}},function(e,o){const{navigate:a,location:p}=o;return{onApprovalRulesEventReceived:t=>{t.endsWith(I)&&e(M(!1))},onBackClick:()=>{_(p)?a("../../"):a("../../../bills/setup")},onDeleteRuleClick:t=>{e(W(t))},onEditRuleClick:t=>{t!=null?(e(x(t)),a(`./${t}/edit`)):(e(x()),a("./new"))}}})(X(Z)),Q=()=>{const e=B(),o=U(),a=T(),[p,t]=y.useState(!1),[u,s]=y.useState(!1),d=P(),n=v(i=>i.billPaySetupApproverViewState.fetchState),c=v(i=>N(i)),r=v(i=>R(i)),g=v(i=>b(i).billPaySetupApproverViewUpdateData);if(y.useEffect(()=>{g?.updateStatus.fetchState==="Completed"&&a(w())},[g]),y.useEffect(()=>{p||n!=="Not-Started"||(t(!0),a(F(!0)))},[p,n,a]),k.getSignedInUser()==null)throw Error("Can't access billpay approval without signing in...");y.useEffect(()=>{r.allApprovalRules.length===0&&r.fetchState==="Completed"&&(u||(s(!0),a(x())),e("./new"))},[u,r,a]);const f={events:c.companyId!=null?[`private-${c.companyId}.${I}`]:[],eventCallback:(i,A,m)=>{i.endsWith(I)&&m.onApprovalRulesEventReceived(i)}};return c.companyBillPayInfo?.info?.isBillPayTOSAccepted===!1?l.jsx($,{to:"../../promo"}):c.companyBillPayInfo?.info?.isBillPayTOSAccepted!==!0||r.fetchState!=="Completed"&&r.fetchState!=="Error"?l.jsx(V,{fetchState:"In-Progress",style:{backgroundColor:d.colors.grey5}}):l.jsx(K,{currentTenant:c,location:o,navigate:e,...f})},Y=j(function(e,o){const a=b(e),p=a.billPaySetupApproverViewUpdateData?.type??"approval_create",t=p==="approval_create"&&a.allApprovalRules.length!==0;let u=a.allApprovalRules.length===0;return o.approvalRuleId&&(u=a.allApprovalRules.findIndex(s=>s.approvalRuleId===o.approvalRuleId)===0),{localData:a,hideUpperBoundField:t,isLowerBoundDisabled:u,approvalUpdateActionType:p}},function(e,o){const{navigate:a,approvalUpdateDataView:p,approverViewData:t,approvalRuleId:u}=o,s=p.billPaySetupApproverViewUpdateData?.type,d=_(o.location);return{onApprovalRuleDataUpdated:n=>{const c=r=>{const g=[];return r.forEach(f=>{const i=f.actors.selectedUsers.map(S=>({type:"user",userId:S.userId,isImplicitActor:!1})),A=f.actors.selectedNonUsers.map(S=>{const E=!!H(S.value);return{type:E?"attribute":"role",subType:S.value,userId:void 0,idType:void 0,isImplicitActor:!E}}),m=i.concat(A);g.push({action:f.stepType.selectedOption,actors:m,operator:m.length>1?f.stepType.selectedOption==="require_approval"?"or":"and":"is"})}),g};if(s==="approval_create"){const r={criteria:{rangeType:"range",rangeEntity:"currency",range:{min:{amount:n.lowerBound,currencyCode:"USD",currencySymbol:"$"},max:{amount:n.upperBound,currencyCode:"USD",currencySymbol:"$"}}},steps:c(n.steps),isApplicableOnPendingApprovalEntity:n.applyToExistingBills.includes("applyToExistingBills")};e(C(r))}else{const r={approvalRuleId:u,criteria:{rangeType:"range",rangeEntity:"currency",range:{min:{amount:n.lowerBound,currencyCode:"USD",currencySymbol:"$"},max:{amount:n.upperBound,currencyCode:"USD",currencySymbol:"$"}}},steps:c(n.steps),isApplicableOnPendingApprovalEntity:n.applyToExistingBills.includes("applyToExistingBills")};e(C(r))}},onResetClick:()=>{e(w()),s==="approval_update"||d?a("../"):t.allApprovalRules.length===0&&t.fetchState==="Completed"?a("../../setup"):a("../")},onBackClick:()=>{e(w()),s==="approval_update"||d?a("../"):t.allApprovalRules.length===0&&t.fetchState==="Completed"?a("../../setup"):a("../")},onSaveRuleClick:()=>{e(z())},onSaveRuleSuccess:()=>{a("../")}}})(G);function D(){const e=B(),o=T(),a=U(),{approvalRuleId:p}=L(),t=k.getSignedInUser(),u=P(),s=v(r=>b(r)),d=v(r=>R(r)),[n,c]=y.useState(!1);if(y.useEffect(()=>{n||(c(!0),o(q(!0)))}),y.useEffect(()=>{d.fetchState==="Not-Started"&&e(p!=null?"../../":"../")},[d,p]),t==null)throw Error("Can't access address page without signing in...");return s.approverListFetchStatus.fetchState=="Not-Started"||s.approverListFetchStatus.fetchState==="In-Progress"?l.jsx(V,{fetchState:s.approverListFetchStatus.fetchState,style:{backgroundColor:u.colors.grey5}}):l.jsx(Y,{navigate:e,approvalUpdateDataView:s,approvalRuleId:p,approverViewData:d,location:a})}function se(){return l.jsxs(O,{children:[l.jsx(h,{path:"/",element:l.jsx(Q,{})}),l.jsx(h,{path:"/new",element:l.jsx(D,{})}),l.jsx(h,{path:"/:approvalRuleId/edit",element:l.jsx(D,{})}),l.jsx(h,{path:"*",element:l.jsx(J,{})})]})}export{se as B};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as m}from"./liveblocks-DXiLz49w.js";import{a as g}from"./sentry-C8WyuRaf.js";import{j as w,h as k,u as x,l as T,g as O,k as E}from"./core-C_FlMzhB.js";import{z as C,b0 as F,v as P,d as L,f as V,aa as b,b1 as j,ao as A,ap as B,r as U}from"./index-BabuXr6y.js";import{eM as D,fB as M,rs as _,fw as R,b$ as z,Ls as G,bm as Y,pA as $,po as q,jW as H,lq as S,Lt as W,bB as Z,cr as N,ly as J,lB as K}from"./zeni-epic-state-BP6Uj047.js";import"./mui-D4wswOer.js";import{c as Q}from"./routePaths-Du0f4vF0.js";import{M as X}from"./MobileAppDrawer-Jd5aa9gg.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new a.Error().stack;n&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[n]="10adeb39-6260-4733-b0bd-67a354801e24",a._sentryDebugIdIdentifier="sentry-dbid-10adeb39-6260-4733-b0bd-67a354801e24")}catch{}})();const ee=E(function(a){const n=R(a),i=C.getSignedInUser(),l=D(a),c=l.tenantId,p={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=z(l?.userRole??[])&&n.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=G(a.companyConfigState),t=a.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:n.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:n,allIndustries:e.companyIndustries??[],allNationalityCountries:t,isDisabled:f,authParams:p,filesEndPoint:`${A.fileMicroServiceBaseUrl}`,isZeniUser:Y(i)}},function(a,n){const{companyId:i,currentTenant:l,navigate:c,location:p}=n,{tenantEmailDomain:f}=l;return{onScheduleClick:e=>{let t=e.href;t.includes("http")||(t="https://".concat(t)),window.open(t,"_blank")},onSaveAll:()=>{a(K())},onAddressClick:e=>{const t=Q(f,e),o=U(p.state?.pathnameStackToGoBack,p.pathname);c(t,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{a(J({companyId:i}))},onBackClick:()=>{c("../")},onCompanyDetailsChanged:e=>{const{companyInfo:t,incInfo:o,taxDetails:r,zeniFinanceTeam:d}=e,{website:u}=t,{meetingLink:y}=d,{incDate:s}=o,{taxesFiledYears:h}=r,v={companyInfo:{...t,website:u!=""&&u!=null?N(u):void 0,meetingLink:y!=""&&y!=null?N(y):void 0,industry:t.industry.selectedOption,companyIndustryType:t.companyIndustryType?.selectedOption??void 0,companySubIndustry:t.companySubIndustry?.selectedOption??void 0,businessModel:t.businessModel.selectedOption??"",companySourceOfFunds:t.companySourceOfFunds?.selectedOption,companySourceOfFundsDescription:t.companySourceOfFundsDescription??void 0,countriesOfOperations:t.countriesOfOperations?.selectedOptions?.map(I=>I.length===2?I:B(I))??[],transactionVolume:t.transactionVolume?.selectedOption??void 0,transactionVolumeDescription:t.transactionVolumeDescription??void 0,regulatedStatus:t.regulatedStatus??void 0,regulatedStatusDescription:t.regulatedStatusDescription??void 0,usNexus:t.usNexus??void 0,usNexusTypes:t.usNexusTypes?.selectedOptions??[],purposeOfAccount:t.purposeOfAccount?.selectedOption??void 0,purposeOfAccountDescription:t.purposeOfAccountDescription??void 0},incInfo:{typeOfInc:o.typeOfInc.selectedOption??"",stateOfInc:o.stateOfInc.selectedOption??"",incDate:s!=null?Z(s?.toString()):s,fileId:o.fileIds[0]},taxDetails:{taxIdOrEIN:r.taxIdOrEIN,sicCode:r.sicCode,naicsCode:r.naicsCode,dunsNumber:r.dunsNumber,taxesFiledYears:h.selectedOptions.map(I=>parseInt(I)),fileId:r.fileIds[0]}};a(S({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{a(S({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{a(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:void 0}]}))},onNewCompanyOfficerRemoved:e=>{a(W(e))},onCompanyOfficerUpdated:e=>{a(S({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:e.userId}]}))},updateFilesEntity:e=>{a(H({files:e}))},onDeleteFile:e=>{a(q(e))},onEditFileName:(e,t)=>{a($(e,t.split(".")[0]))}}})(j);function de(){const a=w(),n=k(),i=x(),{tenantEmailDomain:l}=T(),[c,p]=g.useState(!1),[f,e]=g.useState(!1),t=O(s=>s.companyViewState.passportView.fetchState),o=O(s=>s.companyConfigState.fetchState),r=O(s=>D(s)),d=r.companyId??C.getSignedInUserTenant(l)?.companyId;if(C.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect(()=>{c||t!=="Not-Started"||d==null||(p(!0),n(M(d)))},[c,t,d,n]),g.useEffect(()=>{o==="Not-Started"&&n(_())},[o,n]);const u=s=>{e(s)},y=t==="Not-Started"||t==="In-Progress"||o==="Not-Started"||o==="In-Progress";return d!=null&&t==="Error"?m.jsx(F,{onGoHome:()=>a("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(P,{analytics:L,onLoad:s=>s.trackPageLoaded(V.Event.companyPassport,b(i)?"Settings":"Company Passport")}),b(i)?m.jsx(X,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:a,location:i,isLoading:y,currentTenant:r,isSettings:b(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as d}from"./liveblocks-DXiLz49w.js";import{z as n}from"./index-BabuXr6y.js";import{g as p}from"./QBOConnectionScreen-CBYjGz6H.js";import"./sentry-C8WyuRaf.js";import{u as a,N as i}from"./core-C_FlMzhB.js";import"./zeni-epic-state-BP6Uj047.js";import"./recharts-BjJxsXby.js";import"./mui-D4wswOer.js";import"./analytics-B8BYlogo.js";import"./plaid-CknlBCWN.js";import"./dnd-CTZ8xt4P.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bi_BmPss.js";import"./lexical-BmFHbDfb.js";import"./pdf-BUMfUQyN.js";import"./utils-l6Jt_9tl.js";import"./empty-8tyTORBQ.js";import"./pdf-lib-BiL5LzBn.js";import"./index-8DvIGOR_.js";import"./url-CK7SN0RL.js";import"./index-BU1P3OoO.js";import"./decodeURIComponentSafe-Bq-dYOxp.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 +0,0 @@
|
|
|
1
|
-
import{j as d}from"./liveblocks-DXiLz49w.js";import{K as c,A as l,h as f}from"./index-BabuXr6y.js";import{D as p}from"./mui-D4wswOer.js";import"./sentry-C8WyuRaf.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]="2fa64745-7920-402f-ba89-c26a2e8cc932",e._sentryDebugIdIdentifier="sentry-dbid-2fa64745-7920-402f-ba89-c26a2e8cc932")}catch{}})();const u={drawerLeftMargin:new l(0,0,240)};function h(e){const{isOpen:r,drawerLeftMargin:o,children:a,onClose:t}=e,n=c(),s=o?.valuePx(n)??u.drawerLeftMargin.valuePx(n),i=f();return d.jsx(p,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${s})`}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.8,cursor:"pointer"}}},onClose:t,children:a})}export{h as D};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-DXiLz49w.js";import{a as d}from"./sentry-C8WyuRaf.js";import{j as A,h as B,u as J,l as q,g as c,N as F,k as M,n as N,o as O}from"./core-C_FlMzhB.js";import{Ko as _,eM as K,JN as R,km as W,Gv as I,Kt as Y,Jg as $,jm as z,Gw as S,JS as V,JT as H,Ji as L,Jh as Q}from"./zeni-epic-state-BP6Uj047.js";import{aM as U,d as X,q as Z,r as tt}from"./index-BabuXr6y.js";import"./mui-D4wswOer.js";import{d as k}from"./decodeURIComponentSafe-Bq-dYOxp.js";import{w as et}from"./withTransactionSidePanel-BeLe_Kr7.js";import{e as at,b as nt}from"./routePaths-Du0f4vF0.js";import"./recharts-BjJxsXby.js";import"./analytics-B8BYlogo.js";import"./plaid-CknlBCWN.js";import"./dnd-CTZ8xt4P.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bi_BmPss.js";import"./lexical-BmFHbDfb.js";import"./pdf-BUMfUQyN.js";import"./utils-l6Jt_9tl.js";import"./useAskAiCfoHostNavButtonProps-CM6KSCVu.js";import"./useFetchSuggestedQuestionsWhenReady-CqG_ou6v.js";import"./TransactionDetailScreen-DZUEdFp2.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]="f2a0ea01-3af8-47cd-8e88-a91645c5cf18",a._sentryDebugIdIdentifier="sentry-dbid-f2a0ea01-3af8-47cd-8e88-a91645c5cf18")}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)}`,l=tt(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(o,{state:{pathnameStackToGoBack:l}})},autoCompleteActions:{onAutoCompleteInputChange:e=>{e.trim().length>=2?a(L({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(Q("common"))},onAutoCompleteEntity:e=>{const o=at(e,t.tenantEmailDomain);a(V()),a(H()),t.resetTrendIsFetchedStates(),t.navigate(o,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=Z(t.location.state?.pathnameStackToGoBack),o=e.poppedPathname??C();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(I(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),a(S(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:o}))}}}})(U),it=et(function({entityType:a,...t}){const e=A(),o=B(),l=J(),[m,T]=d.useState(!1),[h,g]=d.useState(!1),{tenantEmailDomain:b,entityIdEncoded:j,entityNameEncoded:w}=q(),r=k(j??""),p=k(w??""),f=rt(r,p),x=[r,p].filter(n=>n!=null),i={name:p,id:r,type:a,zeniId:r,qboId:r},D=c(n=>_(n.customerIncomeState,n.vendorExpenseState,n.trendState,i,"quarter")),G=c(n=>K(n).company?.companyInfo.firstMonthOfFY??1),u=c(n=>R(n.trendWithTransactionsState,i,"EntityDetail"));d.useEffect(()=>{m===!1&&f===!0&&(T(!0),o(W(i)))},[m,f,i]);const E=c(n=>n.trendState.fetchState),P=u?.selectedPeriod?.timePeriod??D,v=function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y}(u?.selectedPeriod?.timePeriod,D);return d.useEffect(()=>{m===!0&&h===!1&&E==="Completed"&&(g(!0),P!=null&&o(I(i,"EntityDetail",{timeframe:u?.selectedPeriod?.timeframe??"quarter",timePeriod:P})))},[m,h,E]),f?s.jsx(ot,{firstMonthOfFY:G,tenantEmailDomain:b,location:l,navigate:e,entity:i,defaultTransactionTimePeriod:v,resetTrendIsFetchedStates:()=>{T(!1),g(!1)},...t}):s.jsx(F,{to:C(x.length)})}),rt=(a,t)=>t!=null&&t.length>0&&a!=null&&a.length>0,C=(a=2)=>{let t="../";for(let e=0;e<a;e++)t=`${t}../`;return t};function wt({entityType:a}){return s.jsx(N,{children:s.jsx(O,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:a})})})}export{wt as EntityDetailRoutes,wt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-DXiLz49w.js";import{a as r}from"./sentry-C8WyuRaf.js";import{X as c,$ as l,Y as p,q as m}from"./index-BabuXr6y.js";import"./mui-D4wswOer.js";import f from"./NotFoundScreen-DG_ouxiW.js";import{j as u,u as b}from"./core-C_FlMzhB.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]="480a331c-c543-4948-ba7a-d3155251e32a",a._sentryDebugIdIdentifier="sentry-dbid-480a331c-c543-4948-ba7a-d3155251e32a")}catch{}})();const D=()=>{const a=u(),e=b(),t=r.useCallback(()=>{window.open("https://www.zeni.ai/demo/request","_blank")},[]),i=r.useCallback(()=>{(()=>{const n=m(e.state?.pathnameStackToGoBack),d=n.poppedPathname??k();a(d,{state:{pathnameStackToGoBack:n.newStack}})})()},[]),o=c(e.pathname);return o!=null?s.jsx(l,{menuItem:p(o),onDemoClick:t,onGoBack:i}):s.jsx(f,{})},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-DXiLz49w.js";import{a as g}from"./sentry-C8WyuRaf.js";import{h as U,u as w,j as _,q as M,g as l,N as T}from"./core-C_FlMzhB.js";import{z as r,h as P,D as V,e as A,d as N,f as q,k as R,w as W,g as $}from"./index-BabuXr6y.js";import{eM as B,Id as G,Io as H,Ie as J,eN as K,fh as Q,Ik as X,fF as Y,cR as Z,Ip as ee,Iq as te}from"./zeni-epic-state-BP6Uj047.js";import{n as ne}from"./mui-D4wswOer.js";import{u as ae}from"./useDeviceId-DFIMsX1U.js";import{f as se}from"./analyticsHelper-D2Lkt_0_.js";import{t as ie}from"./getLocaleForTenant-BZmydyUi.js";import"./recharts-BjJxsXby.js";import"./analytics-B8BYlogo.js";import"./plaid-CknlBCWN.js";import"./dnd-CTZ8xt4P.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bi_BmPss.js";import"./lexical-BmFHbDfb.js";import"./pdf-BUMfUQyN.js";import"./utils-l6Jt_9tl.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]="38cde0aa-5cb4-4165-8a49-fe291aa9976d",t._sentryDebugIdIdentifier="sentry-dbid-38cde0aa-5cb4-4165-8a49-fe291aa9976d")}catch{}})();const D=(t,s)=>t!=null&&t.length>0&&s==="magic_links";function De(){const t=U(),s=w(),m=_(),[y]=M(),n=y.get("token"),p=y.get("stytch_token_type"),f=r.getMagicLinkCodeVerifier(),i=ae(),{otpChallenge:d,twoFAPhoneNumber:x,magicLinkEmail:c,verifyDeviceFetchState:z,resendVerifyDeviceOTPFetchState:C}=l(e=>e.tenantState),I=l(e=>e.tenantState.fetchState),b=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;g.useEffect(()=>{a?.zeniSessionId==null&&n!=null&&D(n,p)&&i!=null&&f!=null&&(r.saveMagicLinkTriggered(n),t(H(n,i,f)))},[n,p,t,i,f,a?.zeniSessionId]),g.useEffect(()=>{S!=="In-Progress"||I!=="Completed"&&b!=="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,b,a,o,k,v,s.state,t]);const F=g.useCallback(()=>{m("/signin/auth")},[m]),j=g.useCallback(()=>{i!=null&&d!=null&&c!=null&&t(ee(i,c,d))},[i,d,t,c]),O=g.useCallback(e=>{i!=null&&n!=null&&c!=null&&d!=null&&t(te(e,i,c,d))},[i,n,t,c,d]);if(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)||f==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-DXiLz49w.js";import{j as r,k as i}from"./core-C_FlMzhB.js";import{W as n}from"./index-BabuXr6y.js";import"./mui-D4wswOer.js";import"./sentry-C8WyuRaf.js";import"./zeni-epic-state-BP6Uj047.js";import"./recharts-BjJxsXby.js";import"./analytics-B8BYlogo.js";import"./plaid-CknlBCWN.js";import"./dnd-CTZ8xt4P.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bi_BmPss.js";import"./lexical-BmFHbDfb.js";import"./pdf-BUMfUQyN.js";import"./utils-l6Jt_9tl.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,22 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-DXiLz49w.js";import{I$ as oe,eM as X,jm as M,eS as q,eQ as ie,Gz as Y,ID as re,sF as ke,J0 as N,st as Pe,sO as je,sI as le,sx as de,sM as Te,sJ as Le,J1 as ce,uj as ve,J2 as Ae,fw as Fe,J3 as G,sC as pe,sA as ue,sR as Oe,b$ as Re}from"./zeni-epic-state-BP6Uj047.js";import{K as me,s as ee,c as E,z as H,a4 as ge,F as fe,af as he,ag as Ve,A as Ce,o as F,G as be,D as ye,ah as Ue,J as $e,I as Be,v as Ze,d as we,f as ze,r as Ge,ai as Je,S as Ke}from"./index-BabuXr6y.js";import{D as Se,n as _,S as De}from"./mui-D4wswOer.js";import te from"./NotFoundScreen-DG_ouxiW.js";import{a as l}from"./sentry-C8WyuRaf.js";import{h as se,l as Me,g,j as He,u as _e,k as We,n as ne,o as z}from"./core-C_FlMzhB.js";import{u as Qe}from"./useAskAiCfoHostNavButtonProps-CM6KSCVu.js";import{c as Ne}from"./useFetchSuggestedQuestionsWhenReady-CqG_ou6v.js";import{M as Xe}from"./MobileAppDrawer-Jd5aa9gg.js";import"./recharts-BjJxsXby.js";import"./analytics-B8BYlogo.js";import"./plaid-CknlBCWN.js";import"./dnd-CTZ8xt4P.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bi_BmPss.js";import"./lexical-BmFHbDfb.js";import"./pdf-BUMfUQyN.js";import"./utils-l6Jt_9tl.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]="084442c6-72b4-4780-8bd0-24f5a0f0728d",e._sentryDebugIdIdentifier="sentry-dbid-084442c6-72b4-4780-8bd0-24f5a0f0728d")}catch{}})();const qe={overlayWidth:new Ce(100,100,48)},J=ye.getLocalizedStrings().peoplePage.invitePage,Ye=({companyId:e,managersListView:n,companyPassportView:d,classListView:o,mode:f,isEditPeopleDrawerOpen:i,closeDrawerHandler:y})=>{const h=me(),u=se(),[O,R]=l.useState(!1),[k,w]=l.useState(!1),{userId:S}=Me(),c=g(t=>oe(t)),m=g(t=>X(t)),D=g(t=>M(t)),{useFeatureGate:C}=ee(),{isFeatureEnabled:I}=C(E.isDebitCardFeatureEnabled),P=q(I,m),L=ie(m),v=Y(m),V=re(m),U=!!m.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,x=!P&&D&&o.fetchState!=="Completed"||n.fetchState!=="Completed"||d.fetchState!=="Completed"||e==null;if(H.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const b=()=>{u(N()),y()},A=()=>{O===!0?w(!0):b()},$=d.companyView?.controllers?.map(t=>t.user),{isFeatureEnabled:B}=C(E.isDepositAccountsFeatureEnabled),{isFeatureEnabled:Z}=C(E.isChargeCardFeatureEnabled),p=ge(m,Z,I),{isFeatureEnabled:j}=C(E.isTreasuryEnabled),T={peopleDetails:c,classList:o.classes,managersList:n.users,controllersList:$,mode:f,isZeniTenant:v,isAccountingClassesEnabled:D,isReimbursementDisabled:U===!1,isZeniAccountsDisabled:B===!1,isChargeCardDisabled:p===!1,isTreasuryDisabled:j===!1,isLiteRoleDisabled:V===!1,isBankingOnlyTenant:P,isCardsOnlyTenant:L,onResetClick:b,onDeleteUser:t=>{u(de(t.userId,t.userRole.userRoleId))},onPeopleLocalDataUpdated:t=>{u(le({peopleLocalData:t})),R(!0)},onSaveClick:()=>{u(f==="zeni_only"?Pe(e):je(v))},onCloseClick:A,isLoading:x||c.person==null},r={onOkClick:()=>{w(!1),b()},onCancelClick:()=>{w(!1)}};return l.useEffect(()=>{x===!1&&S!=null&&u(ke(S))},[x,S]),l.useEffect(()=>{c.updatePersonState.fetchState==="Completed"&&b()},[c.updatePersonState.fetchState]),s.jsx(Se,{anchor:"right",open:i,PaperProps:{style:{width:qe.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:fe.overlayDark,cursor:"pointer"}}},onClose:A,children:s.jsxs(es,{onClick:t=>t.stopPropagation(),children:[k===!0?s.jsx(he,{titleComponent:s.jsx(xe,{children:J.discardTitle}),descriptionComponent:s.jsx(Ee,{children:J.discardDescription}),primaryButtonText:J.discard,secondaryButtonText:J.no,action:r,isEditPopup:!0}):null,s.jsx(Ve,{...T})]})})},es=_(De)`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`,xe=_(be.H6Regular)`
|
|
6
|
-
margin-top: ${F.sp7};
|
|
7
|
-
padding-left: ${F.sp8};
|
|
8
|
-
padding-right: ${F.sp8};
|
|
9
|
-
color: ${e=>e.theme.colors.primary};
|
|
10
|
-
word-break: break-word;
|
|
11
|
-
`,Ee=_(be.LargeRegularSp)`
|
|
12
|
-
color: ${e=>e.theme.colors.hero};
|
|
13
|
-
padding-left: ${F.sp8};
|
|
14
|
-
padding-right: ${F.sp8};
|
|
15
|
-
margin-bottom: 30px;
|
|
16
|
-
margin-top: ${F.sp4};
|
|
17
|
-
white-space: pre-line;
|
|
18
|
-
`,ss={overlayWidth:new Ce(100,100,48)},K=ye.getLocalizedStrings().peoplePage.invitePage,as=({companyId:e,managersListView:n,companyPassportView:d,classListView:o,mode:f,isInvitePeopleDrawerOpen:i,closeDrawerHandler:y})=>{const h=me(),u=se(),[O,R]=l.useState(!1),[k,w]=l.useState(!1),S=g(r=>oe(r)),c=g(r=>X(r)),m=g(r=>M(r)),{useFeatureGate:D}=ee(),{isFeatureEnabled:C}=D(E.isDebitCardFeatureEnabled),I=q(C,c),P=ie(c),L=Y(c),v=re(c),V=!!c.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,U=!I&&m&&o.fetchState!=="Completed"||n.fetchState!=="Completed"||d.fetchState!=="Completed"||e==null;if(H.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const x=()=>{y(),u(N())},b=()=>{O===!0?w(!0):x()},A={onOkClick:()=>{w(!1),x()},onCancelClick:()=>{w(!1)}},$=d.companyView?.controllers.map(r=>r.user),{isFeatureEnabled:B}=D(E.isDepositAccountsFeatureEnabled),{isFeatureEnabled:Z}=D(E.isChargeCardFeatureEnabled),p=ge(c,Z,C),{isFeatureEnabled:j}=D(E.isTreasuryEnabled),T={classList:o.classes,managersList:n.users,controllersList:$,mode:f,isZeniTenant:L,onPeopleLocalDataUpdated:r=>{u(le({peopleLocalData:r})),R(!0)},onResetClick:x,onSaveClick:()=>{u(f==="zeni_only"?Te(e):Le())},onCloseClick:b,peopleDetails:S,isAccountingClassesEnabled:m,isReimbursementDisabled:V===!1,isLiteRoleDisabled:v===!1,isZeniAccountsDisabled:B===!1,isChargeCardDisabled:p===!1,isTreasuryDisabled:j===!1,isBankingOnlyTenant:I,isCardsOnlyTenant:P,isLoading:U};return l.useEffect(()=>{S.invitePersonState.fetchState==="Completed"&&(y(),u(N()))},[S.invitePersonState.fetchState]),s.jsx(Se,{anchor:"right",open:i,PaperProps:{style:{width:ss.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:fe.overlayDark,cursor:"pointer"}}},onClose:b,children:s.jsxs(ts,{onClick:r=>r.stopPropagation(),children:[k===!0?s.jsx(he,{titleComponent:s.jsx(xe,{children:K.discardTitle}),descriptionComponent:s.jsx(Ee,{children:K.discardDescription}),primaryButtonText:K.discard,secondaryButtonText:K.no,action:A}):null,s.jsx(Ue,{...T})]})})},ts=_(De)`
|
|
19
|
-
display: flex;
|
|
20
|
-
min-height: 100%;
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
`,ns=We(function(e,n){const d=ce(e),o=H.getSignedInUser();return{data:d,loggedinUserId:o?.userId??"",isZeniTenant:n.isZeniTenant===!0,shouldFetchClasses:n.shouldFetchClasses,isZeniAdminUser:o?.userEmailDomain==="zeni.ai"&&n.isZeni===!0,isAccountingClassesEnabled:M(e),analytics:we}},function(e,n){const{navigate:d,companyId:o,shouldFetchClasses:f}=n;return{personAction:{onPersonDelete:(i,y)=>{e(de(i,y))},onResendInvite:i=>{e(Oe(i))},onReloadPeople:()=>{e(pe()),e(ue(o,f))},onBackClick:()=>{d("../../")},onModeChange:i=>{e(G({mode:i,searchText:"",sortKey:"name",sortOrder:"ascending"}))},onSearchTextChanged:i=>{e(G({searchText:i}))}}}})(Je);function Q({isInvitePeopleDrawerOpen:e,isEditPeopleDrawerOpen:n}){const d=He(),o=se(),f=_e(),{areTenantIdsInSync:i}=$e(),y=H.getSignedInUser(),h=g(a=>X(a)),{useFeatureGate:u}=ee(),{isFeatureEnabled:O}=u(E.isDebitCardFeatureEnabled),R=g(a=>M(a)),k=!q(O,h)&&R,w=Y(h),S=h?.tenantId,{tenantEmailDomain:c}=h,[m,D]=l.useState(!1),[C,I]=l.useState(!1),[P,L]=l.useState(!1),[v,V]=l.useState("off"),[U,x]=l.useState(!1),b=a=>{x(a)},{isAiCfoOpen:A,setIsAiCfoOpen:$}=Be(),{isAiCfoAccessEnabled:B,onAskAiCfoClick:Z}=Qe({isAiCfoOpen:A,setIsAiCfoOpen:$,mobileExploreReferrer:"People"}),p=g(a=>ce(a));Ne({isDataReady:p.fetchState==="Completed"});const j=g(a=>ve(a.classState,a.classListState)),T=g(a=>Ae(a.userState,a.userRoleState,a.userListViewState,"manager")),r=g(a=>Fe(a)),t=h?.companyId;l.useEffect(()=>{m&&v===p.uiState.mode||!i||(o(G({searchText:"",sortKey:"name",sortOrder:"ascending"})),V(p.uiState.mode),D(!0),o(pe()))},[m,y,S,o,p.uiState.mode,i]),l.useEffect(()=>{t!=null&&i&&o(ue(t,k))},[t,k,i]),l.useEffect(()=>{I(e!=null&&e===!0),L(n!=null&&n===!0&&n)},[e,n]),l.useEffect(()=>{o(G({searchText:"",sortKey:"name",sortOrder:"ascending"}))},[]);const ae=()=>{I(!1),L(!1),d("../")};return s.jsxs(s.Fragment,{children:[p.fetchState==="Completed"?s.jsx(Ze,{analytics:we,onLoad:a=>a.trackPageLoaded(ze.Event.members)}):null,C===!0?s.jsx(as,{closeDrawerHandler:ae,isInvitePeopleDrawerOpen:C,managersListView:T,companyPassportView:r,classListView:j,companyId:t,mode:p.uiState.mode}):null,P===!0?s.jsx(Ye,{closeDrawerHandler:ae,isEditPeopleDrawerOpen:P,managersListView:T,companyPassportView:r,classListView:j,companyId:t,mode:p.uiState.mode}):null,s.jsx(Xe,{isAppContentDrawerOpen:U,handleDrawerToggle:b}),s.jsx(ns,{navigate:d,signedInUser:y,isZeni:h.isZeni,isZeniTenant:w,peopleUIState:p.uiState,companyId:t,shouldFetchClasses:k,classList:j,managersView:T,peopleView:p,onInvitePeopleClick:()=>{d("./new")},onColumnSortConfigChanged:(a,W)=>{o(G({sortKey:a,sortOrder:W}))},onRowClick:a=>{const W=`/${c}/people/${encodeURIComponent(a)}/edit`,Ie=Ge(f.state?.pathnameStackToGoBack,f.pathname);d(W,{state:{pathnameStackToGoBack:Ie}})},onClickMenuIcon:()=>{b(!0)},isAiCfoAccessEnabled:B,onAskAiCfoClick:Z})]})}function Es(){const e=Ke();return Re(e?.loggedInUserRole??[])?s.jsxs(ne,{children:[s.jsx(z,{path:"/",element:s.jsx(Q,{})}),s.jsx(z,{path:"new",element:s.jsx(Q,{isInvitePeopleDrawerOpen:!0})}),s.jsx(z,{path:":userId/edit",element:s.jsx(Q,{isEditPeopleDrawerOpen:!0})}),s.jsx(z,{path:"*",element:s.jsx(te,{})})]}):s.jsx(ne,{children:s.jsx(z,{path:"*",element:s.jsx(te,{})})})}export{Es as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-DXiLz49w.js";import _ from"./NotFoundScreen-DG_ouxiW.js";import{a as r}from"./sentry-C8WyuRaf.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-C_FlMzhB.js";import{eM as F,OG as b,bn as G,bm as N,h2 as H,gy as $}from"./zeni-epic-state-BP6Uj047.js";import{E as q,z as I,I as J,cs as K}from"./index-BabuXr6y.js";import"./mui-D4wswOer.js";import{u as L}from"./useAskAiCfoHostNavButtonProps-CM6KSCVu.js";import{c as Q}from"./useFetchSuggestedQuestionsWhenReady-CqG_ou6v.js";import{M as W}from"./MobileAppDrawer-Jd5aa9gg.js";import"./recharts-BjJxsXby.js";import"./analytics-B8BYlogo.js";import"./plaid-CknlBCWN.js";import"./dnd-CTZ8xt4P.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bi_BmPss.js";import"./lexical-BmFHbDfb.js";import"./pdf-BUMfUQyN.js";import"./utils-l6Jt_9tl.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]="1eeef36e-d3da-438e-b307-10c9686f3f1c",e._sentryDebugIdIdentifier="sentry-dbid-1eeef36e-d3da-438e-b307-10c9686f3f1c")}catch{}})();const X=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)}}})(K),Y=()=>{const e=M(),t=v(),c=q(),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),w=G(o?.userRole??[]),k=o?.userRole?.includes("bookkeeping_admin")??!1,y=N(l),A=w||k||y,d=r.useCallback((s,i,O)=>{p(H({fromMonth:s,toMonth:i,cacheOverride:O}))},[]);r.useEffect(()=>{n?.fetchState==="Completed"&&f.current&&(p($({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}=J(),{isAiCfoAccessEnabled:E,onAskAiCfoClick:T}=L({isAiCfoOpen:j,setIsAiCfoOpen:R,mobileExploreReferrer:"Performance"});return Q({isDataReady:n?.fetchState==="Completed"}),A?a.jsxs(a.Fragment,{children:[a.jsx(W,{isAppContentDrawerOpen:C,handleDrawerToggle:u}),a.jsx(X,{navigate:e,location:t,themeState:c,currentTenant:o,signedInUser:l,tenantEmailDomain:m,onReload:D,onTimeRangeSelect:x,handleDrawerToggle:u,isAiCfoAccessEnabled:E,onAskAiCfoClick:T})]}):a.jsx(z,{to:`/${m}/dashboard`,replace:!0})};function Ie(){return a.jsxs(B,{children:[a.jsx(h,{path:"*",element:a.jsx(Y,{})}),a.jsx(h,{path:"*",element:a.jsx(_,{})})]})}export{Ie as default};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-DXiLz49w.js";import{a as o}from"./sentry-C8WyuRaf.js";import{g as f,j as M,h as V,u as F,k as N}from"./core-C_FlMzhB.js";import{h as _,K as U,z as R,b2 as $,A as z,J,I as K,v as Y,d as l,f as q,a1 as G,b3 as Q}from"./index-BabuXr6y.js";import{eW as X,eM as Z,Lu as I,Lv as ee,tn as ae,td as g,eY as re,bL as ne,ti as te,Lw as se}from"./zeni-epic-state-BP6Uj047.js";import{D as oe,e as ie,n as le,S as de}from"./mui-D4wswOer.js";import{u as ce}from"./useAskAiCfoHostNavButtonProps-CM6KSCVu.js";import{c as fe}from"./useFetchSuggestedQuestionsWhenReady-CqG_ou6v.js";import{M as ue}from"./MobileAppDrawer-Jd5aa9gg.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]="0ee3c72b-cda6-4b48-a529-fb78c9d01b4e",e._sentryDebugIdIdentifier="sentry-dbid-0ee3c72b-cda6-4b48-a529-fb78c9d01b4e")}catch{}})();const pe={overlayWidth:new z(100,100,30)},we=({isReferralDrawerOpen:e,closeDrawerHandler:a})=>{const r=_(),n=U();if(R.getSignedInUser()==null)throw Error("Can't access How Referral works without signing in...");const i=()=>{a(!0)},u=f(d=>X(d));return s.jsx(oe,{anchor:"right",open:e,PaperProps:{style:{width:pe.overlayWidth.valuePercentage(n),boxShadow:"none"}},slotProps:{backdrop:{style:{opacity:.75,backgroundColor:r.colors.black,cursor:"pointer"}}},onClose:()=>i(),children:s.jsx(ie,{in:e,direction:"left",children:s.jsx(ge,{onClick:d=>d.stopPropagation(),children:s.jsx($,{onDismissClick:i,rewardsPlan:u.rewardsPlan})})})})},ge=le(de)`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`,P="refer-and-earn-status-update",ke=N(function(e){const a=I(e),r=e.referralViewState.rewardsPlanFetchState,n=ne([a,r]);return{inviteList:a.invitations,uiState:a.uiState,pendingBonus:a.pendingBonus,earnedBonus:a.earnedBonus,pendingReferrals:a.pendingReferrals,fetchState:n.fetchState,rewardsPlan:a.rewardsPlan}},function(e,a){const{navigate:r}=a;return{onColumnSortConfigChanged:(n,i)=>{e(se({sortOrder:i,sortkey:n}))},onInviteClick:()=>{l.trackRewardsPageClicked("invite via email"),r("../refer")},onHowItWorksClick:()=>{l.trackRewardsPageClicked("know more"),r("../how-it-works")},onResendInviteClick:n=>{l.trackRewardsPageClicked("resend invite"),e(te(n))},onBackClick:()=>{r("../",{relative:"path"})},onReloadInvitees:()=>{e(g(!0))},onCopyReferralLink:()=>{l.trackRewardsPageClicked("copy referral link")},onClickRefer:()=>{l.trackRewardsPageClicked("refer")},onEventReceived:n=>{n===P&&e(g(!0,!0))}}})(G(Q));function Pe({isReferralDrawerOpen:e}){const a=M(),r=V(),n=F(),[i,u]=o.useState(!1),[d,x]=o.useState(!1),[D,A]=o.useState(!1),[k,C]=o.useState(!1),p=R.getSignedInUser(),h=f(t=>Z(t)),b=f(t=>I(t)),m=b.fetchState,w=f(t=>t.referralViewState.rewardsPlanFetchState),v=ee([b,w]),{areTenantIdsInSync:c}=J();o.useEffect(()=>{h?.rewardsLastViewedTime==null&&D===!1&&(r(ae()),A(!0))},[]),o.useEffect(()=>{!i&&m==="Not-Started"&&c&&(u(!0),r(g(!0)))},[m,r,c]),o.useEffect(()=>{!d&&w.fetchState==="Not-Started"&&c&&(x(!0),r(re(!0)))},[w,r,c]),o.useEffect(()=>{C(e!=null&&e===!0)},[e]);const[E,j]=o.useState(!1),y=t=>{j(t)},{isAiCfoOpen:L,setIsAiCfoOpen:O}=K(),{isAiCfoAccessEnabled:T,onAskAiCfoClick:B}=ce({isAiCfoOpen:L,setIsAiCfoOpen:O,mobileExploreReferrer:"Rewards"});fe({isDataReady:v===!0});const W={events:p?.userId!=null?[`private-${p.userId}.${P}`]:[],eventCallback:(t,S,H)=>{H.onEventReceived(t)}};return s.jsxs(s.Fragment,{children:[v===!0?s.jsx(Y,{analytics:l,onLoad:t=>(S=>{p!=null&&S.trackPageLoaded(q.Event.rewardsPageViewed)})(t)}):null,s.jsx(ue,{isAppContentDrawerOpen:E,handleDrawerToggle:y}),k===!0?s.jsx(we,{closeDrawerHandler:()=>{C(!1),a("..")},isReferralDrawerOpen:k}):null,s.jsx(ke,{location:n,navigate:a,currentTenant:h,onClickMenuIcon:()=>{y(!0)},isAiCfoAccessEnabled:T,onAskAiCfoClick:B,...W})]})}export{Pe as R};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-DXiLz49w.js";import{s as x,z as w,aI as y,v as E,d as p,f as F,cC as P,c as L}from"./index-BabuXr6y.js";import"./mui-D4wswOer.js";import l from"./NotFoundScreen-DG_ouxiW.js";import{a as f}from"./sentry-C8WyuRaf.js";import{h as T,g as b,j as V,u as A,k as R,n as U,o as u}from"./core-C_FlMzhB.js";import{eM as z,Pd as C,M3 as Y,Pe as k,tn as M,eY as G,Pf as O,tl as q}from"./zeni-epic-state-BP6Uj047.js";import{R as j}from"./ReferralListScreen-D6S_Namj.js";import"./recharts-BjJxsXby.js";import"./analytics-B8BYlogo.js";import"./plaid-CknlBCWN.js";import"./dnd-CTZ8xt4P.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bi_BmPss.js";import"./lexical-BmFHbDfb.js";import"./pdf-BUMfUQyN.js";import"./utils-l6Jt_9tl.js";import"./useAskAiCfoHostNavButtonProps-CM6KSCVu.js";import"./useFetchSuggestedQuestionsWhenReady-CqG_ou6v.js";import"./MobileAppDrawer-Jd5aa9gg.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]="b92ea549-c168-4aa8-acd9-cc9817faf5fa",a._sentryDebugIdIdentifier="sentry-dbid-b92ea549-c168-4aa8-acd9-cc9817faf5fa")}catch{}})();const B=R(function(a,t){const n=C(a);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}},function(a,t){const{navigate:n}=t,i=w.getSignedInUser();return{onDismissClick:()=>{a(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)}a(q())},onUpdateInviteFormLocalData:s=>{a(O({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{i!=null&&p.trackInviteEmailClicked("cancel")}}})(P),H=()=>{const a=T(),[t,n]=f.useState(!1),[i,s]=f.useState(!1),r=b(o=>z(o)),c=V(),v=A(),{useDynamicConfig:g}=x(),d=w.getSignedInUser();if(d==null)throw Error("Can't access invite referral screen without signing in...");const m=b(o=>C(o)),_=d?.firstName!=null?d.firstName:"User",{configValue:h}=g(y.zeniCardsConfig),{configValue:D}=g(y.zeniAccountsConfig),I=Y(D);f.useEffect(()=>{a(k()),r?.rewardsLastViewedTime==null&&i===!1&&(a(M()),s(!0))},[]),f.useEffect(()=>{t||m.fetchState!=="Not-Started"||(n(!0),a(G(!0)))},[m.fetchState,a]);const N=r.company?.companyInfo.companyLegalName??r.companyName;return e.jsxs(e.Fragment,{children:[m.fetchState==="Completed"?e.jsx(E,{analytics:p,onLoad:o=>(S=>S.trackPageLoaded(F.Event.inviteEmailViewed))(o)}):null,e.jsx(B,{navigate:c,location:v,currentTenant:r,companyName:N,userName:_,inviteFormCompayData:m.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:I.maxAnnualPercentageYield})]})};function da(){const{useFeatureGate:a}=x(),{isFeatureEnabled:t}=a(L.isReferralFeatureEnabled);return e.jsxs(U,{children:[e.jsx(u,{path:"/",element:t?e.jsx(j,{}):e.jsx(l,{})}),e.jsx(u,{path:"how-it-works",element:t?e.jsx(j,{isReferralDrawerOpen:!0}):e.jsx(l,{})}),e.jsx(u,{path:"refer/*",element:t?e.jsx(H,{}):e.jsx(l,{})}),e.jsx(u,{path:"*",element:e.jsx(l,{})})]})}export{da as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as f}from"./liveblocks-DXiLz49w.js";import{a as u,b as T,q as A}from"./sentry-C8WyuRaf.js";import{h as D,j as z,g as l,u as M,N as j,k as O}from"./core-C_FlMzhB.js";import{u as F,z as s,h as P,d as E,D as N,e as _,f as B,C as V,g as $,i as q,j as v}from"./index-BabuXr6y.js";import{eM as J,Id as Q,Ie as R,eN as W,fh as H,Ik as G,fF as K,cR as X,Il as y,Im as Y,In as Z,bQ as b}from"./zeni-epic-state-BP6Uj047.js";import"./mui-D4wswOer.js";import{u as ee}from"./useDeviceId-DFIMsX1U.js";import{f as te}from"./analyticsHelper-D2Lkt_0_.js";import{t as ne}from"./getLocaleForTenant-BZmydyUi.js";import"./recharts-BjJxsXby.js";import"./analytics-B8BYlogo.js";import"./plaid-CknlBCWN.js";import"./dnd-CTZ8xt4P.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bi_BmPss.js";import"./lexical-BmFHbDfb.js";import"./pdf-BUMfUQyN.js";import"./utils-l6Jt_9tl.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]="f2fb9bb5-074a-44d8-9fa9-fe9df790a530",t._sentryDebugIdIdentifier="sentry-dbid-f2fb9bb5-074a-44d8-9fa9-fe9df790a530")}catch{}})();const ie=O(function(t,i){const d=t.tenantState.fetchState,g=t.tenantState.sendEmailMagicLinkFetchState,{magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:c}=i;return{googleClientId:v.googleClientId,microsoftClientId:v.microsoftClientId,signInError:t.tenantState.error?.error,fetchState:d,sendMagicLinkStatus:g,magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:c}},function(t,i){const{location:d,navigate:g}=i;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,a)=>{A({message:`OAuth error from provider ${a} with error ${n}`,level:"error",tags:{authProvider:a,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,a)=>{const c=a==="google"?window.location.origin:window.location.origin+window.location.pathname;t(Z({authCode:n,oauthProvider:a,appType:"web",redirectUri:b(c),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();u.useLayoutEffect(()=>{g()},[g]);const a=ee(),c=l(e=>e.tenantState.magicLinkCodeVerifier),{sendEmailMagicLinkFetchState:h,accountLocked:C,accountUnlockTime:k}=l(e=>e.tenantState),p=l(e=>e.tenantState.fetchState),L=l(e=>e.tenantState.activeTenantFetchState.fetchState),I=l(e=>e.tenantState.signInState),o=l(e=>e.tenantState.loggedInUser),r=l(e=>J(e)),S=l(e=>Q(e)),m=M(),w=P().mode,U=m.state?.magicLinkExpired,x=m.state?.magicLinkAlreadyUsed;if(u.useEffect(()=>{h.fetchState==="Completed"&&c!=null&&(E.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(c))},[h.fetchState,c]),u.useEffect(()=>{t(void 0)},[]),u.useEffect(()=>{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 f.jsx(j,{to:e,state:{...m.state,origin:""}})}return f.jsxs(f.Fragment,{children:[f.jsx(ae,{magicLinkExpired:!!U,magicLinkAlreadyUsed:!!x,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),C===!0&&k!=null?f.jsx(V,{onClose:()=>i(y()),unlockDate:k}):null]})}export{ve as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-DXiLz49w.js";import{a as n}from"./sentry-C8WyuRaf.js";import{h as u,u as m,j as p,N as g}from"./core-C_FlMzhB.js";import{z as c,B as b,t as y,d,f as h}from"./index-BabuXr6y.js";import{IA as I,Ii as x,IB as j}from"./zeni-epic-state-BP6Uj047.js";import{n as w}from"./mui-D4wswOer.js";import"./recharts-BjJxsXby.js";import"./analytics-B8BYlogo.js";import"./plaid-CknlBCWN.js";import"./dnd-CTZ8xt4P.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bi_BmPss.js";import"./lexical-BmFHbDfb.js";import"./pdf-BUMfUQyN.js";import"./utils-l6Jt_9tl.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]="5b8c3abb-e523-4cc5-a8d1-a9a115fd112e",e._sentryDebugIdIdentifier="sentry-dbid-5b8c3abb-e523-4cc5-a8d1-a9a115fd112e")}catch{}})();function q(){const e=u(),t=m(),a=p(),i=n.useRef(!1),f=c.isSignedIn(),r=t.state?.message==="logout",o=r||f;return n.useEffect(()=>{o&&!i.current&&(i.current=!0,setTimeout(()=>{try{c.clearAll(),e(I()),e(x(!1)),j(),y.reset(),d.trackLogout(h.Event.logoutSuccess),d.resetUserIdentity()}catch(l){console.error("Error during sign out:",l)}finally{r||a("/signin/auth",{replace:!0})}},0))},[o,r]),o?s.jsx(v,{children:s.jsx(b,{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{q as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-DXiLz49w.js";import z from"./NotFoundScreen-DG_ouxiW.js";import{a as m}from"./sentry-C8WyuRaf.js";import{j as A,h as M,u as $,l as q,g as k,N as V,k as _,n as O,o as u}from"./core-C_FlMzhB.js";import{E as R,z as w,r as C,v as Q,d as T,f as W,cD as H,j as Z,ao as J,q as K}from"./index-BabuXr6y.js";import{eM as b,Pg as G,EL as v,Ez as X,Fb as Y,Ph as P,Pi as aa,Ev as ea,Es as ta,pA as sa,po as na,jW as oa,EF as ia,Pj as ra,EC as la,EQ as ca,EP as da}from"./zeni-epic-state-BP6Uj047.js";import{n as ma}from"./mui-D4wswOer.js";import{u as pa}from"./useInitialThreadRequest-PIljdErr.js";import{M as ua}from"./MobileAppDrawer-Jd5aa9gg.js";import fa from"./TaskListScreen-CR9B7ON8.js";import"./recharts-BjJxsXby.js";import"./analytics-B8BYlogo.js";import"./plaid-CknlBCWN.js";import"./dnd-CTZ8xt4P.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bi_BmPss.js";import"./lexical-BmFHbDfb.js";import"./pdf-BUMfUQyN.js";import"./utils-l6Jt_9tl.js";import"./useAskAiCfoHostNavButtonProps-CM6KSCVu.js";import"./useFetchSuggestedQuestionsWhenReady-CqG_ou6v.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]="536d80bd-1aa2-4d58-81c1-a96ff49fa3e9",a._sentryDebugIdIdentifier="sentry-dbid-536d80bd-1aa2-4d58-81c1-a96ff49fa3e9")}catch{}})();const ka=_(function(a,t){const{location:n,taskGroupId:l}=t,d=P(a,t.taskId),c=b(a),i=l!=null?aa(a.taskGroupState,l):void 0,p=w.getSignedInUser(),e=c.tenantId,r={userId:p?.userId??"",sessionId:p?.zeniSessionId??"",tenantId:e??""},f=G(a);return{taskDetailSelectorView:d,authParams:r,isNewClicked:n.state?.message==="comingFromTaskListPage",filesEndPoint:J.fileMicroServiceBaseUrl,companyName:t.currentTenant.companyName,companyId:t.currentTenant.companyId,currentUrl:`${Z.appUrl}${t.location.pathname}`,tagListView:f,taskGroupName:l!=null&&i!=null&&i.isDefault===!1?i.name:void 0}},function(a,t){const{taskId:n,navigate:l,currentTenant:d,location:c,taskGroupId:i}=t,{tenantEmailDomain:p}=d;return{onSaveChangesToLocalStore:e=>{a(da({taskDetailLocalData:e,taskId:n}))},onSaveDetailClick:()=>{a(ca(n,i))},onArchiveTaskClick:()=>{t.taskId!=null&&a(la(t.taskId))},onDismissClick:()=>{if(c.state?.message==="triggerBackClick"){const e=K(c.state?.pathnameStackToGoBack),r=e.poppedPathname??"../../dashboard";l(r,{state:{pathnameStackToGoBack:e.newStack}})}else{const e=B(p),r=C(c.state?.pathnameStackToGoBack,c.pathname);l(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=M(),n=$(),l=R(),{taskId:d,taskGroupId:c}=q(),i=k(o=>b(o)),p=pa(i?.companyId),[e,r]=m.useState(!1),[f,F]=m.useState(!1),[S,L]=m.useState(!1),[j,N]=m.useState(!1),x=k(o=>G(o)),y=k(o=>o.taskGroupViewState.fetchState);m.useEffect(()=>{f||(F(!0),t(v(!1,d)))},[f,t]),m.useEffect(()=>{S||x.fetchState==="Completed"||(L(!0),t(X()))},[S,t,x.fetchState]),m.useEffect(()=>{j||y==="Completed"||(N(!0),t(Y()))},[j,t,y]);const D=k(o=>P(o,d)),g=D.fetchState,E=w.getSignedInUser();if(E==null)throw Error("Can't access task detail page without signing in...");if(g==="Error"&&D.error?.code===400){const{tenantEmailDomain:o}=i,h=B(o),U=C(n.state?.pathnameStackToGoBack,n.pathname);return s.jsx(V,{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(ka,{analytics:T,currentTenant:i,handleZeniLogoClick:()=>{l.toggle()},initialOpenThreadRequest:p,location:n,loggedInUser:E,navigate:a,taskGroupId:c,taskId:d,taskDetailFetchState:g})]})]})}const ga=ma.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(O,{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(fa,{})}),s.jsx(u,{path:"/:taskId",element:s.jsx(I,{})}),s.jsx(u,{path:"*",element:s.jsx(z,{})})]})}export{Aa as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-DXiLz49w.js";import i from"./NotFoundScreen-DG_ouxiW.js";import{T as r}from"./TransactionDetailScreen-DZUEdFp2.js";import"./sentry-C8WyuRaf.js";import{n as d,o as e}from"./core-C_FlMzhB.js";import"./zeni-epic-state-BP6Uj047.js";import"./recharts-BjJxsXby.js";import"./index-BabuXr6y.js";import"./mui-D4wswOer.js";import"./analytics-B8BYlogo.js";import"./plaid-CknlBCWN.js";import"./dnd-CTZ8xt4P.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bi_BmPss.js";import"./lexical-BmFHbDfb.js";import"./pdf-BUMfUQyN.js";import"./utils-l6Jt_9tl.js";import"./useAskAiCfoHostNavButtonProps-CM6KSCVu.js";import"./useFetchSuggestedQuestionsWhenReady-CqG_ou6v.js";import"./decodeURIComponentSafe-Bq-dYOxp.js";import"./routePaths-Du0f4vF0.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,37 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-DXiLz49w.js";import{j as B,u as M,h as U,l as O,g as f,N as L,k as N,n as Ce,o as b}from"./core-C_FlMzhB.js";import{ci as V,eM as D,Mx as P,D2 as ae,fb as K,CM as ne,Mz as we,D5 as Te,Mv as be,Mw as se,MN as ke,Bc as je,s1 as Ae,MB as Ee,Dg as ve,My as re,cL as W,w7 as oe,eQ as De,eS as Fe,NI as Le,NJ as Be,CN as Me,NK as Ue,CO as Pe,CX as Re,bu as Oe,bC as Ne,ct as Ve,bD as _e,cN as ze,fa as $e,br as Ge,If as He,ch as Ke}from"./zeni-epic-state-BP6Uj047.js";import{S as _,al as We,z as A,v as z,d as k,b_ as Ze,b$ as qe,c0 as H,K as Z,h as Je,J as Qe,I as Xe,s as ie,c as v,A as Ye,B as et,c1 as tt,ao as q,r as at,c2 as nt,q as J,c3 as st,w as X,c4 as rt,a4 as ot}from"./index-BabuXr6y.js";import{D as it,n as R,S as ct}from"./mui-D4wswOer.js";import lt from"./NotFoundScreen-DG_ouxiW.js";import{S as Y}from"./SetupPagesScreen-BatnW9Lm.js";import{a as d}from"./sentry-C8WyuRaf.js";import{u as ut}from"./useAskAiCfoHostNavButtonProps-CM6KSCVu.js";import{c as dt}from"./useFetchSuggestedQuestionsWhenReady-CqG_ou6v.js";import{M as ce}from"./MobileAppDrawer-Jd5aa9gg.js";import{F as pt}from"./FeaturePreviewScreen-3Jf-sujQ.js";import{a as ee}from"./analyticsHelper-D2Lkt_0_.js";import"./recharts-BjJxsXby.js";import"./analytics-B8BYlogo.js";import"./plaid-CknlBCWN.js";import"./dnd-CTZ8xt4P.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bi_BmPss.js";import"./lexical-BmFHbDfb.js";import"./pdf-BUMfUQyN.js";import"./utils-l6Jt_9tl.js";import"./routePaths-Du0f4vF0.js";import"./BusinessVerificationPageScreen-B2ABlcef.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]="35babbbf-0103-4adb-a697-bbda82a21254",t._sentryDebugIdIdentifier="sentry-dbid-35babbbf-0103-4adb-a697-bbda82a21254")}catch{}})();const mt=N(function(t,a){const{companyId:n}=a;return{treasurySetupView:P(t,n),analytics:k}},function(t,a){const{navigate:n,analytics:o,treasurySetupView:p}=a;return{onBackClick:()=>{n("../")},onNextClick:()=>{const r=p.fundAllocationLocalData;o.trackTreasuryPortfolioConfirm(r.riskScore,ee(r)),t(Te(!0))},onUpdateFundAllocation:r=>{o.trackTreasuryAllocationAction("update",ee(r)),t(we(r))}}})(Ze);function ft(){const t=B(),a=M(),n=U(),{tenantEmailDomain:o}=O(),p=_(),r=f(T=>T.treasurySetupViewState.portfolioAllocationUpdateStatus?.fetchState),m=We(r),s=V(p?.loggedInUserRoleMap),[c,i]=d.useState(!1),[y,w]=d.useState(!1),[u,l]=d.useState(!1),g=f(T=>D(T)),h=A.getSignedInUserTenant(o)?.companyId??g.companyId,I=A.getSignedInUser(),S=f(T=>P(T,h)),C=f(T=>T.treasurySetupViewState.fetchState),x=f(T=>T.treasurySetupViewState.currentAllocation.fetchStatus?.fetchState),F=f(T=>T.treasurySetupViewState.treasuryFundsDetails?.fetchStatus?.fetchState);if(I==null)throw Error("Can't access treasury portfolio allocation page without signing in...");if(d.useEffect(()=>{c||C!=="Not-Started"||h==null||(i(!0),n(ae(h,!0,!1)))},[c,C,h,n]),d.useEffect(()=>{u||F!=="Not-Started"||h==null||(l(!0),n(K()))},[u,F,h,n]),d.useEffect(()=>{y||x!=="Not-Started"||h==null||(w(!0),n(ne()))},[y,x,h,n]),d.useEffect(()=>{m==="In-Progress"&&r==="Completed"&&t("../")},[m,r,t]),g.companyTreasuryInfo?.info?.isTreasuryTOSAccepted===!1)return e.jsx(L,{to:"../promo"});const E=g.companyTreasuryInfo?.info?.isTreasuryTOSAccepted!==!0||C!=="Completed";return e.jsxs(e.Fragment,{children:[!E&&e.jsx(z,{analytics:k,onLoad:()=>{}}),e.jsx(mt,{navigate:t,location:a,companyId:h,isEditMode:!0,isLoading:E,isReadOnly:!s,treasurySetupView:S,analytics:k})]})}const yt=N(function(t,a){const n=a.currentTenant?.companyId;return{plaidConnectionDetails:ke(t,n,"zeni_treasury","treasury_setup").plaidConnectionDetails,treasurySetupView:P(t,n)}},function(t,a){const{navigate:n,transferDetails:o,treasurySetupView:p}=a,r=o.treasuryTransferMoneyLocalData,m=p.fundAllocationLocalData;return{onCancelClick:()=>{H(a.analytics,"cancel",r,m,"Transfer"),t(se()),n("../")},onTransferClick:()=>{H(a.analytics,"confirm",r,m,"Transfer"),t(ve())},onSaveChangesToLocalStore:s=>{t(Ee(s))},onFetchLinkTokenClick:s=>{t(Ae("treasury_setup",s))},onEstablishConnectionClick:s=>{t(je(s,a.currentTenant?.companyId,"treasury_setup","zeni_treasury"))}}})(qe),gt=({isFirstTransfer:t})=>{const a=B(),{tenantEmailDomain:n}=O(),o=U(),[p,r]=d.useState(!1),[m,s]=d.useState(!1),[c,i]=d.useState(!1),[y,w]=d.useState(!1),u=f(x=>x.treasurySetupViewState.fetchState),l=f(x=>x.treasurySetupViewState.treasuryFundsDetails?.fetchStatus?.fetchState),g=f(x=>x.treasurySetupViewState.currentAllocation.fetchStatus?.fetchState),h=f(x=>D(x)),I=A.getSignedInUserTenant(n)?.companyId??h.companyId,S=f(x=>be(x)),C=f(x=>P(x,I));if(A.getSignedInUser()==null)throw Error("Can't access treasury transfer page without signing in...");return d.useEffect(()=>{m||u!=="Not-Started"||I==null||(s(!0),o(ae(I,!0,!1)))},[m,u,I,o]),d.useEffect(()=>{c||l!=="Not-Started"||I==null||(i(!0),o(K()))},[c,l,I,o]),d.useEffect(()=>{y||g!=="Not-Started"||I==null||(w(!0),o(ne()))},[y,g,I,o]),e.jsxs(e.Fragment,{children:[e.jsx(z,{analytics:k,onLoad:()=>{}}),e.jsx(yt,{analytics:k,navigate:a,transferDetails:S,onAnotherTransferClick:()=>{r(!1),o(se())},currentTenant:h,treasurySetupView:C,showReviewContent:p,maxInsuredAmount:5e5,onReviewClick:()=>{H(k,"review",S.treasuryTransferMoneyLocalData,C.fundAllocationLocalData,"Transfer"),r(!0)},isFirstTransfer:t,setShowReviewContent:r,onBackClick:()=>{}})]})},ht=R.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: ${t=>t.theme.colors.grey4};
|
|
9
|
-
`,St={overlayWidth:new Ye(100,100,48)},xt=N(function(t,a){const n=re(t),{companyId:o}=a;return{treasuryDetail:n,treasurySetupView:P(t,o),downloadEndPoint:`${q.bankingMicroServiceBaseUrl}/1.0/treasury-account/statements?query={"statement_type":"tax_statement"}`}},function(t,a){const{navigate:n,currentTenant:o,location:p,handleDrawerToggle:r,analytics:m}=a,{tenantEmailDomain:s}=o;return{onSettingsClick:()=>{m.trackAccountsListPageClicked("Settings Icon"),n("setup")},onReloadTransactions:()=>{t(oe(!0))},handleTreasuryOptionSelection:c=>{let i="page-not-found";c==="editPortfolio"?i=It(s):c==="statements"?i=Ct(s):c==="taxLetter"?i=wt(s):c==="settings"&&(i=Tt(s));const y=at(p.state?.pathnameStackToGoBack,p.pathname);n(i,{state:{pathnameStackToGoBack:y}})},onColumnSortConfigChanged:(c,i)=>{t(Le({uiState:{sortKey:c,sortOrder:i}}))},onTransferClick:()=>{n("./transfer")},onBackClick:()=>{n("../../")},onClickMenuIcon:()=>{r(!0)},onAutoTransferClick:()=>{n("../../checking/auto-transfer")}}})(tt);function G({isTransferDrawerOpen:t,isEditPortfolioDrawerOpen:a}){const n=M(),o=B(),p=U(),r=Z(),m=Je(),s=f(j=>D(j)),{tenantEmailDomain:c}=O(),i=s.companyId??A.getSignedInUserTenant(c)?.companyId,[y,w]=d.useState(!1),u=f(j=>re(j)),l=u.fetchState,g=u.accountSummary?.totalBalance?.amount,h=f(j=>j.treasurySetupViewState.treasuryFundsDetails?.fetchStatus),I=s.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",S=_(),C=!!s.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,x=V(S?.loggedInUserRoleMap),F=W(S?.loggedInUserRoleMap),{areTenantIdsInSync:E}=Qe();d.useEffect(()=>{l==="Not-Started"&&!y&&E&&(w(!0),p(oe(!0)))},[y,p,l,E]),d.useEffect(()=>{u.transactionsFetchState.fetchState==="Completed"&&u.transactions.length===0&&!n.pathname.includes("transfer")&&x&&o("./transfer")},[u.transactionsFetchState.fetchState,u.transactions.length]);const T=()=>{o("..")},[le,ue]=d.useState(!1),Q=j=>{ue(j)},{isAiCfoOpen:de,setIsAiCfoOpen:pe}=Xe(),{isAiCfoAccessEnabled:me,onAskAiCfoClick:fe}=ut({isAiCfoOpen:de,setIsAiCfoOpen:pe,mobileExploreReferrer:"Treasury"});dt({isDataReady:l==="Completed"});const{useFeatureGate:$}=ie(),{isFeatureEnabled:ye}=$(v.isDebitCardFeatureEnabled),{isFeatureEnabled:ge}=$(v.isAutoTransferRuleEnabled),{isFeatureEnabled:he}=$(v.isTreasuryCommentingEnabled),Se=De(s),xe=Fe(ye,s);if(Se===!0&&xe!==!0)return e.jsx(pt,{});if(I){const j=h?.fetchState!=="Completed"||u.accountSummaryFetchState.fetchState!=="Completed";return e.jsxs(e.Fragment,{children:[u.accountSummaryFetchState.fetchState==="Completed"&&h?.fetchState==="Completed"&&t===!1&&a===!1?e.jsx(z,{analytics:k,onLoad:()=>{}}):null,e.jsx(it,{onClose:T,anchor:"right",open:a||t,transitionDuration:250,PaperProps:{style:{width:St.overlayWidth.valuePercentage(r),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:m.colors.black,opacity:.75,cursor:"pointer"}}},children:e.jsxs(bt,{onClick:Ie=>Ie.stopPropagation(),children:[t===!0?e.jsx(gt,{isFirstTransfer:u.transactions.length===0||g===0}):null,a===!0?e.jsx(ft,{}):null]})}),e.jsxs(ht,{windowSize:r,children:[e.jsx(ce,{isAppContentDrawerOpen:le,handleDrawerToggle:Q}),e.jsx(xt,{treasuryDetailsView:u,isAutoTransferRuleEnabled:ge,navigate:o,currentTenant:s,location:n,companyId:i,analytics:k,isTreasuryCommentingEnabled:he,handleDrawerToggle:Q,isLoading:j,isAiCfoAccessEnabled:me,onAskAiCfoClick:fe})]})]})}return C&&x?e.jsx(L,{to:"../setup"}):s.companyTreasuryInfo?.info&&!C&&F?e.jsx(L,{to:"../promo",state:n.state}):e.jsx(et,{fetchState:"In-Progress",style:{backgroundColor:m.colors.grey5}})}const It=t=>`/${t}/treasury/edit-portfolio`,Ct=t=>`/${t}/treasury/statements`,wt=t=>`/${t}/treasury/tax-letter`,Tt=t=>`/${t}/treasury/setup`,bt=R(ct)`
|
|
10
|
-
display: flex;
|
|
11
|
-
min-height: 100%;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
`,kt=R.div`
|
|
14
|
-
display: flex;
|
|
15
|
-
height: 100vh;
|
|
16
|
-
width: 100%;
|
|
17
|
-
flex: 1 1 auto;
|
|
18
|
-
flex-direction: column;
|
|
19
|
-
align-items: center;
|
|
20
|
-
background-color: ${t=>t.theme.colors.grey4};
|
|
21
|
-
`;function jt(){const t=B(),a=U(),n=Z(),o=M(),p=`${q.bankingMicroServiceBaseUrl}/1.0/treasury-account`,[r,m]=d.useState(!1),s=f(l=>Be(l));d.useEffect(()=>{r||s.fetchState!=="Not-Started"||(m(!0),a(Me(!1)))},[r,s.fetchState,a]);const c=A.getSignedInUser(),i=f(l=>D(l)),y={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:i.tenantId??""},w=i.company?.companyInfo.companyLegalName??i.companyName;if(c==null)throw Error("Can't access statements page without signing in...");const u=s.fetchState!=="Completed";return e.jsx(kt,{windowSize:n,children:e.jsx(nt,{currentTenantCompanyName:w,statementListView:s,isLoading:u,onBackClick:()=>{const l=J(o.state?.pathnameStackToGoBack),g=l.poppedPathname??"..";t(g,{state:{pathnameStackToGoBack:l.newStack}})},authParams:y,downloadEndPoint:p})})}const At=R.div`
|
|
22
|
-
display: flex;
|
|
23
|
-
height: 100vh;
|
|
24
|
-
width: 100%;
|
|
25
|
-
flex: 1 1 auto;
|
|
26
|
-
flex-direction: column;
|
|
27
|
-
align-items: center;
|
|
28
|
-
background-color: ${t=>t.theme.colors.grey4};
|
|
29
|
-
`;function Et(){const t=B(),a=Z(),n=M(),o=U(),p=`${q.bankingMicroServiceBaseUrl}/1.0/treasury-account`,[r,m]=d.useState(!1),s=f(l=>Ue(l));d.useEffect(()=>{r||s.fetchState!=="Not-Started"||(m(!0),o(Pe(!1)))},[r,s.fetchState,o]);const c=A.getSignedInUser(),i=f(l=>D(l)),y={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:i.tenantId??""},w=i.company?.companyInfo.companyLegalName??i.companyName;if(c==null)throw Error("Can't access tax letter page without signing in...");const u=s.fetchState!=="Completed";return e.jsx(At,{windowSize:a,children:e.jsx(st,{currentTenantCompanyName:w,taxLetterListView:s,isLoading:u,onBackClick:()=>{const l=J(n.state?.pathnameStackToGoBack),g=l.poppedPathname??"..";t(g,{state:{pathnameStackToGoBack:l.newStack}})},authParams:y,downloadEndPoint:p})})}const vt=N(function(t,a){const{companyId:n}=a,o=P(t,n);return{treasurySetupView:o,isSetupComplete:o.companyTreasuryInfo?.businessVerificationStatus?.code==="verified",videoUrl:"https://www.youtube.com/watch?v=sqvJWKCMZgk",meetingUrl:"https://meetings.hubspot.com/yoshi-araki/treasury-product-schedule-demo-link?embed=true"}},function(t,a){const{navigate:n,companyId:o}=a;return{onSetupButtonClick:()=>{t(Re(o))},onBackClick:()=>{n("../..",{relative:"path"})},onTreasurySetupSuccess:p=>{n(p?"..":"../setup",{relative:"path"})}}})(rt),Dt=()=>{const t=B(),a=M(),n=U(),{tenantEmailDomain:o}=O(),[p,r]=d.useState(!1),m=f(S=>D(S)),[s,c]=d.useState(!1),i=f(S=>S.treasurySetupViewState.treasuryFundsDetails?.fetchStatus);d.useEffect(()=>{s||i?.fetchState!=="Not-Started"||y==null||(c(!0),n(K()))},[i,n]);const y=A.getSignedInUserTenant(o)?.companyId??m.companyId,w=A.getSignedInUser(),u=!!m.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,l=S=>{r(S)};if(w==null)throw Error("Can't access treasury promo page without signing in...");const g=_(),h=V(g?.loggedInUserRoleMap),I=W(g?.loggedInUserRoleMap);if(u&&h)return e.jsx(L,{to:"../../treasury/setup"});if(m.company?.companyTreasuryInfo&&(!u&&h||I)){if(a.state?.message==="activation"){const S=J(a.state?.pathnameStackToGoBack);t(a.pathname,{state:{...a.state,message:void 0,pathnameStackToGoBack:S.newStack}})}return i?.fetchState!=="Completed"?e.jsx(te,{children:e.jsx(X,{size:"ExtraLarge",start:!0})}):e.jsxs(e.Fragment,{children:[e.jsx(z,{analytics:k,onLoad:S=>(C=>C.trackTreasuryPromoView("Treasury Promo Page"))(S)}),e.jsx(ce,{isAppContentDrawerOpen:p,handleDrawerToggle:l}),e.jsx(vt,{analytics:k,navigate:t,companyId:y,onClickMenuIcon:()=>{l(!0)}})]})}return e.jsx(te,{children:e.jsx(X,{size:"ExtraLarge",start:!0})})},te=R.div`
|
|
30
|
-
display: flex;
|
|
31
|
-
width: 100%;
|
|
32
|
-
height: 100%;
|
|
33
|
-
flex-direction: row;
|
|
34
|
-
justify-content: center;
|
|
35
|
-
align-items: center;
|
|
36
|
-
background-color: ${t=>t.theme.colors.grey5};
|
|
37
|
-
`;function ta(){const t=M(),a=f(E=>D(E)),{useFeatureGate:n}=ie(),{isFeatureEnabled:o}=n(v.isTreasuryEnabled),p=!!a.company?.companyTreasuryInfo?.isTreasuryTOSAccepted,r=_(),m=W(r?.loggedInUserRoleMap),s=a?.userRole!=null&&Oe(a?.userRole),c=(a?.company==null||a.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!s)&&Ne(r?.loggedInUserRoleMap),i=Ve(r?.loggedInUserRoleMap),y=(a?.company==null||a.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!s)&&_e(r?.loggedInUserRoleMap),{isFeatureEnabled:w}=n(v.isDepositAccountsFeatureEnabled),u=w&&!s&&ze(r?.loggedInUserRoleMap),l=a.company!=null&&$e(a.company),g=o&&l===!0&&!s&&V(r?.loggedInUserRoleMap),{isFeatureEnabled:h}=n(v.isChargeCardFeatureEnabled),{isFeatureEnabled:I}=n(v.isDebitCardFeatureEnabled),S=ot(a,h,I)&&!s&&Ge(r?.loggedInUserRoleMap),C=He(r?.loggedInUserRoleMap),x=Ke(r?.loggedInUserRoleMap),F=a.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified";return e.jsxs(Ce,{children:[x?null:e.jsx(b,{path:"setup",element:e.jsx(Y,{isBillPayAdminLevelAccess:c,isReimbursementAdminLevelAccess:y,isZeniAccountAdminLevelAccess:u,isChargeCardAdminLevelAccess:S,isTreasuryAdminLevelAccess:g,isUserHasOnlyCardAccess:C,isUserHasOnlyBillPayAccess:i,productType:"zeni_treasury",type:"setup"})}),x?null:e.jsx(b,{path:"verification",element:e.jsx(Y,{isBillPayAdminLevelAccess:c,isUserHasOnlyBillPayAccess:i,isReimbursementAdminLevelAccess:y,isZeniAccountAdminLevelAccess:u,isChargeCardAdminLevelAccess:S,isTreasuryAdminLevelAccess:g,isUserHasOnlyCardAccess:C,productType:"zeni_treasury",type:"verification"})}),e.jsx(b,{path:"promo",element:e.jsx(Dt,{})}),e.jsx(b,{path:"statements",element:e.jsx(jt,{})}),e.jsx(b,{path:"tax-letter",element:e.jsx(Et,{})}),F?e.jsxs(e.Fragment,{children:[e.jsx(b,{path:"/",element:e.jsx(G,{isTransferDrawerOpen:!1,isEditPortfolioDrawerOpen:!1})}),g?e.jsxs(e.Fragment,{children:[e.jsx(b,{path:"edit-portfolio",element:e.jsx(G,{isEditPortfolioDrawerOpen:!0,isTransferDrawerOpen:!1})}),e.jsx(b,{path:"transfer",element:e.jsx(G,{isTransferDrawerOpen:!0,isEditPortfolioDrawerOpen:!1})})]}):null,e.jsx(b,{path:"*",element:e.jsx(lt,{})})]}):p&&g?e.jsx(b,{path:"*",element:e.jsx(L,{to:"../setup"})}):a.company?.companyZeniAccountInfo&&m?e.jsx(b,{path:"*",element:e.jsx(L,{to:"../promo",state:t.state})}):e.jsx(b,{path:"*",element:null})]})}export{ta as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./liveblocks-DXiLz49w.js";import{a as f}from"./sentry-C8WyuRaf.js";import{q as u,h,g as y,N as I}from"./core-C_FlMzhB.js";import{Iz as b,eN as w,yU as x}from"./zeni-epic-state-BP6Uj047.js";import{z as l,B as j,F as S,G as D}from"./index-BabuXr6y.js";import{n as c}from"./mui-D4wswOer.js";import"./recharts-BjJxsXby.js";import"./analytics-B8BYlogo.js";import"./plaid-CknlBCWN.js";import"./dnd-CTZ8xt4P.js";import"./stripe-DMRn4zHo.js";import"./lottie-Bi_BmPss.js";import"./lexical-BmFHbDfb.js";import"./pdf-BUMfUQyN.js";import"./utils-l6Jt_9tl.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]="6be182de-458e-4432-9779-ccf73d5f8559",e._sentryDebugIdIdentifier="sentry-dbid-6be182de-458e-4432-9779-ccf73d5f8559")}catch{}})();const W=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",g=e.get("profileId")??"",[n,p]=f.useState(!1),a=h(),i=y(m=>b(m)),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||(p(!0),a(x(t,g,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=c.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
|
-
`,_=c(D.LargeRegular)`
|
|
10
|
-
display: flex;
|
|
11
|
-
color: ${S.important};
|
|
12
|
-
`;export{W as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as c}from"./liveblocks-DXiLz49w.js";import{a as u}from"./sentry-C8WyuRaf.js";import{j as x,h as B,u as $,l as j,g as p}from"./core-C_FlMzhB.js";import{Hz as s,Hy as v,NG as z,eM as C,NH as N}from"./zeni-epic-state-BP6Uj047.js";import{K as D,ao as g,h as E,z as L,B as P,bZ as T,q as G}from"./index-BabuXr6y.js";import{n as H}from"./mui-D4wswOer.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]="e3ad124a-e487-4105-9b69-25894ff001b7",e._sentryDebugIdIdentifier="sentry-dbid-e3ad124a-e487-4105-9b69-25894ff001b7")}catch{}})();const _=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
|
-
`;function V(){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??"")),b=()=>{const t=G(l.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},r=L.getSignedInUser(),i=p(t=>C(t)),I={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:i.tenantId??""},w=N(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(P,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}}):c.jsx(_,{windowSize:d,children:c.jsx(T,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:b,authParams:I,downloadEndPoint:f})})}export{V as Z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{m as n}from"./index-BabuXr6y.js";import"./mui-D4wswOer.js";import"./sentry-C8WyuRaf.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 c}from"./sentry-C8WyuRaf.js";import{h as i,s as d}from"./core-C_FlMzhB.js";import{s as y,c as h,a as g,Z as m,J as C}from"./index-BabuXr6y.js";import"./mui-D4wswOer.js";import{eJ as l,hA as p}from"./zeni-epic-state-BP6Uj047.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]="29ada1a3-b2a5-4642-81ae-71690016c7f9",e._sentryDebugIdIdentifier="sentry-dbid-29ada1a3-b2a5-4642-81ae-71690016c7f9")}catch{}})();function x(){const{useFeatureGate:e}=y(),{isFeatureEnabled:t}=e(h.isAiCfoNavButtonEnabled),n=g();return t&&n}function b(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=c.useRef(null);c.useEffect(()=>{const r=o.current===!1&&n===!0;if(o.current=n,n&&t!=null&&t.length!==0)for(const u of t){const f=l(s.getState(),u)?.fetchState;b(f,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=c.useRef(null);c.useEffect(()=>{const u=r.current===!1&&a===!0;if(r.current=a,n==null||!a)return;const f=l(o.getState(),n)?.fetchState;b(f,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};
|