import{a2 as i,V as u,g as h}from"./index-BGo1APpE.js";import"./vendor-sJIIH5Cr.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-uPEIrHsc.js.map
