import{a as I}from"./chunk-Z35B7KAY.js";import{A as d}from"./chunk-C2EV7IAO.js";import{f as h}from"./chunk-D75D27YU.js";import{m as a,o as u}from"./chunk-JJTPXY4D.js";import{s as f}from"./chunk-ALDBR463.js";import{F as s,Ia as m,Na as p,a as i,ba as n,ua as l,ya as c}from"./chunk-V6BPA3D7.js";var S="cart",g=e=>e?{context:{headers:{"X-Profile-Id":`${e}`}}}:{},q=(()=>{class e{constructor(r,t,o,j){this.httpLink=r,this.store=t,this.apollo=o,this.storeSelector=j,this.profileId$=this.getProfileId()}query(r,{profileId:t}={}){return(t?s(t):this.profileId$).pipe(n(1)).pipe(c(o=>this.apollo.use(S).query(i(i({},r),g(o)))))}mutate(r,{profileId:t}={}){return(t?s(t):this.profileId$).pipe(n(1)).pipe(c(o=>this.apollo.use(S).mutate(i(i({},r),g(o)))))}getProfileId(){return this.storeSelector.getWithSelector(a).pipe(c(r=>r?this.storeSelector.getWithSelector(d):s(void 0))).pipe(l(1))}static{this.\u0275fac=function(t){return new(t||e)(p(I),p(f),p(h),p(u))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();export{S as a,q as b};