import{C as e,F as s,xb as h}from"./chunk-7SK34GC7.js";var a=(()=>{class r{constructor(t){this.http=t,this.baseUrl="http://localhost:8000/web_api/",this.baseData={storename:sessionStorage.getItem("storename"),stype:sessionStorage.getItem("stype")}}login(t){return this.http.post(`${this.baseUrl}login_user.php`,t)}logout(){return this.http.get(`${this.baseUrl}logout.php`)}dashboard(){return this.http.post(`${this.baseUrl}dashboard.php`,this.baseData)}customers(){return this.http.get(`${this.baseUrl}list_customers.php`)}create_order(){return this.http.get(`${this.baseUrl}list_customers.php`)}getCategory(){return this.http.get(`${this.baseUrl}list_category.php`)}getProduct(t){return this.http.post(`${this.baseUrl}list_product.php`,t)}getAttribute(t){return this.http.post(`${this.baseUrl}list_product_attr.php`,t)}addCustomer(t){return this.http.post(`${this.baseUrl}add_customer.php`,t)}createOrder(t){return this.http.post(`${this.baseUrl}create_order.php`,t)}getStoreOrders(){return this.http.get(`${this.baseUrl}list_store_orders.php`)}updateOrder(t){return this.http.post(`${this.baseUrl}update_order.php`,t)}static{this.\u0275fac=function(p){return new(p||r)(s(h))}}static{this.\u0275prov=e({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{a};
