import{c as r}from"./chunk-BPD7YZPG.js";import{V as l}from"./chunk-HJ2MFH4E.js";import{h as c}from"./chunk-JFC5IFMW.js";import{Ia as u,K as n,Na as i,ha as a,xa as p}from"./chunk-VQ6IH7OA.js";var U=(()=>{class t{static getAuthUrl(e){return`${r.getAuthUrl()}?target_url=${encodeURIComponent(e)}`}static getCreateUserUrl(e){return`${r.getCreateUserUrl()}?target_url=${encodeURIComponent(e)}`}constructor(e,o){this.httpClient=e,this.router=o}getAuthUrlToCurrentPage(){return this.router.events.pipe(n(()=>t.getAuthUrl(document.location.href))).pipe(p(t.getAuthUrl(document.location.href))).pipe(a())}getEShopMe(){return this.httpClient.get(`${r.getIdentityUrl()}`,{withCredentials:!0})}static{this.\u0275fac=function(o){return new(o||t)(i(c),i(l))}}static{this.\u0275prov=u({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();export{U as a};