@zeniai/web-app-ui 5.0.6-qa → 5.0.7-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-OTib8mgj.js +1 -0
- package/dist/assets/AddressScreen-BG3byVa4.js +9 -0
- package/dist/assets/{AiCfoScreen-QOZQxpHY.js → AiCfoScreen-Bs4dotyZ.js} +3 -3
- package/dist/assets/BillPayApprovalRoutes-BAVXLwy0.js +1 -0
- package/dist/assets/{BillPayRoutes-Cj7uxXrU.js → BillPayRoutes-CSYQU0Zj.js} +10 -10
- package/dist/assets/{BusinessVerificationPageScreen-8Nhv26eD.js → BusinessVerificationPageScreen-XLAagbE1.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-phuYNML2.js → ChargeCardRoutes-DOffdLe0.js} +1 -1
- package/dist/assets/CompanyPassportScreen-BfpIrB4f.js +1 -0
- package/dist/assets/ConnectionAuthScreen-W8FtnYT4.js +11 -0
- package/dist/assets/CustomerOnboardingAuthScreen-CSgO_q9B.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-BLwESYHN.js → CustomerOnboardingRoutes-BwLNXu73.js} +5 -5
- package/dist/assets/{DashboardRoutes-CMSkMTty.js → DashboardRoutes-SSoNO6Vm.js} +1 -1
- package/dist/assets/{DefaultTenantHome-BIW-2Fan.js → DefaultTenantHome-CQIDGSH9.js} +1 -1
- package/dist/assets/DomesticWireDetailScreen-DqwewpNJ.js +18 -0
- package/dist/assets/DrawerScreen-MCWu-b9d.js +1 -0
- package/dist/assets/EntityDetailRoutes-BWUAYWEJ.js +1 -0
- package/dist/assets/{ExpenseAutomationRoutes-DJon2cl1.js → ExpenseAutomationRoutes-CbPl7htr.js} +3 -3
- package/dist/assets/FeaturePreviewScreen-e6Ei2TQP.js +1 -0
- package/dist/assets/{MagicLinkRoutes-CLZEl_1Q.js → MagicLinkRoutes-BEyO4w65.js} +5 -5
- package/dist/assets/MagicLinkSignInScreen-BzJoblUZ.js +12 -0
- package/dist/assets/{MobileAppDrawer-DO1GrqQX.js → MobileAppDrawer-XemkX8uu.js} +1 -1
- package/dist/assets/NotFoundScreen-B0rK0orf.js +1 -0
- package/dist/assets/{NotificationRoutes-D0mtSoZ8.js → NotificationRoutes-D_Ku5KIw.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-CgOh6_0B.js → PandLWithForecastRoutes-DehHga8X.js} +1 -1
- package/dist/assets/{PeopleRoutes-BH9Uxwgj.js → PeopleRoutes-CEvybFgV.js} +3 -3
- package/dist/assets/PerformanceRoutes-BkwXpXL3.js +1 -0
- package/dist/assets/{Preview-BtYnn859.js → Preview-MjcBAXnd.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-Dz0hGueY.js → QBOConnectionScreen-CPwnm8HA.js} +1 -1
- package/dist/assets/ReferralListScreen-DujIrxLU.js +5 -0
- package/dist/assets/{ReimbursementApprovalRoutes-4ofmyM2B.js → ReimbursementApprovalRoutes-BoDmbBBz.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-GNh6t10D.js → ReimbursementApprovalRuleDetailScreen-Dwom34dE.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-E4B7mXUV.js → ReimbursementRoutes-BtA1h3M4.js} +4 -4
- package/dist/assets/{ReportsRoutes-CiKYwFcY.js → ReportsRoutes-DGfKsmao.js} +1 -1
- package/dist/assets/RewardsRoutes-Bk-Pnj5x.js +1 -0
- package/dist/assets/{ScreenRoutes-CtcOo7XI.js → ScreenRoutes-C1mW9JyL.js} +2 -2
- package/dist/assets/{SettingsRoutes-HfLImk_Y.js → SettingsRoutes-BWPXEzUK.js} +1 -1
- package/dist/assets/{SetupPagesScreen-BC1xjW2a.js → SetupPagesScreen-Dvz8sz6R.js} +5 -5
- package/dist/assets/{SignInScreen-B4a9p2qq.js → SignInScreen-Cf0Mu6xq.js} +1 -1
- package/dist/assets/SignOutScreen-D7VuNFMv.js +9 -0
- package/dist/assets/{TaskListScreen-B6TWQ7mN.js → TaskListScreen-CkkI6nNr.js} +2 -2
- package/dist/assets/TaskRoutes-DU_Wp0Og.js +9 -0
- package/dist/assets/TransactionDetailRoutes-eVxJYxib.js +1 -0
- package/dist/assets/{TransactionDetailScreen-Dr9L06lH.js → TransactionDetailScreen-DnWD4Kai.js} +2 -2
- package/dist/assets/{TransactionListRoutes-DfMPq2co.js → TransactionListRoutes-Cn1NsJhz.js} +1 -1
- package/dist/assets/{TreasuryRoutes-hHdzN-Gs.js → TreasuryRoutes-CM8EhUUU.js} +5 -5
- package/dist/assets/{VendorsRoutes-d0XUVnRl.js → VendorsRoutes-kyQq5JR0.js} +10 -10
- package/dist/assets/WiseConfirmationScreen-C6upjVa9.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-BZOO98no.js → ZeniAccountRoutes-B4Z3BIeG.js} +8 -8
- package/dist/assets/{ZeniAccountStatementScreen-BAftYNFi.js → ZeniAccountStatementScreen-BM4EXAms.js} +2 -2
- package/dist/assets/{accountMappingHelper-Du9JpeqN.js → accountMappingHelper-C7lhn2QG.js} +1 -1
- package/dist/assets/{analytics-TRk1FnxP.js → analytics-DVf_BIp2.js} +1 -1
- package/dist/assets/{analyticsHelper-CGdqz3ah.js → analyticsHelper-BLybaLjV.js} +1 -1
- package/dist/assets/{core-DpUaSmvm.js → core-DDvaTX37.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-BLyCvwpO.js → decodeURIComponentSafe-CFMDmh9m.js} +1 -1
- package/dist/assets/{dnd-DSHtKbZK.js → dnd-V-MvMUKQ.js} +1 -1
- package/dist/assets/{empty-DRO_6jBS.js → empty-BH3HNirl.js} +1 -1
- package/dist/assets/{empty-BZ5MPGvt.js → empty-CMRWUy5u.js} +1 -1
- package/dist/assets/{emptyVideoElement-BnbjPngU.js → emptyVideoElement-DcgSS6Hv.js} +1 -1
- package/dist/assets/{epic-DAKL4alI.js → epic-EUgR-DEx.js} +1 -1
- package/dist/assets/getLocaleForTenant-CJe_mZF7.js +1 -0
- package/dist/assets/{index-BPoOO_8E.js → index-D0LGQvnR.js} +1 -1
- package/dist/assets/{index-Bga2U2NV.js → index-DVaIp1ct.js} +1 -1
- package/dist/assets/{index-ChjxQ77O.js → index-DcCaBRIt.js} +2 -2
- package/dist/assets/{index-tqvFmBK2.js → index-Dqto2GR0.js} +10125 -10099
- package/dist/assets/{index-DaUwBxJq.js → index-Dw_Cve7-.js} +1 -1
- package/dist/assets/{index-JTC5t-nb.js → index-Dxn7gemY.js} +1 -1
- package/dist/assets/{index-Cr3sKd0Z.js → index-K968il8d.js} +1 -1
- package/dist/assets/{lexical-BEQMr6JI.js → lexical-CxLnVFxa.js} +1 -1
- package/dist/assets/{liveblocks-CiVr43xr.js → liveblocks-CiToer5R.js} +1 -1
- package/dist/assets/{lottie-NYt-mSTs.js → lottie-BsqqVDQp.js} +1 -1
- package/dist/assets/{mui-CsdmIe4O.js → mui-CP2KeZRM.js} +1 -1
- package/dist/assets/{pathToGoBack-Do6wdmvl.js → pathToGoBack-DbeVW-hw.js} +1 -1
- package/dist/assets/{pdf-BTUpRiCj.js → pdf-CZO_R6LN.js} +3 -3
- package/dist/assets/{pdf-lib-Bbn4DthR.js → pdf-lib-DHbUCXaf.js} +1 -1
- package/dist/assets/{plaid-6OVQznh-.js → plaid-_EXcf3jJ.js} +1 -1
- package/dist/assets/{pusher-DcNsnCBT.js → pusher-BppW-Uw8.js} +1 -1
- package/dist/assets/{react-CRKcY_m2.js → react-B4DfGJEk.js} +1 -1
- package/dist/assets/{react-epz72mwm.js → react-BVOfIs_O.js} +1 -1
- package/dist/assets/{react-x0J6tH4c.js → react-CkSvbTDR.js} +1 -1
- package/dist/assets/{react-CnYG2hfo.js → react-D1rJN8lx.js} +1 -1
- package/dist/assets/{react-Bzvmtxrz.js → react-DEjR98iS.js} +1 -1
- package/dist/assets/{react-Cskb3f9B.js → react-DerqvQlW.js} +1 -1
- package/dist/assets/{recharts-Bx9Bx3a3.js → recharts-CxZa6yMn.js} +1 -1
- package/dist/assets/{routePaths-D7MQFfTw.js → routePaths-kOKVswwv.js} +1 -1
- package/dist/assets/{sentry-DnSOFLDc.js → sentry-8AfgzGIO.js} +1 -1
- package/dist/assets/{url-Du8gNQY5.js → url-B8dUq2RL.js} +1 -1
- package/dist/assets/{url-DdienGVG.js → url-DV5smE06.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-c3bUeFHf.js +1 -0
- package/dist/assets/{useDeviceId-CRKD2ns4.js → useDeviceId-C9CFDiHV.js} +1 -1
- package/dist/assets/{useFetchSuggestedQuestionsWhenReady-DusNXe4C.js → useFetchSuggestedQuestionsWhenReady-Cj4hvcAQ.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-DRkhHg1l.js → useInitialThreadRequest-DxWVeoqB.js} +1 -1
- package/dist/assets/{utils-D153Jmpv.js → utils-DVMMWGFG.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-BzvaUArE.js → withTransactionSidePanel-BhvaYyJw.js} +2 -2
- package/dist/assets/{zeni-epic-state-Cch--5Rd.js → zeni-epic-state-D4vGt0eL.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AddressRoutes-CcQ-m1y7.js +0 -1
- package/dist/assets/AddressScreen-60WdB4sG.js +0 -9
- package/dist/assets/BillPayApprovalRoutes-DWxiKrcf.js +0 -1
- package/dist/assets/CompanyPassportScreen-zExesfsP.js +0 -1
- package/dist/assets/ConnectionAuthScreen-DRYLDMWT.js +0 -11
- package/dist/assets/CustomerOnboardingAuthScreen-D8e_JLLN.js +0 -1
- package/dist/assets/DomesticWireDetailScreen-Dy309oKt.js +0 -18
- package/dist/assets/DrawerScreen-Bkhsa8Ge.js +0 -1
- package/dist/assets/EntityDetailRoutes-B765hwdg.js +0 -1
- package/dist/assets/FeaturePreviewScreen-Bi_A55XC.js +0 -1
- package/dist/assets/MagicLinkSignInScreen-CQ5E01C7.js +0 -12
- package/dist/assets/NotFoundScreen-L8EzLjfw.js +0 -1
- package/dist/assets/PerformanceRoutes-CG9r5Gh-.js +0 -1
- package/dist/assets/ReferralListScreen-Bwn976sI.js +0 -5
- package/dist/assets/RewardsRoutes-B-uLOe5K.js +0 -1
- package/dist/assets/SignOutScreen-CrkT5Sfm.js +0 -9
- package/dist/assets/TaskRoutes-BXphhbwt.js +0 -9
- package/dist/assets/TransactionDetailRoutes-zxQs4SsU.js +0 -1
- package/dist/assets/WiseConfirmationScreen-CsefxCrJ.js +0 -12
- package/dist/assets/getLocaleForTenant-DPLcK9LE.js +0 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-Bc91AnAf.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-Dqto2GR0.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-8AfgzGIO.js"><link rel="modulepreload" crossorigin href="/assets/core-DDvaTX37.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-D4vGt0eL.js"><link rel="modulepreload" crossorigin href="/assets/mui-CP2KeZRM.js"><link rel="modulepreload" crossorigin href="/assets/analytics-DVf_BIp2.js"><link rel="modulepreload" crossorigin href="/assets/utils-DVMMWGFG.js"><link rel="stylesheet" crossorigin href="/assets/index-D-vub4_t.css"></head><body style="margin:0"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><div class="app-shell-loader" id="app-shell-loader"><div class="app-shell-sidebar"><div class="app-shell-sidebar-group"><div class="app-shell-bar zeni-logo" style="width:96px;height:20px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:78px;height:16px"></div><div class="app-shell-bar" style="width:46px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:110px;height:16px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div></div><div class="app-shell-sidebar-group"><div class="app-shell-bar" style="width:55px;height:12px"></div><div class="app-shell-bar" style="width:84px;height:16px"></div><div class="app-shell-bar" style="width:64px;height:16px"></div></div></div><div class="app-shell-main"><div class="app-shell-navbar"><div class="app-shell-bar" style="width:106px;height:27px"></div><div class="app-shell-bar" style="width:111px;height:32px"></div></div><div class="app-shell-logo"><svg width="96" height="96" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.768 0.0270284C16.571 -0.055168 16.348 0.0572476 16.2913 0.267574C16.2713 0.342517 16.2489 0.417461 16.2253 0.491196C16.0094 1.15723 15.6459 1.76645 15.148 2.27776C14.3056 3.14203 13.1847 3.61949 11.9918 3.6207H11.9883C10.7978 3.6207 9.67689 3.14565 8.83445 2.2838C8.33653 1.7737 7.97077 1.16448 7.75367 0.499657C7.73007 0.425922 7.70765 0.350979 7.68641 0.276035C7.62978 0.065709 7.40678 -0.0454978 7.20974 0.0366985C6.05463 0.522624 4.98565 1.17899 4.0323 1.97436C3.91195 2.07468 3.87301 2.24512 3.93083 2.39259C3.9792 2.51589 4.03112 2.63797 4.08539 2.75764C4.51133 3.70894 5.10364 4.5853 5.84815 5.34682C7.48937 7.0246 9.66863 7.9493 11.9871 7.9493H11.9954C14.3162 7.94689 16.4978 7.01855 18.1379 5.33595C18.8812 4.57321 19.4711 3.69564 19.8959 2.74434C19.9502 2.62347 20.0009 2.50138 20.0493 2.37809C20.1071 2.23062 20.0682 2.06018 19.9478 1.95985C18.9933 1.16569 17.9231 0.511745 16.768 0.0270284Z"/><path d="M19.9102 21.2422C19.4843 20.2933 18.8931 19.4194 18.151 18.6603C16.5086 16.9801 14.3223 16.053 12.0038 16.0578C8.50304 16.0614 5.48371 18.1961 4.11031 21.2603C4.05722 21.38 4.0053 21.5009 3.95575 21.623C3.89675 21.7704 3.93569 21.9421 4.05722 22.0436C5.01175 22.8366 6.08073 23.4893 7.23466 23.9728C7.4317 24.055 7.65352 23.9438 7.71134 23.7335C7.73139 23.6573 7.75381 23.5836 7.77859 23.5086C8.37207 21.6979 10.0416 20.3888 12.0073 20.3864H12.012C13.2025 20.3864 14.3234 20.8614 15.1659 21.7233C15.6626 22.231 16.026 22.8378 16.2431 23.5002C16.2679 23.5739 16.2903 23.6489 16.3104 23.7238C16.3682 23.9341 16.59 24.0453 16.787 23.9619C17.9422 23.476 19.01 22.8209 19.9633 22.0255C20.0837 21.9252 20.1226 21.7535 20.0648 21.606C20.0164 21.4828 19.9645 21.3631 19.9102 21.2422Z"/><path d="M0.132148 10.1666C0.158105 9.98769 0.305591 9.85352 0.482575 9.85352L23.5093 9.81726C23.6863 9.81726 23.8338 9.95022 23.8609 10.1291C23.9518 10.7347 23.999 11.3548 23.999 11.9858C24.0001 12.6131 23.9541 13.2284 23.8668 13.8292C23.8408 14.0081 23.6934 14.1422 23.5164 14.1422L0.489654 14.1773C0.312671 14.1773 0.165185 14.0443 0.138047 13.8654C0.0471956 13.2598 0 12.6397 0 12.0088C0 11.3826 0.0448358 10.7673 0.132148 10.1666Z"/></svg></div></div></div></body></html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/web-app-ui",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.7-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.2",
|
|
31
31
|
"@zeniai/client-epic-state": "5.0.3",
|
|
32
|
-
"@zeniai/web-components": "4.0.
|
|
32
|
+
"@zeniai/web-components": "4.0.8",
|
|
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-CiVr43xr.js";import{A as i}from"./AddressScreen-60WdB4sG.js";import s from"./NotFoundScreen-L8EzLjfw.js";import"./sentry-DnSOFLDc.js";import{n as d,o as r}from"./core-DpUaSmvm.js";import"./zeni-epic-state-Cch--5Rd.js";import"./recharts-Bx9Bx3a3.js";import"./index-tqvFmBK2.js";import"./mui-CsdmIe4O.js";import"./lottie-NYt-mSTs.js";import"./analytics-TRk1FnxP.js";import"./plaid-6OVQznh-.js";import"./dnd-DSHtKbZK.js";import"./stripe-DMRn4zHo.js";import"./lexical-BEQMr6JI.js";import"./pdf-BTUpRiCj.js";import"./utils-D153Jmpv.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]="339d6624-b51b-426b-a0cc-e8e8bd837ae0",t._sentryDebugIdIdentifier="sentry-dbid-339d6624-b51b-426b-a0cc-e8e8bd837ae0")}catch{}})();function _(){return e.jsxs(d,{children:[e.jsx(r,{path:"/edit/:addressType/:addressId",element:e.jsx(i,{})}),e.jsx(r,{path:"/new/:addressType",element:e.jsx(i,{})}),e.jsx(r,{path:"*",element:e.jsx(s,{})})]})}export{_ as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./liveblocks-CiVr43xr.js";import{a as S}from"./sentry-DnSOFLDc.js";import{j as P,h as _,u as j,l as E,g as $,k as B}from"./core-DpUaSmvm.js";import{Z as M,m as D,z as L,j as K,B as R,_ as z,d as I,g as m,H as F,k as h,r as N}from"./index-tqvFmBK2.js";import{IZ as C,gI as U,eM as G,I_ as H,b$ as O,I$ as V,k2 as Z}from"./zeni-epic-state-Cch--5Rd.js";import{n as q}from"./mui-CsdmIe4O.js";import J from"./NotFoundScreen-L8EzLjfw.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]="182bb35b-b31b-4a65-92ab-ae8d57d38e05",e._sentryDebugIdIdentifier="sentry-dbid-182bb35b-b31b-4a65-92ab-ae8d57d38e05")}catch{}})();const Q=q.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`,W=B(function(e,t){const{addressId:o,isSubPage:i,addressType:c}=t,l=G(e),a=t.roleMap!=null&&H(t.roleMap),d=i||c==="user_address"||O(l?.userRole??[])||a?void 0:"readonly";if(o==null){const s=V(c,e);return{addressToEdit:s?.addressToCreate,loadingState:s?.status?.fetchState,googleAPIKey:h.googleMapsAPIKey,isDisabled:d,isSubPage:i,dontShowSaveConfirmationPopup:t.dontShowSaveConfirmation}}const n=C(e,o);return{addressToEdit:n.address,loadingState:n.fetchState,googleAPIKey:h.googleMapsAPIKey,isDisabled:d}},function(e,t){const{navigate:o,location:i,addressType:c}=t,l=a=>{if(a==="express-pay")o("../express-pay/add-wire");else{const d=i.state,n=N(d?.pathnameStackToGoBack);let s=n.poppedPathname??k();const u=d?.queryParams;if(u){const g=new URLSearchParams(u).toString();g&&(s=`${s}?${g}`)}o(s,{state:{pathnameStackToGoBack:n.newStack}})}};return{onSubmitHandler:a=>{const d=X(a);e(Z({addressType:c,addressToCreate:d})),I?.trackSaveAddressClicked(m.Event.saveAddressClicked,{street:a.street.addressString,city:a.city,state:a.state,country:a.country.selectedOption??"",postalCode:a.postalCode,suite:a.suite,secondaryInfo:a.secondaryInfo}),l(t.bankAccountContext)},onCancel:()=>{l(t.bankAccountContext)}}})(F);function re({isSubPage:e,hideAddressSubTitle:t=!1,hideAddressBackButton:o=!1,dontShowSaveConfirmation:i,accountContext:c,addressTypeParam:l}){const a=P(),d=_(),n=j(),{addressId:s,addressType:u}=E(),g=M(),w=D(),v=L.getSignedInUser(),[p,x]=S.useState(s==null),f=$(b=>s!=null?C(b,s).fetchState:"Not-Started"),A=K();if(v==null)throw Error("Can't access address page without signing in...");const T=b=>b.trackPageLoaded(s!=null?m.Event.editAddress:m.Event.addAddress),y=l??u;return S.useEffect(()=>{p||s==null||(x(!0),d(U(s,!1)))},[p,s,d]),y==null||y.match(/(user_address|company_address|company_registered_address|vendor_address|officer_([1-9]|10)_address)$/g)?!p&&f==="Not-Started"||p&&f==="In-Progress"?r.jsx(R,{fetchState:f,style:{backgroundColor:w.colors.grey5}}):s!=null&&f==="Error"?(a(`${k(1)}/new`,{replace:!0}),r.jsx(r.Fragment,{})):r.jsxs(r.Fragment,{children:[r.jsx(z,{analytics:I,onLoad:T}),r.jsx(Q,{windowSize:g,children:r.jsx(W,{location:n,navigate:a,isSubPage:e===!0,hideAddressBackButton:o,hideAddressSubTitle:t,addressId:s,addressType:y,dontShowSaveConfirmation:i,bankAccountContext:c,roleMap:A?.loggedInUserRoleMap})})]}):r.jsx(J,{})}const k=(e=2)=>{let t="../";for(let o=0;o<e;o++)t=`${t}../`;return t},X=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng});export{re as A,X as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-CiVr43xr.js";import{a as y}from"./sentry-DnSOFLDc.js";import{j as U,u as B,h as j,g as f,N as $,k as T,l as L,n as O,o as h}from"./core-DpUaSmvm.js";import{eM as N,Mg as R,LY as b,x5 as w,w$ as F,x3 as I,wU as M,L_ as W,wX as q,x7 as z,x6 as C}from"./zeni-epic-state-Cch--5Rd.js";import{m as P,z as k,B as V,a1 as X,bu as Y,aa as _,bv as G}from"./index-tqvFmBK2.js";import"./mui-CsdmIe4O.js";import{i as H}from"./ReimbursementApprovalRuleDetailScreen-GNh6t10D.js";import J from"./NotFoundScreen-L8EzLjfw.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]="d03e0bb9-4e59-4892-a8b8-3671a31189c5",e._sentryDebugIdIdentifier="sentry-dbid-d03e0bb9-4e59-4892-a8b8-3671a31189c5")}catch{}})();const x="bill-approval-rule-update",K=T(function(e){return{approvalView:R(e),billPaySetupApproverViewUpdateData:b(e).billPaySetupApproverViewUpdateData}},function(e,o){const{navigate:t,location:p}=o;return{onApprovalRulesEventReceived:a=>{a.endsWith(x)&&e(W(!1))},onBackClick:()=>{_(p)?t("../../"):t("../../../bills/setup")},onDeleteRuleClick:a=>{e(M(a))},onEditRuleClick:a=>{a!=null?(e(I(a)),t(`./${a}/edit`)):(e(I()),t("./new"))}}})(X(Y)),Q=()=>{const e=U(),o=B(),t=j(),[p,a]=y.useState(!1),[u,s]=y.useState(!1),d=P(),n=f(i=>i.billPaySetupApproverViewState.fetchState),c=f(i=>N(i)),r=f(i=>R(i)),g=f(i=>b(i).billPaySetupApproverViewUpdateData);if(y.useEffect(()=>{g?.updateStatus.fetchState==="Completed"&&t(w())},[g]),y.useEffect(()=>{p||n!=="Not-Started"||(a(!0),t(F(!0)))},[p,n,t]),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),t(I())),e("./new"))},[u,r,t]);const v={events:c.companyId!=null?[`private-${c.companyId}.${x}`]:[],eventCallback:(i,A,m)=>{i.endsWith(x)&&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,...v})},Z=T(function(e,o){const t=b(e),p=t.billPaySetupApproverViewUpdateData?.type??"approval_create",a=p==="approval_create"&&t.allApprovalRules.length!==0;let u=t.allApprovalRules.length===0;return o.approvalRuleId&&(u=t.allApprovalRules.findIndex(s=>s.approvalRuleId===o.approvalRuleId)===0),{localData:t,hideUpperBoundField:a,isLowerBoundDisabled:u,approvalUpdateActionType:p}},function(e,o){const{navigate:t,approvalUpdateDataView:p,approverViewData:a,approvalRuleId:u}=o,s=p.billPaySetupApproverViewUpdateData?.type,d=_(o.location);return{onApprovalRuleDataUpdated:n=>{const c=r=>{const g=[];return r.forEach(v=>{const i=v.actors.selectedUsers.map(S=>({type:"user",userId:S.userId,isImplicitActor:!1})),A=v.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:v.stepType.selectedOption,actors:m,operator:m.length>1?v.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?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onBackClick:()=>{e(w()),s==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onSaveRuleClick:()=>{e(z())},onSaveRuleSuccess:()=>{t("../")}}})(G);function D(){const e=U(),o=j(),t=B(),{approvalRuleId:p}=L(),a=k.getSignedInUser(),u=P(),s=f(r=>b(r)),d=f(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]),a==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(Z,{navigate:e,approvalUpdateDataView:s,approvalRuleId:p,approverViewData:d,location:t})}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-CiVr43xr.js";import{a as g}from"./sentry-DnSOFLDc.js";import{j as w,h as x,u as k,l as T,g as S,k as E}from"./core-DpUaSmvm.js";import{z as N,aZ as F,_ as P,d as L,g as V,aa as O,a_ as j,ao as A,ap as B,w as U}from"./index-tqvFmBK2.js";import{eM as D,fC as _,rt as M,fx as R,b$ as z,Lt as G,bm as Y,pB as Z,pp as $,jW as q,lq as b,Lu as H,bB as W,cr as C,ly as J,lB as K}from"./zeni-epic-state-Cch--5Rd.js";import"./mui-CsdmIe4O.js";import{c as Q}from"./routePaths-D7MQFfTw.js";import{M as X}from"./MobileAppDrawer-DO1GrqQX.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new n.Error().stack;a&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[a]="c9063b6b-845e-4b9b-bc58-4e1b2b512be0",n._sentryDebugIdIdentifier="sentry-dbid-c9063b6b-845e-4b9b-bc58-4e1b2b512be0")}catch{}})();const ee=E(function(n){const a=R(n),i=N.getSignedInUser(),l=D(n),c=l.tenantId,p={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:c??""},f=z(l?.userRole??[])&&a.localData.updateStatus.fetchState!=="In-Progress"?void 0:"readonly",e=G(n.companyConfigState),t=n.countryListState?.byCountryListCode?.nationalityCountryList?.countries??[];return{isCompanyVerified:a.companyView?.company?.company?.companyBillPayInfo?.companyVerificationStatus?.code==="verified",companyPassportView:a,allIndustries:e.companyIndustries??[],allNationalityCountries:t,isDisabled:f,authParams:p,filesEndPoint:`${A.fileMicroServiceBaseUrl}`,isZeniUser:Y(i)}},function(n,a){const{companyId:i,currentTenant:l,navigate:c,location:p}=a,{tenantEmailDomain:f}=l;return{onScheduleClick:e=>{let t=e.href;t.includes("http")||(t="https://".concat(t)),window.open(t,"_blank")},onSaveAll:()=>{n(K())},onAddressClick:e=>{const t=Q(f,e),o=U(p.state?.pathnameStackToGoBack,p.pathname);c(t,{state:{pathnameStackToGoBack:o}})},onResetClick:()=>{n(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?C(u):void 0,meetingLink:y!=""&&y!=null?C(y):void 0,industry:t.industry.selectedOption,companyIndustryType:t.companyIndustryType?.selectedOption??void 0,companySubIndustry:t.subIndustry?.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?W(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]}};n(b({companyDetails:v}))},onPrimaryContactDetailsUpdated:e=>{n(b({primaryContact:{userId:e.userId,email:e.email.trim(),firstName:e.name.firstName,lastName:e.name.lastName}}))},onNewCompanyOfficerAdded:e=>{n(b({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:void 0}]}))},onNewCompanyOfficerRemoved:e=>{n(H(e))},onCompanyOfficerUpdated:e=>{n(b({officers:[{officerType:e.officerType,email:e.email.trim(),phone:e.phone,firstName:e.name.firstName,lastName:e.name.lastName,userId:e.userId}]}))},updateFilesEntity:e=>{n(q({files:e}))},onDeleteFile:e=>{n($(e))},onEditFileName:(e,t)=>{n(Z(e,t.split(".")[0]))}}})(j);function de(){const n=w(),a=x(),i=k(),{tenantEmailDomain:l}=T(),[c,p]=g.useState(!1),[f,e]=g.useState(!1),t=S(s=>s.companyViewState.passportView.fetchState),o=S(s=>s.companyConfigState.fetchState),r=S(s=>D(s)),d=r.companyId??N.getSignedInUserTenant(l)?.companyId;if(N.getSignedInUser()==null)throw Error("Can't access company details page without signing in...");g.useEffect(()=>{c||t!=="Not-Started"||d==null||(p(!0),a(_(d)))},[c,t,d,a]),g.useEffect(()=>{o==="Not-Started"&&a(M())},[o,a]);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:()=>n("../",{replace:!0}),onReload:()=>window.location.reload()}):m.jsxs(m.Fragment,{children:[m.jsx(P,{analytics:L,onLoad:s=>s.trackPageLoaded(V.Event.companyPassport,O(i)?"Settings":"Company Passport")}),O(i)?m.jsx(X,{isAppContentDrawerOpen:f,handleDrawerToggle:u}):null,m.jsx(ee,{companyId:d,navigate:n,location:i,isLoading:y,currentTenant:r,isSettings:O(i),onClickMenuIcon:()=>{u(!0)}})]})}export{de as C};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{j as C}from"./liveblocks-CiVr43xr.js";import{a}from"./sentry-DnSOFLDc.js";import{h as D,u as v,g as u,N as w}from"./core-DpUaSmvm.js";import{Ic as A,eM as O,fj as _,mh as j,fJ as E,fi as U,eN as L,Ik as k}from"./zeni-epic-state-Cch--5Rd.js";import{u as F,z as c,L as g,D as $,e as H}from"./index-tqvFmBK2.js";import{n as z}from"./mui-CsdmIe4O.js";import{t as R}from"./getLocaleForTenant-DPLcK9LE.js";import{g as P,Q as G}from"./QBOConnectionScreen-Dz0hGueY.js";import"./recharts-Bx9Bx3a3.js";import"./lottie-NYt-mSTs.js";import"./analytics-TRk1FnxP.js";import"./plaid-6OVQznh-.js";import"./dnd-DSHtKbZK.js";import"./stripe-DMRn4zHo.js";import"./lexical-BEQMr6JI.js";import"./pdf-BTUpRiCj.js";import"./utils-D153Jmpv.js";import"./empty-DRO_6jBS.js";import"./pdf-lib-Bbn4DthR.js";import"./index-DaUwBxJq.js";import"./url-DdienGVG.js";import"./index-Bga2U2NV.js";import"./decodeURIComponentSafe-BLyCvwpO.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]="3962568a-7ccb-4df1-aa1a-4549b89d5f32",t._sentryDebugIdIdentifier="sentry-dbid-3962568a-7ccb-4df1-aa1a-4549b89d5f32")}catch{}})();const J=z.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
flex: 1 1 auto;
|
|
4
|
-
flex-direction: row;
|
|
5
|
-
justify-content: center;
|
|
6
|
-
align-items: center;
|
|
7
|
-
width: 100%;
|
|
8
|
-
height: 100vh;
|
|
9
|
-
background-color: ${t=>t.theme.colors.background};
|
|
10
|
-
box-shadow: ${t=>`0px 2px ${H.sp1} ${t.theme.colors.dropShadowNormal}`};
|
|
11
|
-
`;function fe(){const t=D(),i=v(),{setLoading:d,clearAllLoading:b}=F(),f=a.useRef(!1),p=a.useRef(!1),{code:x,realmId:N,state:T}=P(i.search),y=x!==""&&N!==""&&T!=="",I=u(l=>A(l)),e=u(l=>O(l)),n=u(l=>l.tenantState.fetchState),r=u(l=>l.tenantState.activeTenantFetchState.fetchState),o=c.getSignedInUser(),m=c.getActiveTenantForUser()?.tenantId,s=e?.externalConnections?.fetchState,h=e?.externalConnections?.saveConnectionState,S=e.externalConnections?.accounting[0]?.isValid;return a.useLayoutEffect(()=>{d(g.CONNECTION_AUTH)},[d]),a.useEffect(()=>{f.current||o==null||m==null||(f.current=!0,n==="Completed"||r!=="Not-Started"&&r!=="Error"||(d(g.TENANT_FETCHING),t(_(o.userId,m))))},[f,n,d]),a.useEffect(()=>{e.tenantId==null&&!p.current&&o!=null&&(p.current=!0,!(m==null||m!=null&&(r==="Completed"||r==="Error"))||n!=="Not-Started"&&n!=="Error"||t(j(o.userId)))},[p,n,r]),a.useEffect(()=>{o==null||e?.tenantId==null||e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||s==="In-Progress"||h!=="Error"||(d(g.CONNECTION_AUTH),t(E(o.userId,e.tenantId)))},[h]),a.useEffect(()=>{n!=="Completed"&&r!=="Completed"||o==null||e?.tenantId==null||(t(U(e.tenantId)),c.saveActiveTenantDomainForUser(e.tenantEmailDomain),L(o?.userId,o?.zeniSessionId,e.tenantId),$.updateAppLocaleID(R(k(e))),e.externalConnections!=null||n!=="Completed"&&r!=="Completed"||s==="In-Progress"||o==null||e==null||t(E(o.userId,e.tenantId)))},[n,r,s]),a.useEffect(()=>{I.tenantsCoreDetailsInOrder.length>0&&n==="Completed"&&c.saveSignedInUserTenants(I.tenantsCoreDetailsInOrder)},[I.tenantsCoreDetailsInOrder.length,n]),a.useEffect(()=>{n!=="Completed"&&n!=="Error"||r!=="Completed"&&r!=="Error"||s!=="Completed"&&s!=="Error"||b()},[n,r,s]),e==null||n!=="Completed"&&r!=="Completed"||s!=="Completed"?null:y||S===!1?C.jsx(J,{children:C.jsx(G,{})}):C.jsx(w,{to:"/",replace:!0})}export{fe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-CiVr43xr.js";import{z as m}from"./index-tqvFmBK2.js";import{g as n}from"./QBOConnectionScreen-Dz0hGueY.js";import"./sentry-DnSOFLDc.js";import{u as p,N as a}from"./core-DpUaSmvm.js";import"./zeni-epic-state-Cch--5Rd.js";import"./recharts-Bx9Bx3a3.js";import"./mui-CsdmIe4O.js";import"./lottie-NYt-mSTs.js";import"./analytics-TRk1FnxP.js";import"./plaid-6OVQznh-.js";import"./dnd-DSHtKbZK.js";import"./stripe-DMRn4zHo.js";import"./lexical-BEQMr6JI.js";import"./pdf-BTUpRiCj.js";import"./utils-D153Jmpv.js";import"./empty-DRO_6jBS.js";import"./pdf-lib-Bbn4DthR.js";import"./index-DaUwBxJq.js";import"./url-DdienGVG.js";import"./index-Bga2U2NV.js";import"./decodeURIComponentSafe-BLyCvwpO.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]="34360189-ad08-40f6-93e1-76035a2c6a6d",t._sentryDebugIdIdentifier="sentry-dbid-34360189-ad08-40f6-93e1-76035a2c6a6d")}catch{}})();const U=()=>{const t=p(),{code:o,realmId:r,state:e}=n(t.search),s=m.getSignedInUser()?.userId??"";if(f(o,r,e,s)===!0){const d=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return i.jsx(a,{to:d})}return i.jsx(a,{to:"../../"})},f=(t,o,r,e)=>t!=""&&o!=""&&r!=""&&e!=null&&e!="";export{U as default,f as hasValidParams};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-CiVr43xr.js";import{j as w,u as C,g as h,k as A,l as B}from"./core-DpUaSmvm.js";import{Ma as k,Mh as _,fA as J,fz as L,fy as W,ii as q,Ji as K,ps as Q,eM as V,LI as D,ig as T,Mb as S,Mk as F,id as G,iC as j}from"./zeni-epic-state-Cch--5Rd.js";import{bj as X,Z as R,o as N,z as U,m as M,r as p,n as v,B as Z,bk as Y,e as z,bl as ee,w as te}from"./index-tqvFmBK2.js";import{n as O}from"./mui-CsdmIe4O.js";import"./sentry-DnSOFLDc.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]="c8aa4a10-df84-4efe-bf75-3e78774864b9",e._sentryDebugIdIdentifier="sentry-dbid-c8aa4a10-df84-4efe-bf75-3e78774864b9")}catch{}})();const ae=A(null,function(e,t){return{onSaveVendor:a=>{e(q(t.vendorId!==void 0?t.vendorId:void 0,t.billId,void 0,t.isExpressPayPage)),e(K("common")),a!=null&&e(Q(a))},onGetOtp:a=>{e(W(a,"BillPayVendor"))},onResendOtp:a=>{e(L(a,"BillPayVendor"))},onVerifyOtp:(a,n)=>{e(J(a,n,"BillPayVendor"))},onVerifyOtpSuccess:(a,n,o)=>{e(_(a,n,o))}}})(X);function H({vendorId:e,billId:t,isExpressPayPage:a}){const n=w(),o=C(),s=h(i=>k(i,e));return l.jsx(ae,{location:o,navigate:n,vendorId:e,billId:t,vendorViewDetails:s,isExpressPayPage:a??!1})}const ne=O.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`,oe=A(function(e,t){const{vendorId:a,billId:n}=t,o=k(e,a),s=D(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,n);return{billId:n,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}},function(e,t){const{navigate:a,location:n,vendorId:o}=t;return{onFetchBankName:s=>{e(j(s))},onSaveHandler:s=>{e(G(t.bankAccountContext,s,"standard",o))},onCancel:()=>{(()=>{const s=p(n.state?.pathnameStackToGoBack),i=s.poppedPathname??P();a(i,{state:{pathnameStackToGoBack:s.newStack}})})(),e(S())},onACHDetailsUpdated:s=>{const{bankAccountSection:i}=s;e(F({data:i}))},onBackClick:()=>{if(e(T({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")a("../",{relative:"path"});else{const s=p(t.location.state?.pathnameStackToGoBack),i=s.poppedPathname??P(0);t.navigate(i,{state:{pathnameStackToGoBack:s.newStack}})}e(S())}}})(Y);function fe({vendorIdParam:e,accountContext:t}){const a=w(),n=C(),o=R(),{vendorId:s,billId:i}=B(),d=e??s,{useFeatureGate:r}=N(),c=U.getSignedInUser(),b=h(u=>V(u)),g=M(),I=p(n.state?.pathnameStackToGoBack),f=t??(I.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h(u=>k(u,d)),{isFeatureEnabled:x}=r(v.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=r(v.isDepositAccountsFeatureEnabled);if(c==null)throw Error("Can't access address page without signing in...");return f==="billDetail"&&m.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(Z,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:g.colors.grey5}}):l.jsxs(ne,{windowSize:o,children:[l.jsx(H,{vendorId:d,billId:i}),l.jsx(oe,{location:n,navigate:a,billId:i,vendorId:d,currentTenant:b,bankAccountContext:f,isVendorRecommendationEnabled:x,isZeniAccountsFeatureEnabled:y})]})}const P=(e=2)=>{let t="../";for(let a=0;a<e;a++)t=`${t}../`;return t},me=(e,t,a)=>{let n=`/${e}/bill/${encodeURIComponent(t)}`;return a=="draft"&&(n+="/edit"),n},he=e=>`/${e}/bills`,ke=(e,t)=>{let a=`/${e}/bill`;return a=t!=null?a.concat(`/${t}/edit`):a.concat("/new"),a},E=(e,t,a,n)=>{let o=`/${e}/bill`;return o+=a!=null?`/${a}/edit/vendor`:"/new/vendor",o+=n!=null?`/${n}/edit/${t}`:`/create/${t}`,o};function Se(e,t,a){return E(e,"ach",t,a)}function ve(e,t,a){return E(e,"domestic",t,a)}function ge(e,t,a){return E(e,"international",t,a)}const se=(e,t,a)=>{let n=`/${e}/bill/`;return n=a!=null?n.concat(`${encodeURIComponent(a)}/${t}/`):n.concat(`new/${t}/`),n},re=O.div`
|
|
10
|
-
display: flex;
|
|
11
|
-
height: 100vh;
|
|
12
|
-
width: 100%;
|
|
13
|
-
flex: 1 1 auto;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
align-items: center;
|
|
16
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
17
|
-
box-shadow: ${e=>`0px 2px ${z.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
18
|
-
`,ie=A(function(e,t){const{vendorId:a,billId:n}=t,o=k(e,a),s=D(e,t.isVendorRecommendationEnabled,t.isZeniAccountsFeatureEnabled,n);return{billId:n,isDisabled:o.bankAccountCreationState.fetchState==="In-Progress"?"readonly":void 0,vendorViewDetails:o,file:s.file,bankAccountContext:t.bankAccountContext}},function(e,t){const{billId:a,navigate:n,location:o,vendorId:s,currentTenant:i}=t,{tenantEmailDomain:d}=i;return{onFetchBankName:r=>{e(j(r))},onSaveHandler:r=>{e(G(t.bankAccountContext,r,"us-domestic",s))},onWireDetailsUpdated:r=>{const{bankAccountSection:c}=r;e(F({data:c}))},onCancel:()=>{(()=>{const r=p(o.state?.pathnameStackToGoBack),c=r.poppedPathname??$();n(c,{state:{pathnameStackToGoBack:r.newStack}})})(),e(S())},onAddressClick:r=>{if(t.bankAccountContext==="express-pay")n("./add-address");else{const c=se(d,r,a),b=te(o.state?.pathnameStackToGoBack,o.pathname);n(c,{state:{pathnameStackToGoBack:b}})}},onBackClick:()=>{if(e(T({fetchState:"Not-Started"})),t.bankAccountContext==="express-pay")n("../",{relative:"path"});else{const r=p(t.location.state?.pathnameStackToGoBack),c=r.poppedPathname??$(0);t.navigate(c,{state:{pathnameStackToGoBack:r.newStack}})}e(S())}}})(ee);function Ie({vendorIdParam:e,accountContext:t}){const a=w(),n=C(),o=R(),{vendorId:s,billId:i}=B(),d=e??s,r=U.getSignedInUser(),{useFeatureGate:c}=N(),b=M(),g=h(u=>V(u)),I=p(n.state?.pathnameStackToGoBack),f=t??(I.poppedPathname?.includes("vendor")===!0?"vendor":"billDetail"),m=h(u=>k(u,d)),{isFeatureEnabled:x}=c(v.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:y}=c(v.isDepositAccountsFeatureEnabled);if(r==null)throw Error("Can't access address page without signing in...");return f==="billDetail"&&m.editVendorState?.saveStatus.fetchState==="In-Progress"?l.jsx(Z,{fetchState:m.editVendorState?.saveStatus.fetchState??"Not-Started",style:{backgroundColor:b.colors.grey5,boxShadow:`0px 2px ${z.sp1} ${b.colors.dropShadowNormal}`}}):l.jsxs(re,{windowSize:o,children:[l.jsx(H,{vendorId:d,billId:i}),l.jsx(ie,{location:n,navigate:a,billId:i,vendorId:d,currentTenant:g,bankAccountContext:f,isVendorRecommendationEnabled:x,isZeniAccountsFeatureEnabled:y})]})}const $=(e=2)=>{let t="../";for(let a=0;a<e;a++)t=`${t}../`;return t};export{fe as A,Ie as D,H as V,me as a,se as b,ke as c,ve as d,he as g,ge as i,Se as v};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-CiVr43xr.js";import{Z as f,y as l,m as c}from"./index-tqvFmBK2.js";import{D as p}from"./mui-CsdmIe4O.js";import"./sentry-DnSOFLDc.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]="401a44ae-6de7-40e8-80d8-fbfc6ef2a248",e._sentryDebugIdIdentifier="sentry-dbid-401a44ae-6de7-40e8-80d8-fbfc6ef2a248")}catch{}})();const u={drawerLeftMargin:new l(0,0,240)};function m(e){const{isOpen:r,drawerLeftMargin:o,children:a,onClose:t}=e,n=f(),s=o?.valuePx(n)??u.drawerLeftMargin.valuePx(n),d=c();return i.jsx(p,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${s})`}},slotProps:{backdrop:{style:{backgroundColor:d.colors.black,opacity:.8,cursor:"pointer"}}},onClose:t,children:a})}export{m as D};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CiVr43xr.js";import{a as d}from"./sentry-DnSOFLDc.js";import{j as A,h as B,u as J,l as q,g as l,N as F,k as M,n as O,o as N}from"./core-DpUaSmvm.js";import{Kp as _,eM as K,JO as R,km as W,Gw as I,Ku as Y,Jh as $,jm as z,Gx as S,JT as U,JU as V,Jj as H,Ji as L}from"./zeni-epic-state-Cch--5Rd.js";import{aM as Q,d as X,r as Z,w as tt}from"./index-tqvFmBK2.js";import"./mui-CsdmIe4O.js";import{d as k}from"./decodeURIComponentSafe-BLyCvwpO.js";import{w as et}from"./withTransactionSidePanel-BzvaUArE.js";import{e as at,b as nt}from"./routePaths-D7MQFfTw.js";import"./recharts-Bx9Bx3a3.js";import"./lottie-NYt-mSTs.js";import"./analytics-TRk1FnxP.js";import"./plaid-6OVQznh-.js";import"./dnd-DSHtKbZK.js";import"./stripe-DMRn4zHo.js";import"./lexical-BEQMr6JI.js";import"./pdf-BTUpRiCj.js";import"./utils-D153Jmpv.js";import"./useAskAiCfoHostNavButtonProps-Bc91AnAf.js";import"./useFetchSuggestedQuestionsWhenReady-DusNXe4C.js";import"./TransactionDetailScreen-Dr9L06lH.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]="acdfa2fe-4548-4642-9a63-1b81fde4afe6",a._sentryDebugIdIdentifier="sentry-dbid-acdfa2fe-4548-4642-9a63-1b81fde4afe6")}catch{}})();const ot=M(function(a,t){const e=t.entity,o=Y(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:$(a,"common")},trendWithTransactionsReport:o,analytics:X,isAccountingClassesEnabled:z(a)}},function(a,t){return{onTransactionItemClick:e=>{if(t.openTransactionPanel)return void t.openTransactionPanel(e.id,e.type);const o=`${nt(e,t.tenantEmailDomain)}`,c=tt(t.location.state?.pathnameStackToGoBack,t.location.pathname);t.navigate(o,{state:{pathnameStackToGoBack:c}})},autoCompleteActions:{onAutoCompleteInputChange:e=>{e.trim().length>=2?a(H({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(L("common"))},onAutoCompleteEntity:e=>{const o=at(e,t.tenantEmailDomain);a(U()),a(V()),t.resetTrendIsFetchedStates(),t.navigate(o,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=Z(t.location.state?.pathnameStackToGoBack),o=e.poppedPathname??b();t.navigate(o,{state:{pathnameStackToGoBack:e.newStack}})}},onTrendSelectedPeriodChange:e=>{if(t.closeSidePanel?.(),e==null)t.defaultTransactionTimePeriod!=null&&a(S(t.entity,"EntityDetail",{timeframe:"quarter",timePeriod:t.defaultTransactionTimePeriod}));else{const o=e.currentTimePeriod==null?e.addTimePeriod:{startDate:e.addTimePeriod.startDate,endDate:e.currentTimePeriod.endDate};a(I(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:e.addTimePeriod})),a(S(t.entity,"EntityDetail",{timeframe:e.timeframe,timePeriod:o}))}}}})(Q),it=et(function({entityType:a,...t}){const e=A(),o=B(),c=J(),[m,T]=d.useState(!1),[h,D]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:j,entityNameEncoded:w}=q(),r=k(j??""),f=k(w??""),p=rt(r,f),x=[r,f].filter(n=>n!=null),i={name:f,id:r,type:a,zeniId:r,qboId:r},g=l(n=>_(n.customerIncomeState,n.vendorExpenseState,n.trendState,i,"quarter")),G=l(n=>K(n).company?.companyInfo.firstMonthOfFY??1),u=l(n=>R(n.trendWithTransactionsState,i,"EntityDetail"));d.useEffect(()=>{m===!1&&p===!0&&(T(!0),o(W(i)))},[m,p,i]);const E=l(n=>n.trendState.fetchState),P=u?.selectedPeriod?.timePeriod??g,v=function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y}(u?.selectedPeriod?.timePeriod,g);return d.useEffect(()=>{m===!0&&h===!1&&E==="Completed"&&(D(!0),P!=null&&o(I(i,"EntityDetail",{timeframe:u?.selectedPeriod?.timeframe??"quarter",timePeriod:P})))},[m,h,E]),p?s.jsx(ot,{firstMonthOfFY:G,tenantEmailDomain:C,location:c,navigate:e,entity:i,defaultTransactionTimePeriod:v,resetTrendIsFetchedStates:()=>{T(!1),D(!1)},...t}):s.jsx(F,{to:b(x.length)})}),rt=(a,t)=>t!=null&&t.length>0&&a!=null&&a.length>0,b=(a=2)=>{let t="../";for(let e=0;e<a;e++)t=`${t}../`;return t};function wt({entityType:a}){return s.jsx(O,{children:s.jsx(N,{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-CiVr43xr.js";import{a as r}from"./sentry-DnSOFLDc.js";import{U as i,V as l,X as p,r as m}from"./index-tqvFmBK2.js";import"./mui-CsdmIe4O.js";import f from"./NotFoundScreen-L8EzLjfw.js";import{j as u,u as b}from"./core-DpUaSmvm.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]="67b0297d-9d5a-4345-9422-7c24c9c88456",e._sentryDebugIdIdentifier="sentry-dbid-67b0297d-9d5a-4345-9422-7c24c9c88456")}catch{}})();const D=()=>{const e=u(),t=b(),a=r.useCallback(()=>{window.open("https://www.zeni.ai/demo/request","_blank")},[]),d=r.useCallback(()=>{(()=>{const n=m(t.state?.pathnameStackToGoBack),c=n.poppedPathname??k();e(c,{state:{pathnameStackToGoBack:n.newStack}})})()},[]),o=i(t.pathname);return o!=null?s.jsx(l,{menuItem:p(o),onDemoClick:a,onGoBack:d}):s.jsx(f,{})},k=(e=2)=>{let t="../";for(let a=0;a<e;a++)t=`${t}../`;return t};export{D as F};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as f}from"./liveblocks-CiVr43xr.js";import{a as u}from"./sentry-DnSOFLDc.js";import{h as U,u as _,j as w,q as M,g as l,N as T}from"./core-DpUaSmvm.js";import{z as r,m as P,D as V,f as A,d as N,g as q,p as R,$,i as W}from"./index-tqvFmBK2.js";import{eM as B,Ie as G,Ip as H,If as J,eN as K,fi as Q,Il as X,fF as Y,cR as Z,Iq as ee,Ir as te}from"./zeni-epic-state-Cch--5Rd.js";import{n as ne}from"./mui-CsdmIe4O.js";import{u as se}from"./useDeviceId-CRKD2ns4.js";import{f as ie}from"./analyticsHelper-CGdqz3ah.js";import{t as ae}from"./getLocaleForTenant-DPLcK9LE.js";import"./recharts-Bx9Bx3a3.js";import"./lottie-NYt-mSTs.js";import"./analytics-TRk1FnxP.js";import"./plaid-6OVQznh-.js";import"./dnd-DSHtKbZK.js";import"./stripe-DMRn4zHo.js";import"./lexical-BEQMr6JI.js";import"./pdf-BTUpRiCj.js";import"./utils-D153Jmpv.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]="69217cb0-24e7-407b-99fc-15fdf9a94921",t._sentryDebugIdIdentifier="sentry-dbid-69217cb0-24e7-407b-99fc-15fdf9a94921")}catch{}})();const D=(t,i)=>t!=null&&t.length>0&&i==="magic_links";function De(){const t=U(),i=_(),m=w(),[k]=M(),n=k.get("token"),p=k.get("stytch_token_type"),g=r.getMagicLinkCodeVerifier(),a=se(),{otpChallenge:d,twoFAPhoneNumber:x,magicLinkEmail:c,verifyDeviceFetchState:z,resendVerifyDeviceOTPFetchState:C}=l(e=>e.tenantState),I=l(e=>e.tenantState.fetchState),y=l(e=>e.tenantState.activeTenantFetchState.fetchState),S=l(e=>e.tenantState.signInState),h=l(e=>e.tenantState.magicLinkSignInFetchState.fetchState),s=l(e=>e.tenantState.loggedInUser),o=l(e=>B(e)),b=l(e=>G(e)),E=r.getSignedInUser(),v=P().mode;u.useEffect(()=>{s?.zeniSessionId==null&&n!=null&&D(n,p)&&a!=null&&g!=null&&(r.saveMagicLinkTriggered(n),t(H(n,a,g)))},[n,p,t,a,g,s?.zeniSessionId]),u.useEffect(()=>{S!=="In-Progress"||I!=="Completed"&&y!=="Completed"||s?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(s,s.zeniSessionId),r.saveSignedInUserTenants(J(b.tenantsInOrder),s.zeniSessionId),K(s.userId,s.zeniSessionId,o.tenantId),t(Q(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(X("Completed")),V.updateAppLocaleID(ae(o)),ie(s,o,v,void 0,b.tenantsInOrder),Y().then(()=>{const e=W();e!=null&&A(e)}),setTimeout(()=>{N.trackLogin(q.Event.loginSuccess,"email",Z(o.productSettings))},2e3))},[S,I,y,s,o,b,v,i.state,t]);const F=u.useCallback(()=>{m("/signin/auth")},[m]),j=u.useCallback(()=>{a!=null&&d!=null&&c!=null&&t(ee(a,c,d))},[a,d,t,c]),O=u.useCallback(e=>{a!=null&&n!=null&&c!=null&&d!=null&&t(te(e,a,c,d))},[a,n,t,c,d]);if(h==="Completed"&&d!=null)return f.jsx(R,{phoneNumber:x,verifyOtpFetchState:z.fetchState,resendVerifyDeviceOTPFetchState:C,onResendOtp:j,onVerifyOtp:O,onCancelVerifyDevice:F});if(S==="In-Progress"&&I==="Completed"&&s?.zeniSessionId!=null&&o!=null||E!=null){const e=i.state?.origin??"/";return f.jsx(T,{to:e,state:{...i.state,origin:""}})}if(!D(n,p)||g==null||h==="Error"){const e=i.state?.origin??"/",L=n!=null&&r.getLastUsedMagicLinkToken()===n;return f.jsx(T,{to:e,state:{...i.state,origin:"",magicLinkAlreadyUsed:L,magicLinkExpired:!L&&(r.isMagicLinkTriggered(n??"")||h==="Error"&&s?.zeniSessionId==null)}})}return f.jsx(oe,{"data-testid":"smooth-loader",children:f.jsx($,{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-CiVr43xr.js";import{j as r,k as i}from"./core-DpUaSmvm.js";import{T as n}from"./index-tqvFmBK2.js";import"./mui-CsdmIe4O.js";import"./sentry-DnSOFLDc.js";import"./zeni-epic-state-Cch--5Rd.js";import"./recharts-Bx9Bx3a3.js";import"./lottie-NYt-mSTs.js";import"./analytics-TRk1FnxP.js";import"./plaid-6OVQznh-.js";import"./dnd-DSHtKbZK.js";import"./stripe-DMRn4zHo.js";import"./lexical-BEQMr6JI.js";import"./pdf-BTUpRiCj.js";import"./utils-D153Jmpv.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]="7fa7d3d2-1117-4ca3-9e1f-863d8554e096",o._sentryDebugIdIdentifier="sentry-dbid-7fa7d3d2-1117-4ca3-9e1f-863d8554e096")}catch{}})();const a=i(null,function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}})(n);function h(){const o=r();return e.jsx(a,{navigate:o})}export{h as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CiVr43xr.js";import _ from"./NotFoundScreen-L8EzLjfw.js";import{a as r}from"./sentry-DnSOFLDc.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-DpUaSmvm.js";import{eM as F,OH as b,bn as H,bm as N,h2 as W,gy as $}from"./zeni-epic-state-Cch--5Rd.js";import{W as q,z as I,I as G,cp as J}from"./index-tqvFmBK2.js";import"./mui-CsdmIe4O.js";import{u as K}from"./useAskAiCfoHostNavButtonProps-Bc91AnAf.js";import{c as L}from"./useFetchSuggestedQuestionsWhenReady-DusNXe4C.js";import{M as Q}from"./MobileAppDrawer-DO1GrqQX.js";import"./recharts-Bx9Bx3a3.js";import"./lottie-NYt-mSTs.js";import"./analytics-TRk1FnxP.js";import"./plaid-6OVQznh-.js";import"./dnd-DSHtKbZK.js";import"./stripe-DMRn4zHo.js";import"./lexical-BEQMr6JI.js";import"./pdf-BTUpRiCj.js";import"./utils-D153Jmpv.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]="ac21512c-a654-46e7-915e-b48a2464414f",e._sentryDebugIdIdentifier="sentry-dbid-ac21512c-a654-46e7-915e-b48a2464414f")}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)}}})(J),Y=()=>{const e=M(),t=v(),c=q(),o=g(a=>F(a)),{aggregatedReportViewState:n}=g(a=>b(a)),{tenantEmailDomain:m}=U(),p=P(),d=I.getSignedInUser();if(d==null)throw new Error("Can't access this page without signing in...");const f=r.useRef(!1),[C,S]=r.useState(!1),w=H(o?.userRole??[]),k=o?.userRole?.includes("bookkeeping_admin")??!1,y=N(d),A=w||k||y,l=r.useCallback((a,i,O)=>{p(W({fromMonth:a,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((a,i)=>{n!=null&&n?.fetchState==="In-Progress"||l(a,i,!0),f.current=!0},[n?.fetchState,l]),x=r.useCallback((a,i)=>{l(a,i,!1)},[l]),u=a=>{S(a)},{isAiCfoOpen:j,setIsAiCfoOpen:R}=G(),{isAiCfoAccessEnabled:T,onAskAiCfoClick:E}=K({isAiCfoOpen:j,setIsAiCfoOpen:R,mobileExploreReferrer:"Performance"});return L({isDataReady:n?.fetchState==="Completed"}),A?s.jsxs(s.Fragment,{children:[s.jsx(Q,{isAppContentDrawerOpen:C,handleDrawerToggle:u}),s.jsx(X,{navigate:e,location:t,themeState:c,currentTenant:o,signedInUser:d,tenantEmailDomain:m,onReload:D,onTimeRangeSelect:x,handleDrawerToggle:u,isAiCfoAccessEnabled:T,onAskAiCfoClick:E})]}):s.jsx(z,{to:`/${m}/dashboard`,replace:!0})};function Ie(){return s.jsxs(B,{children:[s.jsx(h,{path:"*",element:s.jsx(Y,{})}),s.jsx(h,{path:"*",element:s.jsx(_,{})})]})}export{Ie as default};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CiVr43xr.js";import{a as o}from"./sentry-DnSOFLDc.js";import{g as f,j as H,h as V,u as M,k as N}from"./core-DpUaSmvm.js";import{m as W,Z as $,z as R,a$ as U,y as Z,J as z,I as J,_ as X,d as l,g as q,a1 as Q,b0 as G}from"./index-tqvFmBK2.js";import{eX as K,eM as Y,Lv as I,Lw as ee,to as ae,te as g,eZ as re,bL as ne,tj as te,Lx as se}from"./zeni-epic-state-Cch--5Rd.js";import{D as oe,e as ie,n as le,S as de}from"./mui-CsdmIe4O.js";import{u as ce}from"./useAskAiCfoHostNavButtonProps-Bc91AnAf.js";import{c as fe}from"./useFetchSuggestedQuestionsWhenReady-DusNXe4C.js";import{M as ue}from"./MobileAppDrawer-DO1GrqQX.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]="49b61cd0-d425-4b3e-8739-a82502a0de15",e._sentryDebugIdIdentifier="sentry-dbid-49b61cd0-d425-4b3e-8739-a82502a0de15")}catch{}})();const pe={overlayWidth:new Z(100,100,30)},we=({isReferralDrawerOpen:e,closeDrawerHandler:a})=>{const r=W(),n=$();if(R.getSignedInUser()==null)throw Error("Can't access How Referral works without signing in...");const i=()=>{a(!0)},u=f(d=>K(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(U,{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))}}})(Q(G));function Pe({isReferralDrawerOpen:e}){const a=H(),r=V(),n=M(),[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=>Y(t)),m=f(t=>I(t)),b=m.fetchState,w=f(t=>t.referralViewState.rewardsPlanFetchState),v=ee([m,w]),{areTenantIdsInSync:c}=z();o.useEffect(()=>{h?.rewardsLastViewedTime==null&&D===!1&&(r(ae()),A(!0))},[]),o.useEffect(()=>{!i&&b==="Not-Started"&&c&&(u(!0),r(g(!0)))},[b,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}=J(),{isAiCfoAccessEnabled:T,onAskAiCfoClick:B}=ce({isAiCfoOpen:L,setIsAiCfoOpen:O,mobileExploreReferrer:"Rewards"});fe({isDataReady:v===!0});const _={events:p?.userId!=null?[`private-${p.userId}.${P}`]:[],eventCallback:(t,S,F)=>{F.onEventReceived(t)}};return s.jsxs(s.Fragment,{children:[v===!0?s.jsx(X,{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,..._})]})}export{Pe as R};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-CiVr43xr.js";import{o as j,z as w,aI as y,_ as E,d as p,g as P,cy as F,n as L}from"./index-tqvFmBK2.js";import"./mui-CsdmIe4O.js";import l from"./NotFoundScreen-L8EzLjfw.js";import{a as d}from"./sentry-DnSOFLDc.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-DpUaSmvm.js";import{eM as z,Pe as C,M4 as M,Pf as _,to as Y,eZ as G,Pg as O,tm as Z}from"./zeni-epic-state-Cch--5Rd.js";import{R as x}from"./ReferralListScreen-Bwn976sI.js";import"./recharts-Bx9Bx3a3.js";import"./lottie-NYt-mSTs.js";import"./analytics-TRk1FnxP.js";import"./plaid-6OVQznh-.js";import"./dnd-DSHtKbZK.js";import"./stripe-DMRn4zHo.js";import"./lexical-BEQMr6JI.js";import"./pdf-BTUpRiCj.js";import"./utils-D153Jmpv.js";import"./useAskAiCfoHostNavButtonProps-Bc91AnAf.js";import"./useFetchSuggestedQuestionsWhenReady-DusNXe4C.js";import"./MobileAppDrawer-DO1GrqQX.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]="2ea0db88-cd58-403d-82d5-658b924e2d93",e._sentryDebugIdIdentifier="sentry-dbid-2ea0db88-cd58-403d-82d5-658b924e2d93")}catch{}})();const q=R(function(e,t){const n=C(e);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}},function(e,t){const{navigate:n}=t,i=w.getSignedInUser();return{onDismissClick:()=>{e(_()),n("..")},onSendClick:()=>{if(i!=null){const s=[],r=[];t.inviteFormCompayData.forEach(c=>{s.push(c.companyName),r.push(c.emailIds[0])}),p.trackInviteEmailClicked("send",s,r,s.length)}e(Z())},onUpdateInviteFormLocalData:s=>{e(O({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{i!=null&&p.trackInviteEmailClicked("cancel")}}})(F),B=()=>{const e=T(),[t,n]=d.useState(!1),[i,s]=d.useState(!1),r=b(o=>z(o)),c=V(),k=A(),{useDynamicConfig:g}=j(),f=w.getSignedInUser();if(f==null)throw Error("Can't access invite referral screen without signing in...");const m=b(o=>C(o)),D=f?.firstName!=null?f.firstName:"User",{configValue:h}=g(y.zeniCardsConfig),{configValue:v}=g(y.zeniAccountsConfig),I=M(v);d.useEffect(()=>{e(_()),r?.rewardsLastViewedTime==null&&i===!1&&(e(Y()),s(!0))},[]),d.useEffect(()=>{t||m.fetchState!=="Not-Started"||(n(!0),e(G(!0)))},[m.fetchState,e]);const N=r.company?.companyInfo.companyLegalName??r.companyName;return a.jsxs(a.Fragment,{children:[m.fetchState==="Completed"?a.jsx(E,{analytics:p,onLoad:o=>(S=>S.trackPageLoaded(P.Event.inviteEmailViewed))(o)}):null,a.jsx(q,{navigate:c,location:k,currentTenant:r,companyName:N,userName:D,inviteFormCompayData:m.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:I.maxAnnualPercentageYield})]})};function fe(){const{useFeatureGate:e}=j(),{isFeatureEnabled:t}=e(L.isReferralFeatureEnabled);return a.jsxs(U,{children:[a.jsx(u,{path:"/",element:t?a.jsx(x,{}):a.jsx(l,{})}),a.jsx(u,{path:"how-it-works",element:t?a.jsx(x,{isReferralDrawerOpen:!0}):a.jsx(l,{})}),a.jsx(u,{path:"refer/*",element:t?a.jsx(B,{}):a.jsx(l,{})}),a.jsx(u,{path:"*",element:a.jsx(l,{})})]})}export{fe as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CiVr43xr.js";import{a as n}from"./sentry-DnSOFLDc.js";import{h as u,u as m,j as p,N as g}from"./core-DpUaSmvm.js";import{z as c,B as b,t as y,d,g as h}from"./index-tqvFmBK2.js";import{IB as I,Ij as x,IC as j}from"./zeni-epic-state-Cch--5Rd.js";import{n as w}from"./mui-CsdmIe4O.js";import"./recharts-Bx9Bx3a3.js";import"./lottie-NYt-mSTs.js";import"./analytics-TRk1FnxP.js";import"./plaid-6OVQznh-.js";import"./dnd-DSHtKbZK.js";import"./stripe-DMRn4zHo.js";import"./lexical-BEQMr6JI.js";import"./pdf-BTUpRiCj.js";import"./utils-D153Jmpv.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]="841e35ac-fcda-4ef5-b584-5e3bc5c77bd9",e._sentryDebugIdIdentifier="sentry-dbid-841e35ac-fcda-4ef5-b584-5e3bc5c77bd9")}catch{}})();function $(){const e=u(),t=m(),i=p(),a=n.useRef(!1),f=c.isSignedIn(),r=t.state?.message==="logout",o=r||f;return n.useEffect(()=>{o&&!a.current&&(a.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||i("/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{$ as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CiVr43xr.js";import M from"./NotFoundScreen-L8EzLjfw.js";import{a as p}from"./sentry-DnSOFLDc.js";import{j as A,h as R,u as V,l as _,g as f,N as $,k as z,n as O,o as u}from"./core-DpUaSmvm.js";import{W,z as w,w as C,_ as q,d as E,g as Q,cz as H,k as Z,ao as J,r as K}from"./index-tqvFmBK2.js";import{eM as G,Ph as b,EM as v,EA as X,Fc as Y,Pi as P,Pj as ee,Ew as ae,Et as te,pB as se,pp as ne,jW as oe,EG as ie,Pk as re,ED as le,ER as ce,EQ as de}from"./zeni-epic-state-Cch--5Rd.js";import{n as pe}from"./mui-CsdmIe4O.js";import{u as me}from"./useInitialThreadRequest-DRkhHg1l.js";import{M as ue}from"./MobileAppDrawer-DO1GrqQX.js";import ke from"./TaskListScreen-B6TWQ7mN.js";import"./recharts-Bx9Bx3a3.js";import"./lottie-NYt-mSTs.js";import"./analytics-TRk1FnxP.js";import"./plaid-6OVQznh-.js";import"./dnd-DSHtKbZK.js";import"./stripe-DMRn4zHo.js";import"./lexical-BEQMr6JI.js";import"./pdf-BTUpRiCj.js";import"./utils-D153Jmpv.js";import"./useAskAiCfoHostNavButtonProps-Bc91AnAf.js";import"./useFetchSuggestedQuestionsWhenReady-DusNXe4C.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]="e112d63e-03ca-4d35-b0af-49509ef8c077",e._sentryDebugIdIdentifier="sentry-dbid-e112d63e-03ca-4d35-b0af-49509ef8c077")}catch{}})();const fe=z(function(e,t){const{location:n,taskGroupId:l}=t,d=P(e,t.taskId),c=G(e),i=l!=null?ee(e.taskGroupState,l):void 0,m=w.getSignedInUser(),a=c.tenantId,r={userId:m?.userId??"",sessionId:m?.zeniSessionId??"",tenantId:a??""},k=b(e);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:k,taskGroupName:l!=null&&i!=null&&i.isDefault===!1?i.name:void 0}},function(e,t){const{taskId:n,navigate:l,currentTenant:d,location:c,taskGroupId:i}=t,{tenantEmailDomain:m}=d;return{onSaveChangesToLocalStore:a=>{e(de({taskDetailLocalData:a,taskId:n}))},onSaveDetailClick:()=>{e(ce(n,i))},onArchiveTaskClick:()=>{t.taskId!=null&&e(le(t.taskId))},onDismissClick:()=>{if(c.state?.message==="triggerBackClick"){const a=K(c.state?.pathnameStackToGoBack),r=a.poppedPathname??"../../dashboard";l(r,{state:{pathnameStackToGoBack:a.newStack}})}else{const a=B(m),r=C(c.state?.pathnameStackToGoBack,c.pathname);l(a,{state:{pathnameStackToGoBack:r}})}e(re({taskId:n}))},onDeleteTaskClick:()=>{e(ie(n))},updateFilesEntity:a=>{e(oe({files:a}))},onDeleteFile:a=>{e(ne(a))},onEditFileName:(a,r)=>{e(se(a,r.split(".")[0]))},onReloadTaskDetailPage:()=>{e(v(!1,n))},onCreateTagClick:a=>{e(te(a,n))},onDeleteTagClick:a=>{e(ae(a,n))}}})(H);function I(){const e=A(),t=R(),n=V(),l=W(),{taskId:d,taskGroupId:c}=_(),i=f(o=>G(o)),m=me(i?.companyId),[a,r]=p.useState(!1),[k,F]=p.useState(!1),[S,L]=p.useState(!1),[x,N]=p.useState(!1),j=f(o=>b(o)),y=f(o=>o.taskGroupViewState.fetchState);p.useEffect(()=>{k||(F(!0),t(v(!1,d)))},[k,t]),p.useEffect(()=>{S||j.fetchState==="Completed"||(L(!0),t(X()))},[S,t,j.fetchState]),p.useEffect(()=>{x||y==="Completed"||(N(!0),t(Y()))},[x,t,y]);const D=f(o=>P(o,d)),g=D.fetchState,T=w.getSignedInUser();if(T==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($,{to:h,state:{pathnameStackToGoBack:U}})}return s.jsxs(s.Fragment,{children:[g==="Completed"?s.jsx(q,{analytics:E,onLoad:o=>(h=>h.trackPageLoaded(Q.Event.taskDetailPage))(o)}):null,s.jsxs(ge,{children:[s.jsx(ue,{isAppContentDrawerOpen:a,handleDrawerToggle:o=>{r(o)}}),s.jsx(fe,{analytics:E,currentTenant:i,handleZeniLogoClick:()=>{l.toggle()},initialOpenThreadRequest:m,location:n,loggedInUser:T,navigate:e,taskGroupId:c,taskId:d,taskDetailFetchState:g})]})]})}const ge=pe.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`,B=e=>`/${e}/tasks`;function Ae(){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(ke,{})}),s.jsx(u,{path:"/:taskId",element:s.jsx(I,{})}),s.jsx(u,{path:"*",element:s.jsx(M,{})})]})}export{Ae as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-CiVr43xr.js";import i from"./NotFoundScreen-L8EzLjfw.js";import{T as r}from"./TransactionDetailScreen-Dr9L06lH.js";import"./sentry-DnSOFLDc.js";import{n as s,o}from"./core-DpUaSmvm.js";import"./zeni-epic-state-Cch--5Rd.js";import"./recharts-Bx9Bx3a3.js";import"./index-tqvFmBK2.js";import"./mui-CsdmIe4O.js";import"./lottie-NYt-mSTs.js";import"./analytics-TRk1FnxP.js";import"./plaid-6OVQznh-.js";import"./dnd-DSHtKbZK.js";import"./stripe-DMRn4zHo.js";import"./lexical-BEQMr6JI.js";import"./pdf-BTUpRiCj.js";import"./utils-D153Jmpv.js";import"./useAskAiCfoHostNavButtonProps-Bc91AnAf.js";import"./useFetchSuggestedQuestionsWhenReady-DusNXe4C.js";import"./decodeURIComponentSafe-BLyCvwpO.js";import"./routePaths-D7MQFfTw.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]="004616b6-9a8d-4249-8f63-7ccdecb2e86b",e._sentryDebugIdIdentifier="sentry-dbid-004616b6-9a8d-4249-8f63-7ccdecb2e86b")}catch{}})();function q(){return t.jsxs(s,{children:[t.jsx(o,{path:"/:transactionTypeEncoded/:transactionId",element:t.jsx(r,{})}),t.jsx(o,{path:"/:transactionTypeEncoded/:transactionId/page-not-found",element:t.jsx(i,{})}),t.jsx(o,{path:"/:transactionTypeEncoded/:transactionId/vendor/create",element:t.jsx(r,{})}),t.jsx(o,{path:"/*",element:t.jsx(r,{})})]})}export{q as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./liveblocks-CiVr43xr.js";import{a as f}from"./sentry-DnSOFLDc.js";import{q as u,h,g as y,N as I}from"./core-DpUaSmvm.js";import{IA as b,eN as w,yV as x}from"./zeni-epic-state-Cch--5Rd.js";import{z as l,B as j,C as S,E}from"./index-tqvFmBK2.js";import{n as c}from"./mui-CsdmIe4O.js";import"./recharts-Bx9Bx3a3.js";import"./lottie-NYt-mSTs.js";import"./analytics-TRk1FnxP.js";import"./plaid-6OVQznh-.js";import"./dnd-DSHtKbZK.js";import"./stripe-DMRn4zHo.js";import"./lexical-BEQMr6JI.js";import"./pdf-BTUpRiCj.js";import"./utils-D153Jmpv.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]="19ff373f-653b-4346-b456-3e366c1d538c",e._sentryDebugIdIdentifier="sentry-dbid-19ff373f-653b-4346-b456-3e366c1d538c")}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(D,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(j,{fetchState:"In-Progress"}))},D=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(E.LargeRegular)`
|
|
10
|
-
display: flex;
|
|
11
|
-
color: ${S.important};
|
|
12
|
-
`;export{W as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{s as n}from"./index-tqvFmBK2.js";import"./mui-CsdmIe4O.js";import"./sentry-DnSOFLDc.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]="dd7bac7e-d9ed-4beb-9d05-38100444c129",e._sentryDebugIdIdentifier="sentry-dbid-dd7bac7e-d9ed-4beb-9d05-38100444c129")}catch{}})();function r(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{r as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as d}from"./sentry-DnSOFLDc.js";import{Z as b,a as p,w as m,M as u}from"./index-tqvFmBK2.js";import"./mui-CsdmIe4O.js";import{b as y}from"./useFetchSuggestedQuestionsWhenReady-DusNXe4C.js";import{j as k,u as g,l as h}from"./core-DpUaSmvm.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]="4e479814-3fb1-42c0-aae7-c22c71db6b77",e._sentryDebugIdIdentifier="sentry-dbid-4e479814-3fb1-42c0-aae7-c22c71db6b77")}catch{}})();function E(e){const{isAiCfoOpen:a,setIsAiCfoOpen:t,mobileExploreReferrer:n}=e,r=k(),o=g(),{tenantEmailDomain:s}=h(),f=b(),i=u(f),c=p();return{isAiCfoAccessEnabled:y()&&c&&!a,onAskAiCfoClick:d.useCallback(()=>{if(s!=null)if(i){const l=m(o.state?.pathnameStackToGoBack,o.pathname);r(`/${s}/ai-cfo/explore`,{state:{pathnameStackToGoBack:l,referrer:n}})}else t(!0)},[i,o.pathname,o.state,n,r,t,s])}}export{E as u};
|