import{b as r}from"./chunk-W73LR43Y.js";import{k as m}from"./chunk-GW55Q7ZA.js";import{h as l}from"./chunk-6MZAHXNO.js";import{Aa as c,La as u,O as a,Qa as n,la as p}from"./chunk-HC2G7LSI.js";var C=(()=>{let t=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(a(()=>t.getAuthUrl(document.location.href))).pipe(c(t.getAuthUrl(document.location.href))).pipe(p())}getEShopMe(){return this.httpClient.get(`${r.getIdentityUrl()}`,{withCredentials:!0})}};t.\u0275fac=function(o){return new(o||t)(n(l),n(m))},t.\u0275prov=u({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();export{C as a};