Sindbad~EG File Manager
// @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
define("theme_adaptable/icon_system_fontawesome",["core/icon_system","jquery","core/ajax","core/mustache","core/localstorage","core/url"],(function(IconSystem,$,Ajax,Mustache,LocalStorage,Url){var staticMap=null,fetchMap=null,IconSystemFontawesome=function(){IconSystem.apply(this,arguments)};return(IconSystemFontawesome.prototype=Object.create(IconSystem.prototype)).init=function(){if(staticMap)return $.when(this);var map=LocalStorage.get("theme_adaptable/iconmap-fontawesome");return map&&(map=JSON.parse(map)),map?(staticMap=map,$.when(this)):(null===fetchMap&&(fetchMap=Ajax.call([{methodname:"theme_adaptable_output_load_fontawesome_icon_map",args:[]}],!0,!1)[0]),fetchMap.then(function(map){return staticMap={},$.each(map,(function(index,value){staticMap[value.component+"/"+value.pix]=value.to})),LocalStorage.set("theme_adaptable/iconmap-fontawesome",JSON.stringify(staticMap)),this}.bind(this)))},IconSystemFontawesome.prototype.renderIcon=function(key,component,title,template){var mappedIcon=staticMap[component+"/"+key],unmappedIcon=!1;void 0===mappedIcon&&(unmappedIcon={attributes:[{name:"src",value:Url.imageUrl(key,component)},{name:"alt",value:title},{name:"title",value:title}]});var context={key:mappedIcon,title:title,alt:title,unmappedIcon:unmappedIcon};return Mustache.render(template,context)},IconSystemFontawesome.prototype.getTemplateName=function(){return"theme_adaptable/pix_icon_fontawesome"},IconSystemFontawesome}));
//# sourceMappingURL=icon_system_fontawesome.min.js.map
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists