import{g as u,j as l}from"./chunk-VYCUIPDW.js";import{$ as s,S as o,V as n,ca as a,m as c}from"./chunk-YRDWIHVT.js";var S=(()=>{class t{constructor(r,i){this.productService=r,this.storageService=i,this.availableSubject=new c(null),this.available$=this.availableSubject.pipe(n(e=>e?this.productService.productsavailableget(e.country,e.generic?.toString(),e.updatePrice,this.storageService.get("campaign_code")):this.productService.productsavailableget(void 0,void 0,void 0,this.storageService.get("campaign_code"))),o({bufferSize:1,refCount:!0}))}reloadAvailable(r,i,e){this.availableSubject.next({country:r,generic:i,updatePrice:e})}static{this.\u0275fac=function(i){return new(i||t)(a(l),a(u))}}static{this.\u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();export{S as a};