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/icon_system_standard.min.js.map

{"version":3,"sources":["../src/icon_system_standard.js"],"names":["define","IconSystem","CoreUrl","Mustache","IconSystemStandard","apply","arguments","prototype","Object","create","renderIcon","key","component","title","template","url","imageUrl","templatecontext","attributes","name","value","push","result","render","trim","getTemplateName"],"mappings":"AAuBAA,OAAM,6BAAC,CAAC,kBAAD,CAAqB,UAArB,CAAiC,eAAjC,CAAD,CACE,SAASC,CAAT,CAAqBC,CAArB,CAA8BC,CAA9B,CAAwC,CAK5C,GAAIC,CAAAA,CAAkB,CAAG,UAAW,CAChCH,CAAU,CAACI,KAAX,CAAiB,IAAjB,CAAuBC,SAAvB,CACH,CAFD,CAGAF,CAAkB,CAACG,SAAnB,CAA+BC,MAAM,CAACC,MAAP,CAAcR,CAAU,CAACM,SAAzB,CAA/B,CAYAH,CAAkB,CAACG,SAAnB,CAA6BG,UAA7B,CAA0C,SAASC,CAAT,CAAcC,CAAd,CAAyBC,CAAzB,CAAgCC,CAAhC,CAA0C,IAC5EC,CAAAA,CAAG,CAAGb,CAAO,CAACc,QAAR,CAAiBL,CAAjB,CAAsBC,CAAtB,CADsE,CAG5EK,CAAe,CAAG,CAClBC,UAAU,CAAE,CACR,CAACC,IAAI,CAAE,KAAP,CAAcC,KAAK,CAAEL,CAArB,CADQ,CAER,CAACI,IAAI,CAAE,KAAP,CAAcC,KAAK,CAAEP,CAArB,CAFQ,CAGR,CAACM,IAAI,CAAE,OAAP,CAAgBC,KAAK,CAAEP,CAAvB,CAHQ,CADM,CAH0D,CAUhF,GAAqB,WAAjB,QAAOA,CAAAA,CAAP,EAAyC,EAAT,EAAAA,CAApC,CAAiD,CAC7CI,CAAe,CAACC,UAAhB,CAA2BG,IAA3B,CAAgC,CAACF,IAAI,CAAE,aAAP,CAAsBC,KAAK,CAAE,MAA7B,CAAhC,CACH,CAED,GAAIE,CAAAA,CAAM,CAAGnB,CAAQ,CAACoB,MAAT,CAAgBT,CAAhB,CAA0BG,CAA1B,CAAb,CACA,MAAOK,CAAAA,CAAM,CAACE,IAAP,EACV,CAhBD,CAwBApB,CAAkB,CAACG,SAAnB,CAA6BkB,eAA7B,CAA+C,UAAW,CACtD,MAAO,eACV,CAFD,CAIA,MAAsDrB,CAAAA,CAEzD,CAnDK,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 * Competency rule points module.\n *\n * @package    core\n * @copyright  2017 Damyon Wiese\n * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later\n */\n\ndefine(['core/icon_system', 'core/url', 'core/mustache'],\n        function(IconSystem, CoreUrl, Mustache) {\n\n    /**\n     * IconSystemStandard\n     */\n    var IconSystemStandard = function() {\n        IconSystem.apply(this, arguments);\n    };\n    IconSystemStandard.prototype = Object.create(IconSystem.prototype);\n\n    /**\n     * Render an icon.\n     *\n     * @param {String} key\n     * @param {String} component\n     * @param {String} title\n     * @param {String} template\n     * @return {String}\n     * @method renderIcon\n     */\n    IconSystemStandard.prototype.renderIcon = function(key, component, title, template) {\n        var url = CoreUrl.imageUrl(key, component);\n\n        var templatecontext = {\n            attributes: [\n                {name: 'src', value: url},\n                {name: 'alt', value: title},\n                {name: 'title', value: title}\n            ]\n        };\n        if (typeof title === \"undefined\" || title == \"\") {\n            templatecontext.attributes.push({name: 'aria-hidden', value: 'true'});\n        }\n\n        var result = Mustache.render(template, templatecontext);\n        return result.trim();\n    };\n\n    /**\n     * Get the name of the template to pre-cache for this icon system.\n     *\n     * @return {String}\n     * @method getTemplateName\n     */\n    IconSystemStandard.prototype.getTemplateName = function() {\n        return 'core/pix_icon';\n    };\n\n    return /** @alias module:core/icon_system_standard */ IconSystemStandard;\n\n});\n"],"file":"icon_system_standard.min.js"}