@zeniai/web-app-ui 5.3.34-qa → 5.3.35-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-B3gERMwb.js → AccountMappingScreen-oF9SB8lC.js} +1 -1
- package/dist/assets/AddressRoutes-D5u2aC0G.js +1 -0
- package/dist/assets/AddressScreen-DAhASKnD.js +9 -0
- package/dist/assets/{AiCfoScreen-DMq_5n3A.js → AiCfoScreen-DtbpFUvW.js} +1 -1
- package/dist/assets/{AppDrawer-CmIwyYxA.js → AppDrawer-DgIZat8Y.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-iNqdFuHr.js → BillPayApprovalRoutes-BcTTtuk9.js} +1 -1
- package/dist/assets/{BillPayRoutes-CxVV20eB.js → BillPayRoutes-DzMi-88W.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-CcdlEk-F.js → BusinessVerificationPageScreen-BrMFJ04R.js} +2 -2
- package/dist/assets/{CardsAiCfoScreen-CY8kuFBn.js → CardsAiCfoScreen-DzpTC9Tl.js} +2 -2
- package/dist/assets/{ChargeCardRoutes-2l1CO_ZB.js → ChargeCardRoutes-CpxIxjUo.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-D0iwvjvi.js → CompanyPassportScreen-CZG0VzGt.js} +1 -1
- package/dist/assets/ConnectionAuthScreen-CQm6wJmE.js +11 -0
- package/dist/assets/CustomerOnboardingAuthScreen-L7AScaW-.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-DNGip8nR.js → CustomerOnboardingRoutes-DWKtQVrU.js} +3 -3
- package/dist/assets/{DashboardRoutes-WausKTZN.js → DashboardRoutes-fhBhtejS.js} +3 -3
- package/dist/assets/{DefaultTenantHome-DYJZWIVJ.js → DefaultTenantHome-DNz9XlwX.js} +1 -1
- package/dist/assets/DomesticWireDetailScreen-BocDjBvl.js +18 -0
- package/dist/assets/{DrawerScreen-BGFLKjZ4.js → DrawerScreen-C_iXQu29.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-dIhIGS0K.js → EntityDetailRoutes-BqVpTp4Y.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-2mQsPUHf.js → ExpenseAutomationRoutes-D-dQX1aJ.js} +1 -1
- package/dist/assets/FeaturePreviewScreen-rsNHVRcu.js +1 -0
- package/dist/assets/{HubSpotOAuthCallbackScreen-BAmofeTw.js → HubSpotOAuthCallbackScreen-BGakJpmj.js} +1 -1
- package/dist/assets/{InboxNotificationsProvider-C5ikUDhJ.js → InboxNotificationsProvider-B8bw_q0G.js} +1 -1
- package/dist/assets/{InvoicingRoutes-CCMsRJbo.js → InvoicingRoutes-CzY7Pon5.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-CtU6Muc9.js → MagicLinkRoutes-CrRbf01k.js} +5 -5
- package/dist/assets/MagicLinkSignInScreen-B-D9GcP_.js +12 -0
- package/dist/assets/{MobileAppDrawer-CRL9dcOy.js → MobileAppDrawer-ClmS_CKg.js} +1 -1
- package/dist/assets/NotFoundScreen-ChQ3MdaF.js +1 -0
- package/dist/assets/{NotificationRoutes-YdUDNMEO.js → NotificationRoutes-Bq-ypPdY.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-dseY-frv.js → OAuthConsentScreen-l7lhRk1n.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-fo_acE-Y.js → PandLWithForecastRoutes-CRW4ZBoi.js} +1 -1
- package/dist/assets/{PaymentLinkScreen-Dmzw63Ry.js → PaymentLinkScreen-AbljMNTc.js} +8 -8
- package/dist/assets/{PeopleRoutes-DYjiVo9L.js → PeopleRoutes-zEUFY5KN.js} +3 -3
- package/dist/assets/{PerformanceRoutes-Blu7VWI0.js → PerformanceRoutes-BXB_evpl.js} +1 -1
- package/dist/assets/{Preview-DGkUqHej.js → Preview-Cx8KRaHy.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-B3L0biVT.js → QBOConnectionScreen-7LXpKY4t.js} +23 -23
- package/dist/assets/{ReimbursementApprovalRoutes-BPS61Q6U.js → ReimbursementApprovalRoutes-RVy4d6Lf.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-B4_P7371.js → ReimbursementApprovalRuleDetailScreen-D6yOYV3V.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-JKmd-RDh.js → ReimbursementRoutes-Bc3IS_Gb.js} +1 -1
- package/dist/assets/{ReportsRoutes-CXTwauUR.js → ReportsRoutes-WYVKLj72.js} +1 -1
- package/dist/assets/RewardsRoutes-BLzu4qOC.js +1 -0
- package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-DiGMBAm5.js → ScheduleDetailsPrepaidExpensesScreen-DEsiuG3N.js} +1 -1
- package/dist/assets/ScreenRoutes-DkT9hF5d.js +2 -0
- package/dist/assets/{SettingsRoutes-BuKUGcQL.js → SettingsRoutes-B2YAYSgp.js} +6 -6
- package/dist/assets/{SetupPagesScreen-C5BRh3XH.js → SetupPagesScreen-NPOSu851.js} +1 -1
- package/dist/assets/SignInScreen-Bu-CIPaK.js +1 -0
- package/dist/assets/SignOutScreen-CzFHTR0y.js +9 -0
- package/dist/assets/{TaskListScreen-DY7UxmTl.js → TaskListScreen-DvdFC7kd.js} +1 -1
- package/dist/assets/{TaskRoutes-D9jm3Vx3.js → TaskRoutes-Cq7-nCc_.js} +1 -1
- package/dist/assets/TransactionDetailRoutes-Dkw9_Tdt.js +1 -0
- package/dist/assets/TransactionDetailScreen-DTAif4NW.js +5 -0
- package/dist/assets/{TransactionListRoutes-DlF9D1gA.js → TransactionListRoutes-pONv_3bc.js} +1 -1
- package/dist/assets/{TreasuryRoutes-B-vADZSw.js → TreasuryRoutes-BpGFufx4.js} +1 -1
- package/dist/assets/{VendorsRoutes-BB7CHJb3.js → VendorsRoutes-MS1Mqu_q.js} +7 -7
- package/dist/assets/{WiseConfirmationScreen-Un25bELv.js → WiseConfirmationScreen-DPnAAbgD.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-C4VQUVN_.js → ZeniAccountRoutes-DkkwhFr8.js} +9 -9
- package/dist/assets/{ZeniAccountStatementScreen-CX0ZvWif.js → ZeniAccountStatementScreen-BXGGSeK5.js} +1 -1
- package/dist/assets/{accountMappingHelper-CJL-kxIR.js → accountMappingHelper-DiD6kuzS.js} +1 -1
- package/dist/assets/analytics-qutbJJuo.js +68 -0
- package/dist/assets/{analyticsHelper-C7PuiJR9.js → analyticsHelper-Blk4u51e.js} +1 -1
- package/dist/assets/{core-CqflqGv9.js → core-cL-h_S3o.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-Bw5_joHN.js → decodeURIComponentSafe-DiZsTtnQ.js} +1 -1
- package/dist/assets/{dnd-OUjwZlfC.js → dnd-CvWVwn67.js} +1 -1
- package/dist/assets/{empty-BaQDcuze.js → empty-DSAj_JMj.js} +1 -1
- package/dist/assets/{empty-D2Qv8UjS.js → empty-Djzj0dHk.js} +1 -1
- package/dist/assets/{emptyVideoElement-CRjToyxO.js → emptyVideoElement-CeA_CN58.js} +1 -1
- package/dist/assets/{epic-6r2G7Ljw.js → epic-B0n7joLL.js} +1 -1
- package/dist/assets/{expenseAutomationHelper-BTi1SBkX.js → expenseAutomationHelper-DBhDJoc-.js} +1 -1
- package/dist/assets/{getLocaleForTenant-frknbVW9.js → getLocaleForTenant-vZHMIsC7.js} +1 -1
- package/dist/assets/{index-BWWz0Sm7.js → index-B-uE4TWW.js} +1 -1
- package/dist/assets/{index-DjGdOTXi.js → index-BMzYYdV-.js} +1 -1
- package/dist/assets/{index-C-1mKpRP.js → index-Bme2F7Z-.js} +1 -1
- package/dist/assets/{index-CNoRQUH7.js → index-Bn5lBj-O.js} +1 -1
- package/dist/assets/{index-6X2hJC9C.js → index-CqHPclch.js} +6983 -6983
- package/dist/assets/{index-DFz0hCrW.js → index-DqoiIKM_.js} +1 -1
- package/dist/assets/{index-i9f1kxGC.js → index-RGg62zU1.js} +1 -1
- package/dist/assets/{index-B8Cs9uSY.js → index-YXuAyHdu.js} +2 -2
- package/dist/assets/{lexical-BHqkUsiS.js → lexical-fOKQwNUZ.js} +1 -1
- package/dist/assets/{liveblocks-B0EpRifM.js → liveblocks-DVe3Eena.js} +1 -1
- package/dist/assets/{lottie-x3DIllPk.js → lottie-MSaCuPby.js} +1 -1
- package/dist/assets/{mui-Splhybhe.js → mui-a6BeA4JD.js} +1 -1
- package/dist/assets/{pathToGoBack-LnL-ovI6.js → pathToGoBack-g9S0YvmK.js} +1 -1
- package/dist/assets/{pdf-BZfLFbU_.js → pdf-CurGQkyb.js} +3 -3
- package/dist/assets/{pdf-lib-CpxtL5pi.js → pdf-lib-D4BCwttf.js} +1 -1
- package/dist/assets/{plaid-D5Rs2Xbn.js → plaid-C5X1WR-a.js} +1 -1
- package/dist/assets/{pusher-9E3ynLMf.js → pusher-BAEnXzer.js} +1 -1
- package/dist/assets/{react-_LAOK0QT.js → react-BM46mFnY.js} +1 -1
- package/dist/assets/{react-Cdqh8MuG.js → react-BYcgSbTE.js} +1 -1
- package/dist/assets/{react-BHgTygpo.js → react-CtJLNNcb.js} +1 -1
- package/dist/assets/{react-BWMsOlMm.js → react-D5GF-zB3.js} +1 -1
- package/dist/assets/{react-bYlWEvlR.js → react-DFRbAeBc.js} +1 -1
- package/dist/assets/{react-DPAdkb-c.js → react-dqICH6I-.js} +1 -1
- package/dist/assets/{recharts-C-DOhwH-.js → recharts-BPDamcen.js} +1 -1
- package/dist/assets/{routePaths-vIHY-V28.js → routePaths-CnOyUO-g.js} +1 -1
- package/dist/assets/{sentry-BefEASz6.js → sentry-DqMiDAOv.js} +1 -1
- package/dist/assets/{url-DGJ2AapT.js → url-Bog1JfMa.js} +1 -1
- package/dist/assets/{url-DWw1bUBN.js → url-DLaGwo5M.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-DCkiFTBp.js → useAiCfoDashboardSuggestedQuestionsChips-BtkJMqy-.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-CC-A4pbv.js +1 -0
- package/dist/assets/{useChargeCardPusherEvents-CextOSJa.js → useChargeCardPusherEvents-hlnBdTOt.js} +1 -1
- package/dist/assets/{useDeviceId-C-MNChOb.js → useDeviceId-u80nXpjK.js} +1 -1
- package/dist/assets/{useEmailConnectResultRefresh-BNpn3T_H.js → useEmailConnectResultRefresh-BUOqlXBf.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-Ocoxr05G.js → useInitialThreadRequest-qINhUcGQ.js} +1 -1
- package/dist/assets/{useTaskManagerAccess-BTngy8S4.js → useTaskManagerAccess-d9qjO6N5.js} +1 -1
- package/dist/assets/{utils-JmZUGXv-.js → utils-jUBXEI4l.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-C1SRvhe2.js → withTransactionSidePanel-DIdgE_vn.js} +1 -1
- package/dist/assets/{zeni-epic-state-Sf5HhdfR.js → zeni-epic-state-DMwHYs-L.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/AddressRoutes-ofjUZj67.js +0 -1
- package/dist/assets/AddressScreen-2Ll0sIt2.js +0 -9
- package/dist/assets/ConnectionAuthScreen-DISa934v.js +0 -11
- package/dist/assets/CustomerOnboardingAuthScreen-endMBMm7.js +0 -1
- package/dist/assets/DomesticWireDetailScreen-ClypaxS0.js +0 -18
- package/dist/assets/FeaturePreviewScreen-Bw_lynVj.js +0 -1
- package/dist/assets/MagicLinkSignInScreen-Dmx8QuEo.js +0 -12
- package/dist/assets/NotFoundScreen-yHXIfv3c.js +0 -1
- package/dist/assets/RewardsRoutes-CrvPTVJy.js +0 -1
- package/dist/assets/ScreenRoutes-B9tAK3Rz.js +0 -2
- package/dist/assets/SignInScreen-Boe9M9a6.js +0 -1
- package/dist/assets/SignOutScreen-u27_Ol9O.js +0 -9
- package/dist/assets/TransactionDetailRoutes-D704rpNa.js +0 -1
- package/dist/assets/TransactionDetailScreen-3kh7GhKV.js +0 -5
- package/dist/assets/analytics-Bg9sHj4I.js +0 -68
- package/dist/assets/useAskAiCfoHostNavButtonProps-_aV90QuU.js +0 -1
package/dist/assets/{PandLWithForecastRoutes-fo_acE-Y.js → PandLWithForecastRoutes-CRW4ZBoi.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as n}from"./liveblocks-
|
|
1
|
+
import{j as n}from"./liveblocks-DVe3Eena.js";import{h as K,u as X,g as H,i as Q,j as d,l as Z,n as ee,o as C}from"./core-cL-h_S3o.js";import{fE as w,zw as R,uv as ae,UJ as M,uq as y,bq as te,b$ as se,ur as oe,UK as re,Ur as S,eb as ne,Di as ce,UL as ie,DG as le,dY as de,dX as me}from"./zeni-epic-state-DMwHYs-L.js";import{ai as fe,z as pe,aq as ue,as as he,V as Fe,O as q,y as $,a8 as ge,j as _,aD as be,p as Ie}from"./index-CqHPclch.js";import"./mui-a6BeA4JD.js";import Ce from"./NotFoundScreen-ChQ3MdaF.js";import{F as Se}from"./FeaturePreviewScreen-rsNHVRcu.js";import{a as F}from"./sentry-DqMiDAOv.js";import{u as ye}from"./useAskAiCfoHostNavButtonProps-CC-A4pbv.js";import{u as Te}from"./useInitialThreadRequest-qINhUcGQ.js";import{t as De}from"./routePaths-CnOyUO-g.js";import{M as Ae}from"./MobileAppDrawer-ClmS_CKg.js";import"./recharts-BPDamcen.js";import"./analytics-qutbJJuo.js";import"./plaid-C5X1WR-a.js";import"./dnd-CvWVwn67.js";import"./stripe-cKAAJElX.js";import"./lottie-MSaCuPby.js";import"./lexical-fOKQwNUZ.js";import"./pdf-CurGQkyb.js";import"./utils-jUBXEI4l.js";import"./InboxNotificationsProvider-B8bw_q0G.js";import"./useTaskManagerAccess-d9qjO6N5.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]="db915047-aac4-4270-9965-db1a3809e073",s._sentryDebugIdIdentifier="sentry-dbid-db915047-aac4-4270-9965-db1a3809e073")}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(M(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=K(),a=X(),o=H(),{forecastId:r,tenantEmailDomain:c}=Q(),[p,u]=F.useState(!1),[m,D]=F.useState(!1),g=pe.getSignedInUser(),A=d((t=>w(t))),B=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:G,onAskAiCfoClick:N}=ye({mobileExploreReferrer:"Forecast"});F.useEffect((()=>{if(!p&&b)u(!0),l||a(ae());else if(l&&!m){D(!0);const t=((f,U,O)=>U!=null?f.forecasts.findIndex((I=>I.id===U)):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(M(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 L=Fe(),V=L?.loggedInUserRole!=null&&te(L.loggedInUserRole),{useFeatureGate:W}=q(),{isFeatureEnabled:k}=W($.isReportsCommentingEnabled),Y=Te(k?A?.companyId:void 0,{clearParams:l&&m}),[z,J]=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=>{J(t)};return n.jsxs(n.Fragment,{children:[l?n.jsx(ge,{analytics:_,onLoad:t=>(f=>f.trackForecast())(t)}):null,n.jsx(Ae,{isAppContentDrawerOpen:z,handleDrawerToggle:P}),n.jsx(xe,{firstMonthOfFY:B,tenantEmailDomain:c,forecastIdFromUrlPath:r,navigate:e,location:o,isPandLReportFetched:E,meetingUrl:se(h.toString()),hasTransactionAccess:V,isAiCfoAccessEnabled:G,onAskAiCfoClick:N,isReportsCommentingEnabled:k,initialOpenThreadRequest:Y,onClickMenuIcon:()=>{P(!0)}})]})}function Xe(){const s=d((c=>w(c))),{useFeatureGate:e}=q(),{isFeatureEnabled:a}=e($.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{Xe as default};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import{j as
|
|
1
|
+
import{j as r}from"./liveblocks-DVe3Eena.js";import{a as p}from"./sentry-DqMiDAOv.js";import{I as c,J as a,a9 as m,ad as f,ae as h}from"./index-CqHPclch.js";import"./mui-a6BeA4JD.js";import{i as y}from"./core-cL-h_S3o.js";import"./zeni-epic-state-DMwHYs-L.js";import"./recharts-BPDamcen.js";import"./analytics-qutbJJuo.js";import"./plaid-C5X1WR-a.js";import"./dnd-CvWVwn67.js";import"./stripe-cKAAJElX.js";import"./lottie-MSaCuPby.js";import"./lexical-fOKQwNUZ.js";import"./pdf-CurGQkyb.js";import"./utils-jUBXEI4l.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]="4553bbf5-4e68-43e4-bfc4-1af1eba789d6",e._sentryDebugIdIdentifier="sentry-dbid-4553bbf5-4e68-43e4-bfc4-1af1eba789d6")}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
|
-
padding: ${
|
|
10
|
-
`,
|
|
11
|
-
width: ${
|
|
12
|
-
height: ${
|
|
9
|
+
padding: ${a.sp3} ${a.sp4};
|
|
10
|
+
`,k=c(m)`
|
|
11
|
+
width: ${a.sp4};
|
|
12
|
+
height: ${a.sp4};
|
|
13
13
|
color: ${e=>e.theme.colors.brandColorJade};
|
|
14
14
|
`,x=c("main")`
|
|
15
15
|
display: flex;
|
|
@@ -17,5 +17,5 @@ import{j as a}from"./liveblocks-B0EpRifM.js";import{a as p}from"./sentry-BefEASz
|
|
|
17
17
|
flex-direction: column;
|
|
18
18
|
align-items: center;
|
|
19
19
|
justify-content: center;
|
|
20
|
-
padding: ${
|
|
21
|
-
`;function j({children:e}){return
|
|
20
|
+
padding: ${a.sp4};
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import{j as a}from"./liveblocks-
|
|
1
|
+
import{j as a}from"./liveblocks-DVe3Eena.js";import{UF as re,fE as Q,l_ as G,dY as N,dX as le,Rx as X,U2 as ce,Cf as Pe,UG as J,C4 as je,Cp as Le,Cj as de,C8 as pe,Cn as Te,Ck as ve,UH as ue,rL as Ae,g5 as Re,gC as Fe,UI as H,Cc as me,Cb as ge,Cs as Oe,c8 as Ve}from"./zeni-epic-state-DMwHYs-L.js";import{a1 as fe,O as Y,y as _,z as K,f as Ce,P as he,af as ye,az as be,aA as Ue,ab as Se,J as O,ag as we,G as W,aB as Ze,aq as Be,as as $e,a8 as ze,j as xe,T as He,p as _e,aC as Ge,V as Ke}from"./index-CqHPclch.js";import{D as De,n as M,S as Ie}from"./mui-a6BeA4JD.js";import ae from"./NotFoundScreen-ChQ3MdaF.js";import{a as c}from"./sentry-DqMiDAOv.js";import{u as ee,i as We,j as g,h as Me,g as qe,l as Je,n as se,o as z}from"./core-cL-h_S3o.js";import{u as Qe}from"./useAskAiCfoHostNavButtonProps-CC-A4pbv.js";import{M as Ne}from"./MobileAppDrawer-ClmS_CKg.js";import"./recharts-BPDamcen.js";import"./analytics-qutbJJuo.js";import"./plaid-C5X1WR-a.js";import"./dnd-CvWVwn67.js";import"./stripe-cKAAJElX.js";import"./lottie-MSaCuPby.js";import"./lexical-fOKQwNUZ.js";import"./pdf-CurGQkyb.js";import"./utils-jUBXEI4l.js";import"./InboxNotificationsProvider-B8bw_q0G.js";import"./useTaskManagerAccess-d9qjO6N5.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]="92221df6-6f31-47c4-a255-07485c85a2f6",e._sentryDebugIdIdentifier="sentry-dbid-92221df6-6f31-47c4-a255-07485c85a2f6")}catch{}})();const Xe={overlayWidth:new Se(100,100,48)},te=W.getLocalizedStrings().peoplePage.invitePage,ne=W.getLocalizedStrings().common,Ye=({companyId:e,managersListView:t,companyPassportView:d,classListView:n,mode:f,isEditPeopleDrawerOpen:i,closeDrawerHandler:b})=>{const C=fe(),m=ee(),[V,U]=c.useState(!1),[k,S]=c.useState(!1),{userId:w}=We(),r=g((l=>re(l))),p=g((l=>Q(l))),E=g((l=>G(l))),{useFeatureGate:D}=Y(),{isFeatureEnabled:I}=D(_.isDebitCardFeatureEnabled),P=N(I,p),T=le(p),v=X(p),Z=ce(p),B=!!p.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,x=!P&&E&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||d.fetchState!=="Completed"||e==null;if(K.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const h=()=>{m(J()),b()},A=()=>{V===!0?S(!0):h()},$=d.companyView?.controllers?.map((l=>l.user)),u=!!p.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:j}=D(_.isChargeCardFeatureEnabled),L=Ce(p,j,I),{isCardsHidden:R}=he(p?.tenantId),y=!L||R,F=p.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",s={peopleDetails:r,classList:n.classes,managersList:t.users,controllersList:$,mode:f,isZeniTenant:v,isAccountingClassesEnabled:E,isReimbursementDisabled:B===!1,isZeniAccountsDisabled:u===!1,isChargeCardDisabled:y,isTreasuryDisabled:F===!1,isLiteRoleDisabled:Z===!1,isBankingOnlyTenant:P,isCardsOnlyTenant:T,onResetClick:h,onDeleteUser:l=>{m(pe(l.userId,l.userRole.userRoleId))},onPeopleLocalDataUpdated:l=>{m(de({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 c.useEffect((()=>{x===!1&&w!=null&&m(Pe(w))}),[x,w]),c.useEffect((()=>{r.updatePersonState.fetchState==="Completed"&&h()}),[r.updatePersonState.fetchState]),a.jsx(De,{anchor:"right",open:i,PaperProps:{style:{width:Xe.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
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -15,8 +15,8 @@ import{j as a}from"./liveblocks-B0EpRifM.js";import{UF as re,fE as Q,l_ as G,dY
|
|
|
15
15
|
margin-bottom: 30px;
|
|
16
16
|
margin-top: ${O.sp4};
|
|
17
17
|
white-space: pre-line;
|
|
18
|
-
`,aa={overlayWidth:new Se(100,100,48)},oe=W.getLocalizedStrings().peoplePage.invitePage,ie=W.getLocalizedStrings().common,sa=({companyId:e,managersListView:t,companyPassportView:d,classListView:n,mode:f,isInvitePeopleDrawerOpen:i,closeDrawerHandler:b})=>{const C=fe(),m=ee(),[V,U]=c.useState(!1),[k,S]=c.useState(!1),w=g((o=>re(o))),r=g((o=>Q(o))),p=g((o=>G(o))),{useFeatureGate:E}=
|
|
18
|
+
`,aa={overlayWidth:new Se(100,100,48)},oe=W.getLocalizedStrings().peoplePage.invitePage,ie=W.getLocalizedStrings().common,sa=({companyId:e,managersListView:t,companyPassportView:d,classListView:n,mode:f,isInvitePeopleDrawerOpen:i,closeDrawerHandler:b})=>{const C=fe(),m=ee(),[V,U]=c.useState(!1),[k,S]=c.useState(!1),w=g((o=>re(o))),r=g((o=>Q(o))),p=g((o=>G(o))),{useFeatureGate:E}=Y(),{isFeatureEnabled:D}=E(_.isDebitCardFeatureEnabled),I=N(D,r),P=le(r),T=X(r),v=ce(r),Z=!!r.company?.featuresActivationInfo?.isReimbursementFeatureEnabled,B=!I&&p&&n.fetchState!=="Completed"||t.fetchState!=="Completed"||d.fetchState!=="Completed"||e==null;if(K.getSignedInUser()==null)throw Error("Can't access invite people page without signing in...");const x=()=>{b(),m(J())},h=()=>{V===!0?S(!0):x()},A={onOkClick:()=>{S(!1),x()},onCancelClick:()=>{S(!1)}},$=d.companyView?.controllers.map((o=>o.user)),u=!!r.company?.companyZeniAccountInfo?.isZeniAccountEnabled,{isFeatureEnabled:j}=E(_.isChargeCardFeatureEnabled),L=Ce(r,j,D),{isCardsHidden:R}=he(r?.tenantId),y=!L||R,F=r.companyTreasuryInfo?.info?.businessVerificationStatus?.code==="verified",s={classList:n.classes,managersList:t.users,controllersList:$,mode:f,isZeniTenant:T,onPeopleLocalDataUpdated:o=>{m(de({peopleLocalData:o})),U(!0)},onResetClick:x,onSaveClick:()=>{m(f==="zeni_only"?Te(e):ve())},onCloseClick:h,peopleDetails:w,isAccountingClassesEnabled:p,isReimbursementDisabled:Z===!1,isLiteRoleDisabled:v===!1,isZeniAccountsDisabled:u===!1,isChargeCardDisabled:y,isTreasuryDisabled:F===!1,isBankingOnlyTenant:I,isCardsOnlyTenant:P,isLoading:B};return c.useEffect((()=>{w.invitePersonState.fetchState==="Completed"&&(b(),m(J()))}),[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(Ze,{...s})]})})},ta=M(Ie)`
|
|
19
19
|
display: flex;
|
|
20
20
|
min-height: 100%;
|
|
21
21
|
flex-direction: column;
|
|
22
|
-
`,na=
|
|
22
|
+
`,na=Je((function(e,t){const d=ue(e),n=K.getSignedInUser();return{data:d,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:d,companyId:n,shouldFetchClasses:f}=t;return{personAction:{onPersonDelete:(i,b)=>{e(pe(i,b))},onResendInvite:i=>{e(Oe(i))},onReloadPeople:()=>{e(me()),e(ge(n,f))},onBackClick:()=>{d("../../")},onModeChange:i=>{e(H({mode:i,searchText:"",sortKey:"name",sortOrder:"ascending"}))},onSearchTextChanged:i=>{e(H({searchText:i}))}}}}))(Ge);function q({isInvitePeopleDrawerOpen:e,isEditPeopleDrawerOpen:t}){const d=Me(),n=ee(),f=qe(),{areTenantIdsInSync:i}=Be(),b=K.getSignedInUser(),C=g((s=>Q(s))),{useFeatureGate:m}=Y(),{isFeatureEnabled:V}=m(_.isDebitCardFeatureEnabled),U=g((s=>G(s))),k=!N(V,C)&&U,S=X(C),w=C?.tenantId,{tenantEmailDomain:r}=C,[p,E]=c.useState(!1),[D,I]=c.useState(!1),[P,T]=c.useState(!1),[v,Z]=c.useState("off"),[B,x]=c.useState(!1),h=s=>{x(s)},{isAiCfoAccessEnabled:A,onAskAiCfoClick:$}=Qe({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=>Fe(s))),y=C?.companyId;c.useEffect((()=>{p&&v===u.uiState.mode||!i||(n(H({searchText:"",sortKey:"name",sortOrder:"ascending"})),Z(u.uiState.mode),E(!0),n(me()))}),[p,b,w,n,u.uiState.mode,i]),c.useEffect((()=>{y!=null&&i&&n(ge(y,k))}),[y,k,i]),c.useEffect((()=>{I(e!=null&&e===!0),T(t!=null&&t===!0&&t)}),[e,t]),c.useEffect((()=>{n(H({searchText:"",sortKey:"name",sortOrder:"ascending"}))}),[]);const F=()=>{I(!1),T(!1),d("../")};return a.jsxs(a.Fragment,{children:[u.fetchState==="Completed"?a.jsx(ze,{analytics:xe,onLoad:s=>s.trackPageLoaded(He.Event.members)}):null,D===!0?a.jsx(sa,{closeDrawerHandler:F,isInvitePeopleDrawerOpen:D,managersListView:L,companyPassportView:R,classListView:j,companyId:y,mode:u.uiState.mode}):null,P===!0?a.jsx(Ye,{closeDrawerHandler:F,isEditPeopleDrawerOpen:P,managersListView:L,companyPassportView:R,classListView:j,companyId:y,mode:u.uiState.mode}):null,a.jsx(Ne,{isAppContentDrawerOpen:B,handleDrawerToggle:h}),a.jsx(na,{navigate:d,signedInUser:b,isZeni:C.isZeni,isZeniTenant:S,peopleUIState:u.uiState,companyId:y,shouldFetchClasses:k,classList:j,managersView:L,peopleView:u,onInvitePeopleClick:()=>{d("./new")},onColumnSortConfigChanged:(s,o)=>{n(H({sortKey:s,sortOrder:o}))},onRowClick:s=>{const o=`/${r}/people/${encodeURIComponent(s)}/edit`,l=_e(f.state?.pathnameStackToGoBack,f.pathname);d(o,{state:{pathnameStackToGoBack:l}})},onClickMenuIcon:()=>{h(!0)},isAiCfoAccessEnabled:A,onAskAiCfoClick:$})]})}function ka(){const e=Ke();return Ve(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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-
|
|
1
|
+
import{j as s}from"./liveblocks-DVe3Eena.js";import T from"./NotFoundScreen-ChQ3MdaF.js";import{a as r}from"./sentry-DqMiDAOv.js";import{h as _,g as v,j as p,i as M,u as U,N as P,l as z,n as N,o as b}from"./core-cL-h_S3o.js";import{fE as O,a0h as h,bo as B,bn as F,iK as V,gg as q}from"./zeni-epic-state-DMwHYs-L.js";import{q as K,z as I,as as $,dN as G}from"./index-CqHPclch.js";import"./mui-a6BeA4JD.js";import{u as H}from"./useAskAiCfoHostNavButtonProps-CC-A4pbv.js";import{M as J}from"./MobileAppDrawer-ClmS_CKg.js";import"./recharts-BPDamcen.js";import"./analytics-qutbJJuo.js";import"./plaid-C5X1WR-a.js";import"./dnd-CvWVwn67.js";import"./stripe-cKAAJElX.js";import"./lottie-MSaCuPby.js";import"./lexical-fOKQwNUZ.js";import"./pdf-CurGQkyb.js";import"./utils-jUBXEI4l.js";import"./InboxNotificationsProvider-B8bw_q0G.js";import"./useTaskManagerAccess-d9qjO6N5.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]="dbcb857a-2c98-43cf-b11d-1cc2b813d769",e._sentryDebugIdIdentifier="sentry-dbid-dbcb857a-2c98-43cf-b11d-1cc2b813d769")}catch{}})();const L=z((function(e){const t=I.getSignedInUser(),c=e.tenantState.currentTenantId,o={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:c??""},{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=v(),c=K(),o=p((a=>O(a))),{aggregatedReportViewState:n}=p((a=>h(a))),{tenantEmailDomain:f}=M(),g=U(),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=F(l),y=C||k||x,d=r.useCallback(((a,i,E)=>{g(V({fromMonth:a,toMonth:i,cacheOverride:E}))}),[]);r.useEffect((()=>{n?.fetchState==="Completed"&&m.current&&(g(q({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"||d(a,i,!0),m.current=!0}),[n?.fetchState,d]),j=r.useCallback(((a,i)=>{d(a,i,!1)}),[d]),u=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:u}),s.jsx(L,{navigate:e,location:t,themeState:c,currentTenant:o,signedInUser:l,tenantEmailDomain:f,onReload:D,onTimeRangeSelect:j,handleDrawerToggle:u,isAiCfoAccessEnabled:R,onAskAiCfoClick:A})]}):s.jsx(P,{to:`/${f}/dashboard`,replace:!0})};function be(){return s.jsxs(N,{children:[s.jsx(b,{path:"*",element:s.jsx(Q,{})}),s.jsx(b,{path:"*",element:s.jsx(T,{})})]})}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-DqMiDAOv.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};
|