@zeniai/web-cockpit-ui 2.0.0-qa → 2.0.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.
Files changed (39) hide show
  1. package/dist/assets/{Preview-C3kztGrG.js → Preview-BkNHsEjD.js} +1 -1
  2. package/dist/assets/{ScreenRoutes-Cf1NGlgl.js → ScreenRoutes-CW0yzo2Y.js} +62 -62
  3. package/dist/assets/SignInScreen-BFHf0pEg.js +1 -0
  4. package/dist/assets/{analytics-Ci62SVC6.js → analytics-Cbo-rRCT.js} +1 -1
  5. package/dist/assets/{analyticsHelper-BviTMVeA.js → analyticsHelper-DQOtL_m_.js} +1 -1
  6. package/dist/assets/{core-CrJ0HRkP.js → core-B2-9c7df.js} +1 -1
  7. package/dist/assets/{dash.all.min-BC3O3eK3.js → dash.all.min-BDoB0xjX.js} +1 -1
  8. package/dist/assets/{empty-DewRN75u.js → empty-CQiK1VE0.js} +1 -1
  9. package/dist/assets/{empty-DCdjTxMk.js → empty-aXsbSCkC.js} +1 -1
  10. package/dist/assets/epic-CvZ_xMyg.js +2 -0
  11. package/dist/assets/{index-BIzFhK6B.js → index-5wSx2v1D.js} +1 -1
  12. package/dist/assets/{index-CS2xkLsB.js → index-B5CuYVuV.js} +1 -1
  13. package/dist/assets/{index-BHVDlT_9.js → index-BCbPIciZ.js} +1 -1
  14. package/dist/assets/{index-DrEiJ4Wx.js → index-BjDvFeO1.js} +1 -1
  15. package/dist/assets/{index-C1011MmK.js → index-D4hgZ7EK.js} +2 -2
  16. package/dist/assets/{index-BnDpf4K9.js → index-PH0EWbHe.js} +9146 -8979
  17. package/dist/assets/{index-BnSSVzJm.js → index-ZOdHPI81.js} +1 -1
  18. package/dist/assets/{lexical-Y1MbDrft.js → lexical-BiT-GF_n.js} +1 -1
  19. package/dist/assets/{liveblocks-CH5Ytl_r.js → liveblocks-CQjFg2ii.js} +1 -1
  20. package/dist/assets/{lottie-jJKhsKLZ.js → lottie-BOIl-ZGz.js} +1 -1
  21. package/dist/assets/{mui-DzLLS9Rs.js → mui-C__dMD6S.js} +1 -1
  22. package/dist/assets/{react-9Kj1B1wt.js → react-BDsdEj0o.js} +1 -1
  23. package/dist/assets/{react-CdND5srH.js → react-BJWJlIxx.js} +1 -1
  24. package/dist/assets/{react-BLe964tg.js → react-BOXFnqE5.js} +2 -2
  25. package/dist/assets/{react-D1lzTawy.js → react-C4NjKEmW.js} +1 -1
  26. package/dist/assets/{react-DRO7qhGA.js → react-D0ldmlmq.js} +1 -1
  27. package/dist/assets/{react-C_qk_SxL.js → react-D61uG9HS.js} +1 -1
  28. package/dist/assets/{react-CNU9DWBw.js → react-DgAe5W6i.js} +1 -1
  29. package/dist/assets/{react-D1VJKwtS.js → react-QsNh1E8B.js} +1 -1
  30. package/dist/assets/{recharts-DE-kxplH.js → recharts-CJdGrf_W.js} +1 -1
  31. package/dist/assets/{sentry-SNkBC2Al.js → sentry-DUU0q5Ew.js} +1 -1
  32. package/dist/assets/{url-h1qG-NI4.js → url-Cj5wVBNU.js} +1 -1
  33. package/dist/assets/{url-C9VCVVAZ.js → url-DeXYhSim.js} +1 -1
  34. package/dist/assets/{utils-CpsqBQqv.js → utils-BhaZEoy3.js} +1 -1
  35. package/dist/assets/{zeni-epic-state-B7yJI5lR.js → zeni-epic-state-cNAnyVwk.js} +7 -7
  36. package/dist/index.html +1 -1
  37. package/package.json +4 -4
  38. package/dist/assets/SignInScreen-si7quMFC.js +0 -1
  39. package/dist/assets/epic-ButtTfPO.js +0 -2
@@ -0,0 +1 @@
1
+ import{j as l}from"./liveblocks-CQjFg2ii.js";import{a as S,b as f,n as m}from"./sentry-DUU0q5Ew.js";import{n as I,i as w,g,u as b,N as h,h as y}from"./core-B2-9c7df.js";import{z as d,m as v,D as C,a as E,p as U,S as x,c as p}from"./index-PH0EWbHe.js";import{Gv as T,Gw as D,Gx as L,Gy as z,bi as u}from"./zeni-epic-state-cNAnyVwk.js";import{f as A}from"./analyticsHelper-DQOtL_m_.js";import"./recharts-CJdGrf_W.js";import"./mui-C__dMD6S.js";import"./lottie-BOIl-ZGz.js";import"./analytics-Cbo-rRCT.js";import"./lexical-BiT-GF_n.js";import"./utils-BhaZEoy3.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]="c92945bb-de50-4e0b-9644-c41d0585db6c",e._sentryDebugIdIdentifier="sentry-dbid-c92945bb-de50-4e0b-9644-c41d0585db6c")}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 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:u(s),sourceUri:u(i.state!=null?i.state.origin:"")}))},getSignedInUser:()=>d.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)(x),_=f.memo(P);function q(){const e=I(),o=w(),i=d.getSignedInUser(),a=g(r=>r.tenantState.fetchState),n=g(r=>r.tenantState.signInState),t=g(r=>r.tenantState.loggedInUser),s=v().mode,c=b();if(S.useEffect(()=>{n==="In-Progress"&&a==="Completed"&&t?.zeniSessionId!=null&&(d.saveSignedInUserWithSession(t,t.zeniSessionId),T(t.userId,t.zeniSessionId),e(D("Completed")),C.updateAppLocaleID("en"),A(t,s),setTimeout(()=>{E.trackLogin(U.Event.loginSuccess,t.authProvider??"google")},2e3))},[]),n==="In-Progress"&&a==="Completed"&&t?.zeniSessionId!=null||i!=null){const r=c.state?.origin??"/";return l.jsx(h,{to:r,state:{...c.state,origin:""}})}else return l.jsx(_,{navigate:o,location:c})}export{q as default};