@zeniai/web-cockpit-ui 2.2.98-qa → 2.2.99-next

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 (42) hide show
  1. package/dist/assets/CreditAgentRoutes-DvHQKnb9.js +4 -0
  2. package/dist/assets/{Preview-D5KcYjyY.js → Preview-ggKf0LRt.js} +1 -1
  3. package/dist/assets/ScreenRoutes-DKbHKe47.js +180 -0
  4. package/dist/assets/SignInScreen-B5j0d1yh.js +1 -0
  5. package/dist/assets/{analytics-9LJeC2ui.js → analytics-BmbjpANm.js} +1 -1
  6. package/dist/assets/{analyticsHelper-Bn5zNxT6.js → analyticsHelper-Ci0x3sK0.js} +1 -1
  7. package/dist/assets/{core-BeN_MChz.js → core-D-Vlp23s.js} +2 -2
  8. package/dist/assets/{dash.all.min-Rnd031u8.js → dash.all.min-jDncxyQF.js} +1 -1
  9. package/dist/assets/{empty-B6Juc8c0.js → empty-2xsJlgGw.js} +1 -1
  10. package/dist/assets/{empty-B6fhfTji.js → empty-BN3k40A0.js} +1 -1
  11. package/dist/assets/epic-ByKamKWD.js +2 -0
  12. package/dist/assets/{index-D2Snqbrz.js → index-B3tQN2Ou.js} +2 -2
  13. package/dist/assets/{index-BVKpk70U.js → index-B7oLjpC_.js} +1 -1
  14. package/dist/assets/{index-oaCCkHQy.js → index-BCSV7VKj.js} +1 -1
  15. package/dist/assets/{index-DOUoD24w.js → index-Ck0BHUCw.js} +8834 -8873
  16. package/dist/assets/{index-BheXYrT5.js → index-YXOoz2xD.js} +1 -1
  17. package/dist/assets/{index-BAoPLD4I.js → index-d-PNdGSe.js} +1 -1
  18. package/dist/assets/{index-B6pbH0gy.js → index-sxWmjH1D.js} +1 -1
  19. package/dist/assets/{lexical-BqK5-7NV.js → lexical-B8BrfuLX.js} +1 -1
  20. package/dist/assets/{liveblocks-DJRlGFea.js → liveblocks-CuYKBdWD.js} +1 -1
  21. package/dist/assets/{lottie-42X37YWv.js → lottie-HbwInLor.js} +1 -1
  22. package/dist/assets/{mui-CGQrau-g.js → mui-CI_QcAux.js} +1 -1
  23. package/dist/assets/{react-DPG_U-wR.js → react-BljoWTky.js} +1 -1
  24. package/dist/assets/{react-DiqwxBH3.js → react-Cf7Q-TXQ.js} +1 -1
  25. package/dist/assets/{react-ojhVLh7w.js → react-DTJyscEN.js} +1 -1
  26. package/dist/assets/{react-KHSurLLg.js → react-D_X_n0u8.js} +1 -1
  27. package/dist/assets/{react-CIqV91Wz.js → react-Dt_P3Kcx.js} +2 -2
  28. package/dist/assets/{react-DlKpTtFX.js → react-DxQL2c71.js} +1 -1
  29. package/dist/assets/{react-p-OZ61XO.js → react-FNPJViWL.js} +1 -1
  30. package/dist/assets/{react-2C81n5o6.js → react-vuuKOhIx.js} +1 -1
  31. package/dist/assets/{recharts-DbjCNeeG.js → recharts-BS3zSciQ.js} +1 -1
  32. package/dist/assets/{sentry-Byc6pCkb.js → sentry-Bg0tGjUz.js} +1 -1
  33. package/dist/assets/{url-BK_ow_fu.js → url-BtWQCRh2.js} +1 -1
  34. package/dist/assets/{url-CrLeJSNF.js → url-DmTMZYMX.js} +1 -1
  35. package/dist/assets/{utils-DUjxgMjZ.js → utils-BnibThjb.js} +1 -1
  36. package/dist/assets/{zeni-epic-state-DVoFFDBc.js → zeni-epic-state-0nsBF6z1.js} +7 -7
  37. package/dist/index.html +1 -1
  38. package/package.json +4 -4
  39. package/dist/assets/CreditAgentRoutes-CFkzos0Q.js +0 -4
  40. package/dist/assets/ScreenRoutes-BBkA1OBX.js +0 -180
  41. package/dist/assets/SignInScreen-Cty5USqv.js +0 -1
  42. package/dist/assets/epic-C2_weDsD.js +0 -2
@@ -0,0 +1 @@
1
+ import{j as d}from"./liveblocks-CuYKBdWD.js";import{a as S,R as f,n as m}from"./sentry-Bg0tGjUz.js";import{n as I,i as w,g,u as h,N as y,h as b}from"./core-D-Vlp23s.js";import{z as l,G as C,b as v,l as E,R as T,c as p}from"./index-Ck0BHUCw.js";import{SH as U,SI as x,SJ as L,SK as z,bm as u}from"./zeni-epic-state-0nsBF6z1.js";import{f as D}from"./analyticsHelper-Ci0x3sK0.js";import{u as A}from"./mui-CI_QcAux.js";import"./recharts-BS3zSciQ.js";import"./analytics-BmbjpANm.js";import"./lottie-HbwInLor.js";import"./lexical-B8BrfuLX.js";import"./utils-BnibThjb.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]="5233438a-b2fe-40ee-9a91-744d83d84861",e._sentryDebugIdIdentifier="sentry-dbid-5233438a-b2fe-40ee-9a91-744d83d84861")}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: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(L())}}}const P=b(N,k)(T),_=f.memo(P);function W(){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=A().mode,c=h();if(S.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(l.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 d.jsx(y,{to:a,state:{...c.state,origin:""}})}else return d.jsx(_,{navigate:o,location:c})}export{W as default};