@zeniai/web-cockpit-ui 2.2.45-qa → 2.2.46-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-B2x4Vjsg.js → CreditAgentRoutes-87Pk_45A.js} +2 -2
  2. package/dist/assets/{Preview-jEqeJgiS.js → Preview-CGj3P1jP.js} +1 -1
  3. package/dist/assets/{ScreenRoutes-DePceo0X.js → ScreenRoutes-DhfColzV.js} +73 -73
  4. package/dist/assets/SignInScreen-CmjHFAC7.js +1 -0
  5. package/dist/assets/{analytics-Bs0jyeDf.js → analytics-nq0TtytR.js} +1 -1
  6. package/dist/assets/analyticsHelper-C29Ld-wE.js +1 -0
  7. package/dist/assets/{core-Vh79mQi-.js → core-m3VYRY_7.js} +1 -1
  8. package/dist/assets/{dash.all.min--m17HfJN.js → dash.all.min-DcWaGJ-z.js} +1 -1
  9. package/dist/assets/{empty-Cr6V-lcK.js → empty-zOcOn9Ee.js} +1 -1
  10. package/dist/assets/{empty-rKLdVfAD.js → empty-zPCOAbji.js} +1 -1
  11. package/dist/assets/epic-CNWRSDO7.js +2 -0
  12. package/dist/assets/{index-Dj6sDa0e.js → index-B3RVx9pM.js} +1 -1
  13. package/dist/assets/{index-L8muUP22.js → index-BFFJqvOL.js} +2 -2
  14. package/dist/assets/{index-Ba5J2L-e.js → index-C1qzuL2m.js} +7591 -7514
  15. package/dist/assets/{index-BHjhplCu.js → index-COuyuWJA.js} +1 -1
  16. package/dist/assets/{index-B_PNJgn0.js → index-CqMkr8zB.js} +1 -1
  17. package/dist/assets/{index-DWf0oYzk.js → index-QITcPMaM.js} +1 -1
  18. package/dist/assets/{index-BUH8JQ8X.js → index-ncxiPGEr.js} +1 -1
  19. package/dist/assets/{lexical-BDZnx4RH.js → lexical-CuMKiWYI.js} +1 -1
  20. package/dist/assets/{liveblocks-DtcDYudf.js → liveblocks-CchkA3bw.js} +1 -1
  21. package/dist/assets/{lottie-DXHGG-jg.js → lottie-B6aVMurr.js} +1 -1
  22. package/dist/assets/{mui-f6Dp32oc.js → mui-Cu_VyyT2.js} +1 -1
  23. package/dist/assets/{react-Cs3s8bnV.js → react-BqgbUvZF.js} +1 -1
  24. package/dist/assets/{react-BHtPgLZY.js → react-BvRkDqzo.js} +2 -2
  25. package/dist/assets/{react-C-Ju221b.js → react-CP15xXH7.js} +1 -1
  26. package/dist/assets/{react-BaGSe7PJ.js → react-CWh5qOHc.js} +1 -1
  27. package/dist/assets/{react-C-IOLXCW.js → react-OZzbuwIW.js} +1 -1
  28. package/dist/assets/{react-Bro02Anx.js → react-bcy-5r1Z.js} +1 -1
  29. package/dist/assets/{react-pro438Ui.js → react-qCp9XP99.js} +1 -1
  30. package/dist/assets/{react-B1zzD3Qi.js → react-vL5aznKY.js} +1 -1
  31. package/dist/assets/{recharts-C1pWIeFp.js → recharts-Wo60fZfy.js} +1 -1
  32. package/dist/assets/{sentry-BmC9_S_j.js → sentry-BsnydYBh.js} +1 -1
  33. package/dist/assets/{url-C8Vc2sb2.js → url-CENqTQ9f.js} +1 -1
  34. package/dist/assets/{url-DbEC-Cd4.js → url-DGpTS5yN.js} +1 -1
  35. package/dist/assets/{utils-BY4fTmQa.js → utils-Cx3_3V6b.js} +1 -1
  36. package/dist/assets/{zeni-epic-state-DDYX_3Yy.js → zeni-epic-state--x9oSMyd.js} +3 -3
  37. package/dist/index.html +1 -1
  38. package/package.json +4 -4
  39. package/dist/assets/SignInScreen-BiNRS40G.js +0 -1
  40. package/dist/assets/analyticsHelper-BcHO8zO-.js +0 -1
  41. package/dist/assets/epic-foRRqnAF.js +0 -2
@@ -0,0 +1 @@
1
+ import{j as l}from"./liveblocks-CchkA3bw.js";import{a as S,R as f,n as m}from"./sentry-BsnydYBh.js";import{n as I,i as w,g as d,u as h,N as y,h as b}from"./core-m3VYRY_7.js";import{z as g,E,G as C,d as v,y as U,Z as T,i as p}from"./index-C1qzuL2m.js";import{S1 as x,S2 as L,S3 as z,S4 as D,bm as u}from"./zeni-epic-state--x9oSMyd.js";import{f as A}from"./analyticsHelper-C29Ld-wE.js";import"./recharts-Wo60fZfy.js";import"./mui-Cu_VyyT2.js";import"./analytics-nq0TtytR.js";import"./lottie-B6aVMurr.js";import"./lexical-CuMKiWYI.js";import"./utils-Cx3_3V6b.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]="d5c9aeb9-50d7-4e78-97a7-4b4f8e7d2360",e._sentryDebugIdIdentifier="sentry-dbid-d5c9aeb9-50d7-4e78-97a7-4b4f8e7d2360")}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:()=>g.getSignedInUser(),onSignedInCallback:()=>{const n=i.state?.origin;n&&n!=="/"?r(n,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{e(z())}}}const P=b(N,k)(T),_=f.memo(P);function W(){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(S.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(g.saveSignedInUserWithSession(t,t.zeniSessionId),x(t.userId,t.zeniSessionId),e(L("Completed")),C.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 l.jsx(y,{to:a,state:{...c.state,origin:""}})}else return l.jsx(_,{navigate:o,location:c})}export{W as default};