import{a3 as i,W as u,g as h}from"./index-DHcvdVIa.js";import"./vendor-d3O24IFR.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-BvdOznQF.js.map
