import{a as d}from"./chunk-BF44ZR3M.js";import{f as _}from"./chunk-DLZ46NFM.js";import{e as u}from"./chunk-QBYYSEMG.js";import{Ya as f}from"./chunk-IDENGFF3.js";import{a as c}from"./chunk-PDYJ5OYY.js";import{d as a,i as l}from"./chunk-YMOV4UGM.js";import{D as h,K as n,ga as s,k as m,la as o}from"./chunk-I3FGJX2C.js";var A=(()=>{let i=class i{constructor(t){this._http=t,this._connectorBaseURL=d.apiURL}getAll(){let t=new a().append(c.SkipError,"skipError");return this._http.get(`${this._connectorBaseURL}/api/pos-terminal`,{headers:t})}create(t){return this._http.post(`${this._connectorBaseURL}/api/pos-terminal`,t)}edit(t,e){return this._http.put(`${this._connectorBaseURL}/api/pos-terminal/${t}`,e)}delete(t){return this._http.delete(`${this._connectorBaseURL}/api/pos-terminal/${t}`)}payment(t,e){let p=new a().append(c.ActAsGet,"true");return this._http.post(`${this._connectorBaseURL}/api/pos-terminal/${t}/payment`,{amount:e},{headers:p})}refund(t,e){let p=new a().append(c.ActAsGet,"true");return this._http.post(`${this._connectorBaseURL}/api/pos-terminal/${t}/refund`,e,{headers:p})}};i.\u0275fac=function(e){return new(e||i)(o(l))},i.\u0275prov=s({token:i,factory:i.\u0275fac});let r=i;return r})();var E=(()=>{let i=class i{constructor(t,e,p){this._posTerminalServiceApi=t,this._toastService=e,this._localizationService=p}getAll(){return this._posTerminalServiceApi.getAll().pipe(h(()=>(this._toastService.add(_(this._localizationService.getSync.bind(this._localizationService))),m([]))),n(1))}create(t){return this._posTerminalServiceApi.create(t).pipe(n(1))}edit(t,e){return this._posTerminalServiceApi.edit(t,e).pipe(n(1))}delete(t){return this._posTerminalServiceApi.delete(t).pipe(n(1))}payment(t,e){return this._posTerminalServiceApi.payment(t,e).pipe(n(1))}refund(t,e){return this._posTerminalServiceApi.refund(t,e).pipe(n(1))}};i.\u0275fac=function(e){return new(e||i)(o(A),o(f),o(u))},i.\u0275prov=s({token:i,factory:i.\u0275fac});let r=i;return r})();export{A as a,E as b};
//# sourceMappingURL=chunk-27H6XBO7.js.map
