import{a2 as i,V as u,g as h}from"./index-Bjc9_X6l.js";import"./vendor-CB-jpi5M.js";function g(a,s){const{themeContext:n}=i();function o(){const t=location.origin,c=u()??n.value.settings.default_return_url??"/",l=new URL(s,t),r=new URL("/auth/callback",t),e=new URL("/externalsignin",t);r.searchParams.set("returnUrl",c),e.searchParams.set("authenticationType",a),e.searchParams.set("oidcUrl",l.href),e.searchParams.set("callbackUrl",r.href),e.searchParams.set("storeId",h.storeId),location.assign(e)}return{signIn:o}}export{g as u};
//# sourceMappingURL=useIdentityProvider-DDxyRnAF.js.map
