{"version":3,"file":"cmitem.min.js","sources":["https:\/\/moodle.tau.ac.il\/2023\/course\/format\/multitopic\/amd\/src\/courseformat\/content\/section\/cmitem.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 course module item component.\n *\n * This component is used to control specific course modules interactions like drag and drop.\n *\n * @module format_multitopic\/courseformat\/content\/section\/cmitem\n * @class format_multitopic\/courseformat\/content\/section\/cmitem\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 CmItemBase from 'core_courseformat\/local\/content\/section\/cmitem';\n\nexport default class extends CmItemBase {\n\n \/**\n * Check if cm bulk selection is available.\n * @param {Object} bulk the current state bulk attribute\n * @returns {Boolean}\n *\/\n _isCmBulkEnabled(bulk) {\n if (!bulk.enabled) {\n return false;\n }\n return (bulk.selectedType === '' || bulk.selectedType === 'cm')\n && (this.element.closest('li.course-section').dataset.fmtonpage == '1'); \/\/ ADDED.\n }\n\n}"],"names":["CmItemBase","_isCmBulkEnabled","bulk","enabled","selectedType","this","element","closest","dataset","fmtonpage"],"mappings":";;;;;;;;;;;oKA6B6BA,gBAOzBC,iBAAiBC,cACRA,KAAKC,WAGoB,KAAtBD,KAAKE,cAA6C,OAAtBF,KAAKE,eAC8B,KAA\/DC,KAAKC,QAAQC,QAAQ,qBAAqBC,QAAQC"}