@zeniai/web-app-ui 5.3.52-dev → 5.3.53-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-CfjKXYvl.js → AccountMappingScreen-h6RQnGUG.js} +2 -2
- package/dist/assets/{ActualMatchingMatchDetailScreen-Ctlw5YXu.js → ActualMatchingMatchDetailScreen-B7Vw_l4c.js} +1 -1
- package/dist/assets/AddressRoutes-w8tyo6J5.js +1 -0
- package/dist/assets/AddressScreen-DcUrSOsf.js +9 -0
- package/dist/assets/AiCfoScreen-CpQfUa4g.js +22 -0
- package/dist/assets/{AppDrawer-QudxLZqd.js → AppDrawer-DrLIFDtl.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes--p2o0UTq.js → BillPayApprovalRoutes-Cjvq2rbF.js} +1 -1
- package/dist/assets/BillPayRoutes-CPJm_O1t.js +119 -0
- package/dist/assets/{BusinessVerificationPageScreen-fABxFj6p.js → BusinessVerificationPageScreen-DJA0DrrC.js} +2 -2
- package/dist/assets/CardsAiCfoScreen-DDb2ZuZ_.js +14 -0
- package/dist/assets/{ChargeCardRoutes-8okIr07w.js → ChargeCardRoutes-CbSM_5m3.js} +8 -8
- package/dist/assets/CompanyPassportScreen-j_dRH50h.js +1 -0
- package/dist/assets/{ConnectionAuthScreen-BkpK3Q9m.js → ConnectionAuthScreen-DsPkAmru.js} +2 -2
- package/dist/assets/CustomerOnboardingAuthScreen-BNBLWcXr.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-A9qZQBlL.js → CustomerOnboardingRoutes-ZSH-nufQ.js} +3 -3
- package/dist/assets/{DashboardRoutes-monhFGcO.js → DashboardRoutes-BtOqv-MN.js} +3 -3
- package/dist/assets/{DefaultTenantHome-B4aMzjG6.js → DefaultTenantHome-DToEgYOq.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-DSnjP_Z5.js → DomesticWireDetailScreen-CVW4GyMY.js} +3 -3
- package/dist/assets/{DrawerScreen-C728nU-t.js → DrawerScreen-_ojy_hFg.js} +1 -1
- package/dist/assets/EntityDetailRoutes-CK-mH_-b.js +1 -0
- package/dist/assets/{ExpenseAutomationRoutes-lJCxAksc.js → ExpenseAutomationRoutes-b3yLxHwD.js} +7 -7
- package/dist/assets/FeaturePreviewScreen-BoONdT_D.js +1 -0
- package/dist/assets/HubSpotOAuthCallbackScreen-DndTTZ9T.js +1 -0
- package/dist/assets/{InboxNotificationsProvider-Bd8tLMl8.js → InboxNotificationsProvider-D6QvVVj8.js} +1 -1
- package/dist/assets/{InvoicingRoutes-BFDQ_AF7.js → InvoicingRoutes-DkUuCZTT.js} +2 -2
- package/dist/assets/MagicLinkRoutes-D3FD1AQ_.js +72 -0
- package/dist/assets/MagicLinkSignInScreen-xu1o-sOL.js +12 -0
- package/dist/assets/MobileAppDrawer-BnS3AEOn.js +1 -0
- package/dist/assets/NotFoundScreen-zRiKZg68.js +1 -0
- package/dist/assets/{NotificationRoutes-Dq1wMoB2.js → NotificationRoutes-BNeDbLRn.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-QrzCNvCR.js → OAuthConsentScreen-CFGSPUJy.js} +1 -1
- package/dist/assets/PandLWithForecastRoutes-LfSp6i3w.js +1 -0
- package/dist/assets/{PaymentLinkScreen-BYkX6g2m.js → PaymentLinkScreen-DeBS8t6S.js} +4 -4
- package/dist/assets/{PeopleRoutes-BSwZbUJ-.js → PeopleRoutes-Dq1v6Pp-.js} +5 -5
- package/dist/assets/PerformanceRoutes-DIdRvtFD.js +1 -0
- package/dist/assets/{Preview-Bt5Z89U4.js → Preview-CDuSXomS.js} +1 -1
- package/dist/assets/QBOConnectionScreen-BnB1aZoV.js +100 -0
- package/dist/assets/ReimbursementApprovalRoutes-C1kq5riD.js +1 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-BqumfK_F.js → ReimbursementApprovalRuleDetailScreen-Cs7pkBs7.js} +1 -1
- package/dist/assets/ReimbursementRoutes-DnFb48rt.js +68 -0
- package/dist/assets/{ReportsRoutes-BbjIc2Jw.js → ReportsRoutes-CbRMfUn0.js} +1 -1
- package/dist/assets/RewardsRoutes-BS5WcL7W.js +1 -0
- package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-DETwY7pD.js → ScheduleDetailsPrepaidExpensesScreen-U50ydaXU.js} +5 -5
- package/dist/assets/ScreenRoutes-0QveS_Gw.js +2 -0
- package/dist/assets/{SettingsRoutes-DwAkdZyX.js → SettingsRoutes-DsqPy7ab.js} +6 -6
- package/dist/assets/{SetupPagesScreen-Y9SYCogP.js → SetupPagesScreen-DyVC5Tjr.js} +5 -5
- package/dist/assets/SignInScreen-0Mg5cQhJ.js +1 -0
- package/dist/assets/SignOutScreen-DXrcHbwR.js +9 -0
- package/dist/assets/TaskListScreen-D8nGyAze.js +9 -0
- package/dist/assets/TaskRoutes-CvGAs8TT.js +9 -0
- package/dist/assets/TransactionDetailRoutes-Bn3kvwnI.js +1 -0
- package/dist/assets/{TransactionDetailScreen-0HhiaPRe.js → TransactionDetailScreen-CpeLNLRs.js} +2 -2
- package/dist/assets/TransactionListRoutes-GwUAS2rg.js +1 -0
- package/dist/assets/{TreasuryRoutes-DKuwHbrg.js → TreasuryRoutes-DGbJojow.js} +3 -3
- package/dist/assets/{VendorsRoutes-DXw2vvr4.js → VendorsRoutes-D_uL1WqL.js} +12 -12
- package/dist/assets/WiseConfirmationScreen-BGmtQRG5.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-BU1gb-LE.js → ZeniAccountRoutes-DnIPkvTG.js} +11 -11
- package/dist/assets/ZeniAccountStatementScreen-D1FrDKPz.js +9 -0
- package/dist/assets/{accountMappingHelper-DQktkWkn.js → accountMappingHelper-DNRaFM1C.js} +1 -1
- package/dist/assets/{analytics-GZ8dIY_c.js → analytics-Y9Rn1Gu7.js} +1 -1
- package/dist/assets/analyticsHelper-b_0JgbzW.js +1 -0
- package/dist/assets/{core-DOBELRta.js → core-Dh_SHcAD.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-DjVlhgki.js → decodeURIComponentSafe-B9wRnGXi.js} +1 -1
- package/dist/assets/{dnd-0MaFz9wL.js → dnd-CwwWYFuT.js} +1 -1
- package/dist/assets/{empty-DsXUnWhI.js → empty-BT_7GI6y.js} +1 -1
- package/dist/assets/{empty-C3pt8GU3.js → empty-XI8MiQF0.js} +1 -1
- package/dist/assets/{emptyVideoElement-DObxt-h2.js → emptyVideoElement-JNmKZqZz.js} +1 -1
- package/dist/assets/epic-COW9EFJg.js +2 -0
- package/dist/assets/expenseAutomationHelper-jy143DnO.js +1 -0
- package/dist/assets/{getLocaleForTenant-Dfv4vBw9.js → getLocaleForTenant-CCfef8lM.js} +1 -1
- package/dist/assets/{index-px1SxWJw.js → index-8Q8Cb_pA.js} +1 -1
- package/dist/assets/index-B23hmQHl.js +1 -0
- package/dist/assets/{index-CXbL8CxL.js → index-BeqOty_5.js} +12169 -12162
- package/dist/assets/{index-BmFszw0H.js → index-C4rZANm7.js} +1 -1
- package/dist/assets/{index-rIJ81ix1.js → index-D3h8toFn.js} +1 -1
- package/dist/assets/{index-1mAhqt2L.js → index-DOYaY83A.js} +1 -1
- package/dist/assets/{index-JlXkO7-y.js → index-DTprL6g9.js} +1 -1
- package/dist/assets/{index-F4l7OCjI.js → index-D_bKIveY.js} +2 -2
- package/dist/assets/{lexical-CAgOy6Q-.js → lexical-CaftfZ9D.js} +1 -1
- package/dist/assets/{liveblocks-BPL36a6x.js → liveblocks-DR8KfETq.js} +1 -1
- package/dist/assets/{lottie-38LSfraF.js → lottie-ODKvpFjz.js} +1 -1
- package/dist/assets/{mui-wO6EIETx.js → mui-BYn_Ugho.js} +1 -1
- package/dist/assets/{pathToGoBack-BTiQNxwp.js → pathToGoBack-BiqpVJeS.js} +1 -1
- package/dist/assets/{pdf-B2N0erO1.js → pdf-DnQo5-Qw.js} +3 -3
- package/dist/assets/{pdf-lib-Ct6vdrHd.js → pdf-lib-DdZd3IiB.js} +1 -1
- package/dist/assets/{plaid-C-eBmVPr.js → plaid-Dw8l1kdg.js} +1 -1
- package/dist/assets/{pusher-Qt-2jBy4.js → pusher-CewboUYG.js} +1 -1
- package/dist/assets/{react-D0sfM7Iy.js → react-8By583h-.js} +1 -1
- package/dist/assets/{react-DSWUEYTa.js → react-B8IvMjeE.js} +1 -1
- package/dist/assets/{react-BogDsHCA.js → react-BgmP_PBP.js} +1 -1
- package/dist/assets/{react-ByoUrZyD.js → react-CWd2ZkNi.js} +1 -1
- package/dist/assets/{react-9dynYr-j.js → react-gSPYEWZo.js} +1 -1
- package/dist/assets/{react-ofgvrscL.js → react-ygIo2ccY.js} +1 -1
- package/dist/assets/{recharts-Sp9X2zHo.js → recharts-BTL88W4R.js} +1 -1
- package/dist/assets/{routePaths-7schl7H2.js → routePaths-CN71IXC6.js} +1 -1
- package/dist/assets/{sentry-_x3Yh1Jc.js → sentry-FwaDhTzy.js} +1 -1
- package/dist/assets/{stripSplatSuffix-bz-VGo3l.js → stripSplatSuffix-CvpfThkG.js} +1 -1
- package/dist/assets/{url-DBFa8kl5.js → url-DHu7Ejzz.js} +1 -1
- package/dist/assets/{url-DW2CK7rX.js → url-DybJ-sxa.js} +1 -1
- package/dist/assets/useActualMatchingMatchDetail-CgMvOK9S.js +1 -0
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-BdSnJq4D.js → useAiCfoDashboardSuggestedQuestionsChips-B5JNAQpD.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-BnkkGFrU.js +1 -0
- package/dist/assets/{useChargeCardPusherEvents-BHookjIG.js → useChargeCardPusherEvents-D9DQtbnp.js} +1 -1
- package/dist/assets/{useDeviceId-EJu2KjP1.js → useDeviceId-CUJxM_KE.js} +1 -1
- package/dist/assets/useEmailConnectResultRefresh-DWvxRsrW.js +1 -0
- package/dist/assets/{useInitialThreadRequest-TFVuVZA_.js → useInitialThreadRequest-AIPuwXqX.js} +1 -1
- package/dist/assets/{useTaskManagerAccess-CiaMEBoG.js → useTaskManagerAccess-DJBrAqGh.js} +1 -1
- package/dist/assets/useTaskManagerPusherEvents-CWsImhYv.js +1 -0
- package/dist/assets/utils-DEAaFgLU.js +36 -0
- package/dist/assets/{withTransactionSidePanel-BR8uip_B.js → withTransactionSidePanel-BA2-aFQT.js} +6 -6
- package/dist/assets/{zeni-epic-state-DXFYDM66.js → zeni-epic-state-DJh0-ZeR.js} +5 -5
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/AddressRoutes-DakZpUxU.js +0 -1
- package/dist/assets/AddressScreen-dsCmoEfc.js +0 -9
- package/dist/assets/AiCfoScreen-1hhGcQPM.js +0 -22
- package/dist/assets/BillPayRoutes-BQ5naZy9.js +0 -119
- package/dist/assets/CardsAiCfoScreen-D7lfbMvU.js +0 -14
- package/dist/assets/CompanyPassportScreen-DGlmYKZ8.js +0 -1
- package/dist/assets/CustomerOnboardingAuthScreen-CUL244kC.js +0 -1
- package/dist/assets/EntityDetailRoutes-Bn5UTAGi.js +0 -1
- package/dist/assets/FeaturePreviewScreen-BTcHNbYq.js +0 -1
- package/dist/assets/HubSpotOAuthCallbackScreen-DeY4bk0n.js +0 -1
- package/dist/assets/MagicLinkRoutes-CDa3T_71.js +0 -72
- package/dist/assets/MagicLinkSignInScreen-DkY-AFQs.js +0 -12
- package/dist/assets/MobileAppDrawer-CZL1M8HC.js +0 -1
- package/dist/assets/NotFoundScreen-rNwJ2-Qg.js +0 -1
- package/dist/assets/PandLWithForecastRoutes-CGjGCsop.js +0 -1
- package/dist/assets/PerformanceRoutes-Cr1pAdV3.js +0 -1
- package/dist/assets/QBOConnectionScreen-TrNoYiXG.js +0 -100
- package/dist/assets/ReimbursementApprovalRoutes-C2OtR60a.js +0 -1
- package/dist/assets/ReimbursementRoutes-CPjQ0Aws.js +0 -68
- package/dist/assets/RewardsRoutes-Ca33Xd5P.js +0 -1
- package/dist/assets/ScreenRoutes-CiAckpHg.js +0 -2
- package/dist/assets/SignInScreen-McvwseEQ.js +0 -1
- package/dist/assets/SignOutScreen-lXmArlao.js +0 -9
- package/dist/assets/TaskListScreen-CZxRWWOz.js +0 -9
- package/dist/assets/TaskRoutes-q7JoPp0N.js +0 -9
- package/dist/assets/TransactionDetailRoutes-ZlWD_PWX.js +0 -1
- package/dist/assets/TransactionListRoutes-UQ_0OeeD.js +0 -1
- package/dist/assets/WiseConfirmationScreen-XQZz5N0L.js +0 -12
- package/dist/assets/ZeniAccountStatementScreen-CrkxN9K8.js +0 -9
- package/dist/assets/analyticsHelper-B9ZU7ow3.js +0 -1
- package/dist/assets/epic-BqUfEKD1.js +0 -2
- package/dist/assets/expenseAutomationHelper-CRKfrxDD.js +0 -1
- package/dist/assets/index-C_zqEcVM.js +0 -1
- package/dist/assets/useActualMatchingMatchDetail-BFtfLe4Y.js +0 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-gnFsttzV.js +0 -1
- package/dist/assets/useEmailConnectResultRefresh-bvDRvnqZ.js +0 -1
- package/dist/assets/utils-BU0XThgM.js +0 -36
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as mt,b as lt,o as ft,j as N}from"./liveblocks-
|
|
1
|
+
import{n as mt,b as lt,o as ft,j as N}from"./liveblocks-DR8KfETq.js";import ut from"./NotFoundScreen-zRiKZg68.js";import{a as k}from"./sentry-FwaDhTzy.js";import{h as ht,g as pt,i as kt,u as gt,j as b,l as bt,n as St,o as Q}from"./core-Dh_SHcAD.js";import{cA as It,TX as H,fF as J,h1 as Tt,T$ as S,a0U as O,U5 as m,TV as y,An as j,G2 as Ct,a0V as At,TU as yt,U7 as Et,As as _t,a0W as F,br as $,gh as x,Aw as Y,a0X as Nt,cM as wt,cF as Bt}from"./zeni-epic-state-DJh0-ZeR.js";import{ar as xt,d as Ut,c as vt,A as Dt,at as Rt,dL as Gt,p as w,dM as Pt,w as Mt,dN as Ft,i as $t,a5 as jt}from"./index-BeqOty_5.js";import"./mui-BYn_Ugho.js";import{u as Vt}from"./useAskAiCfoHostNavButtonProps-BnkkGFrU.js";import{u as Wt}from"./useTaskManagerAccess-DJBrAqGh.js";import"./recharts-BTL88W4R.js";import"./analytics-Y9Rn1Gu7.js";import"./plaid-Dw8l1kdg.js";import"./dnd-CwwWYFuT.js";import"./stripe-cKAAJElX.js";import"./lottie-ODKvpFjz.js";import"./lexical-CaftfZ9D.js";import"./pdf-DnQo5-Qw.js";import"./utils-DEAaFgLU.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]="29dba111-f830-470f-b631-c15e5cd651b6",t._sentryDebugIdIdentifier="sentry-dbid-29dba111-f830-470f-b631-c15e5cd651b6")}catch{}})();const Lt=(t,l)=>new Promise(((n,h)=>{const g=t.map((c=>new Promise((o=>{l(c),o()}))));Promise.all(g).then((()=>{setTimeout((()=>{n()}),2e3)})).catch((c=>{h(c)}))})),Xt=bt((function(t,l){const n=H(t),{signedInUser:h,isDebitCardFeatureEnabled:g,isTaskManagerAccessEnabled:c}=l,o=S(t),f=J(t),{currentTab:I}=o;return{notificationView:o,isNotificationSettingsVisible:h.userEmail!=null&&Et(n.notificationSettings,h.userEmail,g,f,c),isDisabled:o.notificationDetailsByTab[I].fetchState==="In-Progress"?"disabled":void 0}}),(function(t,l){const{location:n,tenantEmailDomain:h,loggedInUserRoleMap:g,externalNotificationsUnreadCount:c,allUnreadCommentsNotificationIds:o,navigate:f,markInboxNotificationAsRead:I,fetchMoreCommentsNotifications:v}=l;return{onNotificationClick:(a,s,d,r)=>{if(r==="task_deleted"){const i=`/${h}/tasks`,T=w(n.state?.pathnameStackToGoBack,n.pathname);f(i,{state:{pathnameStackToGoBack:T,message:"triggerBackClick"}})}else{const i=`/${h}/tasks/${s}`,T=w(n.state?.pathnameStackToGoBack,n.pathname);f(i,{state:{pathnameStackToGoBack:T,message:"triggerBackClick"}})}d==="unread"&&t(Y("task_manager","read",[a],!1))},onCommentNotificationClick:(a,s,d)=>{const r=s.toString().split(`/${h}/`);if(r[1]!=null){d==="unread"&&(I(a),t(F([a],$())));let i=`/${h}/${r[1]}`;const T=w(n.state?.pathnameStackToGoBack,n.pathname);r[1].startsWith("reimbursement")&&!wt(g)&&(i="not-found"),r[1].startsWith("bill")&&!Bt(g)&&(i="not-found"),f(i,{state:{pathnameStackToGoBack:T,message:"triggerBackClick"}})}},onUpdateNotificationViewUIState:(a,s)=>{t(y(a,s))},onUpdateNotificationTabState:(a,s)=>{t(m(a,s))},onUpdateNotificationViewCurrentTabAndSubTab:(a,s)=>{t(O(a,s));const d=`../${a}`,r=w(n.state?.pathnameStackToGoBack,n.pathname);f(d,{state:{pathnameStackToGoBack:r}})},onUpdateNotificationViewSubTab:a=>{t(Nt(a))},onFetchMoreNotifications:(a,s)=>{if(a==="tasks"){const d=[];s==="all"?d.push("read","unread"):s!=="mentions"&&d.push(s),t(j("task_manager","dashboard",d))}else v?.()},onUpdateNotificationStatus:(a,s,d,r)=>{a==="tasks"?t(Y("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(y({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(o,I).then((()=>{t(F(o,$())),t(m({markAsAllReadState:{fetchState:"Completed",error:void 0}},"comments")),t(y({unreadCount:0},"comments")),t(x({messageSection:"notification_mark_as_read",messageText:"success",type:"success",showStatusIcon:!0}))})).catch((s=>{t(m({markAsAllReadState:{fetchState:"Error",error:s}},"comments")),t(x({messageSection:"notification_mark_as_read",messageText:"failed",type:"error",showStatusIcon:!0}))})))},onBackClick:()=>{const a=jt(n.state?.pathnameStackToGoBack),s=a.poppedPathname??"../../dashboard";f(s,{state:{pathnameStackToGoBack:a.newStack}})},onSettingsClick:()=>{const a=w(n.state?.pathnameStackToGoBack,n.pathname);f("../../settings/notifications",{state:{pathnameStackToGoBack:a}})}}}))(Mt(Ft)),qt=()=>{const t=ht(),l=pt(),{tenantEmailDomain:n,selectedTab:h}=kt(),{areTenantIdsInSync:g}=xt(),c=It(h??""),o=gt(),f=Ut(),[I,v]=k.useState(!1),a=b((e=>H(e))),s=b((e=>J(e))),{useFeatureGate:d}=vt(),{isFeatureEnabled:r}=d(Dt.isDebitCardFeatureEnabled),{isAiCfoAccessEnabled:i,onAskAiCfoClick:T}=Vt({mobileExploreReferrer:"Notifications"});Rt({isDataReady:!0});const Z=Tt(s.userRole);if(s==null||n==null||s.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=b((e=>S(e).notificationDetailsByTab.tasks.fetchState)),W=b((e=>S(e).currentTab)),D=b((e=>S(e).currentSubTab)),tt=b((e=>S(e).notificationDetailsByTab.comments.fetchCountState)),R=b((e=>S(e).notificationDetailsByTab.comments.fetchState)),et=b((e=>S(e).notificationDetailsByTab.comments.uiState.unreadCount)),at=b((e=>S(e).allExternalNotifications)).filter((e=>e.inboxNotification.readAt==null)).map((e=>e.inboxNotification.id)),st=Gt().allUsers,{inboxNotifications:B,isLoading:E,hasFetchedAll:C,isFetchingMore:G,fetchMore:ot}=mt(),{threads:L,isLoading:X,fetchMore:q,isFetchingMore:z,hasFetchedAll:K}=lt({query:{metadata:{companyId:s.companyId,application:"dashboard"}}});k.useEffect((()=>{if(W!==c&&c!=null&&o(O(c)),c==null){const e=`../${W}`,p=w(l.state?.pathnameStackToGoBack,l.pathname);t(e,{state:{pathnameStackToGoBack:p}})}}),[c]),k.useEffect((()=>{tt.fetchState==="Not-Started"&&o(m({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))}),[]),k.useEffect((()=>{if(E===!1&&C===!0&&s?.companyId!=null&&B!=null){const e=`dashboard_${s.companyId}`,p=B.filter((A=>A.roomId===e&&A.readAt==null)).length;o(m({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),o(y({unreadCount:p},"comments"))}}),[E,C]),k.useEffect((()=>{V!=="In-Progress"&&g&&o(j("task_manager","dashboard",["read","unread"]))}),[g]),k.useEffect((()=>{const e=setTimeout((()=>ot?.()),0);return()=>clearTimeout(e)}));const P=E||G===!0||C!==!0||E||G===!0||C!==!0;k.useEffect((()=>{P&&R!=="In-Progress"?o(m({fetchState:"In-Progress",error:void 0},"comments")):P||R!=="In-Progress"||o(m({fetchState:"Completed",error:void 0},"comments"))}),[P,R]),k.useEffect((()=>{o(y({hasMore:C!==!0},"comments"))}),[C]),k.useEffect((()=>{a.fetchState!=="In-Progress"&&a.fetchState!=="Completed"&&I===!1&&(v(!0),o(Ct()))}),[a.fetchState]),k.useEffect((()=>{if(E===!1&&X===!1&&B!=null&&L!=null){const e=`dashboard_${s.companyId}`,p=B.filter((u=>u.roomId===e)).filter((u=>Pt(u.kind))),A=p.filter((u=>u.readAt==null)),_=p.map((u=>u.id)),ct=p.map((u=>{const M=L.find((dt=>{return dt.id===((U=u).kind==="thread"?U.threadId:"subjectId"in U?U.subjectId:void 0);var U}));return M!=null?{inboxNotification:{...u,threadId:M.id},thread:M}:(z||K===!0||q==null||q(),null)})).filter((u=>u!=null));o(m({allNotificationsIds:_},"comments")),o(y({totalCount:_.length,unreadCount:A.length},"comments")),o(At(ct))}}),[E,G,z,C,K,X,B?.length]);const nt={events:s.userRoleId!=null?[`private-encrypted-${s.userRoleId}.dashboard-user-notification`]:[],eventCallback:(e,p)=>{if($t(p)){const A=yt(p.mode);if(A==="dashboard"&&o(y({unreadCount:p.data.unread},"tasks")),V!=="In-Progress"){const _=[];D==="all"?_.push("read","unread"):D!=="mentions"&&_.push(D),o(j("task_manager",A,_,!0))}}}},it=ft(),{isTaskManagerAccessEnabled:rt}=Wt(f);return N.jsx(Xt,{tenantEmailDomain:n,loggedInUserRoleMap:Z,signedInUser:f,externalNotificationsUnreadCount:et,location:l,navigate:t,isDebitCardFeatureEnabled:r,isTaskManagerAccessEnabled:rt,users:st,markInboxNotificationAsRead:it,allUnreadCommentsNotificationIds:at,isAiCfoAccessEnabled:i,onAskAiCfoClick:T,...nt})};function me(){return N.jsxs(St,{children:[N.jsx(Q,{path:"/:selectedTab",element:N.jsx(qt,{})}),N.jsx(Q,{path:"*",element:N.jsx(ut,{})})]})}export{me as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as f}from"./liveblocks-
|
|
1
|
+
import{j as f}from"./liveblocks-DR8KfETq.js";import{a as r}from"./sentry-FwaDhTzy.js";import{u as A,g as C,j as o,N as j}from"./core-Dh_SHcAD.js";import{Uy as z,fF as P,gm as x,Uz as D,UA as M,UB as R,UC as L,pS as k,Td as N}from"./zeni-epic-state-DJh0-ZeR.js";import{z as h,ai as I}from"./index-BeqOty_5.js";import"./mui-BYn_Ugho.js";import"./recharts-BTL88W4R.js";import"./analytics-Y9Rn1Gu7.js";import"./plaid-Dw8l1kdg.js";import"./dnd-CwwWYFuT.js";import"./stripe-cKAAJElX.js";import"./lottie-ODKvpFjz.js";import"./lexical-CaftfZ9D.js";import"./pdf-DnQo5-Qw.js";import"./utils-DEAaFgLU.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new n.Error().stack;s&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[s]="89906b52-cba0-40bd-8756-6c2624df9855",n._sentryDebugIdIdentifier="sentry-dbid-89906b52-cba0-40bd-8756-6c2624df9855")}catch{}})();function ee(){const n=A(),s=C(),{params:t,error:i}=r.useMemo((()=>z(s.search)),[s.search]),w=r.useMemo((()=>new URLSearchParams(s.search).get("client_name")??t?.clientId??"Unknown Application"),[s.search,t]),p=h.isSignedIn(),a=h.getSignedInUser(),m=o((e=>P(e))),l=o((e=>x(e))),d=o((e=>e.tenantState.fetchState)),b=o(D),y=o(M),c=o(R),[S,U]=r.useState(null),[v,E]=r.useState(null);r.useEffect((()=>{document.querySelector("#app-shell-loader")?.remove()}),[]),r.useEffect((()=>()=>{n(L())}),[n,s.search]),r.useEffect((()=>{i!=null&&console.warn("[OAuthConsent] invalid params:",i)}),[i]);const g=r.useRef(!1);r.useEffect((()=>{p&&a!=null&&!g.current&&(d!=="Not-Started"&&d!=="Error"||(g.current=!0,n(k(a.userId,a.zeniSessionId??void 0))))}),[p,a,d,n]),r.useEffect((()=>{c!=null&&c!==""&&(window.location.href=c)}),[c]);const _=r.useMemo((()=>{if(m?.tenantId!=null)return m.tenantId;const e=h.getActiveTenantForUser()?.tenantId;return e!=null&&l.some((T=>T.tenantId===e))?e:l.length===1?l[0].tenantId:null}),[m?.tenantId,l]),u=S??_;return i!=null?f.jsx(I,{variant:"invalid_params",paramsError:i}):p?f.jsx(I,{variant:"signed_in",clientName:w,userEmail:a?.userEmail,isInitializing:d!=="Completed",tenants:l,selectedTenantId:u,onSelectTenant:U,approveError:v??y,isApproving:b==="In-Progress",showAllowButton:u!=null,onApprove:()=>{t!=null&&a!=null&&u!=null&&n(N(a.userId,a.zeniSessionId??void 0,u,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{E("Unable to deny: redirect_uri is not a valid URL. Close this window or contact support.")}}}):f.jsx(j,{to:"/signin/auth",state:{origin:s.pathname+s.search},replace:!0})}export{ee as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as n}from"./liveblocks-DR8KfETq.js";import{h as Q,u as H,g as J,i as K,j as d,l as X,n as ee,o as C}from"./core-Dh_SHcAD.js";import{fF as M,A8 as U,v1 as ae,Vq as w,uY as T,bq as te,b$ as se,uZ as oe,Vr as re,V8 as S,ei as ne,DW as ce,Vs as ie,Ei as le,d_ as de,dZ as me}from"./zeni-epic-state-DJh0-ZeR.js";import{aj as fe,z as pe,ar as ue,at as he,Q as Fe,c as _,A as q,a9 as ge,j as V,aE as be,p as Ie}from"./index-BeqOty_5.js";import"./mui-BYn_Ugho.js";import Ce from"./NotFoundScreen-zRiKZg68.js";import{F as Se}from"./FeaturePreviewScreen-BoONdT_D.js";import{a as F}from"./sentry-FwaDhTzy.js";import{u as Te}from"./useAskAiCfoHostNavButtonProps-BnkkGFrU.js";import{u as ye}from"./useInitialThreadRequest-AIPuwXqX.js";import{t as Ae}from"./routePaths-CN71IXC6.js";import{M as De}from"./MobileAppDrawer-BnS3AEOn.js";import"./recharts-BTL88W4R.js";import"./analytics-Y9Rn1Gu7.js";import"./plaid-Dw8l1kdg.js";import"./dnd-CwwWYFuT.js";import"./stripe-cKAAJElX.js";import"./lottie-ODKvpFjz.js";import"./lexical-CaftfZ9D.js";import"./pdf-DnQo5-Qw.js";import"./utils-DEAaFgLU.js";import"./InboxNotificationsProvider-D6QvVVj8.js";import"./useTaskManagerAccess-DJBrAqGh.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]="aed7da40-97b9-469d-9d98-81b7ac67ee2f",s._sentryDebugIdIdentifier="sentry-dbid-aed7da40-97b9-469d-9d98-81b7ac67ee2f")}catch{}})();const y=(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})}},je=X((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:V}}),(function(s,e){return{onForecastSelectionChanged:(a,o)=>{s(w(a,o)),e.isPandLReportFetched(a)||s(T(a)),y(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=Ae(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=Q(),a=H(),o=J(),{forecastId:r,tenantEmailDomain:c}=K(),[p,u]=F.useState(!1),[m,A]=F.useState(!1),g=pe.getSignedInUser(),D=d((t=>M(t))),$=D.company?.companyInfo.firstMonthOfFY??1,i=d((t=>U(t.forecastState,t.forecastListState))),l=d((t=>t.forecastListState.fetchState==="Completed")),j=d((t=>t.profitAndLossState)),x=d((t=>t.reportUIOptionsState.selectedForecast)),E=t=>j.pandLByForecastID[t]!=null&&oe(t,j).reducedAllFetchState.fetchState==="Completed",{areTenantIdsInSync:b}=ue();he({isDataReady:l});const{isAiCfoAccessEnabled:B,onAskAiCfoClick:N}=Te({mobileExploreReferrer:"Forecast"});F.useEffect((()=>{if(!p&&b)u(!0),l||a(ae());else if(l&&!m){A(!0);const t=((f,R,O)=>R!=null?f.forecasts.findIndex((I=>I.id===R)):O!=null?f.forecasts.findIndex((I=>I.id===O)):f.forecasts.length>0?0:-1)(i,r,x?.id);t===-1&&r!=null?e("page-not-found",{replace:!0}):t!==-1&&t!=x?.index?(a(w(i.forecasts[t].id,t)),y(r,i.forecasts[t].id,e,o.search)):r==null&&t!==-1&&y(void 0,i.forecasts[t].id,e,o.search),t!==-1&&!E(i.forecasts[t].id)&&b&&a(T(i.forecasts[t].id))}}),[p,u,a,l,i,m,A,U,T,b]);const k=Fe(),Y=k?.loggedInUserRole!=null&&te(k.loggedInUserRole),{useFeatureGate:G}=_(),{isFeatureEnabled:L}=G(q.isReportsCommentingEnabled),W=ye(L?D?.companyId:void 0,{clearParams:l&&m}),[Z,z]=F.useState(!1),h=new URL(s("forecast_pandl"));h.searchParams.set("firstname",g?.firstName??""),h.searchParams.set("lastname",g?.lastName??""),h.searchParams.set("email",g?.userEmail??"");const P=t=>{z(t)};return n.jsxs(n.Fragment,{children:[l?n.jsx(ge,{analytics:V,onLoad:t=>(f=>f.trackForecast())(t)}):null,n.jsx(De,{isAppContentDrawerOpen:Z,handleDrawerToggle:P}),n.jsx(je,{firstMonthOfFY:$,tenantEmailDomain:c,forecastIdFromUrlPath:r,navigate:e,location:o,isPandLReportFetched:E,meetingUrl:se(h.toString()),hasTransactionAccess:Y,isAiCfoAccessEnabled:B,onAskAiCfoClick:N,isReportsCommentingEnabled:L,initialOpenThreadRequest:W,onClickMenuIcon:()=>{P(!0)}})]})}function He(){const s=d((c=>M(c))),{useFeatureGate:e}=_(),{isFeatureEnabled:a}=e(q.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{He as default};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import{j as r}from"./liveblocks-
|
|
1
|
+
import{j as r}from"./liveblocks-DR8KfETq.js";import{a as p}from"./sentry-FwaDhTzy.js";import{D as c,F as a,aa as m,ae as f,af as h}from"./index-BeqOty_5.js";import"./mui-BYn_Ugho.js";import{i as y}from"./core-Dh_SHcAD.js";import"./zeni-epic-state-DJh0-ZeR.js";import"./recharts-BTL88W4R.js";import"./analytics-Y9Rn1Gu7.js";import"./plaid-Dw8l1kdg.js";import"./dnd-CwwWYFuT.js";import"./stripe-cKAAJElX.js";import"./lottie-ODKvpFjz.js";import"./lexical-CaftfZ9D.js";import"./pdf-DnQo5-Qw.js";import"./utils-DEAaFgLU.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]="0af2bf7b-2dbc-49f8-a11b-eb8e578c0948",e._sentryDebugIdIdentifier="sentry-dbid-0af2bf7b-2dbc-49f8-a11b-eb8e578c0948")}catch{}})();const b=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
|
+
`,g=c("header")`
|
|
8
8
|
flex-shrink: 0;
|
|
9
9
|
padding: ${a.sp3} ${a.sp4};
|
|
10
|
-
`,
|
|
10
|
+
`,k=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-BPL36a6x.js";import{a as p}from"./sentry-_x3Yh1J
|
|
|
18
18
|
align-items: center;
|
|
19
19
|
justify-content: center;
|
|
20
20
|
padding: ${a.sp4};
|
|
21
|
-
`;function j({children:e}){return r.jsxs(
|
|
21
|
+
`;function j({children:e}){return r.jsxs(b,{"data-testid":"invoicing-collect-payment-layout",children:[r.jsx(g,{children:r.jsx(k,{"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};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-
|
|
1
|
+
import{j as a}from"./liveblocks-DR8KfETq.js";import{Vm as re,fF as J,l$ as G,d_ as N,dZ as le,Sd as Y,UL as de,CT as Ee,Vn as X,CI as je,D1 as Le,CX as ce,CM as pe,C$ as Te,CY as ve,Vo as ue,sl as Ve,g6 as Ae,gD as Fe,Vp as _,CQ as me,CP as ge,D4 as Re,c8 as Oe}from"./zeni-epic-state-DJh0-ZeR.js";import{a2 as fe,c as q,A as H,z as K,g as Ce,I as he,ag as ye,aA as be,aB as Ze,ac as Se,F as R,ah as we,G as W,aC as Be,ar as Ue,at as $e,a9 as ze,j as De,S as _e,p as He,aD as Ge,Q as Ke}from"./index-BeqOty_5.js";import{D as xe,n as M,S as Ie}from"./mui-BYn_Ugho.js";import ae from"./NotFoundScreen-zRiKZg68.js";import{a as d}from"./sentry-FwaDhTzy.js";import{u as ee,i as We,j as g,h as Me,g as Qe,l as Xe,n as se,o as z}from"./core-Dh_SHcAD.js";import{u as Je}from"./useAskAiCfoHostNavButtonProps-BnkkGFrU.js";import{M as Ne}from"./MobileAppDrawer-BnS3AEOn.js";import"./recharts-BTL88W4R.js";import"./analytics-Y9Rn1Gu7.js";import"./plaid-Dw8l1kdg.js";import"./dnd-CwwWYFuT.js";import"./stripe-cKAAJElX.js";import"./lottie-ODKvpFjz.js";import"./lexical-CaftfZ9D.js";import"./pdf-DnQo5-Qw.js";import"./utils-DEAaFgLU.js";import"./InboxNotificationsProvider-D6QvVVj8.js";import"./useTaskManagerAccess-DJBrAqGh.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]="96646fa9-259e-42d3-bc79-93d837d66f83",e._sentryDebugIdIdentifier="sentry-dbid-96646fa9-259e-42d3-bc79-93d837d66f83")}catch{}})();const Ye={overlayWidth:new Se(100,100,48)},te=W.getLocalizedStrings().peoplePage.invitePage,ne=W.getLocalizedStrings().common,qe=({companyId:e,managersListView:t,companyPassportView:c,classListView:n,mode:f,isEditPeopleDrawerOpen:i,closeDrawerHandler:b})=>{const C=fe(),m=ee(),[O,Z]=d.useState(!1),[k,S]=d.useState(!1),{userId:w}=We(),r=g((l=>re(l))),p=g((l=>J(l))),P=g((l=>G(l))),{useFeatureGate:x}=q(),{isFeatureEnabled:I}=x(H.isDebitCardFeatureEnabled),E=N(I,p),T=le(p),v=Y(p),B=de(p),U=!!p.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,D=!E&&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 h=()=>{m(X()),b()},V=()=>{O===!0?S(!0):h()},$=c.companyView?.controllers?.map((l=>l.user)),u=!!p.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:j}=x(H.isChargeCardFeatureEnabled),L=Ce(p,j,I),{isCardsHidden:A}=he(p?.tenantId),y=!L||A,F=p.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",s={peopleDetails:r,classList:n.classes,managersList:t.users,controllersList:$,mode:f,isZeniTenant:v,isAccountingClassesEnabled:P,isReimbursementDisabled:U===!1,isZeniAccountsDisabled:u===!1,isChargeCardDisabled:y,isTreasuryDisabled:F===!1,isLiteRoleDisabled:B===!1,isBankingOnlyTenant:E,isCardsOnlyTenant:T,onResetClick:h,onDeleteUser:l=>{m(pe(l.userId,l.userRole.userRoleId))},onPeopleLocalDataUpdated:l=>{m(ce({peopleLocalData:l})),Z(!0)},onSaveClick:()=>{m(f==="zeni_only"?je(e):Le(v))},onCloseClick:V,isLoading:D||r.person==null},o={onOkClick:()=>{S(!1),h()},onCancelClick:()=>{S(!1)}};return d.useEffect((()=>{D===!1&&w!=null&&m(Ee(w))}),[D,w]),d.useEffect((()=>{r.updatePersonState.fetchState==="Completed"&&h()}),[r.updatePersonState.fetchState]),a.jsx(xe,{anchor:"right",open:i,PaperProps:{style:{width:Ye.overlayWidth.valuePercentage(C),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:ye.overlayDark,cursor:"pointer"}}},onClose:V,children:a.jsxs(ea,{onClick:l=>l.stopPropagation(),children:[k===!0?a.jsx(be,{titleComponent:a.jsx(ke,{children:te.discardTitle}),descriptionComponent:a.jsx(Pe,{children:te.discardDescription}),primaryButtonText:ne.yes,secondaryButtonText:ne.no,action:o,isEditPopup:!0}):null,a.jsx(Ze,{...s})]})})},ea=M(Ie)`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
5
|
-
`,ke=
|
|
5
|
+
`,ke=M(we.H6Regular)`
|
|
6
6
|
margin-top: ${R.sp7};
|
|
7
7
|
padding-left: ${R.sp8};
|
|
8
8
|
padding-right: ${R.sp8};
|
|
9
9
|
color: ${e=>e.theme.colors.primary};
|
|
10
10
|
word-break: break-word;
|
|
11
|
-
`,Pe=
|
|
11
|
+
`,Pe=M(we.LargeRegularSp)`
|
|
12
12
|
color: ${e=>e.theme.colors.hero};
|
|
13
13
|
padding-left: ${R.sp8};
|
|
14
14
|
padding-right: ${R.sp8};
|
|
15
15
|
margin-bottom: 30px;
|
|
16
16
|
margin-top: ${R.sp4};
|
|
17
17
|
white-space: pre-line;
|
|
18
|
-
`,aa={overlayWidth:new Se(100,100,48)},oe=
|
|
18
|
+
`,aa={overlayWidth:new Se(100,100,48)},oe=W.getLocalizedStrings().peoplePage.invitePage,ie=W.getLocalizedStrings().common,sa=({companyId:e,managersListView:t,companyPassportView:c,classListView:n,mode:f,isInvitePeopleDrawerOpen:i,closeDrawerHandler:b})=>{const C=fe(),m=ee(),[O,Z]=d.useState(!1),[k,S]=d.useState(!1),w=g((o=>re(o))),r=g((o=>J(o))),p=g((o=>G(o))),{useFeatureGate:P}=q(),{isFeatureEnabled:x}=P(H.isDebitCardFeatureEnabled),I=N(x,r),E=le(r),T=Y(r),v=de(r),B=!!r.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,U=!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 D=()=>{b(),m(X())},h=()=>{O===!0?S(!0):D()},V={onOkClick:()=>{S(!1),D()},onCancelClick:()=>{S(!1)}},$=c.companyView?.controllers.map((o=>o.user)),u=!!r.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:j}=P(H.isChargeCardFeatureEnabled),L=Ce(r,j,x),{isCardsHidden:A}=he(r?.tenantId),y=!L||A,F=r.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",s={classList:n.classes,managersList:t.users,controllersList:$,mode:f,isZeniTenant:T,onPeopleLocalDataUpdated:o=>{m(ce({peopleLocalData:o})),Z(!0)},onResetClick:D,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:F===!1,isBankingOnlyTenant:I,isCardsOnlyTenant:E,isLoading:U};return d.useEffect((()=>{w.invitePersonState.fetchState==="Completed"&&(b(),m(X()))}),[w.invitePersonState.fetchState]),a.jsx(xe,{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(Pe,{children:oe.discardDescription}),primaryButtonText:ie.yes,secondaryButtonText:ie.no,action:V}):null,a.jsx(Be,{...s})]})})},ta=M(Ie)`
|
|
19
19
|
display: flex;
|
|
20
20
|
min-height: 100%;
|
|
21
21
|
flex-direction: column;
|
|
22
|
-
`,na=Xe((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:
|
|
22
|
+
`,na=Xe((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:De}}),(function(e,t){const{navigate:c,companyId:n,shouldFetchClasses:f}=t;return{personAction:{onPersonDelete:(i,b)=>{e(pe(i,b))},onResendInvite:i=>{e(Re(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 Q({isInvitePeopleDrawerOpen:e,isEditPeopleDrawerOpen:t}){const c=Me(),n=ee(),f=Qe(),{areTenantIdsInSync:i}=Ue(),b=K.getSignedInUser(),C=g((s=>J(s))),{useFeatureGate:m}=q(),{isFeatureEnabled:O}=m(H.isDebitCardFeatureEnabled),Z=g((s=>G(s))),k=!N(O,C)&&Z,S=Y(C),w=C?.tenantId,{tenantEmailDomain:r}=C,[p,P]=d.useState(!1),[x,I]=d.useState(!1),[E,T]=d.useState(!1),[v,B]=d.useState("off"),[U,D]=d.useState(!1),h=s=>{D(s)},{isAiCfoAccessEnabled:V,onAskAiCfoClick:$}=Je({mobileExploreReferrer:"People"}),u=g((s=>ue(s)));$e({isDataReady:u.fetchState==="Completed"});const j=g((s=>Ve(s.classState,s.classListState))),L=g((s=>Ae(s.userState,s.userRoleState,s.userListViewState,"manager"))),A=g((s=>Fe(s))),y=C?.companyId;d.useEffect((()=>{p&&v===u.uiState.mode||!i||(n(_({searchText:"",sortKey:"name",sortOrder:"ascending"})),B(u.uiState.mode),P(!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 F=()=>{I(!1),T(!1),c("../")};return a.jsxs(a.Fragment,{children:[u.fetchState==="Completed"?a.jsx(ze,{analytics:De,onLoad:s=>s.trackPageLoaded(_e.Event.members)}):null,x===!0?a.jsx(sa,{closeDrawerHandler:F,isInvitePeopleDrawerOpen:x,managersListView:L,companyPassportView:A,classListView:j,companyId:y,mode:u.uiState.mode}):null,E===!0?a.jsx(qe,{closeDrawerHandler:F,isEditPeopleDrawerOpen:E,managersListView:L,companyPassportView:A,classListView:j,companyId:y,mode:u.uiState.mode}):null,a.jsx(Ne,{isAppContentDrawerOpen:U,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:V,onAskAiCfoClick:$})]})}function ka(){const e=Ke();return Oe(e?.loggedInUserRole??[])?a.jsxs(se,{children:[a.jsx(z,{path:"/",element:a.jsx(Q,{})}),a.jsx(z,{path:"new",element:a.jsx(Q,{isInvitePeopleDrawerOpen:!0})}),a.jsx(z,{path:":userId/edit",element:a.jsx(Q,{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-DR8KfETq.js";import E from"./NotFoundScreen-zRiKZg68.js";import{a as r}from"./sentry-FwaDhTzy.js";import{h as _,g as v,j as p,i as M,u as O,N as U,l as P,n as z,o as h}from"./core-Dh_SHcAD.js";import{fF as F,a0Y as b,bo as B,bn as N,iL as V,gh as L}from"./zeni-epic-state-DJh0-ZeR.js";import{O as Y,z as I,at as $,dO as q}from"./index-BeqOty_5.js";import"./mui-BYn_Ugho.js";import{u as G}from"./useAskAiCfoHostNavButtonProps-BnkkGFrU.js";import{M as H}from"./MobileAppDrawer-BnS3AEOn.js";import"./recharts-BTL88W4R.js";import"./analytics-Y9Rn1Gu7.js";import"./plaid-Dw8l1kdg.js";import"./dnd-CwwWYFuT.js";import"./stripe-cKAAJElX.js";import"./lottie-ODKvpFjz.js";import"./lexical-CaftfZ9D.js";import"./pdf-DnQo5-Qw.js";import"./utils-DEAaFgLU.js";import"./InboxNotificationsProvider-D6QvVVj8.js";import"./useTaskManagerAccess-DJBrAqGh.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]="9d163e5a-e3f6-4de1-98d3-35f313146693",e._sentryDebugIdIdentifier="sentry-dbid-9d163e5a-e3f6-4de1-98d3-35f313146693")}catch{}})();const J=P((function(e){const t=I.getSignedInUser(),d=e.tenantState.currentTenantId,o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:d??""},{aggregatedReportViewState:n}=b(e);return{authParams:o,isDisabled:!1,loggedInUser:t,aggregatedReport:n}}),(function(e,t){return{onBackClick:()=>{t.navigate("../../")},onClickMenuIcon:()=>{t.handleDrawerToggle(!0)}}}))(q),K=()=>{const e=_(),t=v(),d=Y(),o=p((a=>F(a))),{aggregatedReportViewState:n}=p((a=>b(a))),{tenantEmailDomain:f}=M(),u=O(),l=I.getSignedInUser();if(l==null)throw new Error("Can't access this page without signing in...");const m=r.useRef(!1),[w,S]=r.useState(!1),C=B(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"&&m.current&&(u(L({messageSection:"data_refresh_update",messageText:"success",type:"success",showStatusIcon:!0})),m.current=!1)}),[n?.fetchState]);const D=r.useCallback(((a,i)=>{n!=null&&n?.fetchState==="In-Progress"||c(a,i,!0),m.current=!0}),[n?.fetchState,c]),j=r.useCallback(((a,i)=>{c(a,i,!1)}),[c]),g=a=>{S(a)},{isAiCfoAccessEnabled:R,onAskAiCfoClick:A}=G({mobileExploreReferrer:"Performance"});return $({isDataReady:n?.fetchState==="Completed"}),y?s.jsxs(s.Fragment,{children:[s.jsx(H,{isAppContentDrawerOpen:w,handleDrawerToggle:g}),s.jsx(J,{navigate:e,location:t,themeState:d,currentTenant:o,signedInUser:l,tenantEmailDomain:f,onReload:D,onTimeRangeSelect:j,handleDrawerToggle:g,isAiCfoAccessEnabled:R,onAskAiCfoClick:A})]}):s.jsx(U,{to:`/${f}/dashboard`,replace:!0})};function he(){return s.jsxs(z,{children:[s.jsx(h,{path:"*",element:s.jsx(K,{})}),s.jsx(h,{path:"*",element:s.jsx(E,{})})]})}export{he as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as h,R as a}from"./sentry-
|
|
1
|
+
import{a as h,R as a}from"./sentry-FwaDhTzy.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};
|