@zeniai/web-cockpit-ui 2.0.13-dev → 2.0.14-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 (38) hide show
  1. package/dist/assets/{Preview-CK8g8OHe.js → Preview-XSDF5WUu.js} +1 -1
  2. package/dist/assets/{ScreenRoutes-tnXlq5uW.js → ScreenRoutes-DyNsaToo.js} +59 -59
  3. package/dist/assets/SignInScreen-o5KiAGg6.js +1 -0
  4. package/dist/assets/{analytics-ByMOpUiW.js → analytics-BWHV82mv.js} +1 -1
  5. package/dist/assets/{analyticsHelper-CMDs_3Qp.js → analyticsHelper-D5LajGxu.js} +1 -1
  6. package/dist/assets/{core-LVMM9Tmv.js → core-CSxbo2-Z.js} +1 -1
  7. package/dist/assets/{dash.all.min-CR26iBy2.js → dash.all.min-m9MQTsTV.js} +1 -1
  8. package/dist/assets/{empty-HpcAf1N6.js → empty-BY7dcFV_.js} +1 -1
  9. package/dist/assets/{empty-BzawPRKd.js → empty-DrVsIEct.js} +1 -1
  10. package/dist/assets/{epic-BRUD2Xgw.js → epic-BawS9FGt.js} +1 -1
  11. package/dist/assets/{index-lHnNgCu3.js → index-B7K8ywFH.js} +2 -2
  12. package/dist/assets/{index-BS1ODbqP.js → index-CXDJ3avB.js} +1 -1
  13. package/dist/assets/{index-Ca720BID.js → index-Cbk1mdXT.js} +1 -1
  14. package/dist/assets/{index-DTZl59eg.js → index-CqvFpskN.js} +5662 -5661
  15. package/dist/assets/{index-D77LbJno.js → index-D3JaeMSQ.js} +1 -1
  16. package/dist/assets/{index-CsBhp3mk.js → index-DFVj4pWY.js} +1 -1
  17. package/dist/assets/{index-R5j7BRiN.js → index-gncmcKpD.js} +1 -1
  18. package/dist/assets/{lexical-Bn4uiscv.js → lexical-H7aW2h7J.js} +1 -1
  19. package/dist/assets/{liveblocks-B4Sp50ux.js → liveblocks-C_dKseeS.js} +1 -1
  20. package/dist/assets/{lottie-ClHCZORM.js → lottie-CAnxbU8_.js} +1 -1
  21. package/dist/assets/{mui-DGkxuTOz.js → mui-CbR4FV1f.js} +1 -1
  22. package/dist/assets/{react-DTH3TXWe.js → react-BEEXuBj1.js} +1 -1
  23. package/dist/assets/{react-anmRUahd.js → react-C0viR-_q.js} +1 -1
  24. package/dist/assets/{react-CiZqGZHl.js → react-CTwG5a1V.js} +2 -2
  25. package/dist/assets/{react-Ds_I-C9-.js → react-Cv6HoNma.js} +1 -1
  26. package/dist/assets/{react-DTql8EW0.js → react-DNANFeQH.js} +1 -1
  27. package/dist/assets/{react-D8pAfQ8R.js → react-DhnNgUmR.js} +1 -1
  28. package/dist/assets/{react-BZ0UOas7.js → react-X20K_uSB.js} +1 -1
  29. package/dist/assets/{react-DvXU-LNk.js → react-vfrXDxne.js} +1 -1
  30. package/dist/assets/{recharts-Dxnzm0hz.js → recharts-kL0vQagd.js} +1 -1
  31. package/dist/assets/{sentry-DndFVDDN.js → sentry-IwDOxuaB.js} +1 -1
  32. package/dist/assets/{url-D0VqvbFM.js → url-BktcLSZy.js} +1 -1
  33. package/dist/assets/{url-BsZJkz1m.js → url-Dn9U0zz1.js} +1 -1
  34. package/dist/assets/{utils-3Uyk0AiK.js → utils-23dDYdv3.js} +1 -1
  35. package/dist/assets/{zeni-epic-state-DQ4C8hKt.js → zeni-epic-state-CgZkNLQS.js} +3 -3
  36. package/dist/index.html +1 -1
  37. package/package.json +3 -3
  38. package/dist/assets/SignInScreen-D3sDYMgn.js +0 -1
@@ -0,0 +1 @@
1
+ import{j as d}from"./liveblocks-C_dKseeS.js";import{a as f,b as S,n as I}from"./sentry-IwDOxuaB.js";import{n as m,i as w,g,u as h,N as b,h as y}from"./core-CSxbo2-Z.js";import{z as l,h as C,D as v,a as E,r as U,U as T,d as p}from"./index-CqvFpskN.js";import{GT as x,GU as D,GV as L,GW as z,bk as u}from"./zeni-epic-state-CgZkNLQS.js";import{f as A}from"./analyticsHelper-D5LajGxu.js";import"./recharts-kL0vQagd.js";import"./mui-CbR4FV1f.js";import"./analytics-BWHV82mv.js";import"./lottie-CAnxbU8_.js";import"./lexical-H7aW2h7J.js";import"./utils-23dDYdv3.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]="93e2e659-b0ba-4ce1-a799-fa2f92539908",e._sentryDebugIdIdentifier="sentry-dbid-93e2e659-b0ba-4ce1-a799-fa2f92539908")}catch{}})();function k(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)=>{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(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(k,N)(T),_=S.memo(P);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(f.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(l.saveSignedInUserWithSession(t,t.zeniSessionId),x(t.userId,t.zeniSessionId),e(D("Completed")),v.updateAppLocaleID("en"),A(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(_,{navigate:o,location:c})}export{V as default};