import{a as o}from"./chunk-JUPKAJPM.js";import{i as a}from"./chunk-Z2AWIQRI.js";import{ia as i,na as c}from"./chunk-C2QKZJOP.js";var h=(()=>{let e=class e{constructor(t){this._http=t}create(t){return this._http.post("/api/showcase",t)}edit(t,s){return this._http.put(`/api/showcase/${s}`,t)}current(){return this._http.get("/api/showcase/current")}get(t){return this._http.get(`/api/showcase/${t}`)}suspend(t){return this._http.post(`/api/showcase/${t}/suspend`,{})}activate(t){return this._http.post(`/api/showcase/${t}/activate`,{})}products(t,s){return this._http.post(`/api/showcase/${s}/products`,t,{headers:o})}};e.\u0275fac=function(s){return new(s||e)(c(a))},e.\u0275prov=i({token:e,factory:e.\u0275fac});let r=e;return r})();var S=(()=>{let e=class e{constructor(t){this._showcaseServiceApi=t}createShowcase(t){return this._showcaseServiceApi.create(t)}editShowcase(t,s){return this._showcaseServiceApi.edit(t,s)}currentShowcase(){return this._showcaseServiceApi.current()}getShowcase(t){return this._showcaseServiceApi.get(t)}suspendShowcase(t){return this._showcaseServiceApi.suspend(t)}activateShowcase(t){return this._showcaseServiceApi.activate(t)}productsShowcase(t,s){return this._showcaseServiceApi.products(t,s)}getProductsShowcase(t,s,n){let p={criteria:{search:t!==null?{name:t}:null},take:s,skip:0,orderBy:"InStock",isAscending:!1};return this.productsShowcase(p,n)}};e.\u0275fac=function(s){return new(s||e)(c(h))},e.\u0275prov=i({token:e,factory:e.\u0275fac});let r=e;return r})();export{h as a,S as b};
//# sourceMappingURL=chunk-42FFBQNC.js.map
