1import{j as o,r as i}from"./Maintenance-BtqkJ1du.js";import{c as S,d as m,f as h,h as A,g as I,b as c,db as L,be as P,dc as t,dd as E,de as x,df as M}from"./load-DmjYlQIJ.js";import{f as v,j as y,L as p}from"./index-CFBCK-Z_.js";function w(){const a=S(),d=m(),s=h(),g=A(I),l=c().getSettingsService().settingsData?.loginRedirectUrl,r=new URLSearchParams(d.search).get("sessionId"),n=c().getUserService();return i.useEffect(()=>{a(L(v.MAYAMINIAPP)),a(P(y.EMBEDDED))},[]),i.useEffect(()=>{(async()=>{if(g&&await n.logout(),!r){s.replace(`/error-page/${t.MAYAMINIAPP}`);return}try{const e=await n.validateMayaSessionId(r),u=e.responseStatus===p.SUCCESS,f=e.responseStatus===p.THIRD_PARTY_SSO_USER_EXIST;if(e.blocked){s.replace(`/error-page/${t.USER_BLOCKED}`);return}u&&(a(E(e)),a(x(!0)),s.replace(l??"/")),f&&s.replace(`/mayaminiapp/login${M(e.email,e.phoneNumber,e.verificationChannel)}`)}catch{s.replace(`/error-page/${t.MAYAMINIAPP}`);return}})()},[]),o.jsx(U,{})}const R={position:"fixed",top:"0",left:"0",margin:"0",padding:"20vh 0",zIndex:"99999",background:"var(--main-background)",height:"100vh"},U=()=>o.jsx("div",{className:"js-loader",style:R,children:o.jsx("img",{src:"/preloader.png",id:"site-loader",width:"64px",alt:"loading spinner"})});export{U as FullPageLoading,w as default}; 2//# sourceMappingURL=MayaMiniAppView-CWOsDsEq.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.