@zeniai/web-cockpit-ui 2.2.58-qa → 2.2.59-qa

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 (45) hide show
  1. package/dist/assets/CreditAgentRoutes-D2YHXEKM.js +4 -0
  2. package/dist/assets/{Preview-Bna_gOtI.js → Preview-BMPSWCIX.js} +1 -1
  3. package/dist/assets/{ScreenRoutes-yWLA1GjU.js → ScreenRoutes-NGO2WXiu.js} +74 -74
  4. package/dist/assets/SignInScreen-C14Pl-Dx.js +1 -0
  5. package/dist/assets/{analytics-RySvwSeq.js → analytics-BLCKHvBT.js} +1 -1
  6. package/dist/assets/{analyticsHelper-CutGWXMe.js → analyticsHelper-C2dwO5y3.js} +1 -1
  7. package/dist/assets/{core-DU_H4wBa.js → core-Ce0Br8y9.js} +1 -1
  8. package/dist/assets/{dash.all.min-DkB9BhJt.js → dash.all.min-ngagFLon.js} +1 -1
  9. package/dist/assets/{empty-BHcQ4AW5.js → empty-DD57yx3R.js} +1 -1
  10. package/dist/assets/{empty-BoNNpNhU.js → empty-zNbLReOG.js} +1 -1
  11. package/dist/assets/epic-Bo27bVTH.js +2 -0
  12. package/dist/assets/{index-QWikaEQ5.js → index-B2SbPDDw.js} +1 -1
  13. package/dist/assets/{index-BX8mBeJ9.js → index-BBZpKjRy.js} +20529 -20550
  14. package/dist/assets/{index-DcGIrthm.css → index-Bd7ri422.css} +1 -1
  15. package/dist/assets/{index-Dh3hszAl.js → index-CA49T_6s.js} +1 -1
  16. package/dist/assets/{index-C8HQtPk3.js → index-CjziOX7M.js} +1 -1
  17. package/dist/assets/{index-BTmq_k8A.js → index-DpNtAyGC.js} +1 -1
  18. package/dist/assets/{index-BnunmyBx.js → index-XUoMlK8z.js} +1 -1
  19. package/dist/assets/{index-DdW2_ovL.js → index-lxtC3N9x.js} +2 -2
  20. package/dist/assets/{lexical-CzXtLOBY.js → lexical-CtYsbG1o.js} +1 -1
  21. package/dist/assets/{liveblocks-D5SUK1Wg.js → liveblocks-B4ECdvIx.js} +1 -1
  22. package/dist/assets/{lottie-Bxg9q373.js → lottie-BCz33Q7J.js} +1 -1
  23. package/dist/assets/mui-D6oelT7N.js +138 -0
  24. package/dist/assets/{react-BeMvcO72.js → react-B9X-zeA_.js} +2 -2
  25. package/dist/assets/{react-WvsHg02u.js → react-Bsh3KzYw.js} +1 -1
  26. package/dist/assets/{react-VukB1XQV.js → react-Buums4TY.js} +1 -1
  27. package/dist/assets/{react-B6FFWE-J.js → react-C5QlDSjK.js} +1 -1
  28. package/dist/assets/{react-BIUGlSLP.js → react-C9CB1lxN.js} +1 -1
  29. package/dist/assets/{react-BddzTUtS.js → react-CuowE827.js} +1 -1
  30. package/dist/assets/{react-CMaVLpQ0.js → react-DpFr5e2b.js} +1 -1
  31. package/dist/assets/{react-CFY8UOQ9.js → react-giVMsweN.js} +1 -1
  32. package/dist/assets/recharts-CrAH8YiM.js +65 -0
  33. package/dist/assets/{sentry-DN6W81ct.js → sentry-BGWzJSzn.js} +1 -1
  34. package/dist/assets/{url-Bc2CLjft.js → url-mZ9aNsPR.js} +1 -1
  35. package/dist/assets/{url-HpIHXuqg.js → url-nyJMD0Rt.js} +1 -1
  36. package/dist/assets/{utils-BjxCtmeD.js → utils-BC-pDTNj.js} +2 -2
  37. package/dist/assets/zeni-epic-state-BJss3pMn.js +14 -0
  38. package/dist/index.html +1 -1
  39. package/package.json +4 -41
  40. package/dist/assets/CreditAgentRoutes-C5PjThW5.js +0 -4
  41. package/dist/assets/SignInScreen-rT_33Na9.js +0 -1
  42. package/dist/assets/epic-B9G1VytO.js +0 -2
  43. package/dist/assets/mui-C_NFbU6N.js +0 -9
  44. package/dist/assets/recharts-DIkfVrTi.js +0 -65
  45. package/dist/assets/zeni-epic-state-Cc34ZGVn.js +0 -13
@@ -0,0 +1 @@
1
+ import{j as l}from"./liveblocks-B4ECdvIx.js";import{a as S,R as f,n as m}from"./sentry-BGWzJSzn.js";import{n as I,i as w,g,u as h,N as y,h as b}from"./core-Ce0Br8y9.js";import{z as d,G as C,a as v,l as E,P as T,e as u}from"./index-BBZpKjRy.js";import{S8 as U,S9 as x,Sa as L,Sb as z,bm as p}from"./zeni-epic-state-BJss3pMn.js";import{f as D}from"./analyticsHelper-C2dwO5y3.js";import{u as A}from"./mui-D6oelT7N.js";import"./recharts-CrAH8YiM.js";import"./analytics-BLCKHvBT.js";import"./lottie-BCz33Q7J.js";import"./lexical-CtYsbG1o.js";import"./utils-BC-pDTNj.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]="c82a10a5-a2d2-4fad-915c-63e2dee41eeb",e._sentryDebugIdIdentifier="sentry-dbid-c82a10a5-a2d2-4fad-915c-63e2dee41eeb")}catch{}})();function N(e){const o=e.tenantState.fetchState,i=e.tenantState.sendEmailMagicLinkFetchState;return{googleClientId:u.googleClientId,microsoftClientId:u.microsoftClientId,signInError:e.tenantState.error?.error,fetchState:o,sendMagicLinkStatus:i,showEmailLogin:!1}}function P(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:p(s),sourceUri:p(i.state!=null?i.state.origin:"")}))},getSignedInUser:()=>d.getSignedInUser(),onSignedInCallback:()=>{const n=i.state?.origin;n&&n!=="/"?r(n,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{e(L())}}}const k=b(N,P)(T),_=f.memo(k);function q(){const e=I(),o=w(),i=d.getSignedInUser(),r=g(a=>a.tenantState.fetchState),n=g(a=>a.tenantState.signInState),t=g(a=>a.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||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{q as default};