2019-07-14 22:05:38 +03:00
|
|
|
var icons = {%s};
|
|
|
|
|
2019-07-24 22:17:46 +03:00
|
|
|
Object.defineProperty(icons, "get", {
|
2019-07-26 01:26:27 +03:00
|
|
|
enumerable: false,
|
2019-07-24 22:17:46 +03:00
|
|
|
value: function(targetName) {
|
|
|
|
if (icons[targetName]) {
|
|
|
|
return icons[targetName];
|
2020-12-14 18:37:15 +03:00
|
|
|
}
|
|
|
|
var normalizedName = targetName.toLowerCase();
|
|
|
|
for (var iconName in icons) {
|
|
|
|
var icon = icons[iconName];
|
2021-02-19 16:06:43 +03:00
|
|
|
if (icon.slug === normalizedName) {
|
|
|
|
return icon;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
for (var iconName in icons) {
|
|
|
|
var icon = icons[iconName];
|
|
|
|
if (icon.title.toLowerCase() === normalizedName) {
|
2021-01-15 23:47:00 +03:00
|
|
|
return icon;
|
2019-07-14 22:05:38 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-07-24 22:17:46 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = icons;
|