import{c as r}from"./chunk-AYHVL37M.js";import{k as m}from"./chunk-AWMJHCA7.js";import{h as l}from"./chunk-KXVCY5JT.js";import{Ca as c,Na as u,P as a,Sa as n,ma as p}from"./chunk-XNQ3RS5P.js";var C=(()=>{let t=class t{static getAuthUrl(e){return"".concat(r.getAuthUrl(),"?target_url=").concat(encodeURIComponent(e))}static getCreateUserUrl(e){return"".concat(r.getCreateUserUrl(),"?target_url=").concat(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("".concat(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};