@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.
Files changed (40) hide show
  1. package/dist/assets/{CreditAgentRoutes-DdvBmNuC.js → CreditAgentRoutes-BePvMJHy.js} +1 -1
  2. package/dist/assets/{Preview-DQLhR9Py.js → Preview-0wcWl3yT.js} +1 -1
  3. package/dist/assets/ScreenRoutes-CKkuA0FN.js +180 -0
  4. package/dist/assets/SignInScreen-2Bt8kEck.js +1 -0
  5. package/dist/assets/{analytics-qNB0kJvk.js → analytics-DZ78nstU.js} +1 -1
  6. package/dist/assets/{analyticsHelper-DdToBRdS.js → analyticsHelper-CWiF7JRB.js} +1 -1
  7. package/dist/assets/{core-CYwRcxS2.js → core-9lSau7JX.js} +2 -2
  8. package/dist/assets/{dash.all.min-Cc2qgwmt.js → dash.all.min-B9vxuv8K.js} +1 -1
  9. package/dist/assets/{empty-DgsCFr0d.js → empty-CBigbD-X.js} +1 -1
  10. package/dist/assets/{empty-D20V3fIN.js → empty-DNUsuwtr.js} +1 -1
  11. package/dist/assets/{epic-DZxtVyke.js → epic-CccbsLqj.js} +2 -2
  12. package/dist/assets/{index-BR91WVLA.js → index-3x_gUOvO.js} +1 -1
  13. package/dist/assets/{index-Bz5_ybKK.js → index-B-PPAcLf.js} +1 -1
  14. package/dist/assets/{index-B-l_Ce0x.js → index-CohFgCzE.js} +1 -1
  15. package/dist/assets/{index-B-cHNfDz.js → index-DDZpi5Xk.js} +1 -1
  16. package/dist/assets/{index-BcOOj0NL.js → index-DS2aSGaI.js} +8234 -8234
  17. package/dist/assets/{index-BqtxufiL.js → index-DY6AaM91.js} +2 -2
  18. package/dist/assets/{index-B7phxqBH.js → index-DuZLh8qT.js} +1 -1
  19. package/dist/assets/{lexical-Be-_PPUq.js → lexical-CmjhFzKL.js} +1 -1
  20. package/dist/assets/{liveblocks-D3HEPXJr.js → liveblocks-daCV-NeN.js} +1 -1
  21. package/dist/assets/{lottie-DqfErP6E.js → lottie-CxUtS1yw.js} +1 -1
  22. package/dist/assets/{mui-t8xxFWWZ.js → mui-BN7b87Jp.js} +1 -1
  23. package/dist/assets/{react-DgmgEx2N.js → react-BY6klugU.js} +1 -1
  24. package/dist/assets/{react-CE5-_GDQ.js → react-CRsk0ixJ.js} +1 -1
  25. package/dist/assets/{react-mdD0aQcs.js → react-CYrqpJYu.js} +2 -2
  26. package/dist/assets/{react-CYwzJ83C.js → react-CeF7x-c4.js} +1 -1
  27. package/dist/assets/{react-D4NSLLRO.js → react-D3ANJI0c.js} +1 -1
  28. package/dist/assets/{react-DfnwvFFw.js → react-DvJtAK46.js} +1 -1
  29. package/dist/assets/{react-Ce98t2Ci.js → react-F4eiabRs.js} +1 -1
  30. package/dist/assets/{react-B2NB3I-o.js → react-iwZJ9U16.js} +1 -1
  31. package/dist/assets/{recharts-B3T1htgx.js → recharts-0KvwlQud.js} +1 -1
  32. package/dist/assets/{sentry-DMbI5IBE.js → sentry-D1WWozHj.js} +1 -1
  33. package/dist/assets/{url-CaaIMLt-.js → url-C9THCWl9.js} +1 -1
  34. package/dist/assets/{url-DAUxmVPx.js → url-D8J8Bt-p.js} +1 -1
  35. package/dist/assets/{utils-DkW04Na0.js → utils-D8yPrVSN.js} +1 -1
  36. package/dist/assets/{zeni-epic-state-7WabBFDD.js → zeni-epic-state-CSF-BFbu.js} +3 -3
  37. package/dist/index.html +1 -1
  38. package/package.json +4 -4
  39. package/dist/assets/ScreenRoutes-Bcou6yki.js +0 -180
  40. package/dist/assets/SignInScreen-DthpgnxS.js +0 -1
@@ -1 +0,0 @@
1
- import{j as l}from"./liveblocks-D3HEPXJr.js";import{a as S,R as f,n as m}from"./sentry-DMbI5IBE.js";import{n as I,i as w,g,u as h,N as y,h as b}from"./core-CYwRcxS2.js";import{z as d,G as C,b as v,q as E,S as T,e as p}from"./index-BcOOj0NL.js";import{SR as U,SS as x,ST as L,SU as z,bm as u}from"./zeni-epic-state-7WabBFDD.js";import{f as D}from"./analyticsHelper-DdToBRdS.js";import{u as A}from"./mui-t8xxFWWZ.js";import"./recharts-B3T1htgx.js";import"./analytics-qNB0kJvk.js";import"./lottie-DqfErP6E.js";import"./lexical-Be-_PPUq.js";import"./utils-DkW04Na0.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]="da321a30-44fa-49a5-ac82-16f0c10d0da5",e._sentryDebugIdIdentifier="sentry-dbid-da321a30-44fa-49a5-ac82-16f0c10d0da5")}catch{}})();function N(e){const o=e.tenantState.fetchState,a=e.tenantState.sendEmailMagicLinkFetchState;return{googleClientId:p.googleClientId,microsoftClientId:p.microsoftClientId,signInError:e.tenantState.error?.error,fetchState:o,sendMagicLinkStatus:a,showEmailLogin:!1}}function k(e,o){const{location:a,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(a.state!=null?a.state.origin:"")}))},getSignedInUser:()=>d.getSignedInUser(),onSignedInCallback:()=>{const n=a.state?.origin;n&&n!=="/"?r(n,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{e(L())}}}const O=b(N,k)(T),P=f.memo(O);function W(){const e=I(),o=w(),a=d.getSignedInUser(),r=g(i=>i.tenantState.fetchState),n=g(i=>i.tenantState.signInState),t=g(i=>i.tenantState.loggedInUser),s=A().mode,c=h();if(S.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(d.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"&&r==="Completed"&&t?.zeniSessionId!=null||a!=null){const i=c.state?.origin??"/";return l.jsx(y,{to:i,state:{...c.state,origin:""}})}else return l.jsx(P,{navigate:o,location:c})}export{W as default};