@zeniai/web-cockpit-ui 2.0.59-prod → 2.0.60-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-OU2cQ56o.js +4 -0
  2. package/dist/assets/{Preview-C6mT5jaE.js → Preview-BgVRE_qL.js} +1 -1
  3. package/dist/assets/ScreenRoutes-BNe9KhJx.js +180 -0
  4. package/dist/assets/{SignInScreen-DUavWghs.js → SignInScreen-c67kIMz5.js} +1 -1
  5. package/dist/assets/{analytics-CLGFmbC7.js → analytics-bLGoMt_1.js} +1 -1
  6. package/dist/assets/{analyticsHelper-Bxv4tPXg.js → analyticsHelper-DJTBo0IK.js} +1 -1
  7. package/dist/assets/{core-g59jrYGA.js → core-jCXGTQvA.js} +1 -1
  8. package/dist/assets/{dash.all.min-Bs2WiVAz.js → dash.all.min-o4-Vj8ps.js} +1 -1
  9. package/dist/assets/{empty-pyS4nYN0.js → empty-D46MeKDT.js} +1 -1
  10. package/dist/assets/{empty-C5UXg3Ri.js → empty-tmoYB8lV.js} +1 -1
  11. package/dist/assets/epic-vfFVaZI2.js +2 -0
  12. package/dist/assets/{index-BD9H0d0Z.js → index-BXyZw3lo.js} +2 -2
  13. package/dist/assets/{index-f_4Q0NwM.js → index-C3pBETIi.js} +1 -1
  14. package/dist/assets/{index-BF1lV6dp.js → index-CRFInH1K.js} +1 -1
  15. package/dist/assets/{index-Dch1M4F3.js → index-D6plUv8O.js} +1 -1
  16. package/dist/assets/{index-BKieHQdV.js → index-DStLthID.js} +10938 -10740
  17. package/dist/assets/{index-ksZMyOpK.js → index-D_tiuzA0.js} +1 -1
  18. package/dist/assets/{index-LKQr6m2h.js → index-DgTg_FC9.js} +1 -1
  19. package/dist/assets/index-xQ8260uf.css +1 -0
  20. package/dist/assets/{lexical-BJyEP1q7.js → lexical-LPziZn5A.js} +1 -1
  21. package/dist/assets/{liveblocks-C5uNiDnh.js → liveblocks-DZkCH2xN.js} +1 -1
  22. package/dist/assets/{lottie-2yQBAjvV.js → lottie-DUyJu0pd.js} +1 -1
  23. package/dist/assets/{mui-_VHTzYDq.js → mui-Dplz67jq.js} +1 -1
  24. package/dist/assets/{react-C8BQxtlx.js → react-2RNUDFZd.js} +1 -1
  25. package/dist/assets/{react-BSPJZC9X.js → react-BCeconuO.js} +2 -2
  26. package/dist/assets/{react-xfUcjn8b.js → react-BODaTSjw.js} +1 -1
  27. package/dist/assets/{react-r7IhPoht.js → react-CtfwhM0x.js} +1 -1
  28. package/dist/assets/{react-DwMuwDay.js → react-DVFB2SOm.js} +1 -1
  29. package/dist/assets/{react-CZkFZ9xW.js → react-DcXKvtmb.js} +1 -1
  30. package/dist/assets/{react-DP6XfhoN.js → react-DsYNUiXJ.js} +1 -1
  31. package/dist/assets/{react-By5lr7GW.js → react-I67C1zjR.js} +1 -1
  32. package/dist/assets/{recharts-B3vkURMX.js → recharts-DADINQF-.js} +1 -1
  33. package/dist/assets/{sentry-C87rEsrj.js → sentry-DPjqAmgS.js} +1 -1
  34. package/dist/assets/{url-DGCfH36X.js → url-C3rUOUId.js} +1 -1
  35. package/dist/assets/{url-BOxw3lqv.js → url-DcdgW2qn.js} +1 -1
  36. package/dist/assets/{utils-Ba44rjyP.js → utils-BSshncBl.js} +1 -1
  37. package/dist/assets/{zeni-epic-state-CgB50PRg.js → zeni-epic-state-C-CH5wAG.js} +6 -6
  38. package/dist/index.html +1 -1
  39. package/package.json +10 -6
  40. package/dist/assets/CreditAgentRoutes-Dvl8fXQw.js +0 -4
  41. package/dist/assets/ScreenRoutes-f_JPAcl2.js +0 -180
  42. package/dist/assets/epic-D3uWPouD.js +0 -2
  43. package/dist/assets/index-y98xvd7i.css +0 -1
@@ -1 +1 @@
1
- import{j as d}from"./liveblocks-C5uNiDnh.js";import{a as f,b as S,n as I}from"./sentry-C87rEsrj.js";import{n as m,i as w,g,u as h,N as b,h as y}from"./core-g59jrYGA.js";import{z as l,h as C,D as E,c as v,p as U,_ as T,e as p}from"./index-BKieHQdV.js";import{HZ as x,H_ as D,H$ as L,I0 as z,bk as u}from"./zeni-epic-state-CgB50PRg.js";import{f as _}from"./analyticsHelper-Bxv4tPXg.js";import"./recharts-B3vkURMX.js";import"./mui-_VHTzYDq.js";import"./analytics-CLGFmbC7.js";import"./lottie-2yQBAjvV.js";import"./lexical-BJyEP1q7.js";import"./utils-Ba44rjyP.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]="4314fb05-c11a-4e59-a3ab-87b036d0769f",e._sentryDebugIdIdentifier="sentry-dbid-4314fb05-c11a-4e59-a3ab-87b036d0769f")}catch{}})();function k(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 A(e,o){const{location:i,navigate:r}=o;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,t)=>{I({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 N=y(k,A)(T),P=S.memo(N);function q(){const e=m(),o=w(),i=l.getSignedInUser(),r=g(a=>a.tenantState.fetchState),n=g(a=>a.tenantState.signInState),t=g(a=>a.tenantState.loggedInUser),s=C().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(D("Completed")),E.updateAppLocaleID("en"),_(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{q as default};
1
+ import{j as d}from"./liveblocks-DZkCH2xN.js";import{a as f,b as S,n as I}from"./sentry-DPjqAmgS.js";import{n as m,i as w,g,u as h,N as b,h as y}from"./core-jCXGTQvA.js";import{z as l,m as C,D as v,b as E,p as U,W as T,d as p}from"./index-DStLthID.js";import{I7 as x,I8 as z,I9 as D,Ia as L,bk as u}from"./zeni-epic-state-C-CH5wAG.js";import{f as k}from"./analyticsHelper-DJTBo0IK.js";import"./recharts-DADINQF-.js";import"./mui-Dplz67jq.js";import"./analytics-bLGoMt_1.js";import"./lottie-DUyJu0pd.js";import"./lexical-LPziZn5A.js";import"./utils-BSshncBl.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]="4ac4aee4-0c33-45f6-a5b7-31f19d2881a4",e._sentryDebugIdIdentifier="sentry-dbid-4ac4aee4-0c33-45f6-a5b7-31f19d2881a4")}catch{}})();function A(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 N(e,o){const{location:i,navigate:r}=o;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,t)=>{I({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(L({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(D())}}}const P=y(A,N)(T),_=S.memo(P);function G(){const e=m(),o=w(),i=l.getSignedInUser(),r=g(a=>a.tenantState.fetchState),n=g(a=>a.tenantState.signInState),t=g(a=>a.tenantState.loggedInUser),s=C().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(z("Completed")),v.updateAppLocaleID("en"),k(t,s),setTimeout(()=>{E.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(_,{navigate:o,location:c})}export{G as default};