@signatu/policy
Version:
signatu policy components
40 lines • 1.59 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 (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var common_lib_1 = require("@signatu/common-lib");
var policyContent_1 = require("./policyContent");
var TextContent = /** @class */ (function (_super) {
__extends(TextContent, _super);
function TextContent(internalValue, language) {
var _this = _super.call(this, policyContent_1.ContentType.TEXT, language) || this;
_this.internalValue = internalValue;
return _this;
}
TextContent.fromJSON = function (json) {
var text = new TextContent(json.value, common_lib_1.Language.fromJSON(json.language));
text.ref = json.ref;
return text;
};
Object.defineProperty(TextContent.prototype, "value", {
get: function () {
return this.internalValue;
},
enumerable: true,
configurable: true
});
return TextContent;
}(policyContent_1.PolicyContentBase));
exports.TextContent = TextContent;
//# sourceMappingURL=text.js.map
;