import{a as p}from"./chunk-YO44C22F.js";import{f as n}from"./chunk-6VC7H3CZ.js";import{K as s,da as r,ja as c}from"./chunk-QMYHTLAJ.js";var l=(()=>{class t{constructor(e){this._http=e}getAll(){return this._http.get("/api/acquiring/license-types")}static{this.\u0275fac=function(i){return new(i||t)(c(n))}}static{this.\u0275prov=r({token:t,factory:t.\u0275fac})}}return t})();var d=(()=>{class t{constructor(e){this._acquiringServiceApi=e}getAll(){return this._acquiringServiceApi.getAll()}static{this.\u0275fac=function(i){return new(i||t)(c(l))}}static{this.\u0275prov=r({token:t,factory:t.\u0275fac})}}return t})();var u=(()=>{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`,{})}static{this.\u0275fac=function(i){return new(i||t)(c(n))}}static{this.\u0275prov=r({token:t,factory:t.\u0275fac})}}return t})();var b=(()=>{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 a={1:.33,2:.37,3:.43,4:.47,5:.5}[i.level];if(a!==void 0){let h=e.price*(1-a);return Math.round(h)}return 0}static{this.\u0275fac=function(i){return new(i||t)(c(u))}}static{this.\u0275prov=r({token:t,factory:t.\u0275fac})}}return t})();export{l as a,d as b,u as c,b as d};
