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