@zeniai/web-cockpit-ui 2.2.42-dev → 2.2.43-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.
- package/dist/assets/CreditAgentRoutes-DR66Zzj5.js +4 -0
- package/dist/assets/{Preview-D4vnK8Bk.js → Preview-DeVQeX9_.js} +1 -1
- package/dist/assets/{ScreenRoutes-B09U6wx3.js → ScreenRoutes-DwL90pvl.js} +50 -50
- package/dist/assets/SignInScreen-DAbvdUtX.js +1 -0
- package/dist/assets/{analytics-qjKu72CP.js → analytics-BbSWdLwF.js} +15 -15
- package/dist/assets/{analyticsHelper-BAVrsgmu.js → analyticsHelper-Du7solye.js} +1 -1
- package/dist/assets/{core-kDzcwErP.js → core-DowUJ6ii.js} +1 -1
- package/dist/assets/{dash.all.min-B9W8x92U.js → dash.all.min-D2szQvnK.js} +1 -1
- package/dist/assets/{empty-CdLmUDrM.js → empty-BTQH_aG4.js} +1 -1
- package/dist/assets/{empty-Bnn0zo5b.js → empty-CSoqgwKD.js} +1 -1
- package/dist/assets/epic-DiPCEJmM.js +2 -0
- package/dist/assets/{index-DlGmElBC.js → index-B6nQ_X6b.js} +1 -1
- package/dist/assets/{index-bmJpztu9.js → index-BCahuPVy.js} +1 -1
- package/dist/assets/{index-DzHZDGWq.js → index-BGFnarjP.js} +2 -2
- package/dist/assets/{index-Cy6_UeJ6.js → index-CXvnFE8y.js} +1 -1
- package/dist/assets/{index-DP1J6R69.js → index-CYDLckHv.js} +1 -1
- package/dist/assets/{index-CZ3qpxWe.js → index-DPnzZzhn.js} +6726 -6591
- package/dist/assets/{index-fXjCjw6w.js → index-DZ8uxbMZ.js} +1 -1
- package/dist/assets/{lexical-BSGlB8Tt.js → lexical-DEwG4wxM.js} +1 -1
- package/dist/assets/{liveblocks-DySvlCFz.js → liveblocks-BAmk1toq.js} +1 -1
- package/dist/assets/{lottie-BeYaqM3r.js → lottie-Y0EfJJNO.js} +1 -1
- package/dist/assets/{mui-DaMtXmvv.js → mui-CvyOcWMt.js} +1 -1
- package/dist/assets/{react-QFDyk72I.js → react-BPgvIWVy.js} +1 -1
- package/dist/assets/{react-BsyKMuVi.js → react-CmGPGU9s.js} +1 -1
- package/dist/assets/{react-CBSFG41b.js → react-D9eWyH9x.js} +1 -1
- package/dist/assets/{react-Do2KbqWf.js → react-DFhrvGwA.js} +2 -2
- package/dist/assets/{react-D42xmk9Q.js → react-DL9YXZ9D.js} +1 -1
- package/dist/assets/{react-DC_dRO0A.js → react-G-UV1QPk.js} +1 -1
- package/dist/assets/{react-DY9zNzKf.js → react-jhpPSs_Q.js} +1 -1
- package/dist/assets/{react-sgShXZCu.js → react-qXUvFjG0.js} +1 -1
- package/dist/assets/{recharts-BEzCLGEF.js → recharts-C8R8UT28.js} +1 -1
- package/dist/assets/{sentry-CrFvlFGm.js → sentry-8jjS26dj.js} +1 -1
- package/dist/assets/{url-BwZimkA1.js → url-Ad8hC9fC.js} +1 -1
- package/dist/assets/{url-DtZG2OD7.js → url-KIU3jLA6.js} +1 -1
- package/dist/assets/{utils-ueB_tslp.js → utils-CtHaQF-I.js} +1 -1
- package/dist/assets/{zeni-epic-state-CusYXz9D.js → zeni-epic-state-B0nkU05E.js} +6 -6
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/CreditAgentRoutes-B6SzR75C.js +0 -4
- package/dist/assets/SignInScreen-4qW9MREO.js +0 -1
- package/dist/assets/epic-CiGXI5L-.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as d}from"./liveblocks-BAmk1toq.js";import{a as u,R as S,n as m}from"./sentry-8jjS26dj.js";import{n as I,i as w,g,u as h,N as y,h as b}from"./core-DowUJ6ii.js";import{a as l,E,G as C,b as v,y as U,Z as T,e as p}from"./index-DPnzZzhn.js";import{R_ as x,R$ as L,S0 as D,S1 as z,bm as f}from"./zeni-epic-state-B0nkU05E.js";import{f as A}from"./analyticsHelper-Du7solye.js";import"./recharts-C8R8UT28.js";import"./mui-CvyOcWMt.js";import"./analytics-BbSWdLwF.js";import"./lottie-Y0EfJJNO.js";import"./lexical-DEwG4wxM.js";import"./utils-CtHaQF-I.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]="2dbe0c82-e165-4a7f-8f08-d02f5597cecc",e._sentryDebugIdIdentifier="sentry-dbid-2dbe0c82-e165-4a7f-8f08-d02f5597cecc")}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 _(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:f(s),sourceUri:f(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 k=b(N,_)(T),P=S.memo(k);function Y(){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(u.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(y,{to:a,state:{...c.state,origin:""}})}else return d.jsx(P,{navigate:o,location:c})}export{Y as default};
|