@zeniai/web-app-ui 5.0.88-qa → 5.0.89-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-SY-dhjP_.js +1 -0
- package/dist/assets/{AddressScreen-h6F8nVYN.js → AddressScreen-Ctnukryb.js} +2 -2
- package/dist/assets/{AiCfoScreen-OLwbmiYD.js → AiCfoScreen-Dwnx3Zrg.js} +3 -3
- package/dist/assets/{BillPayApprovalRoutes-DsjRockq.js → BillPayApprovalRoutes-DWpeCKQ1.js} +1 -1
- package/dist/assets/{BillPayRoutes-YTAReJ2c.js → BillPayRoutes-CEWNKd4a.js} +10 -10
- package/dist/assets/{BusinessVerificationPageScreen-Cjm5MRXi.js → BusinessVerificationPageScreen-BFP865c-.js} +2 -2
- package/dist/assets/{ChargeCardRoutes-DBNrni6V.js → ChargeCardRoutes-DmmGBEVb.js} +8 -8
- package/dist/assets/{CompanyPassportScreen-Wc9Neaz1.js → CompanyPassportScreen-CUrTGAPx.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-gAh9UaQG.js → ConnectionAuthScreen-BAkm3SD5.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-BmBMaCZh.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-CbCcHxCy.js → CustomerOnboardingRoutes-DQC5OT_-.js} +3 -3
- package/dist/assets/{DashboardRoutes-DFf2imko.js → DashboardRoutes-DjR4FttM.js} +1 -1
- package/dist/assets/{DefaultTenantHome-Bx6WQ-Mz.js → DefaultTenantHome-BXapS7K_.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-w4AIyMqf.js → DomesticWireDetailScreen-CluJV1hP.js} +3 -3
- package/dist/assets/DrawerScreen-DTfCd2en.js +1 -0
- package/dist/assets/EntityDetailRoutes-CjmHAAQ4.js +1 -0
- package/dist/assets/{ExpenseAutomationRoutes-D3kquSUU.js → ExpenseAutomationRoutes-CNlHRTO1.js} +3 -3
- package/dist/assets/FeaturePreviewScreen-BWUt3LEA.js +1 -0
- package/dist/assets/{HubSpotOAuthCallbackScreen-O6i8xkbo.js → HubSpotOAuthCallbackScreen-CgvAaP1t.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-CS6bQmQL.js → MagicLinkRoutes-DTgPyHRi.js} +5 -5
- package/dist/assets/MagicLinkSignInScreen-BxKlzsH1.js +12 -0
- package/dist/assets/{MobileAppDrawer-CXLCRreY.js → MobileAppDrawer-BLGo796K.js} +1 -1
- package/dist/assets/NotFoundScreen-B1k_jOem.js +1 -0
- package/dist/assets/{NotificationRoutes-DvQQ7oaR.js → NotificationRoutes-yUtgb6NE.js} +1 -1
- package/dist/assets/OAuthConsentScreen-DSPFHGna.js +1 -0
- package/dist/assets/{PandLWithForecastRoutes-BO50q4p1.js → PandLWithForecastRoutes-C5G3jn5O.js} +1 -1
- package/dist/assets/PeopleRoutes-DG9PRPQo.js +22 -0
- package/dist/assets/PerformanceRoutes-CdqCJZzN.js +1 -0
- package/dist/assets/{Preview-D9U0nUr-.js → Preview-BT6vM7mS.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-CvW4YyLY.js → QBOConnectionScreen-jmt8kh8_.js} +1 -1
- package/dist/assets/{ReferralListScreen-B6ywI0R7.js → ReferralListScreen-BKwWhmDP.js} +2 -2
- package/dist/assets/{ReimbursementApprovalRoutes-BJfS22O6.js → ReimbursementApprovalRoutes-DXxXV9_W.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-BRDzYwiP.js → ReimbursementApprovalRuleDetailScreen-DtFME-kz.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-DprHryRK.js → ReimbursementRoutes-q-LM-3Mz.js} +7 -7
- package/dist/assets/{ReportsRoutes-DtUGaRZb.js → ReportsRoutes-DZjJw2so.js} +1 -1
- package/dist/assets/RewardsRoutes-D41cXIrP.js +1 -0
- package/dist/assets/{ScreenRoutes-Bm0blHDU.js → ScreenRoutes-DrDg9CqO.js} +2 -2
- package/dist/assets/{SettingsRoutes-BPx3mV39.js → SettingsRoutes-D7DVrB_r.js} +1 -1
- package/dist/assets/{SetupPagesScreen-DAXpkujH.js → SetupPagesScreen-1j44PFay.js} +5 -5
- package/dist/assets/SignInScreen-CNbjT65A.js +1 -0
- package/dist/assets/SignOutScreen-CkVX4P52.js +9 -0
- package/dist/assets/{TaskListScreen-CD0yo2G_.js → TaskListScreen-BMzXb3Gv.js} +2 -2
- package/dist/assets/{TaskRoutes-Eq8lUPTt.js → TaskRoutes-D5ysh0Fw.js} +2 -2
- package/dist/assets/TransactionDetailRoutes-BLkvSFsR.js +1 -0
- package/dist/assets/TransactionDetailScreen-AbBGaDF8.js +5 -0
- package/dist/assets/{TransactionListRoutes-Dhb4M-FX.js → TransactionListRoutes-CWiHUsRg.js} +1 -1
- package/dist/assets/{TreasuryRoutes-DzA3TiDm.js → TreasuryRoutes-CocKL-Oj.js} +6 -6
- package/dist/assets/{VendorsRoutes-B3NL3qG7.js → VendorsRoutes-a2NCvCPG.js} +1 -1
- package/dist/assets/WiseConfirmationScreen-DZiJs9hh.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-CaEKevKl.js → ZeniAccountRoutes-CEygLs18.js} +11 -11
- package/dist/assets/ZeniAccountStatementScreen-DLVOSwmC.js +9 -0
- package/dist/assets/{accountMappingHelper-9C6A5WnC.js → accountMappingHelper-BEJScFAE.js} +1 -1
- package/dist/assets/{analytics-B6udoEJT.js → analytics-CQQ1PG0J.js} +1 -1
- package/dist/assets/{analyticsHelper-DjIWqwJH.js → analyticsHelper-COFNU8CP.js} +1 -1
- package/dist/assets/{core-Bv8kdUko.js → core-DSsu1iyO.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-DeA-_wid.js → decodeURIComponentSafe-CRFR6Y3w.js} +1 -1
- package/dist/assets/{dnd-BIjMGuxw.js → dnd-Dok8dils.js} +1 -1
- package/dist/assets/{empty-B0o7u5U9.js → empty-CXjJmklp.js} +1 -1
- package/dist/assets/{empty-C0aR76s7.js → empty-UNMNFw7c.js} +1 -1
- package/dist/assets/{emptyVideoElement-CqIIeTnM.js → emptyVideoElement-tnzUOnbb.js} +1 -1
- package/dist/assets/{epic-CrvsC-s7.js → epic-D1i_boOy.js} +1 -1
- package/dist/assets/getLocaleForTenant-OYWr98Zl.js +1 -0
- package/dist/assets/{index-CQwJaifa.js → index-487NRPOP.js} +1 -1
- package/dist/assets/{index-BrmBaZjz.js → index-C20sBDka.js} +1 -1
- package/dist/assets/{index-DMNy_OK4.js → index-CCRUu3yu.js} +1 -1
- package/dist/assets/{index-BIwQAhFv.js → index-CPG6ITBm.js} +12068 -12060
- package/dist/assets/{index-D40kV0u0.js → index-CZgOkU7x.js} +1 -1
- package/dist/assets/{index-BUMFvFkQ.js → index-D3BIveAC.js} +2 -2
- package/dist/assets/{index-DdfWbiyW.js → index-XYg74ieW.js} +1 -1
- package/dist/assets/{index-CR9MozHS.js → index-mSdseThw.js} +1 -1
- package/dist/assets/{lexical-DOh49tNP.js → lexical-DO7p5ZXM.js} +1 -1
- package/dist/assets/{liveblocks-CCyJOwfy.js → liveblocks-D0ylGz77.js} +1 -1
- package/dist/assets/{lottie-DL8N42Il.js → lottie-Cu765PFn.js} +1 -1
- package/dist/assets/{mui-DtV_yZlj.js → mui-D9TDAUAO.js} +1 -1
- package/dist/assets/{pathToGoBack-CiuHSsDX.js → pathToGoBack-Ce7z8Bpw.js} +1 -1
- package/dist/assets/{pdf-BcmiSEKK.js → pdf-BzjCkfw3.js} +4 -4
- package/dist/assets/{pdf-lib-BnpCaznF.js → pdf-lib-DbsQH8ti.js} +1 -1
- package/dist/assets/{plaid--kCGp3zU.js → plaid-mYHRXlz3.js} +1 -1
- package/dist/assets/{pusher-BZDRaBu6.js → pusher-CY3dj9Ss.js} +1 -1
- package/dist/assets/{react-NMjvDQu7.js → react-BojljME6.js} +1 -1
- package/dist/assets/{react-CWO8W_RV.js → react-CjbzpIkI.js} +1 -1
- package/dist/assets/{react-tOJ0kYjj.js → react-D0Ns4Dzp.js} +1 -1
- package/dist/assets/{react-qXC97Fzp.js → react-DMOHZggG.js} +1 -1
- package/dist/assets/{react-7pVctLTA.js → react-D_kzyj8R.js} +1 -1
- package/dist/assets/{react-C-ieYYjZ.js → react-Doh3QE1A.js} +1 -1
- package/dist/assets/{recharts-DdIjbBfI.js → recharts-C7IODwRw.js} +1 -1
- package/dist/assets/{routePaths-BjY4Hbs8.js → routePaths-1uJ5ric0.js} +1 -1
- package/dist/assets/{sentry-Wnm-N8eT.js → sentry-C5UCCkb_.js} +1 -1
- package/dist/assets/{url-BIDr3jsK.js → url-BVj9PytH.js} +1 -1
- package/dist/assets/{url-BmD3S9u5.js → url-Bow-X1Kk.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-DaoVDdk6.js +1 -0
- package/dist/assets/{useDeviceId-Bi73VT1N.js → useDeviceId-CD8u4vjr.js} +1 -1
- package/dist/assets/{useFetchSuggestedQuestionsWhenReady-BWzQNqoL.js → useFetchSuggestedQuestionsWhenReady-IH_yzaTd.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-D1wLkM4c.js → useInitialThreadRequest-C_MqgvcA.js} +1 -1
- package/dist/assets/{utils-CRtSAyQU.js → utils-Cd1icpH6.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-NOFN_NLa.js → withTransactionSidePanel-xau0uwsY.js} +1 -1
- package/dist/assets/{zeni-epic-state-CIBk9-EN.js → zeni-epic-state-CFQMpWBE.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AddressRoutes-Djzm4hjd.js +0 -1
- package/dist/assets/CustomerOnboardingAuthScreen-Btu05i4h.js +0 -1
- package/dist/assets/DrawerScreen-CtmWzT0D.js +0 -1
- package/dist/assets/EntityDetailRoutes-BQF2uQ7X.js +0 -1
- package/dist/assets/FeaturePreviewScreen-dlYgctun.js +0 -1
- package/dist/assets/MagicLinkSignInScreen-aL0UHXqm.js +0 -12
- package/dist/assets/NotFoundScreen-D1-E1kBF.js +0 -1
- package/dist/assets/OAuthConsentScreen-BX4BwxWb.js +0 -1
- package/dist/assets/PeopleRoutes-CAjCGUS6.js +0 -22
- package/dist/assets/PerformanceRoutes-DuMTUSdQ.js +0 -1
- package/dist/assets/RewardsRoutes-Du6Z6CYq.js +0 -1
- package/dist/assets/SignInScreen-D_ZIzo4l.js +0 -1
- package/dist/assets/SignOutScreen-CyHjoyPO.js +0 -9
- package/dist/assets/TransactionDetailRoutes-B0zPxUO6.js +0 -1
- package/dist/assets/TransactionDetailScreen-Cffx3kdg.js +0 -5
- package/dist/assets/WiseConfirmationScreen-CcQUprGd.js +0 -12
- package/dist/assets/ZeniAccountStatementScreen-CsjbaEOP.js +0 -9
- package/dist/assets/getLocaleForTenant-lJA2tHmd.js +0 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-DHofygYw.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-CPG6ITBm.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-C5UCCkb_.js"><link rel="modulepreload" crossorigin href="/assets/core-DSsu1iyO.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-CFQMpWBE.js"><link rel="modulepreload" crossorigin href="/assets/mui-D9TDAUAO.js"><link rel="modulepreload" crossorigin href="/assets/analytics-CQQ1PG0J.js"><link rel="modulepreload" crossorigin href="/assets/utils-Cd1icpH6.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.89-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.14",
|
|
31
31
|
"@zeniai/client-epic-state": "5.0.49",
|
|
32
|
-
"@zeniai/web-components": "4.0.
|
|
32
|
+
"@zeniai/web-components": "4.0.96",
|
|
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-CCyJOwfy.js";import{A as i}from"./AddressScreen-h6F8nVYN.js";import s from"./NotFoundScreen-D1-E1kBF.js";import"./sentry-Wnm-N8eT.js";import{n as d,o as r}from"./core-Bv8kdUko.js";import"./zeni-epic-state-CIBk9-EN.js";import"./recharts-DdIjbBfI.js";import"./index-BIwQAhFv.js";import"./mui-DtV_yZlj.js";import"./analytics-B6udoEJT.js";import"./plaid--kCGp3zU.js";import"./dnd-BIjMGuxw.js";import"./stripe-DMRn4zHo.js";import"./lottie-DL8N42Il.js";import"./lexical-DOh49tNP.js";import"./pdf-BcmiSEKK.js";import"./utils-CRtSAyQU.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]="624154e3-3694-4a3c-b645-a66b8e12404c",t._sentryDebugIdIdentifier="sentry-dbid-624154e3-3694-4a3c-b645-a66b8e12404c")}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 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-CCyJOwfy.js";import{z as a}from"./index-BIwQAhFv.js";import{g as n}from"./QBOConnectionScreen-CvW4YyLY.js";import"./sentry-Wnm-N8eT.js";import{u as p,N as s}from"./core-Bv8kdUko.js";import"./zeni-epic-state-CIBk9-EN.js";import"./recharts-DdIjbBfI.js";import"./mui-DtV_yZlj.js";import"./analytics-B6udoEJT.js";import"./plaid--kCGp3zU.js";import"./dnd-BIjMGuxw.js";import"./stripe-DMRn4zHo.js";import"./lottie-DL8N42Il.js";import"./lexical-DOh49tNP.js";import"./pdf-BcmiSEKK.js";import"./utils-CRtSAyQU.js";import"./empty-B0o7u5U9.js";import"./pdf-lib-BnpCaznF.js";import"./index-DdfWbiyW.js";import"./url-BmD3S9u5.js";import"./index-D40kV0u0.js";import"./decodeURIComponentSafe-DeA-_wid.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]="8d904e89-6b8e-4c86-980c-585a84d9d789",t._sentryDebugIdIdentifier="sentry-dbid-8d904e89-6b8e-4c86-980c-585a84d9d789")}catch{}})();const U=()=>{const t=p(),{code:o,realmId:r,state:e}=n(t.search),d=a.getSignedInUser()?.userId??"";if(f(o,r,e,d)===!0){const m=`../../${e}/onboarding?code=${o}&realmId=${r}&state=auth_flow`;return i.jsx(s,{to:m})}return i.jsx(s,{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 i}from"./liveblocks-CCyJOwfy.js";import{K as c,F as f,m as l}from"./index-BIwQAhFv.js";import{D as p}from"./mui-DtV_yZlj.js";import"./sentry-Wnm-N8eT.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]="355dc275-908f-43cf-ad7c-6e3e7f556647",e._sentryDebugIdIdentifier="sentry-dbid-355dc275-908f-43cf-ad7c-6e3e7f556647")}catch{}})();const u={drawerLeftMargin:new f(0,0,240)};function m(e){const{isOpen:r,drawerLeftMargin:o,children:t,onClose:s}=e,n=c(),a=o?.valuePx(n)??u.drawerLeftMargin.valuePx(n),d=l();return i.jsx(p,{anchor:"right",open:r,PaperProps:{style:{width:`calc(100% - ${a})`}},slotProps:{backdrop:{style:{backgroundColor:d.colors.black,opacity:.8,cursor:"pointer"}}},onClose:s,children:t})}export{m as D};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CCyJOwfy.js";import{a as d}from"./sentry-Wnm-N8eT.js";import{j as B,h as F,u as G,l as q,g as c,N as K,k as L,n as O,o as N}from"./core-Bv8kdUko.js";import{LA as _,eR as R,KZ as z,kD as H,Hz as I,LF as M,Ks as W,jD as Y,HA as S,L2 as $,L3 as V,Ku as Z,Kt as J}from"./zeni-epic-state-CIBk9-EN.js";import{aO as Q,c as U,p as X,v as tt}from"./index-BIwQAhFv.js";import"./mui-DtV_yZlj.js";import{d as k}from"./decodeURIComponentSafe-DeA-_wid.js";import{w as et}from"./withTransactionSidePanel-NOFN_NLa.js";import{f as at,c as nt}from"./routePaths-BjY4Hbs8.js";import"./recharts-DdIjbBfI.js";import"./analytics-B6udoEJT.js";import"./plaid--kCGp3zU.js";import"./dnd-BIjMGuxw.js";import"./stripe-DMRn4zHo.js";import"./lottie-DL8N42Il.js";import"./lexical-DOh49tNP.js";import"./pdf-BcmiSEKK.js";import"./utils-CRtSAyQU.js";import"./useAskAiCfoHostNavButtonProps-DHofygYw.js";import"./useFetchSuggestedQuestionsWhenReady-BWzQNqoL.js";import"./TransactionDetailScreen-Cffx3kdg.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]="548e546d-be65-44b5-a708-07fcc9d7c9c4",a._sentryDebugIdIdentifier="sentry-dbid-548e546d-be65-44b5-a708-07fcc9d7c9c4")}catch{}})();const ot=L(function(a,t){const e=t.entity,o=M(a,t.entity,"EntityDetail");return{selectedEntity:e,autoCompleteData:{autoCompleteText:e.name,entityAutoCompleteView:W(a,"common")},trendWithTransactionsReport:o,analytics:U,isAccountingClassesEnabled:Y(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(Z({searchString:e,searchOrigin:"common"})):e.trim().length===0&&a(J("common"))},onAutoCompleteEntity:e=>{const o=at(e,t.tenantEmailDomain);a($()),a(V()),t.resetTrendIsFetchedStates(),t.navigate(o,{replace:!0,state:{pathnameStackToGoBack:t.location.state?.pathnameStackToGoBack}})},onCancelAutoComplete:()=>{const e=X(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=B(),o=F(),l=G(),[m,T]=d.useState(!1),[h,D]=d.useState(!1),{tenantEmailDomain:C,entityIdEncoded:j,entityNameEncoded:v}=q(),r=k(j??""),p=k(v??""),u=rt(r,p),x=[r,p].filter(n=>n!=null),i={name:p,id:r,type:a,zeniId:r,qboId:r},g=c(n=>_(n.customerIncomeState,n.vendorExpenseState,n.trendState,i,"quarter")),w=c(n=>R(n).company?.companyInfo.firstMonthOfFY??1),f=c(n=>z(n.trendWithTransactionsState,i,"EntityDetail"));d.useEffect(()=>{m===!1&&u===!0&&(T(!0),o(H(i)))},[m,u,i]);const E=c(n=>n.trendState.fetchState),P=f?.selectedPeriod?.timePeriod??g,A=function(n,y){return n!=null&&y!=null?{startDate:n.startDate,endDate:y?.endDate}:y}(f?.selectedPeriod?.timePeriod,g);return d.useEffect(()=>{m===!0&&h===!1&&E==="Completed"&&(D(!0),P!=null&&o(I(i,"EntityDetail",{timeframe:f?.selectedPeriod?.timeframe??"quarter",timePeriod:P})))},[m,h,E]),u?s.jsx(ot,{firstMonthOfFY:w,tenantEmailDomain:C,location:l,navigate:e,entity:i,defaultTransactionTimePeriod:A,resetTrendIsFetchedStates:()=>{T(!1),D(!1)},...t}):s.jsx(K,{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 vt({entityType:a}){return s.jsx(O,{children:s.jsx(N,{path:"/:entityIdEncoded/:entityNameEncoded/*",element:s.jsx(it,{entityType:a})})})}export{vt as EntityDetailRoutes,vt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CCyJOwfy.js";import{a as r}from"./sentry-Wnm-N8eT.js";import{_ as c,$ as l,a0 as p,p as m}from"./index-BIwQAhFv.js";import"./mui-DtV_yZlj.js";import f from"./NotFoundScreen-D1-E1kBF.js";import{j as u,u as b}from"./core-Bv8kdUko.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]="2e827b03-3332-44c2-8c4e-3d6d0e2a5436",e._sentryDebugIdIdentifier="sentry-dbid-2e827b03-3332-44c2-8c4e-3d6d0e2a5436")}catch{}})();const j=()=>{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),i=n.poppedPathname??k();e(i,{state:{pathnameStackToGoBack:n.newStack}})})()},[]),o=c(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{j as F};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-CCyJOwfy.js";import{a as g}from"./sentry-Wnm-N8eT.js";import{h as O,u as w,j as _,q as J,g as l,N as x}from"./core-Bv8kdUko.js";import{z as r,m as M,D as P,d as V,c as A,e as N,i as R,j as q,g as K}from"./index-BIwQAhFv.js";import{eR as W,Jl as $,Jv as B,Jm as G,eS as H,fl as Q,Jr as X,fK as Y,cU as Z,Jw as ee,Jx as te}from"./zeni-epic-state-CIBk9-EN.js";import{n as ne}from"./mui-DtV_yZlj.js";import{u as ae}from"./useDeviceId-Bi73VT1N.js";import{f as se}from"./analyticsHelper-DjIWqwJH.js";import{t as ie}from"./getLocaleForTenant-lJA2tHmd.js";import"./recharts-DdIjbBfI.js";import"./analytics-B6udoEJT.js";import"./plaid--kCGp3zU.js";import"./dnd-BIjMGuxw.js";import"./stripe-DMRn4zHo.js";import"./lottie-DL8N42Il.js";import"./lexical-DOh49tNP.js";import"./pdf-BcmiSEKK.js";import"./utils-CRtSAyQU.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]="ed600a29-35bd-48f2-a42b-ae04e7a975fc",t._sentryDebugIdIdentifier="sentry-dbid-ed600a29-35bd-48f2-a42b-ae04e7a975fc")}catch{}})();const D=(t,s)=>t!=null&&t.length>0&&s==="magic_links";function De(){const t=O(),s=w(),m=_(),[k]=J(),n=k.get("token"),p=k.get("stytch_token_type"),f=r.getMagicLinkCodeVerifier(),i=ae(),{otpChallenge:d,twoFAPhoneNumber:T,magicLinkEmail:c,verifyDeviceFetchState:z,resendVerifyDeviceOTPFetchState:C}=l(e=>e.tenantState),S=l(e=>e.tenantState.fetchState),y=l(e=>e.tenantState.activeTenantFetchState.fetchState),I=l(e=>e.tenantState.signInState),h=l(e=>e.tenantState.magicLinkSignInFetchState.fetchState),a=l(e=>e.tenantState.loggedInUser),o=l(e=>W(e)),b=l(e=>$(e)),E=r.getSignedInUser(),v=M().mode;g.useEffect(()=>{a?.zeniSessionId==null&&n!=null&&D(n,p)&&i!=null&&f!=null&&(r.saveMagicLinkTriggered(n),t(B(n,i,f)))},[n,p,t,i,f,a?.zeniSessionId]),g.useEffect(()=>{I!=="In-Progress"||S!=="Completed"&&y!=="Completed"||a?.zeniSessionId==null||o==null||(n!=null&&r.saveLastUsedMagicLinkToken(n),r.saveSignedInUserWithSession(a,a.zeniSessionId),r.saveSignedInUserTenants(G(b.tenantsInOrder),a.zeniSessionId),H(a.userId,a.zeniSessionId,o.tenantId),t(Q(o.tenantId)),r.saveActiveTenantDomainForUser(o.tenantEmailDomain),t(X("Completed")),P.updateAppLocaleID(ie(o)),se(a,o,v,void 0,b.tenantsInOrder),Y().then(()=>{const e=K();e!=null&&V(e)}),setTimeout(()=>{A.trackLogin(N.Event.loginSuccess,"email",Z(o.productSettings))},2e3))},[I,S,y,a,o,b,v,s.state,t]);const j=g.useCallback(()=>{m("/signin/auth")},[m]),U=g.useCallback(()=>{i!=null&&d!=null&&c!=null&&t(ee(i,c,d))},[i,d,t,c]),F=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:T,verifyOtpFetchState:z.fetchState,resendVerifyDeviceOTPFetchState:C,onResendOtp:U,onVerifyOtp:F,onCancelVerifyDevice:j});if(I==="In-Progress"&&S==="Completed"&&a?.zeniSessionId!=null&&o!=null||E!=null){const e=s.state?.origin??"/";return u.jsx(x,{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(x,{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(q,{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 r}from"./liveblocks-CCyJOwfy.js";import{j as i,k as n}from"./core-Bv8kdUko.js";import{R as e}from"./index-BIwQAhFv.js";import"./mui-DtV_yZlj.js";import"./sentry-Wnm-N8eT.js";import"./zeni-epic-state-CIBk9-EN.js";import"./recharts-DdIjbBfI.js";import"./analytics-B6udoEJT.js";import"./plaid--kCGp3zU.js";import"./dnd-BIjMGuxw.js";import"./stripe-DMRn4zHo.js";import"./lottie-DL8N42Il.js";import"./lexical-DOh49tNP.js";import"./pdf-BcmiSEKK.js";import"./utils-CRtSAyQU.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]="834483cb-62b1-4474-ad2d-42828a1455d2",o._sentryDebugIdIdentifier="sentry-dbid-834483cb-62b1-4474-ad2d-42828a1455d2")}catch{}})();const a=n(null,function(o,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}})(e);function h(){const o=i();return r.jsx(a,{navigate:o})}export{h as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as m}from"./liveblocks-CCyJOwfy.js";import{a as r}from"./sentry-Wnm-N8eT.js";import{h as A,u as C,g as o,N as J}from"./core-Bv8kdUko.js";import{JK as M,eR as N,f4 as P,JL as R,JM as j,JN as x,JO as z,mT as D,IG as L}from"./zeni-epic-state-CIBk9-EN.js";import{z as h,N as I}from"./index-BIwQAhFv.js";import"./mui-DtV_yZlj.js";import"./recharts-DdIjbBfI.js";import"./analytics-B6udoEJT.js";import"./plaid--kCGp3zU.js";import"./dnd-BIjMGuxw.js";import"./stripe-DMRn4zHo.js";import"./lottie-DL8N42Il.js";import"./lexical-DOh49tNP.js";import"./pdf-BcmiSEKK.js";import"./utils-CRtSAyQU.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new n.Error().stack;s&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[s]="094f9f29-e3e4-43d2-a954-89f473c8002f",n._sentryDebugIdIdentifier="sentry-dbid-094f9f29-e3e4-43d2-a954-89f473c8002f")}catch{}})();function ee(){const n=A(),s=C(),{params:t,error:i}=r.useMemo(()=>M(s.search),[s.search]),w=r.useMemo(()=>new URLSearchParams(s.search).get("client_name")??t?.clientId??"Unknown Application",[s.search,t]),f=h.isSignedIn(),a=h.getSignedInUser(),p=o(e=>N(e)),l=o(e=>P(e)),d=o(e=>e.tenantState.fetchState),y=o(R),v=o(j),u=o(x),[S,E]=r.useState(null),[_,b]=r.useState(null);r.useEffect(()=>{document.querySelector("#app-shell-loader")?.remove()},[]),r.useEffect(()=>()=>{n(z())},[n,s.search]),r.useEffect(()=>{i!=null&&console.warn("[OAuthConsent] invalid params:",i)},[i]);const g=r.useRef(!1);r.useEffect(()=>{f&&a!=null&&!g.current&&(d!=="Not-Started"&&d!=="Error"||(g.current=!0,n(D(a.userId,a.zeniSessionId??void 0))))},[f,a,d,n]),r.useEffect(()=>{u!=null&&u!==""&&(window.location.href=u)},[u]);const U=r.useMemo(()=>{if(p?.tenantId!=null)return p.tenantId;const e=h.getActiveTenantForUser()?.tenantId;return e!=null&&l.some(T=>T.tenantId===e)?e:l.length===1?l[0].tenantId:null},[p?.tenantId,l]),c=S??U;return i!=null?m.jsx(I,{variant:"invalid_params",paramsError:i}):f?m.jsx(I,{variant:"signed_in",clientName:w,userEmail:a?.userEmail,isInitializing:d!=="Completed",tenants:l,selectedTenantId:c,onSelectTenant:E,approveError:_??v,isApproving:y==="In-Progress",showAllowButton:c!=null,onApprove:()=>{t!=null&&a!=null&&c!=null&&n(L(a.userId,a.zeniSessionId??void 0,c,t.clientId,t.redirectUri,t.codeChallenge,t.codeChallengeMethod,t.state,t.responseType))},onDeny:()=>{if(t!=null)try{const e=new URL(t.redirectUri);e.searchParams.set("error","access_denied"),e.searchParams.set("error_description","The user denied the request"),e.searchParams.set("state",t.state),window.location.href=e.toString()}catch{b("Unable to deny: redirect_uri is not a valid URL. Close this window or contact support.")}}}):m.jsx(J,{to:"/signin/auth",state:{origin:s.pathname+s.search},replace:!0})}export{ee as default};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CCyJOwfy.js";import{Kb as te,eR as Q,jD as W,eX as Y,eV as ne,HD as q,JR as oe,tm as Ee,Kc as N,ta as ke,tv as Ie,tp as ie,te as re,tt as Pe,tq as je,Kd as le,v4 as Te,Ke as ve,fA as Le,Kf as $,tj as de,th as ce,ty as Fe,c2 as Ae}from"./zeni-epic-state-CIBk9-EN.js";import{K as pe,C as X,A as E,z as M,a6 as ue,J as me,ah as ge,ai as Re,F as he,o as R,M as fe,D as Ce,aj as Oe,W as Ve,S as Ue,c as ye,e as Be,v as Ze,ak as Ke,T as $e}from"./index-BIwQAhFv.js";import{D as be,n as G,S as Se}from"./mui-DtV_yZlj.js";import ae from"./NotFoundScreen-D1-E1kBF.js";import{a as r}from"./sentry-Wnm-N8eT.js";import{h as ee,l as He,g as m,j as ze,u as We,k as Me,n as se,o as K}from"./core-Bv8kdUko.js";import{u as Ge}from"./useAskAiCfoHostNavButtonProps-DHofygYw.js";import{c as _e}from"./useFetchSuggestedQuestionsWhenReady-BWzQNqoL.js";import{M as Je}from"./MobileAppDrawer-CXLCRreY.js";import"./recharts-DdIjbBfI.js";import"./analytics-B6udoEJT.js";import"./plaid--kCGp3zU.js";import"./dnd-BIjMGuxw.js";import"./stripe-DMRn4zHo.js";import"./lottie-DL8N42Il.js";import"./lexical-DOh49tNP.js";import"./pdf-BcmiSEKK.js";import"./utils-CRtSAyQU.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]="c592a302-ca47-440d-9094-03354d08898f",a._sentryDebugIdIdentifier="sentry-dbid-c592a302-ca47-440d-9094-03354d08898f")}catch{}})();const Ne={overlayWidth:new he(100,100,48)},H=Ce.getLocalizedStrings().peoplePage.invitePage,Qe=({companyId:a,managersListView:t,companyPassportView:l,classListView:n,mode:g,isEditPeopleDrawerOpen:o,closeDrawerHandler:b})=>{const h=pe(),p=ee(),[O,V]=r.useState(!1),[I,S]=r.useState(!1),{userId:w}=He(),d=m(e=>te(e)),u=m(e=>Q(e)),D=m(e=>W(e)),{useFeatureGate:f}=X(),{isFeatureEnabled:k}=f(E.isDebitCardFeatureEnabled),P=Y(k,u),v=ne(u),L=q(u),U=oe(u),B=!!u.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,x=!P&&D&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||l.fetchState!=="Completed"||a==null;if(M.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const C=()=>{p(N()),b()},F=()=>{O===!0?S(!0):C()},Z=l.companyView?.controllers?.map(e=>e.user),{isFeatureEnabled:c}=f(E.isDepositAccountsFeatureEnabled),{isFeatureEnabled:j}=f(E.isChargeCardFeatureEnabled),T=ue(u,j,k),{isFeatureEnabled:A}=f(E.isTreasuryEnabled),y={peopleDetails:d,classList:n.classes,managersList:t.users,controllersList:Z,mode:g,isZeniTenant:L,isAccountingClassesEnabled:D,isReimbursementDisabled:B===!1,isZeniAccountsDisabled:c===!1,isChargeCardDisabled:T===!1,isTreasuryDisabled:A===!1,isLiteRoleDisabled:U===!1,isBankingOnlyTenant:P,isCardsOnlyTenant:v,onResetClick:C,onDeleteUser:e=>{p(re(e.userId,e.userRole.userRoleId))},onPeopleLocalDataUpdated:e=>{p(ie({peopleLocalData:e})),V(!0)},onSaveClick:()=>{p(g==="zeni_only"?ke(a):Ie(L))},onCloseClick:F,isLoading:x||d.person==null},i={onOkClick:()=>{S(!1),C()},onCancelClick:()=>{S(!1)}};return r.useEffect(()=>{x===!1&&w!=null&&p(Ee(w))},[x,w]),r.useEffect(()=>{d.updatePersonState.fetchState==="Completed"&&C()},[d.updatePersonState.fetchState]),s.jsx(be,{anchor:"right",open:o,PaperProps:{style:{width:Ne.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:me.overlayDark,cursor:"pointer"}}},onClose:F,children:s.jsxs(Ye,{onClick:e=>e.stopPropagation(),children:[I===!0?s.jsx(ge,{titleComponent:s.jsx(we,{children:H.discardTitle}),descriptionComponent:s.jsx(De,{children:H.discardDescription}),primaryButtonText:H.discard,secondaryButtonText:H.no,action:i,isEditPopup:!0}):null,s.jsx(Re,{...y})]})})},Ye=G(Se)`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`,we=G(fe.H6Regular)`
|
|
6
|
-
margin-top: ${R.sp7};
|
|
7
|
-
padding-left: ${R.sp8};
|
|
8
|
-
padding-right: ${R.sp8};
|
|
9
|
-
color: ${a=>a.theme.colors.primary};
|
|
10
|
-
word-break: break-word;
|
|
11
|
-
`,De=G(fe.LargeRegularSp)`
|
|
12
|
-
color: ${a=>a.theme.colors.hero};
|
|
13
|
-
padding-left: ${R.sp8};
|
|
14
|
-
padding-right: ${R.sp8};
|
|
15
|
-
margin-bottom: 30px;
|
|
16
|
-
margin-top: ${R.sp4};
|
|
17
|
-
white-space: pre-line;
|
|
18
|
-
`,qe={overlayWidth:new he(100,100,48)},z=Ce.getLocalizedStrings().peoplePage.invitePage,Xe=({companyId:a,managersListView:t,companyPassportView:l,classListView:n,mode:g,isInvitePeopleDrawerOpen:o,closeDrawerHandler:b})=>{const h=pe(),p=ee(),[O,V]=r.useState(!1),[I,S]=r.useState(!1),w=m(i=>te(i)),d=m(i=>Q(i)),u=m(i=>W(i)),{useFeatureGate:D}=X(),{isFeatureEnabled:f}=D(E.isDebitCardFeatureEnabled),k=Y(f,d),P=ne(d),v=q(d),L=oe(d),U=!!d.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,B=!k&&u&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||l.fetchState!=="Completed"||a==null;if(M.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const x=()=>{b(),p(N())},C=()=>{O===!0?S(!0):x()},F={onOkClick:()=>{S(!1),x()},onCancelClick:()=>{S(!1)}},Z=l.companyView?.controllers.map(i=>i.user),{isFeatureEnabled:c}=D(E.isDepositAccountsFeatureEnabled),{isFeatureEnabled:j}=D(E.isChargeCardFeatureEnabled),T=ue(d,j,f),{isFeatureEnabled:A}=D(E.isTreasuryEnabled),y={classList:n.classes,managersList:t.users,controllersList:Z,mode:g,isZeniTenant:v,onPeopleLocalDataUpdated:i=>{p(ie({peopleLocalData:i})),V(!0)},onResetClick:x,onSaveClick:()=>{p(g==="zeni_only"?Pe(a):je())},onCloseClick:C,peopleDetails:w,isAccountingClassesEnabled:u,isReimbursementDisabled:U===!1,isLiteRoleDisabled:L===!1,isZeniAccountsDisabled:c===!1,isChargeCardDisabled:T===!1,isTreasuryDisabled:A===!1,isBankingOnlyTenant:k,isCardsOnlyTenant:P,isLoading:B};return r.useEffect(()=>{w.invitePersonState.fetchState==="Completed"&&(b(),p(N()))},[w.invitePersonState.fetchState]),s.jsx(be,{anchor:"right",open:o,PaperProps:{style:{width:qe.overlayWidth.valuePercentage(h),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:me.overlayDark,cursor:"pointer"}}},onClose:C,children:s.jsxs(ea,{onClick:i=>i.stopPropagation(),children:[I===!0?s.jsx(ge,{titleComponent:s.jsx(we,{children:z.discardTitle}),descriptionComponent:s.jsx(De,{children:z.discardDescription}),primaryButtonText:z.discard,secondaryButtonText:z.no,action:F}):null,s.jsx(Oe,{...y})]})})},ea=G(Se)`
|
|
19
|
-
display: flex;
|
|
20
|
-
min-height: 100%;
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
`,aa=Me(function(a,t){const l=le(a),n=M.getSignedInUser();return{data:l,loggedinUserId:n?.userId??"",isZeniTenant:t.isZeniTenant===!0,shouldFetchClasses:t.shouldFetchClasses,isZeniAdminUser:n?.userEmailDomain==="zeni.ai"&&t.isZeni===!0,isAccountingClassesEnabled:W(a),analytics:ye}},function(a,t){const{navigate:l,companyId:n,shouldFetchClasses:g}=t;return{personAction:{onPersonDelete:(o,b)=>{a(re(o,b))},onResendInvite:o=>{a(Fe(o))},onReloadPeople:()=>{a(de()),a(ce(n,g))},onBackClick:()=>{l("../../")},onModeChange:o=>{a($({mode:o,searchText:"",sortKey:"name",sortOrder:"ascending"}))},onSearchTextChanged:o=>{a($({searchText:o}))}}}})(Ke);function J({isInvitePeopleDrawerOpen:a,isEditPeopleDrawerOpen:t}){const l=ze(),n=ee(),g=We(),{areTenantIdsInSync:o}=Ve(),b=M.getSignedInUser(),h=m(e=>Q(e)),{useFeatureGate:p}=X(),{isFeatureEnabled:O}=p(E.isDebitCardFeatureEnabled),V=m(e=>W(e)),I=!Y(O,h)&&V,S=q(h),w=h?.tenantId,{tenantEmailDomain:d}=h,[u,D]=r.useState(!1),[f,k]=r.useState(!1),[P,v]=r.useState(!1),[L,U]=r.useState("off"),[B,x]=r.useState(!1),C=e=>{x(e)},{isAiCfoAccessEnabled:F,onAskAiCfoClick:Z}=Ge({mobileExploreReferrer:"People"}),c=m(e=>le(e));_e({isDataReady:c.fetchState==="Completed"});const j=m(e=>Te(e.classState,e.classListState)),T=m(e=>ve(e.userState,e.userRoleState,e.userListViewState,"manager")),A=m(e=>Le(e)),y=h?.companyId;r.useEffect(()=>{u&&L===c.uiState.mode||!o||(n($({searchText:"",sortKey:"name",sortOrder:"ascending"})),U(c.uiState.mode),D(!0),n(de()))},[u,b,w,n,c.uiState.mode,o]),r.useEffect(()=>{y!=null&&o&&n(ce(y,I))},[y,I,o]),r.useEffect(()=>{k(a!=null&&a===!0),v(t!=null&&t===!0&&t)},[a,t]),r.useEffect(()=>{n($({searchText:"",sortKey:"name",sortOrder:"ascending"}))},[]);const i=()=>{k(!1),v(!1),l("../")};return s.jsxs(s.Fragment,{children:[c.fetchState==="Completed"?s.jsx(Ue,{analytics:ye,onLoad:e=>e.trackPageLoaded(Be.Event.members)}):null,f===!0?s.jsx(Xe,{closeDrawerHandler:i,isInvitePeopleDrawerOpen:f,managersListView:T,companyPassportView:A,classListView:j,companyId:y,mode:c.uiState.mode}):null,P===!0?s.jsx(Qe,{closeDrawerHandler:i,isEditPeopleDrawerOpen:P,managersListView:T,companyPassportView:A,classListView:j,companyId:y,mode:c.uiState.mode}):null,s.jsx(Je,{isAppContentDrawerOpen:B,handleDrawerToggle:C}),s.jsx(aa,{navigate:l,signedInUser:b,isZeni:h.isZeni,isZeniTenant:S,peopleUIState:c.uiState,companyId:y,shouldFetchClasses:I,classList:j,managersView:T,peopleView:c,onInvitePeopleClick:()=>{l("./new")},onColumnSortConfigChanged:(e,_)=>{n($({sortKey:e,sortOrder:_}))},onRowClick:e=>{const _=`/${d}/people/${encodeURIComponent(e)}/edit`,xe=Ze(g.state?.pathnameStackToGoBack,g.pathname);l(_,{state:{pathnameStackToGoBack:xe}})},onClickMenuIcon:()=>{C(!0)},isAiCfoAccessEnabled:F,onAskAiCfoClick:Z})]})}function wa(){const a=$e();return Ae(a?.loggedInUserRole??[])?s.jsxs(se,{children:[s.jsx(K,{path:"/",element:s.jsx(J,{})}),s.jsx(K,{path:"new",element:s.jsx(J,{isInvitePeopleDrawerOpen:!0})}),s.jsx(K,{path:":userId/edit",element:s.jsx(J,{isEditPeopleDrawerOpen:!0})}),s.jsx(K,{path:"*",element:s.jsx(ae,{})})]}):s.jsx(se,{children:s.jsx(K,{path:"*",element:s.jsx(ae,{})})})}export{wa as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CCyJOwfy.js";import E from"./NotFoundScreen-D1-E1kBF.js";import{a as r}from"./sentry-Wnm-N8eT.js";import{j as _,u as v,g as p,l as P,h as M,N as U,k as z,n as O,o as h}from"./core-Bv8kdUko.js";import{eR as B,PW as b,bo as F,bn as N,hj as V,gP as W}from"./zeni-epic-state-CIBk9-EN.js";import{w as $,z as I,cv as q}from"./index-BIwQAhFv.js";import"./mui-DtV_yZlj.js";import{u as G}from"./useAskAiCfoHostNavButtonProps-DHofygYw.js";import{c as H}from"./useFetchSuggestedQuestionsWhenReady-BWzQNqoL.js";import{M as J}from"./MobileAppDrawer-CXLCRreY.js";import"./recharts-DdIjbBfI.js";import"./analytics-B6udoEJT.js";import"./plaid--kCGp3zU.js";import"./dnd-BIjMGuxw.js";import"./stripe-DMRn4zHo.js";import"./lottie-DL8N42Il.js";import"./lexical-DOh49tNP.js";import"./pdf-BcmiSEKK.js";import"./utils-CRtSAyQU.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]="9921adcc-a130-4796-bb01-1e534317ce0c",e._sentryDebugIdIdentifier="sentry-dbid-9921adcc-a130-4796-bb01-1e534317ce0c")}catch{}})();const K=z(function(e){const t=I.getSignedInUser(),c=e.tenantState.currentTenantId,o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:c??""},{aggregatedReportViewState:n}=b(e);return{authParams:o,isDisabled:!1,loggedInUser:t,aggregatedReport:n}},function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}})(q),L=()=>{const e=_(),t=v(),c=$(),o=p(a=>B(a)),{aggregatedReportViewState:n}=p(a=>b(a)),{tenantEmailDomain:u}=P(),g=M(),d=I.getSignedInUser();if(d==null)throw new Error("Can't access this page without signing in...");const m=r.useRef(!1),[w,C]=r.useState(!1),S=F(o?.userRole??[]),k=o?.userRole?.includes("bookkeeping_admin")??!1,j=N(d),x=S||k||j,l=r.useCallback((a,i,T)=>{g(V({fromMonth:a,toMonth:i,cacheOverride:T}))},[]);r.useEffect(()=>{n?.fetchState==="Completed"&&m.current&&(g(W({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),m.current=!1)},[n?.fetchState]);const y=r.useCallback((a,i)=>{n!=null&&n?.fetchState==="In-Progress"||l(a,i,!0),m.current=!0},[n?.fetchState,l]),D=r.useCallback((a,i)=>{l(a,i,!1)},[l]),f=a=>{C(a)},{isAiCfoAccessEnabled:R,onAskAiCfoClick:A}=G({mobileExploreReferrer:"Performance"});return H({isDataReady:n?.fetchState==="Completed"}),x?s.jsxs(s.Fragment,{children:[s.jsx(J,{isAppContentDrawerOpen:w,handleDrawerToggle:f}),s.jsx(K,{navigate:e,location:t,themeState:c,currentTenant:o,signedInUser:d,tenantEmailDomain:u,onReload:y,onTimeRangeSelect:D,handleDrawerToggle:f,isAiCfoAccessEnabled:R,onAskAiCfoClick:A})]}):s.jsx(U,{to:`/${u}/dashboard`,replace:!0})};function pe(){return s.jsxs(O,{children:[s.jsx(h,{path:"*",element:s.jsx(L,{})}),s.jsx(h,{path:"*",element:s.jsx(E,{})})]})}export{pe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-CCyJOwfy.js";import{C as w,z as C,aK as b,S as I,c as p,e as F,cF as L,A as P}from"./index-BIwQAhFv.js";import"./mui-DtV_yZlj.js";import l from"./NotFoundScreen-D1-E1kBF.js";import{a as u}from"./sentry-Wnm-N8eT.js";import{h as A,g as y,j as R,u as T,k as V,n as U,o as d}from"./core-Bv8kdUko.js";import{eR as z,Qt as j,Nf as Q,Qu as k,u8 as Y,f1 as G,Qv as K,u6 as O}from"./zeni-epic-state-CIBk9-EN.js";import{R as x}from"./ReferralListScreen-B6ywI0R7.js";import"./recharts-DdIjbBfI.js";import"./analytics-B6udoEJT.js";import"./plaid--kCGp3zU.js";import"./dnd-BIjMGuxw.js";import"./stripe-DMRn4zHo.js";import"./lottie-DL8N42Il.js";import"./lexical-DOh49tNP.js";import"./pdf-BcmiSEKK.js";import"./utils-CRtSAyQU.js";import"./useAskAiCfoHostNavButtonProps-DHofygYw.js";import"./useFetchSuggestedQuestionsWhenReady-BWzQNqoL.js";import"./MobileAppDrawer-CXLCRreY.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]="b6152aa6-b3d5-4aa0-83dc-5a3aa3b7a013",a._sentryDebugIdIdentifier="sentry-dbid-b6152aa6-b3d5-4aa0-83dc-5a3aa3b7a013")}catch{}})();const q=V(function(a,t){const n=j(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=C.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(O())},onUpdateInviteFormLocalData:s=>{a(K({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{i!=null&&p.trackInviteEmailClicked("cancel")}}})(L),B=()=>{const a=A(),[t,n]=u.useState(!1),[i,s]=u.useState(!1),r=y(o=>z(o)),c=R(),v=T(),{useDynamicConfig:g}=w(),f=C.getSignedInUser();if(f==null)throw Error("Can't access invite referral screen without signing in...");const m=y(o=>j(o)),D=f?.firstName!=null?f.firstName:"User",{configValue:h}=g(b.zeniCardsConfig),{configValue:N}=g(b.zeniAccountsConfig),S=Q(N);u.useEffect(()=>{a(k()),r?.rewardsLastViewedTime==null&&i===!1&&(a(Y()),s(!0))},[]),u.useEffect(()=>{t||m.fetchState!=="Not-Started"||(n(!0),a(G(!0)))},[m.fetchState,a]);const _=r.company?.companyInfo.companyLegalName??r.companyName;return e.jsxs(e.Fragment,{children:[m.fetchState==="Completed"?e.jsx(I,{analytics:p,onLoad:o=>(E=>E.trackPageLoaded(F.Event.inviteEmailViewed))(o)}):null,e.jsx(q,{navigate:c,location:v,currentTenant:r,companyName:_,userName:D,inviteFormCompayData:m.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:S.maxAnnualPercentageYield})]})};function fa(){const{useFeatureGate:a}=w(),{isFeatureEnabled:t}=a(P.isReferralFeatureEnabled);return e.jsxs(U,{children:[e.jsx(d,{path:"/",element:t?e.jsx(x,{}):e.jsx(l,{})}),e.jsx(d,{path:"how-it-works",element:t?e.jsx(x,{isReferralDrawerOpen:!0}):e.jsx(l,{})}),e.jsx(d,{path:"refer/*",element:t?e.jsx(B,{}):e.jsx(l,{})}),e.jsx(d,{path:"*",element:e.jsx(l,{})})]})}export{fa as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as f}from"./liveblocks-CCyJOwfy.js";import{a as u,b as T,q as A}from"./sentry-Wnm-N8eT.js";import{h as D,j as z,g as c,u as J,N as M,k as P}from"./core-Bv8kdUko.js";import{u as j,z as s,m as F,c as E,D as O,d as _,e as B,f as N,g as V,G as $,h as v}from"./index-BIwQAhFv.js";import{eR as q,Jl as G,Jm as K,eS as R,fl as W,Jr as H,fK as Q,cU as X,Js as y,Jt as Y,Ju as Z,bT as b}from"./zeni-epic-state-CIBk9-EN.js";import"./mui-DtV_yZlj.js";import{u as ee}from"./useDeviceId-Bi73VT1N.js";import{f as te}from"./analyticsHelper-DjIWqwJH.js";import{t as ne}from"./getLocaleForTenant-lJA2tHmd.js";import"./recharts-DdIjbBfI.js";import"./analytics-B6udoEJT.js";import"./plaid--kCGp3zU.js";import"./dnd-BIjMGuxw.js";import"./stripe-DMRn4zHo.js";import"./lottie-DL8N42Il.js";import"./lexical-DOh49tNP.js";import"./pdf-BcmiSEKK.js";import"./utils-CRtSAyQU.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]="3bcaf90d-6e62-471c-9bf3-b94ddc50a548",t._sentryDebugIdIdentifier="sentry-dbid-3bcaf90d-6e62-471c-9bf3-b94ddc50a548")}catch{}})();const ie=P(function(t,i){const d=t.tenantState.fetchState,g=t.tenantState.sendEmailMagicLinkFetchState,{magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:l}=i;return{googleClientId:v.googleClientId,microsoftClientId:v.microsoftClientId,signInError:t.tenantState.error?.error,fetchState:d,sendMagicLinkStatus:g,magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:l}},function(t,i){const{location:d,navigate:g}=i;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,a)=>{A({message:`OAuth error from provider ${a} with error ${n}`,level:"error",tags:{authProvider:a,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,a)=>{const l=a==="google"?window.location.origin:window.location.origin+window.location.pathname;t(Z({authCode:n,oauthProvider:a,appType:"web",redirectUri:b(l),sourceUri:b(d.state!=null?d.state.origin:"")}))},getSignedInUser:()=>s.getSignedInUser(),onSignedInCallback:()=>{const n=d.state?.origin;n&&n!=="/"?g(n,{replace:!0}):window.open(window.location.origin,"_self")},sendMagicLink:n=>{const{deviceId:a}=i;a!=null&&(s.saveMagicLinkEmail(n),t(Y(n,a)))},clearSignInError:()=>{t(y())}}})($),ae=T.memo(ie);function ve({setTenantEmailDomain:t}){const i=D(),d=z(),{clearAllLoading:g}=j(),n=s.getSignedInUser();u.useLayoutEffect(()=>{g()},[g]);const a=ee(),l=c(e=>e.tenantState.magicLinkCodeVerifier),{sendEmailMagicLinkFetchState:h,accountLocked:U,accountUnlockTime:k}=c(e=>e.tenantState),p=c(e=>e.tenantState.fetchState),L=c(e=>e.tenantState.activeTenantFetchState.fetchState),S=c(e=>e.tenantState.signInState),o=c(e=>e.tenantState.loggedInUser),r=c(e=>q(e)),I=c(e=>G(e)),m=J(),w=F().mode,C=m.state?.magicLinkExpired,x=m.state?.magicLinkAlreadyUsed;if(u.useEffect(()=>{h.fetchState==="Completed"&&l!=null&&(E.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(l))},[h.fetchState,l]),u.useEffect(()=>{t(void 0)},[]),u.useEffect(()=>{S!=="In-Progress"||p!=="Completed"&&L!=="Completed"||o?.zeniSessionId==null||r==null||(s.savePayNowInfoTooltip(!0,o.zeniSessionId),s.saveSignedInUserWithSession(o,o.zeniSessionId),s.saveSignedInUserTenants(K(I.tenantsInOrder),o.zeniSessionId),R(o.userId,o.zeniSessionId,r.tenantId),i(W(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(H("Completed")),O.updateAppLocaleID(ne(r)),te(o,r,w,void 0,I.tenantsInOrder),Q().then(()=>{const e=V();e!=null&&_(e)}),setTimeout(()=>{E.trackLogin(B.Event.loginSuccess,o.authProvider??"google",X(r.productSettings))},2e3))},[S,p,L,o,r,I,w,m.state,i]),S==="In-Progress"&&p==="Completed"&&o?.zeniSessionId!=null&&r!=null||n!=null){const e=m.state?.origin??"/";return f.jsx(M,{to:e,state:{...m.state,origin:""}})}return f.jsxs(f.Fragment,{children:[f.jsx(ae,{magicLinkExpired:!!C,magicLinkAlreadyUsed:!!x,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),U===!0&&k!=null?f.jsx(N,{onClose:()=>i(y()),unlockDate:k}):null]})}export{ve as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-CCyJOwfy.js";import{a as n}from"./sentry-Wnm-N8eT.js";import{h as u,u as m,j as p,N as g}from"./core-Bv8kdUko.js";import{z as f,B as y,t as h,c,e as b}from"./index-BIwQAhFv.js";import{fP as x,fQ as I,JJ as j}from"./zeni-epic-state-CIBk9-EN.js";import{n as w}from"./mui-DtV_yZlj.js";import"./recharts-DdIjbBfI.js";import"./analytics-B6udoEJT.js";import"./plaid--kCGp3zU.js";import"./dnd-BIjMGuxw.js";import"./stripe-DMRn4zHo.js";import"./lottie-DL8N42Il.js";import"./lexical-DOh49tNP.js";import"./pdf-BcmiSEKK.js";import"./utils-CRtSAyQU.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]="6b50a2f5-3367-4cdd-8a36-66c5ef349579",e._sentryDebugIdIdentifier="sentry-dbid-6b50a2f5-3367-4cdd-8a36-66c5ef349579")}catch{}})();function U(){const e=u(),t=m(),i=p(),a=n.useRef(!1),d=f.isSignedIn(),r=t.state?.message==="logout",o=r||d;return n.useEffect(()=>{o&&!a.current&&(a.current=!0,setTimeout(()=>{try{f.clearAll(),e(x()),e(I(!1)),j(),h.reset(),c.trackLogout(b.Event.logoutSuccess),c.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(y,{fetchState:"In-Progress"})}):s.jsx(g,{to:"../",replace:!0})}const v=w.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`;export{U as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-CCyJOwfy.js";import i from"./NotFoundScreen-D1-E1kBF.js";import{T as r}from"./TransactionDetailScreen-Cffx3kdg.js";import"./sentry-Wnm-N8eT.js";import{n as a,o}from"./core-Bv8kdUko.js";import"./zeni-epic-state-CIBk9-EN.js";import"./recharts-DdIjbBfI.js";import"./index-BIwQAhFv.js";import"./mui-DtV_yZlj.js";import"./analytics-B6udoEJT.js";import"./plaid--kCGp3zU.js";import"./dnd-BIjMGuxw.js";import"./stripe-DMRn4zHo.js";import"./lottie-DL8N42Il.js";import"./lexical-DOh49tNP.js";import"./pdf-BcmiSEKK.js";import"./utils-CRtSAyQU.js";import"./useAskAiCfoHostNavButtonProps-DHofygYw.js";import"./useFetchSuggestedQuestionsWhenReady-BWzQNqoL.js";import"./decodeURIComponentSafe-DeA-_wid.js";import"./routePaths-BjY4Hbs8.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]="eb8d9915-3f2e-47a0-a713-5db167080b95",e._sentryDebugIdIdentifier="sentry-dbid-eb8d9915-3f2e-47a0-a713-5db167080b95")}catch{}})();function q(){return t.jsxs(a,{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,5 +0,0 @@
|
|
|
1
|
-
import{j as k}from"./liveblocks-CCyJOwfy.js";import{a as d}from"./sentry-Wnm-N8eT.js";import{h as G,g as S,u as re,j as le,l as de,N as Ge,k as je}from"./core-Bv8kdUko.js";import{bn as $e,eR as q,cQ as ue,bv as me,pR as Y,Kz as F,LA as pe,LB as Q,KZ as he,jO as fe,LC as ge,L2 as Z,L3 as J,kD as Se,Hz as X,Kt as x,jI as Te,jG as ve,jS as Me,LD as He,LE as Ke,tR as N,jN as ye,GR as Ee,cV as We,cW as qe,LF as Ye,Ks as Qe,LG as Ze,tV as Je,LH as Xe,LI as ea,LJ as aa,LK as ta,LL as na,jR as oa,LM as sa,LN as ia,Ku as ca,LO as ra,LP as la,LQ as da,GL as ua,Gz as ma,H1 as pa,jT as ha,HA as ie,GI as fa}from"./zeni-epic-state-CIBk9-EN.js";import{z as be,C as ee,A as L,aK as De,m as ga,K as Sa,aL as Ta,F as va,p as K,T as ya,aM as Ea,v as W,c as Ce,aN as ba,aq as Da,Z as H}from"./index-BIwQAhFv.js";import{n as Ca,S as Ia,D as ka}from"./mui-DtV_yZlj.js";import{u as La}from"./useAskAiCfoHostNavButtonProps-DHofygYw.js";import{c as Aa}from"./useFetchSuggestedQuestionsWhenReady-BWzQNqoL.js";import{d as Ie}from"./decodeURIComponentSafe-DeA-_wid.js";import{h as ke,g as Ua,e as xa,c as _a}from"./routePaths-BjY4Hbs8.js";import{t as Va}from"./utils-CRtSAyQU.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]="df54bc2a-308d-487b-bbcc-6596152bed2e",a._sentryDebugIdIdentifier="sentry-dbid-df54bc2a-308d-487b-bbcc-6596152bed2e")}catch{}})();const ae=()=>{const a=be.getSignedInUser(),{useFeatureGate:e}=ee(),{isFeatureEnabled:s}=e(L.isChainOfThoughtEnabled);return d.useMemo(()=>$e(a)&&s,[a,s])};function Le(a){if(a!=null){if("customer"in a&&a.customer!=null){const{customer:e}=a;return{id:e.id,name:e.name,logo:e.logo,type:"customer",zeniId:e.id,qboId:e.id}}if("vendor"in a&&a.vendor!=null){const{vendor:e}=a;return{id:e.id,name:e.name,logo:e.logo,type:"vendor",zeniId:e.id,qboId:e.id}}}}function Za(a,e){const s=G(),{useFeatureGate:t,useDynamicConfig:n}=ee(),o=S(u=>q(u)),i=o.userRole.includes("charge_card_user")||o.userRole.includes("charge_card_admin"),l=o.userRole!=null&&ue(o.userRole),g=o.userRole!=null&&me(o.userRole),{isFeatureEnabled:T}=t(L.isVendorBulkUpdateOnTransactionEnabled),{isFeatureEnabled:C}=t(L.isExpenseAutomationEnabled),{configValue:h}=n(De.enableUncategorizedExpenseCategory),f=h?.uncategorized_expense_category_enabled===!0,A=ae(),v=d.useMemo(()=>({id:a,type:Y(e)}),[a,e]),m=S(u=>F(u,v)),D=S(u=>{const z=F(u,v)?.transactionDetailLocalData.vendorUpdates?.id;return z==null?"Not-Started":u.transactionVendorViewState.editVendorStateById[z]?.saveStatus.fetchState??"Not-Started"}),p=d.useMemo(()=>m?.fetchState==="Completed"?Le(m?.transaction):void 0,[m?.fetchState,m?.transaction]),y=S(u=>{if(p!=null)return pe(u.customerIncomeState,u.vendorExpenseState,u.trendState,p,"month")}),U=S(u=>Q(u)),_=S(u=>{if(p!=null)return he(u.trendWithTransactionsState,p,"TransactionDetail")}),j=o.company?.companyInfo.firstMonthOfFY??1,$=S(u=>fe(u.accountState,u.accountListState,"accountList")),[w,V]=d.useState(!1),[R,P]=d.useState(!1),[E,c]=d.useState(!1);d.useEffect(()=>{V(!1),P(!1),c(!1)},[a,e]);const M=d.useCallback(()=>{V(!1),P(!1)},[]),[b,I]=d.useState(!1),B=_?.selectedPeriod?.timePeriod;return d.useEffect(()=>{E||m==null||m.transaction==null||(s(ge({id:m.transaction.id,type:m.transaction.type})),c(!0)),p!=null&&(!i||l&&g===!1)&&(w?R||y==null||(P(!0),s(X(p,"TransactionDetail",{timeframe:"month",timePeriod:B??y}))):(s(Z()),s(J()),V(!0),s(Se(p))))},[s,E,m?.fetchState,m?.transaction,p,i,l,g,w,R,y,B]),d.useEffect(()=>{U.newVendorState?.vendorDetailLocalData?.vendorName!=null?I(!0):I(!1)},[U.newVendorState?.vendorDetailLocalData?.vendorName]),d.useEffect(()=>()=>{s(x("common"))},[s]),{currentTenant:o,loggedInUserHasCardUserOrAdminRole:i,isUserHasDashboardAccess:l,isUserHasInvestorOrBankerAccess:g,isVendorBulkUpdateOnTransactionEnabled:T,isExpenseAutomationEnabled:C,isUncategorizedExpenseCategoryEnabled:f,isChainOfThoughtEnabled:A,selectedTransaction:v,transactionDetail:m,vendorSaveStatus:D,tranEntity:p,defaultTrendTransactionTimePeriod:y,vendorViewDetails:U,uiState:_,firstMonthOfFY:j,uncategorizedAccounts:$,resetTrendIsFetchedStates:M,isCreateVendorDrawerOpen:b,setIsCreateVendorDrawerOpen:I}}const Pa={overlayWidth:new va(100,100,58)},Ba=({isOpen:a,onSaveVendor:e,onSaveSuccess:s,onCancel:t,vendorViewDetails:n})=>{const o=ga(),i=Sa(),l=G(),g=S(h=>Q(h)),T=()=>{t()},C={vendorDetailView:n??g,onSaveSuccess:()=>{l(ve()),l(Me("Not-Started")),s()},onSaveVendor:e,onCancelClick:T,saveVendorDetailLocalData:h=>{l(Te({vendorId:void 0,localData:h}))}};return k.jsx(ka,{anchor:"right",open:a,PaperProps:{style:{width:Pa.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.4,cursor:"pointer"}}},onClose:T,children:k.jsx(Fa,{onClick:h=>h.stopPropagation(),children:k.jsx(Ta,{...C})})})},Fa=Ca(Ia)`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`,wa=({closeDrawerHandler:a,overrideTransactionId:e,overrideTransactionType:s})=>{const t=re(),n=le(),o=G(),i=ae(),{transactionTypeEncoded:l,transactionId:g}=de(),T=e??g,C=s??Ie(l??"");let h;ke(T,C)&&(h={id:T,type:Y(C)});const f=h!=null?S(v=>F(v,h)):void 0,A=()=>{const v=K(t.state?.pathnameStackToGoBack),m=v.poppedPathname??((D=2)=>{let p="../";for(let y=0;y<D;y++)p=`${p}../`;return p})(1);n(m,{state:{pathnameStackToGoBack:v.newStack}})};return{transactionId:h,onSaveVendor:()=>{o(ye(h,void 0))},onSaveSuccess:()=>{if(f!=null&&f?.transaction&&f?.transactionDetailLocalData.vendorUpdates?.qboId!=null&&f?.transactionDetailLocalData.vendorUpdates?.id!=null){const v=f?.transactionDetailLocalData.vendorUpdates,m={id:f?.transactionDetailLocalData.vendorUpdates?.qboId,zeniId:f?.transactionDetailLocalData.vendorUpdates?.id,type:"vendor",name:v?.name,qboId:f?.transactionDetailLocalData.vendorUpdates?.qboId??""},D={transactionId:{id:f?.transaction?.id,type:f?.transaction?.type},transaction:f?.transaction,lineIds:f?.transaction?.lines?.map(p=>p.id)??[]};o(N(m,f?.transaction?.amount.amount,D,!1,!1,i))}A()},onCancel:()=>{h!=null&&o(He({transactionId:h})),o(ve()),o(Ke()),a(!0),A()}}},Ra=je(function(a,e){const s=F(a,e.selectedTransaction);let t;s==null&&console.warn("Check if the you've selected the transaction before getting the details");const n=be.getSignedInUser(),o=a.tenantState.currentTenantId,i={userId:n?.userId??"",sessionId:n?.zeniSessionId??"",tenantId:o??""};s!=null&&s.fetchState==="Completed"&&s.transaction!=null&&e.entity!=null&&(t=Ye(a,e.entity,"TransactionDetail"));const l=a.entityAutoCompleteState.autoCompleteText.common,g=Qe(a,"common"),T=q(a);return{transactionDetail:s,transactionAttachmentEndpointToDownload:`${H}/transaction_attachment`,transactionAttachmentsEndpointToFetch:T.externalConnections?.accounting[0]?.connectionName==="netsuite"?`${H}/transaction_attachments_accounting_provider`:`${H}/transaction_attachments`,attachmentUploadEndpoint:`${Da.accountMicroServiceBaseUrl}`,isCOTEnabled:e.isCOTEnabled,authParams:i,trendReport:t,analytics:Ce,uncategorizedAccounts:e.uncategorizedAccounts,autoCompleteData:{autoCompleteText:l,entityAutoCompleteView:g},isVendorBulkUpdateOnTransactionEnabled:e.isVendorBulkUpdateOnTransactionEnabled,isExpenseAutomationEnabled:e.isExpenseAutomationEnabled,isUncategorizedExpenseCategoryEnabled:e.isUncategorizedExpenseCategoryEnabled,enableBackClickOnSave:e.location.state?.message?.startsWith("comingFromScheduleDetails")}},function(a,e){const{isCOTEnabled:s}=e;return{onBackClick:()=>{if(a(x("common")),e.onBackClick!=null)return void e.onBackClick();const t=K(e.location.state?.pathnameStackToGoBack),n=t.poppedPathname??Ae(2);e.navigate(n,{state:{pathnameStackToGoBack:t.newStack,message:"comingFromTransactionDetail"}})},discardTransactionDetailLocalData:(t,n)=>{e.transaction!=null&&a(fa({transactionId:{id:e.transaction.id,type:e.transaction.type},vendorId:t,customerId:n}))},onTransactionClick:t=>{e.resetTrendIsFetchedStates(),a(Z()),a(J());const n=W(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(_a(t,e.tenantEmailDomain),{state:{pathnameStackToGoBack:n}})},onTrendSelectedPeriodChange:t=>{if(t==null)e.defaultTrendTransactionTimePeriod!=null&&a(ie(e.entity,"TransactionDetail",{timeframe:"month",timePeriod:e.defaultTrendTransactionTimePeriod}));else{const n=t.currentTimePeriod==null?t.addTimePeriod:{startDate:t.addTimePeriod.startDate,endDate:t.currentTimePeriod.endDate};a(X(e.entity,"TransactionDetail",{timeframe:t.timeframe,timePeriod:t.addTimePeriod})),a(ie(e.entity,"TransactionDetail",{timeframe:t.timeframe,timePeriod:n}))}},onSaveUpdates:(t,n,o,i)=>{a(i===!0&&o!=null?ye(t,o,!0,e.isExpenseAutomationEnabled,e.isUncategorizedExpenseCategoryEnabled):ha({transactionId:t,isExpenseAutomationEnabled:e.isExpenseAutomationEnabled,cotTransactionTracking:n,isUncategorizedExpenseCategoryEnabled:e.isUncategorizedExpenseCategoryEnabled})),a(x("common"))},onUploadAttachmentAttachment:t=>{a(pa(t))},onDeleteAttachment:t=>{e.transaction!=null&&a(ma(t,{id:e.transaction.id,type:e.transaction.type}))},onSaveTransactionDetailLocalData:(t,n)=>{a(ua({transactionId:t,transactionLocalData:n}))},onUpdateAllChecked:(t,n,o,i)=>{e.transaction!=null&&a(da(e.selectedTransaction,e.transaction,t,n,o,i))},onResetLineItemsCategoryClassInLocalData:(t,n,o,i,l,g)=>{a(la(t,n,o,i,l,g))},onChangeCategoryClassWhenUpdateAllIsChecked:(t,n)=>{e.transaction!=null&&a(ra({id:e.transaction.id,type:e.transaction.type},e.transaction,t,n))},onSaveSuccess:()=>{const t=K(e.location.state?.pathnameStackToGoBack);if(t.poppedPathname!=null){const n=Va(t.poppedPathname,"/").split("/"),o=n[n.length-1];if(["uncategorized-income","uncategorized-expense","missing-receipts"].includes(o)&&e.navigate(t.poppedPathname,{state:{pathnameStackToGoBack:t.newStack}}),e.location.state?.message==="comingFromScheduleDetails"){const i=`${Ua(e.tenantEmailDomain)}`;e.navigate(i)}else if(e.location.state?.message==="comingFromScheduleDetailsFixedAssets"){const i=`${xa(e.tenantEmailDomain)}`;e.navigate(i)}}},onPageRefresh:()=>{a(Ee(e.selectedTransaction,!0))},autoCompleteActions:{onAutoCompleteInputChange:(t,n)=>{t.trim().length>=2?a(ca({searchString:t,entityType:n,searchOrigin:"common"})):t.trim().length===0&&a(x("common"))},onCancelAutoComplete:()=>{a(x("common"))}},onFetchRecommendationsForEntity:(t,n,o,i)=>{a(N(t,n,o,i,!1,s))},clearRecommendationForLineId:t=>{const{transactionId:n,transaction:o,lineId:i}=t;a(ia(n,o,i))},resetUpdateErrorState:()=>{const t={id:e.selectedTransaction.id,type:e.selectedTransaction.type};a(sa(t))},onSaveVendorInLocalData:(t,n,o,i,l)=>{if(a(oa({transactionId:t,vendorUpdates:n,entity:o})),n.id!=null&&o!=null&&i!=null&&l!=null&&a(N(o,i,l,!1,!1,s)),a(Te({vendorId:n.id?n.id:void 0,localData:{vendorName:n.name,vendorId:n.id?n.id:void 0}})),!n.id&&e.transaction!=null){const g=e.transaction,T=W(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(`/${e.tenantEmailDomain}/transaction/${encodeURIComponent(g.type??"")}/${g.id}/vendor/create`,{state:{pathnameStackToGoBack:T}})}},onSaveCustomerInLocalData:(t,n,o,i,l)=>{a(na({transactionId:t,customerUpdates:n,entity:o})),n.id!=null&&o!=null&&i!=null&&l!=null&&a(N(o,i,l,!1,!1,s))},onUpdateAllTranactionsWithCurrentVendorChecked:t=>{a(ta({transactionId:{id:e.selectedTransaction.id,type:e.selectedTransaction.type},isUpdateEnabled:t}))},onClickUpdateVendorToAllLineItems:(t,n,o)=>{a(aa(t,n,o))},onResetVendorToAllLineItems:(t,n,o)=>{a(ea(t,n,o))},saveLatestSelectedEntity:(t,n,o)=>{a(Xe({transactionId:t,lineId:n,entity:o}))},updateVendorBulkRecommendationsFetchStatus:(t,n)=>{a(Je(t,n))},setIsVendorUpdateAllChecked:(t,n,o)=>{a(Ze(t,n,o))}}})(ba);function Ja(){const a=le(),e=G(),s=re(),{useFeatureGate:t,useDynamicConfig:n}=ee(),o=ya(),i=S(r=>q(r)),l=i.userRole.includes("charge_card_user")||i.userRole.includes("charge_card_admin"),g=i.userRole!=null&&ue(i.userRole),T=i.userRole!=null&&me(i.userRole),{isFeatureEnabled:C}=t(L.isVendorBulkUpdateOnTransactionEnabled),{isFeatureEnabled:h}=t(L.isExpenseAutomationEnabled),{configValue:f}=n(De.enableUncategorizedExpenseCategory),A=f?.uncategorized_expense_category_enabled===!0,{tenantEmailDomain:v,transactionTypeEncoded:m,transactionId:D}=de(),[p,y]=d.useState(!1),U=Ie(m??""),_=ke(D,U),j=S(r=>r.transactionVendorViewState),$=ae(),{isFeatureEnabled:w}=t(L.isTransactionCommentingEnabled),{isFeatureEnabled:V}=t(L.isProjectsTransactionsEnabled),R=o?.currentTenant?.companyId,P=o?.currentTenant?.companyName;let E;_&&(E={id:D,type:Y(U)});const c=E!=null?S(r=>F(r,E)):void 0,M=c?.transactionDetailLocalData.vendorUpdates?.id!=null?j.editVendorStateById[c?.transactionDetailLocalData.vendorUpdates.id]?.saveStatus.fetchState:"Not-Started",b=c?.fetchState==="Completed"?Le(c?.transaction):void 0,I=S(r=>b!=null?pe(r.customerIncomeState,r.vendorExpenseState,r.trendState,b,"month"):void 0),B=S(r=>Q(r)),u=S(r=>b!=null?he(r.trendWithTransactionsState,b,"TransactionDetail"):void 0),z=i.company?.companyInfo.firstMonthOfFY??1,Ue=S(r=>fe(r.accountState,r.accountListState,"accountList")),[xe,te]=d.useState(!1),[_e,ne]=d.useState(!1),[Ve,Pe]=d.useState(!1),oe=()=>{te(!1),ne(!1)},Be=Ea();d.useEffect(()=>{if(E!=null&&c!=null&&c.fetchState==="Not-Started")e(Ee(E)),oe();else if(E!=null&&c!=null&&c.fetchState==="Error"){const r=W(s.state?.pathnameStackToGoBack,s.pathname),O={pathnameStackToGoBack:r,message:"pageNotFound",origin:"transaction_detail"};Be&&(O.message="expenseAutomation",O.origin="transaction_categorization",O.pathnameStackToGoBack=r),a("page-not-found",{replace:!0,state:O})}},[E]),d.useEffect(()=>{Ve||c==null||c.transaction==null||(e(ge({id:c.transaction.id,type:c.transaction.type})),Pe(!0)),b==null&&c?.fetchState==="Completed"&&ce(c?.transaction),b!=null&&(!l||g&&T===!1)&&(xe?_e||I==null||(ne(!0),e(X(b,"TransactionDetail",{timeframe:"month",timePeriod:u?.selectedPeriod?.timePeriod??I}))):(e(Z()),e(J()),ce(c?.transaction),te(!0),e(Se(b))))},[c?.fetchState,c?.transaction,I,l]),d.useEffect(()=>{B.newVendorState?.vendorDetailLocalData?.vendorName!=null?y(!0):y(!1)},[B.newVendorState?.vendorDetailLocalData?.vendorName]),d.useEffect(()=>()=>{e(x("common"))},[]);const Fe=[m,D].filter(r=>r!=null),{transactionId:se,onSaveVendor:we,onSaveSuccess:Re,onCancel:ze}=wa({closeDrawerHandler:r=>{y(!1),a(r?"../":"../..")}}),{isAiCfoAccessEnabled:Oe,onAskAiCfoClick:Ne}=La({mobileExploreReferrer:"Transaction Details"});return Aa({isDataReady:c?.fetchState==="Completed"}),_?k.jsxs(k.Fragment,{children:[se!=null&&p&&k.jsx(Ba,{isOpen:p,transactionId:se,onSaveVendor:we,onSaveSuccess:Re,onCancel:ze}),k.jsx(Ra,{hideDeleteAttachment:!0,firstMonthOfFY:z,isDisabled:c?.transaction?.type==="transfer"&&o?.connectionName==="netsuite"?"readonly":void 0,tenantEmailDomain:v,location:s,navigate:a,selectedTransaction:E,entity:b,isCOTEnabled:$,defaultTrendTransactionTimePeriod:I,resetTrendIsFetchedStates:oe,transaction:c?.transaction,uncategorizedAccounts:Ue,vendorSaveStatus:M,isVendorBulkUpdateOnTransactionEnabled:C,isExpenseAutomationEnabled:h,isUncategorizedExpenseCategoryEnabled:A,isAiCfoAccessEnabled:Oe,onAskAiCfoClick:Ne,isTransactionCommentingEnabled:w,isProjectsTransactionsEnabled:V,companyId:R,companyName:P})]}):k.jsx(Ge,{to:Ae(Fe.length)})}const Ae=(a=2)=>{let e="../";for(let s=0;s<a;s++)e=`${e}../`;return e},ce=a=>{if(a!=null){const{transactionCategory:e,transactionClass:s}=za(a),t=Oa(a);Ce.trackTransactionDetails(a.account?.accountId,a.account?.accountName,a.id,t,e.length>0?e:void 0,s.length>0?s:void 0,a.type,a.amount,a.memo,a.lines?.length??0,a.attachments?.map(n=>n.fileName))}},za=a=>{const e=[],s=[];return a.lines?.forEach(t=>{switch(t.type){case"transaction_with_account_and_class_line":case"transaction_with_product_or_service_line":case"journal_entry_transaction_line":case"linked_transaction_line":{const n=t;n!=null&&n.account!=null&&n.account.accountName?.length>0&&e.push(n.account.accountName),n.class!=null&&n.class.className?.length>0&&s.push(n.class.className);break}}}),{transactionCategory:e,transactionClass:s}},Oa=a=>We(a)===!0?a.customer?.name??"":qe(a)===!0?a.vendor?.name??"":a.memo!=null?a.memo:a.type;export{Ba as C,Ja as T,wa as a,Ra as b,ae as c,Za as u};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./liveblocks-CCyJOwfy.js";import{a as f}from"./sentry-Wnm-N8eT.js";import{q as u,h,g as b,N as y}from"./core-Bv8kdUko.js";import{JG as I,eS as w,zF as x}from"./zeni-epic-state-CIBk9-EN.js";import{z as l,B as S,J as j,M as D}from"./index-BIwQAhFv.js";import{n as g}from"./mui-DtV_yZlj.js";import"./recharts-DdIjbBfI.js";import"./analytics-B6udoEJT.js";import"./plaid--kCGp3zU.js";import"./dnd-BIjMGuxw.js";import"./stripe-DMRn4zHo.js";import"./lottie-DL8N42Il.js";import"./lexical-DOh49tNP.js";import"./pdf-BcmiSEKK.js";import"./utils-CRtSAyQU.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]="569ba152-56ed-425d-abbc-0a00e764afea",e._sentryDebugIdIdentifier="sentry-dbid-569ba152-56ed-425d-abbc-0a00e764afea")}catch{}})();const P=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",p=e.get("profileId")??"",[a,c]=f.useState(!1),n=h(),i=b(m=>I(m)),r=l.getSignedInUser(),d=l.getSignedInUserTenantWithId(s);if(r==null||d==null)return o.jsx(y,{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(()=>{a||(c(!0),n(x(t,p,s)))},[a,n]),i.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(S,{fetchState:"In-Progress"}))},E=g.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: 100vh;
|
|
5
|
-
flex-direction: row;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
9
|
-
`,_=g(D.LargeRegular)`
|
|
10
|
-
display: flex;
|
|
11
|
-
color: ${j.important};
|
|
12
|
-
`;export{P as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-CCyJOwfy.js";import{a as f}from"./sentry-Wnm-N8eT.js";import{j as x,h as j,u as B,l as C,g as p}from"./core-Bv8kdUko.js";import{ID as s,IC as T,OT as $,eR as v,OU as D}from"./zeni-epic-state-CIBk9-EN.js";import{K as z,aq as g,m as E,z as L,B as P,b_ as U,p as _}from"./index-BIwQAhFv.js";import{n as N}from"./mui-DtV_yZlj.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]="e9062b11-d10b-430a-b933-6fc207e5909e",e._sentryDebugIdIdentifier="sentry-dbid-e9062b11-d10b-430a-b933-6fc207e5909e")}catch{}})();const G=N.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=j(),d=z(),l=B();let{accountId:a}=C(),m=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&l.pathname.includes(`${s}/statements`)&&(a=s,m=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[u,b]=f.useState(!1),y=E();f.useEffect(()=>{u||(b(!0),n(T(a??"",!1)))},[u,n]);const o=p(t=>$(t,a??"")),h=()=>{const t=_(l.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},r=L.getSignedInUser(),c=p(t=>v(t)),I={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:c.tenantId??""},w=D(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=c.company?.companyInfo.companyLegalName??c.companyName;if(r==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?i.jsx(P,{fetchState:"In-Progress",style:{backgroundColor:y.colors.grey5}}):i.jsx(G,{windowSize:d,children:i.jsx(U,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:h,authParams:I,downloadEndPoint:m})})}export{V as Z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as n}from"./index-BIwQAhFv.js";import"./mui-DtV_yZlj.js";import"./sentry-Wnm-N8eT.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]="1fa951f6-f96f-4189-ad96-ae963fd8cf64",e._sentryDebugIdIdentifier="sentry-dbid-1fa951f6-f96f-4189-ad96-ae963fd8cf64")}catch{}})();function d(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{d as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as p}from"./sentry-Wnm-N8eT.js";import{V as b,K as d,a as m,v as u,Y as y}from"./index-BIwQAhFv.js";import"./mui-DtV_yZlj.js";import{b as k}from"./useFetchSuggestedQuestionsWhenReady-BWzQNqoL.js";import{j as g,u as h,l as A}from"./core-Bv8kdUko.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]="2b13c1e8-6790-4159-9a54-008b63794aa5",e._sentryDebugIdIdentifier="sentry-dbid-2b13c1e8-6790-4159-9a54-008b63794aa5")}catch{}})();function T(e){const{mobileExploreReferrer:a}=e,{isAiCfoOpen:s,setIsAiCfoOpen:n}=b(),r=g(),o=h(),{tenantEmailDomain:t}=A(),f=d(),i=y(f),l=m();return{isAiCfoAccessEnabled:k()&&l&&!s,onAskAiCfoClick:p.useCallback(()=>{if(t!=null)if(i){const c=u(o.state?.pathnameStackToGoBack,o.pathname);r(`/${t}/ai-cfo/explore`,{state:{pathnameStackToGoBack:c,referrer:a}})}else n(!0)},[i,o.pathname,o.state,a,r,n,t])}}export{T as u};
|