import{cc as u,db as p,eb as n,ec as i,k as a,q as s,t as g}from"./chunk-BYJPVSLE.js";var f=class{};var y=(()=>{class t{constructor(e){this.http=e,this.url=u.apiBaseUrl+"referrals/",this.carts=[]}get(e={}){let r=new p;return e.customer_id&&(r=r.set("customer_id",e.customer_id)),e.query&&(r=r.set("query",e.query)),e.page&&(r=r.set("page",e.page)),e.per_page&&(r=r.set("per_page",e.per_page)),e.nopaginate&&(r=r.set("nopaginate",e.nopaginate)),this.http.get(`${this.url}`,{params:r}).pipe(a(i.handleError))}show(e){return this.http.get(this.url+e).pipe(a(i.handleError))}delete(e){return this.http.delete(this.url+e).pipe(a(i.handleError))}getReferralPending(e={}){let r=new p;return e.customer_id&&(r=r.set("customer_id",e.customer_id)),e.query&&(r=r.set("query",e.query)),e.page&&(r=r.set("page",e.page)),e.per_page&&(r=r.set("per_page",e.per_page)),e.nopaginate&&(r=r.set("nopaginate",e.nopaginate)),this.http.get(`${this.url}referral-pending`,{params:r}).pipe(a(i.handleError))}static{this.\u0275fac=function(r){return new(r||t)(g(n))}}static{this.\u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();export{f as a,y as b};
