@zeniai/web-cockpit-ui 2.2.41-qa → 2.2.42-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/{CreditAgentRoutes-DdvubR8Z.js → CreditAgentRoutes-ErAQlOHB.js} +1 -1
- package/dist/assets/{Preview-BNcXoFu-.js → Preview-D4vnK8Bk.js} +1 -1
- package/dist/assets/{ScreenRoutes-BC9Q2kAr.js → ScreenRoutes-CE-2Tj1d.js} +48 -48
- package/dist/assets/SignInScreen-BSc5qqTv.js +1 -0
- package/dist/assets/{analytics-mjW35rRf.js → analytics-qjKu72CP.js} +23 -23
- package/dist/assets/{analyticsHelper-YaLVWIG3.js → analyticsHelper-CibxtJqd.js} +1 -1
- package/dist/assets/{core-BDcFi_72.js → core-kDzcwErP.js} +1 -1
- package/dist/assets/{dash.all.min-C3Z_UkF7.js → dash.all.min-B9W8x92U.js} +1 -1
- package/dist/assets/{empty-CgYLD2qf.js → empty-Bnn0zo5b.js} +1 -1
- package/dist/assets/{empty-Jc4qs5f9.js → empty-CdLmUDrM.js} +1 -1
- package/dist/assets/{epic-DQelVzDp.js → epic-CiGXI5L-.js} +1 -1
- package/dist/assets/{index-CqQr0ZB9.js → index-B7W4HILP.js} +64 -65
- package/dist/assets/{index-BOz0wXfz.js → index-Cy6_UeJ6.js} +1 -1
- package/dist/assets/{index--ls1mnOQ.js → index-DP1J6R69.js} +1 -1
- package/dist/assets/{index-TuR64bb4.js → index-DlGmElBC.js} +1 -1
- package/dist/assets/{index-CoGs120j.js → index-DzHZDGWq.js} +2 -2
- package/dist/assets/{index-CipuZsLG.js → index-bmJpztu9.js} +1 -1
- package/dist/assets/{index-Diyol4zO.js → index-fXjCjw6w.js} +1 -1
- package/dist/assets/{lexical-uzfcaaYd.js → lexical-BSGlB8Tt.js} +1 -1
- package/dist/assets/{liveblocks-Dt6r-fcM.js → liveblocks-DySvlCFz.js} +1 -1
- package/dist/assets/{lottie-D9W-dgA5.js → lottie-BeYaqM3r.js} +1 -1
- package/dist/assets/{mui-BElll8Xy.js → mui-DaMtXmvv.js} +1 -1
- package/dist/assets/{react-C7NDvs_I.js → react-BsyKMuVi.js} +1 -1
- package/dist/assets/{react-B4rxvEyu.js → react-CBSFG41b.js} +1 -1
- package/dist/assets/{react-DuG8IGrX.js → react-D42xmk9Q.js} +1 -1
- package/dist/assets/{react-BWHZhBVD.js → react-DC_dRO0A.js} +1 -1
- package/dist/assets/{react-rLAVHKH6.js → react-DY9zNzKf.js} +1 -1
- package/dist/assets/{react-BSrHuELw.js → react-Do2KbqWf.js} +2 -2
- package/dist/assets/{react-DYB9F9-J.js → react-QFDyk72I.js} +1 -1
- package/dist/assets/{react-CtiLL5Qs.js → react-sgShXZCu.js} +1 -1
- package/dist/assets/{recharts-CCZEPeJr.js → recharts-BEzCLGEF.js} +1 -1
- package/dist/assets/{sentry-DD0HIvOH.js → sentry-CrFvlFGm.js} +1 -1
- package/dist/assets/{url-CP8T_H6Z.js → url-BwZimkA1.js} +1 -1
- package/dist/assets/{url-BkXBPObc.js → url-DtZG2OD7.js} +1 -1
- package/dist/assets/{utils-ZIql0v4_.js → utils-ueB_tslp.js} +1 -1
- package/dist/assets/{zeni-epic-state-BERB8zIa.js → zeni-epic-state-CusYXz9D.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/SignInScreen-Dnv-RvHN.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as l}from"./liveblocks-DySvlCFz.js";import{a as S,R as f,n as m}from"./sentry-CrFvlFGm.js";import{n as I,i as w,g as d,u as h,N as y,h as E}from"./core-kDzcwErP.js";import{z as g,E as b,G as C,a as v,s as U,Y as T,d as p}from"./index-B7W4HILP.js";import{RX as x,RY as L,RZ as z,R_ as D,bm as u}from"./zeni-epic-state-CusYXz9D.js";import{f as R}from"./analyticsHelper-CibxtJqd.js";import"./recharts-BEzCLGEF.js";import"./mui-DaMtXmvv.js";import"./analytics-qjKu72CP.js";import"./lottie-BeYaqM3r.js";import"./lexical-BSGlB8Tt.js";import"./utils-ueB_tslp.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]="da433674-2d99-4635-a413-88aa3558d0e4",e._sentryDebugIdIdentifier="sentry-dbid-da433674-2d99-4635-a413-88aa3558d0e4")}catch{}})();function A(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 N(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=E(A,N)(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=b().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"),R(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};
|