@zeniai/web-cockpit-ui 2.3.16-dev → 2.3.17-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-CuoMlb2L.js +4 -0
- package/dist/assets/{Preview-Bkbs6uYh.js → Preview-DxqS1kpV.js} +1 -1
- package/dist/assets/{ScreenRoutes-B1_ZA_6q.js → ScreenRoutes-DWUVu9Yw.js} +55 -55
- package/dist/assets/SignInScreen-B_53sM3e.js +1 -0
- package/dist/assets/{analytics-D5bqlFfJ.js → analytics-PQVWTCTD.js} +1 -1
- package/dist/assets/{analyticsHelper-zDaPFDeO.js → analyticsHelper-BCwbzW6S.js} +1 -1
- package/dist/assets/{core-DS5F392V.js → core-D8hk6m0T.js} +1 -1
- package/dist/assets/{dash.all.min--RhDcWC5.js → dash.all.min-CjRZMKeE.js} +1 -1
- package/dist/assets/{empty-CPx5qWj2.js → empty-BQZxP14H.js} +1 -1
- package/dist/assets/{empty-CCHhLPu2.js → empty-DGwkeziA.js} +1 -1
- package/dist/assets/epic-fbuWcMB0.js +2 -0
- package/dist/assets/{index-Cbi_ff8m.js → index-3To0-XFC.js} +1 -1
- package/dist/assets/{index-De5CVxzS.js → index-BKWEz40A.js} +1 -1
- package/dist/assets/{index-D97kzrDg.js → index-C5kyQkcp.js} +1 -1
- package/dist/assets/{index-Ciy7XYo5.js → index-Ce2ImpIl.js} +1 -1
- package/dist/assets/{index-Cb4aRl_Q.js → index-D8u0upr9.js} +13094 -13308
- package/dist/assets/{index-JVqvM_WP.js → index-Dqbpu8vA.js} +2 -2
- package/dist/assets/{index-BDLwd3k3.js → index-XspIdE1e.js} +1 -1
- package/dist/assets/{lexical-COpuOLUN.js → lexical-Blrhkk2t.js} +1 -1
- package/dist/assets/{liveblocks-BFbgxvtF.js → liveblocks-DYWzFGhT.js} +1 -1
- package/dist/assets/{lottie-49rRD_Kd.js → lottie-BxTTb6gO.js} +1 -1
- package/dist/assets/{mui-DEb8Ru8L.js → mui-DNgie5_z.js} +1 -1
- package/dist/assets/{react-ClW4q5aK.js → react-BAzZNPFl.js} +1 -1
- package/dist/assets/{react-Dor8e6Bc.js → react-BnVSNFfk.js} +1 -1
- package/dist/assets/{react-9EW5hoRZ.js → react-D3UWY8U2.js} +1 -1
- package/dist/assets/{react-CWFZqbLW.js → react-D6R87yWU.js} +1 -1
- package/dist/assets/{react-D_Comtdn.js → react-D75MZkVU.js} +2 -2
- package/dist/assets/{react-By6iUI3O.js → react-DFAyxyom.js} +1 -1
- package/dist/assets/{react-C7LqSwFI.js → react-QCGammPI.js} +1 -1
- package/dist/assets/{react-C0fatgeh.js → react-azud2Jz1.js} +1 -1
- package/dist/assets/{recharts-BPHwjBce.js → recharts-vOQNlcA0.js} +1 -1
- package/dist/assets/{sentry-wGivgyVj.js → sentry-BKGW4O8F.js} +1 -1
- package/dist/assets/{url-eiWyR_8O.js → url-CP5VNIwh.js} +1 -1
- package/dist/assets/{url-C_k7oGQJ.js → url-J8jpaHxl.js} +1 -1
- package/dist/assets/{utils-DUtKQS7F.js → utils-SUgx7y8O.js} +1 -1
- package/dist/assets/zeni-epic-state-Bo6SozDm.js +14 -0
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/CreditAgentRoutes-Cr3Ob4MU.js +0 -4
- package/dist/assets/SignInScreen-Dd4EtNIi.js +0 -1
- package/dist/assets/epic-D0XRrfFW.js +0 -2
- package/dist/assets/zeni-epic-state-3xBk9ZA7.js +0 -14
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as d}from"./liveblocks-DYWzFGhT.js";import{a as S,R as f,n as m}from"./sentry-BKGW4O8F.js";import{n as I,i as w,g,u as h,N as y,h as b}from"./core-D8hk6m0T.js";import{z as l,G as C,b as v,p as E,S as T,c as p}from"./index-D8u0upr9.js";import{SX as U,SY as x,SZ as L,S_ as z,bm as u}from"./zeni-epic-state-Bo6SozDm.js";import{f as D}from"./analyticsHelper-BCwbzW6S.js";import{u as A}from"./mui-DNgie5_z.js";import"./recharts-vOQNlcA0.js";import"./analytics-PQVWTCTD.js";import"./lottie-BxTTb6gO.js";import"./lexical-Blrhkk2t.js";import"./utils-SUgx7y8O.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]="477d9961-00e7-47ce-b6d3-2a1ce7942588",e._sentryDebugIdIdentifier="sentry-dbid-477d9961-00e7-47ce-b6d3-2a1ce7942588")}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 _(e,o){const{location:i,navigate:a}=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(z({authCode:n,oauthProvider:t,appType:"web",redirectUri:u(s),sourceUri:u(i.state!=null?i.state.origin:"")}))},getSignedInUser:()=>l.getSignedInUser(),onSignedInCallback:()=>{const n=i.state?.origin;n&&n!=="/"?a(n,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{e(L())}}}const k=b(N,_)(T),P=f.memo(k);function X(){const e=I(),o=w(),i=l.getSignedInUser(),a=g(r=>r.tenantState.fetchState),n=g(r=>r.tenantState.signInState),t=g(r=>r.tenantState.loggedInUser),s=A().mode,c=h();if(S.useEffect(()=>{n==="In-Progress"&&a==="Completed"&&t?.zeniSessionId!=null&&(l.saveSignedInUserWithSession(t,t.zeniSessionId),U(t.userId,t.zeniSessionId),e(x("Completed")),C.updateAppLocaleID("en"),D(t,s),setTimeout(()=>{v.trackLogin(E.Event.loginSuccess,t.authProvider??"google")},2e3))},[]),n==="In-Progress"&&a==="Completed"&&t?.zeniSessionId!=null||i!=null){const r=c.state?.origin??"/";return d.jsx(y,{to:r,state:{...c.state,origin:""}})}else return d.jsx(P,{navigate:o,location:c})}export{X as default};
|