@zeniai/web-cockpit-ui 2.1.94-qa → 2.1.95-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 (41) hide show
  1. package/dist/assets/CreditAgentRoutes-CIscXuUe.js +4 -0
  2. package/dist/assets/{Preview-nE0CqfOk.js → Preview-DtkiSAbX.js} +1 -1
  3. package/dist/assets/{ScreenRoutes-xQxDEzPw.js → ScreenRoutes-C6taxxP0.js} +55 -55
  4. package/dist/assets/SignInScreen-DK92Zlut.js +1 -0
  5. package/dist/assets/{analytics-CWp_cpQ1.js → analytics-CcLB9_Vj.js} +1 -1
  6. package/dist/assets/{analyticsHelper-vJGBWrYI.js → analyticsHelper-0rkwe5fC.js} +1 -1
  7. package/dist/assets/{core-BHQLN6-g.js → core-Bl9BnB30.js} +1 -1
  8. package/dist/assets/{dash.all.min-CcLWi4gz.js → dash.all.min-BtgfMeTQ.js} +1 -1
  9. package/dist/assets/{empty-DDjKe5d8.js → empty-B7fTrwqG.js} +1 -1
  10. package/dist/assets/{empty-bhGwixS7.js → empty-TF8E-plp.js} +1 -1
  11. package/dist/assets/epic-DWIR0W0U.js +2 -0
  12. package/dist/assets/{index-C7mp9QSZ.js → index-BNtt6nz7.js} +1 -1
  13. package/dist/assets/{index-BU8xni6Z.js → index-D1AcXnh0.js} +2 -2
  14. package/dist/assets/{index-BYSSlFK3.js → index-DrbDpgw9.js} +7452 -7344
  15. package/dist/assets/{index-C4oVZOQb.js → index-DsAckLPW.js} +1 -1
  16. package/dist/assets/{index-CaRPtrii.js → index-DvZr26Ys.js} +1 -1
  17. package/dist/assets/{index-CX4dUwSg.js → index-Ut1WovAG.js} +1 -1
  18. package/dist/assets/{index-jEZa-sfh.js → index-oPkSm1_I.js} +1 -1
  19. package/dist/assets/{lexical-C2fQ05Ap.js → lexical-Btm7au_7.js} +1 -1
  20. package/dist/assets/{liveblocks-MfOLWsgC.js → liveblocks-ruhPlRgH.js} +1 -1
  21. package/dist/assets/{lottie-Bb3n-VJo.js → lottie-BDuJRr8q.js} +1 -1
  22. package/dist/assets/{mui-dggYYiUU.js → mui-B0uSMsuV.js} +1 -1
  23. package/dist/assets/{react-BmhwVYnh.js → react-9mF8Hlr1.js} +1 -1
  24. package/dist/assets/{react-CcfN7LTV.js → react-B5e2_6kE.js} +1 -1
  25. package/dist/assets/{react-BvEABR86.js → react-CDj8vTUp.js} +1 -1
  26. package/dist/assets/{react-MeAaLOva.js → react-CveG8dcT.js} +1 -1
  27. package/dist/assets/{react-Cp9jGCDw.js → react-Cz4v-CaS.js} +1 -1
  28. package/dist/assets/{react-CHaVl1d_.js → react-DcQRvVYt.js} +1 -1
  29. package/dist/assets/{react-D_gpt7yk.js → react-Dzq8d2xb.js} +1 -1
  30. package/dist/assets/{react-xRk7RKCQ.js → react-dEcrXB5H.js} +2 -2
  31. package/dist/assets/{recharts-BcuOz9HS.js → recharts-BVXGz_Pg.js} +1 -1
  32. package/dist/assets/{sentry-DnBnqk3H.js → sentry-CZNY_XXd.js} +1 -1
  33. package/dist/assets/{url-Dkrw7anD.js → url-3tTCewRE.js} +1 -1
  34. package/dist/assets/{url-iVufX2EA.js → url-Djf5X53U.js} +1 -1
  35. package/dist/assets/{utils-cf1MI_A1.js → utils-BmzxTZV6.js} +1 -1
  36. package/dist/assets/{zeni-epic-state-BzIrhCNm.js → zeni-epic-state-CSx5suD3.js} +3 -3
  37. package/dist/index.html +1 -1
  38. package/package.json +4 -4
  39. package/dist/assets/CreditAgentRoutes-BH5jsG1Z.js +0 -4
  40. package/dist/assets/SignInScreen-Dc-GA90E.js +0 -1
  41. package/dist/assets/epic-KKYNOePU.js +0 -2
@@ -0,0 +1 @@
1
+ import{j as d}from"./liveblocks-ruhPlRgH.js";import{a as f,R as S,n as m}from"./sentry-CZNY_XXd.js";import{n as I,i as w,g,u as b,N as h,h as y}from"./core-Bl9BnB30.js";import{z as l,E as C,m as E,e as v,C as U,Z as x,i as p}from"./index-DrbDpgw9.js";import{Qv as T,Qw as L,Qx as z,Qy as D,bm as u}from"./zeni-epic-state-CSx5suD3.js";import{f as A}from"./analyticsHelper-0rkwe5fC.js";import"./recharts-BVXGz_Pg.js";import"./mui-B0uSMsuV.js";import"./analytics-CcLB9_Vj.js";import"./lottie-BDuJRr8q.js";import"./lexical-Btm7au_7.js";import"./utils-BmzxTZV6.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]="5205f67b-3178-4eb2-9d16-a17cbec7bb57",e._sentryDebugIdIdentifier="sentry-dbid-5205f67b-3178-4eb2-9d16-a17cbec7bb57")}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: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(D({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(z())}}}const P=y(N,k)(x),_=S.memo(P);function q(){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=b();if(f.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(l.saveSignedInUserWithSession(t,t.zeniSessionId),T(t.userId,t.zeniSessionId),e(L("Completed")),E.updateAppLocaleID("en"),A(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(h,{to:a,state:{...c.state,origin:""}})}else return d.jsx(_,{navigate:o,location:c})}export{q as default};