{"version":3,"sources":["https:\/\/elearning.iep.edu.gr\/study\/theme\/moove\/amd\/src\/themesettings.js"],"names":["define","$","ModalFactory","ThemeSettingsModal","SELECTORS","TOGGLE_REGION","ThemeSettings","registerEventListeners","prototype","openThemeSettings","create","type","TYPE","then","modal","show","click","e","preventDefault","bind"],"mappings":"AAsBAA,OAAM,6BAAC,CAAC,QAAD,CAAW,oBAAX,CAAiC,iCAAjC,CAAD,CACF,SAASC,CAAT,CAAYC,CAAZ,CAA0BC,CAA1B,CAA8C,IAEtCC,CAAAA,CAAS,CAAG,CACZC,aAAa,CAAE,wBADH,CAF0B,CAWtCC,CAAa,CAAG,UAAW,CAC3B,KAAKC,sBAAL,EACH,CAbyC,CAqB1CD,CAAa,CAACE,SAAd,CAAwBC,iBAAxB,CAA4C,UAAW,CACnDP,CAAY,CAACQ,MAAb,CAAoB,CAChBC,IAAI,CAAER,CAAkB,CAACS,IADT,CAApB,EAGCC,IAHD,CAGM,SAASC,CAAT,CAAgB,CAClBA,CAAK,CAACC,IAAN,EACH,CALD,CAMH,CAPD,CAcAT,CAAa,CAACE,SAAd,CAAwBD,sBAAxB,CAAiD,UAAW,CACxDN,CAAC,CAACG,CAAS,CAACC,aAAX,CAAD,CAA2BW,KAA3B,CAAiC,SAASC,CAAT,CAAY,CACzC,KAAKR,iBAAL,CAAuBQ,CAAvB,EACAA,CAAC,CAACC,cAAF,EACH,CAHgC,CAG\/BC,IAH+B,CAG1B,IAH0B,CAAjC,CAIH,CALD,CAOA,MAAO,CACH,KAAQ,eAAW,CACf,MAAO,IAAIb,CAAAA,CACd,CAHE,CAKV,CAhDC,CAAN","sourcesContent":["\/\/ This file is part of Moodle - http:\/\/moodle.org\/\n\/\/\n\/\/ Moodle is free software: you can redistribute it and\/or modify\n\/\/ it under the terms of the GNU General Public License as published by\n\/\/ the Free Software Foundation, either version 3 of the License, or\n\/\/ (at your option) any later version.\n\/\/\n\/\/ Moodle is distributed in the hope that it will be useful,\n\/\/ but WITHOUT ANY WARRANTY; without even the implied warranty of\n\/\/ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\/\/ GNU General Public License for more details.\n\/\/\n\/\/ You should have received a copy of the GNU General Public License\n\/\/ along with Moodle. If not, see .\n\n\/**\n * Theme settings js logic.\n *\n * @package theme_moove\n * @copyright 2020 Willian Mano - http:\/\/conecti.me\n * @license http:\/\/www.gnu.org\/copyleft\/gpl.html GNU GPL v3 or later\n *\/\ndefine(['jquery', 'core\/modal_factory', 'theme_moove\/themesettings_modal'],\n function($, ModalFactory, ThemeSettingsModal) {\n\n var SELECTORS = {\n TOGGLE_REGION: '#themesettings-control'\n };\n\n \/**\n * Constructor for the ThemeSettings.\n *\n * @param {object} root The root jQuery element for the modal\n *\/\n var ThemeSettings = function() {\n this.registerEventListeners();\n };\n\n \/**\n * Open \/ close the blocks drawer.\n *\n * @method toggleThemeSettings\n * @param {Event} e\n *\/\n ThemeSettings.prototype.openThemeSettings = function() {\n ModalFactory.create({\n type: ThemeSettingsModal.TYPE\n })\n .then(function(modal) {\n modal.show();\n });\n };\n\n \/**\n * Set up all of the event handling for the modal.\n *\n * @method registerEventListeners\n *\/\n ThemeSettings.prototype.registerEventListeners = function() {\n $(SELECTORS.TOGGLE_REGION).click(function(e) {\n this.openThemeSettings(e);\n e.preventDefault();\n }.bind(this));\n };\n\n return {\n 'init': function() {\n return new ThemeSettings();\n }\n };\n }\n);\n"],"file":"themesettings.min.js"}