hravemzdy.procezor
Version:
payroll-procezor Salary, Health, Social, Taxing Properties for years 2010-2022
54 lines • 2.95 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.ArticleProviderConfig = exports.ArticleSpecConfig = void 0;
var ArticleSpec_1 = require("../registry_providers/ArticleSpec");
var ArticleCode_1 = require("../service_types/ArticleCode");
var ConceptCode_1 = require("../service_types/ConceptCode");
var ArticleSpecProvider_1 = require("../registry_providers/ArticleSpecProvider");
var ArticleSeqs_1 = require("../service_types/ArticleSeqs");
var ArticleSpecConfig = /** @class */ (function (_super) {
__extends(ArticleSpecConfig, _super);
function ArticleSpecConfig(_code, _seqs, _role, _sums) {
return _super.call(this, ArticleCode_1.ArticleCode.get(_code), ArticleSeqs_1.ArticleSeqs.get(_seqs), ConceptCode_1.ConceptCode.get(_role), ArticleSpec_1.ArticleSpec.constToSumsArray(_sums)) || this;
}
ArticleSpecConfig.specsToNumberSums = function (_codes) {
return Array.from(_codes).map(function (x) { return x.value; });
};
return ArticleSpecConfig;
}(ArticleSpec_1.ArticleSpec));
exports.ArticleSpecConfig = ArticleSpecConfig;
var ArticleProviderConfig = /** @class */ (function (_super) {
__extends(ArticleProviderConfig, _super);
function ArticleProviderConfig(article, sequens, concept, sums) {
var _this = _super.call(this, ArticleCode_1.ArticleCode.get(article)) || this;
_this.articleSpec = new ArticleSpecConfig(article, sequens, concept, Array.from(sums));
return _this;
}
ArticleProviderConfig.prototype.GetSpec = function (period, version) {
return this.articleSpec;
};
ArticleProviderConfig.getSpecConfig = function (article, sequens, concept, sums) {
return new ArticleProviderConfig(article.value, sequens.value, concept.value, ArticleSpecConfig.specsToNumberSums(sums));
};
ArticleProviderConfig.getConstConfig = function (article, sequens, concept, sums) {
return new ArticleProviderConfig(article, sequens, concept, sums);
};
return ArticleProviderConfig;
}(ArticleSpecProvider_1.ArticleSpecProvider));
exports.ArticleProviderConfig = ArticleProviderConfig;
//# sourceMappingURL=ArticleProviderConfig.js.map