@zeniai/web-cockpit-ui 2.1.82-qa → 2.1.83-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-2RWV8IlY.js +4 -0
  2. package/dist/assets/{Preview-Df2qnaZx.js → Preview-Dg2bfnTS.js} +1 -1
  3. package/dist/assets/{ScreenRoutes-BQ8yIPVW.js → ScreenRoutes-CyvcsAWh.js} +65 -65
  4. package/dist/assets/SignInScreen-8X5N4Aoj.js +1 -0
  5. package/dist/assets/{analytics-B4l9npCi.js → analytics-BVEo-9Xn.js} +1 -1
  6. package/dist/assets/{analyticsHelper-Ctoji5-4.js → analyticsHelper-B3m8Ckk6.js} +1 -1
  7. package/dist/assets/{core-DjqEQ7J9.js → core-C-6n-ywm.js} +1 -1
  8. package/dist/assets/{dash.all.min-DUZ4Yjya.js → dash.all.min-DiNdPMbb.js} +1 -1
  9. package/dist/assets/{empty-Cgb8RQRd.js → empty-DljoD-l4.js} +1 -1
  10. package/dist/assets/{empty-ChwXOpjB.js → empty-vKewJMa4.js} +1 -1
  11. package/dist/assets/epic-DeFyl7Mm.js +2 -0
  12. package/dist/assets/{index-CmIBjTYr.js → index-B1VukgSJ.js} +1 -1
  13. package/dist/assets/{index-ms5hbQXt.js → index-BsoS4b2U.js} +1 -1
  14. package/dist/assets/{index-BI7byYdG.js → index-CZ_ANeGI.js} +2 -2
  15. package/dist/assets/{index-CguLYdmf.js → index-CsBAezP_.js} +1 -1
  16. package/dist/assets/{index-sg_PqMKk.js → index-CskfYcAr.js} +1 -1
  17. package/dist/assets/{index-C2A9BZhl.js → index-DSnAUcrh.js} +7372 -7126
  18. package/dist/assets/{index-C0GDbG_m.js → index-DUWPXwYp.js} +1 -1
  19. package/dist/assets/{lexical-4mkHfNAP.js → lexical-ChjjkySd.js} +1 -1
  20. package/dist/assets/{liveblocks-Cs2UT8nX.js → liveblocks-CXpQF0cB.js} +1 -1
  21. package/dist/assets/{lottie-BBqUmXtT.js → lottie-CFeYcdFb.js} +1 -1
  22. package/dist/assets/{mui-Bx3H9Czx.js → mui-Cwt8KQ5j.js} +1 -1
  23. package/dist/assets/{react-3-i4XwBZ.js → react-BCM04GGi.js} +1 -1
  24. package/dist/assets/{react-iyv6ukj6.js → react-BQYL30s_.js} +1 -1
  25. package/dist/assets/{react-B7p7s7fM.js → react-CAqpOpDi.js} +1 -1
  26. package/dist/assets/{react-B6gqbUzh.js → react-CD414h_4.js} +1 -1
  27. package/dist/assets/{react-DLJ_1yah.js → react-C_7vRdiB.js} +1 -1
  28. package/dist/assets/{react-BOOANldr.js → react-CknpagtL.js} +2 -2
  29. package/dist/assets/{react-B18Kapjk.js → react-ClEVT59T.js} +1 -1
  30. package/dist/assets/{react-CGViUAd4.js → react-DwA1155P.js} +1 -1
  31. package/dist/assets/{recharts-BOu_IRXw.js → recharts-mSCmevOQ.js} +1 -1
  32. package/dist/assets/{sentry-BqqF6p_E.js → sentry-DZx1kXTY.js} +1 -1
  33. package/dist/assets/{url-DYKjc3RV.js → url-BNNsiDAE.js} +1 -1
  34. package/dist/assets/{url-lly7NCyC.js → url-Bn5Ener7.js} +1 -1
  35. package/dist/assets/{utils-Dm08U7So.js → utils-jMPat7SG.js} +1 -1
  36. package/dist/assets/{zeni-epic-state-DbxZ0kKc.js → zeni-epic-state-CI3SL-CE.js} +6 -6
  37. package/dist/index.html +1 -1
  38. package/package.json +4 -4
  39. package/dist/assets/CreditAgentRoutes-C9REYDvD.js +0 -4
  40. package/dist/assets/SignInScreen-SHM_sQlo.js +0 -1
  41. package/dist/assets/epic-eMwoX3sn.js +0 -2
@@ -0,0 +1 @@
1
+ import{j as l}from"./liveblocks-CXpQF0cB.js";import{a as f,R as S,n as m}from"./sentry-DZx1kXTY.js";import{n as I,i as w,g as d,u as h,N as y,h as b}from"./core-C-6n-ywm.js";import{z as g,E,F as C,b as v,p as T,T as U,d as p}from"./index-DSnAUcrh.js";import{PJ as L,PK as P,PL as x,PM as z,bm as u}from"./zeni-epic-state-CI3SL-CE.js";import{f as D}from"./analyticsHelper-B3m8Ckk6.js";import"./recharts-mSCmevOQ.js";import"./mui-Cwt8KQ5j.js";import"./analytics-BVEo-9Xn.js";import"./lottie-CFeYcdFb.js";import"./lexical-ChjjkySd.js";import"./utils-jMPat7SG.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]="e6addf9c-4a3e-4e6b-80a4-17f1d95d8e6a",e._sentryDebugIdIdentifier="sentry-dbid-e6addf9c-4a3e-4e6b-80a4-17f1d95d8e6a")}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 A(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(z({authCode:n,oauthProvider:t,appType:"web",redirectUri:u(s),sourceUri:u(i.state!=null?i.state.origin:"")}))},getSignedInUser:()=>g.getSignedInUser(),onSignedInCallback:()=>{const n=i.state?.origin;n&&n!=="/"?r(n,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{e(x())}}}const k=b(N,A)(U),_=S.memo(k);function G(){const e=I(),o=w(),i=g.getSignedInUser(),r=d(a=>a.tenantState.fetchState),n=d(a=>a.tenantState.signInState),t=d(a=>a.tenantState.loggedInUser),s=E().mode,c=h();if(f.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(g.saveSignedInUserWithSession(t,t.zeniSessionId),L(t.userId,t.zeniSessionId),e(P("Completed")),C.updateAppLocaleID("en"),D(t,s),setTimeout(()=>{v.trackLogin(T.Event.loginSuccess,t.authProvider??"google")},2e3))},[]),n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null||i!=null){const a=c.state?.origin??"/";return l.jsx(y,{to:a,state:{...c.state,origin:""}})}else return l.jsx(_,{navigate:o,location:c})}export{G as default};