{"version":3,"file":"section.min.js","sources":["https:\/\/dl1.cuni.cz\/course\/format\/flexsections\/amd\/src\/local\/content\/section.js"],"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\nimport Section from 'core_courseformat\/local\/content\/section';\n\n\/**\n * Course section format component.\n *\n * @module format_flexsections\/local\/content\/section\n * @copyright 2022 Marina Glancy\n * @license http:\/\/www.gnu.org\/copyleft\/gpl.html GNU GPL v3 or later\n *\/\nexport default class extends Section {\n \/\/ Extends course\/format\/amd\/src\/local\/content\/section.js\n \/\/ Extends course\/format\/amd\/src\/local\/courseeditor\/dndsection.js\n\n \/**\n * Register state values and the drag and drop subcomponent.\n *\n * @param {BaseComponent} headerComponent section header component\n *\/\n configDragDrop(headerComponent) {\n super.configDragDrop(headerComponent);\n \/\/ Disable drag and drop for the sections, it does not really work yet.\n setTimeout(() => {\n if (typeof headerComponent.dragdrop.parent.getDraggableData === 'function') {\n headerComponent.dragdrop.setDraggable(false);\n }\n }, 1500);\n }\n}"],"names":["Section","configDragDrop","headerComponent","setTimeout","dragdrop","parent","getDraggableData","setDraggable"],"mappings":";;;;;;;sKAwB6BA,iBASzBC,eAAeC,uBACLD,eAAeC,iBAErBC,YAAW,KACyD,mBAArDD,gBAAgBE,SAASC,OAAOC,kBACvCJ,gBAAgBE,SAASG,cAAa,KAE3C"}