import{cc as m,db as s,eb as p,ec as o,k as i,q as a,t as n}from"./chunk-BYJPVSLE.js";var g=(()=>{class e{constructor(r){this.http=r,this.url=m.apiBaseUrl+"categories/"}get(r={}){let t=new s;return r.prefilled&&(t=t.set("prefilled","1")),r.restaurant_id&&(t=t.set("restaurant_id",r.restaurant_id)),r.nopaginate&&(t=t.set("nopaginate","1")),r.isSuggested&&(t=t.set("is_suggested","1")),r.order_type&&(t=t.set("order_type",r.order_type)),this.http.get(this.url,{params:t}).pipe(i(o.handleError))}static{this.\u0275fac=function(t){return new(t||e)(n(p))}}static{this.\u0275prov=a({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var I=(()=>{class e{constructor(r){this.http=r,this.url=m.apiBaseUrl+"menu/"}get(r={}){let t=new s;return this.http.get(this.url,{params:t}).pipe(i(o.handleError))}show(r){return this.http.get(this.url+r,{}).pipe(i(o.handleError))}static{this.\u0275fac=function(t){return new(t||e)(n(p))}}static{this.\u0275prov=a({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();export{g as a,I as b};
