"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.Page = void 0; /*eslint no-unused-vars: "off"*/ /** * @interface Page * Page * Page content that is returned by PageRouter. */ class Page { /** * @description Creates a page. * @param {Object} params The page parameters. * @param {String} params.id The page identifier. * @param {String} params.defaultFile The page file name. * @returns {Page} The page. */ constructor(params = {}) { const { id, defaultFile } = params; this._id = id; this._defaultFile = defaultFile; } get id() { return this._id; } get defaultFile() { return this._defaultFile; } set id(v) { this._id = v; } set defaultFile(v) { this._defaultFile = v; } } exports.Page = Page; var _default = exports.default = Page; //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJQYWdlIiwiY29uc3RydWN0b3IiLCJwYXJhbXMiLCJpZCIsImRlZmF1bHRGaWxlIiwiX2lkIiwiX2RlZmF1bHRGaWxlIiwidiIsImV4cG9ydHMiLCJfZGVmYXVsdCIsImRlZmF1bHQiXSwic291cmNlcyI6WyIuLi9zcmMvUGFnZS5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKmVzbGludCBuby11bnVzZWQtdmFyczogXCJvZmZcIiovXG4vKipcbiAqIEBpbnRlcmZhY2UgUGFnZVxuICogUGFnZVxuICogUGFnZSBjb250ZW50IHRoYXQgaXMgcmV0dXJuZWQgYnkgUGFnZVJvdXRlci5cbiAqL1xuZXhwb3J0IGNsYXNzIFBhZ2Uge1xuICAvKipcbiAgICogQGRlc2NyaXB0aW9uIENyZWF0ZXMgYSBwYWdlLlxuICAgKiBAcGFyYW0ge09iamVjdH0gcGFyYW1zIFRoZSBwYWdlIHBhcmFtZXRlcnMuXG4gICAqIEBwYXJhbSB7U3RyaW5nfSBwYXJhbXMuaWQgVGhlIHBhZ2UgaWRlbnRpZmllci5cbiAgICogQHBhcmFtIHtTdHJpbmd9IHBhcmFtcy5kZWZhdWx0RmlsZSBUaGUgcGFnZSBmaWxlIG5hbWUuXG4gICAqIEByZXR1cm5zIHtQYWdlfSBUaGUgcG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