@zeniai/web-app-ui 5.1.66-qa → 5.1.67-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-DcRMi7Cu.js +1 -0
- package/dist/assets/{AddressScreen-CUjGRrDO.js → AddressScreen-RccTsYHc.js} +2 -2
- package/dist/assets/AiCfoScreen-Ct8cL2Ie.js +22 -0
- package/dist/assets/BillPayApprovalRoutes-DlxW5_Ft.js +1 -0
- package/dist/assets/BillPayRoutes-BZh2XFk-.js +119 -0
- package/dist/assets/BusinessVerificationPageScreen-B52ex8cm.js +9 -0
- package/dist/assets/ChargeCardRoutes-WCJ1b_c7.js +71 -0
- package/dist/assets/CompanyPassportScreen-DXoP9Ez2.js +1 -0
- package/dist/assets/ConnectionAuthScreen-BDd6IHlg.js +11 -0
- package/dist/assets/CustomerOnboardingAuthScreen-bj5s6gBI.js +1 -0
- package/dist/assets/CustomerOnboardingRoutes-BdvsL8cs.js +23 -0
- package/dist/assets/{DashboardRoutes-DYh34QWe.js → DashboardRoutes-BVJ6gMtG.js} +4 -4
- package/dist/assets/DefaultTenantHome-DHFs3qs1.js +1 -0
- package/dist/assets/DomesticWireDetailScreen-CsodISsS.js +18 -0
- package/dist/assets/DrawerScreen-BoPVGaL3.js +1 -0
- package/dist/assets/EntityDetailRoutes-BV49ltO6.js +1 -0
- package/dist/assets/ExpenseAutomationRoutes-BHO2wgr3.js +25 -0
- package/dist/assets/FeaturePreviewScreen-CcPBdUYk.js +1 -0
- package/dist/assets/HubSpotOAuthCallbackScreen-DeMp-1cP.js +1 -0
- package/dist/assets/MagicLinkRoutes-CREahV5c.js +72 -0
- package/dist/assets/MagicLinkSignInScreen-D90fiigf.js +12 -0
- package/dist/assets/{MobileAppDrawer-Dun-P89d.js → MobileAppDrawer-DiDXE6Jh.js} +1 -1
- package/dist/assets/NotFoundScreen-BKVbDKKs.js +1 -0
- package/dist/assets/NotificationRoutes-6ZYsH4td.js +1 -0
- package/dist/assets/OAuthConsentScreen-DjJHE32R.js +1 -0
- package/dist/assets/PandLWithForecastRoutes-DuegIhUT.js +1 -0
- package/dist/assets/PeopleRoutes-WWfCj6TZ.js +22 -0
- package/dist/assets/PerformanceRoutes-BLX6BpkD.js +1 -0
- package/dist/assets/{Preview-DDPGc7EO.js → Preview-DjI4rxDl.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-CEsTlTj_.js → QBOConnectionScreen-D62Xvt0C.js} +1 -1
- package/dist/assets/ReferralListScreen-uYNjikRl.js +5 -0
- package/dist/assets/ReimbursementApprovalRoutes-CsSqaiAq.js +1 -0
- package/dist/assets/ReimbursementApprovalRuleDetailScreen-8JNes5gt.js +1 -0
- package/dist/assets/ReimbursementRoutes-B1pgh5mE.js +68 -0
- package/dist/assets/ReportsRoutes-CBnrAHcs.js +1 -0
- package/dist/assets/RewardsRoutes-D0SGw01q.js +1 -0
- package/dist/assets/ScreenRoutes-PFZtGCZl.js +2 -0
- package/dist/assets/SettingsRoutes-uwtoJpLu.js +57 -0
- package/dist/assets/SetupPagesScreen-CDYfTNlq.js +29 -0
- package/dist/assets/SignInScreen-CI13-p6Y.js +1 -0
- package/dist/assets/SignOutScreen-Djv75bMI.js +9 -0
- package/dist/assets/TaskListScreen-BwS6-8kM.js +9 -0
- package/dist/assets/TaskRoutes-BMcEVg0C.js +9 -0
- package/dist/assets/TransactionDetailRoutes-9WFXlaNm.js +1 -0
- package/dist/assets/TransactionDetailScreen-D0x2Wt6k.js +5 -0
- package/dist/assets/TransactionListRoutes-Bp-eX0F6.js +1 -0
- package/dist/assets/TreasuryRoutes-D86jfr24.js +37 -0
- package/dist/assets/{VendorsRoutes-Cq-Iy0rX.js → VendorsRoutes-CRGbQRAM.js} +27 -27
- package/dist/assets/WiseConfirmationScreen-Bt7vHFl6.js +12 -0
- package/dist/assets/ZeniAccountRoutes-vgl30K2s.js +57 -0
- package/dist/assets/ZeniAccountStatementScreen-DdRLdhQT.js +9 -0
- package/dist/assets/{accountMappingHelper-SrHoNEDL.js → accountMappingHelper-Bw9BHVZO.js} +1 -1
- package/dist/assets/{analytics-CkLW7NeW.js → analytics-B_CLn1Ul.js} +1 -1
- package/dist/assets/{analyticsHelper-CsGwj-FA.js → analyticsHelper-B7hqDlKb.js} +1 -1
- package/dist/assets/{core-Crl6eqZl.js → core-DD4ucbeL.js} +2 -2
- package/dist/assets/{decodeURIComponentSafe-DwYiSzjo.js → decodeURIComponentSafe-BktcwjbL.js} +1 -1
- package/dist/assets/dnd-Cu22uRa8.js +6 -0
- package/dist/assets/{empty-BpRPQOis.js → empty-B1Hf20j8.js} +1 -1
- package/dist/assets/empty-CPbPbc-a.js +1 -0
- package/dist/assets/{emptyVideoElement-BvjVfzOS.js → emptyVideoElement-Dr2zKDi1.js} +1 -1
- package/dist/assets/epic-C6jo-iY1.js +2 -0
- package/dist/assets/getLocaleForTenant-CgRBXORR.js +1 -0
- package/dist/assets/{index-B5it1rE5.js → index-B4es8_-m.js} +1 -1
- package/dist/assets/{index-Bs_5Wou0.js → index-BqMGT0qC.js} +2 -2
- package/dist/assets/{index-Dvok4kj_.js → index-BvQkZn_T.js} +1 -1
- package/dist/assets/{index-BLRtUSpL.js → index-BwN7KSwf.js} +39283 -44742
- package/dist/assets/{empty-C7ggsb2s.js → index-CYjTqm_J.js} +1 -1
- package/dist/assets/index-D9-Laq8s.js +1 -0
- package/dist/assets/{index-Cg0vsa8G.js → index-Df4A3-59.js} +1 -1
- package/dist/assets/{index-D5ItYKRr.js → index-Dg2R_5d6.js} +1 -1
- package/dist/assets/{index-BUmr5maU.css → index-R6GjjTB3.css} +1 -1
- package/dist/assets/{lexical-Bm_vZOjC.js → lexical-od8gr-YS.js} +1 -1
- package/dist/assets/{liveblocks-B5ZW-VBI.js → liveblocks-MixcwhMA.js} +1 -1
- package/dist/assets/{lottie-hSeCd_VX.js → lottie-DNZeEdYt.js} +1 -1
- package/dist/assets/{mui-U77PQnc2.js → mui-B9tA-iNs.js} +1 -1
- package/dist/assets/{pathToGoBack-BWWNiH76.js → pathToGoBack-lt1vcaoi.js} +1 -1
- package/dist/assets/{pdf-DDcPh2pm.js → pdf-U0RqbkDq.js} +3 -3
- package/dist/assets/{pdf-lib-ImawEH2S.js → pdf-lib-B0sxjeDS.js} +1 -1
- package/dist/assets/{plaid-TCRHScH1.js → plaid-1rZ3j0ON.js} +1 -1
- package/dist/assets/{pusher-CimMrDFu.js → pusher-BWF8rjk-.js} +1 -1
- package/dist/assets/{react-BghKQeK_.js → react-44tUBxR4.js} +1 -1
- package/dist/assets/{react-DyFf3w8Z.js → react-BGMQEPIO.js} +1 -1
- package/dist/assets/{react-DzBjlQkv.js → react-BegOZ3pf.js} +1 -1
- package/dist/assets/{react-DdRuig8o.js → react-C2g9wNPl.js} +1 -1
- package/dist/assets/{react-BUcjX1FU.js → react-CtJyjkrA.js} +1 -1
- package/dist/assets/{react-z5kfbX38.js → react-DfUtJgt7.js} +1 -1
- package/dist/assets/{recharts-e5u-LCPv.js → recharts-CaozTiuI.js} +3 -3
- package/dist/assets/{routePaths-DPA1vVZP.js → routePaths-BSrrnJaF.js} +1 -1
- package/dist/assets/{sentry-BxWyF9h9.js → sentry-D0mKmHcQ.js} +1 -1
- package/dist/assets/{url-DTS3WRFG.js → url-Cswc8HJl.js} +1 -1
- package/dist/assets/{url-jBDeguac.js → url-DhPILQKh.js} +1 -1
- package/dist/assets/useAiCfoDashboardSuggestedQuestionsChips-o4qwK4PS.js +1 -0
- package/dist/assets/useAskAiCfoHostNavButtonProps-Bi3X0FAy.js +1 -0
- package/dist/assets/{useDeviceId-BZa5m-bZ.js → useDeviceId-b55GRUBC.js} +1 -1
- package/dist/assets/useInitialThreadRequest-CGa-7wEN.js +1 -0
- package/dist/assets/{utils-BjvWDnmB.js → utils-CkXnspVD.js} +2 -2
- package/dist/assets/withTransactionSidePanel-CX4JOeDg.js +21 -0
- package/dist/assets/zeni-epic-state-BZ9oujed.js +13 -0
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/AddressRoutes-CokxYMz7.js +0 -1
- package/dist/assets/AiCfoScreen-Bj3wXYWo.js +0 -22
- package/dist/assets/BillPayApprovalRoutes-sQQt1ym6.js +0 -1
- package/dist/assets/BillPayRoutes-Cz4MhUrc.js +0 -119
- package/dist/assets/BusinessVerificationPageScreen-DoJw9h9m.js +0 -9
- package/dist/assets/CardsAiCfoScreen-1cCrf6uj.js +0 -14
- package/dist/assets/ChargeCardRoutes-n-hcaove.js +0 -71
- package/dist/assets/CompanyPassportScreen-CA3eoZ2w.js +0 -1
- package/dist/assets/ConnectionAuthScreen-FQS_lTfA.js +0 -11
- package/dist/assets/CustomerOnboardingAuthScreen-CZybU74A.js +0 -1
- package/dist/assets/CustomerOnboardingRoutes-Dh2ji4Ib.js +0 -30
- package/dist/assets/DefaultTenantHome-W15wNhHv.js +0 -1
- package/dist/assets/DomesticWireDetailScreen-DIHmD-T9.js +0 -18
- package/dist/assets/DrawerScreen-l4bgWPF0.js +0 -1
- package/dist/assets/EntityDetailRoutes-D_4M1i6-.js +0 -1
- package/dist/assets/ExpenseAutomationRoutes-D_tUJVpQ.js +0 -25
- package/dist/assets/FeaturePreviewScreen-bdq3UTfq.js +0 -1
- package/dist/assets/HubSpotOAuthCallbackScreen-BiptMZ2v.js +0 -1
- package/dist/assets/MagicLinkRoutes-D9L5ixx1.js +0 -72
- package/dist/assets/MagicLinkSignInScreen-COSHfZPw.js +0 -12
- package/dist/assets/NotFoundScreen-CJOPcpwO.js +0 -1
- package/dist/assets/NotificationRoutes-BsMblVx4.js +0 -1
- package/dist/assets/OAuthConsentScreen-ChMO7Sn2.js +0 -1
- package/dist/assets/PandLWithForecastRoutes-DtUWky96.js +0 -1
- package/dist/assets/PeopleRoutes-Bqk8AEBI.js +0 -22
- package/dist/assets/PerformanceRoutes-Yjr-NhGS.js +0 -1
- package/dist/assets/ReferralListScreen-DM7LN1h1.js +0 -5
- package/dist/assets/ReimbursementApprovalRoutes-CvztO8p6.js +0 -1
- package/dist/assets/ReimbursementApprovalRuleDetailScreen-Buh9WwCp.js +0 -1
- package/dist/assets/ReimbursementRoutes-CPQJS69Z.js +0 -68
- package/dist/assets/ReportsRoutes-ByQCq-V7.js +0 -1
- package/dist/assets/RewardsRoutes-DcexvwE7.js +0 -1
- package/dist/assets/ScreenRoutes-Hfrkc2Mi.js +0 -2
- package/dist/assets/SettingsRoutes-Dwjn6yiJ.js +0 -57
- package/dist/assets/SetupPagesScreen-Dnm5sccr.js +0 -29
- package/dist/assets/SignInScreen-Ed4IpkrH.js +0 -1
- package/dist/assets/SignOutScreen-DqyDFgZP.js +0 -9
- package/dist/assets/TaskListScreen-CpyZd3qR.js +0 -9
- package/dist/assets/TaskRoutes-Dp2ngbX6.js +0 -9
- package/dist/assets/TransactionDetailRoutes-Ci_NeqmW.js +0 -1
- package/dist/assets/TransactionDetailScreen-CsoYHiYS.js +0 -5
- package/dist/assets/TransactionListRoutes-BEUFTqmF.js +0 -1
- package/dist/assets/TreasuryRoutes-Cdxg8mbK.js +0 -37
- package/dist/assets/WiseConfirmationScreen-DuXEdOHj.js +0 -12
- package/dist/assets/ZeniAccountRoutes-CY5eCxJd.js +0 -73
- package/dist/assets/ZeniAccountStatementScreen-0gnO9ODP.js +0 -9
- package/dist/assets/dnd-tE28jHT7.js +0 -6
- package/dist/assets/epic-Qgvh4PH7.js +0 -2
- package/dist/assets/getLocaleForTenant-e8sE0WQV.js +0 -1
- package/dist/assets/index-BdlPaglK.js +0 -1
- package/dist/assets/index-CZNTdKXM.js +0 -1
- package/dist/assets/useAiCfoDashboardSuggestedQuestionsChips-YJwtjlAT.js +0 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-Cpb6UCmb.js +0 -1
- package/dist/assets/useCashManagementBanner-C3EqNZA6.js +0 -1
- package/dist/assets/useChargeCardPusherEvents-uB8sjNP3.js +0 -1
- package/dist/assets/useEmailConnectResultRefresh-CgBbGn6X.js +0 -1
- package/dist/assets/useInitialThreadRequest-DVPS_iNz.js +0 -1
- package/dist/assets/withTransactionSidePanel-CPTD79Uy.js +0 -21
- package/dist/assets/zeni-epic-state-DTyrT1Ga.js +0 -13
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as n}from"./index-BLRtUSpL.js";import"./mui-U77PQnc2.js";import"./sentry-BxWyF9h9.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]="9b1d25c1-f0ca-4ee0-b7c1-2ba41679747b",e._sentryDebugIdIdentifier="sentry-dbid-9b1d25c1-f0ca-4ee0-b7c1-2ba41679747b")}catch{}})();function l(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{l as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as d}from"./sentry-BxWyF9h9.js";import{r as s}from"./index-D5ItYKRr.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]="0d663ffc-e016-47fb-8389-e13bb14511a3",e._sentryDebugIdIdentifier="sentry-dbid-0d663ffc-e016-47fb-8389-e13bb14511a3")}catch{}})();function b(e,t){for(var o=0;o<t.length;o++){const r=t[o];if(typeof r!="string"&&!Array.isArray(r)){for(const n in r)if(n!=="default"&&!(n in e)){const f=Object.getOwnPropertyDescriptor(r,n);f&&Object.defineProperty(e,n,f.get?f:{enumerable:!0,get:()=>r[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var i=s();const u=b({__proto__:null,default:d(i)},[i]);export{u as i};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./sentry-BxWyF9h9.js";import{r as u}from"./index-D5ItYKRr.js";import{r as d}from"./url-jBDeguac.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]="16821cf9-c147-4b6f-b48c-768e1268c466",e._sentryDebugIdIdentifier="sentry-dbid-16821cf9-c147-4b6f-b48c-768e1268c466")}catch{}})();var i,p={exports:{}};function y(){return i||(i=1,function(e){var o=u(),c=d(),r=e.exports;for(var n in o)o.hasOwnProperty(n)&&(r[n]=o[n]);function f(t){if(typeof t=="string"&&(t=c.parse(t)),t.protocol||(t.protocol="https:"),t.protocol!=="https:")throw new Error('Protocol "'+t.protocol+'" not supported. Expected "https:"');return t}r.request=function(t,s){return t=f(t),o.request.call(this,t,s)},r.get=function(t,s){return t=f(t),o.get.call(this,t,s)}}(p)),p.exports}export{y as r};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bg as n}from"./index-BLRtUSpL.js";import"./sentry-BxWyF9h9.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},f=new e.Error().stack;f&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[f]="f595c174-ae3f-4b12-9997-f6cf9bf5c5ac",e._sentryDebugIdIdentifier="sentry-dbid-f595c174-ae3f-4b12-9997-f6cf9bf5c5ac")}catch{}})();function t(){return n("dashboard")}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as b}from"./sentry-BxWyF9h9.js";import{h as u,g,i as h,j as S}from"./core-Crl6eqZl.js";import{eW as y}from"./zeni-epic-state-DTyrT1Ga.js";import{U as k,j as C,a as A,Y as T,_ as I,s as w,a1 as D}from"./index-BLRtUSpL.js";import"./mui-U77PQnc2.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]="c2355753-344b-497c-bf97-8b459c6302c1",e._sentryDebugIdIdentifier="sentry-dbid-c2355753-344b-497c-bf97-8b459c6302c1")}catch{}})();function j(e){const{mobileExploreReferrer:t}=e,{isAiCfoOpen:r,setIsAiCfoOpen:i}=k(),s=u(),o=g(),{tenantEmailDomain:n}=h(),l=C(),f=D(l),d=A(),p=T(),m=S(a=>a.tenantState.fetchState==="Completed"||a.tenantState.activeTenantFetchState.fetchState==="Completed"?y(a):void 0),c=m?.masterTOSInfo?.isMasterTOSAccepted??!1;return{isAiCfoAccessEnabled:p&&d&&!r,onAskAiCfoClick:b.useCallback(()=>{if(n!=null)if(c)if(f){const a=w(o.state?.pathnameStackToGoBack,o.pathname);s(`/${n}/ai-cfo/explore`,{state:{pathnameStackToGoBack:a,referrer:t}})}else i(!0);else I({location:o,navigate:s,mergeState:{referrer:t}})},[c,f,o,t,s,i,n])}}export{j as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as d}from"./sentry-BxWyF9h9.js";import{u as m,h as b,i as l,j as f}from"./core-Crl6eqZl.js";import{W as p,Q as c}from"./index-BLRtUSpL.js";import"./mui-U77PQnc2.js";import{Rk as g,Rc as h,Bo as y}from"./zeni-epic-state-DTyrT1Ga.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]="aa06ad82-466f-4ae9-b672-fe76a83a2173",e._sentryDebugIdIdentifier="sentry-dbid-aa06ad82-466f-4ae9-b672-fe76a83a2173")}catch{}})();function k(){const e=m(),a=b(),{tenantEmailDomain:o}=l(),{useFeatureGate:i}=p(),{isFeatureEnabled:t}=i(c.isCashManagementFeatureEnabled),r=f(s=>g(s)),u=f(s=>h(s)),n=r.banner.fetchState;if(d.useEffect(()=>{t===!0&&n!=="Completed"&&n!=="In-Progress"&&e(y(!1))},[e,t,n]),t===!0)return{banner:r.banner,bufferAmount:u.formData.bufferAmount,onSetUpAutoSweepClick:()=>{a(`/${o}/checking/cash_management/auto_sweep`,{state:{fromCashManagement:!0}})}}}export{k as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as r}from"./sentry-BxWyF9h9.js";import{ax as _,ay as m}from"./index-BLRtUSpL.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]="9642eb86-38d3-46c2-bbcb-5ea133040053",e._sentryDebugIdIdentifier="sentry-dbid-9642eb86-38d3-46c2-bbcb-5ea133040053")}catch{}})();const v=e=>{const{events:n,onEvent:d,onSubscribed:h}=e,o=_(),y=r.useRef(d),p=r.useRef(h),g=r.useRef(0);r.useEffect(()=>{y.current=d},[d]),r.useEffect(()=>{p.current=h},[h]);const E=r.useMemo(()=>[...n].sort().join("|"),[n]);r.useEffect(()=>{if(o==null||n.length===0)return;const i=[],f=new Set,w=()=>{if(p.current==null)return;const t=Date.now();t-g.current<5e3||(g.current=t,p.current())};return n.forEach(t=>{const[u,c]=m(t);if(c==="")return;const b=o.channel(u),a=l=>{y.current(c,l)};let s;if(b?.subscribed===!0)s=b,s.bind(c,a),f.has(u)||(f.add(u),w()),i.push(()=>{b.unbind(c,a)});else{if(s=b??o.subscribe(u),s.bind(c,a),!f.has(u)){f.add(u);const l=()=>{w()};s.bind("pusher:subscription_succeeded",l),i.push(()=>{s.unbind("pusher:subscription_succeeded",l)})}i.push(()=>{s.unbind(c,a)})}}),()=>{i.forEach(t=>t())}},[o,E])};export{v as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as u}from"./sentry-BxWyF9h9.js";import{u as c,j as b}from"./core-Crl6eqZl.js";import{eW as m,gs as h,tR as g,N2 as p}from"./zeni-epic-state-DTyrT1Ga.js";import{z as w}from"./index-BLRtUSpL.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]="072a53a4-9314-4f1b-92af-0f69b844907b",e._sentryDebugIdIdentifier="sentry-dbid-072a53a4-9314-4f1b-92af-0f69b844907b")}catch{}})();const l="email_connect_result",f="onboarding_step",D=()=>{const e=c(),n=b(a=>m(a).tenantId),t=w.getSignedInUser()?.userId,o=u.useRef(!1);u.useEffect(()=>{if(o.current||t==null||t===""||n==null||n==="")return;const{consumed:a,onboardingStep:r}=(()=>{const s=new URL(window.location.href),d=s.searchParams.has(l),i=s.searchParams.get(f);return d||i!=null?(s.searchParams.delete(l),s.searchParams.delete(f),window.history.replaceState(window.history.state,"",`${s.pathname}${s.search}${s.hash}`),{consumed:d,onboardingStep:i}):{consumed:!1,onboardingStep:null}})();!a&&r==null||(o.current=!0,a&&e(h(t,n)),r!=null&&new Set(["connect_data_source"]).has(r)&&e(g({step:p(r)})))},[e,n,t])};export{D as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as n}from"./sentry-BxWyF9h9.js";import{t as c}from"./core-Crl6eqZl.js";import{a6 as l}from"./index-BLRtUSpL.js";import"./mui-U77PQnc2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="31d41479-2f58-4595-a389-833b7e930dd8",e._sentryDebugIdIdentifier="sentry-dbid-31d41479-2f58-4595-a389-833b7e930dd8")}catch{}})();function m(e,d){const{clearParams:a=!0}=d??{},[t,f]=c(),[i,o]=n.useState(),s=n.useRef(!1),u=n.useRef(!1);return n.useEffect(()=>{if(s.current||e==null||!(t.has("thread_id")||t.has("entity_type")))return;const r=l(t,e);r!=null&&(o(r),s.current=!0)},[t,e]),n.useEffect(()=>{if(!s.current||u.current||!a||!(t.has("thread_id")||t.has("entity_type")))return;const r=new URLSearchParams(t);r.delete("thread_id"),r.delete("entity_type"),f(r,{replace:!0}),u.current=!0},[t,f,a]),i}export{m as u};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./liveblocks-B5ZW-VBI.js";import{b as ne,a as t}from"./sentry-BxWyF9h9.js";import{I as se,W as U,Q as D,Z as ie,aW as oe,aT as re,j as ce,aX as le}from"./index-BLRtUSpL.js";import{n as W}from"./mui-U77PQnc2.js";import{u as de}from"./useAskAiCfoHostNavButtonProps-Cpb6UCmb.js";import{u as ue,a as me,b as pe,c as he,C as fe,d as be,e as Pe}from"./TransactionDetailScreen-CsoYHiYS.js";import{h as L,g as B,i as _,u as Te,j as ye}from"./core-Crl6eqZl.js";import{ra as Ie,Nd as xe,Jt as Ee}from"./zeni-epic-state-DTyrT1Ga.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new n.Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="f7938ad9-ea20-4112-98ed-a4fecc12b031",n._sentryDebugIdIdentifier="sentry-dbid-f7938ad9-ea20-4112-98ed-a4fecc12b031")}catch{}})();const q=W.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
height: 100%;
|
|
5
|
-
`,K=W.div`
|
|
6
|
-
flex: 1;
|
|
7
|
-
min-height: 0;
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
box-sizing: border-box;
|
|
11
|
-
min-width: 0;
|
|
12
|
-
overflow-x: hidden;
|
|
13
|
-
overflow-y: auto;
|
|
14
|
-
`,ve=W.div`
|
|
15
|
-
display: flex;
|
|
16
|
-
flex: 1;
|
|
17
|
-
flex-direction: column;
|
|
18
|
-
min-height: 0;
|
|
19
|
-
min-width: 0;
|
|
20
|
-
box-sizing: border-box;
|
|
21
|
-
`,Ce=ne.memo(({isFullView:n,transactionId:e,transactionType:c,isTransactionCommentingEnabled:m,onBackToList:f,onClose:a})=>{const b=L(),s=B(),{tenantEmailDomain:l}=_(),P=se(),{useFeatureGate:O}=U(),{isFeatureEnabled:I}=O(D.isCreateTransferEntryFromExpenseEnabled),x=a!=null&&n!==!0,$=P?.currentTenant?.companyId,V=P?.currentTenant?.companyName,{isFeatureEnabled:d}=O(D.isProjectsTransactionsEnabled),{selectedTransaction:h,transactionDetail:v,tranEntity:T,isChainOfThoughtEnabled:A,defaultTrendTransactionTimePeriod:o,resetTrendIsFetchedStates:F,uncategorizedAccounts:j,vendorSaveStatus:C,isVendorBulkUpdateOnTransactionEnabled:g,isExpenseAutomationEnabled:y,isUncategorizedExpenseCategoryEnabled:M,firstMonthOfFY:z,isCreateVendorDrawerOpen:k,rawDetailSaveStatus:N,rawDetailLineItemById:S}=ue(e,c);me(n===!0);const i=t.useRef(S);i.current=S;const p=pe(N,()=>{const Q=[],X=i.current;if(X!=null)for(const te of Object.values(X)){const Z=te.account;Z?.accountId!=null&&Q.push(Z.accountId)}return Q}),{transactionId:E,onSaveVendor:R,onSaveSuccess:u,onCancel:w}=he({closeDrawerHandler:()=>{},overrideTransactionId:e,overrideTransactionType:c}),{isAiCfoAccessEnabled:Y,onAskAiCfoClick:ae}=de({mobileExploreReferrer:"Transaction Details"}),H=n===!0&&Y;if(ie({isDataReady:n===!0&&v?.fetchState==="Completed"}),v==null)return r.jsx(q,{children:r.jsx(K,{children:r.jsx(oe,{})})});const J=r.jsxs(r.Fragment,{children:[E!=null&&k?r.jsx(fe,{isOpen:k,transactionId:E,onSaveVendor:R,onSaveSuccess:u,onCancel:w}):null,r.jsx(ve,{children:r.jsx(be,{hideDeleteAttachment:!0,firstMonthOfFY:z,isDisabled:v?.transaction?.type==="transfer"&&P?.connectionName==="netsuite"?"readonly":void 0,isNavBarVisible:!x,tenantEmailDomain:l??"",location:s,navigate:b,selectedTransaction:h,entity:T,isCOTEnabled:A,isCreateTransferEntryFromExpenseEnabled:I,defaultTrendTransactionTimePeriod:o,resetTrendIsFetchedStates:F,transaction:v?.transaction,uncategorizedAccounts:j,vendorSaveStatus:C,isVendorBulkUpdateOnTransactionEnabled:g,isExpenseAutomationEnabled:y,isUncategorizedExpenseCategoryEnabled:M,isAiCfoAccessEnabled:H,onAskAiCfoClick:H?ae:void 0,isTransactionCommentingEnabled:m,isProjectsTransactionsEnabled:d,companyId:$,companyName:V,onBackClick:f})}),p.showPopup&&p.popupType!=null&&r.jsx(re,{popupType:p.popupType,currencySymbol:p.currencySymbol,accountId:p.popupAccountId??"",accountName:p.popupAccountName??"",onSubmit:p.handleSubmit,onDismiss:p.handleDismiss})]});return x?r.jsx(q,{children:r.jsx(K,{children:J})}):J}),ge=[];function ee(n){try{return decodeURIComponent(n)}catch{return n}}const Se=/^transaction\/([^/]+)\/([^/?]+)$/;function we(n=!0){const e=L(),c=B(),m=Te(),f=_(),a=function(d){const{childPathPattern:h,enabled:v=!0}=d,T=L(),A=_(),o=B(),F=ce(),j=F==="small"||F==="medium-compact",C=A["*"]??"",g=C.match(h),y=v&&!j&&g!=null,M=t.useMemo(()=>new URLSearchParams(o.search).get("view"),[o.search]),z=y&&M==="full",k=g?.slice(1).join("\0"),N=t.useMemo(()=>g==null?ge:g.slice(1),[k]),S=t.useMemo(()=>{if(!C)return o.pathname;const u=o.pathname.lastIndexOf("/"+C);return u>=0?o.pathname.slice(0,u):o.pathname},[o.pathname,C]),i=t.useRef({isOpen:y,locationState:o.state,basePath:S,pathname:o.pathname,search:o.search});i.current.isOpen=y,i.current.locationState=o.state,i.current.basePath=S,i.current.pathname=o.pathname,i.current.search=o.search;const p=t.useCallback((u,w)=>{T(`${i.current.basePath}/${u}`,{replace:w?.replace??!1,state:i.current.locationState})},[T]),E=t.useCallback(()=>{i.current.isOpen&&T(i.current.basePath,{replace:!0,state:i.current.locationState})},[T]),R=t.useCallback(()=>{const u=new URLSearchParams(i.current.search);u.set("view","full"),T(`${i.current.pathname}?${u.toString()}`,{replace:!0,state:i.current.locationState})},[T]);return t.useEffect(()=>{if(!y)return;const u=w=>{if(w.key==="Escape"){if(w.target?.closest('[role="dialog"], [role="alertdialog"]'))return;E()}};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[y,E]),{backToList:E,basePath:S,closePanel:E,isFullView:z,isMobile:j,isOpen:y,matchGroups:N,maximize:R,navigateToChild:p}}({childPathPattern:Se,enabled:n}),b=a.matchGroups[0]!=null&&a.matchGroups[0]!==""?Ie(ee(a.matchGroups[0])):void 0,s=a.matchGroups[1]!=null&&a.matchGroups[1]!==""?ee(a.matchGroups[1]):void 0,l=t.useMemo(()=>{if(n&&s!=null&&b!=null)return{id:s,type:b}},[n,s,b]),P=ye(d=>{if(l!=null)return xe(d,l)}),O=t.useMemo(()=>a.isOpen&&l!=null?P==null?"In-Progress":P.fetchState:"Not-Started",[a.isOpen,l,P]),I=f.tenantEmailDomain??c.pathname.split("/").find(Boolean)??"";t.useEffect(()=>{a.isOpen&&l!=null&&m(Ee(l,!1))},[m,a.isOpen,l]);const x=t.useRef({isOpen:a.isOpen,transactionId:s});x.current={isOpen:a.isOpen,transactionId:s};const $=t.useCallback(d=>{const h=encodeURIComponent(d.type);return a.isMobile||!n?`/${I}/transaction/${h}/${d.id}${c.search}`:`${a.basePath}/transaction/${h}/${d.id}${c.search}`},[a.isMobile,a.basePath,n,I,c.search]);Pe({currentTransactionId:l,enabled:I!=="",buildPath:$,navigate:e,navigateState:c.state});const V=t.useCallback((d,h)=>{!a.isMobile&&n?x.current.isOpen&&x.current.transactionId===d?a.closePanel():a.navigateToChild(`transaction/${encodeURIComponent(h)}/${d}`,{replace:x.current.isOpen}):e(`/${I}/transaction/${encodeURIComponent(h)}/${d}`)},[e,a.isMobile,a.navigateToChild,a.closePanel,n,I]);return{backToList:a.closePanel,closePanel:a.closePanel,fetchState:O,isFullView:a.isFullView,isOpen:a.isOpen,maximize:a.maximize,openPanel:V,selectedTransactionId:n?l:void 0,transactionDetail:n?P:void 0,transactionId:n?s:void 0,transactionType:n?b:void 0}}const Me=(G={displayNamePrefix:"withTransactionSidePanel",usePanelSetup:function(n){const e=we(n),{useFeatureGate:c}=U(),{isFeatureEnabled:m}=c(D.isTransactionCommentingEnabled),f=t.useMemo(()=>{if(e.isOpen&&e.transactionId!=null&&e.transactionType!=null)return r.jsx(Ce,{isFullView:e.isFullView,isTransactionCommentingEnabled:m,transactionId:e.transactionId,transactionType:e.transactionType,onBackToList:e.closePanel,onClose:e.closePanel})},[e.isOpen,e.isFullView,e.transactionId,e.transactionType,e.closePanel,m]);return{injectedProps:t.useMemo(()=>n?{closeSidePanel:e.closePanel,openTransactionPanel:e.openPanel,panelContent:f,sidePanelIsFullView:e.isFullView,sidePanelIsOpen:e.isOpen}:{},[n,e.closePanel,e.openPanel,f,e.isFullView,e.isOpen]),selectedItemId:e.transactionId,sidePanel:e}}},function(n){const e=n.displayName??n.name??"Component",c=ne.memo(n),m=f=>{const{useFeatureGate:a}=U(),{isFeatureEnabled:b}=a(D.isTransactionDetailSplitViewEnabled),s=G.usePanelSetup(b),l=t.useMemo(()=>({closePanel:s.sidePanel.closePanel,maximize:s.sidePanel.maximize,selectedItemId:s.selectedItemId}),[s.sidePanel.closePanel,s.sidePanel.maximize,s.selectedItemId]);return r.jsx(le.Provider,{value:l,children:r.jsx(c,{...f,...s.injectedProps})})};return m.displayName=`${G.displayNamePrefix}(${e})`,m});var G;export{Me as w};
|