@zeniai/web-cockpit-ui 2.1.2-qa → 2.1.3-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 (57) hide show
  1. package/dist/assets/CreditAgentRoutes-X8YGoq3l.js +4 -0
  2. package/dist/assets/{Preview-DGsRz9vl.js → Preview-C0DUMjBw.js} +1 -1
  3. package/dist/assets/ScreenRoutes-B7yonM58.js +180 -0
  4. package/dist/assets/{SignInScreen-10WMu_a8.js → SignInScreen-CnHJFb_G.js} +1 -1
  5. package/dist/assets/analytics-DBEOT1uh.js +68 -0
  6. package/dist/assets/{analyticsHelper-Du459dXF.js → analyticsHelper-BcEo4XoZ.js} +1 -1
  7. package/dist/assets/core-BDnbz7XA.js +12 -0
  8. package/dist/assets/dash.all.min-B6HUayEr.js +21 -0
  9. package/dist/assets/{empty-DBNoHo0Y.js → empty-3V15_h5V.js} +1 -1
  10. package/dist/assets/{empty-Cn5PjdJX.js → empty-DCSqQuld.js} +1 -1
  11. package/dist/assets/epic-Dbvp9Je1.js +2 -0
  12. package/dist/assets/{hls-CK0vqtka.js → hls-DifHSkbp.js} +7 -7
  13. package/dist/assets/index-4J1JKu0A.js +1 -0
  14. package/dist/assets/{index-Cvp4EsRf.js → index-B66XDuSQ.js} +1 -1
  15. package/dist/assets/{index-B3a6AUT3.js → index-C60tr5Kv.js} +2 -2
  16. package/dist/assets/{index-BWk7vWzA.js → index-CBnahEC5.js} +2 -2
  17. package/dist/assets/{index-sBWCS8yg.js → index-CnYfhbvh.js} +1 -1
  18. package/dist/assets/index-DLr58PMs.js +1 -0
  19. package/dist/assets/index-UA2r-eW3.css +1 -0
  20. package/dist/assets/{index-tZ7eEMqV.js → index-xWaM5WB3.js} +11587 -13317
  21. package/dist/assets/{lexical-JR9_ccNe.js → lexical-ZA3OVBQu.js} +1 -1
  22. package/dist/assets/liveblocks-BnG-ujWH.js +54 -0
  23. package/dist/assets/lottie-dWYapnkC.js +2 -0
  24. package/dist/assets/{mui-DDVBUSyd.js → mui-C_qhjZKQ.js} +1 -1
  25. package/dist/assets/react-BSCwnbKD.js +19 -0
  26. package/dist/assets/{react-D2IRxjkG.js → react-BV-CAqfT.js} +1 -1
  27. package/dist/assets/{react-D_xsPZOS.js → react-C92215Bv.js} +1 -1
  28. package/dist/assets/{react-CbaD8VzZ.js → react-CSmaTSI1.js} +1 -1
  29. package/dist/assets/{react-IwWKe-I4.js → react-CU5v8vQI.js} +1 -1
  30. package/dist/assets/{react-BVbD9Tdy.js → react-CtoEvTeT.js} +2 -2
  31. package/dist/assets/{react-D3b3Kzei.js → react-DFQ6Kv4A.js} +2 -2
  32. package/dist/assets/react-DhxE14Uu.js +22 -0
  33. package/dist/assets/recharts-BuyuJnpA.js +65 -0
  34. package/dist/assets/{sentry-BcmtrMV2.js → sentry-jEGYUR0Z.js} +13 -13
  35. package/dist/assets/url-BH8IDjci.js +6 -0
  36. package/dist/assets/{url-TVlSXUol.js → url-m8Ug7fTX.js} +1 -1
  37. package/dist/assets/utils-D5PmZCRk.js +36 -0
  38. package/dist/assets/zeni-epic-state-D2On59Tu.js +13 -0
  39. package/dist/index.html +1 -1
  40. package/package.json +4 -4
  41. package/dist/assets/CreditAgentRoutes-Df4tDi0B.js +0 -4
  42. package/dist/assets/ScreenRoutes-CoOtauw3.js +0 -180
  43. package/dist/assets/analytics-bZcsaeQV.js +0 -68
  44. package/dist/assets/core-DmzDoB5-.js +0 -12
  45. package/dist/assets/dash.all.min-DkNOma04.js +0 -21
  46. package/dist/assets/epic-DHYNuXgK.js +0 -2
  47. package/dist/assets/index-C8ouCD8q.css +0 -1
  48. package/dist/assets/index-DY-YvenN.js +0 -1
  49. package/dist/assets/index-nJGItZMK.js +0 -1
  50. package/dist/assets/liveblocks-LrLVH34i.js +0 -54
  51. package/dist/assets/lottie-EwWwjOsJ.js +0 -2
  52. package/dist/assets/react-Bjtyo6T3.js +0 -19
  53. package/dist/assets/react-CkPFXw4I.js +0 -22
  54. package/dist/assets/recharts-D9yOWgnj.js +0 -65
  55. package/dist/assets/url-DB5xigpc.js +0 -6
  56. package/dist/assets/utils-DU4HiiWD.js +0 -36
  57. package/dist/assets/zeni-epic-state-DdrtzTZ-.js +0 -13
@@ -1 +1 @@
1
- import{j as d}from"./liveblocks-LrLVH34i.js";import{a as S,b as f,n as m}from"./sentry-BcmtrMV2.js";import{n as I,i as w,g,u as h,N as y,h as b}from"./core-DmzDoB5-.js";import{z as l,y as v,e as C,b as E,v as U,V as T,d as p}from"./index-tZ7eEMqV.js";import{Kk as x,Kl as z,Km as L,Kn as D,bm as u}from"./zeni-epic-state-DdrtzTZ-.js";import{f as k}from"./analyticsHelper-Du459dXF.js";import"./recharts-D9yOWgnj.js";import"./mui-DDVBUSyd.js";import"./analytics-bZcsaeQV.js";import"./lottie-EwWwjOsJ.js";import"./lexical-JR9_ccNe.js";import"./utils-DU4HiiWD.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]="07e83296-6853-4370-a971-ded553593325",e._sentryDebugIdIdentifier="sentry-dbid-07e83296-6853-4370-a971-ded553593325")}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)=>{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(L())}}}const j=b(A,N)(T),K=f.memo(j);function q(){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=v().mode,c=h();if(S.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(l.saveSignedInUserWithSession(t,t.zeniSessionId),x(t.userId,t.zeniSessionId),e(z("Completed")),C.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(y,{to:a,state:{...c.state,origin:""}})}else return d.jsx(K,{navigate:o,location:c})}export{q as default};
1
+ import{j as d}from"./liveblocks-BnG-ujWH.js";import{a as S,b as f,n as m}from"./sentry-jEGYUR0Z.js";import{n as I,i as w,g,u as h,N as b,h as y}from"./core-BDnbz7XA.js";import{z as l,y as C,d as v,b as E,r as U,W as z,c as p}from"./index-xWaM5WB3.js";import{K7 as T,K8 as x,K9 as L,Ka as D,bm as u}from"./zeni-epic-state-D2On59Tu.js";import{f as A}from"./analyticsHelper-BcEo4XoZ.js";import"./recharts-BuyuJnpA.js";import"./mui-C_qhjZKQ.js";import"./analytics-DBEOT1uh.js";import"./lottie-dWYapnkC.js";import"./lexical-ZA3OVBQu.js";import"./utils-D5PmZCRk.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]="d8c24254-7e67-4a61-bb34-210bc827c1a4",e._sentryDebugIdIdentifier="sentry-dbid-d8c24254-7e67-4a61-bb34-210bc827c1a4")}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(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(L())}}}const K=y(N,k)(z),P=f.memo(K);function G(){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=C().mode,c=h();if(S.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(l.saveSignedInUserWithSession(t,t.zeniSessionId),T(t.userId,t.zeniSessionId),e(x("Completed")),v.updateAppLocaleID("en"),A(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(P,{navigate:o,location:c})}export{G as default};