@zeniai/web-cockpit-ui 2.2.12-qa → 2.2.13-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 (41) hide show
  1. package/dist/assets/CreditAgentRoutes-BXjAvqJG.js +4 -0
  2. package/dist/assets/{Preview-2xF0EBmI.js → Preview-B4_Gyxyw.js} +1 -1
  3. package/dist/assets/{ScreenRoutes-D9rIq3XI.js → ScreenRoutes-DF1y7J5S.js} +47 -47
  4. package/dist/assets/SignInScreen-CFtRQTVD.js +1 -0
  5. package/dist/assets/{analytics-khsT3kbk.js → analytics-mj0rw1VE.js} +1 -1
  6. package/dist/assets/{analyticsHelper-DbhgouER.js → analyticsHelper-D23jeyIJ.js} +1 -1
  7. package/dist/assets/{core-BNX-31jO.js → core-BYmIfkAr.js} +1 -1
  8. package/dist/assets/{dash.all.min-Dvg22Naz.js → dash.all.min-C7vN744U.js} +1 -1
  9. package/dist/assets/{empty-DiqxiKdJ.js → empty-1WYDUqCs.js} +1 -1
  10. package/dist/assets/{empty-BWW5SQfM.js → empty-CyMIaqBW.js} +1 -1
  11. package/dist/assets/epic-BhqcdFTL.js +2 -0
  12. package/dist/assets/{index-DKllbmsA.js → index-B0G3iGk6.js} +1 -1
  13. package/dist/assets/{index-CV_Nr9t1.js → index-C1Ypgvdz.js} +1 -1
  14. package/dist/assets/{index-B8Vh3Xcf.js → index-C3I3j2Ku.js} +9553 -10467
  15. package/dist/assets/{index-C64B-o9X.js → index-DNkp3OmZ.js} +1 -1
  16. package/dist/assets/{index-AgCrIjsQ.js → index-DtTdlXpL.js} +1 -1
  17. package/dist/assets/{index-BDDQAMHQ.js → index-OIy0-f6U.js} +2 -2
  18. package/dist/assets/{index-BUrsQVqE.js → index-lr7J_XNm.js} +1 -1
  19. package/dist/assets/{lexical-CwzLHspT.js → lexical-DQ-Nqjl7.js} +1 -1
  20. package/dist/assets/{liveblocks-ffi4i0aE.js → liveblocks-BhxuLCQy.js} +1 -1
  21. package/dist/assets/{lottie-CZWUDGkA.js → lottie-UAbKS5Ou.js} +1 -1
  22. package/dist/assets/{mui-Uon7sggT.js → mui-D_JtuJWW.js} +1 -1
  23. package/dist/assets/{react-CoGSpm_W.js → react-Bi-nD7EV.js} +1 -1
  24. package/dist/assets/{react-D3NQfAaI.js → react-Br5e3kXu.js} +1 -1
  25. package/dist/assets/{react-B0IsqLOt.js → react-C6mTaHma.js} +1 -1
  26. package/dist/assets/{react-CLsap1dM.js → react-CH-zeEka.js} +1 -1
  27. package/dist/assets/{react-BzZTlAqQ.js → react-CMZ2vXlt.js} +1 -1
  28. package/dist/assets/{react-Ct9y7ON_.js → react-CT5n6PQj.js} +2 -2
  29. package/dist/assets/{react-CTHFIRWj.js → react-DA8f28lA.js} +1 -1
  30. package/dist/assets/{react-DGwzT705.js → react-DS_kCSTY.js} +1 -1
  31. package/dist/assets/{recharts-DcOm8P4e.js → recharts-ByduT-CA.js} +1 -1
  32. package/dist/assets/{sentry-DJDeypVF.js → sentry-BSkUpqOE.js} +1 -1
  33. package/dist/assets/{url-D51EEM8T.js → url-BDYsWyWj.js} +1 -1
  34. package/dist/assets/{url-CrNNHswT.js → url-CleyF36q.js} +1 -1
  35. package/dist/assets/{utils-CX-JbJoZ.js → utils-B9CZeSYg.js} +1 -1
  36. package/dist/assets/{zeni-epic-state-DWSF8x1l.js → zeni-epic-state-wh-wCh-r.js} +3 -3
  37. package/dist/index.html +1 -1
  38. package/package.json +2 -2
  39. package/dist/assets/CreditAgentRoutes-CoFBYYpR.js +0 -4
  40. package/dist/assets/SignInScreen-Dvoh2Rcp.js +0 -1
  41. package/dist/assets/epic-Fpi9SWMN.js +0 -2
@@ -0,0 +1 @@
1
+ import{j as d}from"./liveblocks-BhxuLCQy.js";import{a as f,R as S,n as m}from"./sentry-BSkUpqOE.js";import{n as I,i as w,g,u as h,N as b,h as y}from"./core-BYmIfkAr.js";import{z as l,E,G as C,a as v,B as U,Z as T,i as p}from"./index-C3I3j2Ku.js";import{QW as x,QX as L,QY as z,QZ as D,bm as u}from"./zeni-epic-state-wh-wCh-r.js";import{f as A}from"./analyticsHelper-D23jeyIJ.js";import"./recharts-ByduT-CA.js";import"./mui-D_JtuJWW.js";import"./analytics-mj0rw1VE.js";import"./lottie-UAbKS5Ou.js";import"./lexical-DQ-Nqjl7.js";import"./utils-B9CZeSYg.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]="16bd5d69-6ba3-4cb4-97f0-0e29fa29e449",e._sentryDebugIdIdentifier="sentry-dbid-16bd5d69-6ba3-4cb4-97f0-0e29fa29e449")}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 j(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:()=>l.getSignedInUser(),onSignedInCallback:()=>{const n=i.state?.origin;n&&n!=="/"?r(n,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{e(z())}}}const k=y(N,j)(T),P=S.memo(k);function K(){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=E().mode,c=h();if(f.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(l.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 d.jsx(b,{to:a,state:{...c.state,origin:""}})}else return d.jsx(P,{navigate:o,location:c})}export{K as default};