import{Bc as j,J as u,Ka as S,Ub as v,d as m,ha as h,oa as l,uc as b}from"./chunk-O2LUBOWM.js";import{i as f}from"./chunk-4HJM3CUF.js";import{Ca as n,Ha as r,W as o,ta as d,v as p}from"./chunk-6DZ3MS4P.js";var x=(()=>{let e=class e extends j{constructor(i,t,c,a,I,g){super(i,t,c,a),this.occEndpointsService=I,this.http=g}setAddressAsDefault(i){this.userIdService.takeUserId().pipe(o(1)).subscribe(t=>{this.http.get(this.occEndpointsService.buildUrl("userDefaultAddress",{urlParams:{userId:t,addressId:i}})).pipe(o(1)).subscribe(c=>{c&&this.store.dispatch(new S.LoadUserAddresses(t))})})}};e.\u0275fac=function(t){return new(t||e)(r(m),r(u),r(b),r(v),r(l),r(f))},e.\u0275prov=n({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();var D=(()=>{let e=class e{constructor(i){this.baseSiteService=i}getStringValue(i){return this.baseSiteService.getActive().pipe(o(1),d(t=>this.baseSiteService.get(t))).pipe(p(t=>t.configs?.find(a=>a.key===i)?.value))}getNumberValue(i){return this.getStringValue(i).pipe(p(t=>parseInt(t,10)))}};e.\u0275fac=function(t){return new(t||e)(r(h))},e.\u0275prov=n({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();export{D as a,x as b};
