import{aO as u,aP as g,aQ as m,L as f}from"./index-Dqv5IkpS.js";import{K as p,c8 as _}from"./vendor-bSWkQivH.js";const d=p({__name:"callback",async setup(x){let a,t;const{signIn:i,errors:r}=u(),{externalSignInCallback:l}=g(),{analytics:n}=m();async function o(){var c;try{await l(),await i()}catch(e){const s=e instanceof Error?e:new Error(String(e));f.error(o.name,e),n("login","external",{success:!1,errors:s==null?void 0:s.message})}(c=r.value)!=null&&c.length&&n("login","external",{success:!1,errors:r.value.map(e=>`${e.code}: ${e.description}`).join(", ")}),n("login","external",{success:!0})}return[a,t]=_(()=>o()),await a,t(),()=>{}}});export{d as default};
//# sourceMappingURL=callback-CjnXIcZU.js.map
