import{ch as l,ce as u,bl as g,L as m}from"./index-D5bkQlXq.js";import{F as f,ca as p}from"./vendor-DtjVbdLs.js";const h=f({__name:"callback",async setup(_){let s,a;const{signIn:o,errors:r}=l(),{externalSignInCallback:c}=u(),{analytics:n}=g();async function t(){try{await c(),await o()}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{h as default};
//# sourceMappingURL=callback-RmjrrJFH.js.map
