@zeniai/web-cockpit-ui 2.3.0-prod → 2.3.1-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-DdvBmNuC.js → CreditAgentRoutes-BePvMJHy.js} +1 -1
- package/dist/assets/{Preview-DQLhR9Py.js → Preview-0wcWl3yT.js} +1 -1
- package/dist/assets/ScreenRoutes-CKkuA0FN.js +180 -0
- package/dist/assets/SignInScreen-2Bt8kEck.js +1 -0
- package/dist/assets/{analytics-qNB0kJvk.js → analytics-DZ78nstU.js} +1 -1
- package/dist/assets/{analyticsHelper-DdToBRdS.js → analyticsHelper-CWiF7JRB.js} +1 -1
- package/dist/assets/{core-CYwRcxS2.js → core-9lSau7JX.js} +2 -2
- package/dist/assets/{dash.all.min-Cc2qgwmt.js → dash.all.min-B9vxuv8K.js} +1 -1
- package/dist/assets/{empty-DgsCFr0d.js → empty-CBigbD-X.js} +1 -1
- package/dist/assets/{empty-D20V3fIN.js → empty-DNUsuwtr.js} +1 -1
- package/dist/assets/{epic-DZxtVyke.js → epic-CccbsLqj.js} +2 -2
- package/dist/assets/{index-BR91WVLA.js → index-3x_gUOvO.js} +1 -1
- package/dist/assets/{index-Bz5_ybKK.js → index-B-PPAcLf.js} +1 -1
- package/dist/assets/{index-B-l_Ce0x.js → index-CohFgCzE.js} +1 -1
- package/dist/assets/{index-B-cHNfDz.js → index-DDZpi5Xk.js} +1 -1
- package/dist/assets/{index-BcOOj0NL.js → index-DS2aSGaI.js} +8234 -8234
- package/dist/assets/{index-BqtxufiL.js → index-DY6AaM91.js} +2 -2
- package/dist/assets/{index-B7phxqBH.js → index-DuZLh8qT.js} +1 -1
- package/dist/assets/{lexical-Be-_PPUq.js → lexical-CmjhFzKL.js} +1 -1
- package/dist/assets/{liveblocks-D3HEPXJr.js → liveblocks-daCV-NeN.js} +1 -1
- package/dist/assets/{lottie-DqfErP6E.js → lottie-CxUtS1yw.js} +1 -1
- package/dist/assets/{mui-t8xxFWWZ.js → mui-BN7b87Jp.js} +1 -1
- package/dist/assets/{react-DgmgEx2N.js → react-BY6klugU.js} +1 -1
- package/dist/assets/{react-CE5-_GDQ.js → react-CRsk0ixJ.js} +1 -1
- package/dist/assets/{react-mdD0aQcs.js → react-CYrqpJYu.js} +2 -2
- package/dist/assets/{react-CYwzJ83C.js → react-CeF7x-c4.js} +1 -1
- package/dist/assets/{react-D4NSLLRO.js → react-D3ANJI0c.js} +1 -1
- package/dist/assets/{react-DfnwvFFw.js → react-DvJtAK46.js} +1 -1
- package/dist/assets/{react-Ce98t2Ci.js → react-F4eiabRs.js} +1 -1
- package/dist/assets/{react-B2NB3I-o.js → react-iwZJ9U16.js} +1 -1
- package/dist/assets/{recharts-B3T1htgx.js → recharts-0KvwlQud.js} +1 -1
- package/dist/assets/{sentry-DMbI5IBE.js → sentry-D1WWozHj.js} +1 -1
- package/dist/assets/{url-CaaIMLt-.js → url-C9THCWl9.js} +1 -1
- package/dist/assets/{url-DAUxmVPx.js → url-D8J8Bt-p.js} +1 -1
- package/dist/assets/{utils-DkW04Na0.js → utils-D8yPrVSN.js} +1 -1
- package/dist/assets/{zeni-epic-state-7WabBFDD.js → zeni-epic-state-CSF-BFbu.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ScreenRoutes-Bcou6yki.js +0 -180
- package/dist/assets/SignInScreen-DthpgnxS.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as l}from"./liveblocks-daCV-NeN.js";import{a as u,R as S,n as m}from"./sentry-D1WWozHj.js";import{n as I,i as w,g as d,u as h,N as b,h as y}from"./core-9lSau7JX.js";import{z as g,G as C,b as v,l as E,S as T,d as f}from"./index-DS2aSGaI.js";import{SR as U,SS as x,ST as L,SU as z,bm as p}from"./zeni-epic-state-CSF-BFbu.js";import{f as D}from"./analyticsHelper-CWiF7JRB.js";import{u as A}from"./mui-BN7b87Jp.js";import"./recharts-0KvwlQud.js";import"./analytics-DZ78nstU.js";import"./lottie-CxUtS1yw.js";import"./lexical-CmjhFzKL.js";import"./utils-D8yPrVSN.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]="1f02b550-9df2-436d-9d8e-e8c0624489bf",e._sentryDebugIdIdentifier="sentry-dbid-1f02b550-9df2-436d-9d8e-e8c0624489bf")}catch{}})();function N(e){const o=e.tenantState.fetchState,i=e.tenantState.sendEmailMagicLinkFetchState;return{googleClientId:f.googleClientId,microsoftClientId:f.microsoftClientId,signInError:e.tenantState.error?.error,fetchState:o,sendMagicLinkStatus:i,showEmailLogin:!1}}function k(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:p(s),sourceUri:p(i.state!=null?i.state.origin:"")}))},getSignedInUser:()=>g.getSignedInUser(),onSignedInCallback:()=>{const n=i.state?.origin;n&&n!=="/"?a(n,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{e(L())}}}const P=y(N,k)(T),_=S.memo(P);function q(){const e=I(),o=w(),i=g.getSignedInUser(),a=d(r=>r.tenantState.fetchState),n=d(r=>r.tenantState.signInState),t=d(r=>r.tenantState.loggedInUser),s=A().mode,c=h();if(u.useEffect(()=>{n==="In-Progress"&&a==="Completed"&&t?.zeniSessionId!=null&&(g.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 l.jsx(b,{to:r,state:{...c.state,origin:""}})}else return l.jsx(_,{navigate:o,location:c})}export{q as default};
|