@zeniai/web-cockpit-ui 2.0.42-prod → 2.0.43-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-D9_exX7R.js +4 -0
- package/dist/assets/{Preview-CRWWd2tS.js → Preview-Dma6iUQv.js} +1 -1
- package/dist/assets/{ScreenRoutes-BSD4CSxO.js → ScreenRoutes-C4Lq1ywY.js} +58 -58
- package/dist/assets/SignInScreen-BsJXL6gk.js +1 -0
- package/dist/assets/{analytics-B8XEbErJ.js → analytics-PAFomk5X.js} +1 -1
- package/dist/assets/analyticsHelper-CKp5__EI.js +1 -0
- package/dist/assets/{core-CI1RP9OM.js → core-BK-AVgQn.js} +1 -1
- package/dist/assets/{dash.all.min-CvuwpEZa.js → dash.all.min-DPPmlVqb.js} +1 -1
- package/dist/assets/{empty-D4c5Cm88.js → empty-BNY4abw3.js} +1 -1
- package/dist/assets/{empty-BulQP_4s.js → empty-DoK7uDqf.js} +1 -1
- package/dist/assets/epic-DQ3c6LCh.js +2 -0
- package/dist/assets/{index-BIOcWnGK.js → index-BR5HupEq.js} +2 -2
- package/dist/assets/{index-DqEJ04hE.js → index-CVxlChPx.js} +1 -1
- package/dist/assets/{index-DdLdIWP6.js → index-Cm5nGQyA.js} +1 -1
- package/dist/assets/{index-Ca8c5ilh.js → index-CrrVNGPO.js} +1 -1
- package/dist/assets/{index-M0N_cdFn.js → index-DDpLHc0r.js} +9540 -9356
- package/dist/assets/{index-B94dCGeJ.js → index-DlCCukf1.js} +1 -1
- package/dist/assets/{index-DJKorImD.js → index-ddpyM2vA.js} +1 -1
- package/dist/assets/{lexical-BUpfkvsy.js → lexical-tQpWORqy.js} +1 -1
- package/dist/assets/{liveblocks-Bz1q44qV.js → liveblocks-CzMoYG_p.js} +1 -1
- package/dist/assets/{lottie-6MWVI_I3.js → lottie-DTWlzvs7.js} +1 -1
- package/dist/assets/{mui-DYrT61fz.js → mui-BqexhJJj.js} +1 -1
- package/dist/assets/{react-Dj0rb02V.js → react-B3OULRlD.js} +1 -1
- package/dist/assets/{react-BxX9vnmG.js → react-Ba9QE8EN.js} +1 -1
- package/dist/assets/{react-DK0yBZwW.js → react-BbQxrK_d.js} +1 -1
- package/dist/assets/{react-CWaf685p.js → react-C17tRmNK.js} +1 -1
- package/dist/assets/{react-7DqmUJoD.js → react-CmWj8ZV9.js} +1 -1
- package/dist/assets/{react-JVPQUQQo.js → react-DzEs92ey.js} +1 -1
- package/dist/assets/{react-snAyTb1l.js → react-mJ0awhvr.js} +1 -1
- package/dist/assets/{react-B2XbTSVU.js → react-zs9oVX2b.js} +2 -2
- package/dist/assets/{recharts-DQR30MCk.js → recharts-DAa4eu61.js} +1 -1
- package/dist/assets/{sentry-DHDIHJJb.js → sentry-rP2pOrBz.js} +1 -1
- package/dist/assets/{url-DzIZLcAC.js → url-Cbij-gzn.js} +1 -1
- package/dist/assets/{url-DC6Mc0b5.js → url-DSD53f9F.js} +1 -1
- package/dist/assets/{utils-DnfE3AKA.js → utils-CvYApMAr.js} +1 -1
- package/dist/assets/{zeni-epic-state-CG-kS_zf.js → zeni-epic-state-D3jSoBJ0.js} +6 -6
- package/dist/index.html +1 -1
- package/package.json +5 -4
- package/dist/assets/CreditAgentRoutes-C-symWmH.js +0 -4
- package/dist/assets/SignInScreen-DqPZ3Ff8.js +0 -1
- package/dist/assets/analyticsHelper-DMggXhKB.js +0 -1
- package/dist/assets/epic-D55nmW4E.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as d}from"./liveblocks-CzMoYG_p.js";import{a as u,b as S,n as I}from"./sentry-rP2pOrBz.js";import{n as m,i as w,g,u as h,N as b,h as y}from"./core-BK-AVgQn.js";import{z as l,h as C,O as v,d as E,p as U,N as T,f}from"./index-DDpLHc0r.js";import{HT as x,HU as L,HV as z,HW as D,bk as p}from"./zeni-epic-state-D3jSoBJ0.js";import{f as N}from"./analyticsHelper-CKp5__EI.js";import"./recharts-DAa4eu61.js";import"./mui-BqexhJJj.js";import"./analytics-PAFomk5X.js";import"./lottie-DTWlzvs7.js";import"./lexical-tQpWORqy.js";import"./utils-CvYApMAr.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]="f5f5a2d0-7593-4e3b-9fab-56615b11e7f4",e._sentryDebugIdIdentifier="sentry-dbid-f5f5a2d0-7593-4e3b-9fab-56615b11e7f4")}catch{}})();function k(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 A(e,o){const{location:i,navigate:r}=o;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,t)=>{I({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:p(s),sourceUri:p(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 O=y(k,A)(T),P=S.memo(O);function V(){const e=m(),o=w(),i=l.getSignedInUser(),r=g(a=>a.tenantState.fetchState),n=g(a=>a.tenantState.signInState),t=g(a=>a.tenantState.loggedInUser),s=C().mode,c=h();if(u.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(l.saveSignedInUserWithSession(t,t.zeniSessionId),x(t.userId,t.zeniSessionId),e(L("Completed")),v.updateAppLocaleID("en"),N(t,s),setTimeout(()=>{E.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{V as default};
|