import{a8 as i,Z as u,g as h}from"./index-C3Ufbmof.js";import"./vendor-D8NNcBCx.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-BkM4oPWD.js.map
