import{a as p}from"./chunk-P5XIDEFS.js";import{i as a}from"./chunk-CO3WTSA4.js";import{I as s,ea as c,ja as n}from"./chunk-DYUFV4HF.js";var l=(()=>{let t=class t{constructor(e){this._http=e}getAll(e){return this._http.post("/api/licenses/all",e,{headers:p})}getById(e){return this._http.get(`/api/licenses/${e}`)}createStoreLicense(e,i){return this._http.post(`/api/licenses/store/${e}`,i)}createCashboxLicense(e,i){return this._http.post(`/api/licenses/cashbox/${e}`,{licenseTypeId:i})}activateLicense(e){return this._http.put(`/api/licenses/${e}/activate`,{})}revokeLicense(e){return this._http.put(`/api/licenses/${e}/revoke`,{})}};t.\u0275fac=function(i){return new(i||t)(n(a))},t.\u0275prov=c({token:t,factory:t.\u0275fac});let r=t;return r})();var L=(()=>{let t=class t{constructor(e){this._licenseServiceApi=e}getAll(e){return this._licenseServiceApi.getAll(e).pipe(s(1))}getById(e){return this._licenseServiceApi.getById(e).pipe(s(1))}createStoreLicense(e,i){return this._licenseServiceApi.createStoreLicense(e,i).pipe(s(1))}createCashboxLicense(e,i){return this._licenseServiceApi.createCashboxLicense(e,i).pipe(s(1))}activateLicense(e){return this._licenseServiceApi.activateLicense(e).pipe(s(1))}revokeLicense(e){return this._licenseServiceApi.revokeLicense(e).pipe(s(1))}getPriceForServiceCenter(e,i){if(!i)return 0;let o={1:.33,2:.37,3:.43,4:.47,5:.5}[i.level];if(o!==void 0){let h=e.price*(1-o);return Math.round(h)}return 0}};t.\u0275fac=function(i){return new(i||t)(n(l))},t.\u0275prov=c({token:t,factory:t.\u0275fac});let r=t;return r})();export{l as a,L as b};
//# sourceMappingURL=chunk-DPGJKAF4.js.map
