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