import{a as n}from"./chunk-LSDU4UD5.js";import{a as o}from"./chunk-KOXD6BDO.js";import{a,e as c}from"./chunk-EMTGVP7F.js";import{K as r,da as p,ja as s}from"./chunk-A4WWLITB.js";var h=(()=>{class e{constructor(t){this._http=t,this.apiUrl=n.apiURL}getConnectedComPort(){return this._http.get(`${this.apiUrl}/api/customer-display/connected`)}get(){let t=new a().append(o.SkipError,"skipError");return this._http.get(`${this.apiUrl}/api/customer-display`,{headers:t})}create(t){return this._http.post(`${this.apiUrl}/api/customer-display`,t)}edit(t,i){return this._http.put(`${this.apiUrl}/api/customer-display/${t}`,i)}tryShow(t){return this._http.post(`${this.apiUrl}/api/customer-display/try-show`,t)}delete(t){return this._http.delete(`${this.apiUrl}/api/customer-display/${t}`)}showToDisplay(t){let i=new a().append(o.SkipError,"skipError");return this._http.get(`${this.apiUrl}/api/customer-display/show?text=${t}`,{headers:i})}clearDisplay(){let t=new a().append(o.SkipError,"skipError");return this._http.get(`${this.apiUrl}/api/customer-display/clear`,{headers:t})}static{this.\u0275fac=function(i){return new(i||e)(s(c))}}static{this.\u0275prov=p({token:e,factory:e.\u0275fac})}}return e})();var v=(()=>{class e{constructor(t){this._displayServiceApi=t}getConnectedComPort(){return this._displayServiceApi.getConnectedComPort().pipe(r(1))}get(){return this._displayServiceApi.get().pipe(r(1))}create(t){return this._displayServiceApi.create(t).pipe(r(1))}edit(t,i){return this._displayServiceApi.edit(t,i).pipe(r(1))}tryShow(t){return this._displayServiceApi.tryShow(t).pipe(r(1))}delete(t){return this._displayServiceApi.delete(t).pipe(r(1))}showToDisplay(t){return this._displayServiceApi.showToDisplay(t).pipe(r(1))}clearDisplay(){return this._displayServiceApi.clearDisplay().pipe(r(1))}static{this.\u0275fac=function(i){return new(i||e)(s(h))}}static{this.\u0275prov=p({token:e,factory:e.\u0275fac})}}return e})();export{h as a,v as b};
