const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["scripts/D6eFVKa0.chunk.js","scripts/app-k0jcl5PQ.js","css/DK-Tye9X.chunk.css"])))=>i.map(i=>d[i]);
import{ao as e,gY as u,aP as d,aq as g,az as p,aj as w,bN as f,L as x,aI as S,gZ as b,gi as T,du as L,af as _}from"./app-k0jcl5PQ.js";const h="_logo_2b5nv_1",j={logo:h},E="embed.embedLoginSuccess";function y(){return e.jsxs("div",{className:"mt-5",children:[e.jsx("div",{className:`${j.logo} mx-auto`,children:e.jsx(u,{})}),e.jsx("img",{className:"img-fluid mx-auto d-block mt-4",alt:"Success",src:d.SUCCESS,style:{maxWidth:"18rem"}}),e.jsx("p",{className:"text-center mb-4 mt-2",children:e.jsx(g,{namespace:E,phrase:"success"})})]})}const M="embed.embedLoginSuccess",N=x.encloseNamespace(M),c=1e3;function k(s){const a=p(w.token());return f({title:N("title")}),S.useEffect(()=>{var o,n;if(!a.data)return;const m={type:b.TOKEN,data:{embedToken:a.data}},t=JSON.stringify(m);if(s.consumerKey!==T.MicrosoftTeams){(o=window.parent)==null||o.postMessage(t,"*"),(n=window.opener)==null||n.postMessage(t,"*"),window.setTimeout(()=>window.close(),c),s.popupCloseFallbackUrl&&window.setTimeout(()=>L.PageLoad(s.popupCloseFallbackUrl),2e3);return}async function l(){try{const i=await _(()=>import("./D6eFVKa0.chunk.js").then(r=>r.M),__vite__mapDeps([0,1,2]));await i.app.initialize(),i.authentication.notifySuccess(t)}finally{window.setTimeout(()=>window.close(),c)}}l()},[a.data]),e.jsx(y,{})}export{k as EmbedLoginSuccessView};
//# sourceMappingURL=qYFnd9M7.chunk.js.map
