'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 Business Analytics (C) Copyright IBM Corp. 2019, 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', './api/InternalModelsAPI'], function (APIFactory, InternalModelsAPI) { /** * @implements InternalModelsAPI */ var InternalModels = function () { function InternalModels(_ref) { var widgetModel = _ref.widgetModel, layoutModel = _ref.layoutModel; _classCallCheck(this, InternalModels); this.widgetModel = widgetModel; this.layoutModel = layoutModel; this._api = APIFactory.createAPI(this, [InternalModelsAPI]); } InternalModels.prototype.getAPI = function getAPI() { return this._api; }; InternalModels.prototype.getWidgetModel = function getWidgetModel() { return this.widgetModel; }; InternalModels.prototype.getLayoutModel = function getLayoutModel() { return this.layoutModel; }; InternalModels.prototype.toJSON = function toJSON() { if (this.widgetModel) { return this.widgetModel.toJSON(); } }; return InternalModels; }(); return InternalModels; }); //# sourceMappingURL=InternalModels.js.map