Your IP : 192.168.165.1


Current Path : C:/Users/Mahmood/Desktop/moodle/lib/amd/build/
Upload File :
Current File : C:/Users/Mahmood/Desktop/moodle/lib/amd/build/paged_content.min.js.map

{"version":3,"sources":["../src/paged_content.js"],"names":["define","$","Pages","PagingBar","PagingBarLimitSelector","Dropdown","init","root","renderPagesContentCallback","namespaceOverride","pagesContainer","find","rootSelector","pagingBarContainer","dropdownContainer","pagingBarLimitSelectorContainer","id","attr","length"],"mappings":"AAsBAA,OAAM,sBACN,CACI,QADJ,CAEI,0BAFJ,CAGI,+BAHJ,CAII,8CAJJ,CAKI,oCALJ,CADM,CAQN,SACIC,CADJ,CAEIC,CAFJ,CAGIC,CAHJ,CAIIC,CAJJ,CAKIC,CALJ,CAME,CAyCE,MAAO,CACHC,IAAI,CA7BG,QAAPA,CAAAA,IAAO,CAASC,CAAT,CAAeC,CAAf,CAA2CC,CAA3C,CAA8D,CACrEF,CAAI,CAAGN,CAAC,CAACM,CAAD,CAAR,CADqE,GAEjEG,CAAAA,CAAc,CAAGH,CAAI,CAACI,IAAL,CAAUT,CAAK,CAACU,YAAhB,CAFgD,CAGjEC,CAAkB,CAAGN,CAAI,CAACI,IAAL,CAAUR,CAAS,CAACS,YAApB,CAH4C,CAIjEE,CAAiB,CAAGP,CAAI,CAACI,IAAL,CAAUN,CAAQ,CAACO,YAAnB,CAJ6C,CAKjEG,CAA+B,CAAGR,CAAI,CAACI,IAAL,CAAUP,CAAsB,CAACQ,YAAjC,CAL+B,CAMjEI,CAAE,CAAGT,CAAI,CAACU,IAAL,CAAU,IAAV,CAN4D,CASrE,GAAIR,CAAJ,CAAuB,CACnBO,CAAE,CAAGP,CACR,CAEDP,CAAK,CAACI,IAAN,CAAWI,CAAX,CAA2BM,CAA3B,CAA+BR,CAA/B,EAEA,GAAIK,CAAkB,CAACK,MAAvB,CAA+B,CAC3Bf,CAAS,CAACG,IAAV,CAAeO,CAAf,CAAmCG,CAAnC,CACH,CAED,GAAID,CAA+B,CAACG,MAApC,CAA4C,CACxCd,CAAsB,CAACE,IAAvB,CAA4BS,CAA5B,CAA6DC,CAA7D,CACH,CAED,GAAIF,CAAiB,CAACI,MAAtB,CAA8B,CAC1Bb,CAAQ,CAACC,IAAT,CAAcQ,CAAd,CAAiCE,CAAjC,CACH,CACJ,CAEM,CAEHJ,YAAY,CAAE,2CAFX,CAIV,CA3DK,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 <http://www.gnu.org/licenses/>.\n\n/**\n * Javascript to load and render a paged content section.\n *\n * @module     core/paged_content\n * @copyright  2018 Ryan Wyllie <ryan@moodle.com>\n * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later\n */\ndefine(\n[\n    'jquery',\n    'core/paged_content_pages',\n    'core/paged_content_paging_bar',\n    'core/paged_content_paging_bar_limit_selector',\n    'core/paged_content_paging_dropdown'\n],\nfunction(\n    $,\n    Pages,\n    PagingBar,\n    PagingBarLimitSelector,\n    Dropdown\n) {\n\n    /**\n     * Initialise the paged content region by running the pages\n     * module and initialising any paging controls in the DOM.\n     *\n     * @param {object} root The paged content container element\n     * @param {function} renderPagesContentCallback (optional) A callback function to render a\n     *                                              content page. See core/paged_content_pages for\n     *                                              more defails.\n     * @param {string} namespaceOverride (optional) Provide a unique namespace override. If none provided defaults\n     *                                      to generate html's id\n     */\n    var init = function(root, renderPagesContentCallback, namespaceOverride) {\n        root = $(root);\n        var pagesContainer = root.find(Pages.rootSelector);\n        var pagingBarContainer = root.find(PagingBar.rootSelector);\n        var dropdownContainer = root.find(Dropdown.rootSelector);\n        var pagingBarLimitSelectorContainer = root.find(PagingBarLimitSelector.rootSelector);\n        var id = root.attr('id');\n\n        // Set the id to the custom namespace provided\n        if (namespaceOverride) {\n            id = namespaceOverride;\n        }\n\n        Pages.init(pagesContainer, id, renderPagesContentCallback);\n\n        if (pagingBarContainer.length) {\n            PagingBar.init(pagingBarContainer, id);\n        }\n\n        if (pagingBarLimitSelectorContainer.length) {\n            PagingBarLimitSelector.init(pagingBarLimitSelectorContainer, id);\n        }\n\n        if (dropdownContainer.length) {\n            Dropdown.init(dropdownContainer, id);\n        }\n    };\n\n    return {\n        init: init,\n        rootSelector: '[data-region=\"paged-content-container\"]'\n    };\n});\n"],"file":"paged_content.min.js"}