PageSourceSearch

https://www.principal.com/profiles/contrib/houston/modules/pfg_pds…/5.22.1/es/PdsCustomIcon.DM_2IfDB.js

js principal.com collected 2026-09-24 08:40:51 UTC 1,255 bytes, 60 lines download raw bytes

1import { LitElement as a } from "lit";
2import { property as n, query as l } from "lit/decorators.js";
3import { i as p } from "./PdsIcon.CbD8EkXp.js";
4var d = Object.defineProperty, o = (r, t, u, f) => {
5  for (var e = void 0, s = r.length - 1, c; s >= 0; s--)
6    (c = r[s]) && (e = c(t, u, e) || e);
7  return e && d(t, u, e), e;
8};
9class i extends a {
10  constructor() {
11    super(...arguments), this.size = "default", this.color = "icon-default";
12  }
13  /**
14   * ICON SIZE
15   * xs - 12x12
16   * sm - 16x16
17   * default - 20x20
18   * lg - 24x24
19   * xl - 32x32
20   * xxl - 40x40
21   */
22  getSize(t) {
23    switch (t) {
24      case "xs":
25        return 12;
26      case "sm":
27        return 16;
28      case "lg":
29        return 24;
30      case "xl":
31        return 32;
32      case "xxl":
33        return 40;
34      default:
35        return 20;
36    }
37  }
38  firstUpdated(t) {
39    super.firstUpdated(t), this.setIconAttributes();
40  }
41  updated(t) {
42    t.has("color") && this.setIconAttributes();
43  }
44  setIconAttributes() {
45    p.includes(this.color) || (this.color = "icon-default");
46  }
47}
48o([
49  n()
50], i.prototype, "size");
51o([
52  n()
53], i.prototype, "color");
54o([
55  l("svg")
56], i.prototype, "svg");
57export {
58  i as P
59};
60//# sourceMappingURL=PdsCustomIcon.DM_2IfDB.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.