import{bx as l,by as u,bc as g,L as m}from"./index-dwhe4uKT.js";import{F as f,c6 as p}from"./vendor-d3O24IFR.js";const b=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{b as default};
//# sourceMappingURL=callback-C9kISAiT.js.map
