@zeniai/web-cockpit-ui 2.0.37-dev → 2.0.37-prod

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.
Files changed (39) hide show
  1. package/dist/assets/{Preview-BgIk7yLu.js → Preview-CWvs7Tny.js} +1 -1
  2. package/dist/assets/{ScreenRoutes-6yDZGf2h.js → ScreenRoutes-5MCnCULj.js} +45 -45
  3. package/dist/assets/SignInScreen-DU3SZdEJ.js +1 -0
  4. package/dist/assets/{analytics-cwjP4Bou.js → analytics-DGbnpy1_.js} +1 -1
  5. package/dist/assets/{analyticsHelper-jtw74pIY.js → analyticsHelper-BJMrKtRV.js} +1 -1
  6. package/dist/assets/{core-DSRGnsuN.js → core--drY8Tri.js} +1 -1
  7. package/dist/assets/{dash.all.min-C_-wAuJd.js → dash.all.min-BYzlFk7y.js} +1 -1
  8. package/dist/assets/{empty-HFaPDeHn.js → empty-CyhzbTWJ.js} +1 -1
  9. package/dist/assets/{empty-CXYoV6Bj.js → empty-LIJVfXls.js} +1 -1
  10. package/dist/assets/epic-DP8UtYGd.js +2 -0
  11. package/dist/assets/{index-D5AujO_g.js → index-7cqCij-k.js} +1 -1
  12. package/dist/assets/{index-DKEW-Ru3.js → index-Bp-7eV5c.js} +2 -2
  13. package/dist/assets/{index-CjA52rF1.js → index-Cm3DEy1L.js} +1 -1
  14. package/dist/assets/{index-7QOvkk33.js → index-D2v_SjpC.js} +1 -1
  15. package/dist/assets/{index-DLITyZ-5.js → index-D6vbZjCC.js} +1 -1
  16. package/dist/assets/{index-BERBAf7V.js → index-DUU8Hnuj.js} +1 -1
  17. package/dist/assets/{index-DNVGRlbp.js → index-PqeyBbTq.js} +8499 -9025
  18. package/dist/assets/{lexical-zDu6lgQZ.js → lexical-DkkNA4Za.js} +1 -1
  19. package/dist/assets/{liveblocks-CTqzt75Z.js → liveblocks-HFnq7SuY.js} +1 -1
  20. package/dist/assets/{lottie-BS5f0GhF.js → lottie-BzjltUm6.js} +1 -1
  21. package/dist/assets/{mui-D2XoZszz.js → mui-CxXcv3hP.js} +1 -1
  22. package/dist/assets/{react-CWf0NBhH.js → react-0qvOmT-q.js} +1 -1
  23. package/dist/assets/{react-BJ5SS4L0.js → react-BacAD1lb.js} +1 -1
  24. package/dist/assets/{react-CRDQ8EK1.js → react-C6xVmAUA.js} +1 -1
  25. package/dist/assets/{react-CWF4iW13.js → react-CfDPxbOG.js} +1 -1
  26. package/dist/assets/{react-BnNmm0vD.js → react-ClaJ_bS5.js} +1 -1
  27. package/dist/assets/{react-i00eeHLI.js → react-DMSlURrB.js} +1 -1
  28. package/dist/assets/{react-BlSMUZRS.js → react-Dsh5ksHl.js} +2 -2
  29. package/dist/assets/{react-BUzbt_Qo.js → react-DwfVqt-F.js} +1 -1
  30. package/dist/assets/{recharts-Dgdt7a-L.js → recharts-DmYFPeqK.js} +1 -1
  31. package/dist/assets/{sentry-C6CbnDK5.js → sentry-BqWEWC0e.js} +1 -1
  32. package/dist/assets/{url-D3HF9rU-.js → url-CsEI5vH-.js} +1 -1
  33. package/dist/assets/{url-RNtw1rmI.js → url-Disk6EIb.js} +1 -1
  34. package/dist/assets/{utils-CxleEPDM.js → utils-D_VJ9WeB.js} +1 -1
  35. package/dist/assets/{zeni-epic-state-D_IWj6oD.js → zeni-epic-state-Bl-1LTas.js} +6 -6
  36. package/dist/index.html +1 -1
  37. package/package.json +1 -1
  38. package/dist/assets/SignInScreen-D5TVEilp.js +0 -1
  39. package/dist/assets/epic-CTyB5Dj-.js +0 -2
@@ -0,0 +1 @@
1
+ import{j as d}from"./liveblocks-HFnq7SuY.js";import{a as f,b as S,n as m}from"./sentry-BqWEWC0e.js";import{n as I,i as w,g,u as h,N as b,h as y}from"./core--drY8Tri.js";import{z as l,m as C,D as E,a as v,p as U,P as T,d as p}from"./index-PqeyBbTq.js";import{Hn as x,Ho as D,Hp as L,Hq as z,bk as u}from"./zeni-epic-state-Bl-1LTas.js";import{f as k}from"./analyticsHelper-BJMrKtRV.js";import"./recharts-DmYFPeqK.js";import"./mui-CxXcv3hP.js";import"./analytics-DGbnpy1_.js";import"./lottie-BzjltUm6.js";import"./lexical-DkkNA4Za.js";import"./utils-D_VJ9WeB.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]="2558890f-5ab5-4439-80d0-53520845642b",e._sentryDebugIdIdentifier="sentry-dbid-2558890f-5ab5-4439-80d0-53520845642b")}catch{}})();function A(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 N(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(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!=="/"?r(n,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{e(L())}}}const P=y(A,N)(T),_=S.memo(P);function W(){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=C().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(D("Completed")),E.updateAppLocaleID("en"),k(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(_,{navigate:o,location:c})}export{W as default};