@zeniai/web-app-ui 5.0.71-dev → 5.0.71-qa
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-DkpE57wD.js → AddressRoutes-5CCOxTr2.js} +1 -1
- package/dist/assets/{AddressScreen-IPMb-Lqg.js → AddressScreen-CVaBIk3t.js} +1 -1
- package/dist/assets/{AiCfoScreen-DxwryQBf.js → AiCfoScreen-D6mvZyge.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-B33P7K39.js → BillPayApprovalRoutes-CIInRn04.js} +1 -1
- package/dist/assets/{BillPayRoutes-D2OQNHTr.js → BillPayRoutes-D_jxjd1M.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-BI3GYpKu.js → BusinessVerificationPageScreen-DAwDD_bm.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-DZTXpkWd.js → ChargeCardRoutes-DdYME33t.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-kKTXGF13.js → CompanyPassportScreen-D_8pLYfg.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-CYS4bJsi.js → ConnectionAuthScreen-CriB39Xz.js} +1 -1
- package/dist/assets/{CustomerOnboardingAuthScreen-CFcE03ug.js → CustomerOnboardingAuthScreen-CBJhqd-i.js} +1 -1
- package/dist/assets/{CustomerOnboardingRoutes-jk197VvK.js → CustomerOnboardingRoutes-Dcw2XPmu.js} +1 -1
- package/dist/assets/{DashboardRoutes-Ckl1eEC2.js → DashboardRoutes-BhdPr2GF.js} +1 -1
- package/dist/assets/{DefaultTenantHome-TLtEW787.js → DefaultTenantHome-CkBWCCtz.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-BkEDowN8.js → DomesticWireDetailScreen-Bf9aHic4.js} +1 -1
- package/dist/assets/{DrawerScreen-B_tMe04S.js → DrawerScreen-QCmmvlF6.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-DlKVqtyC.js → EntityDetailRoutes-DdwcJW7z.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-BqK3TSEk.js → ExpenseAutomationRoutes-DES_BtrB.js} +1 -1
- package/dist/assets/{FeaturePreviewScreen-aYYY9m7f.js → FeaturePreviewScreen-CaG7JnKZ.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-BLaYeloO.js → MagicLinkRoutes-CR_jNPOw.js} +1 -1
- package/dist/assets/{MagicLinkSignInScreen-CUegQSoi.js → MagicLinkSignInScreen-4mWYkROk.js} +1 -1
- package/dist/assets/{MobileAppDrawer-BDT0TmvR.js → MobileAppDrawer-D4ZBwL0S.js} +1 -1
- package/dist/assets/{NotFoundScreen-C4aqnA8_.js → NotFoundScreen-C5xQLNp5.js} +1 -1
- package/dist/assets/{NotificationRoutes-BblXuLTj.js → NotificationRoutes-AjC-eiyq.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-sykQomv8.js → OAuthConsentScreen-C0-WkjRa.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-CBrTW5wX.js → PandLWithForecastRoutes-CvBf2XE1.js} +1 -1
- package/dist/assets/{PeopleRoutes-B9d9GdEF.js → PeopleRoutes-nf8deapU.js} +1 -1
- package/dist/assets/{PerformanceRoutes-BFJ-jyRc.js → PerformanceRoutes-CROn65HM.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-DQkFbpJH.js → QBOConnectionScreen-2glPhn1w.js} +1 -1
- package/dist/assets/{ReferralListScreen-CyoB8VnU.js → ReferralListScreen-D-N3tpSF.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-B00fD8b9.js → ReimbursementApprovalRoutes-B4fBWBNF.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-DMdpETrG.js → ReimbursementApprovalRuleDetailScreen-4bFMeUHK.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-u-qnVfy0.js → ReimbursementRoutes-BLD8FL8b.js} +1 -1
- package/dist/assets/{ReportsRoutes-CqNp_xpd.js → ReportsRoutes-D5xd8TtX.js} +1 -1
- package/dist/assets/{RewardsRoutes-R2VgDdnw.js → RewardsRoutes-B15SPUkv.js} +1 -1
- package/dist/assets/{ScreenRoutes-9MMqpDv8.js → ScreenRoutes-Bn70uOp_.js} +2 -2
- package/dist/assets/{SettingsRoutes-KHzSnNUm.js → SettingsRoutes-CPIUaVtM.js} +1 -1
- package/dist/assets/{SetupPagesScreen-Cdo59_U5.js → SetupPagesScreen-CQHQEfZR.js} +1 -1
- package/dist/assets/{SignInScreen-DX4DUgMU.js → SignInScreen-CXtJQb9R.js} +1 -1
- package/dist/assets/{SignOutScreen-DOTJzbce.js → SignOutScreen-DZEhFMYQ.js} +1 -1
- package/dist/assets/{TaskListScreen-C1G-Z2qb.js → TaskListScreen-BHrgKFiB.js} +1 -1
- package/dist/assets/{TaskRoutes-DeZTJnM4.js → TaskRoutes-DW3Iqk39.js} +1 -1
- package/dist/assets/{TransactionDetailRoutes-CxGTwTQr.js → TransactionDetailRoutes-DutRhuIK.js} +1 -1
- package/dist/assets/{TransactionDetailScreen-DbXqL9Dv.js → TransactionDetailScreen-efNQkWz4.js} +1 -1
- package/dist/assets/{TransactionListRoutes-r3XEp13P.js → TransactionListRoutes-DM1ZMmIL.js} +1 -1
- package/dist/assets/{TreasuryRoutes-Cp7F7y4J.js → TreasuryRoutes-D5tqMpU5.js} +1 -1
- package/dist/assets/{VendorsRoutes-BBf47BBb.js → VendorsRoutes-DTKMi1Pl.js} +1 -1
- package/dist/assets/{WiseConfirmationScreen-BZsn9iwu.js → WiseConfirmationScreen-NT3jIc6M.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes--fSibHTb.js → ZeniAccountRoutes-C8L4BAwp.js} +1 -1
- package/dist/assets/{ZeniAccountStatementScreen-BKbkGQh4.js → ZeniAccountStatementScreen-Bmtq5P9-.js} +1 -1
- package/dist/assets/{analyticsHelper-DUlInMOD.js → analyticsHelper-DBYfXkXK.js} +1 -1
- package/dist/assets/{getLocaleForTenant-C-vhBCTM.js → getLocaleForTenant-BKKkwx8r.js} +1 -1
- package/dist/assets/{index-CGS6zWWp.js → index-CU-O3XlP.js} +5 -5
- package/dist/assets/{routePaths-DZkWYInw.js → routePaths-D5WTdktl.js} +1 -1
- package/dist/assets/{useAskAiCfoHostNavButtonProps-Nsv7MqoG.js → useAskAiCfoHostNavButtonProps-C2KX1gk_.js} +1 -1
- package/dist/assets/{useFetchSuggestedQuestionsWhenReady-C86A67zi.js → useFetchSuggestedQuestionsWhenReady-BtBjAnV1.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-AyrSL871.js → useInitialThreadRequest-BmoUHeBa.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-BmH5jBz_.js → withTransactionSidePanel-D68X8m-E.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardRoutes-
|
|
2
|
-
import{_ as n,bn as os,eO as ls,eU as cs,eS as ds,eT as ms,fD as us,eQ as _s,cP as Ee,cw as Es,f9 as As,co as ps,bD as Is,bq as gs,fe as xs,v as Ts,IB as hs,bv as js,IC as Us,bF as bs,fb as Ds,bE as Hs,bs as Rs,ck as ys,ID as fs,IE as Cs,cM as vs,cO as Os,cN as Ps,cv as Fs,cB as Bs,mm as Ae,eP as pe,fN as Ls,fi as Ie,fK as ge,fL as xe,fj as ks}from"./zeni-epic-state-H6DZSSlf.js";import{j as e}from"./liveblocks-BdePShct.js";import{a as v}from"./sentry-CX_3yQh7.js";import{h as Vs,j as Ss,l as Ns,u as Ms,g as z,i as Te,N as c,n as Zs,o as t}from"./core-C_ZreJAw.js";import{m as ws,u as zs,z as D,y as $s,a as Gs,l as Ys,$ as B,k as qs,L,D as he,t as _,P as Ws,c as X,d as l}from"./index-CGS6zWWp.js";import"./mui-BtnH6ELy.js";import{f as je}from"./analyticsHelper-DUlInMOD.js";import{t as Ks}from"./getLocaleForTenant-C-vhBCTM.js";import"./recharts-CHr9O26_.js";import"./analytics-CgF6EPDF.js";import"./plaid-CLHQ0yLv.js";import"./dnd-C3uQO7Bn.js";import"./stripe-DMRn4zHo.js";import"./lottie-CUKBWgbe.js";import"./lexical-E_ubWL4u.js";import"./pdf-CH0jWS01.js";import"./utils-Dw8b4HCO.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},U=new i.Error().stack;U&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[U]="a9d02cf9-50d0-408b-a3ad-b9a1f69f6451",i._sentryDebugIdIdentifier="sentry-dbid-a9d02cf9-50d0-408b-a3ad-b9a1f69f6451")}catch{}})();const Qs={dashboard:()=>n(()=>import("./DashboardRoutes-Ckl1eEC2.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20])),bills:()=>n(()=>import("./BillPayRoutes-D2OQNHTr.js"),__vite__mapDeps([21,1,2,3,4,5,6,7,22,14,23,9,10,24,25,17,18,26,15,13,27,28,29,30,20])),reimbursement:()=>n(()=>import("./ReimbursementRoutes-u-qnVfy0.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,14,26,17,15,13,27,18,9,10,24,25,32,29,30,20])),transactions:()=>n(()=>import("./TransactionListRoutes-r3XEp13P.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,34,20])),settings:()=>n(()=>import("./SettingsRoutes-KHzSnNUm.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,17,36,22,14,15,27,13,16,37,38,39,40,41,12,28,29,32,20])),reports:()=>n(()=>import("./ReportsRoutes-CqNp_xpd.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,14,18,10,24,13,17,20])),chargeCards:()=>n(()=>import("./ChargeCardRoutes-DZTXpkWd.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,26,17,14,15,13,27,9,10,22,20])),people:()=>n(()=>import("./PeopleRoutes-B9d9GdEF.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,14,9,10,17,20])),expenseAutomation:()=>n(()=>import("./ExpenseAutomationRoutes-BqK3TSEk.js"),__vite__mapDeps([45,1,2,3,14,4,5,6,7,9,10,11,12,13,8,36,25,20])),treasury:()=>n(()=>import("./TreasuryRoutes-Cp7F7y4J.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,14,26,17,15,13,27,9,10,18,20])),vendors:()=>n(()=>import("./VendorsRoutes-BBf47BBb.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,22,14,18,13,48,9,10,17,25,36,20])),zeniAccounts:()=>n(()=>import("./ZeniAccountRoutes--fSibHTb.js"),__vite__mapDeps([49,1,2,3,4,5,6,7,14,26,17,15,13,27,18,23,22,9,10,34,20]))},Js=["bills","transactions","settings","reimbursement","reports","chargeCards","people"],ee=i=>{"requestIdleCallback"in window?requestIdleCallback(i):setTimeout(i,100)},Xs=l(()=>n(()=>import("./ReportsRoutes-CqNp_xpd.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,14,18,10,24,13,17,20]))),en=l(()=>n(()=>import("./AddressRoutes-DkpE57wD.js"),__vite__mapDeps([50,1,2,3,22,4,5,6,7,14,20]))),sn=l(()=>n(()=>import("./PeopleRoutes-B9d9GdEF.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,14,9,10,17,20]))),nn=l(()=>n(()=>import("./PandLWithForecastRoutes-CBrTW5wX.js"),__vite__mapDeps([51,1,2,3,4,5,6,7,14,18,9,10,24,13,17,20]))),an=l(()=>n(()=>import("./CustomerOnboardingRoutes-jk197VvK.js"),__vite__mapDeps([52,1,2,3,22,4,5,6,7,14,37,38,39,40,41,12,20]))),tn=l(()=>n(()=>import("./VendorsRoutes-BBf47BBb.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,22,14,18,13,48,9,10,17,25,36,20]))),rn=l(()=>n(()=>import("./TransactionDetailRoutes-CxGTwTQr.js"),__vite__mapDeps([53,1,2,3,14,4,5,6,7,11,9,10,12,13,20]))),Ue=l(()=>n(()=>import("./EntityDetailRoutes-DlKVqtyC.js"),__vite__mapDeps([54,1,2,3,4,5,6,7,12,8,9,10,11,13,20]))),on=l(()=>n(()=>import("./DashboardRoutes-Ckl1eEC2.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]))),be=l(()=>n(()=>import("./BillPayRoutes-D2OQNHTr.js"),__vite__mapDeps([21,1,2,3,4,5,6,7,22,14,23,9,10,24,25,17,18,26,15,13,27,28,29,30,20]))),ln=l(()=>n(()=>import("./SettingsRoutes-KHzSnNUm.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,17,36,22,14,15,27,13,16,37,38,39,40,41,12,28,29,32,20]))),De=l(()=>n(()=>import("./ReimbursementRoutes-u-qnVfy0.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,14,26,17,15,13,27,18,9,10,24,25,32,29,30,20]))),cn=l(()=>n(()=>import("./ZeniAccountRoutes--fSibHTb.js"),__vite__mapDeps([49,1,2,3,4,5,6,7,14,26,17,15,13,27,18,23,22,9,10,34,20]))),dn=l(()=>n(()=>import("./TreasuryRoutes-Cp7F7y4J.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,14,26,17,15,13,27,9,10,18,20]))),mn=l(()=>n(()=>import("./TransactionListRoutes-r3XEp13P.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,34,20]))),un=l(()=>n(()=>import("./ChargeCardRoutes-DZTXpkWd.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,26,17,14,15,13,27,9,10,22,20]))),_n=l(()=>n(()=>import("./NotificationRoutes-BblXuLTj.js"),__vite__mapDeps([55,1,2,3,14,4,5,6,7,9,10,20]))),En=l(()=>n(()=>import("./PerformanceRoutes-BFJ-jyRc.js"),__vite__mapDeps([56,1,2,3,14,4,5,6,7,9,10,17,20]))),An=l(()=>n(()=>import("./ExpenseAutomationRoutes-BqK3TSEk.js"),__vite__mapDeps([45,1,2,3,14,4,5,6,7,9,10,11,12,13,8,36,25,20]))),pn=l(()=>n(()=>import("./RewardsRoutes-R2VgDdnw.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,14,19,9,10,17,20]))),In=l(()=>n(()=>import("./TaskRoutes-DeZTJnM4.js"),__vite__mapDeps([58,1,2,3,14,4,5,6,7,24,17,59,9,10,20]))),gn=l(()=>n(()=>import("./AiCfoScreen-DxwryQBf.js"),__vite__mapDeps([60,1,2,3,4,5,6,7,48,20]))),y=l(()=>n(()=>import("./NotFoundScreen-C4aqnA8_.js"),__vite__mapDeps([14,1,2,3,4,5,6,7,20]))),xn=l(()=>n(()=>import("./TaskListScreen-C1G-Z2qb.js"),__vite__mapDeps([59,1,2,3,4,5,6,7,9,10,17,20])));function wn({setTenantEmailDomain:i}){const U=Vs(),V=Ss(),{tenantEmailDomain:o}=Ns(),S=ws().mode,{setLoading:f,clearAllLoading:O,clearLoading:Z}=zs(),R=D.getSignedInUserTenant(o)?.tenantId,h=D.getSignedInUser(),K=os(h),$=Ms(),[N,Re]=v.useState(!1),r=z(a=>ls(a)),{useFeatureGate:P}=$s(),Q=Gs(),ye=Ys(),{isFeatureEnabled:fe}=P(B.isExpenseAutomationEnabled),{isFeatureEnabled:Ce}=P(B.isExpenseAutomationEnabledV2),ve=Ce||fe&&K,{isFeatureEnabled:Oe}=P(B.isDepositAccountsFeatureEnabled),{isFeatureEnabled:Pe}=P(B.isTreasuryEnabled),{isFeatureEnabled:Fe}=P(B.isChargeCardFeatureEnabled),{isFeatureEnabled:se}=P(B.isDebitCardFeatureEnabled),j=z(a=>a.tenantState.fetchState),A=z(a=>a.tenantState.activeTenantFetchState.fetchState),u=A==="Completed"||j==="Completed"?cs(se,r):void 0,G=A==="Completed"||j==="Completed"?ds(r):void 0,Be=A==="Completed"||j==="Completed"?ms(r):void 0,Le=Fe||se||!!Be||!!G||!!u,{isFeatureEnabled:ke}=P(B.isSettingsFeatureEnabled),{isFeatureEnabled:Ve}=P(B.isAiCfoFileUploadEnabled),Y=z(a=>us(a));if(o!=null){const a=D.getSignedInUserTenant(o);h!=null&&a!=null&&je(h,r,S)}const w={tenantId:R,userId:h?.userId,sessionId:h?.zeniSessionId},ne=_s(),E=qs(),Se=r.company==null||E?.loggedInUserRoleMap!=null&&Ee(E.loggedInUserRole),Ne=Es(E?.loggedInUserRoleMap),ae=v.useRef(!0),te=Te("/:tenantEmailDomain/onboarding/*")!==null,J=Te("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*"),Me=z(a=>w.tenantId!=null?As(a,w.tenantId):void 0);v.useEffect(()=>{f(L.TENANT_FETCHING),i(o)},[o]),v.useEffect(()=>{if(J!=null&&R!=null){const a=J.params.selectedPeriod;if(a!=null){const b=a.split("-");if(b.length===2){const d=ps(Number(b[0])),s=Number(b[1]),m=Is(`01-${d<10?`0${d}`:d}-${s}`,he.getLocalizedStrings().dateFormat.analytics.DDDashMMDashYYYY),M=gs();m.isAfter(M,"month")===!1?U(xs(R,{month:d,year:s})):V("./month_end_close_checks/review")}}}},[J,R]),v.useEffect(()=>{N||(Re(!0),f(L.TENANT_FETCHING)),ae.current?ae.current=!1:!Ts(ne,w)&&D.isSignedIn()&&(f(L.TENANT_FETCHING),function(a,b,d,s){if(pe(b?.userId,b?.zeniSessionId,a.tenantId),d(Ls(!0)),d(Ie(a.tenantId)),a.tenantId!=null&&_.clearTenant(a.tenantId),a.tenantId!=null){const m=D.getSignedInUserTenantWithId(a.tenantId);s&&he.updateAppLocaleID(Ks(s)),m?.tenantEmailDomain!=null&&D.saveActiveTenantDomainForUser(m?.tenantEmailDomain)}a.userId!=null?X.identify(a.userId,{tenant_id:a.tenantId}):X.resetUserIdentity()}(w,h,U,Me))},[w,ne,h,U,D]),v.useEffect(()=>{D.isSignedIn()&&(f(L.TENANT_FETCHING),function(a,b,d,s,m,M,k){if(d==null&&s==null)return void console.warn("There is no current tenant selected!!");const q=s!=null&&m?.zeniSessionId!=null,ts=d==null||d.tenantId!==s,is=d!=null&&d.excludedResources==null,rs=d!=null&&d.externalConnections==null;if(q&&ts){k(Ie(s));const W=D.getSignedInUserTenantWithId(s);W?.tenantEmailDomain!=null&&D.saveActiveTenantDomainForUser(W?.tenantEmailDomain),pe(m?.userId,m?.zeniSessionId,s),_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),k(ge(m.userId,s))),_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),k(xe(m.userId,s)))}else q&&is&&_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),k(ge(m.userId,s))),q&&rs&&_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),k(xe(m.userId,s)));if(q){X.identify(m.userId,{tenant_id:s});const W=s==null||s!=null&&(b==="Completed"||b==="Error");a==="Completed"||b!=="Not-Started"&&b!=="Error"||s==null||!_.shouldFetchActiveTenant(s)||(_.markActiveTenantFetchStarted(s),M(L.TENANT_FETCHING),k(ks(m.userId,s,m.zeniSessionId))),W&&(a==="Not-Started"||a==="Error")&&_.shouldFetchAllTenants()&&(_.markAllTenantsFetchStarted(),k(Ae(m.userId,m.zeniSessionId)))}}(j,A,r,R,h,f,U))},[R,A]),v.useEffect(()=>{D.isSignedIn()&&j==="Completed"&&Y.tenantsBaseInOrder.length>0&&(Z(L.TENANT_FETCHING),D.saveSignedInUserTenants(hs(Y.tenantsBaseInOrder)),h!=null&&je(h,r,S,void 0,Y.tenantsBaseInOrder))},[Y,j,r,h]),v.useEffect(()=>{A==="In-Progress"&&f(L.TENANT_FETCHING),A!=="Completed"&&A!=="Error"||(A==="Completed"&&R!=null?(O(),_.markActiveTenantFetchCompleted(R)):A==="Error"&&R!=null&&(_.markActiveTenantFetchFailed(R),Z(L.TENANT_FETCHING),Z(L.TENANT_SWITCHING))),j!=="Completed"&&j!=="Error"||(j==="Completed"?_.markAllTenantsFetchCompleted():j==="Error"&&_.markAllTenantsFetchFailed())},[A,j,R,N]);const ie=v.useRef(!1);v.useEffect(()=>{!ie.current&&A==="Completed"&&N&&(ie.current=!0,function(a=Js,b=3e3){setTimeout(()=>{const d=s=>{if(s>=a.length)return;const m=a[s],M=Qs[m];M!=null?M().then(()=>ee(()=>d(s+1))).catch(()=>ee(()=>d(s+1))):d(s+1)};ee(()=>d(0))},b)}())},[A,N]);const C=r?.userRole!=null&&js(r?.userRole),{isFeatureEnabled:Ze}=P(B.isReferralFeatureEnabled),we=r?.userRole!=null&&r.userRole.includes("charge_card_user"),ze=r?.userRole!=null&&r.userRole.includes("charge_card_admin"),F=r?.userRole!=null&&Ee(r.userRole),re=r?.company==null||r.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!C,oe=Le&&!C,$e=Us(E?.loggedInUserRoleMap),Ge=r.externalConnections?.accounting[0]?.isValid,le=r.company?.companyOnboardingInfo.isOnboardingCompleted,ce=r?.company==null||r.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!C,de=ce&&bs(E?.loggedInUserRoleMap),me=Oe&&!C,Ye=r.company!=null&&Ds(r.company),qe=Pe&&Ye===!0&&!C,We=re&&Hs(E?.loggedInUserRoleMap),Ke=oe&&Rs(E?.loggedInUserRoleMap),Qe=me&&ys(E?.loggedInUserRoleMap),Je=fs(E?.loggedInUserRoleMap),Xe=Cs(E?.loggedInUserRoleMap),p=vs(E?.loggedInUserRoleMap),I=Os(E?.loggedInUserRoleMap),g=Ps(E?.loggedInUserRoleMap),x=Fs(E?.loggedInUserRoleMap),T=Bs(E?.loggedInUserRoleMap),ue=re&&x,_e=ce&&T,es=me&&p,ss=qe&&I,ns=oe&&g,as=r.excludedResources?.resources?.find(a=>a.resource==="/invites")!=null||Ne===!0||$e===!0||Je===!0||Xe===!0;return D.isSignedIn()?R==null?j==="Completed"?e.jsx(c,{to:"/",replace:!0,state:{...$.state,message:"...",origin:$.pathname}}):(h!=null&&j!=="In-Progress"&&U(Ae(h.userId,h.zeniSessionId)),null):A!=="In-Progress"&&A!=="Not-Started"||j==="Completed"?(le===!0||K&&!te)&&Ge===!1&&u===!1&&G===!1?(i(void 0),e.jsx(c,{to:"/connection/auth",replace:!0})):!N||le!==!1||te||K?N&&r?.userRole&&u!=null&&G!=null&&o!=null&&Object.keys(E.loggedInUserRoleMap).length>0?e.jsx(Zs,{children:e.jsxs(t,{element:e.jsx(Ws,{}),children:[e.jsx(t,{path:"/",element:e.jsx(Tn,{isDashboardAccess:F,isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,isTenantCardsOnly:G})}),e.jsx(t,{path:"dashboard/*",element:F?e.jsx(on,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reports/*",element:F?e.jsx(Xs,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"people/*",element:as||F?e.jsx(sn,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"forecast/*",element:F?e.jsx(nn,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"onboarding/*",element:e.jsx(an,{})}),e.jsx(t,{path:"transaction/*",element:F&&C===!1||we||ze?e.jsx(rn,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"transactions/*",element:F&&C===!1?e.jsx(mn,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"customer/*",element:F&&C===!1?e.jsx(Ue,{entityType:"customer"}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isTenantBankingOnly:u,isUserHasTreasuryAccess:I,tenantEmailDomain:o})}),e.jsx(t,{path:"vendor/*",element:F&&C===!1?e.jsx(Ue,{entityType:"vendor"}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"tasks",element:e.jsx(xn,{})}),e.jsx(t,{path:"tasks/*",element:e.jsx(In,{})}),e.jsx(t,{path:"address/*",element:We||de||Qe||Ke?e.jsx(en,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"checking/*",element:es?e.jsx(cn,{}):e.jsx(y,{})}),e.jsx(t,{path:"treasury/*",element:ss?e.jsx(dn,{}):e.jsx(y,{})}),e.jsx(t,{path:"performance",element:ye?e.jsx(En,{}):e.jsx(He,{tenantEmailDomain:o})}),e.jsx(t,{path:"month_end_close_checks/review/*",element:ve&&C===!1?e.jsx(An,{}):e.jsx(He,{tenantEmailDomain:o})}),e.jsx(t,{path:"notifications/*",element:e.jsx(_n,{})}),e.jsx(t,{path:"vendors/*",element:Se?e.jsx(tn,{}):e.jsx(y,{})}),e.jsx(t,{path:"bill/*",element:ue?e.jsx(be,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"bills/*",element:ue?e.jsx(be,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursement/*",element:_e?e.jsx(De,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursements/*",element:_e?e.jsx(De,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"settings/*",element:ke?e.jsx(ln,{hasAdminLevelAccess:de}):e.jsx(y,{})}),e.jsx(t,{path:"cards/*",element:ns?e.jsx(un,{}):e.jsx(y,{})}),e.jsx(t,{path:"rewards/*",element:Ze?e.jsx(pn,{}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo",element:Q?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/",element:Q?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/:session_id",element:Q?e.jsx(gn,{isFileUploadEnabled:Ve}):e.jsx(y,{})}),e.jsx(t,{path:"*",element:e.jsx(y,{})})]})}):null:(i(void 0),e.jsx(c,{to:"onboarding",replace:!0})):null:(console.warn("User logged out!!"),i(void 0),e.jsx(c,{to:"/signin/auth",replace:!0,state:{...$.state,message:"...",origin:$.pathname}}))}const Tn=({isDashboardAccess:i,isUserHasZeniAccountsAccess:U,isUserHasChargeCardAccess:V,isUserHasBillPayAccess:o,isUserHasReimbursementAccess:S,isUserHasTreasuryAccess:f,isTenantBankingOnly:O,isTenantCardsOnly:Z})=>O===!0&&U?e.jsx(c,{to:"checking"}):Z===!0?e.jsx(c,{to:"cards"}):i?e.jsx(c,{to:"dashboard"}):U?e.jsx(c,{to:"checking"}):f?e.jsx(c,{to:"treasury"}):V?e.jsx(c,{to:"cards"}):o?e.jsx(c,{to:"bills"}):S?e.jsx(c,{to:"reimbursements"}):e.jsx(c,{to:"dashboard"}),H=({isUserHasZeniAccountsAccess:i,isUserHasChargeCardAccess:U,isUserHasBillPayAccess:V,isUserHasReimbursementAccess:o,isUserHasTreasuryAccess:S,isTenantBankingOnly:f,tenantEmailDomain:O})=>f===!0||i?e.jsx(bn,{tenantEmailDomain:O}):S?e.jsx(Un,{tenantEmailDomain:O}):U?e.jsx(Dn,{tenantEmailDomain:O}):V?e.jsx(jn,{tenantEmailDomain:O}):o?e.jsx(hn,{tenantEmailDomain:O}):e.jsx(y,{}),hn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/reimbursements`}),jn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/bills`}),Un=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/treasury`}),bn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/checking`}),Dn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/cards`}),He=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/dashboard`});export{H as FallBackRoute,wn as default};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardRoutes-BhdPr2GF.js","assets/sentry-CX_3yQh7.js","assets/core-C_ZreJAw.js","assets/zeni-epic-state-H6DZSSlf.js","assets/index-CU-O3XlP.js","assets/mui-BtnH6ELy.js","assets/analytics-CgF6EPDF.js","assets/utils-Dw8b4HCO.js","assets/withTransactionSidePanel-D68X8m-E.js","assets/useAskAiCfoHostNavButtonProps-C2KX1gk_.js","assets/useFetchSuggestedQuestionsWhenReady-BtBjAnV1.js","assets/TransactionDetailScreen-efNQkWz4.js","assets/decodeURIComponentSafe-BP018w8C.js","assets/routePaths-D5WTdktl.js","assets/NotFoundScreen-C5xQLNp5.js","assets/analyticsHelper-DBYfXkXK.js","assets/CompanyPassportScreen-D_8pLYfg.js","assets/MobileAppDrawer-D4ZBwL0S.js","assets/FeaturePreviewScreen-CaG7JnKZ.js","assets/ReferralListScreen-D-N3tpSF.js","assets/index-Bc34frN_.css","assets/BillPayRoutes-D_jxjd1M.js","assets/AddressScreen-CVaBIk3t.js","assets/DomesticWireDetailScreen-Bf9aHic4.js","assets/useInitialThreadRequest-BmoUHeBa.js","assets/DrawerScreen-QCmmvlF6.js","assets/SetupPagesScreen-CQHQEfZR.js","assets/BusinessVerificationPageScreen-DAwDD_bm.js","assets/BillPayApprovalRoutes-CIInRn04.js","assets/ReimbursementApprovalRuleDetailScreen-4bFMeUHK.js","assets/getLocaleForTenant-BKKkwx8r.js","assets/ReimbursementRoutes-BLD8FL8b.js","assets/ReimbursementApprovalRoutes-B4fBWBNF.js","assets/TransactionListRoutes-DM1ZMmIL.js","assets/ZeniAccountStatementScreen-Bmtq5P9-.js","assets/SettingsRoutes-CPIUaVtM.js","assets/accountMappingHelper-COFGwnKa.js","assets/QBOConnectionScreen-2glPhn1w.js","assets/empty-wr1Sjolf.js","assets/index-T4vVJHIk.js","assets/url-CcaHVDFu.js","assets/index-CUa_5F-3.js","assets/ReportsRoutes-D5xd8TtX.js","assets/ChargeCardRoutes-DdYME33t.js","assets/PeopleRoutes-nf8deapU.js","assets/ExpenseAutomationRoutes-DES_BtrB.js","assets/TreasuryRoutes-D5tqMpU5.js","assets/VendorsRoutes-DTKMi1Pl.js","assets/pathToGoBack-Bg0yBLYd.js","assets/ZeniAccountRoutes-C8L4BAwp.js","assets/AddressRoutes-5CCOxTr2.js","assets/PandLWithForecastRoutes-CvBf2XE1.js","assets/CustomerOnboardingRoutes-Dcw2XPmu.js","assets/TransactionDetailRoutes-DutRhuIK.js","assets/EntityDetailRoutes-DdwcJW7z.js","assets/NotificationRoutes-AjC-eiyq.js","assets/PerformanceRoutes-CROn65HM.js","assets/RewardsRoutes-B15SPUkv.js","assets/TaskRoutes-DW3Iqk39.js","assets/TaskListScreen-BHrgKFiB.js","assets/AiCfoScreen-D6mvZyge.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as n,bn as os,eO as ls,eU as cs,eS as ds,eT as ms,fD as us,eQ as _s,cP as Ee,cw as Es,f9 as As,co as ps,bD as Is,bq as gs,fe as xs,v as Ts,IB as hs,bv as js,IC as Us,bF as bs,fb as Ds,bE as Hs,bs as Rs,ck as ys,ID as fs,IE as Cs,cM as vs,cO as Os,cN as Ps,cv as Fs,cB as Bs,mm as Ae,eP as pe,fN as Ls,fi as Ie,fK as ge,fL as xe,fj as ks}from"./zeni-epic-state-H6DZSSlf.js";import{j as e}from"./liveblocks-BdePShct.js";import{a as v}from"./sentry-CX_3yQh7.js";import{h as Vs,j as Ss,l as Ns,u as Ms,g as z,i as Te,N as c,n as Zs,o as t}from"./core-C_ZreJAw.js";import{m as ws,u as zs,z as D,y as $s,a as Gs,l as Ys,$ as B,k as qs,L,D as he,t as _,P as Ws,c as X,d as l}from"./index-CU-O3XlP.js";import"./mui-BtnH6ELy.js";import{f as je}from"./analyticsHelper-DBYfXkXK.js";import{t as Ks}from"./getLocaleForTenant-BKKkwx8r.js";import"./recharts-CHr9O26_.js";import"./analytics-CgF6EPDF.js";import"./plaid-CLHQ0yLv.js";import"./dnd-C3uQO7Bn.js";import"./stripe-DMRn4zHo.js";import"./lottie-CUKBWgbe.js";import"./lexical-E_ubWL4u.js";import"./pdf-CH0jWS01.js";import"./utils-Dw8b4HCO.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},U=new i.Error().stack;U&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[U]="a9d02cf9-50d0-408b-a3ad-b9a1f69f6451",i._sentryDebugIdIdentifier="sentry-dbid-a9d02cf9-50d0-408b-a3ad-b9a1f69f6451")}catch{}})();const Qs={dashboard:()=>n(()=>import("./DashboardRoutes-BhdPr2GF.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20])),bills:()=>n(()=>import("./BillPayRoutes-D_jxjd1M.js"),__vite__mapDeps([21,1,2,3,4,5,6,7,22,14,23,9,10,24,25,17,18,26,15,13,27,28,29,30,20])),reimbursement:()=>n(()=>import("./ReimbursementRoutes-BLD8FL8b.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,14,26,17,15,13,27,18,9,10,24,25,32,29,30,20])),transactions:()=>n(()=>import("./TransactionListRoutes-DM1ZMmIL.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,34,20])),settings:()=>n(()=>import("./SettingsRoutes-CPIUaVtM.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,17,36,22,14,15,27,13,16,37,38,39,40,41,12,28,29,32,20])),reports:()=>n(()=>import("./ReportsRoutes-D5xd8TtX.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,14,18,10,24,13,17,20])),chargeCards:()=>n(()=>import("./ChargeCardRoutes-DdYME33t.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,26,17,14,15,13,27,9,10,22,20])),people:()=>n(()=>import("./PeopleRoutes-nf8deapU.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,14,9,10,17,20])),expenseAutomation:()=>n(()=>import("./ExpenseAutomationRoutes-DES_BtrB.js"),__vite__mapDeps([45,1,2,3,14,4,5,6,7,9,10,11,12,13,8,36,25,20])),treasury:()=>n(()=>import("./TreasuryRoutes-D5tqMpU5.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,14,26,17,15,13,27,9,10,18,20])),vendors:()=>n(()=>import("./VendorsRoutes-DTKMi1Pl.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,22,14,18,13,48,9,10,17,25,36,20])),zeniAccounts:()=>n(()=>import("./ZeniAccountRoutes-C8L4BAwp.js"),__vite__mapDeps([49,1,2,3,4,5,6,7,14,26,17,15,13,27,18,23,22,9,10,34,20]))},Js=["bills","transactions","settings","reimbursement","reports","chargeCards","people"],ee=i=>{"requestIdleCallback"in window?requestIdleCallback(i):setTimeout(i,100)},Xs=l(()=>n(()=>import("./ReportsRoutes-D5xd8TtX.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,14,18,10,24,13,17,20]))),en=l(()=>n(()=>import("./AddressRoutes-5CCOxTr2.js"),__vite__mapDeps([50,1,2,3,22,4,5,6,7,14,20]))),sn=l(()=>n(()=>import("./PeopleRoutes-nf8deapU.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,14,9,10,17,20]))),nn=l(()=>n(()=>import("./PandLWithForecastRoutes-CvBf2XE1.js"),__vite__mapDeps([51,1,2,3,4,5,6,7,14,18,9,10,24,13,17,20]))),an=l(()=>n(()=>import("./CustomerOnboardingRoutes-Dcw2XPmu.js"),__vite__mapDeps([52,1,2,3,22,4,5,6,7,14,37,38,39,40,41,12,20]))),tn=l(()=>n(()=>import("./VendorsRoutes-DTKMi1Pl.js"),__vite__mapDeps([47,1,2,3,4,5,6,7,22,14,18,13,48,9,10,17,25,36,20]))),rn=l(()=>n(()=>import("./TransactionDetailRoutes-DutRhuIK.js"),__vite__mapDeps([53,1,2,3,14,4,5,6,7,11,9,10,12,13,20]))),Ue=l(()=>n(()=>import("./EntityDetailRoutes-DdwcJW7z.js"),__vite__mapDeps([54,1,2,3,4,5,6,7,12,8,9,10,11,13,20]))),on=l(()=>n(()=>import("./DashboardRoutes-BhdPr2GF.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]))),be=l(()=>n(()=>import("./BillPayRoutes-D_jxjd1M.js"),__vite__mapDeps([21,1,2,3,4,5,6,7,22,14,23,9,10,24,25,17,18,26,15,13,27,28,29,30,20]))),ln=l(()=>n(()=>import("./SettingsRoutes-CPIUaVtM.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,17,36,22,14,15,27,13,16,37,38,39,40,41,12,28,29,32,20]))),De=l(()=>n(()=>import("./ReimbursementRoutes-BLD8FL8b.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,14,26,17,15,13,27,18,9,10,24,25,32,29,30,20]))),cn=l(()=>n(()=>import("./ZeniAccountRoutes-C8L4BAwp.js"),__vite__mapDeps([49,1,2,3,4,5,6,7,14,26,17,15,13,27,18,23,22,9,10,34,20]))),dn=l(()=>n(()=>import("./TreasuryRoutes-D5tqMpU5.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,14,26,17,15,13,27,9,10,18,20]))),mn=l(()=>n(()=>import("./TransactionListRoutes-DM1ZMmIL.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,34,20]))),un=l(()=>n(()=>import("./ChargeCardRoutes-DdYME33t.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,26,17,14,15,13,27,9,10,22,20]))),_n=l(()=>n(()=>import("./NotificationRoutes-AjC-eiyq.js"),__vite__mapDeps([55,1,2,3,14,4,5,6,7,9,10,20]))),En=l(()=>n(()=>import("./PerformanceRoutes-CROn65HM.js"),__vite__mapDeps([56,1,2,3,14,4,5,6,7,9,10,17,20]))),An=l(()=>n(()=>import("./ExpenseAutomationRoutes-DES_BtrB.js"),__vite__mapDeps([45,1,2,3,14,4,5,6,7,9,10,11,12,13,8,36,25,20]))),pn=l(()=>n(()=>import("./RewardsRoutes-B15SPUkv.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,14,19,9,10,17,20]))),In=l(()=>n(()=>import("./TaskRoutes-DW3Iqk39.js"),__vite__mapDeps([58,1,2,3,14,4,5,6,7,24,17,59,9,10,20]))),gn=l(()=>n(()=>import("./AiCfoScreen-D6mvZyge.js"),__vite__mapDeps([60,1,2,3,4,5,6,7,48,20]))),y=l(()=>n(()=>import("./NotFoundScreen-C5xQLNp5.js"),__vite__mapDeps([14,1,2,3,4,5,6,7,20]))),xn=l(()=>n(()=>import("./TaskListScreen-BHrgKFiB.js"),__vite__mapDeps([59,1,2,3,4,5,6,7,9,10,17,20])));function wn({setTenantEmailDomain:i}){const U=Vs(),V=Ss(),{tenantEmailDomain:o}=Ns(),S=ws().mode,{setLoading:f,clearAllLoading:O,clearLoading:Z}=zs(),R=D.getSignedInUserTenant(o)?.tenantId,h=D.getSignedInUser(),K=os(h),$=Ms(),[N,Re]=v.useState(!1),r=z(a=>ls(a)),{useFeatureGate:P}=$s(),Q=Gs(),ye=Ys(),{isFeatureEnabled:fe}=P(B.isExpenseAutomationEnabled),{isFeatureEnabled:Ce}=P(B.isExpenseAutomationEnabledV2),ve=Ce||fe&&K,{isFeatureEnabled:Oe}=P(B.isDepositAccountsFeatureEnabled),{isFeatureEnabled:Pe}=P(B.isTreasuryEnabled),{isFeatureEnabled:Fe}=P(B.isChargeCardFeatureEnabled),{isFeatureEnabled:se}=P(B.isDebitCardFeatureEnabled),j=z(a=>a.tenantState.fetchState),A=z(a=>a.tenantState.activeTenantFetchState.fetchState),u=A==="Completed"||j==="Completed"?cs(se,r):void 0,G=A==="Completed"||j==="Completed"?ds(r):void 0,Be=A==="Completed"||j==="Completed"?ms(r):void 0,Le=Fe||se||!!Be||!!G||!!u,{isFeatureEnabled:ke}=P(B.isSettingsFeatureEnabled),{isFeatureEnabled:Ve}=P(B.isAiCfoFileUploadEnabled),Y=z(a=>us(a));if(o!=null){const a=D.getSignedInUserTenant(o);h!=null&&a!=null&&je(h,r,S)}const w={tenantId:R,userId:h?.userId,sessionId:h?.zeniSessionId},ne=_s(),E=qs(),Se=r.company==null||E?.loggedInUserRoleMap!=null&&Ee(E.loggedInUserRole),Ne=Es(E?.loggedInUserRoleMap),ae=v.useRef(!0),te=Te("/:tenantEmailDomain/onboarding/*")!==null,J=Te("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*"),Me=z(a=>w.tenantId!=null?As(a,w.tenantId):void 0);v.useEffect(()=>{f(L.TENANT_FETCHING),i(o)},[o]),v.useEffect(()=>{if(J!=null&&R!=null){const a=J.params.selectedPeriod;if(a!=null){const b=a.split("-");if(b.length===2){const d=ps(Number(b[0])),s=Number(b[1]),m=Is(`01-${d<10?`0${d}`:d}-${s}`,he.getLocalizedStrings().dateFormat.analytics.DDDashMMDashYYYY),M=gs();m.isAfter(M,"month")===!1?U(xs(R,{month:d,year:s})):V("./month_end_close_checks/review")}}}},[J,R]),v.useEffect(()=>{N||(Re(!0),f(L.TENANT_FETCHING)),ae.current?ae.current=!1:!Ts(ne,w)&&D.isSignedIn()&&(f(L.TENANT_FETCHING),function(a,b,d,s){if(pe(b?.userId,b?.zeniSessionId,a.tenantId),d(Ls(!0)),d(Ie(a.tenantId)),a.tenantId!=null&&_.clearTenant(a.tenantId),a.tenantId!=null){const m=D.getSignedInUserTenantWithId(a.tenantId);s&&he.updateAppLocaleID(Ks(s)),m?.tenantEmailDomain!=null&&D.saveActiveTenantDomainForUser(m?.tenantEmailDomain)}a.userId!=null?X.identify(a.userId,{tenant_id:a.tenantId}):X.resetUserIdentity()}(w,h,U,Me))},[w,ne,h,U,D]),v.useEffect(()=>{D.isSignedIn()&&(f(L.TENANT_FETCHING),function(a,b,d,s,m,M,k){if(d==null&&s==null)return void console.warn("There is no current tenant selected!!");const q=s!=null&&m?.zeniSessionId!=null,ts=d==null||d.tenantId!==s,is=d!=null&&d.excludedResources==null,rs=d!=null&&d.externalConnections==null;if(q&&ts){k(Ie(s));const W=D.getSignedInUserTenantWithId(s);W?.tenantEmailDomain!=null&&D.saveActiveTenantDomainForUser(W?.tenantEmailDomain),pe(m?.userId,m?.zeniSessionId,s),_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),k(ge(m.userId,s))),_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),k(xe(m.userId,s)))}else q&&is&&_.shouldFetchExcludedResources(s)&&(_.markExcludedResourcesFetchStarted(s),k(ge(m.userId,s))),q&&rs&&_.shouldFetchConnections(s)&&(_.markConnectionsFetchStarted(s),k(xe(m.userId,s)));if(q){X.identify(m.userId,{tenant_id:s});const W=s==null||s!=null&&(b==="Completed"||b==="Error");a==="Completed"||b!=="Not-Started"&&b!=="Error"||s==null||!_.shouldFetchActiveTenant(s)||(_.markActiveTenantFetchStarted(s),M(L.TENANT_FETCHING),k(ks(m.userId,s,m.zeniSessionId))),W&&(a==="Not-Started"||a==="Error")&&_.shouldFetchAllTenants()&&(_.markAllTenantsFetchStarted(),k(Ae(m.userId,m.zeniSessionId)))}}(j,A,r,R,h,f,U))},[R,A]),v.useEffect(()=>{D.isSignedIn()&&j==="Completed"&&Y.tenantsBaseInOrder.length>0&&(Z(L.TENANT_FETCHING),D.saveSignedInUserTenants(hs(Y.tenantsBaseInOrder)),h!=null&&je(h,r,S,void 0,Y.tenantsBaseInOrder))},[Y,j,r,h]),v.useEffect(()=>{A==="In-Progress"&&f(L.TENANT_FETCHING),A!=="Completed"&&A!=="Error"||(A==="Completed"&&R!=null?(O(),_.markActiveTenantFetchCompleted(R)):A==="Error"&&R!=null&&(_.markActiveTenantFetchFailed(R),Z(L.TENANT_FETCHING),Z(L.TENANT_SWITCHING))),j!=="Completed"&&j!=="Error"||(j==="Completed"?_.markAllTenantsFetchCompleted():j==="Error"&&_.markAllTenantsFetchFailed())},[A,j,R,N]);const ie=v.useRef(!1);v.useEffect(()=>{!ie.current&&A==="Completed"&&N&&(ie.current=!0,function(a=Js,b=3e3){setTimeout(()=>{const d=s=>{if(s>=a.length)return;const m=a[s],M=Qs[m];M!=null?M().then(()=>ee(()=>d(s+1))).catch(()=>ee(()=>d(s+1))):d(s+1)};ee(()=>d(0))},b)}())},[A,N]);const C=r?.userRole!=null&&js(r?.userRole),{isFeatureEnabled:Ze}=P(B.isReferralFeatureEnabled),we=r?.userRole!=null&&r.userRole.includes("charge_card_user"),ze=r?.userRole!=null&&r.userRole.includes("charge_card_admin"),F=r?.userRole!=null&&Ee(r.userRole),re=r?.company==null||r.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!C,oe=Le&&!C,$e=Us(E?.loggedInUserRoleMap),Ge=r.externalConnections?.accounting[0]?.isValid,le=r.company?.companyOnboardingInfo.isOnboardingCompleted,ce=r?.company==null||r.company.featuresActivationInfo?.isReimbursementFeatureEnabled&&!C,de=ce&&bs(E?.loggedInUserRoleMap),me=Oe&&!C,Ye=r.company!=null&&Ds(r.company),qe=Pe&&Ye===!0&&!C,We=re&&Hs(E?.loggedInUserRoleMap),Ke=oe&&Rs(E?.loggedInUserRoleMap),Qe=me&&ys(E?.loggedInUserRoleMap),Je=fs(E?.loggedInUserRoleMap),Xe=Cs(E?.loggedInUserRoleMap),p=vs(E?.loggedInUserRoleMap),I=Os(E?.loggedInUserRoleMap),g=Ps(E?.loggedInUserRoleMap),x=Fs(E?.loggedInUserRoleMap),T=Bs(E?.loggedInUserRoleMap),ue=re&&x,_e=ce&&T,es=me&&p,ss=qe&&I,ns=oe&&g,as=r.excludedResources?.resources?.find(a=>a.resource==="/invites")!=null||Ne===!0||$e===!0||Je===!0||Xe===!0;return D.isSignedIn()?R==null?j==="Completed"?e.jsx(c,{to:"/",replace:!0,state:{...$.state,message:"...",origin:$.pathname}}):(h!=null&&j!=="In-Progress"&&U(Ae(h.userId,h.zeniSessionId)),null):A!=="In-Progress"&&A!=="Not-Started"||j==="Completed"?(le===!0||K&&!te)&&Ge===!1&&u===!1&&G===!1?(i(void 0),e.jsx(c,{to:"/connection/auth",replace:!0})):!N||le!==!1||te||K?N&&r?.userRole&&u!=null&&G!=null&&o!=null&&Object.keys(E.loggedInUserRoleMap).length>0?e.jsx(Zs,{children:e.jsxs(t,{element:e.jsx(Ws,{}),children:[e.jsx(t,{path:"/",element:e.jsx(Tn,{isDashboardAccess:F,isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,isTenantCardsOnly:G})}),e.jsx(t,{path:"dashboard/*",element:F?e.jsx(on,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reports/*",element:F?e.jsx(Xs,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"people/*",element:as||F?e.jsx(sn,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"forecast/*",element:F?e.jsx(nn,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"onboarding/*",element:e.jsx(an,{})}),e.jsx(t,{path:"transaction/*",element:F&&C===!1||we||ze?e.jsx(rn,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"transactions/*",element:F&&C===!1?e.jsx(mn,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"customer/*",element:F&&C===!1?e.jsx(Ue,{entityType:"customer"}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isTenantBankingOnly:u,isUserHasTreasuryAccess:I,tenantEmailDomain:o})}),e.jsx(t,{path:"vendor/*",element:F&&C===!1?e.jsx(Ue,{entityType:"vendor"}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"tasks",element:e.jsx(xn,{})}),e.jsx(t,{path:"tasks/*",element:e.jsx(In,{})}),e.jsx(t,{path:"address/*",element:We||de||Qe||Ke?e.jsx(en,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"checking/*",element:es?e.jsx(cn,{}):e.jsx(y,{})}),e.jsx(t,{path:"treasury/*",element:ss?e.jsx(dn,{}):e.jsx(y,{})}),e.jsx(t,{path:"performance",element:ye?e.jsx(En,{}):e.jsx(He,{tenantEmailDomain:o})}),e.jsx(t,{path:"month_end_close_checks/review/*",element:ve&&C===!1?e.jsx(An,{}):e.jsx(He,{tenantEmailDomain:o})}),e.jsx(t,{path:"notifications/*",element:e.jsx(_n,{})}),e.jsx(t,{path:"vendors/*",element:Se?e.jsx(tn,{}):e.jsx(y,{})}),e.jsx(t,{path:"bill/*",element:ue?e.jsx(be,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"bills/*",element:ue?e.jsx(be,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursement/*",element:_e?e.jsx(De,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"reimbursements/*",element:_e?e.jsx(De,{}):e.jsx(H,{isUserHasZeniAccountsAccess:p,isUserHasChargeCardAccess:g,isUserHasBillPayAccess:x,isUserHasReimbursementAccess:T,isUserHasTreasuryAccess:I,isTenantBankingOnly:u,tenantEmailDomain:o})}),e.jsx(t,{path:"settings/*",element:ke?e.jsx(ln,{hasAdminLevelAccess:de}):e.jsx(y,{})}),e.jsx(t,{path:"cards/*",element:ns?e.jsx(un,{}):e.jsx(y,{})}),e.jsx(t,{path:"rewards/*",element:Ze?e.jsx(pn,{}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo",element:Q?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/",element:Q?e.jsx(c,{to:"explore"}):e.jsx(y,{})}),e.jsx(t,{path:"/ai-cfo/:session_id",element:Q?e.jsx(gn,{isFileUploadEnabled:Ve}):e.jsx(y,{})}),e.jsx(t,{path:"*",element:e.jsx(y,{})})]})}):null:(i(void 0),e.jsx(c,{to:"onboarding",replace:!0})):null:(console.warn("User logged out!!"),i(void 0),e.jsx(c,{to:"/signin/auth",replace:!0,state:{...$.state,message:"...",origin:$.pathname}}))}const Tn=({isDashboardAccess:i,isUserHasZeniAccountsAccess:U,isUserHasChargeCardAccess:V,isUserHasBillPayAccess:o,isUserHasReimbursementAccess:S,isUserHasTreasuryAccess:f,isTenantBankingOnly:O,isTenantCardsOnly:Z})=>O===!0&&U?e.jsx(c,{to:"checking"}):Z===!0?e.jsx(c,{to:"cards"}):i?e.jsx(c,{to:"dashboard"}):U?e.jsx(c,{to:"checking"}):f?e.jsx(c,{to:"treasury"}):V?e.jsx(c,{to:"cards"}):o?e.jsx(c,{to:"bills"}):S?e.jsx(c,{to:"reimbursements"}):e.jsx(c,{to:"dashboard"}),H=({isUserHasZeniAccountsAccess:i,isUserHasChargeCardAccess:U,isUserHasBillPayAccess:V,isUserHasReimbursementAccess:o,isUserHasTreasuryAccess:S,isTenantBankingOnly:f,tenantEmailDomain:O})=>f===!0||i?e.jsx(bn,{tenantEmailDomain:O}):S?e.jsx(Un,{tenantEmailDomain:O}):U?e.jsx(Dn,{tenantEmailDomain:O}):V?e.jsx(jn,{tenantEmailDomain:O}):o?e.jsx(hn,{tenantEmailDomain:O}):e.jsx(y,{}),hn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/reimbursements`}),jn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/bills`}),Un=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/treasury`}),bn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/checking`}),Dn=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/cards`}),He=({tenantEmailDomain:i})=>e.jsx(c,{to:`/${i}/dashboard`});export{H as FallBackRoute,wn as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-BdePShct.js";import{a as u}from"./sentry-CX_3yQh7.js";import{j as T,u as B,h as P,g as m,k as R,l as _,n as X,o as C}from"./core-C_ZreJAw.js";import{bn as Ie,eO as k,gw as ce,KF as Ce,J2 as xe,jr as le,lK as Ee,gy as Ae,KH as je,KG as ke,N4 as we,x3 as Pe,By as ve,MF as De,MO as Me,c1 as re,cG as Ue,cH as Te,IN as Fe,N5 as Be,IO as Re,vv as _e,N6 as Ve,DO as Oe,Be as Le,B5 as de,B2 as Ne,vz as ue,B8 as pe,Bb as ge,Bh as W,s6 as Y,vy as $e,j3 as q,j6 as me,N7 as Ge,k7 as Ke,vO as ze,JA as Je,JB as Ze,j1 as He,N8 as Qe,j4 as Xe,N9 as qe,vL as We,Na as Ye,Nb as en,Bv as nn,eS as fe,eU as he,Nc as tn,fw as an,J3 as sn,vK as te,fB as ae,fA as on,vJ as cn,fz as ln,fy as rn,Nd as dn,eX as be,Ne as un,Nf as pn,vR as gn,vI as se,Ng as mn,fd as fn,vF as hn,bU as bn,c0 as yn,b$ as Sn,bV as In,bZ as Cn,bY as xn,bX as En,b_ as An,bW as jn}from"./zeni-epic-state-H6DZSSlf.js";import{y as ee,$ as M,z as x,ac as ye,bC as kn,c as G,f as wn,k as V,B as ne,bD as Pn,bE as vn,an as Dn,i as Se,bF as Mn,bG as Un,bH as Tn,a6 as Fn,R as Bn,bI as Rn,s as _n,bJ as Vn}from"./index-
|
|
1
|
+
import{j as t}from"./liveblocks-BdePShct.js";import{a as u}from"./sentry-CX_3yQh7.js";import{j as T,u as B,h as P,g as m,k as R,l as _,n as X,o as C}from"./core-C_ZreJAw.js";import{bn as Ie,eO as k,gw as ce,KF as Ce,J2 as xe,jr as le,lK as Ee,gy as Ae,KH as je,KG as ke,N4 as we,x3 as Pe,By as ve,MF as De,MO as Me,c1 as re,cG as Ue,cH as Te,IN as Fe,N5 as Be,IO as Re,vv as _e,N6 as Ve,DO as Oe,Be as Le,B5 as de,B2 as Ne,vz as ue,B8 as pe,Bb as ge,Bh as W,s6 as Y,vy as $e,j3 as q,j6 as me,N7 as Ge,k7 as Ke,vO as ze,JA as Je,JB as Ze,j1 as He,N8 as Qe,j4 as Xe,N9 as qe,vL as We,Na as Ye,Nb as en,Bv as nn,eS as fe,eU as he,Nc as tn,fw as an,J3 as sn,vK as te,fB as ae,fA as on,vJ as cn,fz as ln,fy as rn,Nd as dn,eX as be,Ne as un,Nf as pn,vR as gn,vI as se,Ng as mn,fd as fn,vF as hn,bU as bn,c0 as yn,b$ as Sn,bV as In,bZ as Cn,bY as xn,bX as En,b_ as An,bW as jn}from"./zeni-epic-state-H6DZSSlf.js";import{y as ee,$ as M,z as x,ac as ye,bC as kn,c as G,f as wn,k as V,B as ne,bD as Pn,bE as vn,an as Dn,i as Se,bF as Mn,bG as Un,bH as Tn,a6 as Fn,R as Bn,bI as Rn,s as _n,bJ as Vn}from"./index-CU-O3XlP.js";import{n as U}from"./mui-BtnH6ELy.js";import{M as v}from"./MobileAppDrawer-D4ZBwL0S.js";import{a as N,g as $,m as On}from"./accountMappingHelper-COFGwnKa.js";import{t as Ln,A as Nn}from"./AddressScreen-CVaBIk3t.js";import F from"./NotFoundScreen-C5xQLNp5.js";import{g as $n}from"./analyticsHelper-DBYfXkXK.js";import{B as Gn}from"./BusinessVerificationPageScreen-DAwDD_bm.js";import{C as Kn}from"./CompanyPassportScreen-D_8pLYfg.js";import{q as oe}from"./QBOConnectionScreen-2glPhn1w.js";import{B as zn}from"./BillPayApprovalRoutes-CIInRn04.js";import{R as Jn}from"./ReimbursementApprovalRoutes-B4fBWBNF.js";import"./recharts-CHr9O26_.js";import"./analytics-CgF6EPDF.js";import"./plaid-CLHQ0yLv.js";import"./dnd-C3uQO7Bn.js";import"./stripe-DMRn4zHo.js";import"./lottie-CUKBWgbe.js";import"./lexical-E_ubWL4u.js";import"./pdf-CH0jWS01.js";import"./utils-Dw8b4HCO.js";import"./routePaths-D5WTdktl.js";import"./empty-wr1Sjolf.js";import"./pdf-lib-th4agIPv.js";import"./index-T4vVJHIk.js";import"./url-CcaHVDFu.js";import"./index-CUa_5F-3.js";import"./decodeURIComponentSafe-BP018w8C.js";import"./ReimbursementApprovalRuleDetailScreen-4bFMeUHK.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]="e200ea95-156d-44fc-bc0b-22b55a2a9d03",e._sentryDebugIdIdentifier="sentry-dbid-e200ea95-156d-44fc-bc0b-22b55a2a9d03")}catch{}})();const Zn=U.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-BdePShct.js";import{j as X,u as Q,h as Y,l as W,g as E,N as M,k as G,q as Qe}from"./core-C_ZreJAw.js";import{bE as Ye,ck as Ie,Mt as ye,eO as V,cw as en,xe as Z,x3 as nn,MF as tn,MI as an,pF as ee,pt as ne,j$ as te,rE as N,MK as Ae,fA as $e,fz as We,fy as Ge,ML as sn,xn as on,Be as ke,B5 as _e,B2 as ve,AV as K,B8 as Pe,Bb as Ee,Bh as we,s6 as Te,fP as cn,cr as rn,eU as un,eS as dn,eT as ln,bs as pn,MM as mn,zX as le,Az as yn,MN as fn,bF as gn,Cu as pe,By as Sn,MO as bn,MP as hn,Cy as Cn,CC as In,rx as An,GW as kn,D7 as Ce,E0 as me,MQ as _n,MR as vn,MS as Pn,MT as He,MU as En,Jn as wn,LS as Tn,Jz as Dn,MV as qe,MW as Fe,Dl as Ke,k7 as Un,pw as Je,rG as On,bD as je,rS as Me,cu as Bn,MX as Xe,fc as Fn,CR as Vn,CV as xn,MY as jn,Da as Re,MZ as Mn,M_ as Rn,M$ as Nn,N0 as zn,fI as Ln,yy as Zn,N1 as $n,yD as Wn,yC as Gn}from"./zeni-epic-state-H6DZSSlf.js";import{k as ae,y as ie,$ as de,m as De,aK as J,z as T,A as se,c as w,B as Ue,f as $,br as Hn,aq as oe,bs as x,bt as qn,bu as Kn,ac as xe,bv as Jn,s as Ne,ar as ze,Z as Xn,E as Qn,bw as Yn,bx as et,by as nt,a3 as tt}from"./index-
|
|
1
|
+
import{j as u}from"./liveblocks-BdePShct.js";import{j as X,u as Q,h as Y,l as W,g as E,N as M,k as G,q as Qe}from"./core-C_ZreJAw.js";import{bE as Ye,ck as Ie,Mt as ye,eO as V,cw as en,xe as Z,x3 as nn,MF as tn,MI as an,pF as ee,pt as ne,j$ as te,rE as N,MK as Ae,fA as $e,fz as We,fy as Ge,ML as sn,xn as on,Be as ke,B5 as _e,B2 as ve,AV as K,B8 as Pe,Bb as Ee,Bh as we,s6 as Te,fP as cn,cr as rn,eU as un,eS as dn,eT as ln,bs as pn,MM as mn,zX as le,Az as yn,MN as fn,bF as gn,Cu as pe,By as Sn,MO as bn,MP as hn,Cy as Cn,CC as In,rx as An,GW as kn,D7 as Ce,E0 as me,MQ as _n,MR as vn,MS as Pn,MT as He,MU as En,Jn as wn,LS as Tn,Jz as Dn,MV as qe,MW as Fe,Dl as Ke,k7 as Un,pw as Je,rG as On,bD as je,rS as Me,cu as Bn,MX as Xe,fc as Fn,CR as Vn,CV as xn,MY as jn,Da as Re,MZ as Mn,M_ as Rn,M$ as Nn,N0 as zn,fI as Ln,yy as Zn,N1 as $n,yD as Wn,yC as Gn}from"./zeni-epic-state-H6DZSSlf.js";import{k as ae,y as ie,$ as de,m as De,aK as J,z as T,A as se,c as w,B as Ue,f as $,br as Hn,aq as oe,bs as x,bt as qn,bu as Kn,ac as xe,bv as Jn,s as Ne,ar as ze,Z as Xn,E as Qn,bw as Yn,bx as et,by as nt,a3 as tt}from"./index-CU-O3XlP.js";import{a as C}from"./sentry-CX_3yQh7.js";import{n as Ve,D as at,S as it}from"./mui-BtnH6ELy.js";import{M as fe}from"./MobileAppDrawer-D4ZBwL0S.js";import R from"./NotFoundScreen-C5xQLNp5.js";import{a as Le}from"./analyticsHelper-DBYfXkXK.js";import{c as Ze}from"./routePaths-D5WTdktl.js";import{B as Be}from"./BusinessVerificationPageScreen-DAwDD_bm.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]="c0a04ae4-e73a-41f9-b22a-c26283ec7596",e._sentryDebugIdIdentifier="sentry-dbid-c0a04ae4-e73a-41f9-b22a-c26283ec7596")}catch{}})();const st=Ve.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-BdePShct.js";import{a as f,b as T,q as A}from"./sentry-CX_3yQh7.js";import{h as D,j as z,g as l,u as M,N as O,k as P}from"./core-C_ZreJAw.js";import{u as j,z as s,m as B,c as E,D as F,e as _,f as N,g as H,h as J,n as V,i as v}from"./index-
|
|
1
|
+
import{j as u}from"./liveblocks-BdePShct.js";import{a as f,b as T,q as A}from"./sentry-CX_3yQh7.js";import{h as D,j as z,g as l,u as M,N as O,k as P}from"./core-C_ZreJAw.js";import{u as j,z as s,m as B,c as E,D as F,e as _,f as N,g as H,h as J,n as V,i as v}from"./index-CU-O3XlP.js";import{eO as $,IA as q,IB as G,eP as W,fi as K,IG as Q,fH as R,cT as X,IH as C,II as Y,IJ as Z,bS as y}from"./zeni-epic-state-H6DZSSlf.js";import"./mui-BtnH6ELy.js";import{u as ee}from"./useDeviceId-DtlEyHOn.js";import{f as te}from"./analyticsHelper-DBYfXkXK.js";import{t as ne}from"./getLocaleForTenant-BKKkwx8r.js";import"./recharts-CHr9O26_.js";import"./analytics-CgF6EPDF.js";import"./plaid-CLHQ0yLv.js";import"./dnd-C3uQO7Bn.js";import"./stripe-DMRn4zHo.js";import"./lottie-CUKBWgbe.js";import"./lexical-E_ubWL4u.js";import"./pdf-CH0jWS01.js";import"./utils-Dw8b4HCO.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]="c88a7050-139a-4d03-837d-ae7a3e7e0436",t._sentryDebugIdIdentifier="sentry-dbid-c88a7050-139a-4d03-837d-ae7a3e7e0436")}catch{}})();const ie=P(function(t,i){const d=t.tenantState.fetchState,g=t.tenantState.sendEmailMagicLinkFetchState,{magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:c}=i;return{googleClientId:v.googleClientId,microsoftClientId:v.microsoftClientId,signInError:t.tenantState.error?.error,fetchState:d,sendMagicLinkStatus:g,magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:c}},function(t,i){const{location:d,navigate:g}=i;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,a)=>{A({message:`OAuth error from provider ${a} with error ${n}`,level:"error",tags:{authProvider:a,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,a)=>{const c=a==="google"?window.location.origin:window.location.origin+window.location.pathname;t(Z({authCode:n,oauthProvider:a,appType:"web",redirectUri:y(c),sourceUri:y(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(C())}}})(V),ae=T.memo(ie);function ve({setTenantEmailDomain:t}){const i=D(),d=z(),{clearAllLoading:g}=j(),n=s.getSignedInUser();f.useLayoutEffect(()=>{g()},[g]);const a=ee(),c=l(e=>e.tenantState.magicLinkCodeVerifier),{sendEmailMagicLinkFetchState:h,accountLocked:U,accountUnlockTime:k}=l(e=>e.tenantState),p=l(e=>e.tenantState.fetchState),L=l(e=>e.tenantState.activeTenantFetchState.fetchState),I=l(e=>e.tenantState.signInState),o=l(e=>e.tenantState.loggedInUser),r=l(e=>$(e)),S=l(e=>q(e)),m=M(),w=B().mode,b=m.state?.magicLinkExpired,x=m.state?.magicLinkAlreadyUsed;if(f.useEffect(()=>{h.fetchState==="Completed"&&c!=null&&(E.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(c))},[h.fetchState,c]),f.useEffect(()=>{t(void 0)},[]),f.useEffect(()=>{I!=="In-Progress"||p!=="Completed"&&L!=="Completed"||o?.zeniSessionId==null||r==null||(s.savePayNowInfoTooltip(!0,o.zeniSessionId),s.saveSignedInUserWithSession(o,o.zeniSessionId),s.saveSignedInUserTenants(G(S.tenantsInOrder),o.zeniSessionId),W(o.userId,o.zeniSessionId,r.tenantId),i(K(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(Q("Completed")),F.updateAppLocaleID(ne(r)),te(o,r,w,void 0,S.tenantsInOrder),R().then(()=>{const e=J();e!=null&&_(e)}),setTimeout(()=>{E.trackLogin(N.Event.loginSuccess,o.authProvider??"google",X(r.productSettings))},2e3))},[I,p,L,o,r,S,w,m.state,i]),I==="In-Progress"&&p==="Completed"&&o?.zeniSessionId!=null&&r!=null||n!=null){const e=m.state?.origin??"/";return u.jsx(O,{to:e,state:{...m.state,origin:""}})}return u.jsxs(u.Fragment,{children:[u.jsx(ae,{magicLinkExpired:!!b,magicLinkAlreadyUsed:!!x,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),U===!0&&k!=null?u.jsx(H,{onClose:()=>i(C()),unlockDate:k}):null]})}export{ve as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-BdePShct.js";import{a as n}from"./sentry-CX_3yQh7.js";import{h as u,u as m,j as p,N as g}from"./core-C_ZreJAw.js";import{z as f,B as b,t as y,c,f as h}from"./index-
|
|
1
|
+
import{j as s}from"./liveblocks-BdePShct.js";import{a as n}from"./sentry-CX_3yQh7.js";import{h as u,u as m,j as p,N as g}from"./core-C_ZreJAw.js";import{z as f,B as b,t as y,c,f as h}from"./index-CU-O3XlP.js";import{fM as I,fN as x,IW as j}from"./zeni-epic-state-H6DZSSlf.js";import{n as w}from"./mui-BtnH6ELy.js";import"./recharts-CHr9O26_.js";import"./analytics-CgF6EPDF.js";import"./plaid-CLHQ0yLv.js";import"./dnd-C3uQO7Bn.js";import"./stripe-DMRn4zHo.js";import"./lottie-CUKBWgbe.js";import"./lexical-E_ubWL4u.js";import"./pdf-CH0jWS01.js";import"./utils-Dw8b4HCO.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]="b354cbd7-0302-4a59-8b6f-5ca4fa80abae",e._sentryDebugIdIdentifier="sentry-dbid-b354cbd7-0302-4a59-8b6f-5ca4fa80abae")}catch{}})();function W(){const e=u(),t=m(),a=p(),i=n.useRef(!1),d=f.isSignedIn(),r=t.state?.message==="logout",o=r||d;return n.useEffect(()=>{o&&!i.current&&(i.current=!0,setTimeout(()=>{try{f.clearAll(),e(I()),e(x(!1)),j(),y.reset(),c.trackLogout(h.Event.logoutSuccess),c.resetUserIdentity()}catch(l){console.error("Error during sign out:",l)}finally{r||a("/signin/auth",{replace:!0})}},0))},[o,r]),o?s.jsx(v,{children:s.jsx(b,{fetchState:"In-Progress"})}):s.jsx(g,{to:"../",replace:!0})}const v=w.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100vh;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as p}from"./liveblocks-BdePShct.js";import{a as g}from"./sentry-CX_3yQh7.js";import{j as _,h as z,u as O,g as b,l as M,k as q}from"./core-C_ZreJAw.js";import{z as P,y as Q,$ as d,A as V,c as W,f as Z,cJ as J,s as f,q as H}from"./index-
|
|
1
|
+
import{j as p}from"./liveblocks-BdePShct.js";import{a as g}from"./sentry-CX_3yQh7.js";import{j as _,h as z,u as O,g as b,l as M,k as q}from"./core-C_ZreJAw.js";import{z as P,y as Q,$ as d,A as V,c as W,f as Z,cJ as J,s as f,q as H}from"./index-CU-O3XlP.js";import{eO as X,PK as R,Fy as y,PL as x,PG as Y,E_ as S,PM as aa,F2 as I,Ex as ea,Fz as B,PN as F,gD as ta,Fp as sa,Fu as oa,Fh as na,Ff as w,Fv as ia,Fc as la,PO as ra,PP as ca,PQ as ka,PR as ua,PS as m,ea as pa,PT as da,PU as ma}from"./zeni-epic-state-H6DZSSlf.js";import{n as Ta}from"./mui-BtnH6ELy.js";import{u as ga}from"./useAskAiCfoHostNavButtonProps-C2KX1gk_.js";import{c as fa}from"./useFetchSuggestedQuestionsWhenReady-BtBjAnV1.js";import{M as ha}from"./MobileAppDrawer-D4ZBwL0S.js";import"./recharts-CHr9O26_.js";import"./analytics-CgF6EPDF.js";import"./plaid-CLHQ0yLv.js";import"./dnd-C3uQO7Bn.js";import"./stripe-DMRn4zHo.js";import"./lottie-CUKBWgbe.js";import"./lexical-E_ubWL4u.js";import"./pdf-CH0jWS01.js";import"./utils-Dw8b4HCO.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]="9abe58a7-4e5d-41ff-a834-2c801a3a8fb7",e._sentryDebugIdIdentifier="sentry-dbid-9abe58a7-4e5d-41ff-a834-2c801a3a8fb7")}catch{}})();const Da=Ta.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as n}from"./liveblocks-BdePShct.js";import se from"./NotFoundScreen-
|
|
1
|
+
import{j as n}from"./liveblocks-BdePShct.js";import se from"./NotFoundScreen-C5xQLNp5.js";import{a as c}from"./sentry-CX_3yQh7.js";import{j as _,h as H,g,u as ne,l as oe,N as ie,k as re,n as ce,o as f}from"./core-C_ZreJAw.js";import{FC as M,FF as le,FI as de,eO as Z,PG as J,EW as W,EE as pe,Fm as ue,Ff as ke,PH as K,PI as N,EA as me,Ex as fe,pF as ge,pt as he,j$ as Se,EM as Ie,PJ as Ee,ER as Te,EO as be,EH as Ce,E$ as Ge,E_ as De}from"./zeni-epic-state-H6DZSSlf.js";import{z as G,cH as xe,V as ye,y as je,$ as T,q as X,s as F,A as Fe,c as V,f as we,cI as ve,i as z,aq as Re}from"./index-CU-O3XlP.js";import{n as Pe}from"./mui-BtnH6ELy.js";import{u as Be}from"./useInitialThreadRequest-BmoUHeBa.js";import{M as Ue}from"./MobileAppDrawer-D4ZBwL0S.js";import Le from"./TaskListScreen-BHrgKFiB.js";import"./recharts-CHr9O26_.js";import"./analytics-CgF6EPDF.js";import"./plaid-CLHQ0yLv.js";import"./dnd-C3uQO7Bn.js";import"./stripe-DMRn4zHo.js";import"./lottie-CUKBWgbe.js";import"./lexical-E_ubWL4u.js";import"./pdf-CH0jWS01.js";import"./utils-Dw8b4HCO.js";import"./useAskAiCfoHostNavButtonProps-C2KX1gk_.js";import"./useFetchSuggestedQuestionsWhenReady-BtBjAnV1.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]="acf37df3-f09b-4a4e-876a-8d994cf87c97",e._sentryDebugIdIdentifier="sentry-dbid-acf37df3-f09b-4a4e-876a-8d994cf87c97")}catch{}})();function $e(){const e=_(),t=H(),s=G.getSignedInUser(),{cannedResponses:d,fetchState:r,saveFetchState:p}=g(o=>o.cannedResponsesState),l=c.useCallback(()=>{t(M())},[t]),k=c.useCallback((o,h,S)=>{t(le({name:o,content:h,cannedResponseId:S}))},[t]),a=c.useCallback(o=>{t(de({cannedResponseId:o}))},[t]);if(s==null)throw Error("Can't access quick responses page without signing in...");return n.jsx(xe,{cannedResponses:d,isLoading:r==="In-Progress"||r==="Not-Started",isSaving:p==="In-Progress",onBackClick:()=>e(-1),onDelete:a,onFetch:l,onSave:k})}let q,O=[];const Ae=re(function(e,t){const{location:s,taskGroupId:d}=t,r=K(e,t.taskId),p=Z(e),l=d!=null?N(e.taskGroupState,d):void 0,k=G.getSignedInUser(),a=p.tenantId,o={userId:k?.userId??"",sessionId:k?.zeniSessionId??"",tenantId:a??""},h=J(e),{tenantEmailDomain:S}=p,b=r.recurringSourceTaskId,D=b!=null?`${z.appUrl}/${S}/tasks/${encodeURIComponent(b)}`:void 0;var I;return{taskDetailSelectorView:r,authParams:o,isZeniUser:G.isZeniUser(),userGroupList:((I=e.userGroupsState.userGroupByUserGroupId)!==q&&(q=I,O=Object.values(I)),O),isNewClicked:s.state?.message==="comingFromTaskListPage",filesEndPoint:Re.fileMicroServiceBaseUrl,companyName:t.currentTenant.companyName,companyId:t.currentTenant.companyId,currentUrl:`${z.appUrl}${t.location.pathname}`,cannedResponses:e.cannedResponsesState.cannedResponses,isCannedResponsesLoading:e.cannedResponsesState.fetchState==="In-Progress",recurringSourceTaskUrl:D,tagListView:h,taskGroupName:d!=null&&l!=null&&l.isDefault===!1?l.name:void 0,taskGroupList:e.taskGroupViewState.taskGroupsIds.map(u=>N(e.taskGroupState,u)).filter(u=>u!=null&&!u.isDeleted).map(u=>({id:u.id,name:u.name,isDefault:u.isDefault}))}},function(e,t){const{taskId:s,navigate:d,currentTenant:r,location:p,taskGroupId:l}=t,{tenantEmailDomain:k}=r;return{onSaveChangesToLocalStore:a=>{e(De({taskDetailLocalData:a,taskId:s}))},onSaveDetailClick:a=>{e(Ge(s,a??l))},onArchiveTaskClick:()=>{t.taskId!=null&&e(Ce(t.taskId))},onSnoozeTask:(a,o)=>{e(be(a,o))},onUnsnoozeTask:a=>{e(Te(a))},onDismissClick:()=>{if(p.state?.message==="triggerBackClick"){const a=X(p.state?.pathnameStackToGoBack),o=a.poppedPathname??"../../dashboard";d(o,{state:{pathnameStackToGoBack:a.newStack}})}else{const a=w(k),o=F(p.state?.pathnameStackToGoBack,p.pathname);d(a,{state:{pathnameStackToGoBack:o}})}e(Ee({taskId:s}))},onDeleteTaskClick:()=>{e(Ie(s))},updateFilesEntity:a=>{e(Se({files:a}))},onDeleteFile:a=>{e(he(a))},onEditFileName:(a,o)=>{e(ge(a,o.split(".")[0]))},onReloadTaskDetailPage:()=>{e(W(!1,s))},onCreateTagClick:a=>{e(fe(a,s))},onDeleteTagClick:a=>{e(me(a,s))},onFetchCannedResponses:()=>{e(M())},onManageTemplatesClick:()=>{d(`/${r.tenantEmailDomain}/tasks/quick-responses`)}}})(ve);function j(){const e=_(),t=H(),s=ne(),d=ye(),{taskId:r,taskGroupId:p}=oe(),l=g(i=>Z(i)),k=Be(l?.companyId),{useFeatureGate:a}=je(),{isFeatureEnabled:o}=a(T.isTaskSnoozeEnabled),{isFeatureEnabled:h}=a(T.isTaskVisibilityEnabled),{isFeatureEnabled:S}=a(T.isTaskCannedResponsesEnabled),{isFeatureEnabled:b}=a(T.isTaskRecurringParentEnabled),{isFeatureEnabled:D}=a(T.isTaskGroupAssigneesEnabled),[I,u]=c.useState(!1),[v,Y]=c.useState(!1),[R,Q]=c.useState(!1),[P,ee]=c.useState(!1),[B,x]=c.useState(!1),E=c.useRef(!1),C=g(i=>i.taskListState.updateTasksFetchState.fetchState),U=g(i=>J(i)),L=g(i=>i.taskGroupViewState.fetchState);c.useEffect(()=>{v||(Y(!0),t(W(!1,r)))},[v,t]),c.useEffect(()=>{R||U.fetchState==="Completed"||(Q(!0),t(pe()))},[R,t,U.fetchState]),c.useEffect(()=>{P||L==="Completed"||(ee(!0),t(ue()))},[P,t,L]);const ae=c.useCallback(()=>{r!=null&&(E.current=!1,t(ke([r],null,{isArchived:!1})),x(!0))},[t,r]);c.useEffect(()=>{if(B)if(C!=="In-Progress"){if(E.current){if(C==="Error")return x(!1),void(E.current=!1);if(C==="Completed"){x(!1),E.current=!1;const{tenantEmailDomain:i}=l;if(s.state?.message==="triggerBackClick"){const m=X(s.state?.pathnameStackToGoBack);e(m.poppedPathname??"../../dashboard",{state:{pathnameStackToGoBack:m.newStack}})}else{const m=w(i);e(m,{state:{pathnameStackToGoBack:F(s.state?.pathnameStackToGoBack,s.pathname)}})}}}}else E.current=!0},[B,C,l,s,e]);const $=g(i=>K(i,r)),y=$.fetchState,A=G.getSignedInUser();if(A==null)throw Error("Can't access task detail page without signing in...");if(y==="Error"&&$.error?.code===400){const{tenantEmailDomain:i}=l,m=w(i),te=F(s.state?.pathnameStackToGoBack,s.pathname);return n.jsx(ie,{to:m,state:{pathnameStackToGoBack:te}})}return n.jsxs(n.Fragment,{children:[y==="Completed"?n.jsx(Fe,{analytics:V,onLoad:i=>(m=>m.trackPageLoaded(we.Event.taskDetailPage))(i)}):null,n.jsxs(Ne,{children:[n.jsx(Ue,{isAppContentDrawerOpen:I,handleDrawerToggle:i=>{u(i)}}),n.jsx(Ae,{analytics:V,currentTenant:l,handleZeniLogoClick:()=>{d.toggle()},initialOpenThreadRequest:k,location:s,loggedInUser:A,navigate:e,taskGroupId:p,taskId:r,taskDetailFetchState:y,onUnarchiveTaskClick:ae,isTaskSnoozeEnabled:o,isTaskVisibilityEnabled:h,isTaskCannedResponsesEnabled:S,isTaskRecurringParentEnabled:b,isTaskGroupAssigneesEnabled:D})]})]})}const Ne=Pe.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
width: 100%;
|
package/dist/assets/{TransactionDetailRoutes-CxGTwTQr.js → TransactionDetailRoutes-DutRhuIK.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as t}from"./liveblocks-BdePShct.js";import i from"./NotFoundScreen-
|
|
1
|
+
import{j as t}from"./liveblocks-BdePShct.js";import i from"./NotFoundScreen-C5xQLNp5.js";import{T as r}from"./TransactionDetailScreen-efNQkWz4.js";import"./sentry-CX_3yQh7.js";import{n as a,o}from"./core-C_ZreJAw.js";import"./zeni-epic-state-H6DZSSlf.js";import"./recharts-CHr9O26_.js";import"./index-CU-O3XlP.js";import"./mui-BtnH6ELy.js";import"./analytics-CgF6EPDF.js";import"./plaid-CLHQ0yLv.js";import"./dnd-C3uQO7Bn.js";import"./stripe-DMRn4zHo.js";import"./lottie-CUKBWgbe.js";import"./lexical-E_ubWL4u.js";import"./pdf-CH0jWS01.js";import"./utils-Dw8b4HCO.js";import"./useAskAiCfoHostNavButtonProps-C2KX1gk_.js";import"./useFetchSuggestedQuestionsWhenReady-BtBjAnV1.js";import"./decodeURIComponentSafe-BP018w8C.js";import"./routePaths-D5WTdktl.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]="50e87735-4ba7-4a09-8438-0ea2bea3d928",e._sentryDebugIdIdentifier="sentry-dbid-50e87735-4ba7-4a09-8438-0ea2bea3d928")}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};
|
package/dist/assets/{TransactionDetailScreen-DbXqL9Dv.js → TransactionDetailScreen-efNQkWz4.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as I}from"./liveblocks-BdePShct.js";import{a as d}from"./sentry-CX_3yQh7.js";import{h as j,g as S,u as re,j as le,l as de,N as Re,k as ze}from"./core-C_ZreJAw.js";import{bn as je,eO as H,cP as ue,bv as me,pk as Y,JN as B,KO as pe,KP as J,Kb as he,jC as fe,KQ as ge,Kg as Z,Kh as Q,kr as Se,GO as X,JH as _,jw as Te,ju as ye,jG as Ke,KR as $e,KS as Me,t9 as z,jB as ve,G9 as Ee,cU as We,cV as qe,KT as He,JG as Ye,KU as Je,td as Ze,KV as Qe,KW as Xe,KX as ea,KY as aa,KZ as ta,jF as na,K_ as oa,K$ as sa,JI as ia,L0 as ca,L1 as ra,L2 as la,G3 as da,FT as ua,Gl as ma,jH as pa,GP as ie,G0 as ha}from"./zeni-epic-state-H6DZSSlf.js";import{z as De,y as ee,$ as V,aK as be,m as fa,Z as ga,aL as Sa,E as Ta,q as W,k as ya,aM as va,s as q,c as Ce,aN as Ea,aq as Da,W as M}from"./index-
|
|
1
|
+
import{j as I}from"./liveblocks-BdePShct.js";import{a as d}from"./sentry-CX_3yQh7.js";import{h as j,g as S,u as re,j as le,l as de,N as Re,k as ze}from"./core-C_ZreJAw.js";import{bn as je,eO as H,cP as ue,bv as me,pk as Y,JN as B,KO as pe,KP as J,Kb as he,jC as fe,KQ as ge,Kg as Z,Kh as Q,kr as Se,GO as X,JH as _,jw as Te,ju as ye,jG as Ke,KR as $e,KS as Me,t9 as z,jB as ve,G9 as Ee,cU as We,cV as qe,KT as He,JG as Ye,KU as Je,td as Ze,KV as Qe,KW as Xe,KX as ea,KY as aa,KZ as ta,jF as na,K_ as oa,K$ as sa,JI as ia,L0 as ca,L1 as ra,L2 as la,G3 as da,FT as ua,Gl as ma,jH as pa,GP as ie,G0 as ha}from"./zeni-epic-state-H6DZSSlf.js";import{z as De,y as ee,$ as V,aK as be,m as fa,Z as ga,aL as Sa,E as Ta,q as W,k as ya,aM as va,s as q,c as Ce,aN as Ea,aq as Da,W as M}from"./index-CU-O3XlP.js";import{n as ba,S as Ca,D as Ia}from"./mui-BtnH6ELy.js";import{u as ka}from"./useAskAiCfoHostNavButtonProps-C2KX1gk_.js";import{c as Ua}from"./useFetchSuggestedQuestionsWhenReady-BtBjAnV1.js";import{d as Ie}from"./decodeURIComponentSafe-BP018w8C.js";import{h as ke,g as Aa,d as xa,b as _a}from"./routePaths-D5WTdktl.js";import{t as Va}from"./utils-Dw8b4HCO.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]="fd6c862e-4be7-4574-ade2-ef7b86459ff8",a._sentryDebugIdIdentifier="sentry-dbid-fd6c862e-4be7-4574-ade2-ef7b86459ff8")}catch{}})();const ae=()=>{const a=De.getSignedInUser(),{useFeatureGate:e}=ee(),{isFeatureEnabled:s}=e(V.isChainOfThoughtEnabled);return d.useMemo(()=>je(a)&&s,[a,s])};function Ue(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 Ja(a,e){const s=j(),{useFeatureGate:t,useDynamicConfig:n}=ee(),o=S(u=>H(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(V.isVendorBulkUpdateOnTransactionEnabled),{isFeatureEnabled:C}=t(V.isExpenseAutomationEnabled),{configValue:h}=n(be.enableUncategorizedExpenseCategory),f=h?.uncategorized_expense_category_enabled===!0,k=ae(),y=d.useMemo(()=>({id:a,type:Y(e)}),[a,e]),m=S(u=>B(u,y)),b=S(u=>{const N=B(u,y)?.transactionDetailLocalData.vendorUpdates?.id;return N==null?"Not-Started":u.transactionVendorViewState.editVendorStateById[N]?.saveStatus.fetchState??"Not-Started"}),p=d.useMemo(()=>m?.fetchState==="Completed"?Ue(m?.transaction):void 0,[m?.fetchState,m?.transaction]),E=S(u=>{if(p!=null)return pe(u.customerIncomeState,u.vendorExpenseState,u.trendState,p,"month")}),U=S(u=>J(u)),L=S(u=>{if(p!=null)return he(u.trendWithTransactionsState,p,"TransactionDetail")}),K=o.company?.companyInfo.firstMonthOfFY??1,$=S(u=>fe(u.accountState,u.accountListState,"accountList")),[w,P]=d.useState(!1),[F,v]=d.useState(!1),[c,O]=d.useState(!1);d.useEffect(()=>{P(!1),v(!1),O(!1)},[a,e]);const D=d.useCallback(()=>{P(!1),v(!1)},[]),[A,x]=d.useState(!1),G=L?.selectedPeriod?.timePeriod;return d.useEffect(()=>{c||m==null||m.transaction==null||(s(ge({id:m.transaction.id,type:m.transaction.type})),O(!0)),p!=null&&(!i||l&&g===!1)&&(w?F||E==null||(v(!0),s(X(p,"TransactionDetail",{timeframe:"month",timePeriod:G??E}))):(s(Z()),s(Q()),P(!0),s(Se(p))))},[s,c,m?.fetchState,m?.transaction,p,i,l,g,w,F,E,G]),d.useEffect(()=>{U.newVendorState?.vendorDetailLocalData?.vendorName!=null?x(!0):x(!1)},[U.newVendorState?.vendorDetailLocalData?.vendorName]),d.useEffect(()=>()=>{s(_("common"))},[s]),{currentTenant:o,loggedInUserHasCardUserOrAdminRole:i,isUserHasDashboardAccess:l,isUserHasInvestorOrBankerAccess:g,isVendorBulkUpdateOnTransactionEnabled:T,isExpenseAutomationEnabled:C,isUncategorizedExpenseCategoryEnabled:f,isChainOfThoughtEnabled:k,selectedTransaction:y,transactionDetail:m,vendorSaveStatus:b,tranEntity:p,defaultTrendTransactionTimePeriod:E,vendorViewDetails:U,uiState:L,firstMonthOfFY:K,uncategorizedAccounts:$,resetTrendIsFetchedStates:D,isCreateVendorDrawerOpen:A,setIsCreateVendorDrawerOpen:x}}const La={overlayWidth:new Ta(100,100,58)},Pa=({isOpen:a,onSaveVendor:e,onSaveSuccess:s,onCancel:t,vendorViewDetails:n})=>{const o=fa(),i=ga(),l=j(),g=S(h=>J(h)),T=()=>{t()},C={vendorDetailView:n??g,onSaveSuccess:()=>{l(ye()),l(Ke("Not-Started")),s()},onSaveVendor:e,onCancelClick:T,saveVendorDetailLocalData:h=>{l(Te({vendorId:void 0,localData:h}))}};return I.jsx(Ia,{anchor:"right",open:a,PaperProps:{style:{width:La.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.4,cursor:"pointer"}}},onClose:T,children:I.jsx(Ba,{onClick:h=>h.stopPropagation(),children:I.jsx(Sa,{...C})})})},Ba=ba(Ca)`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-BdePShct.js";import{j as J,u as w,h as U,l as H,g as z,N as O,k as Q,n as Ae,o as b}from"./core-C_ZreJAw.js";import{eO as $,iQ as T,O9 as K,GF as ue,bq as ie,Oa as he,jr as Z,Kd as W,Ob as se,Oc as Se,bD as Y,GC as me,Od as ke,Oe as re,Of as Ie,Og as pe,Oh as be,Oi as ve,Oj as de,HS as xe,bn as Ye}from"./zeni-epic-state-H6DZSSlf.js";import{D as X,c as C,c7 as ee,s as R,q as te,y as fe,$ as q,R as Ee,z as Pe}from"./index-CGS6zWWp.js";import"./mui-BtnH6ELy.js";import{a as y}from"./sentry-CX_3yQh7.js";import{w as ae}from"./withTransactionSidePanel-BmH5jBz_.js";import{p as ne,b as ce}from"./routePaths-DZkWYInw.js";import{u as Le}from"./utils-Dw8b4HCO.js";import{d as L}from"./decodeURIComponentSafe-BP018w8C.js";import{Z as ze}from"./ZeniAccountStatementScreen-BKbkGQh4.js";import"./recharts-CHr9O26_.js";import"./analytics-CgF6EPDF.js";import"./plaid-CLHQ0yLv.js";import"./dnd-C3uQO7Bn.js";import"./stripe-DMRn4zHo.js";import"./lottie-CUKBWgbe.js";import"./lexical-E_ubWL4u.js";import"./pdf-CH0jWS01.js";import"./useAskAiCfoHostNavButtonProps-Nsv7MqoG.js";import"./useFetchSuggestedQuestionsWhenReady-C86A67zi.js";import"./TransactionDetailScreen-DbXqL9Dv.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]="12c39584-77de-4f51-93b2-a8c88e1a3677",a._sentryDebugIdIdentifier="sentry-dbid-12c39584-77de-4f51-93b2-a8c88e1a3677")}catch{}})();const je=["uncategorized-income","uncategorized-expense","miscategorized-income","miscategorized-expense","missing-receipts"],_=a=>Le(a),Oe=Q(function(a,e){const t=he(a.transactionState,a.transactionListState,e.selectedAccount.period,e.selectedAccount.timeframe,_(e.selectedAccount.tranListType));return{title:e.selectedAccount.title,subTitle:e.selectedAccount.subTitle,timeframe:e.selectedAccount.timeframe,timePeriod:W(e.selectedAccount.period),dataAvailableForPeriod:e.dataAvailableForPeriod,report:t,currentScrollYOffset:t.uiState?.scrollYOffset??0,isAccountingClassesEnabled:Z(a)}},function(a,e){return{onBackClick:()=>{const t=te(e.location.state?.pathnameStackToGoBack),n=t.poppedPathname??"../../";e.navigate(n,{state:{pathnameStackToGoBack:t.newStack}})},onTimePeriodChange:(t,n,c)=>{e.closeSidePanel?.();const o=X.getLocalizedStrings(),s=_(e.selectedAccount.tranListType),r=Be(t,n,c,s,e.bookCloseDate);C.trackTransactionList(void 0,void 0,void 0,e.selectedAccount.title,void 0,!0),a(se({uiState:{dateRange:r},type:_(e.selectedAccount.tranListType)})),a(ue(s,T(r),!1,s==="missingReceipts"?o.uncategorizedTransactionList.missingReceipt.missingReceiptMinAmount:void 0)),e.onSelectedTimePeriodChange(T(r))},onTransactionItemClick:t=>{if(e.openTransactionPanel)return void e.openTransactionPanel(t.id,t.type);const n=ce(t,e.tenantEmailDomain),c=R(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(n,{state:{pathnameStackToGoBack:c}})},onTransactionListScroll:t=>{a(se({uiState:{scrollYOffset:t},type:_(e.selectedAccount.tranListType)}))}}})(ee),G=ae(function({...a}){const e=J(),t=w(),n=U(),c=t.pathname.split("/").find(d=>je.includes(d)),o=c??"uncategorized-expense",{tenantEmailDomain:s}=H(),r=X.getLocalizedStrings(),{accountType:p,title:A,subTitle:h}=Ce(o),S="month",k=z(d=>$(d)),D=k.company?.companyInfo.firstMonthOfFY??1,{dataAvailable:g,initialTimeframeTick:v}=Me(o,D,k.bookCloseDate),[E,M]=y.useState(!1),[x,B]=y.useState(void 0),l=y.useMemo(()=>{const d=T(v);return{tranListType:o,accountType:K(p),title:A,subTitle:h,timeframe:S,period:d}},[o,S,p,g]);y.useEffect(()=>{if(!E&&l!=null){M(!0),C.trackTransactionList(void 0,void 0,void 0,l.title);const d=_(l.tranListType);n(ue(d,l.period,!0,d==="missingReceipts"?r.uncategorizedTransactionList.missingReceipt.missingReceiptMinAmount:void 0))}},[E,l,n]);let P=l;return l!=null&&x!=null&&(P={...l,period:x}),c==null||P==null?i.jsx(O,{to:"../"}):i.jsx(Oe,{firstMonthOfFY:D,tenantEmailDomain:s,location:t,useFixedPeriod:{timeframe:"month",numberOfPeriods:12},dataAvailableForPeriod:g,navigate:e,selectedAccount:P,referrerType:o,bookCloseDate:k.bookCloseDate,onSelectedTimePeriodChange:d=>B(d),...a})}),Ce=a=>{let e="",t="",n="";const c=X.getLocalizedStrings();switch(a){case"uncategorized-income":e="income",t=c.uncategorizedTransactionList.income.title,n=c.uncategorizedTransactionList.income.subTitle;break;case"uncategorized-expense":e="expenses",t=c.uncategorizedTransactionList.expense.title,n=c.uncategorizedTransactionList.expense.subTitle;break;case"miscategorized-expense":e="expenses",t=c.miscategorizedTransactionList.expense.title,n=c.miscategorizedTransactionList.expense.subTitle;break;case"miscategorized-income":e="income",t=c.miscategorizedTransactionList.income.title,n=c.miscategorizedTransactionList.income.subTitle;break;case"missing-receipts":t=c.uncategorizedTransactionList.missingReceipt.title,n=c.uncategorizedTransactionList.missingReceipt.subTitle}return{accountType:e,title:t,subTitle:n}},Me=(a,e,t)=>{const n=ie();let c=ie().startOf("month").subtract(11,"month");return t!=null&&a!=="missing-receipts"?t.add(1,"day").isBefore(c)?{dataAvailable:{startDate:t.add(1,"day"),endDate:n},initialTimeframeTick:{startDate:c,endDate:n}}:(c=t.add(1,"day"),{dataAvailable:{startDate:c,endDate:n},initialTimeframeTick:{startDate:c,endDate:n}}):{dataAvailable:ne(5,e),initialTimeframeTick:{startDate:c,endDate:n}}},Be=(a,e,t,n,c)=>{let o=e;return n==="missingReceipts"||c==null?a.startDate.isBefore(e.startDate,t)?o={startDate:a.startDate,endDate:e.endDate}:a.startDate.isAfter(e.endDate,t)?o={startDate:e.startDate,endDate:a.endDate}:console.error(`Invalid addTimePeriod ${JSON.stringify(a)}`):o=a.startDate.isBefore(c,t)?{startDate:c.add(1,"day"),endDate:e.endDate}:{startDate:a.startDate,endDate:e.endDate},o},Fe=Q(function(a,e){const t=ke(a.transactionState,a.transactionListState,e.selectedAccount.accountId,e.selectedAccount.accountType,e.selectedAccount.classId,e.selectedAccount.timeframe,e.selectedAccount.period);return{accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,title:e.selectedAccount.title,timeframe:e.selectedAccount.timeframe,timePeriod:W(e.selectedAccount.period),dataAvailableForPeriod:ne(5,e.firstMonthOfFY),report:t,currentScrollYOffset:t.uiState?.scrollYOffset??0,isAccountingClassesEnabled:Z(a)}},function(a,e){return{onBackClick:()=>{const t=te(e.location.state?.pathnameStackToGoBack),n=t.poppedPathname??Te();e.navigate(n,{state:{pathnameStackToGoBack:t.newStack}})},onTimePeriodChange:(t,n,c)=>{e.closeSidePanel?.();let o=n;t.startDate.isBefore(n.startDate,c)?o={startDate:t.startDate,endDate:n.endDate}:t.startDate.isAfter(n.endDate,c)?o={startDate:n.startDate,endDate:t.endDate}:console.error(`Invalid addTimePeriod ${JSON.stringify(t)}`),C.trackTransactionList(e.selectedAccount.accountId,void 0,e.referrerType,e.selectedAccount.title,void 0,!0),a(re({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,classId:e.selectedAccount.classId,uiState:{dateRange:o}})),a(me(e.selectedAccount.accountId,e.selectedAccount.accountType,e.selectedAccount.classId,T(o))),e.onSelectedTimePeriodChange(T(o))},onTransactionItemClick:t=>{if(e.openTransactionPanel)return void e.openTransactionPanel(t.id,t.type);const n=ce(t,e.tenantEmailDomain),c=R(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(n,{state:{pathnameStackToGoBack:c}})},onTransactionListScroll:t=>{a(re({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,classId:e.selectedAccount.classId,uiState:{scrollYOffset:t}}))}}})(ee),Ge=ae(function({referrerType:a,...e}){const t=J(),n=w(),c=U(),{tenantEmailDomain:o,accountTypeEncoded:s,accountIdEncoded:r,classIdEncoded:p,timeframe:A,startDate:h,endDate:S,titleEncoded:k}=H(),D=L(s??""),g=L(r??""),v=L(p??""),E=L(k??""),M=z(f=>Se(f.transactionListState,g,D,v)),[x,B]=y.useState(!1),[l,P]=y.useState(void 0),d=z(f=>$(f)),V=d.company?.companyInfo.firstMonthOfFY??1;let u;const m=_e(D,g,v,A,h,S,E);if(m){const f={startDate:Y(h,"YYYY-MM-DD"),endDate:Y(S,"YYYY-MM-DD")},N=Re(M?.dateRange,f);u={accountId:g,accountType:K(D),classId:v,title:E,timeframe:A,period:N}}y.useEffect(()=>{x||u==null||(B(!0),C.trackTransactionList(u.accountId,void 0,a,u.title),c(me(u.accountId,u.accountType,u.classId,u.period)))},[x,u,c]);let j=u;u!=null&&l!=null&&(j={...u,period:l});const F=[s,r,p,A,h,S,k].filter(f=>f!=null);return m&&j!=null?i.jsx(Fe,{firstMonthOfFY:V,tenantEmailDomain:o,location:n,navigate:t,selectedAccount:j,referrerType:a,onSelectedTimePeriodChange:f=>P(f),...e}):i.jsx(O,{to:Te(F.length)})}),Te=(a=7)=>{let e="../";for(let t=0;t<a;t++)e=`${e}../`;return e},_e=(a,e,t,n,c,o,s)=>a!=null&&e!=null&&t!=null&&n!=null&&c!=null&&o!=null&&(n==="month"||n==="quarter")&&Y(c,"YYYY-MM-DD").isValid()&&Y(o,"YYYY-MM-DD").isValid()&&s!=null,Re=(a,e)=>a!=null&&a.endDate.isSame(e.endDate,"day")&&a.startDate.isBefore(e.startDate,"day")?T(a):T(e),we=Q(function(a,e){const t=be(a.transactionState,a.transactionListState,e.selectedAccount.accountId,e.selectedAccount.accountType,e.selectedAccount.timeframe,e.selectedAccount.period),n=t.account?.coaId,c=e.isConnectedAccountProviderUnit&&ve(n??"");return{accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,title:e.selectedAccount.title,timeframe:e.selectedAccount.timeframe,timePeriod:W(e.selectedAccount.period),dataAvailableForPeriod:ne(5,e.firstMonthOfFY),report:t,currentScrollYOffset:t.uiState?.scrollYOffset??0,showStatementPageIcon:c,isAccountingClassesEnabled:Z(a)}},function(a,e){return{onBackClick:()=>{const t=te(e.location.state?.pathnameStackToGoBack),n=t.poppedPathname??De();e.navigate(n,{state:{pathnameStackToGoBack:t.newStack}})},onTimePeriodChange:(t,n,c)=>{e.closeSidePanel?.();let o=n;t.startDate.isBefore(n.startDate,c)?o={startDate:t.startDate,endDate:n.endDate}:t.startDate.isAfter(n.endDate,c)?o={startDate:n.startDate,endDate:t.endDate}:console.error(`Invalid addTimePeriod ${JSON.stringify(t)}`),C.trackTransactionList(e.selectedAccount.accountId,void 0,e.referrerType,e.selectedAccount.title,void 0,!0),a(de({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,uiState:{dateRange:o}})),a(pe(e.selectedAccount.accountId,e.selectedAccount.accountType,T(o))),e.onSelectedTimePeriodChange(T(o))},onTransactionItemClick:t=>{if(e.openTransactionPanel)return void e.openTransactionPanel(t.id,t.type);const n=ce(t,e.tenantEmailDomain),c=R(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(n,{state:{pathnameStackToGoBack:c}})},onTransactionListScroll:t=>{a(de({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,uiState:{scrollYOffset:t}}))},onStatementPageIconClick:()=>{const t=Ne(e.tenantEmailDomain),n=R(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(t,{state:{pathnameStackToGoBack:n}})}}})(ee),le=ae(function({referrerType:a,...e}){const t=J(),n=w(),c=U(),{tenantEmailDomain:o,accountTypeEncoded:s,accountIdEncoded:r,timeframe:p,startDate:A,endDate:h,titleEncoded:S,excludeSubAccounts:k}=H(),D=L(s??""),g=L(r??""),v=L(S??""),E=!(k!=null&&k==="exclude_subaccounts"),M=z(I=>Ie(I.transactionListState,g,D)),[x,B]=y.useState(!1),[l,P]=y.useState(void 0),d=z(I=>$(I)),V=d.company?.featuresActivationInfo.connectedAccountProvider==="unit",u=d.company?.companyInfo.firstMonthOfFY??1;let m;const j=$e(D,g,p,A,h,v);if(j){const I={startDate:Y(A,"YYYY-MM-DD"),endDate:Y(h,"YYYY-MM-DD")},ye=Ve(M?.dateRange,I);m={accountId:g,accountType:K(D),title:v,timeframe:p,period:ye}}let F=m;m!=null&&l!=null&&(F={...m,period:l});const{useFeatureGate:f}=fe(),{isFeatureEnabled:N}=f(q.isTransactionCommentingEnabled),{areTenantIdsInSync:oe}=Ee();y.useEffect(()=>{!x&&m!=null&&oe&&(B(!0),C.trackTransactionList(m.accountId,void 0,a,m.title),c(pe(m.accountId,m.accountType,m.period,void 0,!1,E)))},[x,m,c,oe]);const ge=[s,r,p,A,h,S].filter(I=>I!=null);return j&&F!=null?i.jsx(we,{firstMonthOfFY:u,tenantEmailDomain:o,location:n,navigate:t,isConnectedAccountProviderUnit:V,isTransactionCommentingEnabled:N,selectedAccount:F,referrerType:a,onSelectedTimePeriodChange:I=>P(I),...e}):i.jsx(O,{to:De(ge.length)})}),De=(a=7)=>{let e="../";for(let t=0;t<a;t++)e=`${e}../`;return e},$e=(a,e,t,n,c,o)=>a!=null&&e!=null&&t!=null&&n!=null&&c!=null&&(t==="month"||t==="quarter")&&Y(n,"YYYY-MM-DD").isValid()&&Y(c,"YYYY-MM-DD").isValid()&&o!=null,Ve=(a,e)=>a!=null&&a.endDate.isSame(e.endDate,"day")&&a.startDate.isBefore(e.startDate,"day")?T(a):T(e),Ne=a=>`/${a}/transactions/${xe}/statements`;function pt(){const a=w().state?.referrer,e=Pe.getSignedInUser(),t=Ye(e),{useFeatureGate:n}=fe(),{isFeatureEnabled:c}=n(q.isExpenseAutomationEnabled),o=z(p=>p.expenseAutomationViewState.selectedPeriodByTenantId)[z(p=>$(p)).tenantId],{isFeatureEnabled:s}=n(q.isExpenseAutomationEnabledV2),r=s||c&&t;return i.jsxs(Ae,{children:[i.jsx(b,{path:"/:accountTypeEncoded/:accountIdEncoded/:timeframe/:startDate/:endDate/:titleEncoded/:excludeSubAccounts/*",element:i.jsx(le,{referrerType:a})}),i.jsx(b,{path:"/zeni-clearing-account/statements",element:i.jsx(ze,{})}),i.jsx(b,{path:"/*",element:i.jsx(le,{referrerType:a})}),i.jsx(b,{path:"/uncategorized-income/*",element:i.jsx(G,{})}),i.jsx(b,{path:"/uncategorized-expense/*",element:r?i.jsx(O,{to:`../../month_end_close_checks/review/transaction_categorization/${o.month}-${o.year}`}):i.jsx(G,{})}),i.jsx(b,{path:"/miscategorized-income/*",element:i.jsx(G,{})}),i.jsx(b,{path:"/miscategorized-expense/*",element:r?i.jsx(O,{to:`../../month_end_close_checks/review/transaction_categorization/${o.month}-${o.year}`}):i.jsx(G,{})}),i.jsx(b,{path:"/missing-receipts/*",element:r?i.jsx(O,{to:`../../month_end_close_checks/review/missing_receipts/${o.month}-${o.year}`}):i.jsx(G,{})}),i.jsx(b,{path:"/by-class/:accountTypeEncoded/:accountIdEncoded/:classIdEncoded/:timeframe/:startDate/:endDate/:titleEncoded/*",element:i.jsx(Ge,{referrerType:a})})]})}export{pt as default};
|
|
1
|
+
import{j as i}from"./liveblocks-BdePShct.js";import{j as J,u as w,h as U,l as H,g as z,N as O,k as Q,n as Ae,o as b}from"./core-C_ZreJAw.js";import{eO as $,iQ as T,O9 as K,GF as ue,bq as ie,Oa as he,jr as Z,Kd as W,Ob as se,Oc as Se,bD as Y,GC as me,Od as ke,Oe as re,Of as Ie,Og as pe,Oh as be,Oi as ve,Oj as de,HS as xe,bn as Ye}from"./zeni-epic-state-H6DZSSlf.js";import{D as X,c as C,c7 as ee,s as R,q as te,y as fe,$ as q,R as Ee,z as Pe}from"./index-CU-O3XlP.js";import"./mui-BtnH6ELy.js";import{a as y}from"./sentry-CX_3yQh7.js";import{w as ae}from"./withTransactionSidePanel-D68X8m-E.js";import{p as ne,b as ce}from"./routePaths-D5WTdktl.js";import{u as Le}from"./utils-Dw8b4HCO.js";import{d as L}from"./decodeURIComponentSafe-BP018w8C.js";import{Z as ze}from"./ZeniAccountStatementScreen-Bmtq5P9-.js";import"./recharts-CHr9O26_.js";import"./analytics-CgF6EPDF.js";import"./plaid-CLHQ0yLv.js";import"./dnd-C3uQO7Bn.js";import"./stripe-DMRn4zHo.js";import"./lottie-CUKBWgbe.js";import"./lexical-E_ubWL4u.js";import"./pdf-CH0jWS01.js";import"./useAskAiCfoHostNavButtonProps-C2KX1gk_.js";import"./useFetchSuggestedQuestionsWhenReady-BtBjAnV1.js";import"./TransactionDetailScreen-efNQkWz4.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]="12c39584-77de-4f51-93b2-a8c88e1a3677",a._sentryDebugIdIdentifier="sentry-dbid-12c39584-77de-4f51-93b2-a8c88e1a3677")}catch{}})();const je=["uncategorized-income","uncategorized-expense","miscategorized-income","miscategorized-expense","missing-receipts"],_=a=>Le(a),Oe=Q(function(a,e){const t=he(a.transactionState,a.transactionListState,e.selectedAccount.period,e.selectedAccount.timeframe,_(e.selectedAccount.tranListType));return{title:e.selectedAccount.title,subTitle:e.selectedAccount.subTitle,timeframe:e.selectedAccount.timeframe,timePeriod:W(e.selectedAccount.period),dataAvailableForPeriod:e.dataAvailableForPeriod,report:t,currentScrollYOffset:t.uiState?.scrollYOffset??0,isAccountingClassesEnabled:Z(a)}},function(a,e){return{onBackClick:()=>{const t=te(e.location.state?.pathnameStackToGoBack),n=t.poppedPathname??"../../";e.navigate(n,{state:{pathnameStackToGoBack:t.newStack}})},onTimePeriodChange:(t,n,c)=>{e.closeSidePanel?.();const o=X.getLocalizedStrings(),s=_(e.selectedAccount.tranListType),r=Be(t,n,c,s,e.bookCloseDate);C.trackTransactionList(void 0,void 0,void 0,e.selectedAccount.title,void 0,!0),a(se({uiState:{dateRange:r},type:_(e.selectedAccount.tranListType)})),a(ue(s,T(r),!1,s==="missingReceipts"?o.uncategorizedTransactionList.missingReceipt.missingReceiptMinAmount:void 0)),e.onSelectedTimePeriodChange(T(r))},onTransactionItemClick:t=>{if(e.openTransactionPanel)return void e.openTransactionPanel(t.id,t.type);const n=ce(t,e.tenantEmailDomain),c=R(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(n,{state:{pathnameStackToGoBack:c}})},onTransactionListScroll:t=>{a(se({uiState:{scrollYOffset:t},type:_(e.selectedAccount.tranListType)}))}}})(ee),G=ae(function({...a}){const e=J(),t=w(),n=U(),c=t.pathname.split("/").find(d=>je.includes(d)),o=c??"uncategorized-expense",{tenantEmailDomain:s}=H(),r=X.getLocalizedStrings(),{accountType:p,title:A,subTitle:h}=Ce(o),S="month",k=z(d=>$(d)),D=k.company?.companyInfo.firstMonthOfFY??1,{dataAvailable:g,initialTimeframeTick:v}=Me(o,D,k.bookCloseDate),[E,M]=y.useState(!1),[x,B]=y.useState(void 0),l=y.useMemo(()=>{const d=T(v);return{tranListType:o,accountType:K(p),title:A,subTitle:h,timeframe:S,period:d}},[o,S,p,g]);y.useEffect(()=>{if(!E&&l!=null){M(!0),C.trackTransactionList(void 0,void 0,void 0,l.title);const d=_(l.tranListType);n(ue(d,l.period,!0,d==="missingReceipts"?r.uncategorizedTransactionList.missingReceipt.missingReceiptMinAmount:void 0))}},[E,l,n]);let P=l;return l!=null&&x!=null&&(P={...l,period:x}),c==null||P==null?i.jsx(O,{to:"../"}):i.jsx(Oe,{firstMonthOfFY:D,tenantEmailDomain:s,location:t,useFixedPeriod:{timeframe:"month",numberOfPeriods:12},dataAvailableForPeriod:g,navigate:e,selectedAccount:P,referrerType:o,bookCloseDate:k.bookCloseDate,onSelectedTimePeriodChange:d=>B(d),...a})}),Ce=a=>{let e="",t="",n="";const c=X.getLocalizedStrings();switch(a){case"uncategorized-income":e="income",t=c.uncategorizedTransactionList.income.title,n=c.uncategorizedTransactionList.income.subTitle;break;case"uncategorized-expense":e="expenses",t=c.uncategorizedTransactionList.expense.title,n=c.uncategorizedTransactionList.expense.subTitle;break;case"miscategorized-expense":e="expenses",t=c.miscategorizedTransactionList.expense.title,n=c.miscategorizedTransactionList.expense.subTitle;break;case"miscategorized-income":e="income",t=c.miscategorizedTransactionList.income.title,n=c.miscategorizedTransactionList.income.subTitle;break;case"missing-receipts":t=c.uncategorizedTransactionList.missingReceipt.title,n=c.uncategorizedTransactionList.missingReceipt.subTitle}return{accountType:e,title:t,subTitle:n}},Me=(a,e,t)=>{const n=ie();let c=ie().startOf("month").subtract(11,"month");return t!=null&&a!=="missing-receipts"?t.add(1,"day").isBefore(c)?{dataAvailable:{startDate:t.add(1,"day"),endDate:n},initialTimeframeTick:{startDate:c,endDate:n}}:(c=t.add(1,"day"),{dataAvailable:{startDate:c,endDate:n},initialTimeframeTick:{startDate:c,endDate:n}}):{dataAvailable:ne(5,e),initialTimeframeTick:{startDate:c,endDate:n}}},Be=(a,e,t,n,c)=>{let o=e;return n==="missingReceipts"||c==null?a.startDate.isBefore(e.startDate,t)?o={startDate:a.startDate,endDate:e.endDate}:a.startDate.isAfter(e.endDate,t)?o={startDate:e.startDate,endDate:a.endDate}:console.error(`Invalid addTimePeriod ${JSON.stringify(a)}`):o=a.startDate.isBefore(c,t)?{startDate:c.add(1,"day"),endDate:e.endDate}:{startDate:a.startDate,endDate:e.endDate},o},Fe=Q(function(a,e){const t=ke(a.transactionState,a.transactionListState,e.selectedAccount.accountId,e.selectedAccount.accountType,e.selectedAccount.classId,e.selectedAccount.timeframe,e.selectedAccount.period);return{accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,title:e.selectedAccount.title,timeframe:e.selectedAccount.timeframe,timePeriod:W(e.selectedAccount.period),dataAvailableForPeriod:ne(5,e.firstMonthOfFY),report:t,currentScrollYOffset:t.uiState?.scrollYOffset??0,isAccountingClassesEnabled:Z(a)}},function(a,e){return{onBackClick:()=>{const t=te(e.location.state?.pathnameStackToGoBack),n=t.poppedPathname??Te();e.navigate(n,{state:{pathnameStackToGoBack:t.newStack}})},onTimePeriodChange:(t,n,c)=>{e.closeSidePanel?.();let o=n;t.startDate.isBefore(n.startDate,c)?o={startDate:t.startDate,endDate:n.endDate}:t.startDate.isAfter(n.endDate,c)?o={startDate:n.startDate,endDate:t.endDate}:console.error(`Invalid addTimePeriod ${JSON.stringify(t)}`),C.trackTransactionList(e.selectedAccount.accountId,void 0,e.referrerType,e.selectedAccount.title,void 0,!0),a(re({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,classId:e.selectedAccount.classId,uiState:{dateRange:o}})),a(me(e.selectedAccount.accountId,e.selectedAccount.accountType,e.selectedAccount.classId,T(o))),e.onSelectedTimePeriodChange(T(o))},onTransactionItemClick:t=>{if(e.openTransactionPanel)return void e.openTransactionPanel(t.id,t.type);const n=ce(t,e.tenantEmailDomain),c=R(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(n,{state:{pathnameStackToGoBack:c}})},onTransactionListScroll:t=>{a(re({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,classId:e.selectedAccount.classId,uiState:{scrollYOffset:t}}))}}})(ee),Ge=ae(function({referrerType:a,...e}){const t=J(),n=w(),c=U(),{tenantEmailDomain:o,accountTypeEncoded:s,accountIdEncoded:r,classIdEncoded:p,timeframe:A,startDate:h,endDate:S,titleEncoded:k}=H(),D=L(s??""),g=L(r??""),v=L(p??""),E=L(k??""),M=z(f=>Se(f.transactionListState,g,D,v)),[x,B]=y.useState(!1),[l,P]=y.useState(void 0),d=z(f=>$(f)),V=d.company?.companyInfo.firstMonthOfFY??1;let u;const m=_e(D,g,v,A,h,S,E);if(m){const f={startDate:Y(h,"YYYY-MM-DD"),endDate:Y(S,"YYYY-MM-DD")},N=Re(M?.dateRange,f);u={accountId:g,accountType:K(D),classId:v,title:E,timeframe:A,period:N}}y.useEffect(()=>{x||u==null||(B(!0),C.trackTransactionList(u.accountId,void 0,a,u.title),c(me(u.accountId,u.accountType,u.classId,u.period)))},[x,u,c]);let j=u;u!=null&&l!=null&&(j={...u,period:l});const F=[s,r,p,A,h,S,k].filter(f=>f!=null);return m&&j!=null?i.jsx(Fe,{firstMonthOfFY:V,tenantEmailDomain:o,location:n,navigate:t,selectedAccount:j,referrerType:a,onSelectedTimePeriodChange:f=>P(f),...e}):i.jsx(O,{to:Te(F.length)})}),Te=(a=7)=>{let e="../";for(let t=0;t<a;t++)e=`${e}../`;return e},_e=(a,e,t,n,c,o,s)=>a!=null&&e!=null&&t!=null&&n!=null&&c!=null&&o!=null&&(n==="month"||n==="quarter")&&Y(c,"YYYY-MM-DD").isValid()&&Y(o,"YYYY-MM-DD").isValid()&&s!=null,Re=(a,e)=>a!=null&&a.endDate.isSame(e.endDate,"day")&&a.startDate.isBefore(e.startDate,"day")?T(a):T(e),we=Q(function(a,e){const t=be(a.transactionState,a.transactionListState,e.selectedAccount.accountId,e.selectedAccount.accountType,e.selectedAccount.timeframe,e.selectedAccount.period),n=t.account?.coaId,c=e.isConnectedAccountProviderUnit&&ve(n??"");return{accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,title:e.selectedAccount.title,timeframe:e.selectedAccount.timeframe,timePeriod:W(e.selectedAccount.period),dataAvailableForPeriod:ne(5,e.firstMonthOfFY),report:t,currentScrollYOffset:t.uiState?.scrollYOffset??0,showStatementPageIcon:c,isAccountingClassesEnabled:Z(a)}},function(a,e){return{onBackClick:()=>{const t=te(e.location.state?.pathnameStackToGoBack),n=t.poppedPathname??De();e.navigate(n,{state:{pathnameStackToGoBack:t.newStack}})},onTimePeriodChange:(t,n,c)=>{e.closeSidePanel?.();let o=n;t.startDate.isBefore(n.startDate,c)?o={startDate:t.startDate,endDate:n.endDate}:t.startDate.isAfter(n.endDate,c)?o={startDate:n.startDate,endDate:t.endDate}:console.error(`Invalid addTimePeriod ${JSON.stringify(t)}`),C.trackTransactionList(e.selectedAccount.accountId,void 0,e.referrerType,e.selectedAccount.title,void 0,!0),a(de({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,uiState:{dateRange:o}})),a(pe(e.selectedAccount.accountId,e.selectedAccount.accountType,T(o))),e.onSelectedTimePeriodChange(T(o))},onTransactionItemClick:t=>{if(e.openTransactionPanel)return void e.openTransactionPanel(t.id,t.type);const n=ce(t,e.tenantEmailDomain),c=R(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(n,{state:{pathnameStackToGoBack:c}})},onTransactionListScroll:t=>{a(de({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,uiState:{scrollYOffset:t}}))},onStatementPageIconClick:()=>{const t=Ne(e.tenantEmailDomain),n=R(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(t,{state:{pathnameStackToGoBack:n}})}}})(ee),le=ae(function({referrerType:a,...e}){const t=J(),n=w(),c=U(),{tenantEmailDomain:o,accountTypeEncoded:s,accountIdEncoded:r,timeframe:p,startDate:A,endDate:h,titleEncoded:S,excludeSubAccounts:k}=H(),D=L(s??""),g=L(r??""),v=L(S??""),E=!(k!=null&&k==="exclude_subaccounts"),M=z(I=>Ie(I.transactionListState,g,D)),[x,B]=y.useState(!1),[l,P]=y.useState(void 0),d=z(I=>$(I)),V=d.company?.featuresActivationInfo.connectedAccountProvider==="unit",u=d.company?.companyInfo.firstMonthOfFY??1;let m;const j=$e(D,g,p,A,h,v);if(j){const I={startDate:Y(A,"YYYY-MM-DD"),endDate:Y(h,"YYYY-MM-DD")},ye=Ve(M?.dateRange,I);m={accountId:g,accountType:K(D),title:v,timeframe:p,period:ye}}let F=m;m!=null&&l!=null&&(F={...m,period:l});const{useFeatureGate:f}=fe(),{isFeatureEnabled:N}=f(q.isTransactionCommentingEnabled),{areTenantIdsInSync:oe}=Ee();y.useEffect(()=>{!x&&m!=null&&oe&&(B(!0),C.trackTransactionList(m.accountId,void 0,a,m.title),c(pe(m.accountId,m.accountType,m.period,void 0,!1,E)))},[x,m,c,oe]);const ge=[s,r,p,A,h,S].filter(I=>I!=null);return j&&F!=null?i.jsx(we,{firstMonthOfFY:u,tenantEmailDomain:o,location:n,navigate:t,isConnectedAccountProviderUnit:V,isTransactionCommentingEnabled:N,selectedAccount:F,referrerType:a,onSelectedTimePeriodChange:I=>P(I),...e}):i.jsx(O,{to:De(ge.length)})}),De=(a=7)=>{let e="../";for(let t=0;t<a;t++)e=`${e}../`;return e},$e=(a,e,t,n,c,o)=>a!=null&&e!=null&&t!=null&&n!=null&&c!=null&&(t==="month"||t==="quarter")&&Y(n,"YYYY-MM-DD").isValid()&&Y(c,"YYYY-MM-DD").isValid()&&o!=null,Ve=(a,e)=>a!=null&&a.endDate.isSame(e.endDate,"day")&&a.startDate.isBefore(e.startDate,"day")?T(a):T(e),Ne=a=>`/${a}/transactions/${xe}/statements`;function pt(){const a=w().state?.referrer,e=Pe.getSignedInUser(),t=Ye(e),{useFeatureGate:n}=fe(),{isFeatureEnabled:c}=n(q.isExpenseAutomationEnabled),o=z(p=>p.expenseAutomationViewState.selectedPeriodByTenantId)[z(p=>$(p)).tenantId],{isFeatureEnabled:s}=n(q.isExpenseAutomationEnabledV2),r=s||c&&t;return i.jsxs(Ae,{children:[i.jsx(b,{path:"/:accountTypeEncoded/:accountIdEncoded/:timeframe/:startDate/:endDate/:titleEncoded/:excludeSubAccounts/*",element:i.jsx(le,{referrerType:a})}),i.jsx(b,{path:"/zeni-clearing-account/statements",element:i.jsx(ze,{})}),i.jsx(b,{path:"/*",element:i.jsx(le,{referrerType:a})}),i.jsx(b,{path:"/uncategorized-income/*",element:i.jsx(G,{})}),i.jsx(b,{path:"/uncategorized-expense/*",element:r?i.jsx(O,{to:`../../month_end_close_checks/review/transaction_categorization/${o.month}-${o.year}`}):i.jsx(G,{})}),i.jsx(b,{path:"/miscategorized-income/*",element:i.jsx(G,{})}),i.jsx(b,{path:"/miscategorized-expense/*",element:r?i.jsx(O,{to:`../../month_end_close_checks/review/transaction_categorization/${o.month}-${o.year}`}):i.jsx(G,{})}),i.jsx(b,{path:"/missing-receipts/*",element:r?i.jsx(O,{to:`../../month_end_close_checks/review/missing_receipts/${o.month}-${o.year}`}):i.jsx(G,{})}),i.jsx(b,{path:"/by-class/:accountTypeEncoded/:accountIdEncoded/:classIdEncoded/:timeframe/:startDate/:endDate/:titleEncoded/*",element:i.jsx(Ge,{referrerType:a})})]})}export{pt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-BdePShct.js";import{j as L,u as B,h as M,l as O,g as f,N as U,k as V,n as xe,o as k}from"./core-C_ZreJAw.js";import{cl as N,eO as D,MX as R,D7 as ae,fc as Z,CR as ne,MZ as we,Da as Te,MV as Ie,MW as se,Nb as Ce,Bh as ke,s6 as be,M$ as je,Dl as Ae,MY as re,cO as H,wc as oe,eS as Ee,eU as ve,O6 as De,O7 as Fe,CS as Ue,O8 as Le,CT as Be,D0 as Me,bv as Re,bE as Pe,cw as Oe,bF as Ve,ck as Ne,fb as _e,bs as $e,IC as ze,cj as Ge}from"./zeni-epic-state-H6DZSSlf.js";import{k as _,an as We,z as A,A as $,c as b,c0 as Ze,c1 as He,c2 as W,Z as q,m as qe,R as Je,y as ie,$ as v,E as Ke,B as Qe,c3 as Xe,aq as J,s as Ye,c4 as et,q as K,c5 as tt,j as X,c6 as at,a6 as nt}from"./index-
|
|
1
|
+
import{j as e}from"./liveblocks-BdePShct.js";import{j as L,u as B,h as M,l as O,g as f,N as U,k as V,n as xe,o as k}from"./core-C_ZreJAw.js";import{cl as N,eO as D,MX as R,D7 as ae,fc as Z,CR as ne,MZ as we,Da as Te,MV as Ie,MW as se,Nb as Ce,Bh as ke,s6 as be,M$ as je,Dl as Ae,MY as re,cO as H,wc as oe,eS as Ee,eU as ve,O6 as De,O7 as Fe,CS as Ue,O8 as Le,CT as Be,D0 as Me,bv as Re,bE as Pe,cw as Oe,bF as Ve,ck as Ne,fb as _e,bs as $e,IC as ze,cj as Ge}from"./zeni-epic-state-H6DZSSlf.js";import{k as _,an as We,z as A,A as $,c as b,c0 as Ze,c1 as He,c2 as W,Z as q,m as qe,R as Je,y as ie,$ as v,E as Ke,B as Qe,c3 as Xe,aq as J,s as Ye,c4 as et,q as K,c5 as tt,j as X,c6 as at,a6 as nt}from"./index-CU-O3XlP.js";import{D as st,n as P,S as rt}from"./mui-BtnH6ELy.js";import ot from"./NotFoundScreen-C5xQLNp5.js";import{S as Y}from"./SetupPagesScreen-CQHQEfZR.js";import{a as d}from"./sentry-CX_3yQh7.js";import{u as it}from"./useAskAiCfoHostNavButtonProps-C2KX1gk_.js";import{c as ct}from"./useFetchSuggestedQuestionsWhenReady-BtBjAnV1.js";import{M as ce}from"./MobileAppDrawer-D4ZBwL0S.js";import{F as lt}from"./FeaturePreviewScreen-CaG7JnKZ.js";import{a as ee}from"./analyticsHelper-DBYfXkXK.js";import"./recharts-CHr9O26_.js";import"./analytics-CgF6EPDF.js";import"./plaid-CLHQ0yLv.js";import"./dnd-C3uQO7Bn.js";import"./stripe-DMRn4zHo.js";import"./lottie-CUKBWgbe.js";import"./lexical-E_ubWL4u.js";import"./pdf-CH0jWS01.js";import"./utils-Dw8b4HCO.js";import"./routePaths-D5WTdktl.js";import"./BusinessVerificationPageScreen-DAwDD_bm.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="fc26b3b1-d8f4-4647-9cdd-e348976ba82b",t._sentryDebugIdIdentifier="sentry-dbid-fc26b3b1-d8f4-4647-9cdd-e348976ba82b")}catch{}})();const ut=V(function(t,a){const{companyId:n}=a;return{treasurySetupView:R(t,n),analytics:b}},function(t,a){const{navigate:n,analytics:o,treasurySetupView:p}=a;return{onBackClick:()=>{n("../")},onNextClick:()=>{const r=p.fundAllocationLocalData;o.trackTreasuryPortfolioConfirm(r.riskScore,ee(r)),t(Te(!0))},onUpdateFundAllocation:r=>{o.trackTreasuryAllocationAction("update",ee(r)),t(we(r))}}})(Ze);function dt(){const t=L(),a=B(),n=M(),{tenantEmailDomain:o}=O(),p=_(),r=f(C=>C.treasurySetupViewState.portfolioAllocationUpdateStatus?.fetchState),m=We(r),s=N(p?.loggedInUserRoleMap),[c,i]=d.useState(!1),[y,I]=d.useState(!1),[u,l]=d.useState(!1),g=f(C=>D(C)),h=A.getSignedInUserTenant(o)?.companyId??g.companyId,w=A.getSignedInUser(),S=f(C=>R(C,h)),T=f(C=>C.treasurySetupViewState.fetchState),x=f(C=>C.treasurySetupViewState.currentAllocation.fetchStatus?.fetchState),F=f(C=>C.treasurySetupViewState.treasuryFundsDetails?.fetchStatus?.fetchState);if(w==null)throw Error("Can't access treasury portfolio allocation page without signing in...");if(d.useEffect(()=>{c||T!=="Not-Started"||h==null||(i(!0),n(ae(h,!0,!1)))},[c,T,h,n]),d.useEffect(()=>{u||F!=="Not-Started"||h==null||(l(!0),n(Z()))},[u,F,h,n]),d.useEffect(()=>{y||x!=="Not-Started"||h==null||(I(!0),n(ne()))},[y,x,h,n]),d.useEffect(()=>{m==="In-Progress"&&r==="Completed"&&t("../")},[m,r,t]),g.companyTreasuryInfo?.info?.isTreasuryTOSAccepted===!1)return e.jsx(U,{to:"../promo"});const E=g.companyTreasuryInfo?.info?.isTreasuryTOSAccepted!==!0||T!=="Completed";return e.jsxs(e.Fragment,{children:[!E&&e.jsx($,{analytics:b,onLoad:()=>{}}),e.jsx(ut,{navigate:t,location:a,companyId:h,isEditMode:!0,isLoading:E,isReadOnly:!s,treasurySetupView:S,analytics:b})]})}const pt=V(function(t,a){const n=a.currentTenant?.companyId;return{plaidConnectionDetails:Ce(t,n,"zeni_treasury","treasury_setup").plaidConnectionDetails,treasurySetupView:R(t,n)}},function(t,a){const{navigate:n,transferDetails:o,treasurySetupView:p}=a,r=o.treasuryTransferMoneyLocalData,m=p.fundAllocationLocalData;return{onCancelClick:()=>{W(a.analytics,"cancel",r,m,"Transfer"),t(se()),n("../")},onTransferClick:()=>{W(a.analytics,"confirm",r,m,"Transfer"),t(Ae())},onSaveChangesToLocalStore:s=>{t(je(s))},onFetchLinkTokenClick:s=>{t(be("treasury_setup",s))},onEstablishConnectionClick:s=>{t(ke(s,a.currentTenant?.companyId,"treasury_setup","zeni_treasury"))}}})(He),mt=({isFirstTransfer:t})=>{const a=L(),{tenantEmailDomain:n}=O(),o=M(),[p,r]=d.useState(!1),[m,s]=d.useState(!1),[c,i]=d.useState(!1),[y,I]=d.useState(!1),u=f(x=>x.treasurySetupViewState.fetchState),l=f(x=>x.treasurySetupViewState.treasuryFundsDetails?.fetchStatus?.fetchState),g=f(x=>x.treasurySetupViewState.currentAllocation.fetchStatus?.fetchState),h=f(x=>D(x)),w=A.getSignedInUserTenant(n)?.companyId??h.companyId,S=f(x=>Ie(x)),T=f(x=>R(x,w));if(A.getSignedInUser()==null)throw Error("Can't access treasury transfer page without signing in...");return d.useEffect(()=>{m||u!=="Not-Started"||w==null||(s(!0),o(ae(w,!0,!1)))},[m,u,w,o]),d.useEffect(()=>{c||l!=="Not-Started"||w==null||(i(!0),o(Z()))},[c,l,w,o]),d.useEffect(()=>{y||g!=="Not-Started"||w==null||(I(!0),o(ne()))},[y,g,w,o]),e.jsxs(e.Fragment,{children:[e.jsx($,{analytics:b,onLoad:()=>{}}),e.jsx(pt,{analytics:b,navigate:a,transferDetails:S,onAnotherTransferClick:()=>{r(!1),o(se())},currentTenant:h,treasurySetupView:T,showReviewContent:p,maxInsuredAmount:5e5,onReviewClick:()=>{W(b,"review",S.treasuryTransferMoneyLocalData,T.fundAllocationLocalData,"Transfer"),r(!0)},isFirstTransfer:t,setShowReviewContent:r,onBackClick:()=>{}})]})},ft=P.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-BdePShct.js";import{a as g}from"./sentry-CX_3yQh7.js";import{j as M,u as Y,l as J,g as S,k as K,h as z,n as at,o as B,N as G}from"./core-C_ZreJAw.js";import{eO as L,JD as Ee,JE as Re,fP as X,cr as be,cs as Ie,uN as St,JF as nt,uR as zt,HJ as ee,jr as te,uL as Yt,uF as qt,JG as Ue,ux as Ht,uw as Wt,uq as Qt,uC as Zt,uS as Xt,JH as he,JI as Ne,uy as ea,JJ as pe,eZ as ft,v5 as gt,u_ as vt,JK as xt,nU as Tt,uV as yt,uT as Dt,JL as Ct,vc as Et,v9 as bt,uW as It,vb as Me,G9 as kt,JM as ta,JN as aa,cu as na,JO as sa,JP as oa,JQ as me,JR as ie,JS as ke,HK as Ke,vr as ye,HI as De,ve as wt,uO as Ge,JT as la,HL as H,JU as $e,uI as ia,JV as ca,JW as da,JX as ze,JY as Ye,JZ as qe,J_ as He,vl as we,J$ as At,v2 as jt,K0 as ra,K1 as ua,K2 as ha,K3 as pa,K4 as ma,K5 as Sa,K6 as fa,K7 as ga,si as va,sj as xa,GP as je,K8 as Ta,K9 as ya,iQ as Fe,bq as Da,Ka as Ca,Kb as Ea,kp as ba,ky as Ia,GO as Pe,bD as st,Kc as Ft,Gu as Pt,Kd as ka,Ke as wa,Kf as Aa,kA as ja,Kg as ot,Kh as lt,Ki as it,Kj as ct,Kk as Fa,kw as Pa,Kl as _a,kz as Va,Km as La,Kn as _t,H9 as Vt,jP as Ba,Ko as Oa,Kp as _e,Kq as Lt,H7 as Bt,xE as Ja,Kr as Ra,Ks as Ua,k7 as Ot,Kt as Na,Ku as Ma,Hl as Ka,p_ as Ga,Kv as Jt,Kw as dt,Hi as Ve,Kx as rt,Ky as $a,Hn as za,Kz as Ya,KA as qa,KB as Ha,KC as Wa,KD as Qa,q1 as Za,KE as Xa,HM as en,KF as tn,H0 as Le,gy as an,KG as nn,KH as sn,gw as on,KI as ln,KJ as cn,xI as dn,KK as rn,KL as un,KM as hn,KN as pn,jT as mn,bn as Sn,eU as fn,eS as gn}from"./zeni-epic-state-H6DZSSlf.js";import{z as R,an as Be,B as Rt,A as Q,c as j,W as Z,at as vn,s as N,D as Ce,V as ce,au as We,av as xn,aw as Tn,q as Qe,ax as yn,m as Dn,Z as de,E as Ze,y as ae,$,ay as Cn,i as Xe,az as En,aA as Ut,R as bn,aB as In,k as kn,aC as wn,aq as Nt,aD as An,o as W,S as jn,G as Mt,H as Fn,aE as Pn,aF as _n,f as et,aG as Vn,aH as Ln,O as Bn,aI as On,aJ as Jn}from"./index-
|
|
1
|
+
import{j as l}from"./liveblocks-BdePShct.js";import{a as g}from"./sentry-CX_3yQh7.js";import{j as M,u as Y,l as J,g as S,k as K,h as z,n as at,o as B,N as G}from"./core-C_ZreJAw.js";import{eO as L,JD as Ee,JE as Re,fP as X,cr as be,cs as Ie,uN as St,JF as nt,uR as zt,HJ as ee,jr as te,uL as Yt,uF as qt,JG as Ue,ux as Ht,uw as Wt,uq as Qt,uC as Zt,uS as Xt,JH as he,JI as Ne,uy as ea,JJ as pe,eZ as ft,v5 as gt,u_ as vt,JK as xt,nU as Tt,uV as yt,uT as Dt,JL as Ct,vc as Et,v9 as bt,uW as It,vb as Me,G9 as kt,JM as ta,JN as aa,cu as na,JO as sa,JP as oa,JQ as me,JR as ie,JS as ke,HK as Ke,vr as ye,HI as De,ve as wt,uO as Ge,JT as la,HL as H,JU as $e,uI as ia,JV as ca,JW as da,JX as ze,JY as Ye,JZ as qe,J_ as He,vl as we,J$ as At,v2 as jt,K0 as ra,K1 as ua,K2 as ha,K3 as pa,K4 as ma,K5 as Sa,K6 as fa,K7 as ga,si as va,sj as xa,GP as je,K8 as Ta,K9 as ya,iQ as Fe,bq as Da,Ka as Ca,Kb as Ea,kp as ba,ky as Ia,GO as Pe,bD as st,Kc as Ft,Gu as Pt,Kd as ka,Ke as wa,Kf as Aa,kA as ja,Kg as ot,Kh as lt,Ki as it,Kj as ct,Kk as Fa,kw as Pa,Kl as _a,kz as Va,Km as La,Kn as _t,H9 as Vt,jP as Ba,Ko as Oa,Kp as _e,Kq as Lt,H7 as Bt,xE as Ja,Kr as Ra,Ks as Ua,k7 as Ot,Kt as Na,Ku as Ma,Hl as Ka,p_ as Ga,Kv as Jt,Kw as dt,Hi as Ve,Kx as rt,Ky as $a,Hn as za,Kz as Ya,KA as qa,KB as Ha,KC as Wa,KD as Qa,q1 as Za,KE as Xa,HM as en,KF as tn,H0 as Le,gy as an,KG as nn,KH as sn,gw as on,KI as ln,KJ as cn,xI as dn,KK as rn,KL as un,KM as hn,KN as pn,jT as mn,bn as Sn,eU as fn,eS as gn}from"./zeni-epic-state-H6DZSSlf.js";import{z as R,an as Be,B as Rt,A as Q,c as j,W as Z,at as vn,s as N,D as Ce,V as ce,au as We,av as xn,aw as Tn,q as Qe,ax as yn,m as Dn,Z as de,E as Ze,y as ae,$,ay as Cn,i as Xe,az as En,aA as Ut,R as bn,aB as In,k as kn,aC as wn,aq as Nt,aD as An,o as W,S as jn,G as Mt,H as Fn,aE as Pn,aF as _n,f as et,aG as Vn,aH as Ln,O as Bn,aI as On,aJ as Jn}from"./index-CU-O3XlP.js";import{n as U,D as Rn,S as Kt}from"./mui-BtnH6ELy.js";import{t as Un,A as Nn}from"./AddressScreen-CVaBIk3t.js";import le from"./NotFoundScreen-C5xQLNp5.js";import{F as Mn}from"./FeaturePreviewScreen-CaG7JnKZ.js";import{b as q,v as tt,c as Kn}from"./routePaths-D5WTdktl.js";import{p as Gt}from"./pathToGoBack-Bg0yBLYd.js";import{u as Se}from"./useAskAiCfoHostNavButtonProps-C2KX1gk_.js";import{c as fe}from"./useFetchSuggestedQuestionsWhenReady-BtBjAnV1.js";import{M as ge}from"./MobileAppDrawer-D4ZBwL0S.js";import{D as Gn}from"./DrawerScreen-QCmmvlF6.js";import{g as $n,m as zn}from"./accountMappingHelper-COFGwnKa.js";import"./recharts-CHr9O26_.js";import"./analytics-CgF6EPDF.js";import"./plaid-CLHQ0yLv.js";import"./dnd-C3uQO7Bn.js";import"./stripe-DMRn4zHo.js";import"./lottie-CUKBWgbe.js";import"./lexical-E_ubWL4u.js";import"./pdf-CH0jWS01.js";import"./utils-Dw8b4HCO.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]="561de0f7-c3ec-4384-97b7-e8b8aa89c242",e._sentryDebugIdIdentifier="sentry-dbid-561de0f7-c3ec-4384-97b7-e8b8aa89c242")}catch{}})();const Yn=Ce.getLocalizedStrings(),qn=K(function(e,a){const s=Re(e,a.scheduleTab),t=e.tenantState.currentTenantId;return{authParams:{userId:a.signedInUser.userId??"",sessionId:a.signedInUser.zeniSessionId??"",tenantId:t??""},linkBillExpenseView:s.linkBillExpenseView,transactions:s.linkBillExpenseView.transactions}},function(e,a){const{navigate:s,location:t}=a;return{onTransactionSelect(n){e(nt({selectedTransaction:n}))},onBackClick:()=>{s("..",{relative:"path"})},onCancel(){e(nt({selectedTransaction:void 0})),e(zt()),s("..",{relative:"path"})},onTransactionClick:n=>{const o=`${q(n,a.tenantEmailDomain)}`,c=N(t.state?.pathnameStackToGoBack,t.pathname);s(o,{state:{pathnameStackToGoBack:c}})},onLinkSave(){a.setShouldNavigateBack(!1),e(St(a.scheduleTab,a.scheduleAccruedDetailsView.selectedJEAccruedSchedule?.jeScheduleId))}}})(vn),Hn=({setShouldNavigateBack:e})=>{const a=M(),s=Y(),{scheduleDetailId:t,tenantEmailDomain:n}=J(),{scheduleType:o}=J();if(n==null)throw Error("Can't access Link Bill Expense page without tenant Email Domain");const c=S(f=>L(f)),r=Ee(o)??"accrued_expenses",h=R.getSignedInUser();if(h==null)throw Error("Can't access Link Bill Expensedetail page without signing in...");if(t==null)throw Error("Invalid Schedule Detail Id");const i=S(f=>Re(f,r)),m=i.selectedJELinkRowIndex,d=S(f=>X(f,c.companyId)),u=Be(i.updateStatus.fetchState);g.useEffect(()=>{u==="In-Progress"&&i.updateStatus.fetchState==="Completed"&&a("..",{relative:"path"})},[u,i.updateStatus.fetchState]),g.useEffect(()=>{i.fetchState==="Not-Started"&&a("..",{relative:"path"})},[]),g.useEffect(()=>{i.selectedJEAccruedSchedule!=null&&i.selectedJELinkRowIndex!=null||a("..",{relative:"path"})},[i.selectedJEAccruedSchedule,i.selectedJELinkRowIndex]);const p=i.linkBillExpenseView.fetchState==="Completed";return l.jsx(l.Fragment,{children:i.linkBillExpenseView.fetchState==="In-Progress"?l.jsx(Rt,{fetchState:i.linkBillExpenseView.fetchState}):i.selectedJEAccruedSchedule!=null&&m!=null?l.jsxs(l.Fragment,{children:[p===!0?l.jsx(Q,{analytics:j,onLoad:()=>{Wn(i,r,d)}}):null,l.jsx(qn,{signedInUser:h,attachmentEndPoint:`${Z}/vendor_attachments`,setShouldNavigateBack:e,scheduleVendorId:i.selectedJEAccruedSchedule.vendor.id??"",location:s,tenantEmailDomain:n,scheduleAccruedDetailsView:i,saveFetchState:i.updateStatus.fetchState,scheduleTab:r,navigate:a,analytics:j,controllerUserDetails:d,saveStatus:i.updateStatus.fetchState,jeAccruedSchedule:i.selectedJEAccruedSchedule,localData:i.scheduleAccruedDetailsLocalData.jeScheduleDetails[m]})]}):null})},$t=e=>{const a=Yn.dateFormat.analytics.YYYYDashMMDashDDFormat;return{scheduleCreateDate:e.createTime.format(a)??null,scheduleMonthlyAmount:e.recurringAmount??null,startingBalance:e.otherAttributes.startingBalance??null,scheduleAccountCategory:e.jeCredit.account?.accountName??null,description:e.memo,runningBalance:e.balanceAsOfToday??null,currentBalance:e.balanceAsOfToday??null,currentStatus:e.status.label,period:e.period??null,startMonth:e.startDate?.format(a)??null,endMonth:e.endDate?.format(a)??null}},Wn=(e,a,s)=>{const t=e.selectedJEAccruedSchedule,n=e.selectedJELinkRowIndex;let o;n!=null&&t!=null&&(o=t.scheduledJournalEntry[n]);const{transactions:c}=e.linkBillExpenseView,r=c.some(m=>m.isRecommendedTransaction===!0),h=be(s.controllers),i=Ie(s.controllerUserIds);t!=null&&j.trackScheduleAccruedDetailsJournalEntryLinkedLoaded({scheduleType:a,schedule:{...$t(t)},scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:{wasRecommendationAvailable:r,journalEntryPostingStatus:o?.status.label??""},vendorName:t.vendor.name??null,controllerEmails:h,controllerUserIds:i})},Qn=U.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
width: 100%;
|
package/dist/assets/{WiseConfirmationScreen-BZsn9iwu.js → WiseConfirmationScreen-NT3jIc6M.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as o}from"./liveblocks-BdePShct.js";import{a as f}from"./sentry-CX_3yQh7.js";import{q as u,h,g as y,N as I}from"./core-C_ZreJAw.js";import{IV as b,eP as w,yZ as x}from"./zeni-epic-state-H6DZSSlf.js";import{z as l,B as j,G as S,H as D}from"./index-
|
|
1
|
+
import{j as o}from"./liveblocks-BdePShct.js";import{a as f}from"./sentry-CX_3yQh7.js";import{q as u,h,g as y,N as I}from"./core-C_ZreJAw.js";import{IV as b,eP as w,yZ as x}from"./zeni-epic-state-H6DZSSlf.js";import{z as l,B as j,G as S,H as D}from"./index-CU-O3XlP.js";import{n as g}from"./mui-BtnH6ELy.js";import"./recharts-CHr9O26_.js";import"./analytics-CgF6EPDF.js";import"./plaid-CLHQ0yLv.js";import"./dnd-C3uQO7Bn.js";import"./stripe-DMRn4zHo.js";import"./lottie-CUKBWgbe.js";import"./lexical-E_ubWL4u.js";import"./pdf-CH0jWS01.js";import"./utils-Dw8b4HCO.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]="daadf993-b058-4b93-8750-453ff1588d13",e._sentryDebugIdIdentifier="sentry-dbid-daadf993-b058-4b93-8750-453ff1588d13")}catch{}})();const V=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",p=e.get("profileId")??"",[n,m]=f.useState(!1),a=h(),i=y(c=>b(c)),r=l.getSignedInUser(),d=l.getSignedInUserTenantWithId(s);if(r==null||d==null)return o.jsx(I,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return w(r.userId,r.zeniSessionId,d?.tenantId),f.useEffect(()=>{n||(m(!0),a(x(t,p,s)))},[n,a]),i.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(j,{fetchState:"In-Progress"}))},E=g.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100vh;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as n}from"./liveblocks-BdePShct.js";import{j as Y,u as q,h as z,l as Z,g as w,k as J,N as ne,n as Ne,o as k}from"./core-C_ZreJAw.js";import{eO as _,NN as Ce,NO as Ve,ck as te,cl as $e,fb as Ze,wa as ke,An as He,w4 as Tn,NP as Bn,NQ as On,w7 as Fn,we as fe,w1 as Rn,v_ as Un,MA as le,NR as Ln,DH as zn,JG as _n,DJ as Mn,k8 as Be,NS as Nn,pF as Ge,pt as We,j$ as Ye,k2 as Oe,JH as Fe,JI as Vn,NT as $n,k1 as Zn,ko as Hn,jS as Gn,ip as Wn,io as Yn,NU as qn,NV as ye,Do as Jn,NW as Kn,NX as Qn,Mt as we,NY as Re,NZ as Xn,DU as et,Nb as nt,Bh as qe,s6 as Je,N_ as tt,DR as at,N$ as Ke,cM as De,DY as Qe,fc as ot,eS as Xe,eU as Ae,DW as st,Bb as rt,DO as it,O0 as en,O1 as nn,Dq as tn,DA as Ue,O2 as ct,Du as lt,O3 as dt,N0 as ut,DZ as pt,bv as mt,bE as ht,cw as gt,bF as ft,bs as yt,IC as xt}from"./zeni-epic-state-H6DZSSlf.js";import{k as ae,y as V,z as A,$ as B,m as M,B as de,bQ as Ct,W as Ie,Z as N,E as K,q as an,an as kt,ac as Le,c as R,bR as wt,aq as Se,bS as Dt,A as ue,bT as At,f as be,aK as W,bU as It,R as St,a9 as bt,bV as ze,bW as vt,s as ee,bX as Et,bY as jt,bZ as Pt,b_ as Tt,a6 as Bt,o as Ot}from"./index-
|
|
1
|
+
import{j as n}from"./liveblocks-BdePShct.js";import{j as Y,u as q,h as z,l as Z,g as w,k as J,N as ne,n as Ne,o as k}from"./core-C_ZreJAw.js";import{eO as _,NN as Ce,NO as Ve,ck as te,cl as $e,fb as Ze,wa as ke,An as He,w4 as Tn,NP as Bn,NQ as On,w7 as Fn,we as fe,w1 as Rn,v_ as Un,MA as le,NR as Ln,DH as zn,JG as _n,DJ as Mn,k8 as Be,NS as Nn,pF as Ge,pt as We,j$ as Ye,k2 as Oe,JH as Fe,JI as Vn,NT as $n,k1 as Zn,ko as Hn,jS as Gn,ip as Wn,io as Yn,NU as qn,NV as ye,Do as Jn,NW as Kn,NX as Qn,Mt as we,NY as Re,NZ as Xn,DU as et,Nb as nt,Bh as qe,s6 as Je,N_ as tt,DR as at,N$ as Ke,cM as De,DY as Qe,fc as ot,eS as Xe,eU as Ae,DW as st,Bb as rt,DO as it,O0 as en,O1 as nn,Dq as tn,DA as Ue,O2 as ct,Du as lt,O3 as dt,N0 as ut,DZ as pt,bv as mt,bE as ht,cw as gt,bF as ft,bs as yt,IC as xt}from"./zeni-epic-state-H6DZSSlf.js";import{k as ae,y as V,z as A,$ as B,m as M,B as de,bQ as Ct,W as Ie,Z as N,E as K,q as an,an as kt,ac as Le,c as R,bR as wt,aq as Se,bS as Dt,A as ue,bT as At,f as be,aK as W,bU as It,R as St,a9 as bt,bV as ze,bW as vt,s as ee,bX as Et,bY as jt,bZ as Pt,b_ as Tt,a6 as Bt,o as Ot}from"./index-CU-O3XlP.js";import{n as U,D as Q,S as X}from"./mui-BtnH6ELy.js";import ce from"./NotFoundScreen-C5xQLNp5.js";import{S as _e}from"./SetupPagesScreen-CQHQEfZR.js";import{F as on}from"./FeaturePreviewScreen-CaG7JnKZ.js";import{a as u}from"./sentry-CX_3yQh7.js";import{M as pe}from"./MobileAppDrawer-D4ZBwL0S.js";import{A as Ft,D as Rt,V as Ut}from"./DomesticWireDetailScreen-Bf9aHic4.js";import{A as Lt}from"./AddressScreen-CVaBIk3t.js";import{u as sn}from"./useAskAiCfoHostNavButtonProps-C2KX1gk_.js";import{c as rn}from"./useFetchSuggestedQuestionsWhenReady-BtBjAnV1.js";import{Z as zt}from"./ZeniAccountStatementScreen-Bmtq5P9-.js";import"./recharts-CHr9O26_.js";import"./analytics-CgF6EPDF.js";import"./plaid-CLHQ0yLv.js";import"./dnd-C3uQO7Bn.js";import"./stripe-DMRn4zHo.js";import"./lottie-CUKBWgbe.js";import"./lexical-E_ubWL4u.js";import"./pdf-CH0jWS01.js";import"./utils-Dw8b4HCO.js";import"./analyticsHelper-DBYfXkXK.js";import"./routePaths-D5WTdktl.js";import"./BusinessVerificationPageScreen-DAwDD_bm.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]="554d28c1-4207-4cbb-af7f-ed65081f7a5d",e._sentryDebugIdIdentifier="sentry-dbid-554d28c1-4207-4cbb-af7f-ed65081f7a5d")}catch{}})();const _t=U.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-BdePShct.js";import{a as f}from"./sentry-CX_3yQh7.js";import{j as x,h as $,u as j,l as B,g as p}from"./core-C_ZreJAw.js";import{HS as s,HR as v,O4 as C,eO as T,O5 as z}from"./zeni-epic-state-H6DZSSlf.js";import{Z as D,aq as g,m as E,z as L,B as P,b$ as N,q as O}from"./index-
|
|
1
|
+
import{j as i}from"./liveblocks-BdePShct.js";import{a as f}from"./sentry-CX_3yQh7.js";import{j as x,h as $,u as j,l as B,g as p}from"./core-C_ZreJAw.js";import{HS as s,HR as v,O4 as C,eO as T,O5 as z}from"./zeni-epic-state-H6DZSSlf.js";import{Z as D,aq as g,m as E,z as L,B as P,b$ as N,q as O}from"./index-CU-O3XlP.js";import{n as _}from"./mui-BtnH6ELy.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]="d1b403a9-e0da-4e8c-9e48-844b2358d958",e._sentryDebugIdIdentifier="sentry-dbid-d1b403a9-e0da-4e8c-9e48-844b2358d958")}catch{}})();const U=_.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100vh;
|
|
4
4
|
width: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cG as m,cH as l,IN as _,IO as d}from"./zeni-epic-state-H6DZSSlf.js";import{c as u}from"./index-
|
|
1
|
+
import{cG as m,cH as l,IN as _,IO as d}from"./zeni-epic-state-H6DZSSlf.js";import{c as u}from"./index-CU-O3XlP.js";import"./sentry-CX_3yQh7.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]="e4529e03-fd8d-4950-96f0-cf044d03a91c",e._sentryDebugIdIdentifier="sentry-dbid-e4529e03-fd8d-4950-96f0-cf044d03a91c")}catch{}})();const h=e=>{switch(e){case"this_month_to_date":case"this_week_to_date":case"this_year_to_date":case"last_year":case"last_week":case"last_month":case"last_6_months":case"last_3_months":case"last_12_months":case"free_range":return e;case"month":default:return"months";case"quarter":return"quarters";case"year":return"years"}},b=(e,a,o,i,s)=>{const r=[],c=[];let t=[];s?.forEach(n=>{r.push(n.companyId),c.push(n.companyName),t=t.concat(n.userRole)}),u.identify(e.userId,{tenant_id:a.tenantId,tenant_email_domain:a.tenantEmailDomain,company_id:a.companyId,company_name:a.companyName,user_role:a.userRole,chargebee_customer_id:i,$email:e.userEmail,user_email_domain:e.userEmailDomain,$first_name:e.firstName,$last_name:e.lastName,company_ids:s!=null?r:void 0,company_names:s!=null?c:void 0,user_roles:s!=null?t:void 0,app_type:"web",appearance:o})},g=(e,a)=>m(e,a)?"bill_pay":l(e,a)?"reimbursement":_(e,a)?"zeni_accounts":d(e,a)?"charge_cards":"bill_pay",I=e=>Object.values(e.allocation).map(String).join("-");export{I as a,b as f,g,h as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as n}from"./index-
|
|
1
|
+
import{p as n}from"./index-CU-O3XlP.js";import"./mui-BtnH6ELy.js";import"./sentry-CX_3yQh7.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]="4942e80e-a555-4829-8c4b-fc6f6fa31055",e._sentryDebugIdIdentifier="sentry-dbid-4942e80e-a555-4829-8c4b-fc6f6fa31055")}catch{}})();function r(e){if(e.companyLocaleInfo!=null&&e.companyLocaleInfo.languageCode.length>0&&e.companyLocaleInfo.companyIncCountryCode.length>0){const o=`${e.companyLocaleInfo.languageCode.toLowerCase()}-${e.companyLocaleInfo.companyIncCountryCode.toUpperCase()}`;return console.warn(`localeID ${o}`),n(o)??"en"}return"en"}export{r as t};
|