@folkehelseinstituttet/designsystem 0.47.0 → 0.47.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +1 -1
- package/{decorate-DFXIek-k.js → decorate-Cy1UktZk.js} +117 -102
- package/{decorate-DFXIek-k.js.map → decorate-Cy1UktZk.js.map} +1 -1
- package/fhi-body.js +3 -3
- package/fhi-button.js +1 -1
- package/fhi-callout.js +1 -1
- package/fhi-checkbox.js +14 -10
- package/fhi-checkbox.js.map +1 -1
- package/fhi-data-table-cell.js +1 -1
- package/fhi-data-table-row.js +1 -1
- package/fhi-data-table.js +1 -1
- package/{fhi-date-input.component-C1cwkp36.js → fhi-date-input.component-CHBsiaAw.js} +4 -4
- package/fhi-date-input.component-CHBsiaAw.js.map +1 -0
- package/fhi-date-input.js +1 -1
- package/fhi-display.js +3 -3
- package/fhi-flex.js +1 -1
- package/fhi-grid.js +1 -1
- package/fhi-headline.js +3 -3
- package/fhi-icon-arrow-down-left.js +1 -1
- package/fhi-icon-arrow-down-right.js +1 -1
- package/fhi-icon-arrow-down.js +1 -1
- package/fhi-icon-arrow-left.js +1 -1
- package/fhi-icon-arrow-right-left.js +1 -1
- package/fhi-icon-arrow-right.js +1 -1
- package/fhi-icon-arrow-up-down.js +1 -1
- package/fhi-icon-arrow-up-left.js +1 -1
- package/fhi-icon-arrow-up-right.js +1 -1
- package/fhi-icon-arrow-up.js +1 -1
- package/fhi-icon-bell.js +1 -1
- package/fhi-icon-calendar-clock.js +1 -1
- package/fhi-icon-calendar.js +1 -1
- package/fhi-icon-chart-bar-stacked.js +1 -1
- package/fhi-icon-chart-bar.js +1 -1
- package/fhi-icon-chart-column-stacked.js +1 -1
- package/fhi-icon-chart-column.js +1 -1
- package/fhi-icon-chart-line.js +1 -1
- package/fhi-icon-chart-no-axes-combined.js +1 -1
- package/fhi-icon-chart-pie.js +1 -1
- package/fhi-icon-check.js +1 -1
- package/fhi-icon-chevron-down.js +1 -1
- package/fhi-icon-chevron-left.js +1 -1
- package/fhi-icon-chevron-right.js +1 -1
- package/fhi-icon-chevron-up.js +1 -1
- package/fhi-icon-chevrons-down.js +1 -1
- package/fhi-icon-chevrons-left.js +1 -1
- package/fhi-icon-chevrons-right.js +1 -1
- package/fhi-icon-chevrons-up.js +1 -1
- package/fhi-icon-circle-arrow-down.js +1 -1
- package/fhi-icon-circle-arrow-left.js +1 -1
- package/fhi-icon-circle-arrow-right.js +1 -1
- package/fhi-icon-circle-arrow-up.js +1 -1
- package/fhi-icon-circle-check-big.js +1 -1
- package/fhi-icon-circle-check.js +1 -1
- package/fhi-icon-circle-chevron-down.js +1 -1
- package/fhi-icon-circle-chevron-left.js +1 -1
- package/fhi-icon-circle-chevron-right.js +1 -1
- package/fhi-icon-circle-chevron-up.js +1 -1
- package/fhi-icon-circle-exclamation.js +1 -1
- package/fhi-icon-circle-info.js +1 -1
- package/fhi-icon-circle-minus.js +1 -1
- package/fhi-icon-circle-plus.js +1 -1
- package/fhi-icon-circle-question.js +1 -1
- package/fhi-icon-circle-x.js +1 -1
- package/fhi-icon-circle.js +1 -1
- package/fhi-icon-clock.js +1 -1
- package/fhi-icon-copy.js +1 -1
- package/fhi-icon-download.js +1 -1
- package/fhi-icon-ellipsis-vertical.js +1 -1
- package/fhi-icon-ellipsis.js +1 -1
- package/fhi-icon-exclamation.js +1 -1
- package/fhi-icon-expand.js +1 -1
- package/fhi-icon-external-link.js +1 -1
- package/fhi-icon-eye-off.js +1 -1
- package/fhi-icon-eye.js +1 -1
- package/fhi-icon-file-text.js +1 -1
- package/fhi-icon-file.js +1 -1
- package/fhi-icon-filter.js +1 -1
- package/fhi-icon-folder.js +1 -1
- package/fhi-icon-gear.js +1 -1
- package/fhi-icon-grid-9-dots.js +1 -1
- package/fhi-icon-grip-horizontal.js +1 -1
- package/fhi-icon-grip-vertical.js +1 -1
- package/fhi-icon-history.js +1 -1
- package/fhi-icon-info.js +1 -1
- package/fhi-icon-link-2-off.js +1 -1
- package/fhi-icon-link-2.js +1 -1
- package/fhi-icon-link.js +1 -1
- package/fhi-icon-lock-open.js +1 -1
- package/fhi-icon-lock.js +1 -1
- package/fhi-icon-log-in.js +1 -1
- package/fhi-icon-log-out.js +1 -1
- package/fhi-icon-mail.js +1 -1
- package/fhi-icon-map-pin.js +1 -1
- package/fhi-icon-menu.js +1 -1
- package/fhi-icon-message.js +1 -1
- package/fhi-icon-minus.js +1 -1
- package/fhi-icon-octagon-alert.js +1 -1
- package/fhi-icon-paperclip.js +1 -1
- package/fhi-icon-pencil.js +1 -1
- package/fhi-icon-phone.js +1 -1
- package/fhi-icon-pin-off.js +1 -1
- package/fhi-icon-pin.js +1 -1
- package/fhi-icon-plus.js +1 -1
- package/fhi-icon-printer.js +1 -1
- package/fhi-icon-question.js +1 -1
- package/fhi-icon-refresh.js +1 -1
- package/fhi-icon-rotate-left.js +1 -1
- package/fhi-icon-rotate-right.js +1 -1
- package/fhi-icon-search.js +1 -1
- package/fhi-icon-send.js +1 -1
- package/fhi-icon-share.js +1 -1
- package/fhi-icon-sheet.js +1 -1
- package/fhi-icon-square-check-big.js +1 -1
- package/fhi-icon-square-check.js +1 -1
- package/fhi-icon-square-pen.js +1 -1
- package/fhi-icon-square-x.js +1 -1
- package/fhi-icon-square.js +1 -1
- package/fhi-icon-trash.js +1 -1
- package/fhi-icon-triangle-alert.js +1 -1
- package/fhi-icon-upload.js +1 -1
- package/fhi-icon-user.js +1 -1
- package/fhi-icon-x.js +1 -1
- package/fhi-label.js +2 -2
- package/fhi-link.js +2 -2
- package/fhi-modal-dialog.js +1 -1
- package/fhi-radio.js +26 -15
- package/fhi-radio.js.map +1 -1
- package/fhi-radio.manifest.json +1 -1
- package/fhi-segmented-control-item.js +1 -1
- package/fhi-segmented-control.js +1 -1
- package/fhi-select-item.js +1 -1
- package/fhi-select.js +1 -1
- package/fhi-tag.js +1 -1
- package/fhi-text-area.js +3 -3
- package/fhi-text-area.js.map +1 -1
- package/fhi-text-input.js +3 -3
- package/fhi-text-input.js.map +1 -1
- package/fhi-title.js +3 -3
- package/{fhi-tooltip.component-O9cZeuTN.js → fhi-tooltip.component-CyNQ5alT.js} +2 -2
- package/{fhi-tooltip.component-O9cZeuTN.js.map → fhi-tooltip.component-CyNQ5alT.js.map} +1 -1
- package/fhi-tooltip.js +1 -1
- package/{if-defined-Dl-W5B5_.js → if-defined-Bwi1u9Ry.js} +2 -2
- package/{if-defined-Dl-W5B5_.js.map → if-defined-Bwi1u9Ry.js.map} +1 -1
- package/index.js +2 -2
- package/live-CT8jbeEb.js +26 -0
- package/live-CT8jbeEb.js.map +1 -0
- package/package.json +1 -1
- package/{unsafe-html-CBTN3162.js → unsafe-html-Bl-zY61x.js} +3 -3
- package/{unsafe-html-CBTN3162.js.map → unsafe-html-Bl-zY61x.js.map} +1 -1
- package/web-types.json +1 -1
- package/fhi-date-input.component-C1cwkp36.js.map +0 -1
|
@@ -29,11 +29,11 @@ var e = globalThis, t = e.ShadowRoot && (e.ShadyCSS === void 0 || e.ShadyCSS.nat
|
|
|
29
29
|
let t = "";
|
|
30
30
|
for (let n of e.cssRules) t += n.cssText;
|
|
31
31
|
return a(t);
|
|
32
|
-
})(e) : e, { is: l, defineProperty: u, getOwnPropertyDescriptor: d, getOwnPropertyNames: ee, getOwnPropertySymbols: te, getPrototypeOf:
|
|
32
|
+
})(e) : e, { is: l, defineProperty: u, getOwnPropertyDescriptor: d, getOwnPropertyNames: ee, getOwnPropertySymbols: te, getPrototypeOf: ne } = Object, f = globalThis, p = f.trustedTypes, re = p ? p.emptyScript : "", ie = f.reactiveElementPolyfillSupport, m = (e, t) => e, h = {
|
|
33
33
|
toAttribute(e, t) {
|
|
34
34
|
switch (t) {
|
|
35
35
|
case Boolean:
|
|
36
|
-
e = e ?
|
|
36
|
+
e = e ? re : null;
|
|
37
37
|
break;
|
|
38
38
|
case Object:
|
|
39
39
|
case Array: e = e == null ? e : JSON.stringify(e);
|
|
@@ -58,23 +58,23 @@ var e = globalThis, t = e.ShadowRoot && (e.ShadyCSS === void 0 || e.ShadyCSS.nat
|
|
|
58
58
|
}
|
|
59
59
|
return n;
|
|
60
60
|
}
|
|
61
|
-
},
|
|
61
|
+
}, g = (e, t) => !l(e, t), _ = {
|
|
62
62
|
attribute: !0,
|
|
63
63
|
type: String,
|
|
64
|
-
converter:
|
|
64
|
+
converter: h,
|
|
65
65
|
reflect: !1,
|
|
66
66
|
useDefault: !1,
|
|
67
|
-
hasChanged:
|
|
67
|
+
hasChanged: g
|
|
68
68
|
};
|
|
69
|
-
Symbol.metadata ??= Symbol("metadata"),
|
|
70
|
-
var
|
|
69
|
+
Symbol.metadata ??= Symbol("metadata"), f.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
70
|
+
var v = class extends HTMLElement {
|
|
71
71
|
static addInitializer(e) {
|
|
72
72
|
this._$Ei(), (this.l ??= []).push(e);
|
|
73
73
|
}
|
|
74
74
|
static get observedAttributes() {
|
|
75
75
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
76
76
|
}
|
|
77
|
-
static createProperty(e, t =
|
|
77
|
+
static createProperty(e, t = _) {
|
|
78
78
|
if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
|
|
79
79
|
let n = Symbol(), r = this.getPropertyDescriptor(e, n, t);
|
|
80
80
|
r !== void 0 && u(this.prototype, e, r);
|
|
@@ -100,16 +100,16 @@ var y = class extends HTMLElement {
|
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
102
|
static getPropertyOptions(e) {
|
|
103
|
-
return this.elementProperties.get(e) ??
|
|
103
|
+
return this.elementProperties.get(e) ?? _;
|
|
104
104
|
}
|
|
105
105
|
static _$Ei() {
|
|
106
|
-
if (this.hasOwnProperty(
|
|
107
|
-
let e =
|
|
106
|
+
if (this.hasOwnProperty(m("elementProperties"))) return;
|
|
107
|
+
let e = ne(this);
|
|
108
108
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
109
109
|
}
|
|
110
110
|
static finalize() {
|
|
111
|
-
if (this.hasOwnProperty(
|
|
112
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
111
|
+
if (this.hasOwnProperty(m("finalized"))) return;
|
|
112
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(m("properties"))) {
|
|
113
113
|
let e = this.properties, t = [...ee(e), ...te(e)];
|
|
114
114
|
for (let n of t) this.createProperty(n, e[n]);
|
|
115
115
|
}
|
|
@@ -171,14 +171,14 @@ var y = class extends HTMLElement {
|
|
|
171
171
|
_$ET(e, t) {
|
|
172
172
|
let n = this.constructor.elementProperties.get(e), r = this.constructor._$Eu(e, n);
|
|
173
173
|
if (r !== void 0 && !0 === n.reflect) {
|
|
174
|
-
let i = (n.converter?.toAttribute === void 0 ?
|
|
174
|
+
let i = (n.converter?.toAttribute === void 0 ? h : n.converter).toAttribute(t, n.type);
|
|
175
175
|
this._$Em = e, i == null ? this.removeAttribute(r) : this.setAttribute(r, i), this._$Em = null;
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
_$AK(e, t) {
|
|
179
179
|
let n = this.constructor, r = n._$Eh.get(e);
|
|
180
180
|
if (r !== void 0 && this._$Em !== r) {
|
|
181
|
-
let e = n.getPropertyOptions(r), i = typeof e.converter == "function" ? { fromAttribute: e.converter } : e.converter?.fromAttribute === void 0 ?
|
|
181
|
+
let e = n.getPropertyOptions(r), i = typeof e.converter == "function" ? { fromAttribute: e.converter } : e.converter?.fromAttribute === void 0 ? h : e.converter;
|
|
182
182
|
this._$Em = r;
|
|
183
183
|
let a = i.fromAttribute(t, e.type);
|
|
184
184
|
this[r] = a ?? this._$Ej?.get(r) ?? a, this._$Em = null;
|
|
@@ -187,7 +187,7 @@ var y = class extends HTMLElement {
|
|
|
187
187
|
requestUpdate(e, t, n, r = !1, i) {
|
|
188
188
|
if (e !== void 0) {
|
|
189
189
|
let a = this.constructor;
|
|
190
|
-
if (!1 === r && (i = this[e]), n ??= a.getPropertyOptions(e), !((n.hasChanged ??
|
|
190
|
+
if (!1 === r && (i = this[e]), n ??= a.getPropertyOptions(e), !((n.hasChanged ?? g)(i, t) || n.useDefault && n.reflect && i === this._$Ej?.get(e) && !this.hasAttribute(a._$Eu(e, n)))) return;
|
|
191
191
|
this.C(e, t, n);
|
|
192
192
|
}
|
|
193
193
|
!1 === this.isUpdatePending && (this._$ES = this._$EP());
|
|
@@ -251,87 +251,87 @@ var y = class extends HTMLElement {
|
|
|
251
251
|
updated(e) {}
|
|
252
252
|
firstUpdated(e) {}
|
|
253
253
|
};
|
|
254
|
-
|
|
254
|
+
v.elementStyles = [], v.shadowRootOptions = { mode: "open" }, v[m("elementProperties")] = /* @__PURE__ */ new Map(), v[m("finalized")] = /* @__PURE__ */ new Map(), ie?.({ ReactiveElement: v }), (f.reactiveElementVersions ??= []).push("2.1.2");
|
|
255
255
|
//#endregion
|
|
256
256
|
//#region ../../node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/lit-html.js
|
|
257
|
-
var
|
|
257
|
+
var y = globalThis, b = (e) => e, x = y.trustedTypes, ae = x ? x.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, S = "$lit$", C = `lit$${Math.random().toFixed(9).slice(2)}$`, w = "?" + C, oe = `<${w}>`, T = document, E = () => T.createComment(""), D = (e) => e === null || typeof e != "object" && typeof e != "function", O = Array.isArray, k = (e) => O(e) || typeof e?.[Symbol.iterator] == "function", A = "[ \n\f\r]", j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, M = /-->/g, N = />/g, P = RegExp(`>|${A}(?:([^\\s"'>=/]+)(${A}*=${A}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"), F = /'/g, I = /"/g, L = /^(?:script|style|textarea|title)$/i, se = ((e) => (t, ...n) => ({
|
|
258
258
|
_$litType$: e,
|
|
259
259
|
strings: t,
|
|
260
260
|
values: n
|
|
261
|
-
}))(1),
|
|
262
|
-
function
|
|
263
|
-
if (!
|
|
264
|
-
return
|
|
261
|
+
}))(1), R = Symbol.for("lit-noChange"), z = Symbol.for("lit-nothing"), B = /* @__PURE__ */ new WeakMap(), V = T.createTreeWalker(T, 129);
|
|
262
|
+
function H(e, t) {
|
|
263
|
+
if (!O(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
264
|
+
return ae === void 0 ? t : ae.createHTML(t);
|
|
265
265
|
}
|
|
266
|
-
var
|
|
267
|
-
let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o =
|
|
266
|
+
var U = (e, t) => {
|
|
267
|
+
let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = j;
|
|
268
268
|
for (let t = 0; t < n; t++) {
|
|
269
269
|
let n = e[t], s, c, l = -1, u = 0;
|
|
270
|
-
for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o ===
|
|
271
|
-
let d = o ===
|
|
272
|
-
a += o ===
|
|
270
|
+
for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o === j ? c[1] === "!--" ? o = M : c[1] === void 0 ? c[2] === void 0 ? c[3] !== void 0 && (o = P) : (L.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = P) : o = N : o === P ? c[0] === ">" ? (o = i ?? j, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, s = c[1], o = c[3] === void 0 ? P : c[3] === "\"" ? I : F) : o === I || o === F ? o = P : o === M || o === N ? o = j : (o = P, i = void 0);
|
|
271
|
+
let d = o === P && e[t + 1].startsWith("/>") ? " " : "";
|
|
272
|
+
a += o === j ? n + oe : l >= 0 ? (r.push(s), n.slice(0, l) + S + n.slice(l) + C + d) : n + C + (l === -2 ? t : d);
|
|
273
273
|
}
|
|
274
|
-
return [
|
|
275
|
-
},
|
|
274
|
+
return [H(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
|
|
275
|
+
}, W = class e {
|
|
276
276
|
constructor({ strings: t, _$litType$: n }, r) {
|
|
277
277
|
let i;
|
|
278
278
|
this.parts = [];
|
|
279
|
-
let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] =
|
|
280
|
-
if (this.el = e.createElement(l, r),
|
|
279
|
+
let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] = U(t, n);
|
|
280
|
+
if (this.el = e.createElement(l, r), V.currentNode = this.el.content, n === 2 || n === 3) {
|
|
281
281
|
let e = this.el.content.firstChild;
|
|
282
282
|
e.replaceWith(...e.childNodes);
|
|
283
283
|
}
|
|
284
|
-
for (; (i =
|
|
284
|
+
for (; (i = V.nextNode()) !== null && c.length < s;) {
|
|
285
285
|
if (i.nodeType === 1) {
|
|
286
|
-
if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(
|
|
287
|
-
let t = u[o++], n = i.getAttribute(e).split(
|
|
286
|
+
if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(S)) {
|
|
287
|
+
let t = u[o++], n = i.getAttribute(e).split(C), r = /([.?@])?(.*)/.exec(t);
|
|
288
288
|
c.push({
|
|
289
289
|
type: 1,
|
|
290
290
|
index: a,
|
|
291
291
|
name: r[2],
|
|
292
292
|
strings: n,
|
|
293
|
-
ctor: r[1] === "." ?
|
|
293
|
+
ctor: r[1] === "." ? Y : r[1] === "?" ? X : r[1] === "@" ? ce : J
|
|
294
294
|
}), i.removeAttribute(e);
|
|
295
|
-
} else e.startsWith(
|
|
295
|
+
} else e.startsWith(C) && (c.push({
|
|
296
296
|
type: 6,
|
|
297
297
|
index: a
|
|
298
298
|
}), i.removeAttribute(e));
|
|
299
|
-
if (
|
|
300
|
-
let e = i.textContent.split(
|
|
299
|
+
if (L.test(i.tagName)) {
|
|
300
|
+
let e = i.textContent.split(C), t = e.length - 1;
|
|
301
301
|
if (t > 0) {
|
|
302
|
-
i.textContent =
|
|
303
|
-
for (let n = 0; n < t; n++) i.append(e[n],
|
|
302
|
+
i.textContent = x ? x.emptyScript : "";
|
|
303
|
+
for (let n = 0; n < t; n++) i.append(e[n], E()), V.nextNode(), c.push({
|
|
304
304
|
type: 2,
|
|
305
305
|
index: ++a
|
|
306
306
|
});
|
|
307
|
-
i.append(e[t],
|
|
307
|
+
i.append(e[t], E());
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
|
-
} else if (i.nodeType === 8) if (i.data ===
|
|
310
|
+
} else if (i.nodeType === 8) if (i.data === w) c.push({
|
|
311
311
|
type: 2,
|
|
312
312
|
index: a
|
|
313
313
|
});
|
|
314
314
|
else {
|
|
315
315
|
let e = -1;
|
|
316
|
-
for (; (e = i.data.indexOf(
|
|
316
|
+
for (; (e = i.data.indexOf(C, e + 1)) !== -1;) c.push({
|
|
317
317
|
type: 7,
|
|
318
318
|
index: a
|
|
319
|
-
}), e +=
|
|
319
|
+
}), e += C.length - 1;
|
|
320
320
|
}
|
|
321
321
|
a++;
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
static createElement(e, t) {
|
|
325
|
-
let n =
|
|
325
|
+
let n = T.createElement("template");
|
|
326
326
|
return n.innerHTML = e, n;
|
|
327
327
|
}
|
|
328
328
|
};
|
|
329
|
-
function
|
|
330
|
-
if (t ===
|
|
331
|
-
let i = r === void 0 ? n._$Cl : n._$Co?.[r], a =
|
|
332
|
-
return i?.constructor !== a && (i?._$AO?.(!1), a === void 0 ? i = void 0 : (i = new a(e), i._$AT(e, n, r)), r === void 0 ? n._$Cl = i : (n._$Co ??= [])[r] = i), i !== void 0 && (t =
|
|
329
|
+
function G(e, t, n = e, r) {
|
|
330
|
+
if (t === R) return t;
|
|
331
|
+
let i = r === void 0 ? n._$Cl : n._$Co?.[r], a = D(t) ? void 0 : t._$litDirective$;
|
|
332
|
+
return i?.constructor !== a && (i?._$AO?.(!1), a === void 0 ? i = void 0 : (i = new a(e), i._$AT(e, n, r)), r === void 0 ? n._$Cl = i : (n._$Co ??= [])[r] = i), i !== void 0 && (t = G(e, i._$AS(e, t.values), i, r)), t;
|
|
333
333
|
}
|
|
334
|
-
var
|
|
334
|
+
var K = class {
|
|
335
335
|
constructor(e, t) {
|
|
336
336
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
|
|
337
337
|
}
|
|
@@ -342,17 +342,17 @@ var se = class {
|
|
|
342
342
|
return this._$AM._$AU;
|
|
343
343
|
}
|
|
344
344
|
u(e) {
|
|
345
|
-
let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ??
|
|
346
|
-
|
|
347
|
-
let i =
|
|
345
|
+
let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? T).importNode(t, !0);
|
|
346
|
+
V.currentNode = r;
|
|
347
|
+
let i = V.nextNode(), a = 0, o = 0, s = n[0];
|
|
348
348
|
for (; s !== void 0;) {
|
|
349
349
|
if (a === s.index) {
|
|
350
350
|
let t;
|
|
351
|
-
s.type === 2 ? t = new q(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new
|
|
351
|
+
s.type === 2 ? t = new q(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new le(i, this, e)), this._$AV.push(t), s = n[++o];
|
|
352
352
|
}
|
|
353
|
-
a !== s?.index && (i =
|
|
353
|
+
a !== s?.index && (i = V.nextNode(), a++);
|
|
354
354
|
}
|
|
355
|
-
return
|
|
355
|
+
return V.currentNode = T, r;
|
|
356
356
|
}
|
|
357
357
|
p(e) {
|
|
358
358
|
let t = 0;
|
|
@@ -363,7 +363,7 @@ var se = class {
|
|
|
363
363
|
return this._$AM?._$AU ?? this._$Cv;
|
|
364
364
|
}
|
|
365
365
|
constructor(e, t, n, r) {
|
|
366
|
-
this.type = 2, this._$AH =
|
|
366
|
+
this.type = 2, this._$AH = z, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = n, this.options = r, this._$Cv = r?.isConnected ?? !0;
|
|
367
367
|
}
|
|
368
368
|
get parentNode() {
|
|
369
369
|
let e = this._$AA.parentNode, t = this._$AM;
|
|
@@ -376,7 +376,7 @@ var se = class {
|
|
|
376
376
|
return this._$AB;
|
|
377
377
|
}
|
|
378
378
|
_$AI(e, t = this) {
|
|
379
|
-
e =
|
|
379
|
+
e = G(this, e, t), D(e) ? e === z || e == null || e === "" ? (this._$AH !== z && this._$AR(), this._$AH = z) : e !== this._$AH && e !== R && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? k(e) ? this.k(e) : this._(e) : this.T(e) : this.$(e);
|
|
380
380
|
}
|
|
381
381
|
O(e) {
|
|
382
382
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -385,30 +385,30 @@ var se = class {
|
|
|
385
385
|
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
386
386
|
}
|
|
387
387
|
_(e) {
|
|
388
|
-
this._$AH !==
|
|
388
|
+
this._$AH !== z && D(this._$AH) ? this._$AA.nextSibling.data = e : this.T(T.createTextNode(e)), this._$AH = e;
|
|
389
389
|
}
|
|
390
390
|
$(e) {
|
|
391
|
-
let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el =
|
|
391
|
+
let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = W.createElement(H(n.h, n.h[0]), this.options)), n);
|
|
392
392
|
if (this._$AH?._$AD === r) this._$AH.p(t);
|
|
393
393
|
else {
|
|
394
|
-
let e = new
|
|
394
|
+
let e = new K(r, this), n = e.u(this.options);
|
|
395
395
|
e.p(t), this.T(n), this._$AH = e;
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
398
|
_$AC(e) {
|
|
399
|
-
let t =
|
|
400
|
-
return t === void 0 &&
|
|
399
|
+
let t = B.get(e.strings);
|
|
400
|
+
return t === void 0 && B.set(e.strings, t = new W(e)), t;
|
|
401
401
|
}
|
|
402
402
|
k(t) {
|
|
403
|
-
|
|
403
|
+
O(this._$AH) || (this._$AH = [], this._$AR());
|
|
404
404
|
let n = this._$AH, r, i = 0;
|
|
405
|
-
for (let a of t) i === n.length ? n.push(r = new e(this.O(
|
|
405
|
+
for (let a of t) i === n.length ? n.push(r = new e(this.O(E()), this.O(E()), this, this.options)) : r = n[i], r._$AI(a), i++;
|
|
406
406
|
i < n.length && (this._$AR(r && r._$AB.nextSibling, i), n.length = i);
|
|
407
407
|
}
|
|
408
408
|
_$AR(e = this._$AA.nextSibling, t) {
|
|
409
409
|
for (this._$AP?.(!1, !0, t); e !== this._$AB;) {
|
|
410
|
-
let t =
|
|
411
|
-
|
|
410
|
+
let t = b(e).nextSibling;
|
|
411
|
+
b(e).remove(), e = t;
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
414
|
setConnected(e) {
|
|
@@ -422,47 +422,47 @@ var se = class {
|
|
|
422
422
|
return this._$AM._$AU;
|
|
423
423
|
}
|
|
424
424
|
constructor(e, t, n, r, i) {
|
|
425
|
-
this.type = 1, this._$AH =
|
|
425
|
+
this.type = 1, this._$AH = z, this._$AN = void 0, this.element = e, this.name = t, this._$AM = r, this.options = i, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(/* @__PURE__ */ new String()), this.strings = n) : this._$AH = z;
|
|
426
426
|
}
|
|
427
427
|
_$AI(e, t = this, n, r) {
|
|
428
428
|
let i = this.strings, a = !1;
|
|
429
|
-
if (i === void 0) e =
|
|
429
|
+
if (i === void 0) e = G(this, e, t, 0), a = !D(e) || e !== this._$AH && e !== R, a && (this._$AH = e);
|
|
430
430
|
else {
|
|
431
431
|
let r = e, o, s;
|
|
432
|
-
for (e = i[0], o = 0; o < i.length - 1; o++) s =
|
|
432
|
+
for (e = i[0], o = 0; o < i.length - 1; o++) s = G(this, r[n + o], t, o), s === R && (s = this._$AH[o]), a ||= !D(s) || s !== this._$AH[o], s === z ? e = z : e !== z && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
|
|
433
433
|
}
|
|
434
434
|
a && !r && this.j(e);
|
|
435
435
|
}
|
|
436
436
|
j(e) {
|
|
437
|
-
e ===
|
|
437
|
+
e === z ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
438
438
|
}
|
|
439
|
-
},
|
|
439
|
+
}, Y = class extends J {
|
|
440
440
|
constructor() {
|
|
441
441
|
super(...arguments), this.type = 3;
|
|
442
442
|
}
|
|
443
443
|
j(e) {
|
|
444
|
-
this.element[this.name] = e ===
|
|
444
|
+
this.element[this.name] = e === z ? void 0 : e;
|
|
445
445
|
}
|
|
446
|
-
},
|
|
446
|
+
}, X = class extends J {
|
|
447
447
|
constructor() {
|
|
448
448
|
super(...arguments), this.type = 4;
|
|
449
449
|
}
|
|
450
450
|
j(e) {
|
|
451
|
-
this.element.toggleAttribute(this.name, !!e && e !==
|
|
451
|
+
this.element.toggleAttribute(this.name, !!e && e !== z);
|
|
452
452
|
}
|
|
453
|
-
},
|
|
453
|
+
}, ce = class extends J {
|
|
454
454
|
constructor(e, t, n, r, i) {
|
|
455
455
|
super(e, t, n, r, i), this.type = 5;
|
|
456
456
|
}
|
|
457
457
|
_$AI(e, t = this) {
|
|
458
|
-
if ((e =
|
|
459
|
-
let n = this._$AH, r = e ===
|
|
458
|
+
if ((e = G(this, e, t, 0) ?? z) === R) return;
|
|
459
|
+
let n = this._$AH, r = e === z && n !== z || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, i = e !== z && (n === z || r);
|
|
460
460
|
r && this.element.removeEventListener(this.name, this, n), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
461
461
|
}
|
|
462
462
|
handleEvent(e) {
|
|
463
463
|
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
|
|
464
464
|
}
|
|
465
|
-
},
|
|
465
|
+
}, le = class {
|
|
466
466
|
constructor(e, t, n) {
|
|
467
467
|
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
|
|
468
468
|
}
|
|
@@ -470,18 +470,33 @@ var se = class {
|
|
|
470
470
|
return this._$AM._$AU;
|
|
471
471
|
}
|
|
472
472
|
_$AI(e) {
|
|
473
|
-
|
|
474
|
-
}
|
|
475
|
-
},
|
|
476
|
-
|
|
477
|
-
|
|
473
|
+
G(this, e);
|
|
474
|
+
}
|
|
475
|
+
}, ue = {
|
|
476
|
+
M: S,
|
|
477
|
+
P: C,
|
|
478
|
+
A: w,
|
|
479
|
+
C: 1,
|
|
480
|
+
L: U,
|
|
481
|
+
R: K,
|
|
482
|
+
D: k,
|
|
483
|
+
V: G,
|
|
484
|
+
I: q,
|
|
485
|
+
H: J,
|
|
486
|
+
N: X,
|
|
487
|
+
U: ce,
|
|
488
|
+
B: Y,
|
|
489
|
+
F: le
|
|
490
|
+
}, de = y.litHtmlPolyfillSupport;
|
|
491
|
+
de?.(W, q), (y.litHtmlVersions ??= []).push("3.3.3");
|
|
492
|
+
var fe = (e, t, n) => {
|
|
478
493
|
let r = n?.renderBefore ?? t, i = r._$litPart$;
|
|
479
494
|
if (i === void 0) {
|
|
480
495
|
let e = n?.renderBefore ?? null;
|
|
481
|
-
r._$litPart$ = i = new q(t.insertBefore(
|
|
496
|
+
r._$litPart$ = i = new q(t.insertBefore(E(), e), e, void 0, n ?? {});
|
|
482
497
|
}
|
|
483
498
|
return i._$AI(e), i;
|
|
484
|
-
},
|
|
499
|
+
}, Z = globalThis, Q = class extends v {
|
|
485
500
|
constructor() {
|
|
486
501
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
487
502
|
}
|
|
@@ -491,7 +506,7 @@ var pe = (e, t, n) => {
|
|
|
491
506
|
}
|
|
492
507
|
update(e) {
|
|
493
508
|
let t = this.render();
|
|
494
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do =
|
|
509
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = fe(t, this.renderRoot, this.renderOptions);
|
|
495
510
|
}
|
|
496
511
|
connectedCallback() {
|
|
497
512
|
super.connectedCallback(), this._$Do?.setConnected(!0);
|
|
@@ -500,24 +515,24 @@ var pe = (e, t, n) => {
|
|
|
500
515
|
super.disconnectedCallback(), this._$Do?.setConnected(!1);
|
|
501
516
|
}
|
|
502
517
|
render() {
|
|
503
|
-
return
|
|
518
|
+
return R;
|
|
504
519
|
}
|
|
505
520
|
};
|
|
506
|
-
|
|
507
|
-
var
|
|
508
|
-
|
|
521
|
+
Q._$litElement$ = !0, Q.finalized = !0, Z.litElementHydrateSupport?.({ LitElement: Q });
|
|
522
|
+
var pe = Z.litElementPolyfillSupport;
|
|
523
|
+
pe?.({ LitElement: Q }), (Z.litElementVersions ??= []).push("4.2.2");
|
|
509
524
|
//#endregion
|
|
510
525
|
//#region ../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/custom-element.js
|
|
511
|
-
var
|
|
526
|
+
var me = (e) => (t, n) => {
|
|
512
527
|
n === void 0 ? customElements.define(e, t) : n.addInitializer(() => {
|
|
513
528
|
customElements.define(e, t);
|
|
514
529
|
});
|
|
515
530
|
}, he = {
|
|
516
531
|
attribute: !0,
|
|
517
532
|
type: String,
|
|
518
|
-
converter:
|
|
533
|
+
converter: h,
|
|
519
534
|
reflect: !1,
|
|
520
|
-
hasChanged:
|
|
535
|
+
hasChanged: g
|
|
521
536
|
}, ge = (e = he, t, n) => {
|
|
522
537
|
let { kind: r, metadata: i } = n, a = globalThis.litPropertyMetadata.get(i);
|
|
523
538
|
if (a === void 0 && globalThis.litPropertyMetadata.set(i, a = /* @__PURE__ */ new Map()), r === "setter" && ((e = Object.create(e)).wrapped = !0), a.set(n.name, e), r === "accessor") {
|
|
@@ -541,7 +556,7 @@ var Z = (e) => (t, n) => {
|
|
|
541
556
|
}
|
|
542
557
|
throw Error("Unsupported decorator location: " + r);
|
|
543
558
|
};
|
|
544
|
-
function
|
|
559
|
+
function _e(e) {
|
|
545
560
|
return (t, n) => typeof n == "object" ? ge(e, t, n) : ((e, t, n) => {
|
|
546
561
|
let r = t.hasOwnProperty(n);
|
|
547
562
|
return t.constructor.createProperty(n, e), r ? Object.getOwnPropertyDescriptor(t, n) : void 0;
|
|
@@ -549,8 +564,8 @@ function Q(e) {
|
|
|
549
564
|
}
|
|
550
565
|
//#endregion
|
|
551
566
|
//#region ../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/state.js
|
|
552
|
-
function
|
|
553
|
-
return
|
|
567
|
+
function ve(e) {
|
|
568
|
+
return _e({
|
|
554
569
|
...e,
|
|
555
570
|
state: !0,
|
|
556
571
|
attribute: !1
|
|
@@ -561,7 +576,7 @@ function _e(e) {
|
|
|
561
576
|
var $ = (e, t, n) => (n.configurable = !0, n.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(e, t, n), n);
|
|
562
577
|
//#endregion
|
|
563
578
|
//#region ../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/query.js
|
|
564
|
-
function
|
|
579
|
+
function ye(e, t) {
|
|
565
580
|
return (n, r, i) => {
|
|
566
581
|
let a = (t) => t.renderRoot?.querySelector(e) ?? null;
|
|
567
582
|
if (t) {
|
|
@@ -588,7 +603,7 @@ function ve(e, t) {
|
|
|
588
603
|
}
|
|
589
604
|
//#endregion
|
|
590
605
|
//#region ../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js
|
|
591
|
-
function
|
|
606
|
+
function be(e) {
|
|
592
607
|
return (t, n) => {
|
|
593
608
|
let { slot: r, selector: i } = e ?? {}, a = "slot" + (r ? `[name=${r}]` : ":not([name])");
|
|
594
609
|
return $(t, n, { get() {
|
|
@@ -599,13 +614,13 @@ function ye(e) {
|
|
|
599
614
|
}
|
|
600
615
|
//#endregion
|
|
601
616
|
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorate.js
|
|
602
|
-
function
|
|
617
|
+
function xe(e, t, n, r) {
|
|
603
618
|
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
604
619
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
|
|
605
620
|
else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
|
|
606
621
|
return i > 3 && a && Object.defineProperty(t, n, a), a;
|
|
607
622
|
}
|
|
608
623
|
//#endregion
|
|
609
|
-
export {
|
|
624
|
+
export { _e as a, z as c, ue as d, o as f, ve as i, R as l, be as n, me as o, ye as r, Q as s, xe as t, se as u };
|
|
610
625
|
|
|
611
|
-
//# sourceMappingURL=decorate-
|
|
626
|
+
//# sourceMappingURL=decorate-Cy1UktZk.js.map
|