import{bG as l,bH as u,bi as g,L as m}from"./index-GCDRvGOr.js";import{M as f,c5 as p}from"./vendor-CsGITfgk.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-CGWrQyhu.js.map
