@zeniai/web-cockpit-ui 2.2.89-qa → 2.2.90-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 (43) hide show
  1. package/dist/assets/{CreditAgentRoutes-DG7EDPk4.js → CreditAgentRoutes-BNELCMxP.js} +1 -1
  2. package/dist/assets/{Preview-Yfv5DOCT.js → Preview-CenqZdeB.js} +1 -1
  3. package/dist/assets/ScreenRoutes-CuMeWYcp.js +181 -0
  4. package/dist/assets/{SignInScreen-Df6mqZGJ.js → SignInScreen-CiATrHrZ.js} +1 -1
  5. package/dist/assets/{analytics-bXqdNTn2.js → analytics-BM-RmzOi.js} +1 -1
  6. package/dist/assets/{analyticsHelper-52dic5ML.js → analyticsHelper-b5Mpj7FL.js} +1 -1
  7. package/dist/assets/{core-Dw4XGBPB.js → core-CexvL2PC.js} +1 -1
  8. package/dist/assets/{dash.all.min-D-zdUW2E.js → dash.all.min-BzZM8EaW.js} +1 -1
  9. package/dist/assets/{empty-yNVrZTRK.js → empty-6W1STqf_.js} +1 -1
  10. package/dist/assets/{index-BPhX3I3T.js → empty-CQDhkz87.js} +1 -1
  11. package/dist/assets/{epic-oIfPpGXw.js → epic-CD8fgod_.js} +1 -1
  12. package/dist/assets/index-4WpCaaqM.js +1 -0
  13. package/dist/assets/index-BwfpKjLz.js +1 -0
  14. package/dist/assets/{index-BUIjXp6X.js → index-CKfCmoDj.js} +6 -6
  15. package/dist/assets/{index-D4IHH0eQ.js → index-CM3mgf6L.js} +1 -1
  16. package/dist/assets/{index-BTtU_NJK.js → index-D9PDd7Df.js} +2 -2
  17. package/dist/assets/{index-BpidRIB2.js → index-Duz8EgAD.js} +1 -1
  18. package/dist/assets/index-Dy5oIRH2.js +1 -0
  19. package/dist/assets/{lexical-W9nYyM7D.js → lexical-BQwfj5n8.js} +1 -1
  20. package/dist/assets/{liveblocks-B0pKfNHu.js → liveblocks-CFWr3-Es.js} +1 -1
  21. package/dist/assets/{lottie-DZC48ARZ.js → lottie-Dp25CyQz.js} +1 -1
  22. package/dist/assets/{mui-NT1Z-YH_.js → mui-CG69zo7E.js} +1 -1
  23. package/dist/assets/{react-DXJIaZBJ.js → react-B4slDvxm.js} +1 -1
  24. package/dist/assets/{react-Cuyj1sIi.js → react-Bgs8sH-p.js} +1 -1
  25. package/dist/assets/{react-nmuREkNm.js → react-BpK3d5oW.js} +1 -1
  26. package/dist/assets/{react-DfM7SXWs.js → react-Bw8saxM2.js} +1 -1
  27. package/dist/assets/{react-IH3zcr1V.js → react-CG3-CpwO.js} +2 -2
  28. package/dist/assets/{react-Dd9hM3Pf.js → react-DPejdeT6.js} +1 -1
  29. package/dist/assets/{react-pwRww8jq.js → react-Dl3o_s-D.js} +1 -1
  30. package/dist/assets/{react-CRZz3PYt.js → react-SRFutXZN.js} +1 -1
  31. package/dist/assets/{recharts-BUo8apMx.js → recharts-DA1HvZve.js} +1 -1
  32. package/dist/assets/{sentry-CmG9zRbP.js → sentry-BJlx_ZxE.js} +1 -1
  33. package/dist/assets/{url-CQcSUTdD.js → url-CAXsvflG.js} +1 -1
  34. package/dist/assets/{url-D2m0Lejh.js → url-D6DSaIKB.js} +1 -1
  35. package/dist/assets/utils-CRsfb5WZ.js +36 -0
  36. package/dist/assets/{zeni-epic-state-BZg29cPy.js → zeni-epic-state-PthqloQx.js} +3 -3
  37. package/dist/index.html +1 -1
  38. package/package.json +1 -1
  39. package/dist/assets/ScreenRoutes-V6B5cDxu.js +0 -180
  40. package/dist/assets/empty-GbrAbMgu.js +0 -1
  41. package/dist/assets/index-BEgQ1tzz.js +0 -1
  42. package/dist/assets/index-Dr00l2VG.js +0 -1
  43. package/dist/assets/utils-Dcg_cDsa.js +0 -36
@@ -1 +1 @@
1
- import{j as d}from"./liveblocks-B0pKfNHu.js";import{a as S,R as f,n as m}from"./sentry-CmG9zRbP.js";import{n as I,i as w,g,u as h,N as b,h as y}from"./core-Dw4XGBPB.js";import{z as l,G as C,c as v,q as E,R as T,d as p}from"./index-BUIjXp6X.js";import{SH as U,SI as x,SJ as L,SK as z,bm as u}from"./zeni-epic-state-BZg29cPy.js";import{f as D}from"./analyticsHelper-52dic5ML.js";import{u as A}from"./mui-NT1Z-YH_.js";import"./recharts-BUo8apMx.js";import"./analytics-bXqdNTn2.js";import"./lottie-DZC48ARZ.js";import"./lexical-W9nYyM7D.js";import"./utils-Dcg_cDsa.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]="367a2499-1b44-46de-b684-34962c0a186c",e._sentryDebugIdIdentifier="sentry-dbid-367a2499-1b44-46de-b684-34962c0a186c")}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=y(N,k)(T),_=f.memo(P);function H(){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(b,{to:a,state:{...c.state,origin:""}})}else return d.jsx(_,{navigate:o,location:c})}export{H as default};
1
+ import{j as d}from"./liveblocks-CFWr3-Es.js";import{a as S,R as f,n as m}from"./sentry-BJlx_ZxE.js";import{n as I,i as w,g,u as h,N as b,h as y}from"./core-CexvL2PC.js";import{z as l,G as C,c as v,q as E,R as T,d as p}from"./index-CKfCmoDj.js";import{SH as U,SI as x,SJ as L,SK as z,bm as u}from"./zeni-epic-state-PthqloQx.js";import{f as D}from"./analyticsHelper-b5Mpj7FL.js";import{u as A}from"./mui-CG69zo7E.js";import"./recharts-DA1HvZve.js";import"./analytics-BM-RmzOi.js";import"./lottie-Dp25CyQz.js";import"./lexical-BQwfj5n8.js";import"./utils-CRsfb5WZ.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]="367a2499-1b44-46de-b684-34962c0a186c",e._sentryDebugIdIdentifier="sentry-dbid-367a2499-1b44-46de-b684-34962c0a186c")}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=y(N,k)(T),_=f.memo(P);function H(){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(b,{to:a,state:{...c.state,origin:""}})}else return d.jsx(_,{navigate:o,location:c})}export{H as default};