@zeniai/web-cockpit-ui 2.2.13-next → 2.2.13-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-BB9KhyPH.js +4 -0
- package/dist/assets/{Preview-B4_Gyxyw.js → Preview-CV79pt8m.js} +1 -1
- package/dist/assets/{ScreenRoutes-DF1y7J5S.js → ScreenRoutes-CJ_xCcC1.js} +47 -47
- package/dist/assets/SignInScreen-eHIgFrky.js +1 -0
- package/dist/assets/{analytics-mj0rw1VE.js → analytics-C_zptoL-.js} +1 -1
- package/dist/assets/{analyticsHelper-D23jeyIJ.js → analyticsHelper-Cc5Tk2OU.js} +1 -1
- package/dist/assets/{core-BYmIfkAr.js → core-ChyBNAfM.js} +1 -1
- package/dist/assets/{dash.all.min-C7vN744U.js → dash.all.min-H2kJoCcZ.js} +1 -1
- package/dist/assets/{empty-CyMIaqBW.js → empty-DNDb5GPk.js} +1 -1
- package/dist/assets/{empty-1WYDUqCs.js → empty-JSCw9HBr.js} +1 -1
- package/dist/assets/epic-DecgQ6NF.js +2 -0
- package/dist/assets/{index-DNkp3OmZ.js → index-BImhncxB.js} +1 -1
- package/dist/assets/{index-B0G3iGk6.js → index-BwSbh-EW.js} +1 -1
- package/dist/assets/{index-C3I3j2Ku.js → index-CAlHDcHN.js} +10467 -9553
- package/dist/assets/{index-lr7J_XNm.js → index-CmAGwlW_.js} +1 -1
- package/dist/assets/{index-DtTdlXpL.js → index-SPcpwYKo.js} +1 -1
- package/dist/assets/{index-OIy0-f6U.js → index-SXyavNws.js} +2 -2
- package/dist/assets/{index-C1Ypgvdz.js → index-hg0hFyys.js} +1 -1
- package/dist/assets/{lexical-DQ-Nqjl7.js → lexical-BZt_RAXi.js} +1 -1
- package/dist/assets/{liveblocks-BhxuLCQy.js → liveblocks-B8u-uTNK.js} +1 -1
- package/dist/assets/{lottie-UAbKS5Ou.js → lottie-TMfUzNbA.js} +1 -1
- package/dist/assets/{mui-D_JtuJWW.js → mui-2legInae.js} +1 -1
- package/dist/assets/{react-C6mTaHma.js → react-B-xQtP7s.js} +1 -1
- package/dist/assets/{react-DS_kCSTY.js → react-CVNyB_vu.js} +1 -1
- package/dist/assets/{react-CMZ2vXlt.js → react-DJC4xFnu.js} +1 -1
- package/dist/assets/{react-CH-zeEka.js → react-Dl3RBgAf.js} +1 -1
- package/dist/assets/{react-DA8f28lA.js → react-DqYQWle4.js} +1 -1
- package/dist/assets/{react-Br5e3kXu.js → react-DqtPbGkv.js} +1 -1
- package/dist/assets/{react-Bi-nD7EV.js → react-DuM8kSiY.js} +1 -1
- package/dist/assets/{react-CT5n6PQj.js → react-S9I_c2ss.js} +2 -2
- package/dist/assets/{recharts-ByduT-CA.js → recharts-FiSloCL7.js} +1 -1
- package/dist/assets/{sentry-BSkUpqOE.js → sentry-DBZh3zo-.js} +1 -1
- package/dist/assets/{url-CleyF36q.js → url-DTpjp--n.js} +1 -1
- package/dist/assets/{url-BDYsWyWj.js → url-iD6pilYk.js} +1 -1
- package/dist/assets/{utils-B9CZeSYg.js → utils-CSO2Hflb.js} +1 -1
- package/dist/assets/{zeni-epic-state-wh-wCh-r.js → zeni-epic-state-Ekg8bVAo.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CreditAgentRoutes-BXjAvqJG.js +0 -4
- package/dist/assets/SignInScreen-CFtRQTVD.js +0 -1
- package/dist/assets/epic-BhqcdFTL.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as l}from"./liveblocks-B8u-uTNK.js";import{a as f,R as S,n as m}from"./sentry-DBZh3zo-.js";import{n as I,i as w,g,u as h,N as b,h as y}from"./core-ChyBNAfM.js";import{z as d,E,G as C,a as v,t as U,Z as T,e as p}from"./index-CAlHDcHN.js";import{Ra as x,Rb as L,Rc as z,Rd as D,bm as u}from"./zeni-epic-state-Ekg8bVAo.js";import{f as N}from"./analyticsHelper-Cc5Tk2OU.js";import"./recharts-FiSloCL7.js";import"./mui-2legInae.js";import"./analytics-C_zptoL-.js";import"./lottie-TMfUzNbA.js";import"./lexical-BZt_RAXi.js";import"./utils-CSO2Hflb.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]="7986aabc-67df-424e-9aca-7ea1bdc131a9",e._sentryDebugIdIdentifier="sentry-dbid-7986aabc-67df-424e-9aca-7ea1bdc131a9")}catch{}})();function R(e){const o=e.tenantState.fetchState,a=e.tenantState.sendEmailMagicLinkFetchState;return{googleClientId:p.googleClientId,microsoftClientId:p.microsoftClientId,signInError:e.tenantState.error?.error,fetchState:o,sendMagicLinkStatus:a,showEmailLogin:!1}}function A(e,o){const{location:a,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(a.state!=null?a.state.origin:"")}))},getSignedInUser:()=>d.getSignedInUser(),onSignedInCallback:()=>{const n=a.state?.origin;n&&n!=="/"?r(n,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{e(z())}}}const P=y(R,A)(T),k=S.memo(P);function q(){const e=I(),o=w(),a=d.getSignedInUser(),r=g(i=>i.tenantState.fetchState),n=g(i=>i.tenantState.signInState),t=g(i=>i.tenantState.loggedInUser),s=E().mode,c=h();if(f.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(d.saveSignedInUserWithSession(t,t.zeniSessionId),x(t.userId,t.zeniSessionId),e(L("Completed")),C.updateAppLocaleID("en"),N(t,s),setTimeout(()=>{v.trackLogin(U.Event.loginSuccess,t.authProvider??"google")},2e3))},[]),n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null||a!=null){const i=c.state?.origin??"/";return l.jsx(b,{to:i,state:{...c.state,origin:""}})}else return l.jsx(k,{navigate:o,location:c})}export{q as default};
|