@zeniai/web-app-ui 5.3.31-next → 5.3.31-qa
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/AccountMappingScreen-CupMTigH.js +9 -0
- package/dist/assets/AddressRoutes-Dl9VBt3Q.js +1 -0
- package/dist/assets/{AddressScreen-DABWioDo.js → AddressScreen-7Rdc5zR7.js} +2 -2
- package/dist/assets/{AiCfoScreen-C6rCfTGT.js → AiCfoScreen-DVQ_t0c7.js} +1 -1
- package/dist/assets/{AppDrawer-BpbvdDLm.js → AppDrawer-Byg2zZqD.js} +3 -3
- package/dist/assets/{BillPayApprovalRoutes-Cmc_HgEW.js → BillPayApprovalRoutes-CgUppIio.js} +1 -1
- package/dist/assets/{BillPayRoutes-BABmRhm7.js → BillPayRoutes-CXKpK2bJ.js} +18 -18
- package/dist/assets/BusinessVerificationPageScreen-BFOteU2M.js +9 -0
- package/dist/assets/{CardsAiCfoScreen-M8CfBozB.js → CardsAiCfoScreen-v5tU-ZfS.js} +2 -2
- package/dist/assets/{ChargeCardRoutes-CwfEA-XD.js → ChargeCardRoutes-DwymVb62.js} +7 -7
- package/dist/assets/CompanyPassportScreen-utB7lZkj.js +1 -0
- package/dist/assets/ConnectionAuthScreen-BwakY8o8.js +11 -0
- package/dist/assets/CustomerOnboardingAuthScreen-B6op5KAk.js +1 -0
- package/dist/assets/CustomerOnboardingRoutes-saQzhNA9.js +30 -0
- package/dist/assets/{DashboardRoutes-Dhl22-a2.js → DashboardRoutes-BuLifRpO.js} +3 -3
- package/dist/assets/{DefaultTenantHome-BEXYkQfC.js → DefaultTenantHome-CylRFvvL.js} +1 -1
- package/dist/assets/DomesticWireDetailScreen-DTFcVLoj.js +18 -0
- package/dist/assets/{DrawerScreen-mgSqnbLE.js → DrawerScreen-DqtmYrs5.js} +1 -1
- package/dist/assets/EntityDetailRoutes-B8mP-6X6.js +1 -0
- package/dist/assets/{ExpenseAutomationRoutes-D8xRf3tj.js → ExpenseAutomationRoutes-Bc3GNKNu.js} +4 -4
- package/dist/assets/FeaturePreviewScreen-D0Rb49Tz.js +1 -0
- package/dist/assets/HubSpotOAuthCallbackScreen-sTCS8f4W.js +1 -0
- package/dist/assets/{InboxNotificationsProvider-BzQISC6s.js → InboxNotificationsProvider-h7_KMFLu.js} +1 -1
- package/dist/assets/{InvoicingRoutes-n19UtnGB.js → InvoicingRoutes-LWSyD852.js} +2 -2
- package/dist/assets/{MagicLinkRoutes-C0dABmOd.js → MagicLinkRoutes-D0kKwc7o.js} +7 -7
- package/dist/assets/MagicLinkSignInScreen-Cdra0aq0.js +12 -0
- package/dist/assets/MobileAppDrawer-8-nkE7E_.js +1 -0
- package/dist/assets/NotFoundScreen-CRI1U8Gu.js +1 -0
- package/dist/assets/NotificationRoutes-CQy37hN8.js +1 -0
- package/dist/assets/OAuthConsentScreen-CZkNJkg-.js +1 -0
- package/dist/assets/{PandLWithForecastRoutes-Bpdm61h0.js → PandLWithForecastRoutes-DukUJSBr.js} +1 -1
- package/dist/assets/{PaymentLinkScreen-xYlmE0b0.js → PaymentLinkScreen-rlQGHJ7n.js} +4 -4
- package/dist/assets/PeopleRoutes-BgwOdyXO.js +22 -0
- package/dist/assets/PerformanceRoutes-svyo7Mn4.js +1 -0
- package/dist/assets/{Preview-Df0Evw69.js → Preview-COZy1LeJ.js} +1 -1
- package/dist/assets/QBOConnectionScreen-EiJ0MTW6.js +100 -0
- package/dist/assets/ReimbursementApprovalRoutes-DTdueNi4.js +1 -0
- package/dist/assets/ReimbursementApprovalRuleDetailScreen-D4A6S06R.js +1 -0
- package/dist/assets/ReimbursementRoutes-Dm7xLzMf.js +68 -0
- package/dist/assets/{ReportsRoutes-DU2ZkUlY.js → ReportsRoutes-2q9mo0td.js} +1 -1
- package/dist/assets/RewardsRoutes-DFx8wKNx.js +1 -0
- package/dist/assets/ScreenRoutes-BrzOIxxI.js +2 -0
- package/dist/assets/{SettingsRoutes-BCZ9b82a.js → SettingsRoutes-kSj24ojj.js} +7 -7
- package/dist/assets/{SetupPagesScreen-EOP6chTr.js → SetupPagesScreen-DkEKEkoW.js} +5 -5
- package/dist/assets/SignInScreen-DwAgsq79.js +1 -0
- package/dist/assets/SignOutScreen-BTQOfvWQ.js +9 -0
- package/dist/assets/TaskListScreen-DoPq1Pre.js +9 -0
- package/dist/assets/TaskRoutes-BBHdJCV8.js +9 -0
- package/dist/assets/TransactionDetailRoutes-DJS8unhL.js +1 -0
- package/dist/assets/{TransactionDetailScreen-D_LA5Rwt.js → TransactionDetailScreen-DSG2Y77G.js} +2 -2
- package/dist/assets/TransactionListRoutes-COZhDXG5.js +1 -0
- package/dist/assets/TreasuryRoutes-_vkK34r4.js +37 -0
- package/dist/assets/{VendorsRoutes-BcyXx4f8.js → VendorsRoutes-B5aggVlr.js} +20 -20
- package/dist/assets/WiseConfirmationScreen-QsG4fbOf.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-DjdSRB-H.js → ZeniAccountRoutes-DhzDRtko.js} +9 -9
- package/dist/assets/ZeniAccountStatementScreen-DJS9ac9i.js +9 -0
- package/dist/assets/{accountMappingHelper-uI5S9sNL.js → accountMappingHelper-BxM8NKmK.js} +1 -1
- package/dist/assets/{analytics-F_dCijCm.js → analytics-Dx2eSpQ1.js} +1 -1
- package/dist/assets/{analyticsHelper-ChcFnIcs.js → analyticsHelper-QOEKWZjs.js} +1 -1
- package/dist/assets/{core-CesISa_L.js → core-BGEbI5zp.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-B3NnThvD.js → decodeURIComponentSafe-BTr9m2j1.js} +1 -1
- package/dist/assets/{dnd-C6bwm0uz.js → dnd-T8ObM0YX.js} +1 -1
- package/dist/assets/{empty-BK615K_3.js → empty-C3MaU6LT.js} +1 -1
- package/dist/assets/{empty-BU4Pahc0.js → empty-jTv5TCv9.js} +1 -1
- package/dist/assets/{emptyVideoElement-QDsEpnXc.js → emptyVideoElement-CnJKBKUj.js} +1 -1
- package/dist/assets/epic-yA5r9KNk.js +2 -0
- package/dist/assets/{expenseAutomationHelper-DdnrNMTR.js → expenseAutomationHelper-DH2BthMK.js} +1 -1
- package/dist/assets/{getLocaleForTenant-ncGMGLNW.js → getLocaleForTenant-ml8Lv4yj.js} +1 -1
- package/dist/assets/{index-sDiXLM_h.js → index-BDlkSmee.js} +1 -1
- package/dist/assets/{index-7hjKN-OX.js → index-CMDDlNB5.js} +1 -1
- package/dist/assets/{index-D7arCk2M.js → index-CbVCjNrX.js} +31275 -30310
- package/dist/assets/{index-JzuRLp4p.js → index-DAcZO5Zt.js} +2 -2
- package/dist/assets/{index-8KWy0lu6.js → index-DIzh5z1j.js} +1 -1
- package/dist/assets/{index-CQe5P8WB.js → index-Dkf-udtu.js} +1 -1
- package/dist/assets/{index-D4vxEYY4.js → index-DqqFDBxB.js} +1 -1
- package/dist/assets/{index-C6jF5Obg.js → index-Dzir2W9N.js} +1 -1
- package/dist/assets/{lexical-BnZJ_Q_K.js → lexical-DnYH35PF.js} +1 -1
- package/dist/assets/{liveblocks-CrgMd6cu.js → liveblocks-KCYiRihD.js} +1 -1
- package/dist/assets/{lottie-CKWYnB4Q.js → lottie-BxK0tlAD.js} +1 -1
- package/dist/assets/{mui-DBCQIIXU.js → mui-cunrsbJu.js} +1 -1
- package/dist/assets/{pathToGoBack-gghVNE3r.js → pathToGoBack-7_nkp6kb.js} +1 -1
- package/dist/assets/{pdf-CPWsdPSJ.js → pdf-Bh4iBuik.js} +3 -3
- package/dist/assets/{pdf-lib-BBXjnQzB.js → pdf-lib-DDl0uYOp.js} +1 -1
- package/dist/assets/{plaid-nYfe67yC.js → plaid-D11-YUGV.js} +1 -1
- package/dist/assets/{pusher-BLnFEKgX.js → pusher-C1UmEW13.js} +1 -1
- package/dist/assets/{react-Cr62yEeY.js → react-BbnwHKyH.js} +1 -1
- package/dist/assets/{react-BBnhVvFM.js → react-BjynOnaH.js} +1 -1
- package/dist/assets/{react-BH8C9JXq.js → react-Bn1nTL0Z.js} +1 -1
- package/dist/assets/{react-GyNCgvQJ.js → react-CuAw85RE.js} +1 -1
- package/dist/assets/{react-DMGUYxKK.js → react-DPeHJRL0.js} +1 -1
- package/dist/assets/{react-B_eo67KW.js → react-Yy-vKtml.js} +1 -1
- package/dist/assets/{recharts-Bsi9TAsl.js → recharts-BoHacKM2.js} +1 -1
- package/dist/assets/{routePaths-Da5NL2pW.js → routePaths-BROTkNnk.js} +1 -1
- package/dist/assets/{sentry-C0JeJOxU.js → sentry-KGOKqyMP.js} +1 -1
- package/dist/assets/url-B1PKD80i.js +6 -0
- package/dist/assets/{url-TS5h_3Yv.js → url-UrJjK7No.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-DEZ358c2.js → useAiCfoDashboardSuggestedQuestionsChips-DWsRFeM1.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-Y-q0D3Y1.js +1 -0
- package/dist/assets/{useChargeCardPusherEvents-BHH6XZRm.js → useChargeCardPusherEvents-BTVOrrSC.js} +1 -1
- package/dist/assets/{useDeviceId-Dkib5aJx.js → useDeviceId-Ce2HXhr6.js} +1 -1
- package/dist/assets/useEmailConnectResultRefresh-kJ8vXxJr.js +1 -0
- package/dist/assets/{useInitialThreadRequest-DwaKOz44.js → useInitialThreadRequest-D9NMMqdc.js} +1 -1
- package/dist/assets/useTaskManagerAccess-COaL31tN.js +1 -0
- package/dist/assets/utils-Ckdq4DN5.js +36 -0
- package/dist/assets/{withTransactionSidePanel-qDIN4nKR.js → withTransactionSidePanel-CZenmQPT.js} +2 -2
- package/dist/assets/{zeni-epic-state-B9V6b-sD.js → zeni-epic-state-d5rZdIxa.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/AccountMappingScreen-UrK9tRbM.js +0 -9
- package/dist/assets/AddressRoutes-DxH_ava2.js +0 -1
- package/dist/assets/BusinessVerificationPageScreen-BVTBy_NH.js +0 -9
- package/dist/assets/CompanyPassportScreen-45xG8rzd.js +0 -1
- package/dist/assets/ConnectionAuthScreen-BXoS0E4O.js +0 -11
- package/dist/assets/CustomerOnboardingAuthScreen-Ck-b5wn8.js +0 -1
- package/dist/assets/CustomerOnboardingRoutes-NbUwP2i4.js +0 -30
- package/dist/assets/DomesticWireDetailScreen-DhuGx2JM.js +0 -18
- package/dist/assets/EntityDetailRoutes-CwRaBzZh.js +0 -1
- package/dist/assets/FeaturePreviewScreen-mBMqdh0l.js +0 -1
- package/dist/assets/HubSpotOAuthCallbackScreen-aP0Pvjj3.js +0 -1
- package/dist/assets/MagicLinkSignInScreen-2ydReiC6.js +0 -12
- package/dist/assets/MobileAppDrawer-DWfh55e9.js +0 -1
- package/dist/assets/NotFoundScreen-DBpwqY1S.js +0 -1
- package/dist/assets/NotificationRoutes-C_Wu_QQd.js +0 -1
- package/dist/assets/OAuthConsentScreen-Bv6-abMp.js +0 -1
- package/dist/assets/PeopleRoutes-CzEtg-zt.js +0 -22
- package/dist/assets/PerformanceRoutes-DRyT5mzt.js +0 -1
- package/dist/assets/QBOConnectionScreen-CfxNJwBb.js +0 -100
- package/dist/assets/ReimbursementApprovalRoutes-p3cuLrFT.js +0 -1
- package/dist/assets/ReimbursementApprovalRuleDetailScreen-CdYfHOlM.js +0 -1
- package/dist/assets/ReimbursementRoutes-iVI2y2XY.js +0 -68
- package/dist/assets/RewardsRoutes-Cif2_D0W.js +0 -1
- package/dist/assets/ScreenRoutes-DVrtUBAU.js +0 -2
- package/dist/assets/SignInScreen-CkGTMLnN.js +0 -1
- package/dist/assets/SignOutScreen-DeeRr6fj.js +0 -9
- package/dist/assets/TaskListScreen-BX4DNneN.js +0 -9
- package/dist/assets/TaskRoutes-BwnsJ23B.js +0 -9
- package/dist/assets/TransactionDetailRoutes-Bgi9E7C2.js +0 -1
- package/dist/assets/TransactionListRoutes-DfOdGVQy.js +0 -1
- package/dist/assets/TreasuryRoutes-D3fXeGra.js +0 -37
- package/dist/assets/WiseConfirmationScreen-CqqBK3x9.js +0 -12
- package/dist/assets/ZeniAccountStatementScreen-DmMMy7PA.js +0 -9
- package/dist/assets/epic-DK8B_Vh6.js +0 -2
- package/dist/assets/url-oDWzN2ME.js +0 -6
- package/dist/assets/useAskAiCfoHostNavButtonProps-JCPjjF9P.js +0 -1
- package/dist/assets/useEmailConnectResultRefresh-DAfemXhZ.js +0 -1
- package/dist/assets/useTaskManagerAccess-CCBB-yeF.js +0 -1
- package/dist/assets/utils-DTqrFXzb.js +0 -36
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{m as mt,a as lt,n as ft,j as N}from"./liveblocks-KCYiRihD.js";import ut from"./NotFoundScreen-CRI1U8Gu.js";import{a as k}from"./sentry-KGOKqyMP.js";import{h as ht,g as pt,i as kt,u as gt,j as S,l as St,n as bt,o as W}from"./core-BGEbI5zp.js";import{cz as It,Te as Y,fB as H,g_ as Tt,Ti as b,a09 as Q,Tm as m,Td as E,zJ as j,Fp as Ct,a0a as yt,Tc as Et,To as At,zO as _t,a0b as F,br as $,gd as x,zS as X,a0c as Nt,cL as Bt,cE as wt}from"./zeni-epic-state-d5rZdIxa.js";import{ao as xt,c as vt,O as Rt,y as Dt,aq as Pt,dI as Gt,p as B,dJ as Ut,w as Mt,dK as Ft,i as $t,a2 as jt}from"./index-CbVCjNrX.js";import"./mui-cunrsbJu.js";import{u as Vt}from"./useAskAiCfoHostNavButtonProps-Y-q0D3Y1.js";import{u as zt}from"./useTaskManagerAccess-COaL31tN.js";import"./recharts-BoHacKM2.js";import"./analytics-Dx2eSpQ1.js";import"./plaid-D11-YUGV.js";import"./dnd-T8ObM0YX.js";import"./stripe-cKAAJElX.js";import"./lottie-BxK0tlAD.js";import"./lexical-DnYH35PF.js";import"./pdf-Bh4iBuik.js";import"./utils-Ckdq4DN5.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new t.Error().stack;l&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[l]="e4587881-5996-4727-b331-94277a0a83e6",t._sentryDebugIdIdentifier="sentry-dbid-e4587881-5996-4727-b331-94277a0a83e6")}catch{}})();const Lt=(t,l)=>new Promise(((n,h)=>{const g=t.map((c=>new Promise((s=>{l(c),s()}))));Promise.all(g).then((()=>{setTimeout((()=>{n()}),2e3)})).catch((c=>{h(c)}))})),qt=St((function(t,l){const n=Y(t),{signedInUser:h,isDebitCardFeatureEnabled:g,isTaskManagerAccessEnabled:c}=l,s=b(t),f=H(t),{currentTab:I}=s;return{notificationView:s,isNotificationSettingsVisible:h.userEmail!=null&&At(n.notificationSettings,h.userEmail,g,f,c),isDisabled:s.notificationDetailsByTab[I].fetchState==="In-Progress"?"disabled":void 0}}),(function(t,l){const{location:n,tenantEmailDomain:h,loggedInUserRoleMap:g,externalNotificationsUnreadCount:c,allUnreadCommentsNotificationIds:s,navigate:f,markInboxNotificationAsRead:I,fetchMoreCommentsNotifications:R}=l;return{onNotificationClick:(a,o,d,r)=>{if(r==="task_deleted"){const i=`/${h}/tasks`,T=B(n.state?.pathnameStackToGoBack,n.pathname);f(i,{state:{pathnameStackToGoBack:T,message:"triggerBackClick"}})}else{const i=`/${h}/tasks/${o}`,T=B(n.state?.pathnameStackToGoBack,n.pathname);f(i,{state:{pathnameStackToGoBack:T,message:"triggerBackClick"}})}d==="unread"&&t(X("task_manager","read",[a],!1))},onCommentNotificationClick:(a,o,d)=>{const r=o.toString().split(`/${h}/`);if(r[1]!=null){d==="unread"&&(I(a),t(F([a],$())));let i=`/${h}/${r[1]}`;const T=B(n.state?.pathnameStackToGoBack,n.pathname);r[1].startsWith("reimbursement")&&!Bt(g)&&(i="not-found"),r[1].startsWith("bill")&&!wt(g)&&(i="not-found"),f(i,{state:{pathnameStackToGoBack:T,message:"triggerBackClick"}})}},onUpdateNotificationViewUIState:(a,o)=>{t(E(a,o))},onUpdateNotificationTabState:(a,o)=>{t(m(a,o))},onUpdateNotificationViewCurrentTabAndSubTab:(a,o)=>{t(Q(a,o));const d=`../${a}`,r=B(n.state?.pathnameStackToGoBack,n.pathname);f(d,{state:{pathnameStackToGoBack:r}})},onUpdateNotificationViewSubTab:a=>{t(Nt(a))},onFetchMoreNotifications:(a,o)=>{if(a==="tasks"){const d=[];o==="all"?d.push("read","unread"):o!=="mentions"&&d.push(o),t(j("task_manager","dashboard",d))}else R?.()},onUpdateNotificationStatus:(a,o,d,r)=>{a==="tasks"?t(X("task_manager",d,r)):(t(m({markAsReadState:{fetchState:"In-Progress",error:void 0}},"comments")),Promise.all(r.map((i=>{d==="read"&&(I(i),t(F([i],$())))}))).then((()=>{t(m({markAsReadState:{fetchState:"Completed",error:void 0},selectedNotificationIds:[]},"comments")),t(E({unreadCount:c-r.length>0?c-r.length:0},"comments")),t(x({messageSection:"notification_mark_as_read",messageText:"success",type:"success",showStatusIcon:!0}))}),(i=>{t(m({markAsReadState:{fetchState:"Error",error:i}},"comments")),t(x({messageSection:"notification_mark_as_read",messageText:"failed",type:"error",showStatusIcon:!0}))})).catch((i=>{t(m({markAsReadState:{fetchState:"Error",error:i}},"comments")),t(x({messageSection:"notification_mark_as_read",messageText:"failed",type:"error",showStatusIcon:!0}))})))},onMarkAllNotificationsAsRead:a=>{a==="tasks"?t(_t("task_manager","read")):(t(m({markAsAllReadState:{fetchState:"In-Progress",error:void 0}},"comments")),Lt(s,I).then((()=>{t(F(s,$())),t(m({markAsAllReadState:{fetchState:"Completed",error:void 0}},"comments")),t(E({unreadCount:0},"comments")),t(x({messageSection:"notification_mark_as_read",messageText:"success",type:"success",showStatusIcon:!0}))})).catch((o=>{t(m({markAsAllReadState:{fetchState:"Error",error:o}},"comments")),t(x({messageSection:"notification_mark_as_read",messageText:"failed",type:"error",showStatusIcon:!0}))})))},onBackClick:()=>{const a=jt(n.state?.pathnameStackToGoBack),o=a.poppedPathname??"../../dashboard";f(o,{state:{pathnameStackToGoBack:a.newStack}})},onSettingsClick:()=>{const a=B(n.state?.pathnameStackToGoBack,n.pathname);f("../../settings/notifications",{state:{pathnameStackToGoBack:a}})}}}))(Mt(Ft)),Ot=()=>{const t=ht(),l=pt(),{tenantEmailDomain:n,selectedTab:h}=kt(),{areTenantIdsInSync:g}=xt(),c=It(h??""),s=gt(),f=vt(),[I,R]=k.useState(!1),a=S((e=>Y(e))),o=S((e=>H(e))),{useFeatureGate:d}=Rt(),{isFeatureEnabled:r}=d(Dt.isDebitCardFeatureEnabled),{isAiCfoAccessEnabled:i,onAskAiCfoClick:T}=Vt({mobileExploreReferrer:"Notifications"});Pt({isDataReady:!0});const Z=Tt(o.userRole);if(o==null||n==null||o.companyId==null)throw Error("Can't access notifications page without current tenant...");if(f==null)throw Error("Can't access notifications page without signed in...");const V=S((e=>b(e).notificationDetailsByTab.tasks.fetchState)),z=S((e=>b(e).currentTab)),D=S((e=>b(e).currentSubTab)),tt=S((e=>b(e).notificationDetailsByTab.comments.fetchCountState)),P=S((e=>b(e).notificationDetailsByTab.comments.fetchState)),et=S((e=>b(e).notificationDetailsByTab.comments.uiState.unreadCount)),at=S((e=>b(e).allExternalNotifications)).filter((e=>e.inboxNotification.readAt==null)).map((e=>e.inboxNotification.id)),ot=Gt().allUsers,{inboxNotifications:w,isLoading:A,hasFetchedAll:C,isFetchingMore:G,fetchMore:st}=mt(),{threads:L,isLoading:q,fetchMore:O,isFetchingMore:J,hasFetchedAll:K}=lt({query:{metadata:{companyId:o.companyId,application:"dashboard"}}});k.useEffect((()=>{if(z!==c&&c!=null&&s(Q(c)),c==null){const e=`../${z}`,p=B(l.state?.pathnameStackToGoBack,l.pathname);t(e,{state:{pathnameStackToGoBack:p}})}}),[c]),k.useEffect((()=>{tt.fetchState==="Not-Started"&&s(m({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))}),[]),k.useEffect((()=>{if(A===!1&&C===!0&&o?.companyId!=null&&w!=null){const e=`dashboard_${o.companyId}`,p=w.filter((y=>y.roomId===e&&y.readAt==null)).length;s(m({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),s(E({unreadCount:p},"comments"))}}),[A,C]),k.useEffect((()=>{V!=="In-Progress"&&g&&s(j("task_manager","dashboard",["read","unread"]))}),[g]),k.useEffect((()=>{const e=setTimeout((()=>st?.()),0);return()=>clearTimeout(e)}));const U=A||G===!0||C!==!0||A||G===!0||C!==!0;k.useEffect((()=>{U&&P!=="In-Progress"?s(m({fetchState:"In-Progress",error:void 0},"comments")):U||P!=="In-Progress"||s(m({fetchState:"Completed",error:void 0},"comments"))}),[U,P]),k.useEffect((()=>{s(E({hasMore:C!==!0},"comments"))}),[C]),k.useEffect((()=>{a.fetchState!=="In-Progress"&&a.fetchState!=="Completed"&&I===!1&&(R(!0),s(Ct()))}),[a.fetchState]),k.useEffect((()=>{if(A===!1&&q===!1&&w!=null&&L!=null){const e=`dashboard_${o.companyId}`,p=w.filter((u=>u.roomId===e)).filter((u=>Ut(u.kind))),y=p.filter((u=>u.readAt==null)),_=p.map((u=>u.id)),ct=p.map((u=>{const M=L.find((dt=>{return dt.id===((v=u).kind==="thread"?v.threadId:"subjectId"in v?v.subjectId:void 0);var v}));return M!=null?{inboxNotification:{...u,threadId:M.id},thread:M}:(J||K===!0||O==null||O(),null)})).filter((u=>u!=null));s(m({allNotificationsIds:_},"comments")),s(E({totalCount:_.length,unreadCount:y.length},"comments")),s(yt(ct))}}),[A,G,J,C,K,q,w?.length]);const nt={events:o.userRoleId!=null?[`private-encrypted-${o.userRoleId}.dashboard-user-notification`]:[],eventCallback:(e,p)=>{if($t(p)){const y=Et(p.mode);if(y==="dashboard"&&s(E({unreadCount:p.data.unread},"tasks")),V!=="In-Progress"){const _=[];D==="all"?_.push("read","unread"):D!=="mentions"&&_.push(D),s(j("task_manager",y,_,!0))}}}},it=ft(),{isTaskManagerAccessEnabled:rt}=zt(f);return N.jsx(qt,{tenantEmailDomain:n,loggedInUserRoleMap:Z,signedInUser:f,externalNotificationsUnreadCount:et,location:l,navigate:t,isDebitCardFeatureEnabled:r,isTaskManagerAccessEnabled:rt,users:ot,markInboxNotificationAsRead:it,allUnreadCommentsNotificationIds:at,isAiCfoAccessEnabled:i,onAskAiCfoClick:T,...nt})};function me(){return N.jsxs(bt,{children:[N.jsx(W,{path:"/:selectedTab",element:N.jsx(Ot,{})}),N.jsx(W,{path:"*",element:N.jsx(ut,{})})]})}export{me as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as f}from"./liveblocks-KCYiRihD.js";import{a as r}from"./sentry-KGOKqyMP.js";import{u as A,g as P,j as o,N as j}from"./core-BGEbI5zp.js";import{TO as x,fB as C,gi as R,TP as z,TQ as D,TR as M,TS as L,pO as k,Sx as N}from"./zeni-epic-state-d5rZdIxa.js";import{z as h,af as I}from"./index-CbVCjNrX.js";import"./mui-cunrsbJu.js";import"./recharts-BoHacKM2.js";import"./analytics-Dx2eSpQ1.js";import"./plaid-D11-YUGV.js";import"./dnd-T8ObM0YX.js";import"./stripe-cKAAJElX.js";import"./lottie-BxK0tlAD.js";import"./lexical-DnYH35PF.js";import"./pdf-Bh4iBuik.js";import"./utils-Ckdq4DN5.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]="16dd0a8e-1340-4daa-9641-635e37c9391a",n._sentryDebugIdIdentifier="sentry-dbid-16dd0a8e-1340-4daa-9641-635e37c9391a")}catch{}})();function ee(){const n=A(),a=P(),{params:t,error:i}=r.useMemo((()=>x(a.search)),[a.search]),w=r.useMemo((()=>new URLSearchParams(a.search).get("client_name")??t?.clientId??"Unknown Application"),[a.search,t]),p=h.isSignedIn(),s=h.getSignedInUser(),m=o((e=>C(e))),l=o((e=>R(e))),d=o((e=>e.tenantState.fetchState)),y=o(z),S=o(D),u=o(M),[v,T]=r.useState(null),[E,b]=r.useState(null);r.useEffect((()=>{document.querySelector("#app-shell-loader")?.remove()}),[]),r.useEffect((()=>()=>{n(L())}),[n,a.search]),r.useEffect((()=>{i!=null&&console.warn("[OAuthConsent] invalid params:",i)}),[i]);const g=r.useRef(!1);r.useEffect((()=>{p&&s!=null&&!g.current&&(d!=="Not-Started"&&d!=="Error"||(g.current=!0,n(k(s.userId,s.zeniSessionId??void 0))))}),[p,s,d,n]),r.useEffect((()=>{u!=null&&u!==""&&(window.location.href=u)}),[u]);const _=r.useMemo((()=>{if(m?.tenantId!=null)return m.tenantId;const e=h.getActiveTenantForUser()?.tenantId;return e!=null&&l.some((U=>U.tenantId===e))?e:l.length===1?l[0].tenantId:null}),[m?.tenantId,l]),c=v??_;return i!=null?f.jsx(I,{variant:"invalid_params",paramsError:i}):p?f.jsx(I,{variant:"signed_in",clientName:w,userEmail:s?.userEmail,isInitializing:d!=="Completed",tenants:l,selectedTenantId:c,onSelectTenant:T,approveError:E??S,isApproving:y==="In-Progress",showAllowButton:c!=null,onApprove:()=>{t!=null&&s!=null&&c!=null&&n(N(s.userId,s.zeniSessionId??void 0,c,t.clientId,t.redirectUri,t.codeChallenge,t.codeChallengeMethod,t.state,t.responseType))},onDeny:()=>{if(t!=null)try{const e=new URL(t.redirectUri);e.searchParams.set("error","access_denied"),e.searchParams.set("error_description","The user denied the request"),e.searchParams.set("state",t.state),window.location.href=e.toString()}catch{b("Unable to deny: redirect_uri is not a valid URL. Close this window or contact support.")}}}):f.jsx(j,{to:"/signin/auth",state:{origin:a.pathname+a.search},replace:!0})}export{ee as default};
|
package/dist/assets/{PandLWithForecastRoutes-Bpdm61h0.js → PandLWithForecastRoutes-DukUJSBr.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as n}from"./liveblocks-
|
|
1
|
+
import{j as n}from"./liveblocks-KCYiRihD.js";import{h as J,u as K,g as Q,i as X,j as d,l as Z,n as ee,o as C}from"./core-BGEbI5zp.js";import{fB as M,zu as R,us as ae,UF as w,un as y,bq as te,b_ as se,uo as oe,UG as re,Un as S,e8 as ne,Dg as ce,UH as ie,DE as le,dV as de,dU as me}from"./zeni-epic-state-d5rZdIxa.js";import{ag as fe,z as pe,ao as ue,aq as he,V as ge,O as q,y as B,a6 as Fe,h as _,aB as be,p as Ie}from"./index-CbVCjNrX.js";import"./mui-cunrsbJu.js";import Ce from"./NotFoundScreen-CRI1U8Gu.js";import{F as Se}from"./FeaturePreviewScreen-D0Rb49Tz.js";import{a as g}from"./sentry-KGOKqyMP.js";import{u as ye}from"./useAskAiCfoHostNavButtonProps-Y-q0D3Y1.js";import{u as Te}from"./useInitialThreadRequest-D9NMMqdc.js";import{t as De}from"./routePaths-BROTkNnk.js";import{M as Ae}from"./MobileAppDrawer-8-nkE7E_.js";import"./recharts-BoHacKM2.js";import"./analytics-Dx2eSpQ1.js";import"./plaid-D11-YUGV.js";import"./dnd-T8ObM0YX.js";import"./stripe-cKAAJElX.js";import"./lottie-BxK0tlAD.js";import"./lexical-DnYH35PF.js";import"./pdf-Bh4iBuik.js";import"./utils-Ckdq4DN5.js";import"./InboxNotificationsProvider-h7_KMFLu.js";import"./useTaskManagerAccess-COaL31tN.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new s.Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="bcab5081-9e6f-40ee-ad70-3f86b739c710",s._sentryDebugIdIdentifier="sentry-dbid-bcab5081-9e6f-40ee-ad70-3f86b739c710")}catch{}})();const T=(s,e,a,o)=>{if(s!=e){const r=o??"";s!=null&&s.length>0?a(`../${e}${r}`,{replace:!0}):a(`${e}${r}`,{replace:!0})}},xe=Z((function(s){const e=re(s),a={},o=e.pandLReportWithForecast.uiState.nodeCollapseState;return Object.keys(o).forEach((r=>{a[r]=o[r]===!1})),{selectedTimeframe:e.selectedTimeframe,isForecastVsActualOn:e.isForecastVsActualOn,compareMode:e.compareMode,forecastList:e.forecastList,selectedForecast:e.selectedForecast,pandLreport:e.pandLReportWithForecast,scrollPosition:e.pandLReportWithForecast.uiState.scrollPosition,nodeOpenStatus:a,type:"name+balances_forecast",analytics:_}}),(function(s,e){return{onForecastSelectionChanged:(a,o)=>{s(w(a,o)),e.isPandLReportFetched(a)||s(y(a)),T(e.forecastIdFromUrlPath,a,e.navigate)},onTimeframeChanged:a=>{s(le(a))},onForecastVsActualsCompareToggle:a=>{s(ie(a)),s(S({forecastId:e.forecastIdFromUrlPath,scrollPosition:{scrollLeft:0,scrollTop:0}}))},onCompareModeChanged:a=>{s(ce(e.firstMonthOfFY,a,0,[]))},onAccountBalanceClick:e.hasTransactionAccess!==!0?void 0:(a,o)=>{let r,c;const p=a.accountName===""?a.accountDescription:a.accountName;if(o.balanceTimeFrame==="month"||o.balanceTimeFrame==="quarter"?(r=o.balanceTimeFrame,c=ne(o)):o.balanceTimeFrame==="year"?(r="quarter",c={startDate:o.endDate.startOf("quarter"),endDate:o.endDate}):console.error(`timeframe ${o.balanceTimeFrame} is not supported`),c!=null&&r!=null){const u=De(e.tenantEmailDomain,a.accountId,a.accountType,p,r,c),m=Ie(e.location.state?.pathnameStackToGoBack,e.location.pathname);e.navigate(u,{state:{pathnameStackToGoBack:m,referrer:"Forecast"}})}},onNodeCollapseToggled:(a,o)=>{s(S({forecastId:e.forecastIdFromUrlPath,nodeCollapseState:{nodeId:a,isCollapsed:o===!1}}))},onTableScroll:a=>{s(S({forecastId:e.forecastIdFromUrlPath,scrollPosition:a}))},onBackClick:()=>{e.navigate("../../")}}}))(be);function v(){const s=fe(),e=J(),a=K(),o=Q(),{forecastId:r,tenantEmailDomain:c}=X(),[p,u]=g.useState(!1),[m,D]=g.useState(!1),F=pe.getSignedInUser(),A=d((t=>M(t))),G=A.company?.companyInfo.firstMonthOfFY??1,i=d((t=>R(t.forecastState,t.forecastListState))),l=d((t=>t.forecastListState.fetchState==="Completed")),x=d((t=>t.profitAndLossState)),j=d((t=>t.reportUIOptionsState.selectedForecast)),E=t=>x.pandLByForecastID[t]!=null&&oe(t,x).reducedAllFetchState.fetchState==="Completed",{areTenantIdsInSync:b}=ue();he({isDataReady:l});const{isAiCfoAccessEnabled:N,onAskAiCfoClick:V}=ye({mobileExploreReferrer:"Forecast"});g.useEffect((()=>{if(!p&&b)u(!0),l||a(ae());else if(l&&!m){D(!0);const t=((f,P,O)=>P!=null?f.forecasts.findIndex((I=>I.id===P)):O!=null?f.forecasts.findIndex((I=>I.id===O)):f.forecasts.length>0?0:-1)(i,r,j?.id);t===-1&&r!=null?e("page-not-found",{replace:!0}):t!==-1&&t!=j?.index?(a(w(i.forecasts[t].id,t)),T(r,i.forecasts[t].id,e,o.search)):r==null&&t!==-1&&T(void 0,i.forecasts[t].id,e,o.search),t!==-1&&!E(i.forecasts[t].id)&&b&&a(y(i.forecasts[t].id))}}),[p,u,a,l,i,m,D,R,y,b]);const U=ge(),$=U?.loggedInUserRole!=null&&te(U.loggedInUserRole),{useFeatureGate:W}=q(),{isFeatureEnabled:k}=W(B.isReportsCommentingEnabled),Y=Te(k?A?.companyId:void 0,{clearParams:l&&m}),[z,H]=g.useState(!1),h=new URL(s("forecast_pandl"));h.searchParams.set("firstname",F?.firstName??""),h.searchParams.set("lastname",F?.lastName??""),h.searchParams.set("email",F?.userEmail??"");const L=t=>{H(t)};return n.jsxs(n.Fragment,{children:[l?n.jsx(Fe,{analytics:_,onLoad:t=>(f=>f.trackForecast())(t)}):null,n.jsx(Ae,{isAppContentDrawerOpen:z,handleDrawerToggle:L}),n.jsx(xe,{firstMonthOfFY:G,tenantEmailDomain:c,forecastIdFromUrlPath:r,navigate:e,location:o,isPandLReportFetched:E,meetingUrl:se(h.toString()),hasTransactionAccess:$,isAiCfoAccessEnabled:N,onAskAiCfoClick:V,isReportsCommentingEnabled:k,initialOpenThreadRequest:Y,onClickMenuIcon:()=>{L(!0)}})]})}function Ke(){const s=d((c=>M(c))),{useFeatureGate:e}=q(),{isFeatureEnabled:a}=e(B.isDebitCardFeatureEnabled),o=de(a,s),r=me(s);return o===!0||r===!0?n.jsx(Se,{}):n.jsxs(ee,{children:[n.jsx(C,{path:"/",element:n.jsx(v,{})}),n.jsx(C,{path:"/:forecastId",element:n.jsx(v,{})}),n.jsx(C,{path:"/:forecastId/*",element:n.jsx(Ce,{})})]})}export{Ke as default};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import{j as r}from"./liveblocks-
|
|
1
|
+
import{j as r}from"./liveblocks-KCYiRihD.js";import{a as p}from"./sentry-KGOKqyMP.js";import{D as c,F as a,a7 as m,ab as f,ac as h}from"./index-CbVCjNrX.js";import"./mui-cunrsbJu.js";import{i as y}from"./core-BGEbI5zp.js";import"./zeni-epic-state-d5rZdIxa.js";import"./recharts-BoHacKM2.js";import"./analytics-Dx2eSpQ1.js";import"./plaid-D11-YUGV.js";import"./dnd-T8ObM0YX.js";import"./stripe-cKAAJElX.js";import"./lottie-BxK0tlAD.js";import"./lexical-DnYH35PF.js";import"./pdf-Bh4iBuik.js";import"./utils-Ckdq4DN5.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]="9e1047ae-8849-4c6d-8923-2d42943e2912",e._sentryDebugIdIdentifier="sentry-dbid-9e1047ae-8849-4c6d-8923-2d42943e2912")}catch{}})();const g=c("div")`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
5
5
|
min-height: 100vh;
|
|
6
6
|
background-color: ${e=>e.theme.colors.grey4};
|
|
7
|
-
`,
|
|
7
|
+
`,k=c("header")`
|
|
8
8
|
flex-shrink: 0;
|
|
9
9
|
padding: ${a.sp3} ${a.sp4};
|
|
10
|
-
`,
|
|
10
|
+
`,b=c(m)`
|
|
11
11
|
width: ${a.sp4};
|
|
12
12
|
height: ${a.sp4};
|
|
13
13
|
color: ${e=>e.theme.colors.brandColorJade};
|
|
@@ -18,4 +18,4 @@ import{j as r}from"./liveblocks-CrgMd6cu.js";import{a as p}from"./sentry-C0JeJOx
|
|
|
18
18
|
align-items: center;
|
|
19
19
|
justify-content: center;
|
|
20
20
|
padding: ${a.sp4};
|
|
21
|
-
`;function j({children:e}){return r.jsxs(g,{"data-testid":"invoicing-collect-payment-layout",children:[r.jsx(
|
|
21
|
+
`;function j({children:e}){return r.jsxs(g,{"data-testid":"invoicing-collect-payment-layout",children:[r.jsx(k,{children:r.jsx(b,{"aria-label":"Zeni",role:"img"})}),r.jsx(x,{children:e})]})}class w extends Error{statusCode;constructor(t,o){super(t),this.name="PortalRequestError",this.statusCode=o}}function $(e,t){const o=(function(){const n=h?.invoicingMicroServiceBaseUrl;return`${n!=null&&n.length>0?n:""}/1.0`})(),s={namespace:e,token:t};async function i(n,u){const l=await fetch(`${o}${n}`,{body:JSON.stringify(u),headers:{"Content-Type":"application/json"},method:"POST"}),d=await l.json();if(!l.ok)throw new w(d.status?.message??`Request failed (${l.status}).`,l.status);return d.data}return{checkoutSession:()=>i("/portal/payment-link/checkout-session",s),plaidLinkToken:()=>i("/portal/payment-link/plaid-link-token",s),requestAccess:()=>i("/portal/payment-link/request-access",s),savePaymentMethod:n=>i("/portal/payment-link/payment-methods",{...s,...n}),session:()=>i("/portal/payment-link/session",s),setupIntent:()=>i("/portal/payment-link/setup-intent",s)}}function B(){const{namespace:e="",token:t=""}=y();p.useEffect((()=>{document.querySelector("#app-shell-loader")?.remove()}),[]);const o=p.useMemo((()=>$(e,t)),[e,t]);return r.jsx(j,{children:r.jsx(f,{portal:o})})}export{B as default};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import{j as a}from"./liveblocks-KCYiRihD.js";import{UB as re,fB as X,lX as G,dV as Y,dU as le,Rx as J,T_ as de,Cd as Pe,UC as N,C2 as je,Cn as Le,Ch as ce,C6 as pe,Cl as Te,Ci as ve,UD as ue,rI as Ae,g2 as Re,gA as Ve,UE as _,Ca as me,C9 as ge,Cq as Fe,c7 as Oe}from"./zeni-epic-state-d5rZdIxa.js";import{$ as fe,O as Q,y as H,z as K,f as Ce,I as he,ad as ye,ax as be,ay as Ue,a9 as Se,F,ae as we,G as q,az as Be,ao as Ze,aq as $e,a6 as ze,h as xe,N as _e,p as He,aA as Ge,V as Ke}from"./index-CbVCjNrX.js";import{D as De,n as M,S as Ie}from"./mui-cunrsbJu.js";import ae from"./NotFoundScreen-CRI1U8Gu.js";import{a as d}from"./sentry-KGOKqyMP.js";import{u as ee,i as qe,j as g,h as Me,g as We,l as Ne,n as se,o as z}from"./core-BGEbI5zp.js";import{u as Xe}from"./useAskAiCfoHostNavButtonProps-Y-q0D3Y1.js";import{M as Ye}from"./MobileAppDrawer-8-nkE7E_.js";import"./recharts-BoHacKM2.js";import"./analytics-Dx2eSpQ1.js";import"./plaid-D11-YUGV.js";import"./dnd-T8ObM0YX.js";import"./stripe-cKAAJElX.js";import"./lottie-BxK0tlAD.js";import"./lexical-DnYH35PF.js";import"./pdf-Bh4iBuik.js";import"./utils-Ckdq4DN5.js";import"./InboxNotificationsProvider-h7_KMFLu.js";import"./useTaskManagerAccess-COaL31tN.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]="a19994de-6c45-4bf8-b715-b45f0ba944fd",e._sentryDebugIdIdentifier="sentry-dbid-a19994de-6c45-4bf8-b715-b45f0ba944fd")}catch{}})();const Je={overlayWidth:new Se(100,100,48)},te=q.getLocalizedStrings().peoplePage.invitePage,ne=q.getLocalizedStrings().common,Qe=({companyId:e,managersListView:t,companyPassportView:c,classListView:n,mode:f,isEditPeopleDrawerOpen:i,closeDrawerHandler:b})=>{const C=fe(),m=ee(),[O,U]=d.useState(!1),[k,S]=d.useState(!1),{userId:w}=qe(),r=g((l=>re(l))),p=g((l=>X(l))),E=g((l=>G(l))),{useFeatureGate:D}=Q(),{isFeatureEnabled:I}=D(H.isDebitCardFeatureEnabled),P=Y(I,p),T=le(p),v=J(p),B=de(p),Z=!!p.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,x=!P&&E&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||c.fetchState!=="Completed"||e==null;if(K.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const h=()=>{m(N()),b()},A=()=>{O===!0?S(!0):h()},$=c.companyView?.controllers?.map((l=>l.user)),u=!!p.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:j}=D(H.isChargeCardFeatureEnabled),L=Ce(p,j,I),{isCardsHidden:R}=he(p?.tenantId),y=!L||R,V=p.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",s={peopleDetails:r,classList:n.classes,managersList:t.users,controllersList:$,mode:f,isZeniTenant:v,isAccountingClassesEnabled:E,isReimbursementDisabled:Z===!1,isZeniAccountsDisabled:u===!1,isChargeCardDisabled:y,isTreasuryDisabled:V===!1,isLiteRoleDisabled:B===!1,isBankingOnlyTenant:P,isCardsOnlyTenant:T,onResetClick:h,onDeleteUser:l=>{m(pe(l.userId,l.userRole.userRoleId))},onPeopleLocalDataUpdated:l=>{m(ce({peopleLocalData:l})),U(!0)},onSaveClick:()=>{m(f==="zeni_only"?je(e):Le(v))},onCloseClick:A,isLoading:x||r.person==null},o={onOkClick:()=>{S(!1),h()},onCancelClick:()=>{S(!1)}};return d.useEffect((()=>{x===!1&&w!=null&&m(Pe(w))}),[x,w]),d.useEffect((()=>{r.updatePersonState.fetchState==="Completed"&&h()}),[r.updatePersonState.fetchState]),a.jsx(De,{anchor:"right",open:i,PaperProps:{style:{width:Je.overlayWidth.valuePercentage(C),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:ye.overlayDark,cursor:"pointer"}}},onClose:A,children:a.jsxs(ea,{onClick:l=>l.stopPropagation(),children:[k===!0?a.jsx(be,{titleComponent:a.jsx(ke,{children:te.discardTitle}),descriptionComponent:a.jsx(Ee,{children:te.discardDescription}),primaryButtonText:ne.yes,secondaryButtonText:ne.no,action:o,isEditPopup:!0}):null,a.jsx(Ue,{...s})]})})},ea=M(Ie)`
|
|
2
|
+
display: flex;
|
|
3
|
+
min-height: 100%;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
`,ke=M(we.H6Regular)`
|
|
6
|
+
margin-top: ${F.sp7};
|
|
7
|
+
padding-left: ${F.sp8};
|
|
8
|
+
padding-right: ${F.sp8};
|
|
9
|
+
color: ${e=>e.theme.colors.primary};
|
|
10
|
+
word-break: break-word;
|
|
11
|
+
`,Ee=M(we.LargeRegularSp)`
|
|
12
|
+
color: ${e=>e.theme.colors.hero};
|
|
13
|
+
padding-left: ${F.sp8};
|
|
14
|
+
padding-right: ${F.sp8};
|
|
15
|
+
margin-bottom: 30px;
|
|
16
|
+
margin-top: ${F.sp4};
|
|
17
|
+
white-space: pre-line;
|
|
18
|
+
`,aa={overlayWidth:new Se(100,100,48)},oe=q.getLocalizedStrings().peoplePage.invitePage,ie=q.getLocalizedStrings().common,sa=({companyId:e,managersListView:t,companyPassportView:c,classListView:n,mode:f,isInvitePeopleDrawerOpen:i,closeDrawerHandler:b})=>{const C=fe(),m=ee(),[O,U]=d.useState(!1),[k,S]=d.useState(!1),w=g((o=>re(o))),r=g((o=>X(o))),p=g((o=>G(o))),{useFeatureGate:E}=Q(),{isFeatureEnabled:D}=E(H.isDebitCardFeatureEnabled),I=Y(D,r),P=le(r),T=J(r),v=de(r),B=!!r.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,Z=!I&&p&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||c.fetchState!=="Completed"||e==null;if(K.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const x=()=>{b(),m(N())},h=()=>{O===!0?S(!0):x()},A={onOkClick:()=>{S(!1),x()},onCancelClick:()=>{S(!1)}},$=c.companyView?.controllers.map((o=>o.user)),u=!!r.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:j}=E(H.isChargeCardFeatureEnabled),L=Ce(r,j,D),{isCardsHidden:R}=he(r?.tenantId),y=!L||R,V=r.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",s={classList:n.classes,managersList:t.users,controllersList:$,mode:f,isZeniTenant:T,onPeopleLocalDataUpdated:o=>{m(ce({peopleLocalData:o})),U(!0)},onResetClick:x,onSaveClick:()=>{m(f==="zeni_only"?Te(e):ve())},onCloseClick:h,peopleDetails:w,isAccountingClassesEnabled:p,isReimbursementDisabled:B===!1,isLiteRoleDisabled:v===!1,isZeniAccountsDisabled:u===!1,isChargeCardDisabled:y,isTreasuryDisabled:V===!1,isBankingOnlyTenant:I,isCardsOnlyTenant:P,isLoading:Z};return d.useEffect((()=>{w.invitePersonState.fetchState==="Completed"&&(b(),m(N()))}),[w.invitePersonState.fetchState]),a.jsx(De,{anchor:"right",open:i,PaperProps:{style:{width:aa.overlayWidth.valuePercentage(C),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:ye.overlayDark,cursor:"pointer"}}},onClose:h,children:a.jsxs(ta,{onClick:o=>o.stopPropagation(),children:[k===!0?a.jsx(be,{titleComponent:a.jsx(ke,{children:oe.discardTitle}),descriptionComponent:a.jsx(Ee,{children:oe.discardDescription}),primaryButtonText:ie.yes,secondaryButtonText:ie.no,action:A}):null,a.jsx(Be,{...s})]})})},ta=M(Ie)`
|
|
19
|
+
display: flex;
|
|
20
|
+
min-height: 100%;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
`,na=Ne((function(e,t){const c=ue(e),n=K.getSignedInUser();return{data:c,loggedinUserId:n?.userId??"",isZeniTenant:t.isZeniTenant===!0,shouldFetchClasses:t.shouldFetchClasses,isZeniAdminUser:n?.userEmailDomain==="zeni.ai"&&t.isZeni===!0,isAccountingClassesEnabled:G(e),analytics:xe}}),(function(e,t){const{navigate:c,companyId:n,shouldFetchClasses:f}=t;return{personAction:{onPersonDelete:(i,b)=>{e(pe(i,b))},onResendInvite:i=>{e(Fe(i))},onReloadPeople:()=>{e(me()),e(ge(n,f))},onBackClick:()=>{c("../../")},onModeChange:i=>{e(_({mode:i,searchText:"",sortKey:"name",sortOrder:"ascending"}))},onSearchTextChanged:i=>{e(_({searchText:i}))}}}}))(Ge);function W({isInvitePeopleDrawerOpen:e,isEditPeopleDrawerOpen:t}){const c=Me(),n=ee(),f=We(),{areTenantIdsInSync:i}=Ze(),b=K.getSignedInUser(),C=g((s=>X(s))),{useFeatureGate:m}=Q(),{isFeatureEnabled:O}=m(H.isDebitCardFeatureEnabled),U=g((s=>G(s))),k=!Y(O,C)&&U,S=J(C),w=C?.tenantId,{tenantEmailDomain:r}=C,[p,E]=d.useState(!1),[D,I]=d.useState(!1),[P,T]=d.useState(!1),[v,B]=d.useState("off"),[Z,x]=d.useState(!1),h=s=>{x(s)},{isAiCfoAccessEnabled:A,onAskAiCfoClick:$}=Xe({mobileExploreReferrer:"People"}),u=g((s=>ue(s)));$e({isDataReady:u.fetchState==="Completed"});const j=g((s=>Ae(s.classState,s.classListState))),L=g((s=>Re(s.userState,s.userRoleState,s.userListViewState,"manager"))),R=g((s=>Ve(s))),y=C?.companyId;d.useEffect((()=>{p&&v===u.uiState.mode||!i||(n(_({searchText:"",sortKey:"name",sortOrder:"ascending"})),B(u.uiState.mode),E(!0),n(me()))}),[p,b,w,n,u.uiState.mode,i]),d.useEffect((()=>{y!=null&&i&&n(ge(y,k))}),[y,k,i]),d.useEffect((()=>{I(e!=null&&e===!0),T(t!=null&&t===!0&&t)}),[e,t]),d.useEffect((()=>{n(_({searchText:"",sortKey:"name",sortOrder:"ascending"}))}),[]);const V=()=>{I(!1),T(!1),c("../")};return a.jsxs(a.Fragment,{children:[u.fetchState==="Completed"?a.jsx(ze,{analytics:xe,onLoad:s=>s.trackPageLoaded(_e.Event.members)}):null,D===!0?a.jsx(sa,{closeDrawerHandler:V,isInvitePeopleDrawerOpen:D,managersListView:L,companyPassportView:R,classListView:j,companyId:y,mode:u.uiState.mode}):null,P===!0?a.jsx(Qe,{closeDrawerHandler:V,isEditPeopleDrawerOpen:P,managersListView:L,companyPassportView:R,classListView:j,companyId:y,mode:u.uiState.mode}):null,a.jsx(Ye,{isAppContentDrawerOpen:Z,handleDrawerToggle:h}),a.jsx(na,{navigate:c,signedInUser:b,isZeni:C.isZeni,isZeniTenant:S,peopleUIState:u.uiState,companyId:y,shouldFetchClasses:k,classList:j,managersView:L,peopleView:u,onInvitePeopleClick:()=>{c("./new")},onColumnSortConfigChanged:(s,o)=>{n(_({sortKey:s,sortOrder:o}))},onRowClick:s=>{const o=`/${r}/people/${encodeURIComponent(s)}/edit`,l=He(f.state?.pathnameStackToGoBack,f.pathname);c(o,{state:{pathnameStackToGoBack:l}})},onClickMenuIcon:()=>{h(!0)},isAiCfoAccessEnabled:A,onAskAiCfoClick:$})]})}function ka(){const e=Ke();return Oe(e?.loggedInUserRole??[])?a.jsxs(se,{children:[a.jsx(z,{path:"/",element:a.jsx(W,{})}),a.jsx(z,{path:"new",element:a.jsx(W,{isInvitePeopleDrawerOpen:!0})}),a.jsx(z,{path:":userId/edit",element:a.jsx(W,{isEditPeopleDrawerOpen:!0})}),a.jsx(z,{path:"*",element:a.jsx(ae,{})})]}):a.jsx(se,{children:a.jsx(z,{path:"*",element:a.jsx(ae,{})})})}export{ka as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as s}from"./liveblocks-KCYiRihD.js";import E from"./NotFoundScreen-CRI1U8Gu.js";import{a as r}from"./sentry-KGOKqyMP.js";import{h as _,g as U,j as p,i as v,u as M,N as P,l as z,n as B,o as b}from"./core-BGEbI5zp.js";import{fB as O,a0d as h,bo as F,bn as N,iI as V,gd as q}from"./zeni-epic-state-d5rZdIxa.js";import{U as L,z as I,aq as $,dL as G}from"./index-CbVCjNrX.js";import"./mui-cunrsbJu.js";import{u as H}from"./useAskAiCfoHostNavButtonProps-Y-q0D3Y1.js";import{M as J}from"./MobileAppDrawer-8-nkE7E_.js";import"./recharts-BoHacKM2.js";import"./analytics-Dx2eSpQ1.js";import"./plaid-D11-YUGV.js";import"./dnd-T8ObM0YX.js";import"./stripe-cKAAJElX.js";import"./lottie-BxK0tlAD.js";import"./lexical-DnYH35PF.js";import"./pdf-Bh4iBuik.js";import"./utils-Ckdq4DN5.js";import"./InboxNotificationsProvider-h7_KMFLu.js";import"./useTaskManagerAccess-COaL31tN.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]="b4099699-8193-4a3b-9b20-ff94008f9899",e._sentryDebugIdIdentifier="sentry-dbid-b4099699-8193-4a3b-9b20-ff94008f9899")}catch{}})();const K=z((function(e){const t=I.getSignedInUser(),d=e.tenantState.currentTenantId,o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:d??""},{aggregatedReportViewState:n}=h(e);return{authParams:o,isDisabled:!1,loggedInUser:t,aggregatedReport:n}}),(function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}}))(G),Q=()=>{const e=_(),t=U(),d=L(),o=p((a=>O(a))),{aggregatedReportViewState:n}=p((a=>h(a))),{tenantEmailDomain:m}=v(),u=M(),l=I.getSignedInUser();if(l==null)throw new Error("Can't access this page without signing in...");const f=r.useRef(!1),[w,S]=r.useState(!1),C=F(o?.userRole??[]),k=o?.userRole?.includes("bookkeeping_admin")??!1,x=N(l),y=C||k||x,c=r.useCallback(((a,i,T)=>{u(V({fromMonth:a,toMonth:i,cacheOverride:T}))}),[]);r.useEffect((()=>{n?.fetchState==="Completed"&&f.current&&(u(q({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),f.current=!1)}),[n?.fetchState]);const D=r.useCallback(((a,i)=>{n!=null&&n?.fetchState==="In-Progress"||c(a,i,!0),f.current=!0}),[n?.fetchState,c]),j=r.useCallback(((a,i)=>{c(a,i,!1)}),[c]),g=a=>{S(a)},{isAiCfoAccessEnabled:R,onAskAiCfoClick:A}=H({mobileExploreReferrer:"Performance"});return $({isDataReady:n?.fetchState==="Completed"}),y?s.jsxs(s.Fragment,{children:[s.jsx(J,{isAppContentDrawerOpen:w,handleDrawerToggle:g}),s.jsx(K,{navigate:e,location:t,themeState:d,currentTenant:o,signedInUser:l,tenantEmailDomain:m,onReload:D,onTimeRangeSelect:j,handleDrawerToggle:g,isAiCfoAccessEnabled:R,onAskAiCfoClick:A})]}):s.jsx(P,{to:`/${m}/dashboard`,replace:!0})};function be(){return s.jsxs(B,{children:[s.jsx(b,{path:"*",element:s.jsx(Q,{})}),s.jsx(b,{path:"*",element:s.jsx(E,{})})]})}export{be as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as h,R as a}from"./sentry-
|
|
1
|
+
import{a as h,R as a}from"./sentry-KGOKqyMP.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new r.Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="1e16de4c-304f-4e91-a86b-dc86bcc8d8a2",r._sentryDebugIdIdentifier="sentry-dbid-1e16de4c-304f-4e91-a86b-dc86bcc8d8a2")}catch{}})();const c="64px",u={};var k=({src:r,light:t,oEmbedUrl:n,onClickPreview:l,playIcon:w,previewTabIndex:m,previewAriaLabel:b})=>{const[p,i]=h.useState(null);h.useEffect((()=>{r&&t&&n&&v({src:r,light:t,oEmbedUrl:n})}),[r,t,n]);const v=async({src:e,light:s,oEmbedUrl:I})=>{if(a.isValidElement(s))return;if(typeof s=="string")return void i(s);if(u[e])return void i(u[e]);i(null);const E=await fetch(I.replace("{url}",e)),f=await E.json();if(f.thumbnail_url){const g=f.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");i(g),u[e]=g}},d=a.isValidElement(t),y={display:"flex",alignItems:"center",justifyContent:"center"},o={preview:{width:"100%",height:"100%",backgroundImage:p&&!d?`url(${p})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...y},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:c,width:c,height:c,position:d?"absolute":void 0,...y},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},_=a.createElement("div",{style:o.shadow,className:"react-player__shadow"},a.createElement("div",{style:o.playIcon,className:"react-player__play-icon"}));return a.createElement("div",{style:o.preview,className:"react-player__preview",tabIndex:m,onClick:e=>{l?.(e)},onKeyDown:e=>{e.key!=="Enter"&&e.key!==" "||l==null||l(e)},...b?{"aria-label":b}:{}},d?t:null,w||_)};export{k as default};
|