{"version":3,"file":"header.min.js","sources":["https:\/\/moodle.tau.ac.il\/2023\/course\/format\/multitopic\/amd\/src\/courseformat\/content\/section\/header.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\n\/**\n * Course section header component.\n *\n * This component is used to control specific course section interactions like drag and drop.\n *\n * @module format_multitopic\/courseformat\/content\/section\/header\n * @class format_multitopic\/courseformat\/content\/section\/header\n * @copyright 2023 James Calder and Otago Polytechnic\n * @copyright based on work by 2021 Ferran Recio \n * @license http:\/\/www.gnu.org\/copyleft\/gpl.html GNU GPL v3 or later\n *\/\n\nimport HeaderBase from 'core_courseformat\/local\/content\/section\/header';\n\nexport default class extends HeaderBase {\n\n \/**\n * Check if cm bulk selection is available.\n * @param {Object} bulk the current state bulk attribute\n * @returns {Boolean}\n *\/\n _isSectionBulkEnabled(bulk) {\n if (!bulk.enabled) {\n return false;\n }\n return (bulk.selectedType === '' || bulk.selectedType === 'section')\n && (this.section.levelsan >= 2) && (this.fullregion.dataset.fmtonpage == '1'); \/\/ ADDED.\n }\n\n}"],"names":["HeaderBase","_isSectionBulkEnabled","bulk","enabled","selectedType","this","section","levelsan","fullregion","dataset","fmtonpage"],"mappings":";;;;;;;;;;;oKA6B6BA,gBAOzBC,sBAAsBC,cACbA,KAAKC,WAGoB,KAAtBD,KAAKE,cAA6C,YAAtBF,KAAKE,eACjCC,KAAKC,QAAQC,UAAY,GAA4C,KAArCF,KAAKG,WAAWC,QAAQC"}