Sindbad~EG File Manager

Current Path : /var/www/html/ch.sumar.com.py/cursos/theme/snap/amd/build/
Upload File :
Current File : /var/www/html/ch.sumar.com.py/cursos/theme/snap/amd/build/alternative_role_handler-lazy.min.js.map

{"version":3,"file":"alternative_role_handler-lazy.min.js","sources":["../src/alternative_role_handler-lazy.js"],"sourcesContent":["/**\n * 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 * @package\n * @author    David Castro <david.castro@openlms.net>\n * @copyright Copyright (c) 2018 Open LMS (https://www.openlms.net)\n * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later\n */\n\n/**\n * @module theme_snap/alternative_role_handler-lazy\n */\ndefine(['jquery', 'core/templates'],\n    function($, templates) {\n        return {\n            /**\n             * Initialising function.\n             * @param {string} courseId\n             */\n            init: function(courseId) {\n                var returnURL = encodeURIComponent(window.location.href.replace(M.cfg.wwwroot, ''));\n\n                templates.render('theme_snap/return_to_normal_role', {\n                    switchroleurl: M.cfg.wwwroot + '/course/switchrole.php?'\n                        + 'id=' + courseId\n                        + '&sesskey=' + M.cfg.sesskey\n                        + '&switchrole=0'\n                        + '&returnurl=' + returnURL\n                }).then(function(html) {\n                    $('#admin-menu-trigger').parent().append(html);\n                });\n            }\n        };\n    }\n);"],"names":["define","$","templates","init","courseId","returnURL","encodeURIComponent","window","location","href","replace","M","cfg","wwwroot","render","switchroleurl","sesskey","then","html","parent","append"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAyBAA,kDAAO,CAAC,SAAU,mBACd,SAASC,EAAGC,iBACD,CAKHC,KAAM,SAASC,cACPC,UAAYC,mBAAmBC,OAAOC,SAASC,KAAKC,QAAQC,EAAEC,IAAIC,QAAS,KAE/EX,UAAUY,OAAO,mCAAoC,CACjDC,cAAeJ,EAAEC,IAAIC,QAANF,6BACDP,SACR,YAAcO,EAAEC,IAAII,QAFXL,2BAION,YACvBY,MAAK,SAASC,MACbjB,EAAE,uBAAuBkB,SAASC,OAAOF"}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists