import{a as l}from"./chunk-JUPKAJPM.js";import{i as o}from"./chunk-Z2AWIQRI.js";import{L as n,ia as c,na as s}from"./chunk-C2QKZJOP.js";var u=(()=>{let t=class t{constructor(e){this._http=e}getAll(){return this._http.get("/api/acquiring/license-types")}};t.\u0275fac=function(i){return new(i||t)(s(o))},t.\u0275prov=c({token:t,factory:t.\u0275fac});let r=t;return r})();var g=(()=>{let t=class t{constructor(e){this._acquiringServiceApi=e}getAll(){return this._acquiringServiceApi.getAll()}};t.\u0275fac=function(i){return new(i||t)(s(u))},t.\u0275prov=c({token:t,factory:t.\u0275fac});let r=t;return r})();var h=(()=>{let t=class t{constructor(e){this._http=e}getAll(e){return this._http.post("/api/licenses/all",e,{headers:l})}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)(s(o))},t.\u0275prov=c({token:t,factory:t.\u0275fac});let r=t;return r})();var I=(()=>{let t=class t{constructor(e){this._licenseServiceApi=e}getAll(e){return this._licenseServiceApi.getAll(e).pipe(n(1))}getById(e){return this._licenseServiceApi.getById(e).pipe(n(1))}createStoreLicense(e,i){return this._licenseServiceApi.createStoreLicense(e,i).pipe(n(1))}createCashboxLicense(e,i){return this._licenseServiceApi.createCashboxLicense(e,i).pipe(n(1))}activateLicense(e){return this._licenseServiceApi.activateLicense(e).pipe(n(1))}revokeLicense(e){return this._licenseServiceApi.revokeLicense(e).pipe(n(1))}getPriceForServiceCenter(e,i){if(!i)return 0;let p={1:.33,2:.37,3:.43,4:.47,5:.5}[i.level];if(p!==void 0){let f=e.price*(1-p);return Math.round(f)}return 0}};t.\u0275fac=function(i){return new(i||t)(s(h))},t.\u0275prov=c({token:t,factory:t.\u0275fac});let r=t;return r})();export{u as a,g as b,h as c,I as d};
//# sourceMappingURL=chunk-FWIFLPZC.js.map
