@zeniai/web-cockpit-ui 2.3.0-qa → 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-DUmIDr5m.js → CreditAgentRoutes-BePvMJHy.js} +1 -1
  2. package/dist/assets/{Preview-CNS-1-5t.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-DBe25Eqs.js → analytics-DZ78nstU.js} +1 -1
  6. package/dist/assets/{analyticsHelper-Db5Up0qh.js → analyticsHelper-CWiF7JRB.js} +1 -1
  7. package/dist/assets/{core-CXcyQVBu.js → core-9lSau7JX.js} +2 -2
  8. package/dist/assets/{dash.all.min-xQfK65gu.js → dash.all.min-B9vxuv8K.js} +1 -1
  9. package/dist/assets/{empty-CFIWHO0z.js → empty-CBigbD-X.js} +1 -1
  10. package/dist/assets/{empty-Dj3G3i7a.js → empty-DNUsuwtr.js} +1 -1
  11. package/dist/assets/{epic-CYTu1QtA.js → epic-CccbsLqj.js} +2 -2
  12. package/dist/assets/{index-Dad8HxvG.js → index-3x_gUOvO.js} +1 -1
  13. package/dist/assets/{index-B60J5ybv.js → index-B-PPAcLf.js} +1 -1
  14. package/dist/assets/{index-AK9n73b_.js → index-CohFgCzE.js} +1 -1
  15. package/dist/assets/{index-Dt_O3nQE.js → index-DDZpi5Xk.js} +1 -1
  16. package/dist/assets/{index-BvmGTjAH.js → index-DS2aSGaI.js} +8234 -8234
  17. package/dist/assets/{index-DUf_hC5x.js → index-DY6AaM91.js} +2 -2
  18. package/dist/assets/{index-DQTLs9GA.js → index-DuZLh8qT.js} +1 -1
  19. package/dist/assets/{lexical-B7S1NF5U.js → lexical-CmjhFzKL.js} +1 -1
  20. package/dist/assets/{liveblocks-RRkKuOUp.js → liveblocks-daCV-NeN.js} +1 -1
  21. package/dist/assets/{lottie-CLAAc507.js → lottie-CxUtS1yw.js} +1 -1
  22. package/dist/assets/{mui-DyXVwUkA.js → mui-BN7b87Jp.js} +1 -1
  23. package/dist/assets/{react-CgWl2c8B.js → react-BY6klugU.js} +1 -1
  24. package/dist/assets/{react-PbdNCOsh.js → react-CRsk0ixJ.js} +1 -1
  25. package/dist/assets/{react-cGsD-Kfc.js → react-CYrqpJYu.js} +2 -2
  26. package/dist/assets/{react-C8Agt6uC.js → react-CeF7x-c4.js} +1 -1
  27. package/dist/assets/{react-_6VCcq4G.js → react-D3ANJI0c.js} +1 -1
  28. package/dist/assets/{react-51muJ3Cj.js → react-DvJtAK46.js} +1 -1
  29. package/dist/assets/{react-BS8ZyxhJ.js → react-F4eiabRs.js} +1 -1
  30. package/dist/assets/{react-EGvMRsJS.js → react-iwZJ9U16.js} +1 -1
  31. package/dist/assets/{recharts-C2pe_7ld.js → recharts-0KvwlQud.js} +1 -1
  32. package/dist/assets/{sentry-DUTEWFKx.js → sentry-D1WWozHj.js} +1 -1
  33. package/dist/assets/{url-B7RySzMn.js → url-C9THCWl9.js} +1 -1
  34. package/dist/assets/{url-2rzf__2n.js → url-D8J8Bt-p.js} +1 -1
  35. package/dist/assets/{utils-COdYiHYV.js → utils-D8yPrVSN.js} +1 -1
  36. package/dist/assets/{zeni-epic-state-Bx0Q86PV.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-CVyeakjn.js +0 -180
  40. package/dist/assets/SignInScreen-DGTU7Iwv.js +0 -1
@@ -0,0 +1 @@
1
+ import{j as l}from"./liveblocks-daCV-NeN.js";import{a as u,R as S,n as m}from"./sentry-D1WWozHj.js";import{n as I,i as w,g as d,u as h,N as b,h as y}from"./core-9lSau7JX.js";import{z as g,G as C,b as v,l as E,S as T,d as f}from"./index-DS2aSGaI.js";import{SR as U,SS as x,ST as L,SU as z,bm as p}from"./zeni-epic-state-CSF-BFbu.js";import{f as D}from"./analyticsHelper-CWiF7JRB.js";import{u as A}from"./mui-BN7b87Jp.js";import"./recharts-0KvwlQud.js";import"./analytics-DZ78nstU.js";import"./lottie-CxUtS1yw.js";import"./lexical-CmjhFzKL.js";import"./utils-D8yPrVSN.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]="1f02b550-9df2-436d-9d8e-e8c0624489bf",e._sentryDebugIdIdentifier="sentry-dbid-1f02b550-9df2-436d-9d8e-e8c0624489bf")}catch{}})();function N(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 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:p(s),sourceUri:p(i.state!=null?i.state.origin:"")}))},getSignedInUser:()=>g.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)(T),_=S.memo(P);function q(){const e=I(),o=w(),i=g.getSignedInUser(),a=d(r=>r.tenantState.fetchState),n=d(r=>r.tenantState.signInState),t=d(r=>r.tenantState.loggedInUser),s=A().mode,c=h();if(u.useEffect(()=>{n==="In-Progress"&&a==="Completed"&&t?.zeniSessionId!=null&&(g.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"&&a==="Completed"&&t?.zeniSessionId!=null||i!=null){const r=c.state?.origin??"/";return l.jsx(b,{to:r,state:{...c.state,origin:""}})}else return l.jsx(_,{navigate:o,location:c})}export{q as default};