@zeniai/web-app-ui 5.1.48-dev → 5.1.50-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/AddressRoutes-BO0Y1XuG.js +1 -0
- package/dist/assets/{AddressScreen-BdkkfpOD.js → AddressScreen-cCnouRSn.js} +2 -2
- package/dist/assets/{AiCfoScreen-CJ2jNf-v.js → AiCfoScreen-DuDTdplv.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-C9K9cwdL.js → BillPayApprovalRoutes-B_ArN4m-.js} +1 -1
- package/dist/assets/{BillPayRoutes-DI9tqZg4.js → BillPayRoutes-CeSWBsHw.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-BvxrLE03.js → BusinessVerificationPageScreen-B8bnbJvI.js} +2 -2
- package/dist/assets/{CardsAiCfoScreen-7dPiCcoy.js → CardsAiCfoScreen-BFi-6bPY.js} +1 -1
- package/dist/assets/ChargeCardRoutes-3ZPc6bsC.js +71 -0
- package/dist/assets/CompanyPassportScreen--e7woif_.js +1 -0
- package/dist/assets/ConnectionAuthScreen-DYP_9VcK.js +11 -0
- package/dist/assets/CustomerOnboardingAuthScreen-vzmXnBfR.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-BgHk9KVG.js → CustomerOnboardingRoutes-DY7mGrS8.js} +4 -4
- package/dist/assets/{DashboardRoutes-BRz85PCY.js → DashboardRoutes-CWWt-YY9.js} +3 -3
- package/dist/assets/{DefaultTenantHome-BcFCHmoG.js → DefaultTenantHome-Bi_Nepv1.js} +1 -1
- package/dist/assets/DomesticWireDetailScreen-BtjmG_jm.js +18 -0
- package/dist/assets/DrawerScreen-Bhvl5Bpw.js +1 -0
- package/dist/assets/EntityDetailRoutes-DWUflhpV.js +1 -0
- package/dist/assets/{ExpenseAutomationRoutes-C-CBTBm8.js → ExpenseAutomationRoutes-5xMDqEkK.js} +3 -3
- package/dist/assets/{FeaturePreviewScreen-CeZNu_Vi.js → FeaturePreviewScreen-Cs1JStpc.js} +1 -1
- package/dist/assets/HubSpotOAuthCallbackScreen-C2hS7TqE.js +1 -0
- package/dist/assets/{MagicLinkRoutes-7XFxi-_N.js → MagicLinkRoutes-DIheMWou.js} +5 -5
- package/dist/assets/MagicLinkSignInScreen-BhydWF2v.js +12 -0
- package/dist/assets/{MobileAppDrawer-D6Fu3M_x.js → MobileAppDrawer-bZsvcUIO.js} +1 -1
- package/dist/assets/NotFoundScreen-DkPaaWNr.js +1 -0
- package/dist/assets/{NotificationRoutes-DN56rmti.js → NotificationRoutes-Debt_KCq.js} +1 -1
- package/dist/assets/OAuthConsentScreen-BYk52B4_.js +1 -0
- package/dist/assets/PandLWithForecastRoutes-DvAao1a8.js +1 -0
- package/dist/assets/{PeopleRoutes-CVdNkMW2.js → PeopleRoutes-jjBWyySA.js} +9 -9
- package/dist/assets/PerformanceRoutes-K4zUr9LW.js +1 -0
- package/dist/assets/{Preview-BohCuc6u.js → Preview-CKm-UT5u.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-CL_uJ9x0.js → QBOConnectionScreen-Bq-1t6Xi.js} +1 -1
- package/dist/assets/ReferralListScreen-_mz3EFDf.js +5 -0
- package/dist/assets/ReimbursementApprovalRoutes-DrGF2MTj.js +1 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-DGivgXWQ.js → ReimbursementApprovalRuleDetailScreen-BWFBxfUH.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-CqFV9Upl.js → ReimbursementRoutes-DY21Vmvy.js} +5 -5
- package/dist/assets/{ReportsRoutes-iiURxm9r.js → ReportsRoutes-WmSJGW8t.js} +1 -1
- package/dist/assets/RewardsRoutes-BZ9NRCXj.js +1 -0
- package/dist/assets/{ScreenRoutes-BVYp-4m8.js → ScreenRoutes-Cf5Tsx0Z.js} +2 -2
- package/dist/assets/{SettingsRoutes-DOfAWDHL.js → SettingsRoutes-C9qtCzkG.js} +8 -8
- package/dist/assets/{SetupPagesScreen-Djxd17id.js → SetupPagesScreen-B_L42KP-.js} +5 -5
- package/dist/assets/SignInScreen-ChB2BnS8.js +1 -0
- package/dist/assets/SignOutScreen-BwwfTIGJ.js +9 -0
- package/dist/assets/{TaskListScreen-Dreq2LHj.js → TaskListScreen-DP-G56Cv.js} +2 -2
- package/dist/assets/TaskRoutes-B1qP8Ev_.js +9 -0
- package/dist/assets/{TransactionDetailRoutes-Bs9ghT0l.js → TransactionDetailRoutes-q6akxnYr.js} +1 -1
- package/dist/assets/{TransactionDetailScreen-s_jEo2WG.js → TransactionDetailScreen-BDokO385.js} +2 -2
- package/dist/assets/{TransactionListRoutes-BgdTO4HR.js → TransactionListRoutes-4uU8xSo5.js} +1 -1
- package/dist/assets/{TreasuryRoutes-8u7u_9F8.js → TreasuryRoutes-Cwxw4OCX.js} +5 -5
- package/dist/assets/{VendorsRoutes-CYZmnwrv.js → VendorsRoutes-CYXZWLCR.js} +10 -10
- package/dist/assets/WiseConfirmationScreen-DFk6ctUo.js +12 -0
- package/dist/assets/{ZeniAccountRoutes-DO2fE8r2.js → ZeniAccountRoutes-Dkb3Uwio.js} +13 -13
- package/dist/assets/ZeniAccountStatementScreen-Cp587aU0.js +9 -0
- package/dist/assets/{accountMappingHelper-DwVJRdRo.js → accountMappingHelper-D75TOEDA.js} +1 -1
- package/dist/assets/{analytics-BUvTITrb.js → analytics-CkXhIYGA.js} +1 -1
- package/dist/assets/{analyticsHelper-DaDCazpC.js → analyticsHelper-DcxhhZJu.js} +1 -1
- package/dist/assets/{core-wjM80qIn.js → core-B5TeChD4.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-4aj60Fs2.js → decodeURIComponentSafe-DXB7OyA3.js} +1 -1
- package/dist/assets/{dnd-BK3JI-SF.js → dnd-CWnSyq9-.js} +1 -1
- package/dist/assets/{empty-CUF5cU17.js → empty-D1f-cCDu.js} +1 -1
- package/dist/assets/{empty-D8a3KaBg.js → empty-r-IKwqcp.js} +1 -1
- package/dist/assets/{emptyVideoElement-DDXARDvi.js → emptyVideoElement-B8V1wuPO.js} +1 -1
- package/dist/assets/epic-DuAKKq3W.js +2 -0
- package/dist/assets/{getLocaleForTenant-yX1iEbj2.js → getLocaleForTenant-Bixn6PX7.js} +1 -1
- package/dist/assets/{index-BVZpKi1S.js → index-B0QsCXA7.js} +2 -2
- package/dist/assets/{index-Det3Ki3b.js → index-B2U2XMzI.js} +13002 -12858
- package/dist/assets/{index-DApnMePi.js → index-BfRRBBMI.js} +1 -1
- package/dist/assets/{index-D3VvkPFN.js → index-CGTF1rlJ.js} +1 -1
- package/dist/assets/{index-CWHzFtd9.js → index-C_NwT3-k.js} +1 -1
- package/dist/assets/{index-D8Ajpofo.js → index-DDl-KBgR.js} +1 -1
- package/dist/assets/{index-DuIPJrPJ.js → index-Kq1a616O.js} +1 -1
- package/dist/assets/{index-DypTJFR1.js → index-R3BgB7Uo.js} +1 -1
- package/dist/assets/{lexical-DcicQSkI.js → lexical-D7c0ykAW.js} +1 -1
- package/dist/assets/{liveblocks-GsPfxkQ7.js → liveblocks-C-n95g0A.js} +1 -1
- package/dist/assets/{lottie-C5rIATv6.js → lottie-zNHYqEBz.js} +1 -1
- package/dist/assets/{mui-BSDa87ap.js → mui-Da8iY16Z.js} +1 -1
- package/dist/assets/{pathToGoBack-CAzQiLsh.js → pathToGoBack-nrN7wX5B.js} +1 -1
- package/dist/assets/{pdf-BLNuomMl.js → pdf-BM7gJkYi.js} +4 -4
- package/dist/assets/{pdf-lib-BR9HrRu8.js → pdf-lib-BVCnHm-C.js} +1 -1
- package/dist/assets/{plaid-50YvjniW.js → plaid-kqYG7b9d.js} +1 -1
- package/dist/assets/{pusher-DyWQA0RT.js → pusher-CLZoiBO8.js} +1 -1
- package/dist/assets/{react-BKGEXYtN.js → react-B40ow9gH.js} +1 -1
- package/dist/assets/{react-CrU6fZvx.js → react-BggCpRGR.js} +1 -1
- package/dist/assets/{react-Dj2j64JD.js → react-C-sHFsWu.js} +1 -1
- package/dist/assets/{react-uWUXgbgu.js → react-C3y2xvic.js} +1 -1
- package/dist/assets/{react-Ci53z-6c.js → react-CbGrXN5I.js} +1 -1
- package/dist/assets/{react-DmfWUkEA.js → react-zGBF6iFI.js} +1 -1
- package/dist/assets/{recharts-D4VpFd5q.js → recharts--v-RQjOV.js} +1 -1
- package/dist/assets/{routePaths-CbGdb8gZ.js → routePaths-BhCcxP1S.js} +1 -1
- package/dist/assets/{sentry-B2TzMFx9.js → sentry-lku8kjDH.js} +1 -1
- package/dist/assets/{url-CcjxrMLZ.js → url-ByXYagPi.js} +1 -1
- package/dist/assets/{url-D1xNpCnF.js → url-CRmtHtjd.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-D8RjKLM8.js → useAiCfoDashboardSuggestedQuestionsChips-B4QfsEVQ.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-Bt3rxiW7.js +1 -0
- package/dist/assets/useCashManagementBanner-BdFPdsZy.js +1 -0
- package/dist/assets/{useDeviceId-t80vtq4B.js → useDeviceId-bV7jqaoy.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-D9NRPlO5.js → useInitialThreadRequest-j8y2-Pa3.js} +1 -1
- package/dist/assets/{utils-BwzhiOdE.js → utils-Dw1Jg_v9.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-D8vEjelm.js → withTransactionSidePanel-BZm11u-w.js} +4 -4
- package/dist/assets/{zeni-epic-state-DrcliB1J.js → zeni-epic-state-BzDw8pi_.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/AddressRoutes-Cfx49so1.js +0 -1
- package/dist/assets/ChargeCardRoutes-BIha80p-.js +0 -71
- package/dist/assets/CompanyPassportScreen-CuQ-1lmT.js +0 -1
- package/dist/assets/ConnectionAuthScreen-CZ8o3YZi.js +0 -11
- package/dist/assets/CustomerOnboardingAuthScreen-BnNax-8a.js +0 -1
- package/dist/assets/DomesticWireDetailScreen-BgEqXJEl.js +0 -18
- package/dist/assets/DrawerScreen-_1RQlY4y.js +0 -1
- package/dist/assets/EntityDetailRoutes-C7uFwXUz.js +0 -1
- package/dist/assets/HubSpotOAuthCallbackScreen-C0pKe0vy.js +0 -1
- package/dist/assets/MagicLinkSignInScreen-CGIo0N71.js +0 -12
- package/dist/assets/NotFoundScreen-_JeeXwwE.js +0 -1
- package/dist/assets/OAuthConsentScreen-DCckgFNN.js +0 -1
- package/dist/assets/PandLWithForecastRoutes-DQXcPbfr.js +0 -1
- package/dist/assets/PerformanceRoutes-BFxcHJn-.js +0 -1
- package/dist/assets/ReferralListScreen-Cb-o7kTE.js +0 -5
- package/dist/assets/ReimbursementApprovalRoutes-BV3UuxT_.js +0 -1
- package/dist/assets/RewardsRoutes-6b8h1meH.js +0 -1
- package/dist/assets/SignInScreen-D7gytnqh.js +0 -1
- package/dist/assets/SignOutScreen-C-j9YPM-.js +0 -9
- package/dist/assets/TaskRoutes-Dy3OoIyM.js +0 -9
- package/dist/assets/WiseConfirmationScreen-BiPmlGq6.js +0 -12
- package/dist/assets/ZeniAccountStatementScreen-Cb_rEVWr.js +0 -9
- package/dist/assets/epic-sEosDzE-.js +0 -2
- package/dist/assets/useAskAiCfoHostNavButtonProps-BXGcqvyl.js +0 -1
- package/dist/assets/useCashManagementBanner-CdVrtcFk.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as f}from"./liveblocks-GsPfxkQ7.js";import{a as u,b as D,q as T}from"./sentry-B2TzMFx9.js";import{u as A,h as z,j as l,g as M,N as O,n as j}from"./core-wjM80qIn.js";import{u as F,z as s,m as P,c as w,D as B,d as _,e as N,Q as V,g as W,I as Y,h as v}from"./index-Det3Ki3b.js";import{eW as $,Lx as q,Ly as G,f9 as J,fC as Q,LD as H,gm as K,cY as R,LE as b,LF as X,LG as Z,bY as y}from"./zeni-epic-state-DrcliB1J.js";import"./mui-BSDa87ap.js";import{u as ee}from"./useDeviceId-t80vtq4B.js";import{f as te}from"./analyticsHelper-DaDCazpC.js";import{t as ne}from"./getLocaleForTenant-yX1iEbj2.js";import"./recharts-D4VpFd5q.js";import"./analytics-BUvTITrb.js";import"./plaid-50YvjniW.js";import"./dnd-BK3JI-SF.js";import"./stripe-DMRn4zHo.js";import"./lottie-C5rIATv6.js";import"./lexical-DcicQSkI.js";import"./pdf-BLNuomMl.js";import"./utils-BwzhiOdE.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="c675df04-ab81-4b1e-aee3-448d2ef59661",t._sentryDebugIdIdentifier="sentry-dbid-c675df04-ab81-4b1e-aee3-448d2ef59661")}catch{}})();const ie=j(function(t,i){const d=t.tenantState.fetchState,g=t.tenantState.sendEmailMagicLinkFetchState,{magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:c}=i;return{googleClientId:v.googleClientId,microsoftClientId:v.microsoftClientId,signInError:t.tenantState.error?.error,fetchState:d,sendMagicLinkStatus:g,magicLinkExpired:n,magicLinkAlreadyUsed:a,magicLinkExpiredEmail:c}},function(t,i){const{location:d,navigate:g}=i;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,a)=>{T({message:`OAuth error from provider ${a} with error ${n}`,level:"error",tags:{authProvider:a,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,a)=>{const c=a==="google"?window.location.origin:window.location.origin+window.location.pathname;t(Z({authCode:n,oauthProvider:a,appType:"web",redirectUri:y(c),sourceUri:y(d.state!=null?d.state.origin:"")}))},getSignedInUser:()=>s.getSignedInUser(),onSignedInCallback:()=>{const n=d.state?.origin;n&&n!=="/"?g(n,{replace:!0}):window.open(window.location.origin,"_self")},sendMagicLink:n=>{const{deviceId:a}=i;a!=null&&(s.saveMagicLinkEmail(n),t(X(n,a)))},clearSignInError:()=>{t(b())}}})(Y),ae=D.memo(ie);function ve({setTenantEmailDomain:t}){const i=A(),d=z(),{clearAllLoading:g}=F(),n=s.getSignedInUser();u.useLayoutEffect(()=>{g()},[g]);const a=ee(),c=l(e=>e.tenantState.magicLinkCodeVerifier),{sendEmailMagicLinkFetchState:L,accountLocked:C,accountUnlockTime:h}=l(e=>e.tenantState),p=l(e=>e.tenantState.fetchState),k=l(e=>e.tenantState.activeTenantFetchState.fetchState),S=l(e=>e.tenantState.signInState),o=l(e=>e.tenantState.loggedInUser),r=l(e=>$(e)),I=l(e=>q(e)),m=M(),E=P().mode,x=m.state?.magicLinkExpired,U=m.state?.magicLinkAlreadyUsed;if(u.useEffect(()=>{L.fetchState==="Completed"&&c!=null&&(w.trackSignInLinkSent(),s.saveMagicLinkCodeVerifier(c))},[L.fetchState,c]),u.useEffect(()=>{t(void 0)},[]),u.useEffect(()=>{S!=="In-Progress"||p!=="Completed"&&k!=="Completed"||o?.zeniSessionId==null||r==null||(s.savePayNowInfoTooltip(!0,o.zeniSessionId),s.saveSignedInUserWithSession(o,o.zeniSessionId),s.saveSignedInUserTenants(G(I.tenantsInOrder),o.zeniSessionId),J(o.userId,o.zeniSessionId,r.tenantId),i(Q(r.tenantId)),s.saveActiveTenantDomainForUser(r.tenantEmailDomain),i(H("Completed")),B.updateAppLocaleID(ne(r)),te(o,r,E,void 0,I.tenantsInOrder),K().then(()=>{const e=W();e!=null&&_(e)}),setTimeout(()=>{w.trackLogin(N.Event.loginSuccess,o.authProvider??"google",R(r.productSettings))},2e3))},[S,p,k,o,r,I,E,m.state,i]),S==="In-Progress"&&p==="Completed"&&o?.zeniSessionId!=null&&r!=null||n!=null){const e=m.state?.origin??"/";return f.jsx(O,{to:e,state:{...m.state,origin:""}})}return f.jsxs(f.Fragment,{children:[f.jsx(ae,{magicLinkExpired:!!x,magicLinkAlreadyUsed:!!U,magicLinkExpiredEmail:s.getMagicLinkEmail()??void 0,location:m,navigate:d,deviceId:a??void 0,showEmailLogin:!0}),C===!0&&h!=null?f.jsx(V,{onClose:()=>i(b()),unlockDate:h}):null]})}export{ve as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-GsPfxkQ7.js";import{a as n}from"./sentry-B2TzMFx9.js";import{u,g as m,h as g,N as p}from"./core-wjM80qIn.js";import{z as d,B as y,t as b,c as f,e as h}from"./index-Det3Ki3b.js";import{gr as x,gs as I,LV as w}from"./zeni-epic-state-DrcliB1J.js";import{n as j}from"./mui-BSDa87ap.js";import"./recharts-D4VpFd5q.js";import"./analytics-BUvTITrb.js";import"./plaid-50YvjniW.js";import"./dnd-BK3JI-SF.js";import"./stripe-DMRn4zHo.js";import"./lottie-C5rIATv6.js";import"./lexical-DcicQSkI.js";import"./pdf-BLNuomMl.js";import"./utils-BwzhiOdE.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]="5424b042-dd01-43e9-a9f6-5da77ab9383d",e._sentryDebugIdIdentifier="sentry-dbid-5424b042-dd01-43e9-a9f6-5da77ab9383d")}catch{}})();function $(){const e=u(),t=m(),i=g(),a=n.useRef(!1),l=d.isSignedIn(),r=t.state?.message==="logout",o=r||l;return n.useEffect(()=>{o&&!a.current&&(a.current=!0,setTimeout(()=>{try{d.clearAll(),e(x()),e(I(!1)),w(),b.reset(),f.trackLogout(h.Event.logoutSuccess),f.resetUserIdentity()}catch(c){console.error("Error during sign out:",c)}finally{r||i("/signin/auth",{replace:!0})}},0))},[o,r]),o?s.jsx(v,{children:s.jsx(y,{fetchState:"In-Progress"})}):s.jsx(p,{to:"../",replace:!0})}const v=j.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`;export{$ as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as n}from"./liveblocks-GsPfxkQ7.js";import se from"./NotFoundScreen-_JeeXwwE.js";import{a as c}from"./sentry-B2TzMFx9.js";import{h as q,u as M,j as g,g as ne,i as oe,N as ie,n as re,o as ce,p as f}from"./core-wjM80qIn.js";import{HJ as O,HM as le,HG as de,eW as Z,Td as J,H_ as W,HD as pe,Iu as ue,In as ke,Te as Q,Tf as z,Hz as me,Hw as fe,ry as ge,rm as he,l0 as Se,HU as Ie,Tg as Te,I9 as be,I6 as Ee,HP as Ge,I3 as Ce,I2 as De}from"./zeni-epic-state-DrcliB1J.js";import{z as C,d6 as xe,R as ye,N as je,f as b,p as X,n as v,s as we,c as N,e as ve,d7 as Re,h as V,at as Fe}from"./index-Det3Ki3b.js";import{n as Be}from"./mui-BSDa87ap.js";import{u as Pe}from"./useInitialThreadRequest-D9NRPlO5.js";import{M as Ue}from"./MobileAppDrawer-D6Fu3M_x.js";import Le from"./TaskListScreen-Dreq2LHj.js";import"./recharts-D4VpFd5q.js";import"./analytics-BUvTITrb.js";import"./plaid-50YvjniW.js";import"./dnd-BK3JI-SF.js";import"./stripe-DMRn4zHo.js";import"./lottie-C5rIATv6.js";import"./lexical-DcicQSkI.js";import"./pdf-BLNuomMl.js";import"./utils-BwzhiOdE.js";import"./useAskAiCfoHostNavButtonProps-BXGcqvyl.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]="76a39bca-a678-4111-af6f-39422515400b",e._sentryDebugIdIdentifier="sentry-dbid-76a39bca-a678-4111-af6f-39422515400b")}catch{}})();function He(){const e=q(),t=M(),s=C.getSignedInUser(),{cannedResponses:u,fetchState:r,saveFetchState:d}=g(o=>o.cannedResponsesState),l=c.useCallback(()=>{t(O())},[t]),k=c.useCallback((o,h,S)=>{t(le({name:o,content:h,cannedResponseId:S}))},[t]),a=c.useCallback(o=>{t(de({cannedResponseId:o}))},[t]);if(s==null)throw Error("Can't access quick responses page without signing in...");return n.jsx(xe,{cannedResponses:u,isLoading:r==="In-Progress"||r==="Not-Started",isSaving:d==="In-Progress",onBackClick:()=>e(-1),onDelete:a,onFetch:l,onSave:k})}let A,_=[];const $e=re(function(e,t){const{location:s,taskGroupId:u}=t,r=Q(e,t.taskId),d=Z(e),l=r.taskGroupId??u,k=l!=null?z(e.taskGroupState,l):void 0,a=C.getSignedInUser(),o=d.tenantId,h={userId:a?.userId??"",sessionId:a?.zeniSessionId??"",tenantId:o??""},S=J(e),{tenantEmailDomain:D}=d,E=r.recurringSourceTaskId,x=E!=null?`${V.appUrl}/${D}/tasks/${encodeURIComponent(E)}`:void 0;var I;return{taskDetailSelectorView:r,authParams:h,isZeniUser:C.isZeniUser(),userGroupList:((I=e.userGroupsState.userGroupByUserGroupId)!==A&&(A=I,_=Object.values(I)),_),isNewClicked:s.state?.message==="comingFromTaskListPage",filesEndPoint:Fe.fileMicroServiceBaseUrl,companyName:t.currentTenant.companyName,companyId:t.currentTenant.companyId,currentUrl:`${V.appUrl}${t.location.pathname}`,cannedResponses:e.cannedResponsesState.cannedResponses,isCannedResponsesLoading:e.cannedResponsesState.fetchState==="In-Progress",recurringSourceTaskUrl:x,tagListView:S,taskGroupName:l!=null&&k!=null&&k.isDefault===!1?k.name:void 0,taskGroupList:e.taskGroupViewState.taskGroupsIds.map(p=>z(e.taskGroupState,p)).filter(p=>p!=null&&!p.isDeleted).map(p=>({id:p.id,name:p.name,isDefault:p.isDefault}))}},function(e,t){const{taskId:s,navigate:u,currentTenant:r,location:d,taskGroupId:l}=t,{tenantEmailDomain:k}=r;return{onSaveChangesToLocalStore:a=>{e(De({taskDetailLocalData:a,taskId:s}))},onSaveDetailClick:a=>{e(Ce(s,a??l))},onArchiveTaskClick:()=>{t.taskId!=null&&e(Ge(t.taskId))},onSnoozeTask:(a,o)=>{e(Ee(a,o))},onUnsnoozeTask:a=>{e(be(a))},onDismissClick:()=>{if(d.state?.message==="triggerBackClick"){const a=X(d.state?.pathnameStackToGoBack),o=a.poppedPathname??"../../dashboard";u(o,{state:{pathnameStackToGoBack:a.newStack}})}else{const a=R(k),o=v(d.state?.pathnameStackToGoBack,d.pathname);u(a,{state:{pathnameStackToGoBack:o}})}e(Te({taskId:s}))},onDeleteTaskClick:()=>{e(Ie(s))},updateFilesEntity:a=>{e(Se({files:a}))},onDeleteFile:a=>{e(he(a))},onEditFileName:(a,o)=>{e(ge(a,o.split(".")[0]))},onReloadTaskDetailPage:()=>{e(W(!1,s))},onCreateTagClick:a=>{e(fe(a,s))},onDeleteTagClick:a=>{e(me(a,s))},onFetchCannedResponses:()=>{e(O())},onManageTemplatesClick:()=>{u(`/${r.tenantEmailDomain}/tasks/quick-responses`)}}})(Re);function w(){const e=q(),t=M(),s=ne(),u=ye(),{taskId:r,taskGroupId:d}=oe(),l=g(i=>Z(i)),k=Pe(l?.companyId),{useFeatureGate:a}=je(),{isFeatureEnabled:o}=a(b.isTaskSnoozeEnabled),{isFeatureEnabled:h}=a(b.isTaskVisibilityEnabled),{isFeatureEnabled:S}=a(b.isTaskCannedResponsesEnabled),{isFeatureEnabled:D}=a(b.isTaskRecurringParentEnabled),{isFeatureEnabled:E}=a(b.isTaskGroupAssigneesEnabled),[x,I]=c.useState(!1),[p,Y]=c.useState(!1),[F,K]=c.useState(!1),[B,ee]=c.useState(!1),[P,y]=c.useState(!1),T=c.useRef(!1),G=g(i=>i.taskListState.updateTasksFetchState.fetchState),U=g(i=>J(i)),L=g(i=>i.taskGroupViewState.fetchState);c.useEffect(()=>{p||(Y(!0),t(W(!1,r)))},[p,t]),c.useEffect(()=>{F||U.fetchState==="Completed"||(K(!0),t(pe()))},[F,t,U.fetchState]),c.useEffect(()=>{B||L==="Completed"||(ee(!0),t(ue()))},[B,t,L]);const ae=c.useCallback(()=>{r!=null&&(T.current=!1,t(ke([r],null,{isArchived:!1})),y(!0))},[t,r]);c.useEffect(()=>{if(P)if(G!=="In-Progress"){if(T.current){if(G==="Error")return y(!1),void(T.current=!1);if(G==="Completed"){y(!1),T.current=!1;const{tenantEmailDomain:i}=l;if(s.state?.message==="triggerBackClick"){const m=X(s.state?.pathnameStackToGoBack);e(m.poppedPathname??"../../dashboard",{state:{pathnameStackToGoBack:m.newStack}})}else{const m=R(i);e(m,{state:{pathnameStackToGoBack:v(s.state?.pathnameStackToGoBack,s.pathname)}})}}}}else T.current=!0},[P,G,l,s,e]);const H=g(i=>Q(i,r)),j=H.fetchState,$=C.getSignedInUser();if($==null)throw Error("Can't access task detail page without signing in...");if(j==="Error"&&H.error?.code===400){const{tenantEmailDomain:i}=l,m=R(i),te=v(s.state?.pathnameStackToGoBack,s.pathname);return n.jsx(ie,{to:m,state:{pathnameStackToGoBack:te}})}return n.jsxs(n.Fragment,{children:[j==="Completed"?n.jsx(we,{analytics:N,onLoad:i=>(m=>m.trackPageLoaded(ve.Event.taskDetailPage))(i)}):null,n.jsxs(ze,{children:[n.jsx(Ue,{isAppContentDrawerOpen:x,handleDrawerToggle:i=>{I(i)}}),n.jsx($e,{analytics:N,currentTenant:l,handleZeniLogoClick:()=>{u.toggle()},initialOpenThreadRequest:k,location:s,loggedInUser:$,navigate:e,taskGroupId:d,taskId:r,taskDetailFetchState:j,onUnarchiveTaskClick:ae,isTaskSnoozeEnabled:o,isTaskVisibilityEnabled:h,isTaskCannedResponsesEnabled:S,isTaskRecurringParentEnabled:D,isTaskGroupAssigneesEnabled:E})]})]})}const ze=Be.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 100%;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`,R=e=>`/${e}/tasks`;function ia(){return n.jsxs(ce,{children:[n.jsx(f,{path:"/new",element:n.jsx(w,{})}),n.jsx(f,{path:"/new/:taskGroupId",element:n.jsx(w,{})}),n.jsx(f,{path:"/group/:taskGroupId",element:n.jsx(Le,{})}),n.jsx(f,{path:"/quick-responses",element:n.jsx(He,{})}),n.jsx(f,{path:"/:taskId",element:n.jsx(w,{})}),n.jsx(f,{path:"*",element:n.jsx(se,{})})]})}export{ia as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./liveblocks-GsPfxkQ7.js";import{a as f}from"./sentry-B2TzMFx9.js";import{t as u,u as b,j as h,N as y}from"./core-wjM80qIn.js";import{LS as I,f9 as w,B3 as j}from"./zeni-epic-state-DrcliB1J.js";import{z as l,B as x,y as S,F as D}from"./index-Det3Ki3b.js";import{n as c}from"./mui-BSDa87ap.js";import"./recharts-D4VpFd5q.js";import"./analytics-BUvTITrb.js";import"./plaid-50YvjniW.js";import"./dnd-BK3JI-SF.js";import"./stripe-DMRn4zHo.js";import"./lottie-C5rIATv6.js";import"./lexical-DcicQSkI.js";import"./pdf-BLNuomMl.js";import"./utils-BwzhiOdE.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]="3bafb06e-e5a6-4c85-bb83-63b96ec13314",e._sentryDebugIdIdentifier="sentry-dbid-3bafb06e-e5a6-4c85-bb83-63b96ec13314")}catch{}})();const A=()=>{const[e]=u(),t=e.get("code")??"",s=e.get("state")??"",p=e.get("profileId")??"",[n,g]=f.useState(!1),a=b(),i=h(m=>I(m)),r=l.getSignedInUser(),d=l.getSignedInUserTenantWithId(s);if(r==null||d==null)return o.jsx(y,{to:"/signin/auth",replace:!0});if(r==null)throw Error("Can't access this page without signing in...");return w(r.userId,r.zeniSessionId,d?.tenantId),f.useEffect(()=>{n||(g(!0),a(j(t,p,s)))},[n,a]),i.fetchState==="Error"?o.jsx(E,{children:o.jsx(_,{children:i.error?.message??""})}):(i.fetchState==="Completed"&&window.close(),o.jsx(x,{fetchState:"In-Progress"}))},E=c.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: 100vh;
|
|
5
|
-
flex-direction: row;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
9
|
-
`,_=c(D.LargeRegular)`
|
|
10
|
-
display: flex;
|
|
11
|
-
color: ${S.important};
|
|
12
|
-
`;export{A as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-GsPfxkQ7.js";import{a as f}from"./sentry-B2TzMFx9.js";import{h as x,u as B,g as $,i as j,j as p}from"./core-wjM80qIn.js";import{KQ as s,KP as v,R6 as C,eW as P,R7 as T}from"./zeni-epic-state-DrcliB1J.js";import{K as z,at as g,m as D,z as E,B as L,cd as N,p as U}from"./index-Det3Ki3b.js";import{n as _}from"./mui-BSDa87ap.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="67c5311a-d386-4079-a8bc-07016beb2833",e._sentryDebugIdIdentifier="sentry-dbid-67c5311a-d386-4079-a8bc-07016beb2833")}catch{}})();const K=_.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
width: 100%;
|
|
5
|
-
flex: 1 1 auto;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
9
|
-
`;function W(){const e=x(),n=B(),d=z(),l=$();let{accountId:a}=j(),m=`${g.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${a}`;a==null&&l.pathname.includes(`${s}/statements`)&&(a=s,m=`${g.bankingMicroServiceBaseUrl}/1.0/${s}`);const[u,b]=f.useState(!1),h=D();f.useEffect(()=>{u||(b(!0),n(v(a??"",!1)))},[u,n]);const o=p(t=>C(t,a??"")),y=()=>{const t=U(l.state?.pathnameStackToGoBack),S=t.poppedPathname??"..";e(S,{state:{pathnameStackToGoBack:t.newStack}})},c=E.getSignedInUser(),r=p(t=>P(t)),I={userId:c?.userId??"",sessionId:c?.zeniSessionId??"",tenantId:r.tenantId??""},w=T(a??"")===!0?s:o.zeniAccountDetail?.accountLast4??"",k=r.company?.companyInfo.companyLegalName??r.companyName;if(c==null)throw Error("Can't access address page without signing in...");return o.fetchState!=="Completed"?i.jsx(L,{fetchState:"In-Progress",style:{backgroundColor:h.colors.grey5}}):i.jsx(K,{windowSize:d,children:i.jsx(N,{currentTenantCompanyName:k,statementListView:o,accountLast4:w,onBackClick:y,authParams:I,downloadEndPoint:m})})}export{W as Z};
|