babf2c539d641b692112496d5741601c3be4e6d3
[moodle.git] / theme / boost / amd / build / loader.min.js.map
1 {"version":3,"sources":["../src/loader.js"],"names":["define","jQuery","Tether","Event","window","M","util","js_pending","require","Aria","popover","trigger","selector","container","delay","hide","tooltip","fn","dropdown","Constructor","Default","flip","on","e","hash","target","attr","history","replaceState","location","tab","getLegacyEvents","done","events","document","FILTER_CONTENT_UPDATED","init","js_complete"],"mappings":"AAyBAA,OAAM,sBAAC,CAAC,QAAD,CAAW,UAAX,CAAuB,YAAvB,CAAD,CAAuC,SAASC,CAAT,CAAiBC,CAAjB,CAAyBC,CAAzB,CAAgC,CAEzEC,MAAM,CAACH,MAAP,CAAgBA,CAAhB,CACAG,MAAM,CAACF,MAAP,CAAgBA,CAAhB,CACAG,CAAC,CAACC,IAAF,CAAOC,UAAP,CAAkB,6BAAlB,EAEAC,OAAO,CAAC,CAAC,kBAAD,CACA,qBADA,CAEA,kBAFA,CAGA,mBAHA,CAIA,oBAJA,CAKA,sBALA,CAMA,sBANA,CAOA,sBAPA,CAQA,mBARA,CASA,uBATA,CAUA,iBAVA,CAWA,qBAXA,CAYA,qBAZA,CAAD,CAaC,SAASC,CAAT,CAAe,CAGnBR,CAAM,CAAC,MAAD,CAAN,CAAeS,OAAf,CAAuB,CACnBC,OAAO,CAAE,OADU,CAEnBC,QAAQ,CAAE,4CAFS,CAAvB,EAKAX,CAAM,CAAC,MAAD,CAAN,CAAeS,OAAf,CAAuB,CACnBG,SAAS,CAAE,MADQ,CAEnBD,QAAQ,CAAE,2CAFS,CAGnBD,OAAO,CAAE,OAHU,CAInBG,KAAK,CAAE,CACHC,IAAI,CAAE,GADH,CAJY,CAAvB,EASAd,CAAM,CAAC,MAAD,CAAN,CAAee,OAAf,CAAuB,CACnBH,SAAS,CAAE,MADQ,CAEnBD,QAAQ,CAAE,2BAFS,CAAvB,EAMAX,CAAM,CAACgB,EAAP,CAAUC,QAAV,CAAmBC,WAAnB,CAA+BC,OAA/B,CAAuCC,IAAvC,IAEApB,CAAM,CAAC,wBAAD,CAAN,CAA+BqB,EAA/B,CAAkC,cAAlC,CAAkD,SAASC,CAAT,CAAY,CAC1D,GAAIC,CAAAA,CAAI,CAAGvB,CAAM,CAACsB,CAAC,CAACE,MAAH,CAAN,CAAiBC,IAAjB,CAAsB,MAAtB,CAAX,CACA,GAAIC,OAAO,CAACC,YAAZ,CAA0B,CACtBD,OAAO,CAACC,YAAR,CAAqB,IAArB,CAA2B,IAA3B,CAAiCJ,CAAjC,CACH,CAFD,IAEO,CACHK,QAAQ,CAACL,IAAT,CAAgBA,CACnB,CACJ,CAPD,EASA,GAAIA,CAAAA,CAAI,CAAGpB,MAAM,CAACyB,QAAP,CAAgBL,IAA3B,CACA,GAAIA,CAAJ,CAAU,CACPvB,CAAM,CAAC,oBAAqBuB,CAArB,CAA4B,KAA7B,CAAN,CAAyCM,GAAzC,CAA6C,MAA7C,CACF,CAGD3B,CAAK,CAAC4B,eAAN,GAAwBC,IAAxB,CAA6B,SAASC,CAAT,CAAiB,CAC1ChC,CAAM,CAACiC,QAAD,CAAN,CAAiBZ,EAAjB,CAAoBW,CAAM,CAACE,sBAA3B,CAAmD,UAAW,CAC1DlC,CAAM,CAAC,MAAD,CAAN,CAAeS,OAAf,CAAuB,CACnBE,QAAQ,CAAE,2BADS,CAEnBD,OAAO,CAAE,OAFU,CAAvB,CAKH,CAND,CAOH,CARD,EAUAF,CAAI,CAAC2B,IAAL,GACA/B,CAAC,CAACC,IAAF,CAAO+B,WAAP,CAAmB,6BAAnB,CACH,CAjEM,CAAP,CAoEA,MAAO,EACV,CA3EK,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 * Template renderer for Moodle. Load and render Moodle templates with Mustache.\n *\n * @module     core/templates\n * @package    core\n * @class      templates\n * @copyright  2015 Damyon Wiese <damyon@moodle.com>\n * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later\n * @since      2.9\n */\ndefine(['jquery', './tether', 'core/event'], function(jQuery, Tether, Event) {\n\n    window.jQuery = jQuery;\n    window.Tether = Tether;\n    M.util.js_pending('theme_boost/loader:children');\n\n    require(['theme_boost/aria',\n            'theme_boost/pending',\n            'theme_boost/util',\n            'theme_boost/alert',\n            'theme_boost/button',\n            'theme_boost/carousel',\n            'theme_boost/collapse',\n            'theme_boost/dropdown',\n            'theme_boost/modal',\n            'theme_boost/scrollspy',\n            'theme_boost/tab',\n            'theme_boost/tooltip',\n            'theme_boost/popover'],\n            function(Aria) {\n\n        // We do twice because: https://github.com/twbs/bootstrap/issues/10547\n        jQuery('body').popover({\n            trigger: 'focus',\n            selector: \"[data-toggle=popover][data-trigger!=hover]\"\n        });\n\n        jQuery(\"html\").popover({\n            container: \"body\",\n            selector: \"[data-toggle=popover][data-trigger=hover]\",\n            trigger: \"hover\",\n            delay: {\n                hide: 500\n            }\n        });\n\n        jQuery(\"html\").tooltip({\n            container: \"body\",\n            selector: '[data-toggle=\"tooltip\"]'\n        });\n\n        // Disables flipping the dropdowns up and getting hidden behind the navbar.\n        jQuery.fn.dropdown.Constructor.Default.flip = false;\n\n        jQuery('a[data-toggle=\"tab\"]').on('shown.bs.tab', function(e) {\n            var hash = jQuery(e.target).attr('href');\n            if (history.replaceState) {\n                history.replaceState(null, null, hash);\n            } else {\n                location.hash = hash;\n            }\n        });\n\n        var hash = window.location.hash;\n        if (hash) {\n           jQuery('.nav-link[href=\"' + hash + '\"]').tab('show');\n        }\n\n        // We need to call popover automatically if nodes are added to the page later.\n        Event.getLegacyEvents().done(function(events) {\n            jQuery(document).on(events.FILTER_CONTENT_UPDATED, function() {\n                jQuery('body').popover({\n                    selector: '[data-toggle=\"popover\"]',\n                    trigger: 'focus'\n                });\n\n            });\n        });\n\n        Aria.init();\n        M.util.js_complete('theme_boost/loader:children');\n    });\n\n\n    return {};\n});\n"],"file":"loader.min.js"}