import{b5 as u,b6 as g,aD as m,L as f}from"./index-CRze-aDK.js";import{C as p,cj as _}from"./vendor-BGtMsOoo.js";const b=p({__name:"callback",async setup(x){let a,t;const{signIn:i,errors:r}=u(),{externalSignInCallback:l}=g(),{analytics:n}=m();async function o(){var c;try{await l(),await i()}catch(e){const s=e instanceof Error?e:new Error(String(e));f.error(o.name,e),n("login","external",{success:!1,errors:s==null?void 0:s.message})}(c=r.value)!=null&&c.length&&n("login","external",{success:!1,errors:r.value.map(e=>`${e.code}: ${e.description}`).join(", ")}),n("login","external",{success:!0})}return[a,t]=_(()=>o()),await a,t(),()=>{}}});export{b as default};
//# sourceMappingURL=callback-BJ5Bdzzy.js.map
