import{cf as l,cc as u,bl as g,L as f}from"./index-EAGRne_f.js";import{F as m,c8 as p}from"./vendor-BMB8ItLC.js";const w=m({__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));f.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-BGHtQQVb.js.map
