'use strict'; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } /** * Licensed Materials - Property of IBM * IBM Cognos Products: BI Cloud (C) Copyright IBM Corp. 2020 * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. */ define(['../../../lib/@waca/dashboard-common/dist/core/APIFactory', '../../../lib/@waca/dashboard-common/dist/api/PropertiesProviderAPI'], function (APIFactory, PropertiesProviderAPI) { var ContentProperties = function () { function ContentProperties(_ref) { var features = _ref.features, options = _ref.options; _classCallCheck(this, ContentProperties); this._api = APIFactory.createAPI(this, [PropertiesProviderAPI]); this._options = options; this._propertyList = options && options.propertyList ? JSON.parse(JSON.stringify(options.propertyList)) : []; features.Properties.registerProvider(this.getAPI()); } ContentProperties.prototype.getAPI = function getAPI() { return this._api; }; ContentProperties.prototype.getPropertyLayoutList = function getPropertyLayoutList() { if (!this._propertyLayoutList) { this._propertyLayoutList = this._options && this._options.propertyLayoutList ? this._options.propertyLayoutList : []; } return this._propertyLayoutList; }; ContentProperties.prototype.getPropertyList = function getPropertyList() { return this._propertyList; }; return ContentProperties; }(); return ContentProperties; }); //# sourceMappingURL=ContentPropertiesProvider.js.map