@zeniai/web-cockpit-ui 2.2.13-dev → 2.2.13-next
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-BXjAvqJG.js +4 -0
- package/dist/assets/{Preview-DLTbrly5.js → Preview-B4_Gyxyw.js} +1 -1
- package/dist/assets/{ScreenRoutes-DpQ2POR9.js → ScreenRoutes-DF1y7J5S.js} +47 -47
- package/dist/assets/SignInScreen-CFtRQTVD.js +1 -0
- package/dist/assets/{analytics-2sQa5iU3.js → analytics-mj0rw1VE.js} +1 -1
- package/dist/assets/{analyticsHelper-DZAeHOdU.js → analyticsHelper-D23jeyIJ.js} +1 -1
- package/dist/assets/{core-BoVeJnUy.js → core-BYmIfkAr.js} +1 -1
- package/dist/assets/{dash.all.min-BMv2PABC.js → dash.all.min-C7vN744U.js} +1 -1
- package/dist/assets/{empty-rZs-o7mk.js → empty-1WYDUqCs.js} +1 -1
- package/dist/assets/{empty-DvWIFX8U.js → empty-CyMIaqBW.js} +1 -1
- package/dist/assets/epic-BhqcdFTL.js +2 -0
- package/dist/assets/{index-DOp6yYH6.js → index-B0G3iGk6.js} +1 -1
- package/dist/assets/{index-TqjFAeZ_.js → index-C1Ypgvdz.js} +1 -1
- package/dist/assets/{index-BWJIu3ky.js → index-C3I3j2Ku.js} +9553 -10467
- package/dist/assets/{index-KXbbEWI0.js → index-DNkp3OmZ.js} +1 -1
- package/dist/assets/{index-CU8KGFQn.js → index-DtTdlXpL.js} +1 -1
- package/dist/assets/{index-DSrxq-87.js → index-OIy0-f6U.js} +2 -2
- package/dist/assets/{index-CIb1o2do.js → index-lr7J_XNm.js} +1 -1
- package/dist/assets/{lexical-B7YNxTzd.js → lexical-DQ-Nqjl7.js} +1 -1
- package/dist/assets/{liveblocks-C3CudlZO.js → liveblocks-BhxuLCQy.js} +1 -1
- package/dist/assets/{lottie-Fq0Wi3SV.js → lottie-UAbKS5Ou.js} +1 -1
- package/dist/assets/{mui-CDMvi5LB.js → mui-D_JtuJWW.js} +1 -1
- package/dist/assets/{react-CgQqWKjB.js → react-Bi-nD7EV.js} +1 -1
- package/dist/assets/{react-JwpPCEiq.js → react-Br5e3kXu.js} +1 -1
- package/dist/assets/{react-BPdAVITe.js → react-C6mTaHma.js} +1 -1
- package/dist/assets/{react-mQ_lG7NS.js → react-CH-zeEka.js} +1 -1
- package/dist/assets/{react-v2-BVT-V.js → react-CMZ2vXlt.js} +1 -1
- package/dist/assets/{react-D7yA5-jP.js → react-CT5n6PQj.js} +2 -2
- package/dist/assets/{react-kIGp6sRK.js → react-DA8f28lA.js} +1 -1
- package/dist/assets/{react-BJ-myZAD.js → react-DS_kCSTY.js} +1 -1
- package/dist/assets/{recharts-Cv-ZSa5t.js → recharts-ByduT-CA.js} +1 -1
- package/dist/assets/{sentry-DXTFyLBk.js → sentry-BSkUpqOE.js} +1 -1
- package/dist/assets/{url-CUS-7-6U.js → url-BDYsWyWj.js} +1 -1
- package/dist/assets/{url-zlR0mTpA.js → url-CleyF36q.js} +1 -1
- package/dist/assets/{utils-DanefoWR.js → utils-B9CZeSYg.js} +1 -1
- package/dist/assets/{zeni-epic-state-BSCJF8l6.js → zeni-epic-state-wh-wCh-r.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CreditAgentRoutes-piStc8UM.js +0 -4
- package/dist/assets/SignInScreen-sxgcu4kv.js +0 -1
- package/dist/assets/epic-BYSP1ulG.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as d}from"./liveblocks-BhxuLCQy.js";import{a as f,R as S,n as m}from"./sentry-BSkUpqOE.js";import{n as I,i as w,g,u as h,N as b,h as y}from"./core-BYmIfkAr.js";import{z as l,E,G as C,a as v,B as U,Z as T,i as p}from"./index-C3I3j2Ku.js";import{QW as x,QX as L,QY as z,QZ as D,bm as u}from"./zeni-epic-state-wh-wCh-r.js";import{f as A}from"./analyticsHelper-D23jeyIJ.js";import"./recharts-ByduT-CA.js";import"./mui-D_JtuJWW.js";import"./analytics-mj0rw1VE.js";import"./lottie-UAbKS5Ou.js";import"./lexical-DQ-Nqjl7.js";import"./utils-B9CZeSYg.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]="16bd5d69-6ba3-4cb4-97f0-0e29fa29e449",e._sentryDebugIdIdentifier="sentry-dbid-16bd5d69-6ba3-4cb4-97f0-0e29fa29e449")}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 j(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:()=>l.getSignedInUser(),onSignedInCallback:()=>{const n=i.state?.origin;n&&n!=="/"?r(n,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{e(z())}}}const k=y(N,j)(T),P=S.memo(k);function K(){const e=I(),o=w(),i=l.getSignedInUser(),r=g(a=>a.tenantState.fetchState),n=g(a=>a.tenantState.signInState),t=g(a=>a.tenantState.loggedInUser),s=E().mode,c=h();if(f.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(l.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 d.jsx(b,{to:a,state:{...c.state,origin:""}})}else return d.jsx(P,{navigate:o,location:c})}export{K as default};
|