{{!
    This file is part of Moodle - http://moodle.org/

    Moodle is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Moodle is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
}}
{{!
    @template core_courseformat/activitychooser

    Chooser dialog template.

    Example context (json):
    {
        "recommendedBeginning": true,
        "favouritesFirst": true,
        "favourites": [
            {
                "title": "Option name 1",
                "description": "Option description 1"
            },
            {
                "title": "Option name 2",
                "description": "Option description 2"
            }
        ],
        "recommended": [
            {
                "title": "Option name 3",
                "description": "Option description 3"
            }
        ],
        "showAll": true
    }
}}

<div data-region="carousel" class="carousel slide d-flex flex-fill">
    <div class="carousel-inner d-flex flex-fill" aria-live="polite">
        <div class="carousel-item p-3 py-sm-3 px-sm-5 active" data-region="modules">
            {{>core_courseformat/local/activitychooser/modchoosercontainer}}
        </div>
        <div class="carousel-item p-3 py-sm-3 px-sm-5" data-region="help"></div>
        <!--The following div is used as a place for additional plugins to have widgets in the chooser.-->
        <div class="carousel-item p-3 py-sm-3 px-sm-5" data-region="pluginCarousel"></div>
    </div>
</div>
