"use strict"; /** * Licensed Materials - Property of IBM * IBM Cognos Products: Cognos Analytics * Copyright IBM Corp. 2016, 2019 * US Government Users Restricted Rights - Use, duplication or disclosure * restricted by GSA ADP Schedule Contract with IBM Corp. */ define(['underscore', 'bi/admin/nls/StringResource', 'bi/commons/ui/properties/PropertyTabView', 'bi/admin/common/Uploader', 'bi/admin/common/services/ExtensionService', 'bi/commons/ui/properties/PropertyUIControl', 'bi/admin/common/actions/ThemeListActionController', 'react', 'react-dom', 'ba-react-admin/ba-react-admin.min'], function (_, StringResource, View, Uploader, ExtensionService, PropertyUIControl, ThemeListActionController, React, ReactDOM, AdminReact) { 'use strict'; //NOSONAR: meant to be strict var ThemesTab = View.extend({ init: function init(options) { ThemesTab.inherited('init', this, arguments); this.showTitle = false; _.extend(this, options); }, remove: function remove() { this.cleanUpReact(); }, cleanUpReact: function cleanUpReact() { if (this.$el) { ReactDOM.unmountComponentAtNode(this.$el.find('.themesListPaneRoot')[0]); } }, render: function render() { this.actController = new ThemeListActionController(); var aRoot = this.$el.append("