@florid-kit/components 0.8.29 → 0.8.31
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/components/filter-chip.d.ts +1 -1
- package/components/side-panel.d.ts +5 -5
- package/index.js +41 -41
- package/index.mjs +275 -275
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
*/
|
|
6
6
|
const pt = globalThis, Et = pt.ShadowRoot && (pt.ShadyCSS === void 0 || pt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, St = Symbol(), Nt = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
let Yt = class {
|
|
8
|
-
constructor(t, e,
|
|
9
|
-
if (this._$cssResult$ = !0,
|
|
8
|
+
constructor(t, e, n) {
|
|
9
|
+
if (this._$cssResult$ = !0, n !== St) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
10
10
|
this.cssText = t, this.t = e;
|
|
11
11
|
}
|
|
12
12
|
get styleSheet() {
|
|
13
13
|
let t = this.o;
|
|
14
14
|
const e = this.t;
|
|
15
15
|
if (Et && t === void 0) {
|
|
16
|
-
const
|
|
17
|
-
|
|
16
|
+
const n = e !== void 0 && e.length === 1;
|
|
17
|
+
n && (t = Nt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), n && Nt.set(e, t));
|
|
18
18
|
}
|
|
19
19
|
return t;
|
|
20
20
|
}
|
|
@@ -23,21 +23,21 @@ let Yt = class {
|
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
const se = (o) => new Yt(typeof o == "string" ? o : o + "", void 0, St), g = (o, ...t) => {
|
|
26
|
-
const e = o.length === 1 ? o[0] : t.reduce((
|
|
26
|
+
const e = o.length === 1 ? o[0] : t.reduce((n, i, r) => n + ((s) => {
|
|
27
27
|
if (s._$cssResult$ === !0) return s.cssText;
|
|
28
28
|
if (typeof s == "number") return s;
|
|
29
29
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + s + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
30
|
-
})(i) + o[
|
|
30
|
+
})(i) + o[r + 1], o[0]);
|
|
31
31
|
return new Yt(e, o, St);
|
|
32
32
|
}, ae = (o, t) => {
|
|
33
33
|
if (Et) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
34
34
|
else for (const e of t) {
|
|
35
|
-
const
|
|
36
|
-
i !== void 0 &&
|
|
35
|
+
const n = document.createElement("style"), i = pt.litNonce;
|
|
36
|
+
i !== void 0 && n.setAttribute("nonce", i), n.textContent = e.cssText, o.appendChild(n);
|
|
37
37
|
}
|
|
38
38
|
}, Ft = Et ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
39
39
|
let e = "";
|
|
40
|
-
for (const
|
|
40
|
+
for (const n of t.cssRules) e += n.cssText;
|
|
41
41
|
return se(e);
|
|
42
42
|
})(o) : o;
|
|
43
43
|
/**
|
|
@@ -84,19 +84,19 @@ let G = class extends HTMLElement {
|
|
|
84
84
|
}
|
|
85
85
|
static createProperty(t, e = Vt) {
|
|
86
86
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
87
|
-
const
|
|
87
|
+
const n = Symbol(), i = this.getPropertyDescriptor(t, n, e);
|
|
88
88
|
i !== void 0 && ce(this.prototype, t, i);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
static getPropertyDescriptor(t, e,
|
|
92
|
-
const { get: i, set:
|
|
91
|
+
static getPropertyDescriptor(t, e, n) {
|
|
92
|
+
const { get: i, set: r } = he(this.prototype, t) ?? { get() {
|
|
93
93
|
return this[e];
|
|
94
94
|
}, set(s) {
|
|
95
95
|
this[e] = s;
|
|
96
96
|
} };
|
|
97
97
|
return { get: i, set(s) {
|
|
98
98
|
const h = i == null ? void 0 : i.call(this);
|
|
99
|
-
|
|
99
|
+
r == null || r.call(this, s), this.requestUpdate(t, h, n);
|
|
100
100
|
}, configurable: !0, enumerable: !0 };
|
|
101
101
|
}
|
|
102
102
|
static getPropertyOptions(t) {
|
|
@@ -110,17 +110,17 @@ let G = class extends HTMLElement {
|
|
|
110
110
|
static finalize() {
|
|
111
111
|
if (this.hasOwnProperty(tt("finalized"))) return;
|
|
112
112
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(tt("properties"))) {
|
|
113
|
-
const e = this.properties,
|
|
114
|
-
for (const i of
|
|
113
|
+
const e = this.properties, n = [...de(e), ...pe(e)];
|
|
114
|
+
for (const i of n) this.createProperty(i, e[i]);
|
|
115
115
|
}
|
|
116
116
|
const t = this[Symbol.metadata];
|
|
117
117
|
if (t !== null) {
|
|
118
118
|
const e = litPropertyMetadata.get(t);
|
|
119
|
-
if (e !== void 0) for (const [
|
|
119
|
+
if (e !== void 0) for (const [n, i] of e) this.elementProperties.set(n, i);
|
|
120
120
|
}
|
|
121
121
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
122
|
-
for (const [e,
|
|
123
|
-
const i = this._$Eu(e,
|
|
122
|
+
for (const [e, n] of this.elementProperties) {
|
|
123
|
+
const i = this._$Eu(e, n);
|
|
124
124
|
i !== void 0 && this._$Eh.set(i, e);
|
|
125
125
|
}
|
|
126
126
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
@@ -128,14 +128,14 @@ let G = class extends HTMLElement {
|
|
|
128
128
|
static finalizeStyles(t) {
|
|
129
129
|
const e = [];
|
|
130
130
|
if (Array.isArray(t)) {
|
|
131
|
-
const
|
|
132
|
-
for (const i of
|
|
131
|
+
const n = new Set(t.flat(1 / 0).reverse());
|
|
132
|
+
for (const i of n) e.unshift(Ft(i));
|
|
133
133
|
} else t !== void 0 && e.push(Ft(t));
|
|
134
134
|
return e;
|
|
135
135
|
}
|
|
136
136
|
static _$Eu(t, e) {
|
|
137
|
-
const
|
|
138
|
-
return
|
|
137
|
+
const n = e.attribute;
|
|
138
|
+
return n === !1 ? void 0 : typeof n == "string" ? n : typeof t == "string" ? t.toLowerCase() : void 0;
|
|
139
139
|
}
|
|
140
140
|
constructor() {
|
|
141
141
|
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
|
@@ -154,7 +154,7 @@ let G = class extends HTMLElement {
|
|
|
154
154
|
}
|
|
155
155
|
_$E_() {
|
|
156
156
|
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
|
157
|
-
for (const
|
|
157
|
+
for (const n of e.keys()) this.hasOwnProperty(n) && (t.set(n, this[n]), delete this[n]);
|
|
158
158
|
t.size > 0 && (this._$Ep = t);
|
|
159
159
|
}
|
|
160
160
|
createRenderRoot() {
|
|
@@ -164,8 +164,8 @@ let G = class extends HTMLElement {
|
|
|
164
164
|
connectedCallback() {
|
|
165
165
|
var t;
|
|
166
166
|
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
|
|
167
|
-
var
|
|
168
|
-
return (
|
|
167
|
+
var n;
|
|
168
|
+
return (n = e.hostConnected) == null ? void 0 : n.call(e);
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
enableUpdating(t) {
|
|
@@ -173,40 +173,40 @@ let G = class extends HTMLElement {
|
|
|
173
173
|
disconnectedCallback() {
|
|
174
174
|
var t;
|
|
175
175
|
(t = this._$EO) == null || t.forEach((e) => {
|
|
176
|
-
var
|
|
177
|
-
return (
|
|
176
|
+
var n;
|
|
177
|
+
return (n = e.hostDisconnected) == null ? void 0 : n.call(e);
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
|
-
attributeChangedCallback(t, e,
|
|
181
|
-
this._$AK(t,
|
|
180
|
+
attributeChangedCallback(t, e, n) {
|
|
181
|
+
this._$AK(t, n);
|
|
182
182
|
}
|
|
183
183
|
_$ET(t, e) {
|
|
184
|
-
var
|
|
185
|
-
const
|
|
186
|
-
if (i !== void 0 &&
|
|
187
|
-
const s = (((
|
|
184
|
+
var r;
|
|
185
|
+
const n = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, n);
|
|
186
|
+
if (i !== void 0 && n.reflect === !0) {
|
|
187
|
+
const s = (((r = n.converter) == null ? void 0 : r.toAttribute) !== void 0 ? n.converter : ut).toAttribute(e, n.type);
|
|
188
188
|
this._$Em = t, s == null ? this.removeAttribute(i) : this.setAttribute(i, s), this._$Em = null;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
_$AK(t, e) {
|
|
192
|
-
var
|
|
193
|
-
const
|
|
192
|
+
var r, s;
|
|
193
|
+
const n = this.constructor, i = n._$Eh.get(t);
|
|
194
194
|
if (i !== void 0 && this._$Em !== i) {
|
|
195
|
-
const h =
|
|
195
|
+
const h = n.getPropertyOptions(i), c = typeof h.converter == "function" ? { fromAttribute: h.converter } : ((r = h.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? h.converter : ut;
|
|
196
196
|
this._$Em = i, this[i] = c.fromAttribute(e, h.type) ?? ((s = this._$Ej) == null ? void 0 : s.get(i)) ?? null, this._$Em = null;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
requestUpdate(t, e,
|
|
199
|
+
requestUpdate(t, e, n) {
|
|
200
200
|
var i;
|
|
201
201
|
if (t !== void 0) {
|
|
202
|
-
const
|
|
203
|
-
if (
|
|
204
|
-
this.C(t, e,
|
|
202
|
+
const r = this.constructor, s = this[t];
|
|
203
|
+
if (n ?? (n = r.getPropertyOptions(t)), !((n.hasChanged ?? Lt)(s, e) || n.useDefault && n.reflect && s === ((i = this._$Ej) == null ? void 0 : i.get(t)) && !this.hasAttribute(r._$Eu(t, n)))) return;
|
|
204
|
+
this.C(t, e, n);
|
|
205
205
|
}
|
|
206
206
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
207
207
|
}
|
|
208
|
-
C(t, e, { useDefault:
|
|
209
|
-
|
|
208
|
+
C(t, e, { useDefault: n, reflect: i, wrapped: r }, s) {
|
|
209
|
+
n && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, s ?? e ?? this[t]), r !== !0 || s !== void 0) || (this._$AL.has(t) || (this.hasUpdated || n || (e = void 0), this._$AL.set(t, e)), i === !0 && this._$Em !== t && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t));
|
|
210
210
|
}
|
|
211
211
|
async _$EP() {
|
|
212
212
|
this.isUpdatePending = !0;
|
|
@@ -222,25 +222,25 @@ let G = class extends HTMLElement {
|
|
|
222
222
|
return this.performUpdate();
|
|
223
223
|
}
|
|
224
224
|
performUpdate() {
|
|
225
|
-
var
|
|
225
|
+
var n;
|
|
226
226
|
if (!this.isUpdatePending) return;
|
|
227
227
|
if (!this.hasUpdated) {
|
|
228
228
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
229
|
-
for (const [
|
|
229
|
+
for (const [r, s] of this._$Ep) this[r] = s;
|
|
230
230
|
this._$Ep = void 0;
|
|
231
231
|
}
|
|
232
232
|
const i = this.constructor.elementProperties;
|
|
233
|
-
if (i.size > 0) for (const [
|
|
234
|
-
const { wrapped: h } = s, c = this[
|
|
235
|
-
h !== !0 || this._$AL.has(
|
|
233
|
+
if (i.size > 0) for (const [r, s] of i) {
|
|
234
|
+
const { wrapped: h } = s, c = this[r];
|
|
235
|
+
h !== !0 || this._$AL.has(r) || c === void 0 || this.C(r, void 0, s, c);
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
let t = !1;
|
|
239
239
|
const e = this._$AL;
|
|
240
240
|
try {
|
|
241
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (
|
|
242
|
-
var
|
|
243
|
-
return (
|
|
241
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (n = this._$EO) == null || n.forEach((i) => {
|
|
242
|
+
var r;
|
|
243
|
+
return (r = i.hostUpdate) == null ? void 0 : r.call(i);
|
|
244
244
|
}), this.update(e)) : this._$EM();
|
|
245
245
|
} catch (i) {
|
|
246
246
|
throw t = !1, this._$EM(), i;
|
|
@@ -251,9 +251,9 @@ let G = class extends HTMLElement {
|
|
|
251
251
|
}
|
|
252
252
|
_$AE(t) {
|
|
253
253
|
var e;
|
|
254
|
-
(e = this._$EO) == null || e.forEach((
|
|
254
|
+
(e = this._$EO) == null || e.forEach((n) => {
|
|
255
255
|
var i;
|
|
256
|
-
return (i =
|
|
256
|
+
return (i = n.hostUpdated) == null ? void 0 : i.call(n);
|
|
257
257
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
258
258
|
}
|
|
259
259
|
_$EM() {
|
|
@@ -282,7 +282,7 @@ G.elementStyles = [], G.shadowRootOptions = { mode: "open" }, G[tt("elementPrope
|
|
|
282
282
|
* Copyright 2017 Google LLC
|
|
283
283
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
284
284
|
*/
|
|
285
|
-
const et = globalThis, vt = et.trustedTypes, Zt = vt ? vt.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, te = "$lit$", T = `lit$${Math.random().toFixed(9).slice(2)}$`, ee = "?" + T, be = `<${ee}>`, Z = document, it = () => Z.createComment(""),
|
|
285
|
+
const et = globalThis, vt = et.trustedTypes, Zt = vt ? vt.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, te = "$lit$", T = `lit$${Math.random().toFixed(9).slice(2)}$`, ee = "?" + T, be = `<${ee}>`, Z = document, it = () => Z.createComment(""), nt = (o) => o === null || typeof o != "object" && typeof o != "function", It = Array.isArray, fe = (o) => It(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", xt = `[
|
|
286
286
|
\f\r]`, Y = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, qt = /-->/g, Wt = />/g, F = RegExp(`>|${xt}(?:([^\\s"'>=/]+)(${xt}*=${xt}*(?:[^
|
|
287
287
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), Kt = /'/g, Gt = /"/g, oe = /^(?:script|style|textarea|title)$/i, ge = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), l = ge(1), U = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Xt = /* @__PURE__ */ new WeakMap(), R = Z.createTreeWalker(Z, 129);
|
|
288
288
|
function ie(o, t) {
|
|
@@ -290,24 +290,24 @@ function ie(o, t) {
|
|
|
290
290
|
return Zt !== void 0 ? Zt.createHTML(t) : t;
|
|
291
291
|
}
|
|
292
292
|
const ye = (o, t) => {
|
|
293
|
-
const e = o.length - 1,
|
|
294
|
-
let i,
|
|
293
|
+
const e = o.length - 1, n = [];
|
|
294
|
+
let i, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = Y;
|
|
295
295
|
for (let h = 0; h < e; h++) {
|
|
296
296
|
const c = o[h];
|
|
297
297
|
let f, m, p = -1, O = 0;
|
|
298
298
|
for (; O < c.length && (s.lastIndex = O, m = s.exec(c), m !== null); ) O = s.lastIndex, s === Y ? m[1] === "!--" ? s = qt : m[1] !== void 0 ? s = Wt : m[2] !== void 0 ? (oe.test(m[2]) && (i = RegExp("</" + m[2], "g")), s = F) : m[3] !== void 0 && (s = F) : s === F ? m[0] === ">" ? (s = i ?? Y, p = -1) : m[1] === void 0 ? p = -2 : (p = s.lastIndex - m[2].length, f = m[1], s = m[3] === void 0 ? F : m[3] === '"' ? Gt : Kt) : s === Gt || s === Kt ? s = F : s === qt || s === Wt ? s = Y : (s = F, i = void 0);
|
|
299
299
|
const M = s === F && o[h + 1].startsWith("/>") ? " " : "";
|
|
300
|
-
|
|
300
|
+
r += s === Y ? c + be : p >= 0 ? (n.push(f), c.slice(0, p) + te + c.slice(p) + T + M) : c + T + (p === -2 ? h : M);
|
|
301
301
|
}
|
|
302
|
-
return [ie(o,
|
|
302
|
+
return [ie(o, r + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
|
|
303
303
|
};
|
|
304
|
-
class
|
|
305
|
-
constructor({ strings: t, _$litType$: e },
|
|
304
|
+
class rt {
|
|
305
|
+
constructor({ strings: t, _$litType$: e }, n) {
|
|
306
306
|
let i;
|
|
307
307
|
this.parts = [];
|
|
308
|
-
let
|
|
308
|
+
let r = 0, s = 0;
|
|
309
309
|
const h = t.length - 1, c = this.parts, [f, m] = ye(t, e);
|
|
310
|
-
if (this.el =
|
|
310
|
+
if (this.el = rt.createElement(f, n), R.currentNode = this.el.content, e === 2 || e === 3) {
|
|
311
311
|
const p = this.el.content.firstChild;
|
|
312
312
|
p.replaceWith(...p.childNodes);
|
|
313
313
|
}
|
|
@@ -315,35 +315,35 @@ class nt {
|
|
|
315
315
|
if (i.nodeType === 1) {
|
|
316
316
|
if (i.hasAttributes()) for (const p of i.getAttributeNames()) if (p.endsWith(te)) {
|
|
317
317
|
const O = m[s++], M = i.getAttribute(p).split(T), dt = /([.?@])?(.*)/.exec(O);
|
|
318
|
-
c.push({ type: 1, index:
|
|
319
|
-
} else p.startsWith(T) && (c.push({ type: 6, index:
|
|
318
|
+
c.push({ type: 1, index: r, name: dt[2], strings: M, ctor: dt[1] === "." ? xe : dt[1] === "?" ? we : dt[1] === "@" ? $e : ft }), i.removeAttribute(p);
|
|
319
|
+
} else p.startsWith(T) && (c.push({ type: 6, index: r }), i.removeAttribute(p));
|
|
320
320
|
if (oe.test(i.tagName)) {
|
|
321
321
|
const p = i.textContent.split(T), O = p.length - 1;
|
|
322
322
|
if (O > 0) {
|
|
323
323
|
i.textContent = vt ? vt.emptyScript : "";
|
|
324
|
-
for (let M = 0; M < O; M++) i.append(p[M], it()), R.nextNode(), c.push({ type: 2, index: ++
|
|
324
|
+
for (let M = 0; M < O; M++) i.append(p[M], it()), R.nextNode(), c.push({ type: 2, index: ++r });
|
|
325
325
|
i.append(p[O], it());
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
|
-
} else if (i.nodeType === 8) if (i.data === ee) c.push({ type: 2, index:
|
|
328
|
+
} else if (i.nodeType === 8) if (i.data === ee) c.push({ type: 2, index: r });
|
|
329
329
|
else {
|
|
330
330
|
let p = -1;
|
|
331
|
-
for (; (p = i.data.indexOf(T, p + 1)) !== -1; ) c.push({ type: 7, index:
|
|
331
|
+
for (; (p = i.data.indexOf(T, p + 1)) !== -1; ) c.push({ type: 7, index: r }), p += T.length - 1;
|
|
332
332
|
}
|
|
333
|
-
|
|
333
|
+
r++;
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
336
|
static createElement(t, e) {
|
|
337
|
-
const
|
|
338
|
-
return
|
|
337
|
+
const n = Z.createElement("template");
|
|
338
|
+
return n.innerHTML = t, n;
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
function X(o, t, e = o,
|
|
341
|
+
function X(o, t, e = o, n) {
|
|
342
342
|
var s, h;
|
|
343
343
|
if (t === U) return t;
|
|
344
|
-
let i =
|
|
345
|
-
const
|
|
346
|
-
return (i == null ? void 0 : i.constructor) !==
|
|
344
|
+
let i = n !== void 0 ? (s = e._$Co) == null ? void 0 : s[n] : e._$Cl;
|
|
345
|
+
const r = nt(t) ? void 0 : t._$litDirective$;
|
|
346
|
+
return (i == null ? void 0 : i.constructor) !== r && ((h = i == null ? void 0 : i._$AO) == null || h.call(i, !1), r === void 0 ? i = void 0 : (i = new r(o), i._$AT(o, e, n)), n !== void 0 ? (e._$Co ?? (e._$Co = []))[n] = i : e._$Cl = i), i !== void 0 && (t = X(o, i._$AS(o, t.values), i, n)), t;
|
|
347
347
|
}
|
|
348
348
|
class me {
|
|
349
349
|
constructor(t, e) {
|
|
@@ -356,21 +356,21 @@ class me {
|
|
|
356
356
|
return this._$AM._$AU;
|
|
357
357
|
}
|
|
358
358
|
u(t) {
|
|
359
|
-
const { el: { content: e }, parts:
|
|
359
|
+
const { el: { content: e }, parts: n } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? Z).importNode(e, !0);
|
|
360
360
|
R.currentNode = i;
|
|
361
|
-
let
|
|
361
|
+
let r = R.nextNode(), s = 0, h = 0, c = n[0];
|
|
362
362
|
for (; c !== void 0; ) {
|
|
363
363
|
if (s === c.index) {
|
|
364
364
|
let f;
|
|
365
|
-
c.type === 2 ? f = new ht(
|
|
365
|
+
c.type === 2 ? f = new ht(r, r.nextSibling, this, t) : c.type === 1 ? f = new c.ctor(r, c.name, c.strings, this, t) : c.type === 6 && (f = new _e(r, this, t)), this._$AV.push(f), c = n[++h];
|
|
366
366
|
}
|
|
367
|
-
s !== (c == null ? void 0 : c.index) && (
|
|
367
|
+
s !== (c == null ? void 0 : c.index) && (r = R.nextNode(), s++);
|
|
368
368
|
}
|
|
369
369
|
return R.currentNode = Z, i;
|
|
370
370
|
}
|
|
371
371
|
p(t) {
|
|
372
372
|
let e = 0;
|
|
373
|
-
for (const
|
|
373
|
+
for (const n of this._$AV) n !== void 0 && (n.strings !== void 0 ? (n._$AI(t, n, e), e += n.strings.length - 2) : n._$AI(t[e])), e++;
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
376
|
class ht {
|
|
@@ -378,8 +378,8 @@ class ht {
|
|
|
378
378
|
var t;
|
|
379
379
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
380
380
|
}
|
|
381
|
-
constructor(t, e,
|
|
382
|
-
this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM =
|
|
381
|
+
constructor(t, e, n, i) {
|
|
382
|
+
this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = n, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
|
|
383
383
|
}
|
|
384
384
|
get parentNode() {
|
|
385
385
|
let t = this._$AA.parentNode;
|
|
@@ -393,7 +393,7 @@ class ht {
|
|
|
393
393
|
return this._$AB;
|
|
394
394
|
}
|
|
395
395
|
_$AI(t, e = this) {
|
|
396
|
-
t = X(this, t, e),
|
|
396
|
+
t = X(this, t, e), nt(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== U && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : fe(t) ? this.k(t) : this._(t);
|
|
397
397
|
}
|
|
398
398
|
O(t) {
|
|
399
399
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -402,12 +402,12 @@ class ht {
|
|
|
402
402
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
403
403
|
}
|
|
404
404
|
_(t) {
|
|
405
|
-
this._$AH !== d &&
|
|
405
|
+
this._$AH !== d && nt(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Z.createTextNode(t)), this._$AH = t;
|
|
406
406
|
}
|
|
407
407
|
$(t) {
|
|
408
|
-
var
|
|
409
|
-
const { values: e, _$litType$:
|
|
410
|
-
if (((
|
|
408
|
+
var r;
|
|
409
|
+
const { values: e, _$litType$: n } = t, i = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = rt.createElement(ie(n.h, n.h[0]), this.options)), n);
|
|
410
|
+
if (((r = this._$AH) == null ? void 0 : r._$AD) === i) this._$AH.p(e);
|
|
411
411
|
else {
|
|
412
412
|
const s = new me(i, this), h = s.u(this.options);
|
|
413
413
|
s.p(e), this.T(h), this._$AH = s;
|
|
@@ -415,18 +415,18 @@ class ht {
|
|
|
415
415
|
}
|
|
416
416
|
_$AC(t) {
|
|
417
417
|
let e = Xt.get(t.strings);
|
|
418
|
-
return e === void 0 && Xt.set(t.strings, e = new
|
|
418
|
+
return e === void 0 && Xt.set(t.strings, e = new rt(t)), e;
|
|
419
419
|
}
|
|
420
420
|
k(t) {
|
|
421
421
|
It(this._$AH) || (this._$AH = [], this._$AR());
|
|
422
422
|
const e = this._$AH;
|
|
423
|
-
let
|
|
424
|
-
for (const
|
|
425
|
-
i < e.length && (this._$AR(
|
|
423
|
+
let n, i = 0;
|
|
424
|
+
for (const r of t) i === e.length ? e.push(n = new ht(this.O(it()), this.O(it()), this, this.options)) : n = e[i], n._$AI(r), i++;
|
|
425
|
+
i < e.length && (this._$AR(n && n._$AB.nextSibling, i), e.length = i);
|
|
426
426
|
}
|
|
427
427
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
428
|
-
var
|
|
429
|
-
for ((
|
|
428
|
+
var n;
|
|
429
|
+
for ((n = this._$AP) == null ? void 0 : n.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
|
430
430
|
const i = t.nextSibling;
|
|
431
431
|
t.remove(), t = i;
|
|
432
432
|
}
|
|
@@ -443,17 +443,17 @@ class ft {
|
|
|
443
443
|
get _$AU() {
|
|
444
444
|
return this._$AM._$AU;
|
|
445
445
|
}
|
|
446
|
-
constructor(t, e,
|
|
447
|
-
this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options =
|
|
446
|
+
constructor(t, e, n, i, r) {
|
|
447
|
+
this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = r, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = d;
|
|
448
448
|
}
|
|
449
|
-
_$AI(t, e = this,
|
|
450
|
-
const
|
|
449
|
+
_$AI(t, e = this, n, i) {
|
|
450
|
+
const r = this.strings;
|
|
451
451
|
let s = !1;
|
|
452
|
-
if (
|
|
452
|
+
if (r === void 0) t = X(this, t, e, 0), s = !nt(t) || t !== this._$AH && t !== U, s && (this._$AH = t);
|
|
453
453
|
else {
|
|
454
454
|
const h = t;
|
|
455
455
|
let c, f;
|
|
456
|
-
for (t =
|
|
456
|
+
for (t = r[0], c = 0; c < r.length - 1; c++) f = X(this, h[n + c], e, c), f === U && (f = this._$AH[c]), s || (s = !nt(f) || f !== this._$AH[c]), f === d ? t = d : t !== d && (t += (f ?? "") + r[c + 1]), this._$AH[c] = f;
|
|
457
457
|
}
|
|
458
458
|
s && !i && this.j(t);
|
|
459
459
|
}
|
|
@@ -478,13 +478,13 @@ class we extends ft {
|
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
480
|
class $e extends ft {
|
|
481
|
-
constructor(t, e,
|
|
482
|
-
super(t, e,
|
|
481
|
+
constructor(t, e, n, i, r) {
|
|
482
|
+
super(t, e, n, i, r), this.type = 5;
|
|
483
483
|
}
|
|
484
484
|
_$AI(t, e = this) {
|
|
485
485
|
if ((t = X(this, t, e, 0) ?? d) === U) return;
|
|
486
|
-
const
|
|
487
|
-
i && this.element.removeEventListener(this.name, this,
|
|
486
|
+
const n = this._$AH, i = t === d && n !== d || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, r = t !== d && (n === d || i);
|
|
487
|
+
i && this.element.removeEventListener(this.name, this, n), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
488
488
|
}
|
|
489
489
|
handleEvent(t) {
|
|
490
490
|
var e;
|
|
@@ -492,8 +492,8 @@ class $e extends ft {
|
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
class _e {
|
|
495
|
-
constructor(t, e,
|
|
496
|
-
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options =
|
|
495
|
+
constructor(t, e, n) {
|
|
496
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = n;
|
|
497
497
|
}
|
|
498
498
|
get _$AU() {
|
|
499
499
|
return this._$AM._$AU;
|
|
@@ -503,13 +503,13 @@ class _e {
|
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
505
|
const wt = et.litHtmlPolyfillSupport;
|
|
506
|
-
wt == null || wt(
|
|
506
|
+
wt == null || wt(rt, ht), (et.litHtmlVersions ?? (et.litHtmlVersions = [])).push("3.3.0");
|
|
507
507
|
const ke = (o, t, e) => {
|
|
508
|
-
const
|
|
509
|
-
let i =
|
|
508
|
+
const n = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
509
|
+
let i = n._$litPart$;
|
|
510
510
|
if (i === void 0) {
|
|
511
|
-
const
|
|
512
|
-
|
|
511
|
+
const r = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
512
|
+
n._$litPart$ = i = new ht(t.insertBefore(it(), r), r, void 0, e ?? {});
|
|
513
513
|
}
|
|
514
514
|
return i._$AI(o), i;
|
|
515
515
|
};
|
|
@@ -565,9 +565,9 @@ const x = (o) => (t, e) => {
|
|
|
565
565
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
566
566
|
*/
|
|
567
567
|
const Ce = { attribute: !0, type: String, converter: ut, reflect: !1, hasChanged: Lt }, Ae = (o = Ce, t, e) => {
|
|
568
|
-
const { kind:
|
|
569
|
-
let
|
|
570
|
-
if (
|
|
568
|
+
const { kind: n, metadata: i } = e;
|
|
569
|
+
let r = globalThis.litPropertyMetadata.get(i);
|
|
570
|
+
if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), n === "setter" && ((o = Object.create(o)).wrapped = !0), r.set(e.name, o), n === "accessor") {
|
|
571
571
|
const { name: s } = e;
|
|
572
572
|
return { set(h) {
|
|
573
573
|
const c = t.get.call(this);
|
|
@@ -576,19 +576,19 @@ const Ce = { attribute: !0, type: String, converter: ut, reflect: !1, hasChanged
|
|
|
576
576
|
return h !== void 0 && this.C(s, void 0, o, h), h;
|
|
577
577
|
} };
|
|
578
578
|
}
|
|
579
|
-
if (
|
|
579
|
+
if (n === "setter") {
|
|
580
580
|
const { name: s } = e;
|
|
581
581
|
return function(h) {
|
|
582
582
|
const c = this[s];
|
|
583
583
|
t.call(this, h), this.requestUpdate(s, c, o);
|
|
584
584
|
};
|
|
585
585
|
}
|
|
586
|
-
throw Error("Unsupported decorator location: " +
|
|
586
|
+
throw Error("Unsupported decorator location: " + n);
|
|
587
587
|
};
|
|
588
588
|
function a(o) {
|
|
589
|
-
return (t, e) => typeof e == "object" ? Ae(o, t, e) : ((
|
|
590
|
-
const s = i.hasOwnProperty(
|
|
591
|
-
return i.constructor.createProperty(
|
|
589
|
+
return (t, e) => typeof e == "object" ? Ae(o, t, e) : ((n, i, r) => {
|
|
590
|
+
const s = i.hasOwnProperty(r);
|
|
591
|
+
return i.constructor.createProperty(r, n), s ? Object.getOwnPropertyDescriptor(i, r) : void 0;
|
|
592
592
|
})(o, t, e);
|
|
593
593
|
}
|
|
594
594
|
/**
|
|
@@ -632,11 +632,11 @@ function Bt(o) {
|
|
|
632
632
|
function Ee(o) {
|
|
633
633
|
o.addInitializer((t) => {
|
|
634
634
|
const e = t;
|
|
635
|
-
e.addEventListener("click", async (
|
|
636
|
-
const { type: i, [Ot]:
|
|
635
|
+
e.addEventListener("click", async (n) => {
|
|
636
|
+
const { type: i, [Ot]: r } = e, { form: s } = r;
|
|
637
637
|
if (!(!s || i === "button") && (await new Promise((h) => {
|
|
638
638
|
setTimeout(h);
|
|
639
|
-
}), !
|
|
639
|
+
}), !n.defaultPrevented)) {
|
|
640
640
|
if (i === "reset") {
|
|
641
641
|
s.reset();
|
|
642
642
|
return;
|
|
@@ -651,7 +651,7 @@ function Ee(o) {
|
|
|
651
651
|
});
|
|
652
652
|
},
|
|
653
653
|
{ capture: !0, once: !0 }
|
|
654
|
-
),
|
|
654
|
+
), r.setFormValue(e.value), s.requestSubmit();
|
|
655
655
|
}
|
|
656
656
|
});
|
|
657
657
|
});
|
|
@@ -777,8 +777,8 @@ let Ht = class {
|
|
|
777
777
|
get _$AU() {
|
|
778
778
|
return this._$AM._$AU;
|
|
779
779
|
}
|
|
780
|
-
_$AT(t, e,
|
|
781
|
-
this._$Ct = t, this._$AM = e, this._$Ci =
|
|
780
|
+
_$AT(t, e, n) {
|
|
781
|
+
this._$Ct = t, this._$AM = e, this._$Ci = n;
|
|
782
782
|
}
|
|
783
783
|
_$AS(t, e) {
|
|
784
784
|
return this.update(t, e);
|
|
@@ -816,10 +816,10 @@ class Ct extends kt {
|
|
|
816
816
|
}
|
|
817
817
|
Ct.directiveName = "unsafeSVG", Ct.resultType = 2;
|
|
818
818
|
const S = Dt(Ct);
|
|
819
|
-
var Qe = Object.defineProperty, Ye = Object.getOwnPropertyDescriptor, w = (o, t, e,
|
|
820
|
-
for (var i =
|
|
821
|
-
(s = o[
|
|
822
|
-
return
|
|
819
|
+
var Qe = Object.defineProperty, Ye = Object.getOwnPropertyDescriptor, w = (o, t, e, n) => {
|
|
820
|
+
for (var i = n > 1 ? void 0 : n ? Ye(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
821
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
822
|
+
return n && i && Qe(t, e, i), i;
|
|
823
823
|
};
|
|
824
824
|
const to = Bt(u);
|
|
825
825
|
let v = class extends to {
|
|
@@ -1120,10 +1120,10 @@ w([
|
|
|
1120
1120
|
v = w([
|
|
1121
1121
|
x("o-button")
|
|
1122
1122
|
], v);
|
|
1123
|
-
var eo = Object.defineProperty, oo = Object.getOwnPropertyDescriptor, gt = (o, t, e,
|
|
1124
|
-
for (var i =
|
|
1125
|
-
(s = o[
|
|
1126
|
-
return
|
|
1123
|
+
var eo = Object.defineProperty, oo = Object.getOwnPropertyDescriptor, gt = (o, t, e, n) => {
|
|
1124
|
+
for (var i = n > 1 ? void 0 : n ? oo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1125
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1126
|
+
return n && i && eo(t, e, i), i;
|
|
1127
1127
|
};
|
|
1128
1128
|
let J = class extends u {
|
|
1129
1129
|
constructor() {
|
|
@@ -1250,10 +1250,10 @@ J = gt([
|
|
|
1250
1250
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1251
1251
|
*/
|
|
1252
1252
|
const $ = (o) => o ?? d;
|
|
1253
|
-
var io = Object.defineProperty,
|
|
1254
|
-
for (var i =
|
|
1255
|
-
(s = o[
|
|
1256
|
-
return
|
|
1253
|
+
var io = Object.defineProperty, no = Object.getOwnPropertyDescriptor, I = (o, t, e, n) => {
|
|
1254
|
+
for (var i = n > 1 ? void 0 : n ? no(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1255
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1256
|
+
return n && i && io(t, e, i), i;
|
|
1257
1257
|
};
|
|
1258
1258
|
let _ = class extends u {
|
|
1259
1259
|
constructor() {
|
|
@@ -1266,7 +1266,7 @@ let _ = class extends u {
|
|
|
1266
1266
|
const o = W[this.icon] ?? "", t = `icon-${this.icon}`, e = o.replace(
|
|
1267
1267
|
"<svg",
|
|
1268
1268
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
1269
|
-
),
|
|
1269
|
+
), n = this.showSrLabel ? l`<span class="sr-only">${this.srLabel}</span>` : null, i = this.showSrLabel ? null : "icon";
|
|
1270
1270
|
return l`
|
|
1271
1271
|
${this.type === "span" ? l`
|
|
1272
1272
|
<span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
|
|
@@ -1280,7 +1280,7 @@ let _ = class extends u {
|
|
|
1280
1280
|
?disabled="${this.disabled}"
|
|
1281
1281
|
>
|
|
1282
1282
|
${S(e)}
|
|
1283
|
-
${
|
|
1283
|
+
${n}
|
|
1284
1284
|
</button>
|
|
1285
1285
|
`}
|
|
1286
1286
|
`;
|
|
@@ -1523,10 +1523,10 @@ I([
|
|
|
1523
1523
|
_ = I([
|
|
1524
1524
|
x("o-icon-button")
|
|
1525
1525
|
], _);
|
|
1526
|
-
var
|
|
1527
|
-
for (var i =
|
|
1528
|
-
(s = o[
|
|
1529
|
-
return
|
|
1526
|
+
var ro = Object.defineProperty, so = Object.getOwnPropertyDescriptor, K = (o, t, e, n) => {
|
|
1527
|
+
for (var i = n > 1 ? void 0 : n ? so(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1528
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1529
|
+
return n && i && ro(t, e, i), i;
|
|
1530
1530
|
};
|
|
1531
1531
|
let B = class extends u {
|
|
1532
1532
|
constructor() {
|
|
@@ -1675,10 +1675,10 @@ K([
|
|
|
1675
1675
|
B = K([
|
|
1676
1676
|
x("o-link")
|
|
1677
1677
|
], B);
|
|
1678
|
-
var ao = Object.defineProperty, lo = Object.getOwnPropertyDescriptor, yt = (o, t, e,
|
|
1679
|
-
for (var i =
|
|
1680
|
-
(s = o[
|
|
1681
|
-
return
|
|
1678
|
+
var ao = Object.defineProperty, lo = Object.getOwnPropertyDescriptor, yt = (o, t, e, n) => {
|
|
1679
|
+
for (var i = n > 1 ? void 0 : n ? lo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1680
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1681
|
+
return n && i && ao(t, e, i), i;
|
|
1682
1682
|
};
|
|
1683
1683
|
let Q = class extends u {
|
|
1684
1684
|
constructor() {
|
|
@@ -1688,8 +1688,8 @@ let Q = class extends u {
|
|
|
1688
1688
|
const o = [];
|
|
1689
1689
|
for (let t = 0; t < 5; t++) {
|
|
1690
1690
|
const e = this.rating - t;
|
|
1691
|
-
let
|
|
1692
|
-
e >= 1 ?
|
|
1691
|
+
let n;
|
|
1692
|
+
e >= 1 ? n = 100 : e <= 0 ? n = 0 : n = Math.round(e * 100 / 25) * 25, o.push(`star-${n}`);
|
|
1693
1693
|
}
|
|
1694
1694
|
return o;
|
|
1695
1695
|
}
|
|
@@ -1765,10 +1765,10 @@ const co = (o) => o.strings === void 0;
|
|
|
1765
1765
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1766
1766
|
*/
|
|
1767
1767
|
const ot = (o, t) => {
|
|
1768
|
-
var
|
|
1768
|
+
var n;
|
|
1769
1769
|
const e = o._$AN;
|
|
1770
1770
|
if (e === void 0) return !1;
|
|
1771
|
-
for (const i of e) (
|
|
1771
|
+
for (const i of e) (n = i._$AO) == null || n.call(i, t, !1), ot(i, t);
|
|
1772
1772
|
return !0;
|
|
1773
1773
|
}, bt = (o) => {
|
|
1774
1774
|
let t, e;
|
|
@@ -1776,7 +1776,7 @@ const ot = (o, t) => {
|
|
|
1776
1776
|
if ((t = o._$AM) === void 0) break;
|
|
1777
1777
|
e = t._$AN, e.delete(o), o = t;
|
|
1778
1778
|
} while ((e == null ? void 0 : e.size) === 0);
|
|
1779
|
-
},
|
|
1779
|
+
}, ne = (o) => {
|
|
1780
1780
|
for (let t; t = o._$AM; o = t) {
|
|
1781
1781
|
let e = t._$AN;
|
|
1782
1782
|
if (e === void 0) t._$AN = e = /* @__PURE__ */ new Set();
|
|
@@ -1785,12 +1785,12 @@ const ot = (o, t) => {
|
|
|
1785
1785
|
}
|
|
1786
1786
|
};
|
|
1787
1787
|
function ho(o) {
|
|
1788
|
-
this._$AN !== void 0 ? (bt(this), this._$AM = o,
|
|
1788
|
+
this._$AN !== void 0 ? (bt(this), this._$AM = o, ne(this)) : this._$AM = o;
|
|
1789
1789
|
}
|
|
1790
1790
|
function po(o, t = !1, e = 0) {
|
|
1791
|
-
const
|
|
1792
|
-
if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(
|
|
1793
|
-
else
|
|
1791
|
+
const n = this._$AH, i = this._$AN;
|
|
1792
|
+
if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(n)) for (let r = e; r < n.length; r++) ot(n[r], !1), bt(n[r]);
|
|
1793
|
+
else n != null && (ot(n, !1), bt(n));
|
|
1794
1794
|
else ot(this, o);
|
|
1795
1795
|
}
|
|
1796
1796
|
const uo = (o) => {
|
|
@@ -1800,12 +1800,12 @@ class vo extends Ht {
|
|
|
1800
1800
|
constructor() {
|
|
1801
1801
|
super(...arguments), this._$AN = void 0;
|
|
1802
1802
|
}
|
|
1803
|
-
_$AT(t, e,
|
|
1804
|
-
super._$AT(t, e,
|
|
1803
|
+
_$AT(t, e, n) {
|
|
1804
|
+
super._$AT(t, e, n), ne(this), this.isConnected = t._$AU;
|
|
1805
1805
|
}
|
|
1806
1806
|
_$AO(t, e = !0) {
|
|
1807
|
-
var
|
|
1808
|
-
t !== this.isConnected && (this.isConnected = t, t ? (
|
|
1807
|
+
var n, i;
|
|
1808
|
+
t !== this.isConnected && (this.isConnected = t, t ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), e && (ot(this, t), bt(this));
|
|
1809
1809
|
}
|
|
1810
1810
|
setValue(t) {
|
|
1811
1811
|
if (co(this._$Ct)) this._$Ct._$AI(t, this);
|
|
@@ -1827,23 +1827,23 @@ class bo extends vo {
|
|
|
1827
1827
|
return d;
|
|
1828
1828
|
}
|
|
1829
1829
|
update(t, [e]) {
|
|
1830
|
-
var
|
|
1831
|
-
this.element !== t.element && (this.element = t.element), this.host = ((
|
|
1830
|
+
var n;
|
|
1831
|
+
this.element !== t.element && (this.element = t.element), this.host = ((n = t.options) === null || n === void 0 ? void 0 : n.host) || this.element, this.apply(e), this.groom(e), this.prevData = { ...e };
|
|
1832
1832
|
}
|
|
1833
1833
|
apply(t) {
|
|
1834
1834
|
if (!t)
|
|
1835
1835
|
return;
|
|
1836
|
-
const { prevData: e, element:
|
|
1836
|
+
const { prevData: e, element: n } = this;
|
|
1837
1837
|
for (const i in t) {
|
|
1838
|
-
const
|
|
1839
|
-
|
|
1838
|
+
const r = t[i];
|
|
1839
|
+
r !== e[i] && (n[i] = r);
|
|
1840
1840
|
}
|
|
1841
1841
|
}
|
|
1842
1842
|
groom(t) {
|
|
1843
|
-
const { prevData: e, element:
|
|
1843
|
+
const { prevData: e, element: n } = this;
|
|
1844
1844
|
if (e)
|
|
1845
1845
|
for (const i in e)
|
|
1846
|
-
(!t || !(i in t) &&
|
|
1846
|
+
(!t || !(i in t) && n[i] === e[i]) && (n[i] = void 0);
|
|
1847
1847
|
}
|
|
1848
1848
|
}
|
|
1849
1849
|
class fo extends bo {
|
|
@@ -1853,23 +1853,23 @@ class fo extends bo {
|
|
|
1853
1853
|
apply(t) {
|
|
1854
1854
|
if (t)
|
|
1855
1855
|
for (const e in t) {
|
|
1856
|
-
const
|
|
1857
|
-
|
|
1856
|
+
const n = t[e];
|
|
1857
|
+
n !== this.eventData[e] && this.applyEvent(e, n);
|
|
1858
1858
|
}
|
|
1859
1859
|
}
|
|
1860
1860
|
applyEvent(t, e) {
|
|
1861
|
-
const { prevData:
|
|
1862
|
-
this.eventData[t] = e,
|
|
1861
|
+
const { prevData: n, element: i } = this;
|
|
1862
|
+
this.eventData[t] = e, n[t] && i.removeEventListener(t, this, e), i.addEventListener(t, this, e);
|
|
1863
1863
|
}
|
|
1864
1864
|
groom(t) {
|
|
1865
|
-
const { prevData: e, element:
|
|
1865
|
+
const { prevData: e, element: n } = this;
|
|
1866
1866
|
if (e)
|
|
1867
1867
|
for (const i in e)
|
|
1868
|
-
(!t || !(i in t) &&
|
|
1868
|
+
(!t || !(i in t) && n[i] === e[i]) && this.groomEvent(i, e[i]);
|
|
1869
1869
|
}
|
|
1870
1870
|
groomEvent(t, e) {
|
|
1871
|
-
const { element:
|
|
1872
|
-
delete this.eventData[t],
|
|
1871
|
+
const { element: n } = this;
|
|
1872
|
+
delete this.eventData[t], n.removeEventListener(t, this, e);
|
|
1873
1873
|
}
|
|
1874
1874
|
handleEvent(t) {
|
|
1875
1875
|
const e = this.eventData[t.type];
|
|
@@ -1877,16 +1877,16 @@ class fo extends bo {
|
|
|
1877
1877
|
}
|
|
1878
1878
|
disconnected() {
|
|
1879
1879
|
const { eventData: t, element: e } = this;
|
|
1880
|
-
for (const
|
|
1881
|
-
const i =
|
|
1882
|
-
e.removeEventListener(i, this,
|
|
1880
|
+
for (const n in t) {
|
|
1881
|
+
const i = n.slice(1), r = t[n];
|
|
1882
|
+
e.removeEventListener(i, this, r);
|
|
1883
1883
|
}
|
|
1884
1884
|
}
|
|
1885
1885
|
reconnected() {
|
|
1886
1886
|
const { eventData: t, element: e } = this;
|
|
1887
|
-
for (const
|
|
1888
|
-
const i =
|
|
1889
|
-
e.addEventListener(i, this,
|
|
1887
|
+
for (const n in t) {
|
|
1888
|
+
const i = n.slice(1), r = t[n];
|
|
1889
|
+
e.addEventListener(i, this, r);
|
|
1890
1890
|
}
|
|
1891
1891
|
}
|
|
1892
1892
|
}
|
|
@@ -1894,60 +1894,60 @@ class go extends fo {
|
|
|
1894
1894
|
apply(t) {
|
|
1895
1895
|
if (!t)
|
|
1896
1896
|
return;
|
|
1897
|
-
const { prevData: e, element:
|
|
1897
|
+
const { prevData: e, element: n } = this;
|
|
1898
1898
|
for (const i in t) {
|
|
1899
|
-
const
|
|
1900
|
-
if (
|
|
1899
|
+
const r = t[i];
|
|
1900
|
+
if (r === e[i])
|
|
1901
1901
|
continue;
|
|
1902
1902
|
const s = i.slice(1);
|
|
1903
1903
|
switch (i[0]) {
|
|
1904
1904
|
case "@":
|
|
1905
|
-
this.eventData[s] =
|
|
1905
|
+
this.eventData[s] = r, this.applyEvent(s, r);
|
|
1906
1906
|
break;
|
|
1907
1907
|
case ".":
|
|
1908
|
-
|
|
1908
|
+
n[s] = r;
|
|
1909
1909
|
break;
|
|
1910
1910
|
case "?":
|
|
1911
|
-
|
|
1911
|
+
r ? n.setAttribute(s, "") : n.removeAttribute(s);
|
|
1912
1912
|
break;
|
|
1913
1913
|
default:
|
|
1914
|
-
|
|
1914
|
+
r != null ? n.setAttribute(i, String(r)) : n.removeAttribute(i);
|
|
1915
1915
|
break;
|
|
1916
1916
|
}
|
|
1917
1917
|
}
|
|
1918
1918
|
}
|
|
1919
1919
|
groom(t) {
|
|
1920
|
-
const { prevData: e, element:
|
|
1920
|
+
const { prevData: e, element: n } = this;
|
|
1921
1921
|
if (e)
|
|
1922
1922
|
for (const i in e) {
|
|
1923
|
-
const
|
|
1924
|
-
if (!t || !(i in t) && r
|
|
1923
|
+
const r = i.slice(1);
|
|
1924
|
+
if (!t || !(i in t) && n[r] === e[i])
|
|
1925
1925
|
switch (i[0]) {
|
|
1926
1926
|
case "@":
|
|
1927
|
-
this.groomEvent(
|
|
1927
|
+
this.groomEvent(r, e[i]);
|
|
1928
1928
|
break;
|
|
1929
1929
|
case ".":
|
|
1930
|
-
r
|
|
1930
|
+
n[r] = void 0;
|
|
1931
1931
|
break;
|
|
1932
1932
|
case "?":
|
|
1933
|
-
|
|
1933
|
+
n.removeAttribute(r);
|
|
1934
1934
|
break;
|
|
1935
1935
|
default:
|
|
1936
|
-
|
|
1936
|
+
n.removeAttribute(i);
|
|
1937
1937
|
break;
|
|
1938
1938
|
}
|
|
1939
1939
|
}
|
|
1940
1940
|
}
|
|
1941
1941
|
}
|
|
1942
1942
|
const Jt = Dt(go);
|
|
1943
|
-
var yo = Object.defineProperty, mo = Object.getOwnPropertyDescriptor, y = (o, t, e,
|
|
1944
|
-
for (var i =
|
|
1945
|
-
(s = o[
|
|
1946
|
-
return
|
|
1943
|
+
var yo = Object.defineProperty, mo = Object.getOwnPropertyDescriptor, y = (o, t, e, n) => {
|
|
1944
|
+
for (var i = n > 1 ? void 0 : n ? mo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1945
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1946
|
+
return n && i && yo(t, e, i), i;
|
|
1947
1947
|
};
|
|
1948
1948
|
let b = class extends u {
|
|
1949
1949
|
constructor() {
|
|
1950
|
-
super(...arguments), this.open = !1, this.showHeader = !0, this.showFooter = !1, this.showHeaderStartIcon = !1, this.headerTitle = "", this.closeButtonLabel = "Close the modal", this.firstButtonLabel = "Close", this.firstButtonVariant = "primary", this.firstButtonProps = {}, this.
|
|
1950
|
+
super(...arguments), this.open = !1, this.showHeader = !0, this.showFooter = !1, this.showHeaderStartIcon = !1, this.headerTitle = "", this.closeButtonLabel = "Close the modal", this.firstButtonLabel = "Close", this.firstButtonVariant = "primary", this.firstButtonProps = {}, this.secondButtonLabel = "", this.secondButtonVariant = "secondary", this.secondButtonProps = {}, this.disablePortal = !1, this.zIndex = 99, this.initialized = !1, this.previousFocusedElement = null, this.handleKeyDown = (o) => {
|
|
1951
1951
|
this.open && (o.key === "Escape" ? this.closePanel() : o.key === "Tab" && this.trapFocus(o));
|
|
1952
1952
|
};
|
|
1953
1953
|
}
|
|
@@ -1962,8 +1962,8 @@ let b = class extends u {
|
|
|
1962
1962
|
trapFocus(o) {
|
|
1963
1963
|
const t = this.getFocusableElements();
|
|
1964
1964
|
if (t.length === 0) return;
|
|
1965
|
-
const e = t[0],
|
|
1966
|
-
o.shiftKey && document.activeElement === e ? (o.preventDefault(),
|
|
1965
|
+
const e = t[0], n = t[t.length - 1];
|
|
1966
|
+
o.shiftKey && document.activeElement === e ? (o.preventDefault(), n.focus()) : !o.shiftKey && document.activeElement === n && (o.preventDefault(), e.focus());
|
|
1967
1967
|
}
|
|
1968
1968
|
getFocusableElements() {
|
|
1969
1969
|
const o = this.renderRoot.querySelector(".panel");
|
|
@@ -1987,14 +1987,14 @@ let b = class extends u {
|
|
|
1987
1987
|
new CustomEvent("close", { bubbles: !0, composed: !0 })
|
|
1988
1988
|
);
|
|
1989
1989
|
}
|
|
1990
|
-
handleFirstClick() {
|
|
1991
|
-
typeof this.onFirstButtonClick == "function" && this.onFirstButtonClick(
|
|
1990
|
+
handleFirstClick(o) {
|
|
1991
|
+
typeof this.onFirstButtonClick == "function" && this.onFirstButtonClick(o, this);
|
|
1992
1992
|
}
|
|
1993
|
-
handleSecondaryClick() {
|
|
1994
|
-
typeof this.
|
|
1993
|
+
handleSecondaryClick(o) {
|
|
1994
|
+
typeof this.onSecondButtonClick == "function" && this.onSecondButtonClick(o, this);
|
|
1995
1995
|
}
|
|
1996
1996
|
updated() {
|
|
1997
|
-
this.style.setProperty("--z-overlay", `${this.zIndex}`), this.style.setProperty("--z-panel", `${this.zIndex + 1}`);
|
|
1997
|
+
console.log("Side panel updated", this.zIndex), this.style.setProperty("--z-overlay", `${this.zIndex || 99}`), this.style.setProperty("--z-panel", `${this.zIndex ? this.zIndex + 1 : 99}`);
|
|
1998
1998
|
}
|
|
1999
1999
|
render() {
|
|
2000
2000
|
return l`
|
|
@@ -2033,13 +2033,13 @@ let b = class extends u {
|
|
|
2033
2033
|
</o-button>
|
|
2034
2034
|
` : null}
|
|
2035
2035
|
|
|
2036
|
-
${this.
|
|
2036
|
+
${this.secondButtonVariant && this.secondButtonLabel ? l`
|
|
2037
2037
|
<o-button
|
|
2038
|
-
variant="${this.
|
|
2038
|
+
variant="${this.secondButtonVariant}"
|
|
2039
2039
|
@click=${this.handleSecondaryClick}
|
|
2040
|
-
${Jt(this.
|
|
2040
|
+
${Jt(this.secondButtonProps)}
|
|
2041
2041
|
>
|
|
2042
|
-
${this.
|
|
2042
|
+
${this.secondButtonLabel}
|
|
2043
2043
|
</o-button>
|
|
2044
2044
|
` : null}
|
|
2045
2045
|
</div>
|
|
@@ -2222,16 +2222,16 @@ y([
|
|
|
2222
2222
|
], b.prototype, "onFirstButtonClick", 2);
|
|
2223
2223
|
y([
|
|
2224
2224
|
a({ type: String, reflect: !0 })
|
|
2225
|
-
], b.prototype, "
|
|
2225
|
+
], b.prototype, "secondButtonLabel", 2);
|
|
2226
2226
|
y([
|
|
2227
2227
|
a({ type: String, reflect: !0 })
|
|
2228
|
-
], b.prototype, "
|
|
2228
|
+
], b.prototype, "secondButtonVariant", 2);
|
|
2229
2229
|
y([
|
|
2230
2230
|
a({ type: Object, reflect: !0 })
|
|
2231
|
-
], b.prototype, "
|
|
2231
|
+
], b.prototype, "secondButtonProps", 2);
|
|
2232
2232
|
y([
|
|
2233
2233
|
a({ type: Function })
|
|
2234
|
-
], b.prototype, "
|
|
2234
|
+
], b.prototype, "onSecondButtonClick", 2);
|
|
2235
2235
|
y([
|
|
2236
2236
|
a({ type: Boolean, reflect: !0 })
|
|
2237
2237
|
], b.prototype, "disablePortal", 2);
|
|
@@ -2244,10 +2244,10 @@ y([
|
|
|
2244
2244
|
b = y([
|
|
2245
2245
|
x("o-side-panel")
|
|
2246
2246
|
], b);
|
|
2247
|
-
var xo = Object.defineProperty, wo = Object.getOwnPropertyDescriptor, N = (o, t, e,
|
|
2248
|
-
for (var i =
|
|
2249
|
-
(s = o[
|
|
2250
|
-
return
|
|
2247
|
+
var xo = Object.defineProperty, wo = Object.getOwnPropertyDescriptor, N = (o, t, e, n) => {
|
|
2248
|
+
for (var i = n > 1 ? void 0 : n ? wo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2249
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2250
|
+
return n && i && xo(t, e, i), i;
|
|
2251
2251
|
};
|
|
2252
2252
|
let L = class extends u {
|
|
2253
2253
|
constructor() {
|
|
@@ -2301,7 +2301,7 @@ let L = class extends u {
|
|
|
2301
2301
|
return l`
|
|
2302
2302
|
<ul class="scroll-container" style="max-width: ${this.maxWidth};">
|
|
2303
2303
|
${this.thumbnails.map((o, t) => {
|
|
2304
|
-
const e = this.disabledIndexes.includes(t),
|
|
2304
|
+
const e = this.disabledIndexes.includes(t), n = this.activeIndex === t, i = o.type === "video", r = i ? `video ${t}` : `${this.altressource} ${t + 1}`;
|
|
2305
2305
|
return l`
|
|
2306
2306
|
<li class="thumb-wrapper">
|
|
2307
2307
|
<button
|
|
@@ -2309,14 +2309,14 @@ let L = class extends u {
|
|
|
2309
2309
|
data-index="${t}"
|
|
2310
2310
|
?disabled=${e}
|
|
2311
2311
|
aria-selected="${this.focusedIndex === t}"
|
|
2312
|
-
aria-current=${
|
|
2312
|
+
aria-current=${n ? "true" : "false"}
|
|
2313
2313
|
tabindex="${this.disabledIndexes.includes(t) ? -1 : 0}"
|
|
2314
2314
|
@click=${() => this.selectThumbnail(t)}
|
|
2315
2315
|
@keydown=${this.handleKeyDown}
|
|
2316
2316
|
@focus=${(s) => this.onFocus(s)}
|
|
2317
2317
|
@blur=${(s) => this.onBlur(s)}
|
|
2318
2318
|
>
|
|
2319
|
-
<img alt="${
|
|
2319
|
+
<img alt="${r}" src="${o.src}" />
|
|
2320
2320
|
</button>
|
|
2321
2321
|
${i ? l`<div class="play-icon-wrapper">${this.playerIconTemplate}</div>` : null}
|
|
2322
2322
|
</li>
|
|
@@ -2456,10 +2456,10 @@ N([
|
|
|
2456
2456
|
L = N([
|
|
2457
2457
|
x("thumbnail-navigation")
|
|
2458
2458
|
], L);
|
|
2459
|
-
var $o = Object.defineProperty, _o = Object.getOwnPropertyDescriptor, Mt = (o, t, e,
|
|
2460
|
-
for (var i =
|
|
2461
|
-
(s = o[
|
|
2462
|
-
return
|
|
2459
|
+
var $o = Object.defineProperty, _o = Object.getOwnPropertyDescriptor, Mt = (o, t, e, n) => {
|
|
2460
|
+
for (var i = n > 1 ? void 0 : n ? _o(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2461
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2462
|
+
return n && i && $o(t, e, i), i;
|
|
2463
2463
|
};
|
|
2464
2464
|
let st = class extends u {
|
|
2465
2465
|
constructor() {
|
|
@@ -2536,10 +2536,10 @@ Mt([
|
|
|
2536
2536
|
st = Mt([
|
|
2537
2537
|
x("o-tag")
|
|
2538
2538
|
], st);
|
|
2539
|
-
var ko = Object.defineProperty, Co = Object.getOwnPropertyDescriptor, Tt = (o, t, e,
|
|
2540
|
-
for (var i =
|
|
2541
|
-
(s = o[
|
|
2542
|
-
return
|
|
2539
|
+
var ko = Object.defineProperty, Co = Object.getOwnPropertyDescriptor, Tt = (o, t, e, n) => {
|
|
2540
|
+
for (var i = n > 1 ? void 0 : n ? Co(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2541
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2542
|
+
return n && i && ko(t, e, i), i;
|
|
2543
2543
|
};
|
|
2544
2544
|
let at = class extends u {
|
|
2545
2545
|
constructor() {
|
|
@@ -2656,10 +2656,10 @@ Tt([
|
|
|
2656
2656
|
at = Tt([
|
|
2657
2657
|
x("o-tooltip")
|
|
2658
2658
|
], at);
|
|
2659
|
-
var Ao = Object.defineProperty, Eo = Object.getOwnPropertyDescriptor, z = (o, t, e,
|
|
2660
|
-
for (var i =
|
|
2661
|
-
(s = o[
|
|
2662
|
-
return
|
|
2659
|
+
var Ao = Object.defineProperty, Eo = Object.getOwnPropertyDescriptor, z = (o, t, e, n) => {
|
|
2660
|
+
for (var i = n > 1 ? void 0 : n ? Eo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2661
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2662
|
+
return n && i && Ao(t, e, i), i;
|
|
2663
2663
|
};
|
|
2664
2664
|
let A = class extends u {
|
|
2665
2665
|
constructor() {
|
|
@@ -2760,13 +2760,13 @@ let A = class extends u {
|
|
|
2760
2760
|
style=${`width: ${this.width};`}
|
|
2761
2761
|
>
|
|
2762
2762
|
${this.options.map(
|
|
2763
|
-
(e,
|
|
2763
|
+
(e, n) => l`
|
|
2764
2764
|
<li
|
|
2765
|
-
id="option-${
|
|
2765
|
+
id="option-${n}"
|
|
2766
2766
|
role="option"
|
|
2767
2767
|
aria-selected="${e.value === this.value}"
|
|
2768
|
-
tabindex="${
|
|
2769
|
-
class="${
|
|
2768
|
+
tabindex="${n === this.activeIndex ? "0" : "-1"}"
|
|
2769
|
+
class="${n === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
|
|
2770
2770
|
@click=${() => this.selectOption(e)}
|
|
2771
2771
|
>
|
|
2772
2772
|
${e.url ? l`
|
|
@@ -2951,9 +2951,9 @@ z([
|
|
|
2951
2951
|
A = z([
|
|
2952
2952
|
x("o-dropdown")
|
|
2953
2953
|
], A);
|
|
2954
|
-
var So = Object.getOwnPropertyDescriptor, Lo = (o, t, e,
|
|
2955
|
-
for (var i =
|
|
2956
|
-
(s = o[
|
|
2954
|
+
var So = Object.getOwnPropertyDescriptor, Lo = (o, t, e, n) => {
|
|
2955
|
+
for (var i = n > 1 ? void 0 : n ? So(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2956
|
+
(s = o[r]) && (i = s(i) || i);
|
|
2957
2957
|
return i;
|
|
2958
2958
|
};
|
|
2959
2959
|
let At = class extends u {
|
|
@@ -3016,10 +3016,10 @@ At.styles = g`
|
|
|
3016
3016
|
At = Lo([
|
|
3017
3017
|
x("o-dots")
|
|
3018
3018
|
], At);
|
|
3019
|
-
var Io = Object.defineProperty, Po = Object.getOwnPropertyDescriptor, P = (o, t, e,
|
|
3020
|
-
for (var i =
|
|
3021
|
-
(s = o[
|
|
3022
|
-
return
|
|
3019
|
+
var Io = Object.defineProperty, Po = Object.getOwnPropertyDescriptor, P = (o, t, e, n) => {
|
|
3020
|
+
for (var i = n > 1 ? void 0 : n ? Po(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3021
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3022
|
+
return n && i && Io(t, e, i), i;
|
|
3023
3023
|
};
|
|
3024
3024
|
let k = class extends u {
|
|
3025
3025
|
constructor() {
|
|
@@ -3130,14 +3130,14 @@ let k = class extends u {
|
|
|
3130
3130
|
style=${`width: ${this.width};`}
|
|
3131
3131
|
>
|
|
3132
3132
|
${this.options.map(
|
|
3133
|
-
(e,
|
|
3133
|
+
(e, n) => l`
|
|
3134
3134
|
<li
|
|
3135
|
-
id="option-${
|
|
3135
|
+
id="option-${n}"
|
|
3136
3136
|
role="option"
|
|
3137
3137
|
aria-selected="${e.value === this.value}"
|
|
3138
3138
|
aria-disabled="${e.disabled ? "true" : "false"}"
|
|
3139
|
-
tabindex="${
|
|
3140
|
-
class="${
|
|
3139
|
+
tabindex="${n === this.activeIndex ? "0" : "-1"}"
|
|
3140
|
+
class="${n === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
|
|
3141
3141
|
@click=${() => this.selectOption(e)}
|
|
3142
3142
|
>
|
|
3143
3143
|
<a href="${$(e.url)}">
|
|
@@ -3369,36 +3369,36 @@ k = P([
|
|
|
3369
3369
|
* Copyright 2018 Google LLC
|
|
3370
3370
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3371
3371
|
*/
|
|
3372
|
-
const
|
|
3372
|
+
const re = "important", Oo = " !" + re, Bo = Dt(class extends Ht {
|
|
3373
3373
|
constructor(o) {
|
|
3374
3374
|
var t;
|
|
3375
3375
|
if (super(o), o.type !== zt.ATTRIBUTE || o.name !== "style" || ((t = o.strings) == null ? void 0 : t.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
|
|
3376
3376
|
}
|
|
3377
3377
|
render(o) {
|
|
3378
3378
|
return Object.keys(o).reduce((t, e) => {
|
|
3379
|
-
const
|
|
3380
|
-
return
|
|
3379
|
+
const n = o[e];
|
|
3380
|
+
return n == null ? t : t + `${e = e.includes("-") ? e : e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${n};`;
|
|
3381
3381
|
}, "");
|
|
3382
3382
|
}
|
|
3383
3383
|
update(o, [t]) {
|
|
3384
3384
|
const { style: e } = o.element;
|
|
3385
3385
|
if (this.ft === void 0) return this.ft = new Set(Object.keys(t)), this.render(t);
|
|
3386
|
-
for (const
|
|
3387
|
-
for (const
|
|
3388
|
-
const i = t[
|
|
3386
|
+
for (const n of this.ft) t[n] == null && (this.ft.delete(n), n.includes("-") ? e.removeProperty(n) : e[n] = null);
|
|
3387
|
+
for (const n in t) {
|
|
3388
|
+
const i = t[n];
|
|
3389
3389
|
if (i != null) {
|
|
3390
|
-
this.ft.add(
|
|
3391
|
-
const
|
|
3392
|
-
|
|
3390
|
+
this.ft.add(n);
|
|
3391
|
+
const r = typeof i == "string" && i.endsWith(Oo);
|
|
3392
|
+
n.includes("-") || r ? e.setProperty(n, r ? i.slice(0, -11) : i, r ? re : "") : e[n] = i;
|
|
3393
3393
|
}
|
|
3394
3394
|
}
|
|
3395
3395
|
return U;
|
|
3396
3396
|
}
|
|
3397
3397
|
});
|
|
3398
|
-
var zo = Object.defineProperty, Do = Object.getOwnPropertyDescriptor, jt = (o, t, e,
|
|
3399
|
-
for (var i =
|
|
3400
|
-
(s = o[
|
|
3401
|
-
return
|
|
3398
|
+
var zo = Object.defineProperty, Do = Object.getOwnPropertyDescriptor, jt = (o, t, e, n) => {
|
|
3399
|
+
for (var i = n > 1 ? void 0 : n ? Do(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3400
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3401
|
+
return n && i && zo(t, e, i), i;
|
|
3402
3402
|
};
|
|
3403
3403
|
let lt = class extends u {
|
|
3404
3404
|
constructor() {
|
|
@@ -3509,10 +3509,10 @@ jt([
|
|
|
3509
3509
|
lt = jt([
|
|
3510
3510
|
x("o-reassurance")
|
|
3511
3511
|
], lt);
|
|
3512
|
-
var Ho = Object.defineProperty, Mo = Object.getOwnPropertyDescriptor, D = (o, t, e,
|
|
3513
|
-
for (var i =
|
|
3514
|
-
(s = o[
|
|
3515
|
-
return
|
|
3512
|
+
var Ho = Object.defineProperty, Mo = Object.getOwnPropertyDescriptor, D = (o, t, e, n) => {
|
|
3513
|
+
for (var i = n > 1 ? void 0 : n ? Mo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3514
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3515
|
+
return n && i && Ho(t, e, i), i;
|
|
3516
3516
|
};
|
|
3517
3517
|
const To = Bt(u);
|
|
3518
3518
|
let C = class extends To {
|
|
@@ -3651,10 +3651,10 @@ D([
|
|
|
3651
3651
|
C = D([
|
|
3652
3652
|
x("o-chip")
|
|
3653
3653
|
], C);
|
|
3654
|
-
var jo = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, Ut = (o, t, e,
|
|
3655
|
-
for (var i =
|
|
3656
|
-
(s = o[
|
|
3657
|
-
return
|
|
3654
|
+
var jo = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, Ut = (o, t, e, n) => {
|
|
3655
|
+
for (var i = n > 1 ? void 0 : n ? Uo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3656
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3657
|
+
return n && i && jo(t, e, i), i;
|
|
3658
3658
|
};
|
|
3659
3659
|
let ct = class extends u {
|
|
3660
3660
|
constructor() {
|
|
@@ -3689,15 +3689,15 @@ Ut([
|
|
|
3689
3689
|
ct = Ut([
|
|
3690
3690
|
x("o-chipset")
|
|
3691
3691
|
], ct);
|
|
3692
|
-
var No = Object.defineProperty, Fo = Object.getOwnPropertyDescriptor, H = (o, t, e,
|
|
3693
|
-
for (var i =
|
|
3694
|
-
(s = o[
|
|
3695
|
-
return
|
|
3692
|
+
var No = Object.defineProperty, Fo = Object.getOwnPropertyDescriptor, H = (o, t, e, n) => {
|
|
3693
|
+
for (var i = n > 1 ? void 0 : n ? Fo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3694
|
+
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3695
|
+
return n && i && No(t, e, i), i;
|
|
3696
3696
|
};
|
|
3697
3697
|
const Ro = Bt(u);
|
|
3698
3698
|
let E = class extends Ro {
|
|
3699
3699
|
constructor() {
|
|
3700
|
-
super(...arguments), this.name = "", this.value = "", this.type = "", this.
|
|
3700
|
+
super(...arguments), this.name = "", this.value = "", this.type = "", this.dataHref = "", this.text = "", this.selected = !1, this.disabled = !1, this.fullwidth = !1, this.crossIconName = "cross", this.strikethroughImgName = "strikeDiagonal";
|
|
3701
3701
|
}
|
|
3702
3702
|
handleClick(o) {
|
|
3703
3703
|
if (o instanceof KeyboardEvent && o.key !== "Enter" && o.key !== " ")
|
|
@@ -3723,7 +3723,7 @@ let E = class extends Ro {
|
|
|
3723
3723
|
render() {
|
|
3724
3724
|
const o = this.text;
|
|
3725
3725
|
return l`${this.type === "link" ? l`
|
|
3726
|
-
<a role="button" tabindex="0" class="button" href=${this.
|
|
3726
|
+
<a role="button" tabindex="0" class="button" href=${this.dataHref} ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
|
|
3727
3727
|
aria-label=${this.ariaLabel} aria-pressed=${this.selected}>
|
|
3728
3728
|
${o ? l`
|
|
3729
3729
|
${this.text ? l`<span class="text">${this.text}</span>` : d}
|
|
@@ -3877,8 +3877,8 @@ H([
|
|
|
3877
3877
|
a({ type: String, reflect: !0 })
|
|
3878
3878
|
], E.prototype, "type", 2);
|
|
3879
3879
|
H([
|
|
3880
|
-
a({ type: String, reflect: !0 })
|
|
3881
|
-
], E.prototype, "
|
|
3880
|
+
a({ type: String, reflect: !0, attribute: "data-href" })
|
|
3881
|
+
], E.prototype, "dataHref", 2);
|
|
3882
3882
|
H([
|
|
3883
3883
|
a({ type: String })
|
|
3884
3884
|
], E.prototype, "text", 2);
|