@zeniai/web-cockpit-ui 2.3.16-qa → 2.3.17-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.
- package/dist/assets/CreditAgentRoutes-C3KSn0qF.js +4 -0
- package/dist/assets/{Preview-Bkbs6uYh.js → Preview-Bh0AETby.js} +1 -1
- package/dist/assets/{ScreenRoutes-BbO-XSFP.js → ScreenRoutes-BD_9T844.js} +55 -55
- package/dist/assets/SignInScreen-3dFTyo0S.js +1 -0
- package/dist/assets/{analytics-D5bqlFfJ.js → analytics-Dxa9-SvV.js} +1 -1
- package/dist/assets/{analyticsHelper-DhPl8hLQ.js → analyticsHelper-CEO3FRLE.js} +1 -1
- package/dist/assets/{core-DS5F392V.js → core-B83eUXZg.js} +1 -1
- package/dist/assets/{dash.all.min--RhDcWC5.js → dash.all.min-DfVVsk6f.js} +1 -1
- package/dist/assets/{empty-CPx5qWj2.js → empty-BcNm9HyV.js} +1 -1
- package/dist/assets/{empty-CCHhLPu2.js → empty-C5Woq1Da.js} +1 -1
- package/dist/assets/epic-BqSZrb5f.js +2 -0
- package/dist/assets/{index-BDLwd3k3.js → index-BvlRA3sc.js} +1 -1
- package/dist/assets/{index-Cbi_ff8m.js → index-CFDwKJZV.js} +1 -1
- package/dist/assets/{index-De5CVxzS.js → index-ClbXydMP.js} +1 -1
- package/dist/assets/{index-JVqvM_WP.js → index-Di_HCLlf.js} +2 -2
- package/dist/assets/{index-Cyrh_2io.js → index-Dj5tmvX1.js} +13094 -13308
- package/dist/assets/{index-Ciy7XYo5.js → index-Dr7wk9vq.js} +1 -1
- package/dist/assets/{index-D97kzrDg.js → index-iF2cM_a7.js} +1 -1
- package/dist/assets/{lexical-COpuOLUN.js → lexical-D2527jek.js} +1 -1
- package/dist/assets/{liveblocks-BFbgxvtF.js → liveblocks-BcpL_eIf.js} +1 -1
- package/dist/assets/{lottie-49rRD_Kd.js → lottie-BP5NslbC.js} +1 -1
- package/dist/assets/{mui-DEb8Ru8L.js → mui-RtA2F6xO.js} +1 -1
- package/dist/assets/{react-CWFZqbLW.js → react-BE5ihux_.js} +1 -1
- package/dist/assets/{react-C0fatgeh.js → react-C3vKdbbP.js} +1 -1
- package/dist/assets/{react-C7LqSwFI.js → react-CKxxabGI.js} +1 -1
- package/dist/assets/{react-D_Comtdn.js → react-CURcyy-9.js} +2 -2
- package/dist/assets/{react-ClW4q5aK.js → react-CXJPZUX2.js} +1 -1
- package/dist/assets/{react-9EW5hoRZ.js → react-DW1p1O70.js} +1 -1
- package/dist/assets/{react-By6iUI3O.js → react-Ds753vZG.js} +1 -1
- package/dist/assets/{react-Dor8e6Bc.js → react-J88c0JIV.js} +1 -1
- package/dist/assets/{recharts-BPHwjBce.js → recharts-Dw9UyYxv.js} +1 -1
- package/dist/assets/{sentry-wGivgyVj.js → sentry-CXD2tUYO.js} +1 -1
- package/dist/assets/{url-eiWyR_8O.js → url-BuipZa3k.js} +1 -1
- package/dist/assets/{url-C_k7oGQJ.js → url-DqI0Vlwu.js} +1 -1
- package/dist/assets/{utils-DUtKQS7F.js → utils-DGW3GFUd.js} +1 -1
- package/dist/assets/zeni-epic-state-BPERiJiS.js +14 -0
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/CreditAgentRoutes-DyiN45qj.js +0 -4
- package/dist/assets/SignInScreen-CwnvObLT.js +0 -1
- package/dist/assets/epic-D0XRrfFW.js +0 -2
- package/dist/assets/zeni-epic-state-3xBk9ZA7.js +0 -14
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as d}from"./liveblocks-BcpL_eIf.js";import{a as S,R as f,n as m}from"./sentry-CXD2tUYO.js";import{n as I,i as w,g,u as h,N as y,h as b}from"./core-B83eUXZg.js";import{z as l,G as C,b as v,p as E,S as T,c as p}from"./index-Dj5tmvX1.js";import{SX as U,SY as x,SZ as L,S_ as z,bm as u}from"./zeni-epic-state-BPERiJiS.js";import{f as D}from"./analyticsHelper-CEO3FRLE.js";import{u as A}from"./mui-RtA2F6xO.js";import"./recharts-Dw9UyYxv.js";import"./analytics-Dxa9-SvV.js";import"./lottie-BP5NslbC.js";import"./lexical-D2527jek.js";import"./utils-DGW3GFUd.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]="477d9961-00e7-47ce-b6d3-2a1ce7942588",e._sentryDebugIdIdentifier="sentry-dbid-477d9961-00e7-47ce-b6d3-2a1ce7942588")}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:a}=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!=="/"?a(n,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{e(L())}}}const k=b(N,_)(T),P=f.memo(k);function X(){const e=I(),o=w(),i=l.getSignedInUser(),a=g(r=>r.tenantState.fetchState),n=g(r=>r.tenantState.signInState),t=g(r=>r.tenantState.loggedInUser),s=A().mode,c=h();if(S.useEffect(()=>{n==="In-Progress"&&a==="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"&&a==="Completed"&&t?.zeniSessionId!=null||i!=null){const r=c.state?.origin??"/";return d.jsx(y,{to:r,state:{...c.state,origin:""}})}else return d.jsx(P,{navigate:o,location:c})}export{X as default};
|