vendor: 3,731 bytes, lines 1-119
1/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */ 2import { 3 getIconPath, 4 getKitCode 5} from "./chunk.KNQBIPHQ.js"; 6 7// _bundle_/src/components/icon/library.default.ts 8var FA_VERSION = "7.3.0"; 9function getIconFolder(_name, family, variant) { 10 let folder = "solid"; 11 if (family === "chisel") { 12 folder = "chisel-regular"; 13 } 14 if (family === "etch") { 15 folder = "etch-solid"; 16 } 17 if (family === "graphite") { 18 folder = "graphite-thin"; 19 } 20 if (family === "jelly") { 21 folder = "jelly-regular"; 22 if (variant === "duo-regular") folder = "jelly-duo-regular"; 23 if (variant === "fill-regular") folder = "jelly-fill-regular"; 24 } 25 if (family === "jelly-duo") { 26 folder = "jelly-duo-regular"; 27 } 28 if (family === "jelly-fill") { 29 folder = "jelly-fill-regular"; 30 } 31 if (family === "notdog") { 32 if (variant === "solid") folder = "notdog-solid"; 33 if (variant === "duo-solid") folder = "notdog-duo-solid"; 34 } 35 if (family === "notdog-duo") { 36 folder = "notdog-duo-solid"; 37 } 38 if (family === "slab") { 39 if (variant === "solid" || variant === "regular") folder = "slab-regular"; 40 if (variant === "press-regular") folder = "slab-press-regular"; 41 } 42 if (family === "slab-press") { 43 folder = "slab-press-regular"; 44 } 45 if (family === "slab-duo") { 46 folder = "slab-duo-regular"; 47 } 48 if (family === "slab-press-duo") { 49 folder = "slab-press-duo-regular"; 50 } 51 if (family === "thumbprint") { 52 folder = "thumbprint-light"; 53 } 54 if (family === "utility") { 55 folder = "utility-semibold"; 56 } 57 if (family === "utility-duo") { 58 folder = "utility-duo-semibold"; 59 } 60 if (family === "utility-fill") { 61 folder = "utility-fill-semibold"; 62 } 63 if (family === "whiteboard") { 64 folder = "whiteboard-semibold"; 65 } 66 if (family === "mosaic") { 67 folder = "mosaic-solid"; 68 } 69 if (family === "pixel") { 70 folder = "pixel-regular"; 71 } 72 if (family === "vellum") { 73 folder = "vellum-solid"; 74 } 75 if (family === "classic") { 76 if (variant === "thin") folder = "thin"; 77 if (variant === "light") folder = "light"; 78 if (variant === "regular") folder = "regular"; 79 if (variant === "solid") folder = "solid"; 80 } 81 if (family === "duotone") { 82 if (variant === "thin") folder = "duotone-thin"; 83 if (variant === "light") folder = "duotone-light"; 84 if (variant === "regular") folder = "duotone-regular"; 85 if (variant === "solid") folder = "duotone"; 86 } 87 if (family === "sharp") { 88 if (variant === "thin") folder = "sharp-thin"; 89 if (variant === "light") folder = "sharp-light"; 90 if (variant === "regular") folder = "sharp-regular"; 91 if (variant === "solid") folder = "sharp-solid"; 92 } 93 if (family === "sharp-duotone") { 94 if (variant === "thin") folder = "sharp-duotone-thin"; 95 if (variant === "light") folder = "sharp-duotone-light"; 96 if (variant === "regular") folder = "sharp-duotone-regular"; 97 if (variant === "solid") folder = "sharp-duotone-solid"; 98 } 99 if (family === "brands") { 100 folder = "brands"; 101 } 102 return folder; 103} 104function getIconUrl(name, family, variant) { 105 const folder = getIconFolder(name, family, variant); 106 const iconBase = getIconPath(); 107 if (iconBase) { 108 return `${iconBase}/${folder}/${name}.svg`; 109 } 110 const kitCode = getKitCode(); 111 const isPro = kitCode.length > 0; 112 return isPro ? `https://ka-p.fontawesome.com/releases/v${FA_VERSION}/svgs/${folder}/${name}.svg?token=${encodeURIComponent(kitCode)}` : `https://ka-f.fontawesome.com/releases/v${FA_VERSION}/svgs/${folder}/${name}.svg`; 113} 114var library = { 115 name: "default", 116 resolver: (name, family = "classic", variant = "solid") => { 117 return getIconUrl(name, family, variant); 118 }, 119 mutator: (svg, hostEl) => {
vendor: 1,736 bytes, lines 119-155
119 120 if (hostEl?.family && !svg.hasAttribute("data-duotone-initialized")) { 121 const { family, variant } = hostEl; 122 if ( 123 // Duotone 124 family === "duotone" || // Sharp duotone 125 family === "sharp-duotone" || // Notdog duo (correct usage: family="notdog-duo") 126 family === "notdog-duo" || // NOTE: family="notdog" variant="duo-solid" is deprecated 127 family === "notdog" && variant === "duo-solid" || // Jelly duo (correct usage: family="jelly-duo") 128 family === "jelly-duo" || // NOTE: family="jelly" variant="duo-regular" is deprecated 129 family === "jelly" && variant === "duo-regular" || // Utility duo (correct usage: family="utility-duo") 130 family === "utility-duo" || // Slab duo (new in 7.3) 131 family === "slab-duo" || family === "slab-press-duo" || // Thumbprint 132 family === "thumbprint" 133 ) { 134 const paths = [...svg.querySelectorAll("path")]; 135 const primaryPath = paths.find((p) => !p.hasAttribute("opacity")); 136 const secondaryPath = paths.find((p) => p.hasAttribute("opacity")); 137 if (!primaryPath || !secondaryPath) return; 138 primaryPath.setAttribute("data-duotone-primary", ""); 139 secondaryPath.setAttribute("data-duotone-secondary", ""); 140 if (hostEl.swapOpacity && primaryPath && secondaryPath) { 141 const originalOpacity = secondaryPath.getAttribute("opacity") || "0.4"; 142 primaryPath.style.setProperty("--path-opacity", originalOpacity); 143 secondaryPath.style.setProperty("--path-opacity", "1"); 144 } 145 svg.setAttribute("data-duotone-initialized", ""); 146 } 147 } 148 } 149}; 150var library_default_default = library; 151 152export { 153 getIconFolder, 154 library_default_default 155};
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.