import{c as e}from"./chunk-BPD7YZPG.js";import{h as c}from"./chunk-JFC5IFMW.js";import{Ia as n,Na as o,ua as s}from"./chunk-VQ6IH7OA.js";var u=(()=>{class i{constructor(t){this.httpClient=t}setUserOtyPassword(t,r){return this.httpClient.post(`${e.getIdentityUrl()}/profiles/${t}/admin`,{otyCode:r},{withCredentials:!0}).pipe(s(1))}getB2cProfiles(){return this.httpClient.get(`${e.getB2cProfilesUrl()}`,{withCredentials:!0})}getB2cLightProfiles(){return this.httpClient.get(`${e.getB2cLightProfilesUrl()}`,{withCredentials:!0})}changeActiveMsisdn(t,r){return this.httpClient.post(`${e.getB2cProfilesUrl()}/${t}/msisdn/changeMsisdn/${r}`,null,{withCredentials:!0,responseType:"text"})}checkSubscriptionBackInStockExists(t){return this.httpClient.get(`${e.backInStockNotificationExists()}`,{withCredentials:!0,params:{oaCode:t}})}subscribeNotifyBackInStock(t){return this.httpClient.post(e.backInStockSubscribeUrl(),t,{withCredentials:!0,responseType:"json"}).toPromise()}static{this.\u0275fac=function(r){return new(r||i)(o(c))}}static{this.\u0275prov=n({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();export{u as a};