PageSourceSearch

https://www.bring.se/static/chunk-CNXBP5OD.mjs

js bring.se collected 2026-10-02 06:47:46 UTC 5,151 bytes, 175 lines download raw bytes

1import {
2  l
3} from "./chunk-5F2AGOG7.mjs";
4import {
5  b
6} from "./chunk-COHI6KQV.mjs";
7import {
8  n as n2
9} from "./chunk-ZMOGZK3N.mjs";
10import {
11  q
12} from "./chunk-G42QW7QR.mjs";
13import {
14  a3 as a,
15  c
16} from "./chunk-2TXB4GCJ.mjs";
17import {
18  __decorate
19} from "./chunk-HX2A5OBT.mjs";
20import {
21  S
22} from "./chunk-IPPA23S5.mjs";
23import {
24  n2 as n
25} from "./chunk-Z4COEAKL.mjs";
26
vendor: 480 bytes, lines 27-41
27// node_modules/@arcgis/core/support/collectionUtils.js
28function t(t2) {
29  return new l({ getCollections: () => [t2.tables, t2.layers], getChildrenFunction: (e) => {
30    const t3 = [];
31    return "tables" in e && t3.push(e.tables), "layers" in e && t3.push(e.layers), t3;
32  }, itemFilterFunction: (e) => {
33    const t3 = e.parent;
34    return !!t3 && "tables" in t3 && t3.tables.includes(e);
35  } });
36}
37function n3(e) {
38  for (const t2 of e.values()) t2?.destroy();
39  e.clear();
40}
41
vendor: 2,695 bytes, lines 42-122
42// node_modules/@arcgis/core/support/LayersMixin.js
43function n4(e, r, t2) {
44  let s, o;
45  if (e) for (let a3 = 0, i = e.length; a3 < i; a3++) {
46    if (s = e.at(a3), s?.[r] === t2) return s;
47    if ("group" === s?.type && (o = n4(s.layers, r, t2), o)) return o;
48  }
49}
50var d = (d2) => {
51  const y = d2;
52  let h = class extends y {
53    constructor(...e) {
54      super(...e), this.layers = new q();
55      const t2 = (e2) => {
56        e2.parent && e2.removeFromParent();
57      }, o = (e2) => {
58        e2.parent = this, this.layerAdded(e2), "elevation" !== e2.type && "base-elevation" !== e2.type || n.getLogger(this).error(`Layer 'title:${e2.title}, id:${e2.id}' of type '${e2.type}' is not supported as an operational layer and will therefore be ignored.`);
59      }, a3 = (e2) => {
60        e2.parent = null, this.layerRemoved(e2);
61      };
62      this.addHandles([this.layers.on("before-add", (e2) => {
63        if (e2.item === this) return e2.preventDefault(), void n.getLogger(this).error("#add()", "Cannot add layer to itself.");
64        t2(e2.item);
65      }), this.layers.on("after-add", (e2) => o(e2.item)), this.layers.on("after-remove", (e2) => a3(e2.item))]);
66    }
67    destroy() {
68      const e = this.layers.toArray();
69      for (const r of e) r.destroy();
70      this.layers.destroy();
71    }
72    removeChildLayer(e) {
73      this.layers.remove(e), super.removeChildLayer?.(e);
74    }
75    get layers() {
76      return this._get("layers");
77    }
78    set layers(e) {
79      this._set("layers", n2(e, this._get("layers")));
80    }
81    add(e, r) {
82      const t2 = this.layers;
83      if (r = t2.getNextIndex(r), e instanceof b) {
84        const s = e;
85        s.parent === this ? this.reorder(s, r) : t2.add(s, r);
86      } else S(e) ? e.then((e2) => {
87        this.destroyed || this.add(e2, r);
88      }) : n.getLogger(this).error("#add()", "The item being added is not a Layer or a Promise that resolves to a Layer.");
89    }
90    addMany(e, r) {
91      const t2 = this.layers;
92      let s = t2.getNextIndex(r);
93      e.slice().forEach((e2) => {
94        e2.parent !== this ? (t2.add(e2, s), s += 1) : this.reorder(e2, s);
95      });
96    }
97    findLayerById(e) {
98      return n4(this.layers, "id", e);
99    }
100    findLayerByUid(e) {
101      return n4(this.layers, "uid", e);
102    }
103    remove(e) {
104      return this.layers.remove(e);
105    }
106    removeMany(e) {
107      return this.layers.removeMany(e);
108    }
109    removeAll() {
110      return this.layers.removeAll();
111    }
112    reorder(e, r) {
113      return this.layers.reorder(e, r);
114    }
115    layerAdded(e) {
116    }
117    layerRemoved(e) {
118    }
119  };
120  return __decorate([a()], h.prototype, "layers", null), h = __decorate([c("esri.support.LayersMixin")], h), h;
121};
122
vendor: 1,591 bytes, lines 123-175
123// node_modules/@arcgis/core/support/TablesMixin.js
124var a2 = /* @__PURE__ */ new Set(["feature", "subtype-group"]);
125function l2(t2, e, r) {
126  if (t2) for (let s = 0, o = t2.length; s < o; s++) {
127    const o2 = t2.at(s);
128    if (o2[e] === r) return o2;
129    if ("group" === o2?.type) {
130      const t3 = l2(o2.tables, e, r);
131      if (t3) return t3;
132    }
133  }
134}
135var n5 = (n6) => {
136  const p = n6;
137  let d2 = class extends p {
138    constructor(...t2) {
139      super(...t2), this.tables = new q(), this.addHandles([this.tables.on("after-add", (t3) => {
140        const e = t3.item;
141        e.parent && e.parent !== this && e.removeFromParent(), e.parent = this, a2.has(e.type) || n.getLogger(this).error(`Layer 'title:${e.title}, id:${e.id}' of type '${e.type}' is not supported as a table and will therefore be ignored.`);
142      }), this.tables.on("after-remove", (t3) => {
143        t3.item.parent = null;
144      })]);
145    }
146    destroy() {
147      const t2 = this.tables.toArray();
148      for (const e of t2) e.destroy();
149      this.tables.destroy();
150    }
151    removeChildLayer(t2) {
152      this.tables.remove(t2), super.removeChildLayer?.(t2);
153    }
154    get tables() {
155      return this._get("tables");
156    }
157    set tables(t2) {
158      this._set("tables", n2(t2, this._get("tables")));
159    }
160    findTableById(t2) {
161      return l2(this.tables, "id", t2);
162    }
163    findTableByUid(t2) {
164      return l2(this.tables, "uid", t2);
165    }
166  };
167  return __decorate([a()], d2.prototype, "tables", null), d2 = __decorate([c("esri.support.TablesMixin")], d2), d2;
168};
169
170export {
171  t,
172  n3 as n,
173  d,
174  n5 as n2
175};

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.