vendor: 1,345 bytes, lines 1-55
1/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */ 2import { 3 library_default_default 4} from "./chunk.REBJ6WJI.js"; 5import { 6 library_system_default 7} from "./chunk.C562AXT3.js"; 8 9// _bundle_/src/components/icon/library.ts 10var defaultIconFamily = "classic"; 11var registry = [library_default_default, library_system_default]; 12var watchedIcons = /* @__PURE__ */ new Set(); 13function watchIcon(icon) { 14 watchedIcons.add(icon); 15} 16function unwatchIcon(icon) { 17 watchedIcons.delete(icon); 18} 19function getIconLibrary(name) { 20 return registry.find((lib) => lib.name === name); 21} 22function registerIconLibrary(name, options) { 23 unregisterIconLibrary(name); 24 registry.push({ 25 name, 26 resolver: options.resolver, 27 mutator: options.mutator, 28 spriteSheet: options.spriteSheet 29 }); 30 watchedIcons.forEach((icon) => { 31 if (icon.library === name) { 32 icon.setIcon(); 33 } 34 }); 35} 36function unregisterIconLibrary(name) { 37 registry = registry.filter((lib) => lib.name !== name); 38} 39function setDefaultIconFamily(family) { 40 defaultIconFamily = family; 41 watchedIcons.forEach((icon) => icon.setIcon()); 42} 43function getDefaultIconFamily() { 44 return defaultIconFamily; 45} 46 47export { 48 watchIcon, 49 unwatchIcon, 50 getIconLibrary, 51 registerIconLibrary, 52 unregisterIconLibrary, 53 setDefaultIconFamily, 54 getDefaultIconFamily 55};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.