@zeniai/web-app-ui 5.3.42-qa → 5.3.43-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{AccountMappingScreen-D4RlIlHq.js → AccountMappingScreen-MfXsPj8M.js} +1 -1
- package/dist/assets/{ActualMatchingMatchDetailScreen-bQpbiVso.js → ActualMatchingMatchDetailScreen-DPtLhEgD.js} +1 -1
- package/dist/assets/AddressRoutes-CQjpNxne.js +1 -0
- package/dist/assets/{AddressScreen-BfaScJFK.js → AddressScreen-tI262EI8.js} +1 -1
- package/dist/assets/{AiCfoScreen-Box0GL8P.js → AiCfoScreen-DMyEpPj8.js} +1 -1
- package/dist/assets/{AppDrawer-DD3NOfx7.js → AppDrawer-CK8Oi_Um.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-CHOK-BIF.js → BillPayApprovalRoutes-BG4wkb9h.js} +1 -1
- package/dist/assets/{BillPayRoutes-DFbBUbt3.js → BillPayRoutes-B82H1r4T.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-BL-rDXb4.js → BusinessVerificationPageScreen-BLwno7qB.js} +1 -1
- package/dist/assets/{CardsAiCfoScreen-c7VxfhZx.js → CardsAiCfoScreen-BJxdbSYR.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-DgHOOT2d.js → ChargeCardRoutes-CMUVGkhr.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-DW9fXsgC.js → CompanyPassportScreen-C_r9krre.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-Dl4_e9UF.js → ConnectionAuthScreen-DckWKyp-.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen--oM8fIUf.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-J_r_S5S6.js → CustomerOnboardingRoutes-CbzfyCjZ.js} +1 -1
- package/dist/assets/{DashboardRoutes-qEMySFwY.js → DashboardRoutes-BeQuxWvV.js} +1 -1
- package/dist/assets/{DefaultTenantHome-D0hA77jZ.js → DefaultTenantHome-RKPiTReZ.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-tEEN6PNc.js → DomesticWireDetailScreen-42PVSRte.js} +1 -1
- package/dist/assets/{DrawerScreen-O-gM6ONw.js → DrawerScreen-DQY8vrlv.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-CGS2jnu9.js → EntityDetailRoutes-Br-C_K-o.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-RAM77xQ5.js → ExpenseAutomationRoutes-CurjmTHm.js} +1 -1
- package/dist/assets/{FeaturePreviewScreen-CfLYCS4M.js → FeaturePreviewScreen-C8dKuiF7.js} +1 -1
- package/dist/assets/{HubSpotOAuthCallbackScreen-BCoIXBGx.js → HubSpotOAuthCallbackScreen-Ct9QwCVK.js} +1 -1
- package/dist/assets/{InboxNotificationsProvider-Cf5DQSg3.js → InboxNotificationsProvider-ozJWRqdQ.js} +1 -1
- package/dist/assets/{InvoicingRoutes-BSJKEbd0.js → InvoicingRoutes-B_3tGcpp.js} +2 -2
- package/dist/assets/{MagicLinkRoutes-DvFINUyu.js → MagicLinkRoutes-VkRBz-4x.js} +1 -1
- package/dist/assets/{MagicLinkSignInScreen-DWA7XGFG.js → MagicLinkSignInScreen-D6KHJfXd.js} +1 -1
- package/dist/assets/{MobileAppDrawer-HCRn1e7J.js → MobileAppDrawer-plEMRzd-.js} +1 -1
- package/dist/assets/NotFoundScreen-DVcHaqdZ.js +1 -0
- package/dist/assets/{NotificationRoutes-BMD667yj.js → NotificationRoutes-DporIbci.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-BGUS6sNp.js → OAuthConsentScreen-Bwiy1dZe.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-BFUL28rL.js → PandLWithForecastRoutes-4dzVDYi7.js} +1 -1
- package/dist/assets/{PaymentLinkScreen-DdOQZBq6.js → PaymentLinkScreen-xK_McxjH.js} +1 -1
- package/dist/assets/{PeopleRoutes-Qan4Ca75.js → PeopleRoutes-CzBniqLj.js} +1 -1
- package/dist/assets/{PerformanceRoutes-BUzsJ8JT.js → PerformanceRoutes-DQVFxHI8.js} +1 -1
- package/dist/assets/{Preview-BCwFnEAM.js → Preview-DKbH4DZo.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-B-JIz_OC.js → QBOConnectionScreen-CqIFgusE.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-Cz663ZFE.js → ReimbursementApprovalRoutes-B2dZhJk9.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-D1uTDziv.js → ReimbursementApprovalRuleDetailScreen-NYDKW5M_.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-C0wQD-bc.js → ReimbursementRoutes-B4vB3DWh.js} +1 -1
- package/dist/assets/{ReportsRoutes-CXJSK6N5.js → ReportsRoutes-QNTHdw6g.js} +1 -1
- package/dist/assets/{RewardsRoutes-UOKjC0-b.js → RewardsRoutes-B7P2nmYk.js} +1 -1
- package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-Cf3Sj0Dq.js → ScheduleDetailsPrepaidExpensesScreen-YdcDOaAu.js} +1 -1
- package/dist/assets/{ScreenRoutes-ChUwukZv.js → ScreenRoutes-Cy1wpKTY.js} +2 -2
- package/dist/assets/{SettingsRoutes-BeIHfkyW.js → SettingsRoutes-DIXSeHUD.js} +1 -1
- package/dist/assets/{SetupPagesScreen-DSJF8gvU.js → SetupPagesScreen-DV-Hyv78.js} +1 -1
- package/dist/assets/{SignInScreen-Q2IdOxGt.js → SignInScreen-DvhFy3xy.js} +1 -1
- package/dist/assets/{SignOutScreen-x1shfrTA.js → SignOutScreen-C5uG0eM1.js} +1 -1
- package/dist/assets/{TaskListScreen-cpZyLi8u.js → TaskListScreen-CbiI2IGU.js} +1 -1
- package/dist/assets/{TaskRoutes-CR7LYG5S.js → TaskRoutes-DNWDTIHG.js} +1 -1
- package/dist/assets/TransactionDetailRoutes-CGamazG6.js +1 -0
- package/dist/assets/{TransactionDetailScreen-C_Kji4P1.js → TransactionDetailScreen-DA_15rvE.js} +1 -1
- package/dist/assets/{TransactionListRoutes-BIMf99Cg.js → TransactionListRoutes-DUel89dv.js} +1 -1
- package/dist/assets/{TreasuryRoutes-BL8oTr8q.js → TreasuryRoutes-DNsqL_xe.js} +1 -1
- package/dist/assets/{VendorsRoutes-CO0cgAQM.js → VendorsRoutes-DENWe8ir.js} +1 -1
- package/dist/assets/{WiseConfirmationScreen-BMU_QR7R.js → WiseConfirmationScreen-CO8k4M88.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-f8fQbApR.js → ZeniAccountRoutes-BzmSgvJI.js} +1 -1
- package/dist/assets/{ZeniAccountStatementScreen-Bq5EWwlR.js → ZeniAccountStatementScreen-CuxmtWXH.js} +1 -1
- package/dist/assets/{accountMappingHelper-2xXLJj4S.js → accountMappingHelper-CQrmB6jj.js} +1 -1
- package/dist/assets/{analytics-CvsRIk3B.js → analytics-BTvt2K3S.js} +1 -1
- package/dist/assets/{analyticsHelper-C534_Opk.js → analyticsHelper-BwLj34Ys.js} +1 -1
- package/dist/assets/{core-DGLzDXWl.js → core-BwK6FGJd.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-k3ZAUeWI.js → decodeURIComponentSafe-iAavL6tS.js} +1 -1
- package/dist/assets/{dnd-SnD389s6.js → dnd-Cbdx7tVf.js} +1 -1
- package/dist/assets/{empty-BjVnPUF5.js → empty-CTWnX7jn.js} +1 -1
- package/dist/assets/{empty-BfBfVq50.js → empty-DbO4voXD.js} +1 -1
- package/dist/assets/{emptyVideoElement-Bb1KlJXy.js → emptyVideoElement-BdvQlKL1.js} +1 -1
- package/dist/assets/epic-BUtbsU0k.js +2 -0
- package/dist/assets/{expenseAutomationHelper-DWDIPthN.js → expenseAutomationHelper-MxNxlZNN.js} +1 -1
- package/dist/assets/{getLocaleForTenant-COb4gZwj.js → getLocaleForTenant-DzgzmDle.js} +1 -1
- package/dist/assets/{index-C54xa34r.js → index-B_VJsceg.js} +1 -1
- package/dist/assets/{index-DPcuwgM-.js → index-Bexws62p.js} +1 -1
- package/dist/assets/{index-BMI1TT7Z.js → index-BhX9D2PW.js} +1 -1
- package/dist/assets/{index-CQFc7TiS.js → index-D2_EUTG6.js} +1 -1
- package/dist/assets/{index-Buyjnqrt.js → index-DCOMaDuK.js} +1 -1
- package/dist/assets/{index-CVAekD3p.js → index-DTZt8DRK.js} +18813 -18813
- package/dist/assets/{index-CzPkUTbT.js → index-DstkpwOZ.js} +2 -2
- package/dist/assets/{index-B2CKeHlo.js → index-SQoDfHg2.js} +1 -1
- package/dist/assets/{lexical-CMBMntF_.js → lexical-DRfKJLK3.js} +1 -1
- package/dist/assets/{liveblocks-DRsJ0YIJ.js → liveblocks-y3zMPGKB.js} +1 -1
- package/dist/assets/{lottie-DEqUWUd5.js → lottie-BQlGSG2c.js} +1 -1
- package/dist/assets/{mui-BuJ3P0FU.js → mui-CxIkaR9n.js} +1 -1
- package/dist/assets/{pathToGoBack-BzjHaNqp.js → pathToGoBack-QMp9zrtx.js} +1 -1
- package/dist/assets/{pdf-B_v4zyN7.js → pdf-DGzvSuDl.js} +3 -3
- package/dist/assets/{pdf-lib-DxbyphS9.js → pdf-lib-Bm6tpkCo.js} +1 -1
- package/dist/assets/{plaid-i7y7YD6O.js → plaid-CQqwPn97.js} +1 -1
- package/dist/assets/{pusher-BYBfYYCn.js → pusher-DpL50lnb.js} +1 -1
- package/dist/assets/{react-CAYYQ7Si.js → react-12W2NDka.js} +1 -1
- package/dist/assets/{react-CAr2Hff_.js → react-8Gpe_kpB.js} +1 -1
- package/dist/assets/{react-leqbcToB.js → react-CCyW6CxJ.js} +1 -1
- package/dist/assets/{react-C2HSs5Iu.js → react-CwBUDYOl.js} +1 -1
- package/dist/assets/{react-Dm85ZpZj.js → react-Tycrsh8q.js} +1 -1
- package/dist/assets/{react-B90rw7na.js → react-ZBsIhK1t.js} +1 -1
- package/dist/assets/{recharts-CJlXFxhv.js → recharts-CoAMGh71.js} +1 -1
- package/dist/assets/{routePaths-nMSO0ytp.js → routePaths-CPqwWbPN.js} +1 -1
- package/dist/assets/{sentry-G4ZANa8Z.js → sentry-Jm7O5sR0.js} +1 -1
- package/dist/assets/{stripSplatSuffix-BTaD_7hZ.js → stripSplatSuffix-nQAZVh5Z.js} +1 -1
- package/dist/assets/{url--ciz_Nq8.js → url-B9xXiyVk.js} +1 -1
- package/dist/assets/{url-CtF92dYM.js → url-D9zjpdeS.js} +1 -1
- package/dist/assets/{useActualMatchingMatchDetail-BK8kbpN5.js → useActualMatchingMatchDetail-Asb0lSO5.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-BGckv6CX.js → useAiCfoDashboardSuggestedQuestionsChips-C3x9GIES.js} +1 -1
- package/dist/assets/{useAskAiCfoHostNavButtonProps-BHyPLCCo.js → useAskAiCfoHostNavButtonProps-DzjGv8Xy.js} +1 -1
- package/dist/assets/{useChargeCardPusherEvents-DTBTr-3d.js → useChargeCardPusherEvents-aPfygpSV.js} +1 -1
- package/dist/assets/{useDeviceId-C9MUyzJJ.js → useDeviceId-DdPl1EVl.js} +1 -1
- package/dist/assets/{useEmailConnectResultRefresh-C8kd-UP4.js → useEmailConnectResultRefresh-CCE7kCjs.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-DtdvMhZQ.js → useInitialThreadRequest-BWyM3F-W.js} +1 -1
- package/dist/assets/{useTaskManagerAccess-DnvaNO8w.js → useTaskManagerAccess-DRF4urEw.js} +1 -1
- package/dist/assets/{utils-Bz8wuSWM.js → utils-BVIT21dc.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-DGZchFy0.js → withTransactionSidePanel-Cd_M2p_z.js} +1 -1
- package/dist/assets/{zeni-epic-state-Dm2vDWXH.js → zeni-epic-state-BugXGzus.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +6 -6
- package/dist/assets/AddressRoutes-DhHo5D0q.js +0 -1
- package/dist/assets/CustomerOnboardingAuthScreen-BDYIxUcT.js +0 -1
- package/dist/assets/NotFoundScreen-Due1Mflv.js +0 -1
- package/dist/assets/TransactionDetailRoutes-c82zOTpF.js +0 -1
- package/dist/assets/epic-CPuRNynX.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-
|
|
1
|
+
import{j as a}from"./liveblocks-y3zMPGKB.js";import{a as d}from"./sentry-Jm7O5sR0.js";import{h as V,g as q,u as R,i as N,j as C,l as H,n as J,o as k}from"./core-BwK6FGJd.js";import{fE as w,Za as Pe,Np as ve,YK as we,YT as Ae,c8 as X,cT as De,cU as Ue,bq as Re,dd as Me,FO as Te,Zb as _e,OS as Be,Mg as Ze,M7 as de,M4 as Fe,FS as ue,Ma as pe,Md as ge,Mj as W,C2 as ee,FR as Oe,lt as $,lw as me,Zc as Ve,mG as Ne,G8 as Le,Vq as Ge,Vr as $e,lr as qe,Zd as He,lu as Ke,uz as ze,Vl as Ye,Vm as Je,uD as Qe,hU as Xe,Uk as Y,hM as ae,hJ as We,hR as en,Ul as nn,G5 as tn,Ze as an,Zf as on,Mx as sn,l_ as rn,dY as fe,dZ as he,Zg as ln,gB as cn,UA as dn,G4 as oe,gG as se,gF as un,G3 as pn,gE as gn,gD as mn,Zh as fn,TM as Ce,Zi as hn,Zj as Cn,Zk as Sn,Zl as yn,Zm as bn,Zn as In,Gb as xn,Zo as En,G2 as ie,FY as G,Zp as kn,Zq as jn,Zr as re,Zs as Pn,dR as vn,Zt as wn,Zu as An,Zv as Dn,TY as Un,c0 as Rn,c7 as Mn,c6 as Tn,c1 as _n,Zw as Bn,c4 as Zn,c3 as Fn,c5 as On,c2 as Vn}from"./zeni-epic-state-BugXGzus.js";import{bS as Nn,z as v,U as L,a7 as ne,c2 as Ln,k as K,O as te,c as F,g as Se,N as ye,c3 as Gn,j as $n,X as be,c4 as qn,ai as Hn,c5 as Kn,c6 as zn,aq as Yn,c7 as Jn,p as Qn,d as Ie,c8 as Xn}from"./index-DTZt8DRK.js";import{n as B}from"./mui-CxIkaR9n.js";import{u as xe}from"./useTaskManagerAccess-DRF4urEw.js";import{U as Wn}from"./AccountMappingScreen-MfXsPj8M.js";import{t as et,A as nt}from"./AddressScreen-tI262EI8.js";import O from"./NotFoundScreen-DVcHaqdZ.js";import{g as tt}from"./analyticsHelper-BwLj34Ys.js";import{u as at,B as ot}from"./BusinessVerificationPageScreen-BLwno7qB.js";import{C as st}from"./CompanyPassportScreen-C_r9krre.js";import{M as T}from"./MobileAppDrawer-plEMRzd-.js";import{u as it,a as rt}from"./useEmailConnectResultRefresh-CCE7kCjs.js";import{q as le}from"./QBOConnectionScreen-CqIFgusE.js";import{B as lt}from"./BillPayApprovalRoutes-BG4wkb9h.js";import{R as ct}from"./ReimbursementApprovalRoutes-B2dZhJk9.js";import"./recharts-CoAMGh71.js";import"./analytics-BTvt2K3S.js";import"./plaid-CQqwPn97.js";import"./dnd-Cbdx7tVf.js";import"./stripe-cKAAJElX.js";import"./lottie-BQlGSG2c.js";import"./lexical-DRfKJLK3.js";import"./pdf-DGzvSuDl.js";import"./utils-BVIT21dc.js";import"./accountMappingHelper-CQrmB6jj.js";import"./routePaths-CPqwWbPN.js";import"./InboxNotificationsProvider-ozJWRqdQ.js";import"./empty-CTWnX7jn.js";import"./pdf-lib-Bm6tpkCo.js";import"./index-SQoDfHg2.js";import"./url-D9zjpdeS.js";import"./index-D2_EUTG6.js";import"./decodeURIComponentSafe-iAavL6tS.js";import"./ReimbursementApprovalRuleDetailScreen-NYDKW5M_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="fcac6c0d-3dd7-4f92-8d97-ad4f1d2979b1",e._sentryDebugIdIdentifier="sentry-dbid-fcac6c0d-3dd7-4f92-8d97-ad4f1d2979b1")}catch{}})();const dt=B.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-
|
|
1
|
+
import{j as u}from"./liveblocks-y3zMPGKB.js";import{h as X,g as Q,u as ee,i as W,j as v,N as j,l as G,t as Qe}from"./core-BwK6FGJd.js";import{bJ as en,fE as F,cG as nn,HD as $,YK as tn,YN as an,uS as ne,uG as te,my as ae,BA as R,YP as Ce,gF as Ye,gE as We,gD as Ge,YQ as sn,HM as on,Mg as he,M7 as Ie,M4 as Ae,LO as J,Ma as _e,Md as ke,Mj as ve,C2 as Pe,gZ as cn,cB as rn,dZ as un,dY as dn,dh as ln,bt as pn,cu as Fe,YR as mn,KO as de,Lq as yn,YS as fn,bK as gn,NB as le,Np as Sn,YT as bn,YU as Cn,NF as hn,NJ as In,YV as je,Bt as An,S5 as _n,Of as be,P4 as pe,YW as kn,YX as vn,YY as Pn,YZ as He,Y_ as Tn,V9 as En,X$ as Dn,Vo as Un,Y$ as Ke,LS as On,Vp as wn,LW as Fn,Z0 as we,Op as qe,mG as Vn,uJ as Je,BC as xn,bE as Ne,BO as Re,cE as Bn,Z1 as Xe,NY as jn,NZ as Nn,O1 as Rn,Z2 as Ln,Oi as Le,Z3 as Mn,Z4 as zn,Z5 as Zn,Z6 as $n,gU as Yn,IX as Wn,Z7 as Gn,J0 as Hn,I$ as Kn}from"./zeni-epic-state-BugXGzus.js";import{ai as Te,U as ie,O as me,c as q,E as Ee,z as E,a8 as se,k as D,a7 as De,T as Y,bP as qn,ae as oe,bQ as V,bi as Ve,bR as Jn,bS as Xn,bT as Qn,o as Be,bU as et,p as Me,aG as ze,a1 as nt,ab as tt,bV as at,bW as it,bX as st,w as ot}from"./index-DTZt8DRK.js";import{a as h}from"./sentry-Jm7O5sR0.js";import{n as xe,D as ct,S as rt}from"./mui-CxIkaR9n.js";import{u as ut,B as Oe}from"./BusinessVerificationPageScreen-BLwno7qB.js";import{M as ye}from"./MobileAppDrawer-plEMRzd-.js";import N from"./NotFoundScreen-DVcHaqdZ.js";import{a as Ze}from"./analyticsHelper-BwLj34Ys.js";import{d as $e}from"./routePaths-CPqwWbPN.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]="2d5edab0-1dc6-408e-9a0b-71c6f98aeb8f",e._sentryDebugIdIdentifier="sentry-dbid-2d5edab0-1dc6-408e-9a0b-71c6f98aeb8f")}catch{}})();const dt=xe.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as u}from"./liveblocks-
|
|
1
|
+
import{j as u}from"./liveblocks-y3zMPGKB.js";import{a as f,R as b,q as A}from"./sentry-Jm7O5sR0.js";import{u as z,h as D,j as l,g as M,N as j,l as P}from"./core-BwK6FGJd.js";import{u as O,z as s,E as F,k as w,G as N,R as _,T as B,Z as V,V as $,W as R,X as v}from"./index-DTZt8DRK.js";import{fE as W,TI as q,U0 as J,gh as X,gj as Z,U5 as G,gT as H,di as K,U6 as U,U7 as Q,U8 as Y,b$ as y}from"./zeni-epic-state-BugXGzus.js";import"./mui-CxIkaR9n.js";import{u as ee}from"./useDeviceId-DdPl1EVl.js";import{f as te}from"./analyticsHelper-BwLj34Ys.js";import{t as ne}from"./getLocaleForTenant-DzgzmDle.js";import"./recharts-CoAMGh71.js";import"./analytics-BTvt2K3S.js";import"./plaid-CQqwPn97.js";import"./dnd-Cbdx7tVf.js";import"./stripe-cKAAJElX.js";import"./lottie-BQlGSG2c.js";import"./lexical-DRfKJLK3.js";import"./pdf-DGzvSuDl.js";import"./utils-BVIT21dc.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]="d14478ca-33a3-4f45-88c8-231071806081",t._sentryDebugIdIdentifier="sentry-dbid-d14478ca-33a3-4f45-88c8-231071806081")}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(Y({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(Q(n,a)))},clearSignInError:()=>{t(U())}}}))(R),ae=b.memo(ie);function ve({setTenantEmailDomain:t}){const i=z(),d=D(),{clearAllLoading:g}=O(),n=s.getSignedInUser();f.useLayoutEffect((()=>{g()}),[g]);const a=ee(),c=l((e=>e.tenantState.magicLinkCodeVerifier)),{sendEmailMagicLinkFetchState:E,accountLocked:C,accountUnlockTime:h}=l((e=>e.tenantState)),p=l((e=>e.tenantState.fetchState)),k=l((e=>e.tenantState.activeTenantFetchState.fetchState)),S=l((e=>e.tenantState.signInState)),o=l((e=>e.tenantState.loggedInUser)),r=l((e=>W(e))),I=l((e=>q(e))),m=M(),L=F().mode,T=m.state?.magicLinkExpired,x=m.state?.magicLinkAlreadyUsed;if(f.useEffect((()=>{E.fetchState==="Completed"&&c!=null&&(w.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(c))}),[E.fetchState,c]),f.useEffect((()=>{t(void 0)}),[]),f.useEffect((()=>{S!=="In-Progress"||p!=="Completed"&&k!=="Completed"||o?.zeniSessionId==null||r==null||(s.savePayNowInfoTooltip(!0,o.zeniSessionId),s.saveSignedInUserWithSession(o,o.zeniSessionId),s.saveSignedInUserTenants(J(I.tenantsInOrder),o.zeniSessionId),X(o.userId,o.zeniSessionId,r.tenantId),i(Z(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(G("Completed")),N.updateAppLocaleID(ne(r)),te(o,r,L,void 0,I.tenantsInOrder),H().then((()=>{const e=$();e!=null&&_(e)})),setTimeout((()=>{w.trackLogin(B.Event.loginSuccess,o.authProvider??"google",K(r.productSettings))}),2e3))}),[S,p,k,o,r,I,L,m.state,i]),S==="In-Progress"&&p==="Completed"&&o?.zeniSessionId!=null&&r!=null||n!=null){const e=m.state?.origin??"/";return u.jsx(j,{to:e,state:{...m.state,origin:""}})}return u.jsxs(u.Fragment,{children:[u.jsx(ae,{magicLinkExpired:!!T,magicLinkAlreadyUsed:!!x,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),C===!0&&h!=null?u.jsx(V,{onClose:()=>i(U()),unlockDate:h}):null]})}export{ve as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-
|
|
1
|
+
import{j as s}from"./liveblocks-y3zMPGKB.js";import{a as i}from"./sentry-Jm7O5sR0.js";import{u as d,g as f,N as u}from"./core-BwK6FGJd.js";import{z as n,k as a,T as m,a7 as p}from"./index-DTZt8DRK.js";import{gW as g,Um as y}from"./zeni-epic-state-BugXGzus.js";import{n as b}from"./mui-CxIkaR9n.js";import"./recharts-CoAMGh71.js";import"./analytics-BTvt2K3S.js";import"./plaid-CQqwPn97.js";import"./dnd-Cbdx7tVf.js";import"./stripe-cKAAJElX.js";import"./lottie-BQlGSG2c.js";import"./lexical-DRfKJLK3.js";import"./pdf-DGzvSuDl.js";import"./utils-BVIT21dc.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]="03352816-7b8e-497c-9cc4-e1765d7b5403",e._sentryDebugIdIdentifier="sentry-dbid-03352816-7b8e-497c-9cc4-e1765d7b5403")}catch{}})();function N(){const e=d(),t=f(),r=i.useRef(!1),c=n.isSignedIn(),o=t.state?.message==="logout"||c;return i.useEffect((()=>{if(o&&!r.current){r.current=!0;try{e(g()),y(),a.trackLogout(m.Event.logoutSuccess),a.resetUserIdentity(),n.clearAll()}catch(l){console.error("Error during sign out:",l)}finally{window.location.replace("/signin/auth")}}}),[o,e]),o?s.jsx(h,{children:s.jsx(p,{fetchState:"In-Progress"})}):s.jsx(u,{to:"../",replace:!0})}const h=b.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100vh;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as C}from"./liveblocks-
|
|
1
|
+
import{j as C}from"./liveblocks-y3zMPGKB.js";import{a as f}from"./sentry-Jm7O5sR0.js";import{h as pa,u as Ta,g as fa,k as ga,j as F,i as _a,l as ma}from"./core-BwK6FGJd.js";import{aK as Da,aL as ba,z as x,O as Sa,c as G,as as Ea,a8 as ha,k as ya,T as Aa,e7 as Ca,p as R,a4 as Ga}from"./index-DTZt8DRK.js";import{fE as Ia,a1R as H,QT as B,a1S as J,a1N as Ba,Qf as M,a1T as Ka,Qn as W,PZ as va,PB as La,QU as V,a1U as q,gg as wa,QK as Ra,QP as Ua,QC as Pa,QA as X,QQ as Fa,Qx as ja,a1V as xa,a1W as Oa,a1X as Na,a1Y as Qa,a1Z as I,dw as $a,dv as Za,a1_ as za,PW as Ma}from"./zeni-epic-state-BugXGzus.js";import{n as Wa}from"./mui-CxIkaR9n.js";import{u as Va}from"./useAskAiCfoHostNavButtonProps-DzjGv8Xy.js";import{M as qa}from"./MobileAppDrawer-plEMRzd-.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]="2f1e33e4-c7c4-47dd-9aba-0f6ea75fa494",e._sentryDebugIdIdentifier="sentry-dbid-2f1e33e4-c7c4-47dd-9aba-0f6ea75fa494")}catch{}})();const d={TASK_CREATED:"task-created",TASK_UPDATED:"task-updated",TASK_SNOOZE_RESURFACED:"task-snooze-resurfaced",TASKS_BULK_UPDATED:"tasks-bulk-updated",TASKS_BULK_DELETED:"tasks-bulk-deleted"},Xa=(e,a)=>e==null||e===""?[]:a.map((n=>`private-encrypted-${e}.${n}`)),Ya=(e,a)=>e==null||e===""?[]:a.map((n=>`private-encrypted-${e}.${n}`)),U=e=>Array.isArray(e)&&e.every((a=>typeof a=="string")),Ha=e=>{if(e==null||typeof e!="object")return null;const a=e,n=typeof a.task_id=="string"?a.task_id:typeof a.id=="string"?a.id:null;if(n==null||typeof a.tenant_id!="string"||typeof a.event_type!="string")return null;const o={task_id:n,tenant_id:a.tenant_id,event_type:a.event_type};return typeof a.is_private=="boolean"&&(o.is_private=a.is_private),U(a.assignees)&&(o.assignees=a.assignees),U(a.direct_assignees)&&(o.direct_assignees=a.direct_assignees),typeof a.created_by=="string"&&(o.created_by=a.created_by),U(a.task_group_ids)&&(o.task_group_ids=a.task_group_ids),typeof a.name=="string"&&(o.name=a.name),typeof a.parent_task_id=="string"&&(o.parent_task_id=a.parent_task_id),o},Ja=e=>{if(e==null||typeof e!="object")return null;const a=e;return U(a.task_ids)?{task_ids:a.task_ids}:null},pe=e=>{if(e==null||typeof e!="object")return null;const a=e;return typeof a.task_id!="string"?null:{task_id:a.task_id}},ae=e=>{const{events:a,onEvent:n,onSubscribed:o}=e,i=Da(),g=f.useRef(n),l=f.useRef(o),_=f.useRef(0);f.useEffect((()=>{g.current=n}),[n]),f.useEffect((()=>{l.current=o}),[o]);const t=f.useMemo((()=>[...a].sort().join("|")),[a]);f.useEffect((()=>{if(i==null||a.length===0)return;const s=[],p=new Set,S=()=>{if(l.current==null)return;const m=Date.now();m-_.current<5e3||(_.current=m,l.current())};return a.forEach((m=>{const[D,b]=ba(m);if(b==="")return;const h=i.channel(D),y=T=>{g.current(b,T)};let k;if(h?.subscribed===!0){if(k=h,k.bind(b,y),!p.has(D)){p.add(D),S();const T=()=>{S()};k.bind("pusher:subscription_succeeded",T),s.push((()=>{k.unbind("pusher:subscription_succeeded",T)}))}s.push((()=>{h.unbind(b,y)}))}else{if(k=h??i.subscribe(D),k.bind(b,y),!p.has(D)){p.add(D);const T=()=>{S()};k.bind("pusher:subscription_succeeded",T),s.push((()=>{k.unbind("pusher:subscription_succeeded",T)}))}s.push((()=>{k.unbind(b,y)}))}})),()=>{s.forEach((m=>m()))}}),[i,t])},ee=Wa.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as r}from"./liveblocks-
|
|
1
|
+
import{j as r}from"./liveblocks-y3zMPGKB.js";import ue from"./NotFoundScreen-DVcHaqdZ.js";import{a as k}from"./sentry-Jm7O5sR0.js";import{h as Y,u as ee,j as E,g as de,i as ke,N as pe,l as me,n as Se,o as b}from"./core-BwK6FGJd.js";import{PO as ae,PR as fe,PL as Te,ZE as ge,fE as te,a1N as se,Qb as g,Q3 as T,PI as he,QH as be,QA as Ee,a1O as ne,gg as oe,a1P as V,PE as Ie,PB as De,uS as Ce,uG as Ge,my as Ue,Q1 as _e,a1Q as ye,QU as Pe,PZ as Re,Qm as Be,Qj as xe,PU as we,Qg as Ae,Qf as je}from"./zeni-epic-state-BugXGzus.js";import{z as _,e5 as ve,$ as Le,O as Fe,c as G,a4 as ie,p as U,a8 as Ke,k as q,T as $e,e6 as Qe,X as M,ae as Ne}from"./index-DTZt8DRK.js";import{n as Oe}from"./mui-CxIkaR9n.js";import{u as Ze}from"./useInitialThreadRequest-BWyM3F-W.js";import{M as ze}from"./MobileAppDrawer-plEMRzd-.js";import{b as Ve,a as qe,u as Me,T as f,t as Xe,c as X,d as H,e as He}from"./TaskListScreen-CbiI2IGU.js";import"./recharts-CoAMGh71.js";import"./analytics-BTvt2K3S.js";import"./plaid-CQqwPn97.js";import"./dnd-Cbdx7tVf.js";import"./stripe-cKAAJElX.js";import"./lottie-BQlGSG2c.js";import"./lexical-DRfKJLK3.js";import"./pdf-DGzvSuDl.js";import"./utils-BVIT21dc.js";import"./InboxNotificationsProvider-ozJWRqdQ.js";import"./useTaskManagerAccess-DRF4urEw.js";import"./useAskAiCfoHostNavButtonProps-DzjGv8Xy.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]="dd5c79a9-1b48-42b1-86d0-48c3f50c66cb",e._sentryDebugIdIdentifier="sentry-dbid-dd5c79a9-1b48-42b1-86d0-48c3f50c66cb")}catch{}})();function Je(){const e=Y(),a=ee(),n=_.getSignedInUser(),{cannedResponses:c,fetchState:s,saveFetchState:u}=E((o=>o.cannedResponsesState)),d=k.useCallback((()=>{a(ae())}),[a]),m=k.useCallback(((o,I,D)=>{a(fe({name:o,content:I,cannedResponseId:D}))}),[a]),t=k.useCallback((o=>{a(Te({cannedResponseId:o}))}),[a]);if(n==null)throw Error("Can't access quick responses page without signing in...");return r.jsx(ve,{cannedResponses:c,isLoading:s==="In-Progress"||s==="Not-Started",isSaving:u==="In-Progress",onBackClick:()=>e(-1),onDelete:t,onFetch:d,onSave:m})}const F=e=>e?.taskState?.taskByID,v=(e,a)=>{const n=F(e);if(a!=null&&n!=null)return n[a]?.parentTaskId??void 0},We=ge([v,(e,a)=>{const n=v(e,a),c=F(e);if(n!=null&&c!=null)return c[n]?.name},(e,a)=>{const n=v(e,a),c=F(e);return n!=null&&c!=null&&c[n]!=null}],((e,a,n)=>{if(e!=null&&n===!0)return{id:e,name:a??""}}));let J,W=[];const Ye=me((function(e,a){const{location:n,taskGroupId:c}=a,s=ne(e,a.taskId),u=te(e),d=We(e,a.taskId),m=s.taskGroupId??c,t=m!=null?V(e.taskGroupState,m):void 0,o=_.getSignedInUser(),I=u.tenantId,D={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:I??""},B=se(e),{tenantEmailDomain:x}=u,y=s.recurringSourceTaskId,w=y!=null?`${M.appUrl}/${x}/tasks/${encodeURIComponent(y)}`:void 0;var h;return{taskDetailSelectorView:s,authParams:D,isZeniUser:_.isZeniUser(),userGroupList:((h=e.userGroupsState.userGroupByUserGroupId)!==J&&(J=h,W=Object.values(h)),W),isNewClicked:n.state?.message==="comingFromTaskListPage",filesEndPoint:Ne.fileMicroServiceBaseUrl,companyName:a.currentTenant.companyName,companyId:a.currentTenant.companyId,currentUrl:`${M.appUrl}${a.location.pathname}`,cannedResponses:e.cannedResponsesState.cannedResponses,isCannedResponsesLoading:e.cannedResponsesState.fetchState==="In-Progress",recurringSourceTaskUrl:w,tagListView:B,taskGroupName:m!=null&&t!=null&&t.isDefault===!1?t.name:void 0,taskGroupList:e.taskGroupViewState.taskGroupsIds.map((S=>V(e.taskGroupState,S))).filter((S=>S!=null&&!S.isDeleted)).map((S=>({id:S.id,name:S.name,isDefault:S.isDefault}))),subtasks:s.subtasks,parentTaskRef:d,subTaskCreateStatus:e.taskDetailState?.subTaskCreateStatus?.fetchState}}),(function(e,a){const{taskId:n,navigate:c,currentTenant:s,location:u,taskGroupId:d}=a,{tenantEmailDomain:m}=s;return{onSaveChangesToLocalStore:t=>{e(je({taskDetailLocalData:t,taskId:n}))},onSaveDetailClick:t=>{e(Ae(n,t??d))},onArchiveTaskClick:()=>{a.taskId!=null&&e(we(a.taskId))},onSnoozeTask:(t,o)=>{e(xe(t,o))},onUnsnoozeTask:t=>{e(Be(t))},onCreateSubtask:(t,o)=>{e(Re({...o,parentTaskId:t}))},onSubtaskUpdate:(t,o)=>{e(Pe({task:t,updates:o}))},onShowToast:t=>{e(oe(t))},onSubtaskRowClick:t=>{c(`/${m}/tasks/${t}`,{state:{pathnameStackToGoBack:U(u.state?.pathnameStackToGoBack,u.pathname)}})},onParentBreadcrumbClick:t=>{c(`/${m}/tasks/${t}`,{state:{pathnameStackToGoBack:U(u.state?.pathnameStackToGoBack,u.pathname)}})},onDismissClick:()=>{if(u.state?.message==="triggerBackClick"){const t=ie(u.state?.pathnameStackToGoBack),o=t.poppedPathname??"../../dashboard";c(o,{state:{pathnameStackToGoBack:t.newStack}})}else{const t=R(m),o=U(u.state?.pathnameStackToGoBack,u.pathname);c(t,{state:{pathnameStackToGoBack:o}})}e(ye({taskId:n}))},onDeleteTaskClick:()=>{e(_e(n))},updateFilesEntity:t=>{e(Ue({files:t}))},onDeleteFile:t=>{e(Ge(t))},onEditFileName:(t,o)=>{e(Ce(t,o.split(".")[0]))},onReloadTaskDetailPage:()=>{e(g(!1,n))},onCreateTagClick:t=>{e(De(t,n))},onDeleteTagClick:t=>{e(Ie(t,n))},onFetchCannedResponses:()=>{e(ae())},onManageTemplatesClick:()=>{c(`/${s.tenantEmailDomain}/tasks/quick-responses`)}}}))(Qe);function L(){const e=Y(),a=ee(),n=de(),c=Le(),{taskId:s,taskGroupId:u}=ke(),d=E((i=>te(i))),m=Ze(d?.companyId),{useFeatureGate:t}=Fe(),{isFeatureEnabled:o}=t(G.isTaskSnoozeEnabled),{isFeatureEnabled:I}=t(G.isTaskVisibilityEnabled),{isFeatureEnabled:D}=t(G.isTaskCannedResponsesEnabled),{isFeatureEnabled:B}=t(G.isTaskRecurringParentEnabled),{isFeatureEnabled:x}=t(G.isTaskGroupAssigneesEnabled),[y,w]=k.useState(!1),[h,S]=k.useState(!1),[K,re]=k.useState(!1),[$,A]=k.useState(!1),C=k.useRef(!1),P=E((i=>i.taskListState.updateTasksFetchState.fetchState)),Q=E((i=>se(i))),N=E((i=>i.taskGroupViewState.fetchState));k.useEffect((()=>{a(g(!1,s)),s!=null&&a(T(s))}),[a,s]);const O=_.getSignedInUser()?.userId,ce=k.useMemo((()=>{const i=[f.TASK_CREATED,f.TASK_UPDATED,f.TASKS_BULK_UPDATED,f.TASKS_BULK_DELETED],l=[...i,f.TASK_SNOOZE_RESURFACED];return[...Ve(d?.companyId,i),...qe(O,l)]}),[d?.companyId,O]);Me({events:ce,onSubscribed:()=>{s!=null&&(a(g(!0,s)),a(T(s)))},onEvent:(i,l)=>{if(s!=null)switch(i){case f.TASK_CREATED:{H(l)?.parent_task_id===s&&(a(g(!0,s)),a(T(s)));break}case f.TASK_UPDATED:{const p=H(l);if(p==null)break;p.task_id===s?(a(g(!0,s)),a(T(s))):p.parent_task_id===s&&a(T(s));break}case f.TASKS_BULK_UPDATED:{const p=X(l);if(p==null)break;p.task_ids.includes(s)&&a(g(!0,s)),a(T(s));break}case f.TASKS_BULK_DELETED:{const p=X(l);if(p==null)break;if(p.task_ids.includes(s)){a(oe({messageSection:"delete_task",messageText:"success",type:"success"})),d?.tenantEmailDomain!=null&&e(R(d.tenantEmailDomain));break}a(T(s));break}case f.TASK_SNOOZE_RESURFACED:{Xe(l)?.task_id===s&&a(g(!0,s));break}}}}),k.useEffect((()=>{h||Q.fetchState==="Completed"||(S(!0),a(he()))}),[h,a,Q.fetchState]),k.useEffect((()=>{K||N==="Completed"||(re(!0),a(be()))}),[K,a,N]);const le=k.useCallback((()=>{s!=null&&(C.current=!1,a(Ee([s],null,{isArchived:!1})),A(!0))}),[a,s]);k.useEffect((()=>{if($)if(P!=="In-Progress"){if(C.current){if(P==="Error")return A(!1),void(C.current=!1);if(P==="Completed"){A(!1),C.current=!1;const{tenantEmailDomain:i}=d;if(n.state?.message==="triggerBackClick"){const l=ie(n.state?.pathnameStackToGoBack);e(l.poppedPathname??"../../dashboard",{state:{pathnameStackToGoBack:l.newStack}})}else{const l=R(i);e(l,{state:{pathnameStackToGoBack:U(n.state?.pathnameStackToGoBack,n.pathname)}})}}}}else C.current=!0}),[$,P,d,n,e]);const Z=E((i=>ne(i,s))),j=Z.fetchState,z=_.getSignedInUser();if(z==null)throw Error("Can't access task detail page without signing in...");if(j==="Error"&&Z.error?.code===400){const{tenantEmailDomain:i}=d,l=R(i),p=U(n.state?.pathnameStackToGoBack,n.pathname);return r.jsx(pe,{to:l,state:{pathnameStackToGoBack:p}})}return r.jsxs(r.Fragment,{children:[j==="Completed"?r.jsx(Ke,{analytics:q,onLoad:i=>(l=>l.trackPageLoaded($e.Event.taskDetailPage))(i)}):null,r.jsxs(ea,{children:[r.jsx(ze,{isAppContentDrawerOpen:y,handleDrawerToggle:i=>{w(i)}}),r.jsx(Ye,{analytics:q,currentTenant:d,handleZeniLogoClick:()=>{c.toggle()},initialOpenThreadRequest:m,location:n,loggedInUser:z,navigate:e,taskGroupId:u,taskId:s,taskDetailFetchState:j,onUnarchiveTaskClick:le,isTaskSnoozeEnabled:o,isTaskVisibilityEnabled:I,isTaskCannedResponsesEnabled:D,isTaskRecurringParentEnabled:B,isTaskGroupAssigneesEnabled:x})]})]})}const ea=Oe.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as t}from"./liveblocks-y3zMPGKB.js";import i from"./NotFoundScreen-DVcHaqdZ.js";import{T as r}from"./TransactionDetailScreen-DA_15rvE.js";import"./sentry-Jm7O5sR0.js";import{n as a,o as e}from"./core-BwK6FGJd.js";import"./zeni-epic-state-BugXGzus.js";import"./recharts-CoAMGh71.js";import"./index-DTZt8DRK.js";import"./mui-CxIkaR9n.js";import"./analytics-BTvt2K3S.js";import"./plaid-CQqwPn97.js";import"./dnd-Cbdx7tVf.js";import"./stripe-cKAAJElX.js";import"./lottie-BQlGSG2c.js";import"./lexical-DRfKJLK3.js";import"./pdf-DGzvSuDl.js";import"./utils-BVIT21dc.js";import"./useAskAiCfoHostNavButtonProps-DzjGv8Xy.js";import"./decodeURIComponentSafe-iAavL6tS.js";import"./useInitialThreadRequest-BWyM3F-W.js";import"./routePaths-CPqwWbPN.js";import"./expenseAutomationHelper-MxNxlZNN.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new o.Error().stack;n&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[n]="bfd19369-9f5a-4875-9ff9-f0a50fe2624d",o._sentryDebugIdIdentifier="sentry-dbid-bfd19369-9f5a-4875-9ff9-f0a50fe2624d")}catch{}})();function z(){return t.jsxs(a,{children:[t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId",element:t.jsx(r,{})}),t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId/page-not-found",element:t.jsx(i,{})}),t.jsx(e,{path:"/:transactionTypeEncoded/:transactionId/vendor/create",element:t.jsx(r,{})}),t.jsx(e,{path:"/*",element:t.jsx(r,{})})]})}export{z as default};
|
package/dist/assets/{TransactionDetailScreen-C_Kji4P1.js → TransactionDetailScreen-DA_15rvE.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as C}from"./liveblocks-
|
|
1
|
+
import{j as C}from"./liveblocks-y3zMPGKB.js";import{a as i}from"./sentry-Jm7O5sR0.js";import{u as N,k as sn,j as g,s as ge,g as ke,h as Ce,i as Ae,N as cn,l as rn}from"./core-BwK6FGJd.js";import{pu as Ie,fE as ee,gU as ln,Ut as dn,oA as un,oa as mn,Du as se,bn as pn,de as Re,bq as _e,sO as Y,Vz as Q,WH as Pe,WI as le,VZ as we,m9 as Fe,WJ as Ue,W2 as de,W3 as ue,m_ as xe,R_ as me,WD as G,m3 as Le,m1 as Oe,md as fn,ph as hn,WK as Sn,WL as yn,Dl as K,m8 as Ve,Rj as Be,cm as Tn,dk as bn,WM as gn,WC as In,WN as vn,WO as En,WP as Dn,WQ as kn,Dh as Cn,WR as An,WS as Rn,WT as _n,WU as Pn,WV as wn,mc as Fn,WW as Un,WX as xn,WE as Ln,WY as On,WZ as Vn,W_ as Bn,Rd as Wn,R3 as Nn,Rs as zn,me as Mn,R$ as ve,pm as jn}from"./zeni-epic-state-BugXGzus.js";import{O as Z,c as A,k as $,b2 as Gn,z as We,E as $n,a1 as qn,b3 as Hn,ab as Yn,a4 as ce,U as Qn,b4 as Zn,p as ie,as as Jn,b5 as Kn,b6 as Xn,b7 as et,ae as nt,av as oe}from"./index-DTZt8DRK.js";import{n as tt,S as at,D as ot}from"./mui-CxIkaR9n.js";import{u as st}from"./useAskAiCfoHostNavButtonProps-DzjGv8Xy.js";import{d as Ne}from"./decodeURIComponentSafe-iAavL6tS.js";import{u as ct}from"./useInitialThreadRequest-BWyM3F-W.js";import{h as ze,c as Me,g as it,e as rt}from"./routePaths-CPqwWbPN.js";import{u as lt}from"./expenseAutomationHelper-MxNxlZNN.js";import{v as dt}from"./utils-BVIT21dc.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new n.Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="8263753f-e4de-4f92-9144-0c00fdc7e80e",n._sentryDebugIdIdentifier="sentry-dbid-8263753f-e4de-4f92-9144-0c00fdc7e80e")}catch{}})();function ut(n=!0){const e=N(),o=sn(),{useFeatureGate:t}=Z(),{isFeatureEnabled:a}=t(A.isCreateTransferEntryFromExpenseEnabled);i.useEffect((()=>{if(!n||a!==!0)return;const s=c=>{const u=o.getState().createTransferEntryState.transferAccountsByType[c].fetchState;return u!=="In-Progress"&&u!=="Completed"};s("transferEntryEligible")&&e(Ie({kind:"transferEntryEligible"})),s("creditCardOnlyEligible")&&e(Ie({kind:"creditCardOnlyEligible"}))}),[n,a,e,o])}function mt(n,e){const o=(function(){const u=N(),[h,y]=i.useState(!1),[f,d]=i.useState(null),[r,S]=i.useState(null),{useDynamicConfig:I}=Z(),{configValue:k,isDynamicConfigLoading:T}=I("transaction_categorization_config"),b=!T&&k?.capitalization_enabled===!0,v=g((l=>ee(l))),R=v.companyId,q=g((l=>ln(l.companyState,v.companyId)?.company.companyLocaleInfo?.currencySymbol??"$")),{capitalizableAccounts:U,capitalizableAccountOverrides:_,dismissedAccounts:P}=g((l=>{const E=l.tenantState.currentTenantId,D=E!=null?l.tenantState.tenantsById[E]:void 0;return{capitalizableAccounts:D?.capitalizableAccounts??null,capitalizableAccountOverrides:D?.capitalizableAccountOverrides??null,dismissedAccounts:D?.capitalizationOnboardingDismissedAccounts??null}}),ge),x=i.useRef(U);x.current=U;const w=i.useRef(_);w.current=_;const L=i.useRef(P);L.current=P;const O=g((l=>dn(l.accountState)),ge),H=i.useMemo((()=>{const l={};for(const E of O)E.accountId!=null&&E.accountName!=null&&(l[E.accountId]=E.accountName);return l}),[O]),z=r!=null?H[r]??null:null,V=i.useCallback((l=>{if(!b)return;const E=x.current;if(E==null)return;const D=E.accounts??[],j=new Set(l),J=w.current??{},ne=L.current;for(const B of D)if(j.has(B.accountId)&&J[B.accountId]==null&&ne?.[B.accountId]==null)return d(B.classificationType),S(B.accountId),void y(!0)}),[b]),M=i.useCallback(((l,E)=>{u(un(R,l,E,!0)),y(!1),d(null),S(null)}),[u,R]),p=i.useCallback((()=>{r!=null&&(u(mn(R,r)),y(!1),d(null),S(null))}),[u,R,r]);return{showPopup:h&&b,popupType:f,popupAccountId:r,popupAccountName:z,currencySymbol:q,checkAndShowPopup:V,handleSubmit:M,handleDismiss:p}})(),t=i.useRef(void 0),a=i.useRef([]),s=i.useRef(o.checkAndShowPopup);s.current=o.checkAndShowPopup;const c=i.useRef(e);return c.current=e,i.useEffect((()=>{n==="In-Progress"&&(a.current=c.current()),n==="Completed"&&t.current==="In-Progress"&&a.current.length>0&&(s.current(a.current),a.current=[]),t.current=n}),[n]),o}const W=new Map,Ee=(n,e,o)=>`${n}|${e??""}|${o}`,X=(n,e)=>{const[o,t]=n.shownRecommendations;return{recommendationFor:n.dimension,recommendation:o?.name??"",recommendationSource:o?.engine??null,recommendationConfidencePercentage:o?.confidencePercentage??null,alternativeRecommendation:t?.name??null,alternativeRecommendationSource:t?.engine??null,alternativeRecommendationConfidencePercentage:t?.confidencePercentage??null,selectedValue:n.selected.name,numberOfRecommendations:n.shownRecommendations.length,transactionId:e,lineId:n.lineId??null}},re=(n,e,o)=>({transactionId:e,lineId:n.lineId,dimension:n.dimension,outcome:n.outcome,selected:{name:n.selected.name,id:n.selected.id},matchedSource:n.matchedSource,matchedRank:n.matchedRank,topPickSource:n.topPickSource,shownRecommendations:n.shownRecommendations.map((t=>({source:t.source,rank:t.rank,value:{name:t.name,id:t.id},confidence:t.confidencePercentage!=null?t.confidencePercentage/100:void 0}))),...o}),je=(n,e,o)=>{$.trackRecommendationFeedbackRetracted(X(e,o)),n(se(re(e,o,{outcome:"retracted"})))},Lt=(n,e)=>{const o=new Set(e.map(String));W.forEach(((t,a)=>{o.has(t.transactionId)&&(W.delete(a),je(n,t.feedback,t.transactionId))}))},Ot=n=>{const e=new Set(n.map(String));W.forEach(((o,t)=>{e.has(o.transactionId)&&W.delete(t)}))};function pt(n){const e=N(),[o,t]=i.useState(null),{isEnabled:a,fallbackTransactionId:s}=n,c=i.useCallback((f=>f.transactionId??s??""),[s]),u=i.useCallback((f=>{if(!a)return;const d=c(f);if(d==="")return;if(f.outcome!=="accepted")return void t(f);((S,I,k,T)=>{const b=Ee(I,k,T),v=W.get(b);return v!=null&&(W.delete(b),je(S,v.feedback,v.transactionId),!0)})(e,d,f.lineId,f.dimension)||(((S,I)=>{$.trackRecommendationAccepted(X(S,I))})(f,d),e(se(re(f,d,{}))))}),[a,c,e]),h=i.useCallback((f=>{if(o==null)return;const d=c(o);((r,S,I)=>{$.trackRecommendationFeedbackSubmitted({...X(r,S),feedbackReason:I})})(o,d,f),e(se(re(o,d,{reasonText:f,skipped:!1}))),((r,S)=>{W.set(Ee(S,r.lineId,r.dimension),{feedback:r,transactionId:S})})(o,d),t(null)}),[o,c,e]),y=i.useCallback((()=>{var f,d;o!=null&&(f=o,d=c(o),$.trackRecommendationFeedbackSkipped(X(f,d)),t(null))}),[o,c]);return{onRecommendationSelection:u,popup:o!=null?C.jsx(Gn,{feedback:o,onSubmit:h,onSkip:y}):null}}const pe=()=>{const n=We.getSignedInUser(),{useFeatureGate:e}=Z(),{isFeatureEnabled:o}=e(A.isChainOfThoughtEnabled);return i.useMemo((()=>pn(n)&&o),[n,o])};function Ge(n){if(n!=null){if("customer"in n&&n.customer!=null){const{customer:e}=n;return{id:e.id,name:e.name,logo:e.logo,type:"customer",zeniId:e.id,qboId:e.id}}if("vendor"in n&&n.vendor!=null){const{vendor:e}=n;return{id:e.id,name:e.name,logo:e.logo,type:"vendor",zeniId:e.id,qboId:e.id}}}}function Vt(n,e){const o=N(),{useFeatureGate:t}=Z(),a=g((p=>ee(p))),s=a.userRole.includes("charge_card_user")||a.userRole.includes("charge_card_admin"),c=a.userRole!=null&&Re(a.userRole),u=a.userRole!=null&&_e(a.userRole),{isFeatureEnabled:h}=t(A.isVendorBulkUpdateOnTransactionEnabled),{isFeatureEnabled:y}=t(A.isExpenseAutomationEnabled),f=pe(),d=i.useMemo((()=>({id:n,type:Y(e)})),[n,e]),r=g((p=>Q(p,d))),S=r?.transactionDetailUpdateStatus?.fetchState,I=r?.transactionDetailLocalData?.lineItemById,k=g((p=>{const l=Q(p,d)?.transactionDetailLocalData.vendorUpdates?.id;return l==null?"Not-Started":p.transactionVendorViewState.editVendorStateById[l]?.saveStatus.fetchState??"Not-Started"})),T=i.useMemo((()=>r?.fetchState==="Completed"?Ge(r?.transaction):void 0),[r?.fetchState,r?.transaction]),b=g((p=>{if(T!=null)return Pe(p.customerIncomeState,p.vendorExpenseState,p.trendState,T,"month")})),v=g((p=>le(p))),R=g((p=>{if(T!=null)return we(p.trendWithTransactionsState,T,"TransactionDetail")})),q=a.company?.companyInfo.firstMonthOfFY??1,U=g((p=>Fe(p.accountState,p.accountListState,"accountList"))),[_,P]=i.useState(!1),[x,w]=i.useState(!1),[L,O]=i.useState(!1);i.useEffect((()=>{P(!1),w(!1),O(!1)}),[n,e]);const H=i.useCallback((()=>{P(!1),w(!1)}),[]),[z,V]=i.useState(!1),M=R?.selectedPeriod?.timePeriod;return i.useEffect((()=>{L||r==null||r.transaction==null||(o(Ue({id:r.transaction.id,type:r.transaction.type})),O(!0)),T!=null&&(!s||c&&u===!1)&&(_?x||b==null||(w(!0),o(me(T,"TransactionDetail",{timeframe:"month",timePeriod:M??b}))):(o(de()),o(ue()),P(!0),o(xe(T))))}),[o,L,r?.fetchState,r?.transaction,T,s,c,u,_,x,b,M]),i.useEffect((()=>{v.newVendorState?.vendorDetailLocalData?.vendorName!=null?V(!0):V(!1)}),[v.newVendorState?.vendorDetailLocalData?.vendorName]),i.useEffect((()=>()=>{o(G("common"))}),[o]),{currentTenant:a,loggedInUserHasCardUserOrAdminRole:s,isUserHasDashboardAccess:c,isUserHasInvestorOrBankerAccess:u,isVendorBulkUpdateOnTransactionEnabled:h,isExpenseAutomationEnabled:y,isChainOfThoughtEnabled:f,selectedTransaction:d,transactionDetail:r,rawDetailSaveStatus:S,rawDetailLineItemById:I,vendorSaveStatus:k,tranEntity:T,defaultTrendTransactionTimePeriod:b,vendorViewDetails:v,uiState:R,firstMonthOfFY:q,uncategorizedAccounts:U,resetTrendIsFetchedStates:H,isCreateVendorDrawerOpen:z,setIsCreateVendorDrawerOpen:V}}const ft={overlayWidth:new Yn(100,100,58)},ht=({isOpen:n,onSaveVendor:e,onSaveSuccess:o,onCancel:t,vendorViewDetails:a})=>{const s=$n(),c=qn(),u=N(),h=g((d=>le(d))),y=()=>{t()},f={vendorDetailView:a??h,onSaveSuccess:()=>{u(Oe()),u(fn("Not-Started")),o()},onSaveVendor:e,onCancelClick:y,saveVendorDetailLocalData:d=>{u(Le({vendorId:void 0,localData:d}))}};return C.jsx(ot,{anchor:"right",open:n,PaperProps:{style:{width:ft.overlayWidth.valuePercentage(c),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.4,cursor:"pointer"}}},onClose:y,children:C.jsx(St,{onClick:d=>d.stopPropagation(),children:C.jsx(Hn,{...f})})})},St=tt(at)`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-DRsJ0YIJ.js";import{h as Q,g as N,u as W,i as X,j as g,N as U,l as Z,n as Me,o as C}from"./core-DGLzDXWl.js";import{fE as H,u5 as ee,le as p,eD as te,RR as Se,br as pe,$u as Be,l_ as ae,V$ as ne,$v as fe,$w as Le,bE as k,RN as he,$x as Fe,$y as Te,$z as Oe,RQ as ge,$A as Ge,$B as De,$C as $e,$D as Ie,$E as we,$F as ze,$G as ye,T1 as Re}from"./zeni-epic-state-Dm2vDWXH.js";import{O as ce,c as J,k as F,G as ke,de as oe,p as z,a4 as se,aq as _e,B as Ve}from"./index-CVAekD3p.js";import"./mui-BuJ3P0FU.js";import{a as y}from"./sentry-G4ZANa8Z.js";import{w as ie}from"./withTransactionSidePanel-DGZchFy0.js";import{p as re,c as de}from"./routePaths-nMSO0ytp.js";import{w as qe}from"./utils-Bz8wuSWM.js";import{d as j}from"./decodeURIComponentSafe-k3ZAUeWI.js";import{Z as Je}from"./ZeniAccountStatementScreen-Bq5EWwlR.js";import"./recharts-CJlXFxhv.js";import"./analytics-CvsRIk3B.js";import"./plaid-i7y7YD6O.js";import"./dnd-SnD389s6.js";import"./stripe-cKAAJElX.js";import"./lottie-DEqUWUd5.js";import"./lexical-CMBMntF_.js";import"./pdf-B_v4zyN7.js";import"./useAskAiCfoHostNavButtonProps-BHyPLCCo.js";import"./TransactionDetailScreen-C_Kji4P1.js";import"./useInitialThreadRequest-DtdvMhZQ.js";import"./expenseAutomationHelper-DWDIPthN.js";import"./stripSplatSuffix-BTaD_7hZ.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]="e5a31b5f-00ae-4131-8734-63417109b935",a._sentryDebugIdIdentifier="sentry-dbid-e5a31b5f-00ae-4131-8734-63417109b935")}catch{}})();const Ne=["uncategorized-income","uncategorized-expense","miscategorized-income","miscategorized-expense","missing-receipts"],q=a=>qe(a),Ye=()=>{const{common:a,uncategorizedTransactionList:e}=ke.getLocalizedStrings();return{amount:e.missingReceipt.missingReceiptMinAmount.amount,currencyCode:a.currency.currencyCode,currencySymbol:a.currency.currencySymbol}},Ue=Z((function(a,e){const t=Be(a.transactionState,a.transactionListState,e.selectedAccount.period,e.selectedAccount.timeframe,q(e.selectedAccount.tranListType));return{title:e.selectedAccount.title,subTitle:e.selectedAccount.subTitle,timeframe:e.selectedAccount.timeframe,timePeriod:ne(e.selectedAccount.period),dataAvailableForPeriod:e.dataAvailableForPeriod,report:t,currentScrollYOffset:t.uiState?.scrollYOffset??0,isAccountingClassesEnabled:ae(a)}}),(function(a,e){return{onBackClick:()=>{const t=se(e.location.state?.pathnameStackToGoBack),n=t.poppedPathname??"../../";e.navigate(n,{state:{pathnameStackToGoBack:t.newStack}})},onTimePeriodChange:(t,n,c)=>{e.closeSidePanel?.();const o=q(e.selectedAccount.tranListType),d=Qe(t,n,c,o,e.bookCloseDate);F.trackTransactionList(void 0,void 0,void 0,e.selectedAccount.title,void 0,!0),a(fe({uiState:{dateRange:d},type:q(e.selectedAccount.tranListType)})),a(Se(o,p(d),!1,o==="missingReceipts"?Ye():void 0)),e.onSelectedTimePeriodChange(p(d))},onTransactionItemClick:t=>{if(e.openTransactionPanel)return void e.openTransactionPanel(t.id,t.type);const n=de(t,e.tenantEmailDomain),c=z(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(n,{state:{pathnameStackToGoBack:c}})},onTransactionListScroll:t=>{a(fe({uiState:{scrollYOffset:t},type:q(e.selectedAccount.tranListType)}))}}}))(oe),V=ie((function({...a}){const e=Q(),t=N(),n=W(),c=t.pathname.split("/").find((l=>Ne.includes(l))),o=c??"uncategorized-expense",{tenantEmailDomain:d}=X(),{accountType:Y,title:b,subTitle:A}=He(o),f="month",T=g((l=>H(l))),v=T.company?.companyInfo.firstMonthOfFY??1,{useFeatureGate:S}=ce(),{isFeatureEnabled:h}=S(J.isProjectsTransactionsEnabled),I=g((l=>ee(l)))&&h,{dataAvailable:x,initialTimeframeTick:O}=Ke(o,v,T.bookCloseDate),[E,G]=y.useState(!1),[P,$]=y.useState(void 0),u=y.useMemo((()=>{const l=p(O);return{tranListType:o,accountType:te(Y),title:b,subTitle:A,timeframe:f,period:l}}),[o,f,Y,x]);y.useEffect((()=>{if(!E&&u!=null){G(!0),F.trackTransactionList(void 0,void 0,void 0,u.title);const l=q(u.tranListType);n(Se(l,u.period,!0,l==="missingReceipts"?Ye():void 0))}}),[E,u,n]);let M=u;return u!=null&&P!=null&&(M={...u,period:P}),c==null||M==null?s.jsx(U,{to:"../"}):s.jsx(Ue,{firstMonthOfFY:v,tenantEmailDomain:d,location:t,useFixedPeriod:{timeframe:"month",numberOfPeriods:12},dataAvailableForPeriod:x,navigate:e,showProjectField:I,selectedAccount:M,referrerType:o,bookCloseDate:T.bookCloseDate,onSelectedTimePeriodChange:l=>$(l),...a})})),He=a=>{let e="",t="";const n=ke.getLocalizedStrings();switch(a){case"uncategorized-income":e="income",t=n.uncategorizedTransactionList.income.title;break;case"uncategorized-expense":e="expenses",t=n.common.texts.uncategorizedExpenses;break;case"miscategorized-expense":e="expenses",t=n.miscategorizedTransactionList.expense.title;break;case"miscategorized-income":e="income",t=n.miscategorizedTransactionList.income.title;break;case"missing-receipts":t=n.common.texts.receipts}return{accountType:e,title:t,subTitle:""}},Ke=(a,e,t)=>{const n=pe();let c=pe().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:re(5,e),initialTimeframeTick:{startDate:c,endDate:n}}},Qe=(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},We=Z((function(a,e){const t=Fe(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:ne(e.selectedAccount.period),dataAvailableForPeriod:re(5,e.firstMonthOfFY),report:t,currentScrollYOffset:t.uiState?.scrollYOffset??0,isAccountingClassesEnabled:ae(a)}}),(function(a,e){return{onBackClick:()=>{const t=se(e.location.state?.pathnameStackToGoBack),n=t.poppedPathname??be();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)}`),F.trackTransactionList(e.selectedAccount.accountId,void 0,e.referrerType,e.selectedAccount.title,void 0,!0),a(Te({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,classId:e.selectedAccount.classId,uiState:{dateRange:o}})),a(he(e.selectedAccount.accountId,e.selectedAccount.accountType,e.selectedAccount.classId,p(o))),e.onSelectedTimePeriodChange(p(o))},onTransactionItemClick:t=>{if(e.openTransactionPanel)return void e.openTransactionPanel(t.id,t.type);const n=de(t,e.tenantEmailDomain),c=z(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(n,{state:{pathnameStackToGoBack:c}})},onTransactionListScroll:t=>{a(Te({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,classId:e.selectedAccount.classId,uiState:{scrollYOffset:t}}))}}}))(oe),Xe=ie((function({referrerType:a,...e}){const t=Q(),n=N(),c=W(),{tenantEmailDomain:o,accountTypeEncoded:d,accountIdEncoded:Y,classIdEncoded:b,timeframe:A,startDate:f,endDate:T,titleEncoded:v}=X(),S=j(d??""),h=j(Y??""),I=j(b??""),x=j(v??""),O=g((r=>Le(r.transactionListState,h,S,I))),[E,G]=y.useState(!1),[P,$]=y.useState(void 0),u=g((r=>H(r))),M=u.company?.companyInfo.firstMonthOfFY??1,{useFeatureGate:l}=ce(),{isFeatureEnabled:m}=l(J.isProjectsTransactionsEnabled),w=g((r=>ee(r)))&&m;let i;const L=Ze(S,h,I,A,f,T,x);if(L){const r={startDate:k(f,"YYYY-MM-DD"),endDate:k(T,"YYYY-MM-DD")},_=et(O?.dateRange,r);i={accountId:h,accountType:te(S),classId:I,title:x,timeframe:A,period:_}}y.useEffect((()=>{E||i==null||(G(!0),F.trackTransactionList(i.accountId,void 0,a,i.title),c(he(i.accountId,i.accountType,i.classId,i.period)))}),[E,i,c]);let B=i;i!=null&&P!=null&&(B={...i,period:P});const R=[d,Y,b,A,f,T,v].filter((r=>r!=null));return L&&B!=null?s.jsx(We,{firstMonthOfFY:M,tenantEmailDomain:o,location:n,navigate:t,showProjectField:w,selectedAccount:B,referrerType:a,onSelectedTimePeriodChange:r=>$(r),...e}):s.jsx(U,{to:be(R.length)})})),be=(a=7)=>{let e="../";for(let t=0;t<a;t++)e=`${e}../`;return e},Ze=(a,e,t,n,c,o,d)=>a!=null&&e!=null&&t!=null&&n!=null&&c!=null&&o!=null&&(n==="month"||n==="quarter")&&k(c,"YYYY-MM-DD").isValid()&&k(o,"YYYY-MM-DD").isValid()&&d!=null,et=(a,e)=>a!=null&&a.endDate.isSame(e.endDate,"day")&&a.startDate.isBefore(e.startDate,"day")?p(a):p(e),tt=Z((function(a,e){const t=Ge(a.transactionState,a.transactionListState,e.selectedAccount.accountId,e.selectedAccount.accountType,e.selectedAccount.projectId,e.selectedAccount.timeframe,e.selectedAccount.period);return{accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,title:e.selectedAccount.title,timeframe:e.selectedAccount.timeframe,timePeriod:ne(e.selectedAccount.period),dataAvailableForPeriod:re(5,e.firstMonthOfFY),report:t,currentScrollYOffset:t.uiState?.scrollYOffset??0,isAccountingClassesEnabled:ae(a)}}),(function(a,e){return{onBackClick:()=>{const t=se(e.location.state?.pathnameStackToGoBack),n=t.poppedPathname??ve();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)}`),F.trackTransactionList(e.selectedAccount.accountId,void 0,e.referrerType,e.selectedAccount.title,void 0,!0),a(De({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,projectId:e.selectedAccount.projectId,uiState:{dateRange:o}})),a(ge(e.selectedAccount.accountId,e.selectedAccount.accountType,e.selectedAccount.projectId,p(o))),e.onSelectedTimePeriodChange(p(o))},onTransactionItemClick:t=>{if(e.openTransactionPanel)return void e.openTransactionPanel(t.id,t.type);const n=de(t,e.tenantEmailDomain),c=z(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,projectId:e.selectedAccount.projectId,uiState:{scrollYOffset:t}}))}}}))(oe),at=ie((function({referrerType:a,...e}){const t=Q(),n=N(),c=W(),{tenantEmailDomain:o,accountTypeEncoded:d,accountIdEncoded:Y,projectIdEncoded:b,timeframe:A,startDate:f,endDate:T,titleEncoded:v}=X(),S=j(d??""),h=j(Y??""),I=j(b??""),x=j(v??""),O=g((r=>Oe(r.transactionListState,h,S,I))),[E,G]=y.useState(!1),[P,$]=y.useState(void 0),u=g((r=>H(r))),M=u.company?.companyInfo.firstMonthOfFY??1,{useFeatureGate:l}=ce(),{isFeatureEnabled:m}=l(J.isProjectsTransactionsEnabled),w=g((r=>ee(r)))&&m;let i;const L=nt(S,h,I,A,f,T,x);if(L){const r={startDate:k(f,"YYYY-MM-DD"),endDate:k(T,"YYYY-MM-DD")},_=ct(O?.dateRange,r);i={accountId:h,accountType:te(S),projectId:I,title:x,timeframe:A,period:_}}y.useEffect((()=>{E||i==null||(G(!0),F.trackTransactionList(i.accountId,void 0,a,i.title),c(ge(i.accountId,i.accountType,i.projectId,i.period)))}),[E,i,c]);let B=i;i!=null&&P!=null&&(B={...i,period:P});const R=[d,Y,b,A,f,T,v].filter((r=>r!=null));return L&&B!=null?s.jsx(tt,{firstMonthOfFY:M,tenantEmailDomain:o,location:n,navigate:t,showProjectField:w,selectedAccount:B,referrerType:a,onSelectedTimePeriodChange:r=>$(r),...e}):s.jsx(U,{to:ve(R.length)})})),ve=(a=7)=>{let e="../";for(let t=0;t<a;t++)e=`${e}../`;return e},nt=(a,e,t,n,c,o,d)=>a!=null&&e!=null&&t!=null&&n!=null&&c!=null&&o!=null&&(n==="month"||n==="quarter")&&k(c,"YYYY-MM-DD").isValid()&&k(o,"YYYY-MM-DD").isValid()&&d!=null,ct=(a,e)=>a!=null&&a.endDate.isSame(e.endDate,"day")&&a.startDate.isBefore(e.startDate,"day")?p(a):p(e),ot=Z((function(a,e){const t=we(a.transactionState,a.transactionListState,e.selectedAccount.accountId,e.selectedAccount.accountType,e.selectedAccount.timeframe,e.selectedAccount.period),n=t.account?.coaId,c=e.isConnectedAccountProviderUnit&&ze(n??"");return{accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,title:e.selectedAccount.title,timeframe:e.selectedAccount.timeframe,timePeriod:ne(e.selectedAccount.period),dataAvailableForPeriod:re(5,e.firstMonthOfFY),report:t,currentScrollYOffset:t.uiState?.scrollYOffset??0,showStatementPageIcon:c,isAccountingClassesEnabled:ae(a)}}),(function(a,e){return{onBackClick:()=>{const t=se(e.location.state?.pathnameStackToGoBack),n=t.poppedPathname??Ee();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)}`),F.trackTransactionList(e.selectedAccount.accountId,void 0,e.referrerType,e.selectedAccount.title,void 0,!0),a(ye({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,uiState:{dateRange:o}})),a(Ie(e.selectedAccount.accountId,e.selectedAccount.accountType,p(o))),e.onSelectedTimePeriodChange(p(o))},onTransactionItemClick:t=>{if(e.openTransactionPanel)return void e.openTransactionPanel(t.id,t.type);const n=de(t,e.tenantEmailDomain),c=z(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(n,{state:{pathnameStackToGoBack:c}})},onTransactionListScroll:t=>{a(ye({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,uiState:{scrollYOffset:t}}))},onStatementPageIconClick:()=>{const t=rt(e.tenantEmailDomain),n=z(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(t,{state:{pathnameStackToGoBack:n}})}}}))(oe),Ae=ie((function({referrerType:a,...e}){const t=Q(),n=N(),c=W(),{tenantEmailDomain:o,accountTypeEncoded:d,accountIdEncoded:Y,timeframe:b,startDate:A,endDate:f,titleEncoded:T,excludeSubAccounts:v}=X(),S=j(d??""),h=j(Y??""),I=j(T??""),x=!(v!=null&&v==="exclude_subaccounts"),O=g((D=>$e(D.transactionListState,h,S))),[E,G]=y.useState(!1),[P,$]=y.useState(void 0),u=g((D=>H(D))),M=u.company?.featuresActivationInfo.connectedAccountProvider==="unit",l=u.company?.companyInfo.firstMonthOfFY??1;let m;const w=st(S,h,b,A,f,I);if(w){const D={startDate:k(A,"YYYY-MM-DD"),endDate:k(f,"YYYY-MM-DD")},le=it(O?.dateRange,D);m={accountId:h,accountType:te(S),title:I,timeframe:b,period:le}}let i=m;m!=null&&P!=null&&(i={...m,period:P});const{useFeatureGate:L}=ce(),{isFeatureEnabled:B}=L(J.isTransactionCommentingEnabled),R=y.useCallback(((D,le)=>{if(o==null)return;const me=D.url.split(`/${o}/`)[1];if(me==null)return;const[je,xe]=me.split("?"),K=new URLSearchParams(xe??"");K.set("view","full"),K.set("thread_id",le),K.set("entity_type",D.entityType);const Ce=z(n.state?.pathnameStackToGoBack,n.pathname);t(`/${o}/${je}?${K.toString()}`,{state:{pathnameStackToGoBack:Ce}})}),[t,o,n.state,n.pathname]),{isFeatureEnabled:r}=L(J.isProjectsTransactionsEnabled),_=g((D=>ee(D)))&&r,{areTenantIdsInSync:ue}=_e();y.useEffect((()=>{!E&&m!=null&&ue&&(G(!0),F.trackTransactionList(m.accountId,void 0,a,m.title),c(Ie(m.accountId,m.accountType,m.period,void 0,!1,x)))}),[E,m,c,ue]);const Pe=[d,Y,b,A,f,T].filter((D=>D!=null));return w&&i!=null?s.jsx(ot,{firstMonthOfFY:l,tenantEmailDomain:o,location:n,navigate:t,isConnectedAccountProviderUnit:M,isTransactionCommentingEnabled:B,onCommentThreadClick:R,showProjectField:_,selectedAccount:i,referrerType:a,onSelectedTimePeriodChange:D=>$(D),...e}):s.jsx(U,{to:Ee(Pe.length)})})),Ee=(a=7)=>{let e="../";for(let t=0;t<a;t++)e=`${e}../`;return e},st=(a,e,t,n,c,o)=>a!=null&&e!=null&&t!=null&&n!=null&&c!=null&&(t==="month"||t==="quarter")&&k(n,"YYYY-MM-DD").isValid()&&k(c,"YYYY-MM-DD").isValid()&&o!=null,it=(a,e)=>a!=null&&a.endDate.isSame(e.endDate,"day")&&a.startDate.isBefore(e.startDate,"day")?p(a):p(e),rt=a=>`/${a}/transactions/${Re}/statements`;function Bt(){const a=N().state?.referrer,e=g((n=>n.expenseAutomationViewState.selectedPeriodByTenantId))[g((n=>H(n))).tenantId],t=Ve();return s.jsxs(Me,{children:[s.jsx(C,{path:"/:accountTypeEncoded/:accountIdEncoded/:timeframe/:startDate/:endDate/:titleEncoded/:excludeSubAccounts/*",element:s.jsx(Ae,{referrerType:a})}),s.jsx(C,{path:"/zeni-clearing-account/statements",element:s.jsx(Je,{})}),s.jsx(C,{path:"/*",element:s.jsx(Ae,{referrerType:a})}),s.jsx(C,{path:"/uncategorized-income/*",element:s.jsx(V,{})}),s.jsx(C,{path:"/uncategorized-expense/*",element:s.jsx(V,{})}),s.jsx(C,{path:"/miscategorized-income/*",element:s.jsx(V,{})}),s.jsx(C,{path:"/miscategorized-expense/*",element:s.jsx(V,{})}),s.jsx(C,{path:"/missing-receipts/*",element:t?s.jsx(U,{to:`../../month_end_close_checks/review/missing_receipts/${e.month}-${e.year}`}):s.jsx(V,{})}),s.jsx(C,{path:"/by-class/:accountTypeEncoded/:accountIdEncoded/:classIdEncoded/:timeframe/:startDate/:endDate/:titleEncoded/*",element:s.jsx(Xe,{referrerType:a})}),s.jsx(C,{path:"/by-project/:accountTypeEncoded/:accountIdEncoded/:projectIdEncoded/:timeframe/:startDate/:endDate/:titleEncoded/*",element:s.jsx(at,{referrerType:a})})]})}export{Bt as default};
|
|
1
|
+
import{j as s}from"./liveblocks-y3zMPGKB.js";import{h as Q,g as N,u as W,i as X,j as g,N as U,l as Z,n as Me,o as C}from"./core-BwK6FGJd.js";import{fE as H,u5 as ee,le as p,eD as te,RR as Se,br as pe,$u as Be,l_ as ae,V$ as ne,$v as fe,$w as Le,bE as k,RN as he,$x as Fe,$y as Te,$z as Oe,RQ as ge,$A as Ge,$B as De,$C as $e,$D as Ie,$E as we,$F as ze,$G as ye,T1 as Re}from"./zeni-epic-state-BugXGzus.js";import{O as ce,c as J,k as F,G as ke,de as oe,p as z,a4 as se,aq as _e,B as Ve}from"./index-DTZt8DRK.js";import"./mui-CxIkaR9n.js";import{a as y}from"./sentry-Jm7O5sR0.js";import{w as ie}from"./withTransactionSidePanel-Cd_M2p_z.js";import{p as re,c as de}from"./routePaths-CPqwWbPN.js";import{w as qe}from"./utils-BVIT21dc.js";import{d as j}from"./decodeURIComponentSafe-iAavL6tS.js";import{Z as Je}from"./ZeniAccountStatementScreen-CuxmtWXH.js";import"./recharts-CoAMGh71.js";import"./analytics-BTvt2K3S.js";import"./plaid-CQqwPn97.js";import"./dnd-Cbdx7tVf.js";import"./stripe-cKAAJElX.js";import"./lottie-BQlGSG2c.js";import"./lexical-DRfKJLK3.js";import"./pdf-DGzvSuDl.js";import"./useAskAiCfoHostNavButtonProps-DzjGv8Xy.js";import"./TransactionDetailScreen-DA_15rvE.js";import"./useInitialThreadRequest-BWyM3F-W.js";import"./expenseAutomationHelper-MxNxlZNN.js";import"./stripSplatSuffix-nQAZVh5Z.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]="e5a31b5f-00ae-4131-8734-63417109b935",a._sentryDebugIdIdentifier="sentry-dbid-e5a31b5f-00ae-4131-8734-63417109b935")}catch{}})();const Ne=["uncategorized-income","uncategorized-expense","miscategorized-income","miscategorized-expense","missing-receipts"],q=a=>qe(a),Ye=()=>{const{common:a,uncategorizedTransactionList:e}=ke.getLocalizedStrings();return{amount:e.missingReceipt.missingReceiptMinAmount.amount,currencyCode:a.currency.currencyCode,currencySymbol:a.currency.currencySymbol}},Ue=Z((function(a,e){const t=Be(a.transactionState,a.transactionListState,e.selectedAccount.period,e.selectedAccount.timeframe,q(e.selectedAccount.tranListType));return{title:e.selectedAccount.title,subTitle:e.selectedAccount.subTitle,timeframe:e.selectedAccount.timeframe,timePeriod:ne(e.selectedAccount.period),dataAvailableForPeriod:e.dataAvailableForPeriod,report:t,currentScrollYOffset:t.uiState?.scrollYOffset??0,isAccountingClassesEnabled:ae(a)}}),(function(a,e){return{onBackClick:()=>{const t=se(e.location.state?.pathnameStackToGoBack),n=t.poppedPathname??"../../";e.navigate(n,{state:{pathnameStackToGoBack:t.newStack}})},onTimePeriodChange:(t,n,c)=>{e.closeSidePanel?.();const o=q(e.selectedAccount.tranListType),d=Qe(t,n,c,o,e.bookCloseDate);F.trackTransactionList(void 0,void 0,void 0,e.selectedAccount.title,void 0,!0),a(fe({uiState:{dateRange:d},type:q(e.selectedAccount.tranListType)})),a(Se(o,p(d),!1,o==="missingReceipts"?Ye():void 0)),e.onSelectedTimePeriodChange(p(d))},onTransactionItemClick:t=>{if(e.openTransactionPanel)return void e.openTransactionPanel(t.id,t.type);const n=de(t,e.tenantEmailDomain),c=z(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(n,{state:{pathnameStackToGoBack:c}})},onTransactionListScroll:t=>{a(fe({uiState:{scrollYOffset:t},type:q(e.selectedAccount.tranListType)}))}}}))(oe),V=ie((function({...a}){const e=Q(),t=N(),n=W(),c=t.pathname.split("/").find((l=>Ne.includes(l))),o=c??"uncategorized-expense",{tenantEmailDomain:d}=X(),{accountType:Y,title:b,subTitle:A}=He(o),f="month",T=g((l=>H(l))),v=T.company?.companyInfo.firstMonthOfFY??1,{useFeatureGate:S}=ce(),{isFeatureEnabled:h}=S(J.isProjectsTransactionsEnabled),I=g((l=>ee(l)))&&h,{dataAvailable:x,initialTimeframeTick:O}=Ke(o,v,T.bookCloseDate),[E,G]=y.useState(!1),[P,$]=y.useState(void 0),u=y.useMemo((()=>{const l=p(O);return{tranListType:o,accountType:te(Y),title:b,subTitle:A,timeframe:f,period:l}}),[o,f,Y,x]);y.useEffect((()=>{if(!E&&u!=null){G(!0),F.trackTransactionList(void 0,void 0,void 0,u.title);const l=q(u.tranListType);n(Se(l,u.period,!0,l==="missingReceipts"?Ye():void 0))}}),[E,u,n]);let M=u;return u!=null&&P!=null&&(M={...u,period:P}),c==null||M==null?s.jsx(U,{to:"../"}):s.jsx(Ue,{firstMonthOfFY:v,tenantEmailDomain:d,location:t,useFixedPeriod:{timeframe:"month",numberOfPeriods:12},dataAvailableForPeriod:x,navigate:e,showProjectField:I,selectedAccount:M,referrerType:o,bookCloseDate:T.bookCloseDate,onSelectedTimePeriodChange:l=>$(l),...a})})),He=a=>{let e="",t="";const n=ke.getLocalizedStrings();switch(a){case"uncategorized-income":e="income",t=n.uncategorizedTransactionList.income.title;break;case"uncategorized-expense":e="expenses",t=n.common.texts.uncategorizedExpenses;break;case"miscategorized-expense":e="expenses",t=n.miscategorizedTransactionList.expense.title;break;case"miscategorized-income":e="income",t=n.miscategorizedTransactionList.income.title;break;case"missing-receipts":t=n.common.texts.receipts}return{accountType:e,title:t,subTitle:""}},Ke=(a,e,t)=>{const n=pe();let c=pe().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:re(5,e),initialTimeframeTick:{startDate:c,endDate:n}}},Qe=(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},We=Z((function(a,e){const t=Fe(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:ne(e.selectedAccount.period),dataAvailableForPeriod:re(5,e.firstMonthOfFY),report:t,currentScrollYOffset:t.uiState?.scrollYOffset??0,isAccountingClassesEnabled:ae(a)}}),(function(a,e){return{onBackClick:()=>{const t=se(e.location.state?.pathnameStackToGoBack),n=t.poppedPathname??be();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)}`),F.trackTransactionList(e.selectedAccount.accountId,void 0,e.referrerType,e.selectedAccount.title,void 0,!0),a(Te({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,classId:e.selectedAccount.classId,uiState:{dateRange:o}})),a(he(e.selectedAccount.accountId,e.selectedAccount.accountType,e.selectedAccount.classId,p(o))),e.onSelectedTimePeriodChange(p(o))},onTransactionItemClick:t=>{if(e.openTransactionPanel)return void e.openTransactionPanel(t.id,t.type);const n=de(t,e.tenantEmailDomain),c=z(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(n,{state:{pathnameStackToGoBack:c}})},onTransactionListScroll:t=>{a(Te({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,classId:e.selectedAccount.classId,uiState:{scrollYOffset:t}}))}}}))(oe),Xe=ie((function({referrerType:a,...e}){const t=Q(),n=N(),c=W(),{tenantEmailDomain:o,accountTypeEncoded:d,accountIdEncoded:Y,classIdEncoded:b,timeframe:A,startDate:f,endDate:T,titleEncoded:v}=X(),S=j(d??""),h=j(Y??""),I=j(b??""),x=j(v??""),O=g((r=>Le(r.transactionListState,h,S,I))),[E,G]=y.useState(!1),[P,$]=y.useState(void 0),u=g((r=>H(r))),M=u.company?.companyInfo.firstMonthOfFY??1,{useFeatureGate:l}=ce(),{isFeatureEnabled:m}=l(J.isProjectsTransactionsEnabled),w=g((r=>ee(r)))&&m;let i;const L=Ze(S,h,I,A,f,T,x);if(L){const r={startDate:k(f,"YYYY-MM-DD"),endDate:k(T,"YYYY-MM-DD")},_=et(O?.dateRange,r);i={accountId:h,accountType:te(S),classId:I,title:x,timeframe:A,period:_}}y.useEffect((()=>{E||i==null||(G(!0),F.trackTransactionList(i.accountId,void 0,a,i.title),c(he(i.accountId,i.accountType,i.classId,i.period)))}),[E,i,c]);let B=i;i!=null&&P!=null&&(B={...i,period:P});const R=[d,Y,b,A,f,T,v].filter((r=>r!=null));return L&&B!=null?s.jsx(We,{firstMonthOfFY:M,tenantEmailDomain:o,location:n,navigate:t,showProjectField:w,selectedAccount:B,referrerType:a,onSelectedTimePeriodChange:r=>$(r),...e}):s.jsx(U,{to:be(R.length)})})),be=(a=7)=>{let e="../";for(let t=0;t<a;t++)e=`${e}../`;return e},Ze=(a,e,t,n,c,o,d)=>a!=null&&e!=null&&t!=null&&n!=null&&c!=null&&o!=null&&(n==="month"||n==="quarter")&&k(c,"YYYY-MM-DD").isValid()&&k(o,"YYYY-MM-DD").isValid()&&d!=null,et=(a,e)=>a!=null&&a.endDate.isSame(e.endDate,"day")&&a.startDate.isBefore(e.startDate,"day")?p(a):p(e),tt=Z((function(a,e){const t=Ge(a.transactionState,a.transactionListState,e.selectedAccount.accountId,e.selectedAccount.accountType,e.selectedAccount.projectId,e.selectedAccount.timeframe,e.selectedAccount.period);return{accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,title:e.selectedAccount.title,timeframe:e.selectedAccount.timeframe,timePeriod:ne(e.selectedAccount.period),dataAvailableForPeriod:re(5,e.firstMonthOfFY),report:t,currentScrollYOffset:t.uiState?.scrollYOffset??0,isAccountingClassesEnabled:ae(a)}}),(function(a,e){return{onBackClick:()=>{const t=se(e.location.state?.pathnameStackToGoBack),n=t.poppedPathname??ve();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)}`),F.trackTransactionList(e.selectedAccount.accountId,void 0,e.referrerType,e.selectedAccount.title,void 0,!0),a(De({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,projectId:e.selectedAccount.projectId,uiState:{dateRange:o}})),a(ge(e.selectedAccount.accountId,e.selectedAccount.accountType,e.selectedAccount.projectId,p(o))),e.onSelectedTimePeriodChange(p(o))},onTransactionItemClick:t=>{if(e.openTransactionPanel)return void e.openTransactionPanel(t.id,t.type);const n=de(t,e.tenantEmailDomain),c=z(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,projectId:e.selectedAccount.projectId,uiState:{scrollYOffset:t}}))}}}))(oe),at=ie((function({referrerType:a,...e}){const t=Q(),n=N(),c=W(),{tenantEmailDomain:o,accountTypeEncoded:d,accountIdEncoded:Y,projectIdEncoded:b,timeframe:A,startDate:f,endDate:T,titleEncoded:v}=X(),S=j(d??""),h=j(Y??""),I=j(b??""),x=j(v??""),O=g((r=>Oe(r.transactionListState,h,S,I))),[E,G]=y.useState(!1),[P,$]=y.useState(void 0),u=g((r=>H(r))),M=u.company?.companyInfo.firstMonthOfFY??1,{useFeatureGate:l}=ce(),{isFeatureEnabled:m}=l(J.isProjectsTransactionsEnabled),w=g((r=>ee(r)))&&m;let i;const L=nt(S,h,I,A,f,T,x);if(L){const r={startDate:k(f,"YYYY-MM-DD"),endDate:k(T,"YYYY-MM-DD")},_=ct(O?.dateRange,r);i={accountId:h,accountType:te(S),projectId:I,title:x,timeframe:A,period:_}}y.useEffect((()=>{E||i==null||(G(!0),F.trackTransactionList(i.accountId,void 0,a,i.title),c(ge(i.accountId,i.accountType,i.projectId,i.period)))}),[E,i,c]);let B=i;i!=null&&P!=null&&(B={...i,period:P});const R=[d,Y,b,A,f,T,v].filter((r=>r!=null));return L&&B!=null?s.jsx(tt,{firstMonthOfFY:M,tenantEmailDomain:o,location:n,navigate:t,showProjectField:w,selectedAccount:B,referrerType:a,onSelectedTimePeriodChange:r=>$(r),...e}):s.jsx(U,{to:ve(R.length)})})),ve=(a=7)=>{let e="../";for(let t=0;t<a;t++)e=`${e}../`;return e},nt=(a,e,t,n,c,o,d)=>a!=null&&e!=null&&t!=null&&n!=null&&c!=null&&o!=null&&(n==="month"||n==="quarter")&&k(c,"YYYY-MM-DD").isValid()&&k(o,"YYYY-MM-DD").isValid()&&d!=null,ct=(a,e)=>a!=null&&a.endDate.isSame(e.endDate,"day")&&a.startDate.isBefore(e.startDate,"day")?p(a):p(e),ot=Z((function(a,e){const t=we(a.transactionState,a.transactionListState,e.selectedAccount.accountId,e.selectedAccount.accountType,e.selectedAccount.timeframe,e.selectedAccount.period),n=t.account?.coaId,c=e.isConnectedAccountProviderUnit&&ze(n??"");return{accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,title:e.selectedAccount.title,timeframe:e.selectedAccount.timeframe,timePeriod:ne(e.selectedAccount.period),dataAvailableForPeriod:re(5,e.firstMonthOfFY),report:t,currentScrollYOffset:t.uiState?.scrollYOffset??0,showStatementPageIcon:c,isAccountingClassesEnabled:ae(a)}}),(function(a,e){return{onBackClick:()=>{const t=se(e.location.state?.pathnameStackToGoBack),n=t.poppedPathname??Ee();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)}`),F.trackTransactionList(e.selectedAccount.accountId,void 0,e.referrerType,e.selectedAccount.title,void 0,!0),a(ye({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,uiState:{dateRange:o}})),a(Ie(e.selectedAccount.accountId,e.selectedAccount.accountType,p(o))),e.onSelectedTimePeriodChange(p(o))},onTransactionItemClick:t=>{if(e.openTransactionPanel)return void e.openTransactionPanel(t.id,t.type);const n=de(t,e.tenantEmailDomain),c=z(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(n,{state:{pathnameStackToGoBack:c}})},onTransactionListScroll:t=>{a(ye({accountId:e.selectedAccount.accountId,accountType:e.selectedAccount.accountType,uiState:{scrollYOffset:t}}))},onStatementPageIconClick:()=>{const t=rt(e.tenantEmailDomain),n=z(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(t,{state:{pathnameStackToGoBack:n}})}}}))(oe),Ae=ie((function({referrerType:a,...e}){const t=Q(),n=N(),c=W(),{tenantEmailDomain:o,accountTypeEncoded:d,accountIdEncoded:Y,timeframe:b,startDate:A,endDate:f,titleEncoded:T,excludeSubAccounts:v}=X(),S=j(d??""),h=j(Y??""),I=j(T??""),x=!(v!=null&&v==="exclude_subaccounts"),O=g((D=>$e(D.transactionListState,h,S))),[E,G]=y.useState(!1),[P,$]=y.useState(void 0),u=g((D=>H(D))),M=u.company?.featuresActivationInfo.connectedAccountProvider==="unit",l=u.company?.companyInfo.firstMonthOfFY??1;let m;const w=st(S,h,b,A,f,I);if(w){const D={startDate:k(A,"YYYY-MM-DD"),endDate:k(f,"YYYY-MM-DD")},le=it(O?.dateRange,D);m={accountId:h,accountType:te(S),title:I,timeframe:b,period:le}}let i=m;m!=null&&P!=null&&(i={...m,period:P});const{useFeatureGate:L}=ce(),{isFeatureEnabled:B}=L(J.isTransactionCommentingEnabled),R=y.useCallback(((D,le)=>{if(o==null)return;const me=D.url.split(`/${o}/`)[1];if(me==null)return;const[je,xe]=me.split("?"),K=new URLSearchParams(xe??"");K.set("view","full"),K.set("thread_id",le),K.set("entity_type",D.entityType);const Ce=z(n.state?.pathnameStackToGoBack,n.pathname);t(`/${o}/${je}?${K.toString()}`,{state:{pathnameStackToGoBack:Ce}})}),[t,o,n.state,n.pathname]),{isFeatureEnabled:r}=L(J.isProjectsTransactionsEnabled),_=g((D=>ee(D)))&&r,{areTenantIdsInSync:ue}=_e();y.useEffect((()=>{!E&&m!=null&&ue&&(G(!0),F.trackTransactionList(m.accountId,void 0,a,m.title),c(Ie(m.accountId,m.accountType,m.period,void 0,!1,x)))}),[E,m,c,ue]);const Pe=[d,Y,b,A,f,T].filter((D=>D!=null));return w&&i!=null?s.jsx(ot,{firstMonthOfFY:l,tenantEmailDomain:o,location:n,navigate:t,isConnectedAccountProviderUnit:M,isTransactionCommentingEnabled:B,onCommentThreadClick:R,showProjectField:_,selectedAccount:i,referrerType:a,onSelectedTimePeriodChange:D=>$(D),...e}):s.jsx(U,{to:Ee(Pe.length)})})),Ee=(a=7)=>{let e="../";for(let t=0;t<a;t++)e=`${e}../`;return e},st=(a,e,t,n,c,o)=>a!=null&&e!=null&&t!=null&&n!=null&&c!=null&&(t==="month"||t==="quarter")&&k(n,"YYYY-MM-DD").isValid()&&k(c,"YYYY-MM-DD").isValid()&&o!=null,it=(a,e)=>a!=null&&a.endDate.isSame(e.endDate,"day")&&a.startDate.isBefore(e.startDate,"day")?p(a):p(e),rt=a=>`/${a}/transactions/${Re}/statements`;function Bt(){const a=N().state?.referrer,e=g((n=>n.expenseAutomationViewState.selectedPeriodByTenantId))[g((n=>H(n))).tenantId],t=Ve();return s.jsxs(Me,{children:[s.jsx(C,{path:"/:accountTypeEncoded/:accountIdEncoded/:timeframe/:startDate/:endDate/:titleEncoded/:excludeSubAccounts/*",element:s.jsx(Ae,{referrerType:a})}),s.jsx(C,{path:"/zeni-clearing-account/statements",element:s.jsx(Je,{})}),s.jsx(C,{path:"/*",element:s.jsx(Ae,{referrerType:a})}),s.jsx(C,{path:"/uncategorized-income/*",element:s.jsx(V,{})}),s.jsx(C,{path:"/uncategorized-expense/*",element:s.jsx(V,{})}),s.jsx(C,{path:"/miscategorized-income/*",element:s.jsx(V,{})}),s.jsx(C,{path:"/miscategorized-expense/*",element:s.jsx(V,{})}),s.jsx(C,{path:"/missing-receipts/*",element:t?s.jsx(U,{to:`../../month_end_close_checks/review/missing_receipts/${e.month}-${e.year}`}):s.jsx(V,{})}),s.jsx(C,{path:"/by-class/:accountTypeEncoded/:accountIdEncoded/:classIdEncoded/:timeframe/:startDate/:endDate/:titleEncoded/*",element:s.jsx(Xe,{referrerType:a})}),s.jsx(C,{path:"/by-project/:accountTypeEncoded/:accountIdEncoded/:projectIdEncoded/:timeframe/:startDate/:endDate/:titleEncoded/*",element:s.jsx(at,{referrerType:a})})]})}export{Bt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-
|
|
1
|
+
import{j as e}from"./liveblocks-y3zMPGKB.js";import{h as L,g as U,u as F,i as M,j as y,N as D,l as V,n as Te,o as k}from"./core-BwK6FGJd.js";import{cv as N,fE as v,Z1 as P,Of as ae,NY as q,NZ as ne,Z3 as Ie,Oi as we,Y$ as Ce,Z0 as se,Zf as ke,Mj as je,C2 as Ae,Z5 as be,Op as Ee,Z2 as re,dc as H,Gy as oe,dY as ve,dZ as De,$r as Le,$s as Ue,N_ as Fe,$t as Pe,N$ as Be,O8 as Re,bq as Oe,bJ as Me,cG as Ve,bK as Ne,cu as _e,bt as $e,U1 as Ze,ct as ze}from"./zeni-epic-state-BugXGzus.js";import{U as _,j as Ge,z as E,a8 as $,k as A,d7 as qe,d8 as He,d9 as G,a1 as W,E as We,aq as Ye,as as Je,O as ie,c as R,ab as Ke,a7 as Qe,da as Xe,ae as Y,p as et,db as tt,a4 as J,dc as at,ai as nt,_ as Q,dd as st,g as rt}from"./index-DTZt8DRK.js";import{D as ot,n as O,S as it}from"./mui-CxIkaR9n.js";import ct from"./NotFoundScreen-DVcHaqdZ.js";import{S as X}from"./SetupPagesScreen-DV-Hyv78.js";import{a as p}from"./sentry-Jm7O5sR0.js";import{u as lt}from"./useAskAiCfoHostNavButtonProps-DzjGv8Xy.js";import{u as ut}from"./useInitialThreadRequest-BWyM3F-W.js";import{M as ce}from"./MobileAppDrawer-plEMRzd-.js";import{F as dt}from"./FeaturePreviewScreen-C8dKuiF7.js";import{a as ee}from"./analyticsHelper-BwLj34Ys.js";import"./recharts-CoAMGh71.js";import"./analytics-BTvt2K3S.js";import"./plaid-CQqwPn97.js";import"./dnd-Cbdx7tVf.js";import"./stripe-cKAAJElX.js";import"./lottie-BQlGSG2c.js";import"./lexical-DRfKJLK3.js";import"./pdf-DGzvSuDl.js";import"./utils-BVIT21dc.js";import"./BusinessVerificationPageScreen-BLwno7qB.js";import"./routePaths-CPqwWbPN.js";import"./InboxNotificationsProvider-ozJWRqdQ.js";import"./useTaskManagerAccess-DRF4urEw.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]="529e5700-c022-4db6-94dd-f60e9892d942",t._sentryDebugIdIdentifier="sentry-dbid-529e5700-c022-4db6-94dd-f60e9892d942")}catch{}})();const pt=V((function(t,a){const{companyId:n}=a;return{treasurySetupView:P(t,n),analytics:A}}),(function(t,a){const{navigate:n,analytics:o,treasurySetupView:i}=a;return{onBackClick:()=>{n("../")},onNextClick:()=>{const r=i.fundAllocationLocalData;o.trackTreasuryPortfolioConfirm(r.riskScore,ee(r)),t(we(!0))},onUpdateFundAllocation:r=>{o.trackTreasuryAllocationAction("update",ee(r)),t(Ie(r))}}}))(qe);function mt(){const t=L(),a=U(),n=F(),{tenantEmailDomain:o}=M(),i=_(),r=y((w=>w.treasurySetupViewState.portfolioAllocationUpdateStatus?.fetchState)),m=Ge(r),s=N(i?.loggedInUserRoleMap),[d,c]=p.useState(!1),[S,T]=p.useState(!1),[l,u]=p.useState(!1),x=y((w=>v(w))),f=E.getSignedInUserTenant(o)?.companyId??x.companyId,C=E.getSignedInUser(),h=y((w=>P(w,f))),g=y((w=>w.treasurySetupViewState.fetchState)),j=y((w=>w.treasurySetupViewState.currentAllocation.fetchStatus?.fetchState)),I=y((w=>w.treasurySetupViewState.treasuryFundsDetails?.fetchStatus?.fetchState));if(C==null)throw Error("Can't access treasury portfolio allocation page without signing in...");if(p.useEffect((()=>{d||g!=="Not-Started"||f==null||(c(!0),n(ae(f,!0,!1)))}),[d,g,f,n]),p.useEffect((()=>{l||I!=="Not-Started"||f==null||(u(!0),n(q()))}),[l,I,f,n]),p.useEffect((()=>{S||j!=="Not-Started"||f==null||(T(!0),n(ne()))}),[S,j,f,n]),p.useEffect((()=>{m==="In-Progress"&&r==="Completed"&&t("../")}),[m,r,t]),x.companyTreasuryInfo?.info?.isTreasuryTOSAccepted===!1)return e.jsx(D,{to:"../promo"});const B=x.companyTreasuryInfo?.info?.isTreasuryTOSAccepted!==!0||g!=="Completed";return e.jsxs(e.Fragment,{children:[!B&&e.jsx($,{analytics:A,onLoad:()=>{}}),e.jsx(pt,{navigate:t,location:a,companyId:f,isEditMode:!0,isLoading:B,isReadOnly:!s,treasurySetupView:h,analytics:A})]})}const ft=V((function(t,a){const n=a.currentTenant?.companyId;return{plaidConnectionDetails:ke(t,n,"zeni_treasury","treasury_setup").plaidConnectionDetails,treasurySetupView:P(t,n)}}),(function(t,a){const{navigate:n,transferDetails:o,treasurySetupView:i}=a,r=o.treasuryTransferMoneyLocalData,m=i.fundAllocationLocalData;return{onCancelClick:()=>{G(a.analytics,"cancel",r,m,"Transfer"),t(se()),n("../")},onTransferClick:()=>{G(a.analytics,"confirm",r,m,"Transfer"),t(Ee())},onSaveChangesToLocalStore:s=>{t(be(s))},onFetchLinkTokenClick:s=>{t(Ae("treasury_setup",s))},onEstablishConnectionClick:s=>{t(je(s,a.currentTenant?.companyId,"treasury_setup","zeni_treasury"))}}}))(He),yt=({isFirstTransfer:t,isTransactionsLoaded:a})=>{const n=L(),{tenantEmailDomain:o}=M(),i=F(),[r,m]=p.useState(!1),[s,d]=p.useState(!1),[c,S]=p.useState(!1),[T,l]=p.useState(!1),u=y((I=>I.treasurySetupViewState.fetchState)),x=y((I=>I.treasurySetupViewState.treasuryFundsDetails?.fetchStatus?.fetchState)),f=y((I=>I.treasurySetupViewState.currentAllocation.fetchStatus?.fetchState)),C=y((I=>v(I))),h=E.getSignedInUserTenant(o)?.companyId??C.companyId,g=y((I=>Ce(I))),j=y((I=>P(I,h)));if(E.getSignedInUser()==null)throw Error("Can't access treasury transfer page without signing in...");return p.useEffect((()=>{s||u!=="Not-Started"||h==null||(d(!0),i(ae(h,!0,!1)))}),[s,u,h,i]),p.useEffect((()=>{c||x!=="Not-Started"||h==null||(S(!0),i(q()))}),[c,x,h,i]),p.useEffect((()=>{T||f!=="Not-Started"||h==null||(l(!0),i(ne()))}),[T,f,h,i]),e.jsxs(e.Fragment,{children:[e.jsx($,{analytics:A,onLoad:()=>{}}),e.jsx(ft,{analytics:A,navigate:n,transferDetails:g,onAnotherTransferClick:()=>{m(!1),i(se())},currentTenant:C,treasurySetupView:j,showReviewContent:r,maxInsuredAmount:5e5,onReviewClick:()=>{G(A,"review",g.treasuryTransferMoneyLocalData,j.fundAllocationLocalData,"Transfer"),m(!0)},isFirstTransfer:t,isTransactionsLoaded:a,setShowReviewContent:m,onBackClick:()=>{}})]})},gt=O.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as o}from"./liveblocks-
|
|
1
|
+
import{j as o}from"./liveblocks-y3zMPGKB.js";import{a as u}from"./sentry-Jm7O5sR0.js";import{h as N,u as G,i as z,j as f,l as $,g as q,n as Me,o as V,N as L}from"./core-BwK6FGJd.js";import{Vw as gt,Vx as Ze,Rj as et,Vy as vt,fE as U,gZ as ge,Vz as xt,cE as Tt,VA as bt,Fu as yt,VB as wt,VC as oe,VD as te,VE as ve,SU as ue,SV as ke,FK as pe,ST as he,Fx as tt,F4 as Ve,VF as It,SW as Y,l_ as me,VG as je,E_ as Ct,VH as Dt,VI as Et,VJ as Pe,VK as _e,VL as Ae,VM as Re,FE as xe,VN as nt,Fl as at,VO as Ft,VP as kt,VQ as Vt,VR as jt,VS as Pt,VT as _t,VU as At,VV as Rt,Ce as Ut,Cm as Lt,Cf as Bt,R$ as we,VW as Ot,VX as Mt,le as Ie,br as Nt,VY as $t,VZ as Gt,mY as Wt,n5 as zt,R_ as Ce,bE as Ne,V_ as ot,RB as st,V$ as Yt,W0 as Jt,W1 as Kt,n7 as qt,W2 as $e,W3 as Ge,W4 as We,W5 as ze,W6 as Ht,n3 as Qt,W7 as Xt,n6 as Zt,W8 as en,W9 as it,Sk as rt,mm as tn,Wa as nn,Wb as De,Wc as dt,Si as lt,I1 as an,Wd as on,We as sn,mG as ct,Wf as rn,Wg as dn,Sw as ln,vb as cn,Wh as ut,Wi as Ye,St as Ee,Wj as Je,Wk as un,Sy as pn,Wl as hn,Wm as mn,Wn as fn,Wo as Sn,Wp as gn,ve as vn,Wq as xn,SX as Tn,Uv as bn,Sb as Fe,i9 as yn,Ux as wn,Uw as In,i7 as Cn,Wr as Dn,Ws as En,I6 as Fn,Wt as kn,Wu as Vn,Wv as jn,Ww as Pn,mq as _n,bn as An,dZ as Rn,dY as Un}from"./zeni-epic-state-BugXGzus.js";import{E as Ln,a1 as ne,ab as Ue,O as H,c as M,z as R,a7 as Bn,aM as On,k as j,X as Le,$ as Te,av as ee,as as se,aN as Mn,aO as pt,aq as Nn,a8 as Se,aP as $n,p as K,U as Gn,G as ht,aQ as Wn,ae as mt,a4 as zn,j as Ke,aR as Yn,J,a9 as Jn,af as ft,ag as Kn,aS as qn,aT as Hn,T as Be,aU as Qn,aV as Xn,a3 as Zn,aW as ea,aX as ta}from"./index-DTZt8DRK.js";import{D as na,n as B,S as St}from"./mui-CxIkaR9n.js";import{t as aa,A as oa}from"./AddressScreen-tI262EI8.js";import fe from"./NotFoundScreen-DVcHaqdZ.js";import{F as sa}from"./FeaturePreviewScreen-C8dKuiF7.js";import{S as ia,a as ra,J as da,b as la,c as ca}from"./ScheduleDetailsPrepaidExpensesScreen-YdcDOaAu.js";import{u as ie}from"./useAskAiCfoHostNavButtonProps-DzjGv8Xy.js";import{M as re}from"./MobileAppDrawer-plEMRzd-.js";import{v as Oe,c as ua,d as pa}from"./routePaths-CPqwWbPN.js";import{D as ha}from"./DrawerScreen-DQY8vrlv.js";import{a as ma,m as fa}from"./accountMappingHelper-CQrmB6jj.js";import"./recharts-CoAMGh71.js";import"./analytics-BTvt2K3S.js";import"./plaid-CQqwPn97.js";import"./dnd-Cbdx7tVf.js";import"./stripe-cKAAJElX.js";import"./lottie-BQlGSG2c.js";import"./lexical-DRfKJLK3.js";import"./pdf-DGzvSuDl.js";import"./utils-BVIT21dc.js";import"./pathToGoBack-QMp9zrtx.js";import"./InboxNotificationsProvider-ozJWRqdQ.js";import"./useTaskManagerAccess-DRF4urEw.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]="00970186-ca4c-4bcc-9a2d-5d9a40288b6a",e._sentryDebugIdIdentifier="sentry-dbid-00970186-ca4c-4bcc-9a2d-5d9a40288b6a")}catch{}})();const Sa={drawerLeftMargin:new Ue(0,0,100,200)},ga=$((function(e,a){const{jeScheduledTransaction:s,selectedJERow:t,scheduleType:n,isVendorBulkUpdateOnTransactionEnabled:i}=a,{scheduleDetailsLocalData:l,updateStatus:p}=Ze(e,a.scheduleType),h=U(e),v=l[n].jeScheduleDetails[t].jeLink,m=v.type==="recommended"?v.recommendedTransactionID:v.transactionDetailID,r=m!=null?xt(e,m):void 0,d=R.getSignedInUser(),c=e.tenantState.currentTenantId,x={userId:d?.userId??"",sessionId:d?.zeniSessionId??"",tenantId:h.tenantId??c},T=h?.company?.companyInfo?.firstMonthOfFY??1;return{jeScheduledTransaction:s,transactionDetail:r,localData:l[n].jeScheduleDetails[t],saveStatus:p.fetchState,authParams:x,isVendorBulkUpdateOnTransactionEnabled:i,firstMonthOfFY:T,isDisabled:p.fetchState==="In-Progress"?"readonly":void 0,analytics:j,qboAppUrl:Tt(Le.qboRedirectionUrl)}}),(function(e,a){const{selectedJERow:s,jeScheduleDetailId:t,navigate:n}=a;return{onUpdateLocalData:i=>{const l=i.linkJETransaction.qboURL;l!=null&&e(wt({scheduleType:a.scheduleType,jeScheduleDetailId:t,rowId:s,jeLink:l}))},onFetchTransactionClick:i=>{e(et(i))},onSaveClick:()=>{e(yt(a.scheduleType,t))},onBackClick:()=>{n("..",{relative:"path"})},onCancelClick:()=>{const i=a.jeScheduledTransaction.scheduledJournalEntry[s];e(bt({scheduleType:a.scheduleType,jeScheduleDetailId:t,rowId:s,originalScheduledJE:i})),n("..",{relative:"path"})}}}))(On),va=()=>{const e=Ln(),a=N(),s=G(),{scheduleDetailId:t}=z(),n=ne(),i=Sa.drawerLeftMargin.valuePx(n),{scheduleType:l}=z(),{useFeatureGate:p}=H(),{isFeatureEnabled:h}=p(M.isVendorBulkUpdateOnTransactionEnabled),v=gt(l)??"prepaid_expenses",[m,r]=u.useState(!1);if(R.getSignedInUser()==null)throw Error("Can't access Account detail page without signing in...");if(t==null)throw Error("Invalid Schedule Detail Id");const d=f((b=>Ze(b,v)));u.useEffect((()=>{d.fetchState==="Not-Started"&&a("..",{relative:"path"})}),[]);const c=d.selectedJELinkRowIndex,x=c!=null?d.scheduleDetailsLocalData[v].jeScheduleDetails[c]?.jeLink:null,T=x?.type==="recommended"?x.recommendedTransactionID:x?.transactionDetailID;u.useEffect((()=>{T!=null&&s(et(T))}),[]),u.useEffect((()=>{x?.type==="recommended"&&m===!1&&c!=null&&(r(!0),s(vt({scheduleType:v,jeScheduleDetailId:t,rowId:c})))}));const g=f((b=>U(b))),y=f((b=>ge(b,g.companyId)));return o.jsx(na,{anchor:"right",open:!0,PaperProps:{style:{width:`calc(100% - ${i})`,boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:e.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a("..",{relative:"path"}),children:o.jsx(xa,{onClick:b=>b.stopPropagation(),children:d.fetchState!=="Completed"||d.selectedJEScheduleTransaction==null||c==null?o.jsx(Bn,{fetchState:d.fetchState}):o.jsx(ga,{scheduleType:v,jeScheduleDetailId:t,selectedJERow:c,jeScheduledTransaction:d.selectedJEScheduleTransaction,isCOTEnabled:!1,navigate:a,scheduleTab:v,controllerUserDetails:y,isVendorBulkUpdateOnTransactionEnabled:h})})})},xa=B(St)`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
package/dist/assets/{WiseConfirmationScreen-BMU_QR7R.js → WiseConfirmationScreen-CO8k4M88.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as o}from"./liveblocks-
|
|
1
|
+
import{j as o}from"./liveblocks-y3zMPGKB.js";import{a as f}from"./sentry-Jm7O5sR0.js";import{t as u,u as h,j as y,N as b}from"./core-BwK6FGJd.js";import{Uj as I,gh as w,Jm as j}from"./zeni-epic-state-BugXGzus.js";import{z as l,a7 as x,af as S,ag as D}from"./index-DTZt8DRK.js";import{n as c}from"./mui-CxIkaR9n.js";import"./recharts-CoAMGh71.js";import"./analytics-BTvt2K3S.js";import"./plaid-CQqwPn97.js";import"./dnd-Cbdx7tVf.js";import"./stripe-cKAAJElX.js";import"./lottie-BQlGSG2c.js";import"./lexical-DRfKJLK3.js";import"./pdf-DGzvSuDl.js";import"./utils-BVIT21dc.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]="48e3f50f-d5b0-42e5-9f0d-c28d4173bcf7",e._sentryDebugIdIdentifier="sentry-dbid-48e3f50f-d5b0-42e5-9f0d-c28d4173bcf7")}catch{}})();const B=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",g=e.get("profileId")??"",[n,p]=f.useState(!1),a=h(),i=y((m=>I(m))),r=l.getSignedInUser(),d=l.getSignedInUserTenantWithId(s);if(r==null||d==null)return o.jsx(b,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return w(r.userId,r.zeniSessionId,d?.tenantId),f.useEffect((()=>{n||(p(!0),a(j(t,g,s)))}),[n,a]),i.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(x,{fetchState:"In-Progress"}))},E=c.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100vh;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./liveblocks-
|
|
1
|
+
import{j as e}from"./liveblocks-y3zMPGKB.js";import{u as z,h as ae,g as W,i as N,j as D,l as te,N as ee,n as $e,o as C}from"./core-BwK6FGJd.js";import{$6 as Fe,Le as Ue,$7 as _e,fE as R,Gw as ze,$8 as kn,cu as ne,cv as Me,Gq as wn,$9 as Dn,$a as In,Gt as Sn,GA as ge,Gn as bn,Gk as Pn,YF as le,$b as jn,OL as vn,WC as En,ON as Tn,mH as Pe,$c as On,uS as Ve,uG as Ze,my as Ge,mB as je,WD as ve,WE as Bn,$d as Ln,mA as Rn,mX as $n,mp as Fn,kP as Un,kO as _n,$e as zn,$f as fe,Os as Mn,$g as Vn,$h as Zn,YV as ye,$i as Ee,$j as Gn,OY as Hn,Zf as Wn,Mj as He,C2 as We,$k as Nn,OV as Yn,$l as Ne,d9 as xe,P0 as Ye,dY as qe,dZ as Ce,O_ as qn,Md as Jn,OS as Kn,$m as Je,$n as Ke,Ou as Xe,OE as Te,$o as Xn,Z6 as Qn,P1 as ea,bq as na,bJ as aa,cG as ta,bK as oa,bt as sa,U1 as ia}from"./zeni-epic-state-BugXGzus.js";import{U as oe,O as Z,c as _,z as b,av as Ae,E as $,a7 as de,cY as ra,a1 as V,ab as Y,a4 as Qe,j as ca,o as Oe,k as O,cZ as la,ae as ke,c_ as da,a8 as ue,c$ as ua,T as we,bi as H,d0 as pa,aq as ma,as as en,d1 as Be,d2 as ga,p as ce,d3 as fa,ai as ha,d4 as ya,d5 as xa,g as Ca,J as Aa}from"./index-DTZt8DRK.js";import{n as F,D as q,S as J}from"./mui-CxIkaR9n.js";import Q from"./NotFoundScreen-DVcHaqdZ.js";import{S as Le}from"./SetupPagesScreen-DV-Hyv78.js";import{F as nn}from"./FeaturePreviewScreen-C8dKuiF7.js";import{a as m}from"./sentry-Jm7O5sR0.js";import{M as pe}from"./MobileAppDrawer-plEMRzd-.js";import{A as ka,D as wa,V as Da}from"./DomesticWireDetailScreen-42PVSRte.js";import{A as Ia}from"./AddressScreen-tI262EI8.js";import{u as an}from"./useAskAiCfoHostNavButtonProps-DzjGv8Xy.js";import{Z as Sa}from"./ZeniAccountStatementScreen-CuxmtWXH.js";import"./recharts-CoAMGh71.js";import"./analytics-BTvt2K3S.js";import"./plaid-CQqwPn97.js";import"./dnd-Cbdx7tVf.js";import"./stripe-cKAAJElX.js";import"./lottie-BQlGSG2c.js";import"./lexical-DRfKJLK3.js";import"./pdf-DGzvSuDl.js";import"./utils-BVIT21dc.js";import"./BusinessVerificationPageScreen-BLwno7qB.js";import"./routePaths-CPqwWbPN.js";import"./analyticsHelper-BwLj34Ys.js";import"./InboxNotificationsProvider-ozJWRqdQ.js";import"./useTaskManagerAccess-DRF4urEw.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new n.Error().stack;a&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[a]="fbfec81b-2d77-47fe-a369-cc3e3ccc4395",n._sentryDebugIdIdentifier="sentry-dbid-fbfec81b-2d77-47fe-a369-cc3e3ccc4395")}catch{}})();const ba=F.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-
|
|
1
|
+
import{j as i}from"./liveblocks-y3zMPGKB.js";import{a as u}from"./sentry-Jm7O5sR0.js";import{h as $,u as x,g as T,i as E,j as p}from"./core-BwK6FGJd.js";import{T1 as s,T0 as j,$p as v,fE as B,$q as C}from"./zeni-epic-state-BugXGzus.js";import{a1 as z,ae as g,E as D,z as L,a7 as P,d6 as N,a4 as U}from"./index-DTZt8DRK.js";import{n as _}from"./mui-CxIkaR9n.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]="f2056c12-c3b8-4b92-a9ec-e028aacb41a2",e._sentryDebugIdIdentifier="sentry-dbid-f2056c12-c3b8-4b92-a9ec-e028aacb41a2")}catch{}})();const G=_.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100vh;
|
|
4
4
|
width: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./sentry-
|
|
1
|
+
import"./sentry-Jm7O5sR0.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]="459d6150-40e4-4fe0-88f2-7336312ca00a",e._sentryDebugIdIdentifier="sentry-dbid-459d6150-40e4-4fe0-88f2-7336312ca00a")}catch{}})();function d(e,t){if(t!=null)return e.find((n=>n.qboId===t))}function i(e,t){return e.filter((n=>n.qboId!=null&&t.includes(n.qboId)))}function s(e,t){return t.map((n=>({accountId:d(e,n.accountId.selectedOption)?.accountId??"",expenseType:n.expenseType.selectedOption??"",type1099:n.type1099.selectedOption??"",boxType:n.boxType.selectedOption??""})))}export{i as a,d as g,s as m};
|