1import { n as e, t } from "./decorate.BRF14qyK.js"; 2import { n } from "./PdsIcon.BVhTHNPZ.js"; 3import { LitElement as r } from "lit"; 4import { property as i, query as a } from "lit/decorators.js"; 5//#region packages/icons-web/src/lib/icons/PdsCustomIcon.ts 6var o = class extends r { 7 constructor(...e) { 8 super(...e), this.size = "default", this.color = "icon-default"; 9 } 10 getSize(e) { 11 switch (e) { 12 case "xs": return 12; 13 case "sm": return 16; 14 case "lg": return 24; 15 case "xl": return 32; 16 case "xxl": return 40; 17 default: return 20; 18 } 19 } 20 firstUpdated(e) { 21 super.firstUpdated(e), this.setIconAttributes(); 22 } 23 updated(e) { 24 e.has("color") && this.setIconAttributes(); 25 } 26 setIconAttributes() { 27 n.includes(this.color) || (this.color = "icon-default"); 28 } 29}; 30t([i(), e("design:type", String)], o.prototype, "size", void 0), t([i(), e("design:type", String)], o.prototype, "color", void 0), t([a("svg"), e("design:type", typeof SVGSVGElement > "u" ? Object : SVGSVGElement)], o.prototype, "svg", void 0); 31//#endregion 32export { o as t }; 33 34//# sourceMappingURL=PdsCustomIcon.-VewaMIP.js.map
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.