@zeniai/web-cockpit-ui 2.1.64-qa → 2.1.65-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-DRc3RFT_.js +4 -0
  2. package/dist/assets/{Preview-Cth_5Vda.js → Preview-BirPYgDI.js} +1 -1
  3. package/dist/assets/{ScreenRoutes-CA3-rBZ6.js → ScreenRoutes-BT8WyFsX.js} +84 -84
  4. package/dist/assets/SignInScreen-Z6LlhLv5.js +1 -0
  5. package/dist/assets/{analytics-BV43vCp4.js → analytics-CppeJHJt.js} +1 -1
  6. package/dist/assets/{analyticsHelper-Bn458MHb.js → analyticsHelper-BuZQqMbu.js} +1 -1
  7. package/dist/assets/{core-BzppVWuQ.js → core-B4_LYukS.js} +1 -1
  8. package/dist/assets/{dash.all.min-De3-fP_B.js → dash.all.min-CwkzUQDy.js} +1 -1
  9. package/dist/assets/{empty-COSK4IKp.js → empty-Be_xsmZf.js} +1 -1
  10. package/dist/assets/{empty-Cb8RWNP3.js → empty-DEem9cBG.js} +1 -1
  11. package/dist/assets/epic-Dx2Y50YQ.js +2 -0
  12. package/dist/assets/{index-BaC1FbO4.js → index-B9laiodU.js} +1 -1
  13. package/dist/assets/{index-B2oT10Ve.js → index-Bx57WVBf.js} +1 -1
  14. package/dist/assets/{index-xJuJaFMt.js → index-CyjDY65_.js} +2 -2
  15. package/dist/assets/{index-DBUIixAe.js → index-DIU63Vpg.js} +1 -1
  16. package/dist/assets/{index-Dz5SUQDP.js → index-DT1pQZh8.js} +1 -1
  17. package/dist/assets/{index-DIS0VGfg.js → index-dHTCdHT4.js} +1 -1
  18. package/dist/assets/{index-D3pxUW5k.js → index-ykS-7aXl.js} +12557 -12294
  19. package/dist/assets/{lexical-CUV8waJv.js → lexical-YeG96FUv.js} +1 -1
  20. package/dist/assets/{liveblocks-B3aUBEv_.js → liveblocks-DeVp0SDC.js} +1 -1
  21. package/dist/assets/{lottie-R16Lw44M.js → lottie-M8v1psw7.js} +1 -1
  22. package/dist/assets/{mui-CkKjP27O.js → mui-MZq3vA2v.js} +1 -1
  23. package/dist/assets/{react-BA-3uWN8.js → react-84y4dvqV.js} +1 -1
  24. package/dist/assets/{react-_DWO4TjB.js → react-BDJNULgU.js} +1 -1
  25. package/dist/assets/{react-COmZwifG.js → react-Be7HLh4D.js} +1 -1
  26. package/dist/assets/{react-Bb3oRKoY.js → react-BhJQlMZC.js} +2 -2
  27. package/dist/assets/{react-DN0RHil6.js → react-CFZy9WF4.js} +1 -1
  28. package/dist/assets/{react-8OnXWZlz.js → react-CtNlrhsw.js} +1 -1
  29. package/dist/assets/{react-CYVjkaIi.js → react-CtmgQCOM.js} +1 -1
  30. package/dist/assets/{react-Xgd2KOlp.js → react-D6iR1cDi.js} +1 -1
  31. package/dist/assets/{recharts-on-8UAjz.js → recharts-u90q1a1f.js} +1 -1
  32. package/dist/assets/{sentry-BAqUsRgM.js → sentry-Dr6xziDZ.js} +1 -1
  33. package/dist/assets/{url-Clu9WSCr.js → url-Bs23YfNY.js} +1 -1
  34. package/dist/assets/{url-Cexm1T-O.js → url-nEHxLXUn.js} +1 -1
  35. package/dist/assets/{utils-BNWm0Bg_.js → utils-COd7haem.js} +1 -1
  36. package/dist/assets/{zeni-epic-state-BPQTAwfP.js → zeni-epic-state-qp73aHwJ.js} +6 -6
  37. package/dist/index.html +1 -1
  38. package/package.json +4 -4
  39. package/dist/assets/CreditAgentRoutes-BkBi3OiI.js +0 -4
  40. package/dist/assets/SignInScreen-NBufYqiP.js +0 -1
  41. package/dist/assets/epic-B8aFh31K.js +0 -2
@@ -0,0 +1 @@
1
+ import{j as d}from"./liveblocks-DeVp0SDC.js";import{a as u,R as S,n as m}from"./sentry-Dr6xziDZ.js";import{n as I,i as w,g,u as h,N as y,h as E}from"./core-B4_LYukS.js";import{z as l,E as b,O as C,c as v,t as U,_ as P,e as p}from"./index-ykS-7aXl.js";import{Pj as T,Pk as x,Pl as L,Pm as z,bn as f}from"./zeni-epic-state-qp73aHwJ.js";import{f as D}from"./analyticsHelper-BuZQqMbu.js";import"./recharts-u90q1a1f.js";import"./mui-MZq3vA2v.js";import"./analytics-CppeJHJt.js";import"./lottie-M8v1psw7.js";import"./lexical-YeG96FUv.js";import"./utils-COd7haem.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]="366afa43-8678-4474-98f2-a0a9f5e17270",e._sentryDebugIdIdentifier="sentry-dbid-366afa43-8678-4474-98f2-a0a9f5e17270")}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(z({authCode:n,oauthProvider:t,appType:"web",redirectUri:f(s),sourceUri:f(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 A=E(N,k)(P),_=S.memo(A);function G(){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=b().mode,c=h();if(u.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(l.saveSignedInUserWithSession(t,t.zeniSessionId),T(t.userId,t.zeniSessionId),e(x("Completed")),C.updateAppLocaleID("en"),D(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(y,{to:a,state:{...c.state,origin:""}})}else return d.jsx(_,{navigate:o,location:c})}export{G as default};