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