@zeniai/web-cockpit-ui 2.2.45-dev → 2.2.46-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/{CreditAgentRoutes-AtS1CnpI.js → CreditAgentRoutes-87Pk_45A.js} +2 -2
- package/dist/assets/{Preview-Dn8ZTGU1.js → Preview-CGj3P1jP.js} +1 -1
- package/dist/assets/{ScreenRoutes-Bny1zZ6H.js → ScreenRoutes-DhfColzV.js} +73 -73
- package/dist/assets/SignInScreen-CmjHFAC7.js +1 -0
- package/dist/assets/{analytics-BpzAub1W.js → analytics-nq0TtytR.js} +1 -1
- package/dist/assets/analyticsHelper-C29Ld-wE.js +1 -0
- package/dist/assets/{core-FAVXUskK.js → core-m3VYRY_7.js} +1 -1
- package/dist/assets/{dash.all.min-1CdIv6rp.js → dash.all.min-DcWaGJ-z.js} +1 -1
- package/dist/assets/{empty-CMQERMpw.js → empty-zOcOn9Ee.js} +1 -1
- package/dist/assets/{empty-DTwWKe9z.js → empty-zPCOAbji.js} +1 -1
- package/dist/assets/epic-CNWRSDO7.js +2 -0
- package/dist/assets/{index-gRcJli60.js → index-B3RVx9pM.js} +1 -1
- package/dist/assets/{index-D4P104Cj.js → index-BFFJqvOL.js} +2 -2
- package/dist/assets/{index-DeJKcQFF.js → index-C1qzuL2m.js} +7591 -7514
- package/dist/assets/{index-DX_-JyRk.js → index-COuyuWJA.js} +1 -1
- package/dist/assets/{index-6k-0FVTT.js → index-CqMkr8zB.js} +1 -1
- package/dist/assets/{index-C2IqgSvK.js → index-QITcPMaM.js} +1 -1
- package/dist/assets/{index-BaCGhVgL.js → index-ncxiPGEr.js} +1 -1
- package/dist/assets/{lexical-C9-_H1pl.js → lexical-CuMKiWYI.js} +1 -1
- package/dist/assets/{liveblocks-MYCCxdf-.js → liveblocks-CchkA3bw.js} +1 -1
- package/dist/assets/{lottie-D-PEnw72.js → lottie-B6aVMurr.js} +1 -1
- package/dist/assets/{mui-BpzJVpjt.js → mui-Cu_VyyT2.js} +1 -1
- package/dist/assets/{react-uxqxD6qS.js → react-BqgbUvZF.js} +1 -1
- package/dist/assets/{react-HUKSxYqu.js → react-BvRkDqzo.js} +2 -2
- package/dist/assets/{react-DcCFgefE.js → react-CP15xXH7.js} +1 -1
- package/dist/assets/{react-CYCLr_U0.js → react-CWh5qOHc.js} +1 -1
- package/dist/assets/{react-D9S170pB.js → react-OZzbuwIW.js} +1 -1
- package/dist/assets/{react-DKaBlIvl.js → react-bcy-5r1Z.js} +1 -1
- package/dist/assets/{react-Bc0bKW5Z.js → react-qCp9XP99.js} +1 -1
- package/dist/assets/{react-DG7ABc68.js → react-vL5aznKY.js} +1 -1
- package/dist/assets/{recharts-DMJRm8VM.js → recharts-Wo60fZfy.js} +1 -1
- package/dist/assets/{sentry-C7MI_BN7.js → sentry-BsnydYBh.js} +1 -1
- package/dist/assets/{url-AvA0j0uL.js → url-CENqTQ9f.js} +1 -1
- package/dist/assets/{url-iaOvlN-Q.js → url-DGpTS5yN.js} +1 -1
- package/dist/assets/{utils-D57vPawF.js → utils-Cx3_3V6b.js} +1 -1
- package/dist/assets/{zeni-epic-state-BydDLeDY.js → zeni-epic-state--x9oSMyd.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/SignInScreen-B6HnnGzR.js +0 -1
- package/dist/assets/analyticsHelper-CcLKtZAr.js +0 -1
- package/dist/assets/epic-MQxc7Mv-.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as l}from"./liveblocks-CchkA3bw.js";import{a as S,R as f,n as m}from"./sentry-BsnydYBh.js";import{n as I,i as w,g as d,u as h,N as y,h as b}from"./core-m3VYRY_7.js";import{z as g,E,G as C,d as v,y as U,Z as T,i as p}from"./index-C1qzuL2m.js";import{S1 as x,S2 as L,S3 as z,S4 as D,bm as u}from"./zeni-epic-state--x9oSMyd.js";import{f as A}from"./analyticsHelper-C29Ld-wE.js";import"./recharts-Wo60fZfy.js";import"./mui-Cu_VyyT2.js";import"./analytics-nq0TtytR.js";import"./lottie-B6aVMurr.js";import"./lexical-CuMKiWYI.js";import"./utils-Cx3_3V6b.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="d5c9aeb9-50d7-4e78-97a7-4b4f8e7d2360",e._sentryDebugIdIdentifier="sentry-dbid-d5c9aeb9-50d7-4e78-97a7-4b4f8e7d2360")}catch{}})();function N(e){const o=e.tenantState.fetchState,i=e.tenantState.sendEmailMagicLinkFetchState;return{googleClientId:p.googleClientId,microsoftClientId:p.microsoftClientId,signInError:e.tenantState.error?.error,fetchState:o,sendMagicLinkStatus:i,showEmailLogin:!1}}function k(e,o){const{location:i,navigate:r}=o;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,t)=>{m({message:`OAuth error from provider ${t} with error ${n}`,level:"error",tags:{authProvider:t,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,t)=>{const s=t==="google"?window.location.origin:window.location.origin+window.location.pathname;e(D({authCode:n,oauthProvider:t,appType:"web",redirectUri:u(s),sourceUri:u(i.state!=null?i.state.origin:"")}))},getSignedInUser:()=>g.getSignedInUser(),onSignedInCallback:()=>{const n=i.state?.origin;n&&n!=="/"?r(n,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{e(z())}}}const P=b(N,k)(T),_=f.memo(P);function W(){const e=I(),o=w(),i=g.getSignedInUser(),r=d(a=>a.tenantState.fetchState),n=d(a=>a.tenantState.signInState),t=d(a=>a.tenantState.loggedInUser),s=E().mode,c=h();if(S.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(g.saveSignedInUserWithSession(t,t.zeniSessionId),x(t.userId,t.zeniSessionId),e(L("Completed")),C.updateAppLocaleID("en"),A(t,s),setTimeout(()=>{v.trackLogin(U.Event.loginSuccess,t.authProvider??"google")},2e3))},[]),n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null||i!=null){const a=c.state?.origin??"/";return l.jsx(y,{to:a,state:{...c.state,origin:""}})}else return l.jsx(_,{navigate:o,location:c})}export{W as default};
|