@zeniai/web-cockpit-ui 2.1.55-qa → 2.1.56-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-CqrebmXZ.js → CreditAgentRoutes-DuEVpb1U.js} +1 -1
- package/dist/assets/{Preview-DXuu7iE9.js → Preview-B1ugitP7.js} +1 -1
- package/dist/assets/{ScreenRoutes-DKuBCtrS.js → ScreenRoutes-D6sueRBt.js} +34 -34
- package/dist/assets/SignInScreen-Ca9pHu_w.js +1 -0
- package/dist/assets/{analytics-CKEOTGkv.js → analytics-uLAFcteM.js} +1 -1
- package/dist/assets/{analyticsHelper-CFK-xOnE.js → analyticsHelper-DvCthlwA.js} +1 -1
- package/dist/assets/{core-BJMiZnx7.js → core-DK51E0at.js} +1 -1
- package/dist/assets/{dash.all.min-Vrl8Bszy.js → dash.all.min-VAj8tZXB.js} +1 -1
- package/dist/assets/{empty-BMBYCyDC.js → empty-BLpjF2tK.js} +1 -1
- package/dist/assets/{empty-D05YkD5d.js → empty-D-T99hZT.js} +1 -1
- package/dist/assets/{epic-BNAH8E9M.js → epic-4-SpeRW1.js} +1 -1
- package/dist/assets/{index-Bv3nwLg1.js → index-2NmkKNMG.js} +2593 -2587
- package/dist/assets/{index-NP4KCzkC.js → index-6d7gQyou.js} +1 -1
- package/dist/assets/{index-XvJvzGKe.js → index-BUAQR738.js} +2 -2
- package/dist/assets/{index-DMeB7jMD.js → index-CC_WgcYb.js} +1 -1
- package/dist/assets/{index-Jb9ukY5r.js → index-CKq1q2Eq.js} +1 -1
- package/dist/assets/{index-CT8j4Oma.js → index-QdbnGzk8.js} +1 -1
- package/dist/assets/{index-W1qBxMt4.js → index-Zbyg_GVA.js} +1 -1
- package/dist/assets/{lexical-BIlXEmyV.js → lexical-BOuc2rhs.js} +1 -1
- package/dist/assets/{liveblocks-DffGU-Ic.js → liveblocks-KSB2RHcM.js} +1 -1
- package/dist/assets/{lottie-C6-vMi-N.js → lottie-oKaQXqx7.js} +1 -1
- package/dist/assets/{mui-Bjbx9-hw.js → mui-C05CEOST.js} +1 -1
- package/dist/assets/{react-Dy4WPbDc.js → react-77iQcA7U.js} +1 -1
- package/dist/assets/{react-C_wBJY74.js → react-BIUTFQ_2.js} +1 -1
- package/dist/assets/{react-DqLAbkTz.js → react-BS0MCR6T.js} +1 -1
- package/dist/assets/{react-CgTa4ZCM.js → react-CAKyX2DK.js} +1 -1
- package/dist/assets/{react-BjMTTz3o.js → react-Csf-d4k3.js} +2 -2
- package/dist/assets/{react-DnlroIVR.js → react-cM2taeLT.js} +1 -1
- package/dist/assets/{react-DP6OW0X7.js → react-iTJ7pnsX.js} +1 -1
- package/dist/assets/{react-C9YSGZWo.js → react-jIUp48sq.js} +1 -1
- package/dist/assets/{recharts-Cn9r2Nim.js → recharts-Bq_f50sH.js} +1 -1
- package/dist/assets/{sentry-dNiixEsI.js → sentry-BmREaNQl.js} +1 -1
- package/dist/assets/{url-DUT0hNV6.js → url-BDuEY3fv.js} +1 -1
- package/dist/assets/{url-BAAURAjJ.js → url-_ZCC9T2Z.js} +1 -1
- package/dist/assets/{utils-Bq9L7Jou.js → utils-DRmtIW-b.js} +1 -1
- package/dist/assets/{zeni-epic-state-vZRX9gUc.js → zeni-epic-state-DGpvtJXd.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/SignInScreen-BY7jxmEu.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as d}from"./liveblocks-KSB2RHcM.js";import{a as S,R as f,n as I}from"./sentry-BmREaNQl.js";import{n as m,i as w,g,u as h,N as b,h as y}from"./core-DK51E0at.js";import{z as l,E,i as C,c as v,o as U,Z as P,d as p}from"./index-2NmkKNMG.js";import{P0 as T,P1 as x,P2 as L,P3 as z,bn as u}from"./zeni-epic-state-DGpvtJXd.js";import{f as D}from"./analyticsHelper-DvCthlwA.js";import"./recharts-Bq_f50sH.js";import"./mui-C05CEOST.js";import"./analytics-uLAFcteM.js";import"./lottie-oKaQXqx7.js";import"./lexical-BOuc2rhs.js";import"./utils-DRmtIW-b.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]="e99b84a4-351d-4a27-b65e-32e9a7b3b1e6",e._sentryDebugIdIdentifier="sentry-dbid-e99b84a4-351d-4a27-b65e-32e9a7b3b1e6")}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(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 O=y(A,N)(P),k=f.memo(O);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=E().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")),C.updateAppLocaleID("en"),D(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(k,{navigate:o,location:c})}export{q as default};
|