@zeniai/web-cockpit-ui 2.2.93-dev → 2.2.94-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 (40) hide show
  1. package/dist/assets/{CreditAgentRoutes-BGVd5GPB.js → CreditAgentRoutes-BbhVRr9f.js} +3 -3
  2. package/dist/assets/{Preview-cNEYcTAv.js → Preview-K-Y5DWk-.js} +1 -1
  3. package/dist/assets/ScreenRoutes-DKltBCPI.js +180 -0
  4. package/dist/assets/SignInScreen-Gp_0mElE.js +1 -0
  5. package/dist/assets/{analytics-B1dCIfbG.js → analytics-DCoXshnJ.js} +1 -1
  6. package/dist/assets/{analyticsHelper-BodObjna.js → analyticsHelper-D-9Shjwz.js} +1 -1
  7. package/dist/assets/{core-CJXmKq3z.js → core-DnhnBhyp.js} +2 -2
  8. package/dist/assets/{dash.all.min-DeeP2hBR.js → dash.all.min-YRrcLkMR.js} +1 -1
  9. package/dist/assets/{empty-Di_czXZL.js → empty-BC_RYLzl.js} +1 -1
  10. package/dist/assets/{empty-1BtyD61L.js → empty-CUpLiAzv.js} +1 -1
  11. package/dist/assets/{epic-DPRGVmxb.js → epic-BhVJj-cj.js} +2 -2
  12. package/dist/assets/{index-BvjkVlpn.js → index-Bz0NjP-T.js} +1 -1
  13. package/dist/assets/{index-DSySAUGr.js → index-C13xzCr7.js} +1 -1
  14. package/dist/assets/{index-BZXXxPNm.js → index-Cw7zHphP.js} +1 -1
  15. package/dist/assets/{index-ByPD2JyW.js → index-DVyDFAZv.js} +1 -1
  16. package/dist/assets/{index-CVHlLGUU.js → index-DcEjMn8I.js} +8382 -8382
  17. package/dist/assets/{index-CNbMkx7A.js → index-DwOCefpz.js} +1 -1
  18. package/dist/assets/{index-B9TexRLI.js → index-VUzYM1uz.js} +2 -2
  19. package/dist/assets/{lexical-d5OK9cbs.js → lexical-BIyqeDrq.js} +1 -1
  20. package/dist/assets/{liveblocks-ClOSiKDj.js → liveblocks-BrgEZNkL.js} +1 -1
  21. package/dist/assets/{lottie-Dbpt4bjz.js → lottie-WInIAr4_.js} +1 -1
  22. package/dist/assets/{mui--y26C8hU.js → mui-BKnkgRRZ.js} +1 -1
  23. package/dist/assets/{react-CfTpInYo.js → react-6Klwh8fe.js} +1 -1
  24. package/dist/assets/{react-Crvoy9nE.js → react-Bs8okw-8.js} +1 -1
  25. package/dist/assets/{react-CiSBRHPA.js → react-Cie7gu9k.js} +2 -2
  26. package/dist/assets/{react-Din6kTXp.js → react-Ct4S8IxC.js} +1 -1
  27. package/dist/assets/{react-p0O-5V3K.js → react-HWRJ6Fts.js} +1 -1
  28. package/dist/assets/{react-B7tn6AT_.js → react-kjzfVeuh.js} +1 -1
  29. package/dist/assets/{react-DqTw0wsu.js → react-mciFhsYY.js} +1 -1
  30. package/dist/assets/{react-B7qLpM1i.js → react-thnkDdjm.js} +1 -1
  31. package/dist/assets/{recharts-CdrbLjVD.js → recharts-CL7FbPca.js} +1 -1
  32. package/dist/assets/{sentry-DZpLRbUi.js → sentry-BI8xeHz-.js} +1 -1
  33. package/dist/assets/{url-CO8lP8nu.js → url-BQMD2QRP.js} +1 -1
  34. package/dist/assets/{url-TWyqT94-.js → url-DUOVtQmP.js} +1 -1
  35. package/dist/assets/{utils-BFF-i_g9.js → utils-ClsRlmEt.js} +1 -1
  36. package/dist/assets/{zeni-epic-state-D8c9CjQ6.js → zeni-epic-state-C9U-5fIL.js} +3 -3
  37. package/dist/index.html +1 -1
  38. package/package.json +4 -4
  39. package/dist/assets/ScreenRoutes-GGguvCDu.js +0 -180
  40. package/dist/assets/SignInScreen-C8qKZQyg.js +0 -1
@@ -0,0 +1 @@
1
+ import{j as d}from"./liveblocks-BrgEZNkL.js";import{a as S,R as f,n as m}from"./sentry-BI8xeHz-.js";import{n as I,i as b,g,u as w,N as h,h as y}from"./core-DnhnBhyp.js";import{z as l,G as v,c as C,v as E,S as T,d as p}from"./index-DcEjMn8I.js";import{SH as U,SI as x,SJ as L,SK as z,bm as u}from"./zeni-epic-state-C9U-5fIL.js";import{f as D}from"./analyticsHelper-D-9Shjwz.js";import{u as A}from"./mui-BKnkgRRZ.js";import"./recharts-CL7FbPca.js";import"./analytics-DCoXshnJ.js";import"./lottie-WInIAr4_.js";import"./lexical-BIyqeDrq.js";import"./utils-ClsRlmEt.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]="20e97ebb-1e84-4bce-b686-424b858f4bfd",e._sentryDebugIdIdentifier="sentry-dbid-20e97ebb-1e84-4bce-b686-424b858f4bfd")}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:a}=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!=="/"?a(n,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{e(L())}}}const P=y(N,k)(T),_=f.memo(P);function W(){const e=I(),o=b(),i=l.getSignedInUser(),a=g(r=>r.tenantState.fetchState),n=g(r=>r.tenantState.signInState),t=g(r=>r.tenantState.loggedInUser),s=A().mode,c=w();if(S.useEffect(()=>{n==="In-Progress"&&a==="Completed"&&t?.zeniSessionId!=null&&(l.saveSignedInUserWithSession(t,t.zeniSessionId),U(t.userId,t.zeniSessionId),e(x("Completed")),v.updateAppLocaleID("en"),D(t,s),setTimeout(()=>{C.trackLogin(E.Event.loginSuccess,t.authProvider??"google")},2e3))},[]),n==="In-Progress"&&a==="Completed"&&t?.zeniSessionId!=null||i!=null){const r=c.state?.origin??"/";return d.jsx(h,{to:r,state:{...c.state,origin:""}})}else return d.jsx(_,{navigate:o,location:c})}export{W as default};