{"version":3,"sources":["https:\/\/immet-dist.spbstu.ru\/theme\/mooc\/amd\/src\/pending.js"],"names":["define","$","moduleTransitions","alert","start","end","carousel","collapse","dropdown","modal","popover","tab","tooltip","Object","keys","forEach","key","pair","eventStart","eventEnd","document","body","on","M","util","js_pending","js_complete"],"mappings":"AAsBA,aAEAA,OAAO,CAAC,UAAW,SAAUC,GAC3B,IAAIC,EAAoB,CACtBC,MAAO,CAAC,CACNC,MAAO,QACPC,IAAK,WAEPC,SAAU,CAAC,CACTF,MAAO,QACPC,IAAK,SAEPE,SAAU,CAAC,CACTH,MAAO,OACPC,IAAK,UACJ,CACDD,MAAO,OACPC,IAAK,UAEPG,SAAU,CAAC,CACTJ,MAAO,OACPC,IAAK,UACJ,CACDD,MAAO,OACPC,IAAK,UAEPI,MAAO,CAAC,CACNL,MAAO,OACPC,IAAK,UACJ,CACDD,MAAO,OACPC,IAAK,UAEPK,QAAS,CAAC,CACRN,MAAO,OACPC,IAAK,UACJ,CACDD,MAAO,OACPC,IAAK,UAEPM,IAAK,CAAC,CACJP,MAAO,OACPC,IAAK,UACJ,CACDD,MAAO,OACPC,IAAK,UAEPO,QAAS,CAAC,CACRR,MAAO,OACPC,IAAK,UACJ,CACDD,MAAO,OACPC,IAAK,WAGTQ,OAAOC,KAAKZ,GAAmBa,QAAQ,SAAUC,GAC\/Cd,EAAkBc,GAAKD,QAAQ,SAAUE,GACvC,IAAIC,EAAaD,EAAKb,MAAQ,OAASY,EACnCG,EAAWF,EAAKZ,IAAM,OAASW,EACnCf,EAAEmB,SAASC,MAAMC,GAAGJ,EAAY,WAC9BK,EAAEC,KAAKC,WAAWN,KAEpBlB,EAAEmB,SAASC,MAAMC,GAAGH,EAAU,WAC5BI,EAAEC,KAAKE,YAAYP","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 * Add Pending JS checks to stock Bootstrap transitions.\n *\n * @module theme_remui\/pending\n * @copyright 2019 Andrew Nicols \n * @license http:\/\/www.gnu.org\/copyleft\/gpl.html GNU GPL v3 or later\n *\/\n\"use strict\";\ndefine(['jquery'], function($) {\n var moduleTransitions = {\n alert: [{\n start: 'close',\n end: 'closed',\n }],\n carousel: [{\n start: 'slide',\n end: 'slid',\n }],\n collapse: [{\n start: 'hide',\n end: 'hidden',\n }, {\n start: 'show',\n end: 'shown',\n }],\n dropdown: [{\n start: 'hide',\n end: 'hidden',\n }, {\n start: 'show',\n end: 'shown',\n }],\n modal: [{\n start: 'hide',\n end: 'hidden',\n }, {\n start: 'show',\n end: 'shown',\n }],\n popover: [{\n start: 'hide',\n end: 'hidden',\n }, {\n start: 'show',\n end: 'shown',\n }],\n tab: [{\n start: 'hide',\n end: 'hidden',\n }, {\n start: 'show',\n end: 'shown',\n }],\n tooltip: [{\n start: 'hide',\n end: 'hidden',\n }, {\n start: 'show',\n end: 'shown',\n }],\n };\n\n Object.keys(moduleTransitions).forEach(function(key) {\n moduleTransitions[key].forEach(function(pair) {\n var eventStart = pair.start + '.bs.' + key;\n var eventEnd = pair.end + '.bs.' + key;\n $(document.body).on(eventStart, function() {\n M.util.js_pending(eventEnd);\n });\n\n $(document.body).on(eventEnd, function() {\n M.util.js_complete(eventEnd);\n });\n });\n });\n});\n"],"file":"pending.min.js"}