@florid-kit/components 0.8.8 → 0.8.10
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/chip.d.ts +10 -5
- package/components/chipset.d.ts +14 -0
- package/components/filter-chip.d.ts +24 -0
- package/index.js +149 -95
- package/index.mjs +543 -471
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const
|
|
7
|
-
let
|
|
8
|
-
constructor(t, e,
|
|
9
|
-
if (this._$cssResult$ = !0,
|
|
6
|
+
const lt = globalThis, $t = lt.ShadowRoot && (lt.ShadyCSS === void 0 || lt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, _t = Symbol(), It = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
let Nt = class {
|
|
8
|
+
constructor(t, e, n) {
|
|
9
|
+
if (this._$cssResult$ = !0, n !== _t) 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 ($t && t === void 0) {
|
|
16
|
-
const
|
|
17
|
-
|
|
16
|
+
const n = e !== void 0 && e.length === 1;
|
|
17
|
+
n && (t = It.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), n && It.set(e, t));
|
|
18
18
|
}
|
|
19
19
|
return t;
|
|
20
20
|
}
|
|
@@ -22,33 +22,33 @@ let Ft = class {
|
|
|
22
22
|
return this.cssText;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const
|
|
26
|
-
const e = o.length === 1 ? o[0] : t.reduce((
|
|
27
|
-
if (
|
|
28
|
-
if (typeof
|
|
29
|
-
throw Error("Value passed to 'css' function must be a 'css' function result: " +
|
|
25
|
+
const Yt = (o) => new Nt(typeof o == "string" ? o : o + "", void 0, _t), y = (o, ...t) => {
|
|
26
|
+
const e = o.length === 1 ? o[0] : t.reduce((n, i, s) => n + ((r) => {
|
|
27
|
+
if (r._$cssResult$ === !0) return r.cssText;
|
|
28
|
+
if (typeof r == "number") return r;
|
|
29
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + r + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
30
30
|
})(i) + o[s + 1], o[0]);
|
|
31
|
-
return new
|
|
32
|
-
},
|
|
31
|
+
return new Nt(e, o, _t);
|
|
32
|
+
}, Qt = (o, t) => {
|
|
33
33
|
if ($t) 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 = lt.litNonce;
|
|
36
|
+
i !== void 0 && n.setAttribute("nonce", i), n.textContent = e.cssText, o.appendChild(n);
|
|
37
37
|
}
|
|
38
38
|
}, Ot = $t ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
39
39
|
let e = "";
|
|
40
|
-
for (const
|
|
41
|
-
return
|
|
40
|
+
for (const n of t.cssRules) e += n.cssText;
|
|
41
|
+
return Yt(e);
|
|
42
42
|
})(o) : o;
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is:
|
|
48
|
+
const { is: te, defineProperty: ee, getOwnPropertyDescriptor: oe, getOwnPropertyNames: ie, getOwnPropertySymbols: ne, getPrototypeOf: re } = Object, D = globalThis, Pt = D.trustedTypes, se = Pt ? Pt.emptyScript : "", vt = D.reactiveElementPolyfillSupport, Y = (o, t) => o, ct = { toAttribute(o, t) {
|
|
49
49
|
switch (t) {
|
|
50
50
|
case Boolean:
|
|
51
|
-
o = o ?
|
|
51
|
+
o = o ? se : null;
|
|
52
52
|
break;
|
|
53
53
|
case Object:
|
|
54
54
|
case Array:
|
|
@@ -73,9 +73,9 @@ const { is: Yt, defineProperty: Qt, getOwnPropertyDescriptor: te, getOwnProperty
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return e;
|
|
76
|
-
} }, Ct = (o, t) => !
|
|
77
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
78
|
-
let
|
|
76
|
+
} }, Ct = (o, t) => !te(o, t), Bt = { attribute: !0, type: String, converter: ct, reflect: !1, useDefault: !1, hasChanged: Ct };
|
|
77
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), D.litPropertyMetadata ?? (D.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
|
+
let q = class extends HTMLElement {
|
|
79
79
|
static addInitializer(t) {
|
|
80
80
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
81
81
|
}
|
|
@@ -84,43 +84,43 @@ let V = class extends HTMLElement {
|
|
|
84
84
|
}
|
|
85
85
|
static createProperty(t, e = Bt) {
|
|
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
|
|
88
|
-
i !== void 0 &&
|
|
87
|
+
const n = Symbol(), i = this.getPropertyDescriptor(t, n, e);
|
|
88
|
+
i !== void 0 && ee(this.prototype, t, i);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
static getPropertyDescriptor(t, e,
|
|
92
|
-
const { get: i, set: s } =
|
|
91
|
+
static getPropertyDescriptor(t, e, n) {
|
|
92
|
+
const { get: i, set: s } = oe(this.prototype, t) ?? { get() {
|
|
93
93
|
return this[e];
|
|
94
|
-
}, set(
|
|
95
|
-
this[e] =
|
|
94
|
+
}, set(r) {
|
|
95
|
+
this[e] = r;
|
|
96
96
|
} };
|
|
97
|
-
return { get: i, set(
|
|
97
|
+
return { get: i, set(r) {
|
|
98
98
|
const h = i == null ? void 0 : i.call(this);
|
|
99
|
-
s == null || s.call(this,
|
|
99
|
+
s == null || s.call(this, r), this.requestUpdate(t, h, n);
|
|
100
100
|
}, configurable: !0, enumerable: !0 };
|
|
101
101
|
}
|
|
102
102
|
static getPropertyOptions(t) {
|
|
103
103
|
return this.elementProperties.get(t) ?? Bt;
|
|
104
104
|
}
|
|
105
105
|
static _$Ei() {
|
|
106
|
-
if (this.hasOwnProperty(
|
|
107
|
-
const t =
|
|
106
|
+
if (this.hasOwnProperty(Y("elementProperties"))) return;
|
|
107
|
+
const t = re(this);
|
|
108
108
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
109
109
|
}
|
|
110
110
|
static finalize() {
|
|
111
|
-
if (this.hasOwnProperty(
|
|
112
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
113
|
-
const e = this.properties,
|
|
114
|
-
for (const i of
|
|
111
|
+
if (this.hasOwnProperty(Y("finalized"))) return;
|
|
112
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Y("properties"))) {
|
|
113
|
+
const e = this.properties, n = [...ie(e), ...ne(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 V = 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(Ot(i));
|
|
133
133
|
} else t !== void 0 && e.push(Ot(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,18 +154,18 @@ let V = 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() {
|
|
161
161
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
162
|
-
return
|
|
162
|
+
return Qt(t, this.constructor.elementStyles), t;
|
|
163
163
|
}
|
|
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 V = 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
184
|
var s;
|
|
185
|
-
const
|
|
186
|
-
if (i !== void 0 &&
|
|
187
|
-
const
|
|
188
|
-
this._$Em = t,
|
|
185
|
+
const n = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, n);
|
|
186
|
+
if (i !== void 0 && n.reflect === !0) {
|
|
187
|
+
const r = (((s = n.converter) == null ? void 0 : s.toAttribute) !== void 0 ? n.converter : ct).toAttribute(e, n.type);
|
|
188
|
+
this._$Em = t, r == null ? this.removeAttribute(i) : this.setAttribute(i, r), this._$Em = null;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
_$AK(t, e) {
|
|
192
|
-
var s,
|
|
193
|
-
const
|
|
192
|
+
var s, r;
|
|
193
|
+
const n = this.constructor, i = n._$Eh.get(t);
|
|
194
194
|
if (i !== void 0 && this._$Em !== i) {
|
|
195
|
-
const h =
|
|
196
|
-
this._$Em = i, this[i] = c.fromAttribute(e, h.type) ?? ((
|
|
195
|
+
const h = n.getPropertyOptions(i), c = typeof h.converter == "function" ? { fromAttribute: h.converter } : ((s = h.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? h.converter : ct;
|
|
196
|
+
this._$Em = i, this[i] = c.fromAttribute(e, h.type) ?? ((r = this._$Ej) == null ? void 0 : r.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 s = this.constructor,
|
|
203
|
-
if (
|
|
204
|
-
this.C(t, e,
|
|
202
|
+
const s = this.constructor, r = this[t];
|
|
203
|
+
if (n ?? (n = s.getPropertyOptions(t)), !((n.hasChanged ?? Ct)(r, e) || n.useDefault && n.reflect && r === ((i = this._$Ej) == null ? void 0 : i.get(t)) && !this.hasAttribute(s._$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: s }, r) {
|
|
209
|
+
n && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, r ?? e ?? this[t]), s !== !0 || r !== 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,23 +222,23 @@ let V = 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 [s,
|
|
229
|
+
for (const [s, r] of this._$Ep) this[s] = r;
|
|
230
230
|
this._$Ep = void 0;
|
|
231
231
|
}
|
|
232
232
|
const i = this.constructor.elementProperties;
|
|
233
|
-
if (i.size > 0) for (const [s,
|
|
234
|
-
const { wrapped: h } =
|
|
235
|
-
h !== !0 || this._$AL.has(s) || c === void 0 || this.C(s, void 0,
|
|
233
|
+
if (i.size > 0) for (const [s, r] of i) {
|
|
234
|
+
const { wrapped: h } = r, c = this[s];
|
|
235
|
+
h !== !0 || this._$AL.has(s) || c === void 0 || this.C(s, void 0, r, 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), (
|
|
241
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (n = this._$EO) == null || n.forEach((i) => {
|
|
242
242
|
var s;
|
|
243
243
|
return (s = i.hostUpdate) == null ? void 0 : s.call(i);
|
|
244
244
|
}), this.update(e)) : this._$EM();
|
|
@@ -251,9 +251,9 @@ let V = 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() {
|
|
@@ -276,76 +276,76 @@ let V = class extends HTMLElement {
|
|
|
276
276
|
firstUpdated(t) {
|
|
277
277
|
}
|
|
278
278
|
};
|
|
279
|
-
|
|
279
|
+
q.elementStyles = [], q.shadowRootOptions = { mode: "open" }, q[Y("elementProperties")] = /* @__PURE__ */ new Map(), q[Y("finalized")] = /* @__PURE__ */ new Map(), vt == null || vt({ ReactiveElement: q }), (D.reactiveElementVersions ?? (D.reactiveElementVersions = [])).push("2.1.0");
|
|
280
280
|
/**
|
|
281
281
|
* @license
|
|
282
282
|
* Copyright 2017 Google LLC
|
|
283
283
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
284
284
|
*/
|
|
285
|
-
const
|
|
286
|
-
\f\r]`,
|
|
287
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Mt = /'/g, Tt = /"/g, Vt = /^(?:script|style|textarea|title)$/i,
|
|
285
|
+
const Q = globalThis, ht = Q.trustedTypes, zt = ht ? ht.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, Rt = "$lit$", z = `lit$${Math.random().toFixed(9).slice(2)}$`, Ft = "?" + z, ae = `<${Ft}>`, F = document, tt = () => F.createComment(""), et = (o) => o === null || typeof o != "object" && typeof o != "function", kt = Array.isArray, le = (o) => kt(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", bt = `[
|
|
286
|
+
\f\r]`, J = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Dt = /-->/g, Ht = />/g, U = RegExp(`>|${bt}(?:([^\\s"'>=/]+)(${bt}*=${bt}*(?:[^
|
|
287
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Mt = /'/g, Tt = /"/g, Vt = /^(?:script|style|textarea|title)$/i, ce = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), l = ce(1), H = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), jt = /* @__PURE__ */ new WeakMap(), N = F.createTreeWalker(F, 129);
|
|
288
288
|
function Zt(o, t) {
|
|
289
289
|
if (!kt(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
290
290
|
return zt !== void 0 ? zt.createHTML(t) : t;
|
|
291
291
|
}
|
|
292
|
-
const
|
|
293
|
-
const e = o.length - 1,
|
|
294
|
-
let i, s = t === 2 ? "<svg>" : t === 3 ? "<math>" : "",
|
|
292
|
+
const he = (o, t) => {
|
|
293
|
+
const e = o.length - 1, n = [];
|
|
294
|
+
let i, s = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", r = J;
|
|
295
295
|
for (let h = 0; h < e; h++) {
|
|
296
296
|
const c = o[h];
|
|
297
|
-
let v, f, p = -1,
|
|
298
|
-
for (;
|
|
299
|
-
const
|
|
300
|
-
s +=
|
|
297
|
+
let v, f, p = -1, I = 0;
|
|
298
|
+
for (; I < c.length && (r.lastIndex = I, f = r.exec(c), f !== null); ) I = r.lastIndex, r === J ? f[1] === "!--" ? r = Dt : f[1] !== void 0 ? r = Ht : f[2] !== void 0 ? (Vt.test(f[2]) && (i = RegExp("</" + f[2], "g")), r = U) : f[3] !== void 0 && (r = U) : r === U ? f[0] === ">" ? (r = i ?? J, p = -1) : f[1] === void 0 ? p = -2 : (p = r.lastIndex - f[2].length, v = f[1], r = f[3] === void 0 ? U : f[3] === '"' ? Tt : Mt) : r === Tt || r === Mt ? r = U : r === Dt || r === Ht ? r = J : (r = U, i = void 0);
|
|
299
|
+
const B = r === U && o[h + 1].startsWith("/>") ? " " : "";
|
|
300
|
+
s += r === J ? c + ae : p >= 0 ? (n.push(v), c.slice(0, p) + Rt + c.slice(p) + z + B) : c + z + (p === -2 ? h : B);
|
|
301
301
|
}
|
|
302
|
-
return [Zt(o, s + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")),
|
|
302
|
+
return [Zt(o, s + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
|
|
303
303
|
};
|
|
304
|
-
class
|
|
305
|
-
constructor({ strings: t, _$litType$: e },
|
|
304
|
+
class ot {
|
|
305
|
+
constructor({ strings: t, _$litType$: e }, n) {
|
|
306
306
|
let i;
|
|
307
307
|
this.parts = [];
|
|
308
|
-
let s = 0,
|
|
309
|
-
const h = t.length - 1, c = this.parts, [v, f] =
|
|
310
|
-
if (this.el =
|
|
308
|
+
let s = 0, r = 0;
|
|
309
|
+
const h = t.length - 1, c = this.parts, [v, f] = he(t, e);
|
|
310
|
+
if (this.el = ot.createElement(v, n), N.currentNode = this.el.content, e === 2 || e === 3) {
|
|
311
311
|
const p = this.el.content.firstChild;
|
|
312
312
|
p.replaceWith(...p.childNodes);
|
|
313
313
|
}
|
|
314
|
-
for (; (i =
|
|
314
|
+
for (; (i = N.nextNode()) !== null && c.length < h; ) {
|
|
315
315
|
if (i.nodeType === 1) {
|
|
316
|
-
if (i.hasAttributes()) for (const p of i.getAttributeNames()) if (p.endsWith(
|
|
317
|
-
const
|
|
318
|
-
c.push({ type: 1, index: s, name:
|
|
319
|
-
} else p.startsWith(
|
|
316
|
+
if (i.hasAttributes()) for (const p of i.getAttributeNames()) if (p.endsWith(Rt)) {
|
|
317
|
+
const I = f[r++], B = i.getAttribute(p).split(z), at = /([.?@])?(.*)/.exec(I);
|
|
318
|
+
c.push({ type: 1, index: s, name: at[2], strings: B, ctor: at[1] === "." ? pe : at[1] === "?" ? ue : at[1] === "@" ? ve : dt }), i.removeAttribute(p);
|
|
319
|
+
} else p.startsWith(z) && (c.push({ type: 6, index: s }), i.removeAttribute(p));
|
|
320
320
|
if (Vt.test(i.tagName)) {
|
|
321
|
-
const p = i.textContent.split(
|
|
322
|
-
if (
|
|
323
|
-
i.textContent =
|
|
324
|
-
for (let
|
|
325
|
-
i.append(p[
|
|
321
|
+
const p = i.textContent.split(z), I = p.length - 1;
|
|
322
|
+
if (I > 0) {
|
|
323
|
+
i.textContent = ht ? ht.emptyScript : "";
|
|
324
|
+
for (let B = 0; B < I; B++) i.append(p[B], tt()), N.nextNode(), c.push({ type: 2, index: ++s });
|
|
325
|
+
i.append(p[I], tt());
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
|
-
} else if (i.nodeType === 8) if (i.data ===
|
|
328
|
+
} else if (i.nodeType === 8) if (i.data === Ft) c.push({ type: 2, index: s });
|
|
329
329
|
else {
|
|
330
330
|
let p = -1;
|
|
331
|
-
for (; (p = i.data.indexOf(
|
|
331
|
+
for (; (p = i.data.indexOf(z, p + 1)) !== -1; ) c.push({ type: 7, index: s }), p += z.length - 1;
|
|
332
332
|
}
|
|
333
333
|
s++;
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
336
|
static createElement(t, e) {
|
|
337
|
-
const
|
|
338
|
-
return
|
|
337
|
+
const n = F.createElement("template");
|
|
338
|
+
return n.innerHTML = t, n;
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
function
|
|
342
|
-
var
|
|
343
|
-
if (t ===
|
|
344
|
-
let i =
|
|
345
|
-
const s =
|
|
346
|
-
return (i == null ? void 0 : i.constructor) !== s && ((h = i == null ? void 0 : i._$AO) == null || h.call(i, !1), s === void 0 ? i = void 0 : (i = new s(o), i._$AT(o, e,
|
|
341
|
+
function W(o, t, e = o, n) {
|
|
342
|
+
var r, h;
|
|
343
|
+
if (t === H) return t;
|
|
344
|
+
let i = n !== void 0 ? (r = e._$Co) == null ? void 0 : r[n] : e._$Cl;
|
|
345
|
+
const s = et(t) ? void 0 : t._$litDirective$;
|
|
346
|
+
return (i == null ? void 0 : i.constructor) !== s && ((h = i == null ? void 0 : i._$AO) == null || h.call(i, !1), s === void 0 ? i = void 0 : (i = new s(o), i._$AT(o, e, n)), n !== void 0 ? (e._$Co ?? (e._$Co = []))[n] = i : e._$Cl = i), i !== void 0 && (t = W(o, i._$AS(o, t.values), i, n)), t;
|
|
347
347
|
}
|
|
348
|
-
class
|
|
348
|
+
class de {
|
|
349
349
|
constructor(t, e) {
|
|
350
350
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
351
351
|
}
|
|
@@ -356,30 +356,30 @@ class ce {
|
|
|
356
356
|
return this._$AM._$AU;
|
|
357
357
|
}
|
|
358
358
|
u(t) {
|
|
359
|
-
const { el: { content: e }, parts:
|
|
360
|
-
|
|
361
|
-
let s =
|
|
359
|
+
const { el: { content: e }, parts: n } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? F).importNode(e, !0);
|
|
360
|
+
N.currentNode = i;
|
|
361
|
+
let s = N.nextNode(), r = 0, h = 0, c = n[0];
|
|
362
362
|
for (; c !== void 0; ) {
|
|
363
|
-
if (
|
|
363
|
+
if (r === c.index) {
|
|
364
364
|
let v;
|
|
365
|
-
c.type === 2 ? v = new
|
|
365
|
+
c.type === 2 ? v = new st(s, s.nextSibling, this, t) : c.type === 1 ? v = new c.ctor(s, c.name, c.strings, this, t) : c.type === 6 && (v = new be(s, this, t)), this._$AV.push(v), c = n[++h];
|
|
366
366
|
}
|
|
367
|
-
|
|
367
|
+
r !== (c == null ? void 0 : c.index) && (s = N.nextNode(), r++);
|
|
368
368
|
}
|
|
369
|
-
return
|
|
369
|
+
return N.currentNode = F, 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
|
-
class
|
|
376
|
+
class st {
|
|
377
377
|
get _$AU() {
|
|
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 nt {
|
|
|
393
393
|
return this._$AB;
|
|
394
394
|
}
|
|
395
395
|
_$AI(t, e = this) {
|
|
396
|
-
t =
|
|
396
|
+
t = W(this, t, e), et(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== H && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : le(t) ? this.k(t) : this._(t);
|
|
397
397
|
}
|
|
398
398
|
O(t) {
|
|
399
399
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -402,31 +402,31 @@ class nt {
|
|
|
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 && et(this._$AH) ? this._$AA.nextSibling.data = t : this.T(F.createTextNode(t)), this._$AH = t;
|
|
406
406
|
}
|
|
407
407
|
$(t) {
|
|
408
408
|
var s;
|
|
409
|
-
const { values: e, _$litType$:
|
|
409
|
+
const { values: e, _$litType$: n } = t, i = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = ot.createElement(Zt(n.h, n.h[0]), this.options)), n);
|
|
410
410
|
if (((s = this._$AH) == null ? void 0 : s._$AD) === i) this._$AH.p(e);
|
|
411
411
|
else {
|
|
412
|
-
const
|
|
413
|
-
|
|
412
|
+
const r = new de(i, this), h = r.u(this.options);
|
|
413
|
+
r.p(e), this.T(h), this._$AH = r;
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
_$AC(t) {
|
|
417
417
|
let e = jt.get(t.strings);
|
|
418
|
-
return e === void 0 && jt.set(t.strings, e = new
|
|
418
|
+
return e === void 0 && jt.set(t.strings, e = new ot(t)), e;
|
|
419
419
|
}
|
|
420
420
|
k(t) {
|
|
421
421
|
kt(this._$AH) || (this._$AH = [], this._$AR());
|
|
422
422
|
const e = this._$AH;
|
|
423
|
-
let
|
|
424
|
-
for (const s of t) i === e.length ? e.push(
|
|
425
|
-
i < e.length && (this._$AR(
|
|
423
|
+
let n, i = 0;
|
|
424
|
+
for (const s of t) i === e.length ? e.push(n = new st(this.O(tt()), this.O(tt()), this, this.options)) : n = e[i], n._$AI(s), 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
|
}
|
|
@@ -436,32 +436,32 @@ class nt {
|
|
|
436
436
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
|
-
class
|
|
439
|
+
class dt {
|
|
440
440
|
get tagName() {
|
|
441
441
|
return this.element.tagName;
|
|
442
442
|
}
|
|
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 = s,
|
|
446
|
+
constructor(t, e, n, i, s) {
|
|
447
|
+
this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = s, 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,
|
|
449
|
+
_$AI(t, e = this, n, i) {
|
|
450
450
|
const s = this.strings;
|
|
451
|
-
let
|
|
452
|
-
if (s === void 0) t =
|
|
451
|
+
let r = !1;
|
|
452
|
+
if (s === void 0) t = W(this, t, e, 0), r = !et(t) || t !== this._$AH && t !== H, r && (this._$AH = t);
|
|
453
453
|
else {
|
|
454
454
|
const h = t;
|
|
455
455
|
let c, v;
|
|
456
|
-
for (t = s[0], c = 0; c < s.length - 1; c++) v =
|
|
456
|
+
for (t = s[0], c = 0; c < s.length - 1; c++) v = W(this, h[n + c], e, c), v === H && (v = this._$AH[c]), r || (r = !et(v) || v !== this._$AH[c]), v === d ? t = d : t !== d && (t += (v ?? "") + s[c + 1]), this._$AH[c] = v;
|
|
457
457
|
}
|
|
458
|
-
|
|
458
|
+
r && !i && this.j(t);
|
|
459
459
|
}
|
|
460
460
|
j(t) {
|
|
461
461
|
t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
-
class
|
|
464
|
+
class pe extends dt {
|
|
465
465
|
constructor() {
|
|
466
466
|
super(...arguments), this.type = 3;
|
|
467
467
|
}
|
|
@@ -469,7 +469,7 @@ class he extends ht {
|
|
|
469
469
|
this.element[this.name] = t === d ? void 0 : t;
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
class
|
|
472
|
+
class ue extends dt {
|
|
473
473
|
constructor() {
|
|
474
474
|
super(...arguments), this.type = 4;
|
|
475
475
|
}
|
|
@@ -477,39 +477,39 @@ class de extends ht {
|
|
|
477
477
|
this.element.toggleAttribute(this.name, !!t && t !== d);
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
|
-
class
|
|
481
|
-
constructor(t, e,
|
|
482
|
-
super(t, e,
|
|
480
|
+
class ve extends dt {
|
|
481
|
+
constructor(t, e, n, i, s) {
|
|
482
|
+
super(t, e, n, i, s), this.type = 5;
|
|
483
483
|
}
|
|
484
484
|
_$AI(t, e = this) {
|
|
485
|
-
if ((t =
|
|
486
|
-
const
|
|
487
|
-
i && this.element.removeEventListener(this.name, this,
|
|
485
|
+
if ((t = W(this, t, e, 0) ?? d) === H) return;
|
|
486
|
+
const n = this._$AH, i = t === d && n !== d || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, s = t !== d && (n === d || i);
|
|
487
|
+
i && this.element.removeEventListener(this.name, this, n), s && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
488
488
|
}
|
|
489
489
|
handleEvent(t) {
|
|
490
490
|
var e;
|
|
491
491
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
class
|
|
495
|
-
constructor(t, e,
|
|
496
|
-
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options =
|
|
494
|
+
class be {
|
|
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;
|
|
500
500
|
}
|
|
501
501
|
_$AI(t) {
|
|
502
|
-
|
|
502
|
+
W(this, t);
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
const
|
|
506
|
-
|
|
507
|
-
const
|
|
508
|
-
const
|
|
509
|
-
let i =
|
|
505
|
+
const gt = Q.litHtmlPolyfillSupport;
|
|
506
|
+
gt == null || gt(ot, st), (Q.litHtmlVersions ?? (Q.litHtmlVersions = [])).push("3.3.0");
|
|
507
|
+
const ge = (o, t, e) => {
|
|
508
|
+
const n = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
509
|
+
let i = n._$litPart$;
|
|
510
510
|
if (i === void 0) {
|
|
511
511
|
const s = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
512
|
-
|
|
512
|
+
n._$litPart$ = i = new st(t.insertBefore(tt(), s), s, void 0, e ?? {});
|
|
513
513
|
}
|
|
514
514
|
return i._$AI(o), i;
|
|
515
515
|
};
|
|
@@ -518,8 +518,8 @@ const ve = (o, t, e) => {
|
|
|
518
518
|
* Copyright 2017 Google LLC
|
|
519
519
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
520
520
|
*/
|
|
521
|
-
const
|
|
522
|
-
let
|
|
521
|
+
const R = globalThis;
|
|
522
|
+
let b = class extends q {
|
|
523
523
|
constructor() {
|
|
524
524
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
525
525
|
}
|
|
@@ -530,7 +530,7 @@ let g = class extends V {
|
|
|
530
530
|
}
|
|
531
531
|
update(t) {
|
|
532
532
|
const e = this.render();
|
|
533
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
533
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = ge(e, this.renderRoot, this.renderOptions);
|
|
534
534
|
}
|
|
535
535
|
connectedCallback() {
|
|
536
536
|
var t;
|
|
@@ -541,14 +541,14 @@ let g = class extends V {
|
|
|
541
541
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
|
542
542
|
}
|
|
543
543
|
render() {
|
|
544
|
-
return
|
|
544
|
+
return H;
|
|
545
545
|
}
|
|
546
546
|
};
|
|
547
547
|
var Ut;
|
|
548
|
-
|
|
549
|
-
const ft =
|
|
550
|
-
ft == null || ft({ LitElement:
|
|
551
|
-
(
|
|
548
|
+
b._$litElement$ = !0, b.finalized = !0, (Ut = R.litElementHydrateSupport) == null || Ut.call(R, { LitElement: b });
|
|
549
|
+
const ft = R.litElementPolyfillSupport;
|
|
550
|
+
ft == null || ft({ LitElement: b });
|
|
551
|
+
(R.litElementVersions ?? (R.litElementVersions = [])).push("4.2.0");
|
|
552
552
|
/**
|
|
553
553
|
* @license
|
|
554
554
|
* Copyright 2017 Google LLC
|
|
@@ -564,31 +564,31 @@ const x = (o) => (t, e) => {
|
|
|
564
564
|
* Copyright 2017 Google LLC
|
|
565
565
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
566
566
|
*/
|
|
567
|
-
const
|
|
568
|
-
const { kind:
|
|
567
|
+
const fe = { attribute: !0, type: String, converter: ct, reflect: !1, hasChanged: Ct }, ye = (o = fe, t, e) => {
|
|
568
|
+
const { kind: n, metadata: i } = e;
|
|
569
569
|
let s = globalThis.litPropertyMetadata.get(i);
|
|
570
|
-
if (s === void 0 && globalThis.litPropertyMetadata.set(i, s = /* @__PURE__ */ new Map()),
|
|
571
|
-
const { name:
|
|
570
|
+
if (s === void 0 && globalThis.litPropertyMetadata.set(i, s = /* @__PURE__ */ new Map()), n === "setter" && ((o = Object.create(o)).wrapped = !0), s.set(e.name, o), n === "accessor") {
|
|
571
|
+
const { name: r } = e;
|
|
572
572
|
return { set(h) {
|
|
573
573
|
const c = t.get.call(this);
|
|
574
|
-
t.set.call(this, h), this.requestUpdate(
|
|
574
|
+
t.set.call(this, h), this.requestUpdate(r, c, o);
|
|
575
575
|
}, init(h) {
|
|
576
|
-
return h !== void 0 && this.C(
|
|
576
|
+
return h !== void 0 && this.C(r, void 0, o, h), h;
|
|
577
577
|
} };
|
|
578
578
|
}
|
|
579
|
-
if (
|
|
580
|
-
const { name:
|
|
579
|
+
if (n === "setter") {
|
|
580
|
+
const { name: r } = e;
|
|
581
581
|
return function(h) {
|
|
582
|
-
const c = this[
|
|
583
|
-
t.call(this, h), this.requestUpdate(
|
|
582
|
+
const c = this[r];
|
|
583
|
+
t.call(this, h), this.requestUpdate(r, 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" ?
|
|
590
|
-
const
|
|
591
|
-
return i.constructor.createProperty(s,
|
|
589
|
+
return (t, e) => typeof e == "object" ? ye(o, t, e) : ((n, i, s) => {
|
|
590
|
+
const r = i.hasOwnProperty(s);
|
|
591
|
+
return i.constructor.createProperty(s, n), r ? Object.getOwnPropertyDescriptor(i, s) : void 0;
|
|
592
592
|
})(o, t, e);
|
|
593
593
|
}
|
|
594
594
|
/**
|
|
@@ -596,10 +596,10 @@ function a(o) {
|
|
|
596
596
|
* Copyright 2017 Google LLC
|
|
597
597
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
598
598
|
*/
|
|
599
|
-
function
|
|
599
|
+
function V(o) {
|
|
600
600
|
return a({ ...o, state: !0, attribute: !1 });
|
|
601
601
|
}
|
|
602
|
-
const
|
|
602
|
+
const qt = y`
|
|
603
603
|
outline: 1px dashed var(--button-border-color);
|
|
604
604
|
outline-offset: 2px;
|
|
605
605
|
outline: dashed black;
|
|
@@ -615,7 +615,7 @@ y`
|
|
|
615
615
|
* SPDX-License-Identifier: Apache-2.0
|
|
616
616
|
*/
|
|
617
617
|
const At = Symbol("internals"), yt = Symbol("privateInternals");
|
|
618
|
-
function
|
|
618
|
+
function Wt(o) {
|
|
619
619
|
var t;
|
|
620
620
|
class e extends o {
|
|
621
621
|
get [(t = At, t)]() {
|
|
@@ -632,16 +632,16 @@ function ye(o) {
|
|
|
632
632
|
function me(o) {
|
|
633
633
|
o.addInitializer((t) => {
|
|
634
634
|
const e = t;
|
|
635
|
-
e.addEventListener("click", async (
|
|
636
|
-
const { type: i, [At]: s } = e, { form:
|
|
637
|
-
if (!(!
|
|
635
|
+
e.addEventListener("click", async (n) => {
|
|
636
|
+
const { type: i, [At]: s } = e, { form: r } = s;
|
|
637
|
+
if (!(!r || i === "button") && (await new Promise((h) => {
|
|
638
638
|
setTimeout(h);
|
|
639
|
-
}), !
|
|
639
|
+
}), !n.defaultPrevented)) {
|
|
640
640
|
if (i === "reset") {
|
|
641
|
-
|
|
641
|
+
r.reset();
|
|
642
642
|
return;
|
|
643
643
|
}
|
|
644
|
-
|
|
644
|
+
r.addEventListener(
|
|
645
645
|
"submit",
|
|
646
646
|
(h) => {
|
|
647
647
|
Object.defineProperty(h, "submitter", {
|
|
@@ -651,7 +651,7 @@ function me(o) {
|
|
|
651
651
|
});
|
|
652
652
|
},
|
|
653
653
|
{ capture: !0, once: !0 }
|
|
654
|
-
), s.setFormValue(e.value),
|
|
654
|
+
), s.setFormValue(e.value), r.requestSubmit();
|
|
655
655
|
}
|
|
656
656
|
});
|
|
657
657
|
});
|
|
@@ -734,10 +734,12 @@ const we = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
734
734
|
<rect x="1" width="2" height="8" fill="#3F2B2E"/>
|
|
735
735
|
<rect x="5" width="2" height="8" fill="#3F2B2E"/>
|
|
736
736
|
</svg>
|
|
737
|
-
`,
|
|
737
|
+
`, Ne = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
738
738
|
<path d="M10.5037 5.99925C10.7795 5.99925 11.0037 6.22311 11.0037 6.49925V14.2922L13.1462 12.1448C13.3411 11.9498 13.6573 11.95 13.8523 12.1448H13.8533C14.0482 12.34 14.0481 12.6565 13.8533 12.8518L10.8572 15.8518C10.6618 16.0471 10.3455 16.0471 10.1501 15.8518L7.15406 12.8518C6.96522 12.6557 6.96774 12.3444 7.15992 12.1516C7.35242 11.9588 7.66416 11.9556 7.86011 12.1448L10.0046 14.2922V6.49925C10.0046 6.22319 10.228 5.99938 10.5037 5.99925ZM5.15699 0.145737C5.35218 -0.0485278 5.66791 -0.0486304 5.86304 0.145737L8.85913 3.14574C9.04829 3.34183 9.04562 3.65402 8.85327 3.84691C8.66066 4.03978 8.34902 4.04225 8.15308 3.85277L6.00952 1.70628V9.49925C6.0095 9.77533 5.78621 9.99918 5.5105 9.99925C5.23473 9.99925 5.0115 9.77538 5.01148 9.49925V1.70628L2.86695 3.85179C2.74288 3.98695 2.55447 4.04321 2.37671 3.99828C2.1991 3.95328 2.06051 3.81475 2.01538 3.63695C1.97026 3.45902 2.02608 3.27015 2.16089 3.14574L5.15699 0.145737Z" fill="#001022"/>
|
|
739
739
|
</svg>
|
|
740
|
-
`,
|
|
740
|
+
`, Re = `<svg viewBox="0 0 200 200" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg">
|
|
741
|
+
<line x1="0" y1="0" x2="200" y2="200" />
|
|
742
|
+
</svg>`, X = {
|
|
741
743
|
wishlist: we,
|
|
742
744
|
playerv: xe,
|
|
743
745
|
chevronRight: $e,
|
|
@@ -759,22 +761,23 @@ const we = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
759
761
|
triangleup: Te,
|
|
760
762
|
checkstroke: je,
|
|
761
763
|
pause: Ue,
|
|
762
|
-
mapDualArrow:
|
|
764
|
+
mapDualArrow: Ne,
|
|
765
|
+
strikeDiagonal: Re
|
|
763
766
|
};
|
|
764
767
|
/**
|
|
765
768
|
* @license
|
|
766
769
|
* Copyright 2017 Google LLC
|
|
767
770
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
768
771
|
*/
|
|
769
|
-
const
|
|
770
|
-
let
|
|
772
|
+
const Kt = { ATTRIBUTE: 1, CHILD: 2 }, Gt = (o) => (...t) => ({ _$litDirective$: o, values: t });
|
|
773
|
+
let Xt = class {
|
|
771
774
|
constructor(t) {
|
|
772
775
|
}
|
|
773
776
|
get _$AU() {
|
|
774
777
|
return this._$AM._$AU;
|
|
775
778
|
}
|
|
776
|
-
_$AT(t, e,
|
|
777
|
-
this._$Ct = t, this._$AM = e, this._$Ci =
|
|
779
|
+
_$AT(t, e, n) {
|
|
780
|
+
this._$Ct = t, this._$AM = e, this._$Ci = n;
|
|
778
781
|
}
|
|
779
782
|
_$AS(t, e) {
|
|
780
783
|
return this.update(t, e);
|
|
@@ -788,13 +791,13 @@ let Kt = class {
|
|
|
788
791
|
* Copyright 2017 Google LLC
|
|
789
792
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
790
793
|
*/
|
|
791
|
-
class mt extends
|
|
794
|
+
class mt extends Xt {
|
|
792
795
|
constructor(t) {
|
|
793
|
-
if (super(t), this.it = d, t.type !==
|
|
796
|
+
if (super(t), this.it = d, t.type !== Kt.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
794
797
|
}
|
|
795
798
|
render(t) {
|
|
796
799
|
if (t === d || t == null) return this._t = void 0, this.it = t;
|
|
797
|
-
if (t ===
|
|
800
|
+
if (t === H) return t;
|
|
798
801
|
if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
799
802
|
if (t === this.it) return this._t;
|
|
800
803
|
this.it = t;
|
|
@@ -811,14 +814,14 @@ mt.directiveName = "unsafeHTML", mt.resultType = 1;
|
|
|
811
814
|
class wt extends mt {
|
|
812
815
|
}
|
|
813
816
|
wt.directiveName = "unsafeSVG", wt.resultType = 2;
|
|
814
|
-
const
|
|
815
|
-
var
|
|
816
|
-
for (var i =
|
|
817
|
-
(
|
|
818
|
-
return
|
|
817
|
+
const M = Gt(wt);
|
|
818
|
+
var Fe = Object.defineProperty, Ve = Object.getOwnPropertyDescriptor, w = (o, t, e, n) => {
|
|
819
|
+
for (var i = n > 1 ? void 0 : n ? Ve(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
820
|
+
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
821
|
+
return n && i && Fe(t, e, i), i;
|
|
819
822
|
};
|
|
820
|
-
const
|
|
821
|
-
let u = class extends
|
|
823
|
+
const Ze = Wt(b);
|
|
824
|
+
let u = class extends Ze {
|
|
822
825
|
constructor() {
|
|
823
826
|
super(...arguments), this.type = "submit", this.value = "", this.variant = "primary", this.text = "", this.textsecond = "", this.fullwidth = !1, this.disabled = !1, this.startIconModel = "", this.endIconModel = "", this.startIcon = !1, this.endIcon = !1, this.panelTarget = "", this.href = "", this.target = "";
|
|
824
827
|
}
|
|
@@ -843,11 +846,11 @@ let u = class extends Ve {
|
|
|
843
846
|
renderIcon(o) {
|
|
844
847
|
const t = o === "start" ? this.startIconModel : this.endIconModel;
|
|
845
848
|
if (!t) return d;
|
|
846
|
-
const e =
|
|
849
|
+
const e = X[t].replace(
|
|
847
850
|
"<svg",
|
|
848
851
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
849
852
|
);
|
|
850
|
-
return l`<span class="${o === "start" ? "icon-start" : "icon-end"}">${
|
|
853
|
+
return l`<span class="${o === "start" ? "icon-start" : "icon-end"}">${M(e)}</span>`;
|
|
851
854
|
}
|
|
852
855
|
renderButton() {
|
|
853
856
|
const o = this.text || this.textsecond;
|
|
@@ -995,7 +998,7 @@ u.styles = y`
|
|
|
995
998
|
}
|
|
996
999
|
|
|
997
1000
|
.button:focus-visible {
|
|
998
|
-
${
|
|
1001
|
+
${qt};
|
|
999
1002
|
}
|
|
1000
1003
|
|
|
1001
1004
|
span.text + span.text::before {
|
|
@@ -1091,12 +1094,12 @@ w([
|
|
|
1091
1094
|
u = w([
|
|
1092
1095
|
x("o-button")
|
|
1093
1096
|
], u);
|
|
1094
|
-
var
|
|
1095
|
-
for (var i =
|
|
1096
|
-
(
|
|
1097
|
-
return
|
|
1097
|
+
var qe = Object.defineProperty, We = Object.getOwnPropertyDescriptor, pt = (o, t, e, n) => {
|
|
1098
|
+
for (var i = n > 1 ? void 0 : n ? We(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
1099
|
+
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
1100
|
+
return n && i && qe(t, e, i), i;
|
|
1098
1101
|
};
|
|
1099
|
-
let
|
|
1102
|
+
let K = class extends b {
|
|
1100
1103
|
constructor() {
|
|
1101
1104
|
super(...arguments), this.status = "empty", this.ariaDescribedBy = "a-product-name", this.label = "Add to wishlist", this.toggleStatus = () => {
|
|
1102
1105
|
this.status = this.status === "empty" ? "filled" : "empty", this.setAttribute("aria-pressed", String(this.status === "filled")), this.dispatchEvent(new CustomEvent("wishlist-toggle", {
|
|
@@ -1116,14 +1119,14 @@ let q = class extends g {
|
|
|
1116
1119
|
(o.key === "Enter" || o.key === " ") && (o.preventDefault(), this.toggleStatus());
|
|
1117
1120
|
}
|
|
1118
1121
|
render() {
|
|
1119
|
-
const o =
|
|
1122
|
+
const o = X.wishlist.replace(
|
|
1120
1123
|
"<svg",
|
|
1121
1124
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
1122
1125
|
);
|
|
1123
1126
|
return l`
|
|
1124
1127
|
<button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
|
|
1125
1128
|
<span class="sr-only">${this.label}</span>
|
|
1126
|
-
${
|
|
1129
|
+
${M(o)}
|
|
1127
1130
|
</button>
|
|
1128
1131
|
`;
|
|
1129
1132
|
}
|
|
@@ -1137,7 +1140,7 @@ let q = class extends g {
|
|
|
1137
1140
|
this.label = o, this.requestUpdate();
|
|
1138
1141
|
}
|
|
1139
1142
|
};
|
|
1140
|
-
|
|
1143
|
+
K.styles = y`
|
|
1141
1144
|
:host {
|
|
1142
1145
|
display: inline-flex;
|
|
1143
1146
|
justify-content: center;
|
|
@@ -1201,30 +1204,30 @@ q.styles = y`
|
|
|
1201
1204
|
white-space: nowrap !important;
|
|
1202
1205
|
}
|
|
1203
1206
|
`;
|
|
1204
|
-
|
|
1207
|
+
pt([
|
|
1205
1208
|
a({ type: String, reflect: !0 })
|
|
1206
|
-
],
|
|
1207
|
-
|
|
1209
|
+
], K.prototype, "status", 2);
|
|
1210
|
+
pt([
|
|
1208
1211
|
a({ type: String, reflect: !0 })
|
|
1209
|
-
],
|
|
1210
|
-
|
|
1212
|
+
], K.prototype, "ariaDescribedBy", 2);
|
|
1213
|
+
pt([
|
|
1211
1214
|
a({ type: String, reflect: !0 })
|
|
1212
|
-
],
|
|
1213
|
-
|
|
1215
|
+
], K.prototype, "label", 2);
|
|
1216
|
+
K = pt([
|
|
1214
1217
|
x("o-wishlist-button")
|
|
1215
|
-
],
|
|
1218
|
+
], K);
|
|
1216
1219
|
/**
|
|
1217
1220
|
* @license
|
|
1218
1221
|
* Copyright 2018 Google LLC
|
|
1219
1222
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1220
1223
|
*/
|
|
1221
1224
|
const $ = (o) => o ?? d;
|
|
1222
|
-
var
|
|
1223
|
-
for (var i =
|
|
1224
|
-
(
|
|
1225
|
-
return
|
|
1225
|
+
var Ke = Object.defineProperty, Ge = Object.getOwnPropertyDescriptor, E = (o, t, e, n) => {
|
|
1226
|
+
for (var i = n > 1 ? void 0 : n ? Ge(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
1227
|
+
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
1228
|
+
return n && i && Ke(t, e, i), i;
|
|
1226
1229
|
};
|
|
1227
|
-
let _ = class extends
|
|
1230
|
+
let _ = class extends b {
|
|
1228
1231
|
constructor() {
|
|
1229
1232
|
super(...arguments), this.bgstyle = "background-light", this.size = "medium", this.status = "empty", this.type = "button", this.strokewidth = "1", this.icon = "wishlist", this.disabled = !1, this.showSrLabel = !1, this.srLabel = "";
|
|
1230
1233
|
}
|
|
@@ -1232,14 +1235,14 @@ let _ = class extends g {
|
|
|
1232
1235
|
super.updated(o), this.style.setProperty("--icon-stroke-width", this.strokewidth);
|
|
1233
1236
|
}
|
|
1234
1237
|
render() {
|
|
1235
|
-
const o =
|
|
1238
|
+
const o = X[this.icon] ?? "", t = `icon-${this.icon}`, e = o.replace(
|
|
1236
1239
|
"<svg",
|
|
1237
1240
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
1238
|
-
),
|
|
1241
|
+
), n = this.showSrLabel ? l`<span class="sr-only">${this.srLabel}</span>` : null, i = this.showSrLabel ? null : "icon";
|
|
1239
1242
|
return l`
|
|
1240
1243
|
${this.type === "span" ? l`
|
|
1241
1244
|
<span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
|
|
1242
|
-
${
|
|
1245
|
+
${M(e)}
|
|
1243
1246
|
</span>
|
|
1244
1247
|
` : l`
|
|
1245
1248
|
<button
|
|
@@ -1248,8 +1251,8 @@ let _ = class extends g {
|
|
|
1248
1251
|
class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}"
|
|
1249
1252
|
?disabled="${this.disabled}"
|
|
1250
1253
|
>
|
|
1251
|
-
${
|
|
1252
|
-
${
|
|
1254
|
+
${M(e)}
|
|
1255
|
+
${n}
|
|
1253
1256
|
</button>
|
|
1254
1257
|
`}
|
|
1255
1258
|
`;
|
|
@@ -1462,42 +1465,42 @@ _.styles = y`
|
|
|
1462
1465
|
display: none;
|
|
1463
1466
|
}
|
|
1464
1467
|
`;
|
|
1465
|
-
|
|
1468
|
+
E([
|
|
1466
1469
|
a({ type: String, reflect: !0 })
|
|
1467
1470
|
], _.prototype, "bgstyle", 2);
|
|
1468
|
-
|
|
1471
|
+
E([
|
|
1469
1472
|
a({ type: String, reflect: !0 })
|
|
1470
1473
|
], _.prototype, "size", 2);
|
|
1471
|
-
|
|
1474
|
+
E([
|
|
1472
1475
|
a({ type: String, reflect: !0 })
|
|
1473
1476
|
], _.prototype, "status", 2);
|
|
1474
|
-
|
|
1477
|
+
E([
|
|
1475
1478
|
a({ type: String, reflect: !0 })
|
|
1476
1479
|
], _.prototype, "type", 2);
|
|
1477
|
-
|
|
1480
|
+
E([
|
|
1478
1481
|
a({ type: String })
|
|
1479
1482
|
], _.prototype, "strokewidth", 2);
|
|
1480
|
-
|
|
1483
|
+
E([
|
|
1481
1484
|
a({ type: String })
|
|
1482
1485
|
], _.prototype, "icon", 2);
|
|
1483
|
-
|
|
1486
|
+
E([
|
|
1484
1487
|
a({ type: Boolean, reflect: !0 })
|
|
1485
1488
|
], _.prototype, "disabled", 2);
|
|
1486
|
-
|
|
1489
|
+
E([
|
|
1487
1490
|
a({ type: Boolean })
|
|
1488
1491
|
], _.prototype, "showSrLabel", 2);
|
|
1489
|
-
|
|
1492
|
+
E([
|
|
1490
1493
|
a({ type: String })
|
|
1491
1494
|
], _.prototype, "srLabel", 2);
|
|
1492
|
-
_ =
|
|
1495
|
+
_ = E([
|
|
1493
1496
|
x("o-icon-button")
|
|
1494
1497
|
], _);
|
|
1495
|
-
var
|
|
1496
|
-
for (var i =
|
|
1497
|
-
(
|
|
1498
|
-
return
|
|
1498
|
+
var Xe = Object.defineProperty, Je = Object.getOwnPropertyDescriptor, Z = (o, t, e, n) => {
|
|
1499
|
+
for (var i = n > 1 ? void 0 : n ? Je(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
1500
|
+
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
1501
|
+
return n && i && Xe(t, e, i), i;
|
|
1499
1502
|
};
|
|
1500
|
-
let
|
|
1503
|
+
let O = class extends b {
|
|
1501
1504
|
constructor() {
|
|
1502
1505
|
super(...arguments), this.href = "", this.target = "", this.template = "standard", this.inverse = !1, this.endIcon = !1, this.reverseEndIcon = !1;
|
|
1503
1506
|
}
|
|
@@ -1535,7 +1538,7 @@ let I = class extends g {
|
|
|
1535
1538
|
`;
|
|
1536
1539
|
}
|
|
1537
1540
|
};
|
|
1538
|
-
|
|
1541
|
+
O.styles = y`
|
|
1539
1542
|
:host([template="standard"]) a {
|
|
1540
1543
|
color: var(--color-content-action-secondary);
|
|
1541
1544
|
font-size: var(--font-size-200);
|
|
@@ -1623,33 +1626,33 @@ I.styles = y`
|
|
|
1623
1626
|
}
|
|
1624
1627
|
/* End of underline effect */
|
|
1625
1628
|
`;
|
|
1626
|
-
|
|
1629
|
+
Z([
|
|
1627
1630
|
a({ type: String })
|
|
1628
|
-
],
|
|
1629
|
-
|
|
1631
|
+
], O.prototype, "href", 2);
|
|
1632
|
+
Z([
|
|
1630
1633
|
a({ type: String })
|
|
1631
|
-
],
|
|
1632
|
-
|
|
1634
|
+
], O.prototype, "target", 2);
|
|
1635
|
+
Z([
|
|
1633
1636
|
a({ type: String, reflect: !0 })
|
|
1634
|
-
],
|
|
1635
|
-
|
|
1637
|
+
], O.prototype, "template", 2);
|
|
1638
|
+
Z([
|
|
1636
1639
|
a({ type: Boolean, reflect: !0 })
|
|
1637
|
-
],
|
|
1638
|
-
|
|
1640
|
+
], O.prototype, "inverse", 2);
|
|
1641
|
+
Z([
|
|
1639
1642
|
a({ type: Boolean, reflect: !0 })
|
|
1640
|
-
],
|
|
1641
|
-
|
|
1643
|
+
], O.prototype, "endIcon", 2);
|
|
1644
|
+
Z([
|
|
1642
1645
|
a({ type: Boolean, reflect: !0 })
|
|
1643
|
-
],
|
|
1644
|
-
|
|
1646
|
+
], O.prototype, "reverseEndIcon", 2);
|
|
1647
|
+
O = Z([
|
|
1645
1648
|
x("o-link")
|
|
1646
|
-
],
|
|
1647
|
-
var
|
|
1648
|
-
for (var i =
|
|
1649
|
-
(
|
|
1650
|
-
return
|
|
1649
|
+
], O);
|
|
1650
|
+
var Ye = Object.defineProperty, Qe = Object.getOwnPropertyDescriptor, ut = (o, t, e, n) => {
|
|
1651
|
+
for (var i = n > 1 ? void 0 : n ? Qe(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
1652
|
+
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
1653
|
+
return n && i && Ye(t, e, i), i;
|
|
1651
1654
|
};
|
|
1652
|
-
let
|
|
1655
|
+
let G = class extends b {
|
|
1653
1656
|
constructor() {
|
|
1654
1657
|
super(...arguments), this.rating = 0;
|
|
1655
1658
|
}
|
|
@@ -1657,8 +1660,8 @@ let W = class extends g {
|
|
|
1657
1660
|
const o = [];
|
|
1658
1661
|
for (let t = 0; t < 5; t++) {
|
|
1659
1662
|
const e = this.rating - t;
|
|
1660
|
-
let
|
|
1661
|
-
e >= 1 ?
|
|
1663
|
+
let n;
|
|
1664
|
+
e >= 1 ? n = 100 : e <= 0 ? n = 0 : n = Math.round(e * 100 / 25) * 25, o.push(`star-${n}`);
|
|
1662
1665
|
}
|
|
1663
1666
|
return o;
|
|
1664
1667
|
}
|
|
@@ -1668,7 +1671,7 @@ let W = class extends g {
|
|
|
1668
1671
|
<div class="rating">
|
|
1669
1672
|
<div class="stars">
|
|
1670
1673
|
${o.map(
|
|
1671
|
-
(t) => l`<span class="star">${
|
|
1674
|
+
(t) => l`<span class="star">${M(X[t] ?? "")}</span>`
|
|
1672
1675
|
)}
|
|
1673
1676
|
</div>
|
|
1674
1677
|
${this.reviewCount != null && this.href != null ? l`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>` : null}
|
|
@@ -1676,7 +1679,7 @@ let W = class extends g {
|
|
|
1676
1679
|
`;
|
|
1677
1680
|
}
|
|
1678
1681
|
};
|
|
1679
|
-
|
|
1682
|
+
G.styles = y`
|
|
1680
1683
|
svg {
|
|
1681
1684
|
width: 12px;
|
|
1682
1685
|
height: 12px;
|
|
@@ -1710,24 +1713,24 @@ W.styles = y`
|
|
|
1710
1713
|
cursor: pointer;
|
|
1711
1714
|
}
|
|
1712
1715
|
`;
|
|
1713
|
-
|
|
1716
|
+
ut([
|
|
1714
1717
|
a({ type: Number })
|
|
1715
|
-
],
|
|
1716
|
-
|
|
1718
|
+
], G.prototype, "rating", 2);
|
|
1719
|
+
ut([
|
|
1717
1720
|
a({ type: String })
|
|
1718
|
-
],
|
|
1719
|
-
|
|
1721
|
+
], G.prototype, "reviewCount", 2);
|
|
1722
|
+
ut([
|
|
1720
1723
|
a({ type: String })
|
|
1721
|
-
],
|
|
1722
|
-
|
|
1724
|
+
], G.prototype, "href", 2);
|
|
1725
|
+
G = ut([
|
|
1723
1726
|
x("o-rating")
|
|
1724
|
-
],
|
|
1725
|
-
var
|
|
1726
|
-
for (var i =
|
|
1727
|
-
(
|
|
1728
|
-
return
|
|
1727
|
+
], G);
|
|
1728
|
+
var to = Object.defineProperty, eo = Object.getOwnPropertyDescriptor, m = (o, t, e, n) => {
|
|
1729
|
+
for (var i = n > 1 ? void 0 : n ? eo(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
1730
|
+
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
1731
|
+
return n && i && to(t, e, i), i;
|
|
1729
1732
|
};
|
|
1730
|
-
let
|
|
1733
|
+
let g = class extends b {
|
|
1731
1734
|
constructor() {
|
|
1732
1735
|
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.secondaryButtonLabel = "", this.secondaryButtonVariant = "secondary", this.disablePortal = !1, this.zIndex = 99, this.initialized = !1, this.previousFocusedElement = null, this.handleKeyDown = (o) => {
|
|
1733
1736
|
this.open && (o.key === "Escape" ? this.closePanel() : o.key === "Tab" && this.trapFocus(o));
|
|
@@ -1744,8 +1747,8 @@ let b = class extends g {
|
|
|
1744
1747
|
trapFocus(o) {
|
|
1745
1748
|
const t = this.getFocusableElements();
|
|
1746
1749
|
if (t.length === 0) return;
|
|
1747
|
-
const e = t[0],
|
|
1748
|
-
o.shiftKey && document.activeElement === e ? (o.preventDefault(),
|
|
1750
|
+
const e = t[0], n = t[t.length - 1];
|
|
1751
|
+
o.shiftKey && document.activeElement === e ? (o.preventDefault(), n.focus()) : !o.shiftKey && document.activeElement === n && (o.preventDefault(), e.focus());
|
|
1749
1752
|
}
|
|
1750
1753
|
getFocusableElements() {
|
|
1751
1754
|
const o = this.renderRoot.querySelector(".panel");
|
|
@@ -1826,7 +1829,7 @@ let b = class extends g {
|
|
|
1826
1829
|
`;
|
|
1827
1830
|
}
|
|
1828
1831
|
};
|
|
1829
|
-
|
|
1832
|
+
g.styles = y`
|
|
1830
1833
|
:host {
|
|
1831
1834
|
--z-overlay: 99;
|
|
1832
1835
|
--z-panel: 100;
|
|
@@ -1969,58 +1972,58 @@ b.styles = y`
|
|
|
1969
1972
|
`;
|
|
1970
1973
|
m([
|
|
1971
1974
|
a({ type: Boolean, reflect: !0 })
|
|
1972
|
-
],
|
|
1975
|
+
], g.prototype, "open", 2);
|
|
1973
1976
|
m([
|
|
1974
1977
|
a({ type: Boolean, reflect: !0 })
|
|
1975
|
-
],
|
|
1978
|
+
], g.prototype, "showHeader", 2);
|
|
1976
1979
|
m([
|
|
1977
1980
|
a({ type: Boolean, reflect: !0 })
|
|
1978
|
-
],
|
|
1981
|
+
], g.prototype, "showFooter", 2);
|
|
1979
1982
|
m([
|
|
1980
1983
|
a({ type: Boolean, reflect: !0 })
|
|
1981
|
-
],
|
|
1984
|
+
], g.prototype, "showHeaderStartIcon", 2);
|
|
1982
1985
|
m([
|
|
1983
1986
|
a({ type: String, reflect: !0 })
|
|
1984
|
-
],
|
|
1987
|
+
], g.prototype, "headerTitle", 2);
|
|
1985
1988
|
m([
|
|
1986
1989
|
a({ type: String, reflect: !0 })
|
|
1987
|
-
],
|
|
1990
|
+
], g.prototype, "closeButtonLabel", 2);
|
|
1988
1991
|
m([
|
|
1989
1992
|
a({ type: String, reflect: !0 })
|
|
1990
|
-
],
|
|
1993
|
+
], g.prototype, "firstButtonLabel", 2);
|
|
1991
1994
|
m([
|
|
1992
1995
|
a({ type: String, reflect: !0 })
|
|
1993
|
-
],
|
|
1996
|
+
], g.prototype, "firstButtonVariant", 2);
|
|
1994
1997
|
m([
|
|
1995
1998
|
a({ type: Function })
|
|
1996
|
-
],
|
|
1999
|
+
], g.prototype, "onFirstButtonClick", 2);
|
|
1997
2000
|
m([
|
|
1998
2001
|
a({ type: String, reflect: !0 })
|
|
1999
|
-
],
|
|
2002
|
+
], g.prototype, "secondaryButtonLabel", 2);
|
|
2000
2003
|
m([
|
|
2001
2004
|
a({ type: String, reflect: !0 })
|
|
2002
|
-
],
|
|
2005
|
+
], g.prototype, "secondaryButtonVariant", 2);
|
|
2003
2006
|
m([
|
|
2004
2007
|
a({ type: Function })
|
|
2005
|
-
],
|
|
2008
|
+
], g.prototype, "onSecondaryButtonClick", 2);
|
|
2006
2009
|
m([
|
|
2007
2010
|
a({ type: Boolean, reflect: !0 })
|
|
2008
|
-
],
|
|
2011
|
+
], g.prototype, "disablePortal", 2);
|
|
2009
2012
|
m([
|
|
2010
2013
|
a({ type: Number, reflect: !0 })
|
|
2011
|
-
],
|
|
2014
|
+
], g.prototype, "zIndex", 2);
|
|
2012
2015
|
m([
|
|
2013
2016
|
a({ type: Boolean, reflect: !0 })
|
|
2014
|
-
],
|
|
2015
|
-
|
|
2017
|
+
], g.prototype, "initialized", 2);
|
|
2018
|
+
g = m([
|
|
2016
2019
|
x("o-side-panel")
|
|
2017
|
-
],
|
|
2018
|
-
var
|
|
2019
|
-
for (var i =
|
|
2020
|
-
(
|
|
2021
|
-
return
|
|
2020
|
+
], g);
|
|
2021
|
+
var oo = Object.defineProperty, io = Object.getOwnPropertyDescriptor, T = (o, t, e, n) => {
|
|
2022
|
+
for (var i = n > 1 ? void 0 : n ? io(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
2023
|
+
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
2024
|
+
return n && i && oo(t, e, i), i;
|
|
2022
2025
|
};
|
|
2023
|
-
let A = class extends
|
|
2026
|
+
let A = class extends b {
|
|
2024
2027
|
constructor() {
|
|
2025
2028
|
super(...arguments), this.thumbnails = [], this.activeIndex = 0, this.disabledIndexes = [], this.maxWidth = "100%", this.altressource = "visual", this.focusedIndex = 0, this.playerIconTemplate = l`
|
|
2026
2029
|
<o-icon-button
|
|
@@ -2072,7 +2075,7 @@ let A = class extends g {
|
|
|
2072
2075
|
return l`
|
|
2073
2076
|
<ul class="scroll-container" style="max-width: ${this.maxWidth};">
|
|
2074
2077
|
${this.thumbnails.map((o, t) => {
|
|
2075
|
-
const e = this.disabledIndexes.includes(t),
|
|
2078
|
+
const e = this.disabledIndexes.includes(t), n = this.activeIndex === t, i = o.type === "video", s = i ? `video ${t}` : `${this.altressource} ${t + 1}`;
|
|
2076
2079
|
return l`
|
|
2077
2080
|
<li class="thumb-wrapper">
|
|
2078
2081
|
<button
|
|
@@ -2080,12 +2083,12 @@ let A = class extends g {
|
|
|
2080
2083
|
data-index="${t}"
|
|
2081
2084
|
?disabled=${e}
|
|
2082
2085
|
aria-selected="${this.focusedIndex === t}"
|
|
2083
|
-
aria-current=${
|
|
2086
|
+
aria-current=${n ? "true" : "false"}
|
|
2084
2087
|
tabindex="${this.disabledIndexes.includes(t) ? -1 : 0}"
|
|
2085
2088
|
@click=${() => this.selectThumbnail(t)}
|
|
2086
2089
|
@keydown=${this.handleKeyDown}
|
|
2087
|
-
@focus=${(
|
|
2088
|
-
@blur=${(
|
|
2090
|
+
@focus=${(r) => this.onFocus(r)}
|
|
2091
|
+
@blur=${(r) => this.onBlur(r)}
|
|
2089
2092
|
>
|
|
2090
2093
|
<img alt="${s}" src="${o.src}" />
|
|
2091
2094
|
</button>
|
|
@@ -2203,36 +2206,36 @@ A.styles = y`
|
|
|
2203
2206
|
width: 0;
|
|
2204
2207
|
}
|
|
2205
2208
|
`;
|
|
2206
|
-
|
|
2209
|
+
T([
|
|
2207
2210
|
a({ type: Array })
|
|
2208
2211
|
], A.prototype, "thumbnails", 2);
|
|
2209
|
-
|
|
2212
|
+
T([
|
|
2210
2213
|
a({ type: Number })
|
|
2211
2214
|
], A.prototype, "activeIndex", 2);
|
|
2212
|
-
|
|
2215
|
+
T([
|
|
2213
2216
|
a({ type: Array })
|
|
2214
2217
|
], A.prototype, "disabledIndexes", 2);
|
|
2215
|
-
|
|
2218
|
+
T([
|
|
2216
2219
|
a({ type: String })
|
|
2217
2220
|
], A.prototype, "maxWidth", 2);
|
|
2218
|
-
|
|
2221
|
+
T([
|
|
2219
2222
|
a({ type: String })
|
|
2220
2223
|
], A.prototype, "altressource", 2);
|
|
2221
|
-
|
|
2224
|
+
T([
|
|
2222
2225
|
a({ type: Object })
|
|
2223
2226
|
], A.prototype, "swiperInstance", 2);
|
|
2224
|
-
|
|
2225
|
-
|
|
2227
|
+
T([
|
|
2228
|
+
V()
|
|
2226
2229
|
], A.prototype, "focusedIndex", 2);
|
|
2227
|
-
A =
|
|
2230
|
+
A = T([
|
|
2228
2231
|
x("thumbnail-navigation")
|
|
2229
2232
|
], A);
|
|
2230
|
-
var
|
|
2231
|
-
for (var i =
|
|
2232
|
-
(
|
|
2233
|
-
return
|
|
2233
|
+
var no = Object.defineProperty, ro = Object.getOwnPropertyDescriptor, St = (o, t, e, n) => {
|
|
2234
|
+
for (var i = n > 1 ? void 0 : n ? ro(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
2235
|
+
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
2236
|
+
return n && i && no(t, e, i), i;
|
|
2234
2237
|
};
|
|
2235
|
-
let
|
|
2238
|
+
let it = class extends b {
|
|
2236
2239
|
constructor() {
|
|
2237
2240
|
super(...arguments), this.type = "", this.bgstyle = "background-white";
|
|
2238
2241
|
}
|
|
@@ -2242,7 +2245,7 @@ let ot = class extends g {
|
|
|
2242
2245
|
`;
|
|
2243
2246
|
}
|
|
2244
2247
|
};
|
|
2245
|
-
|
|
2248
|
+
it.styles = y`
|
|
2246
2249
|
.tag {
|
|
2247
2250
|
display: inline-block;
|
|
2248
2251
|
padding: var(--spacing-2-xs) var(--spacing-s);
|
|
@@ -2300,19 +2303,19 @@ ot.styles = y`
|
|
|
2300
2303
|
`;
|
|
2301
2304
|
St([
|
|
2302
2305
|
a({ type: String, reflect: !0 })
|
|
2303
|
-
],
|
|
2306
|
+
], it.prototype, "type", 2);
|
|
2304
2307
|
St([
|
|
2305
2308
|
a({ type: String, reflect: !0 })
|
|
2306
|
-
],
|
|
2307
|
-
|
|
2309
|
+
], it.prototype, "bgstyle", 2);
|
|
2310
|
+
it = St([
|
|
2308
2311
|
x("o-tag")
|
|
2309
|
-
],
|
|
2310
|
-
var
|
|
2311
|
-
for (var i =
|
|
2312
|
-
(
|
|
2313
|
-
return
|
|
2312
|
+
], it);
|
|
2313
|
+
var so = Object.defineProperty, ao = Object.getOwnPropertyDescriptor, Et = (o, t, e, n) => {
|
|
2314
|
+
for (var i = n > 1 ? void 0 : n ? ao(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
2315
|
+
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
2316
|
+
return n && i && so(t, e, i), i;
|
|
2314
2317
|
};
|
|
2315
|
-
let
|
|
2318
|
+
let nt = class extends b {
|
|
2316
2319
|
constructor() {
|
|
2317
2320
|
super(...arguments), this.type = "top", this.text = "";
|
|
2318
2321
|
}
|
|
@@ -2325,7 +2328,7 @@ let it = class extends g {
|
|
|
2325
2328
|
`;
|
|
2326
2329
|
}
|
|
2327
2330
|
};
|
|
2328
|
-
|
|
2331
|
+
nt.styles = y`
|
|
2329
2332
|
.tooltip {
|
|
2330
2333
|
position: relative;
|
|
2331
2334
|
display: inline-block;
|
|
@@ -2420,19 +2423,19 @@ it.styles = y`
|
|
|
2420
2423
|
`;
|
|
2421
2424
|
Et([
|
|
2422
2425
|
a({ type: String, reflect: !0 })
|
|
2423
|
-
],
|
|
2426
|
+
], nt.prototype, "type", 2);
|
|
2424
2427
|
Et([
|
|
2425
2428
|
a({ type: String, reflect: !0 })
|
|
2426
|
-
],
|
|
2427
|
-
|
|
2429
|
+
], nt.prototype, "text", 2);
|
|
2430
|
+
nt = Et([
|
|
2428
2431
|
x("o-tooltip")
|
|
2429
|
-
],
|
|
2430
|
-
var
|
|
2431
|
-
for (var i =
|
|
2432
|
-
(
|
|
2433
|
-
return
|
|
2432
|
+
], nt);
|
|
2433
|
+
var lo = Object.defineProperty, co = Object.getOwnPropertyDescriptor, P = (o, t, e, n) => {
|
|
2434
|
+
for (var i = n > 1 ? void 0 : n ? co(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
2435
|
+
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
2436
|
+
return n && i && lo(t, e, i), i;
|
|
2434
2437
|
};
|
|
2435
|
-
let k = class extends
|
|
2438
|
+
let k = class extends b {
|
|
2436
2439
|
constructor() {
|
|
2437
2440
|
super(...arguments), this.options = [], this.value = "", this.name = "", this.disabled = !1, this.width = "100%", this.open = !1, this.activeIndex = -1, this.menuWidth = "", this._handleOutsideClick = (o) => {
|
|
2438
2441
|
this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
|
|
@@ -2498,7 +2501,7 @@ let k = class extends g {
|
|
|
2498
2501
|
this.options.length > 0 && (this.options.some((e) => e.value === this.value) || (this.value = this.options[0].value));
|
|
2499
2502
|
}
|
|
2500
2503
|
render() {
|
|
2501
|
-
const o =
|
|
2504
|
+
const o = X.checkstroke.replace(
|
|
2502
2505
|
"<svg",
|
|
2503
2506
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
2504
2507
|
), t = this.options.find((e) => e.value === this.value);
|
|
@@ -2531,22 +2534,22 @@ let k = class extends g {
|
|
|
2531
2534
|
style=${`width: ${this.width};`}
|
|
2532
2535
|
>
|
|
2533
2536
|
${this.options.map(
|
|
2534
|
-
(e,
|
|
2537
|
+
(e, n) => l`
|
|
2535
2538
|
<li
|
|
2536
|
-
id="option-${
|
|
2539
|
+
id="option-${n}"
|
|
2537
2540
|
role="option"
|
|
2538
2541
|
aria-selected="${e.value === this.value}"
|
|
2539
|
-
tabindex="${
|
|
2540
|
-
class="${
|
|
2542
|
+
tabindex="${n === this.activeIndex ? "0" : "-1"}"
|
|
2543
|
+
class="${n === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
|
|
2541
2544
|
@click=${() => this.selectOption(e)}
|
|
2542
2545
|
>
|
|
2543
2546
|
${e.url ? l`
|
|
2544
2547
|
<a href="${e.url}">
|
|
2545
2548
|
<span>${e.label}</span>
|
|
2546
|
-
${e.value === this.value ? l`<span class="check">${
|
|
2549
|
+
${e.value === this.value ? l`<span class="check">${M(o)}</span>` : null}
|
|
2547
2550
|
</a>` : l`
|
|
2548
2551
|
<span>${e.label}</span>
|
|
2549
|
-
${e.value === this.value ? l`<span class="check">${
|
|
2552
|
+
${e.value === this.value ? l`<span class="check">${M(o)}</span>` : null}`}
|
|
2550
2553
|
</li>`
|
|
2551
2554
|
)}
|
|
2552
2555
|
</ul>` : null}
|
|
@@ -2695,39 +2698,39 @@ k.styles = y`
|
|
|
2695
2698
|
display: none;
|
|
2696
2699
|
}
|
|
2697
2700
|
`;
|
|
2698
|
-
|
|
2701
|
+
P([
|
|
2699
2702
|
a({ type: Array, reflect: !0 })
|
|
2700
2703
|
], k.prototype, "options", 2);
|
|
2701
|
-
|
|
2704
|
+
P([
|
|
2702
2705
|
a({ type: String, reflect: !0 })
|
|
2703
2706
|
], k.prototype, "value", 2);
|
|
2704
|
-
|
|
2707
|
+
P([
|
|
2705
2708
|
a({ type: String, reflect: !0 })
|
|
2706
2709
|
], k.prototype, "name", 2);
|
|
2707
|
-
|
|
2710
|
+
P([
|
|
2708
2711
|
a({ type: Boolean, reflect: !0 })
|
|
2709
2712
|
], k.prototype, "disabled", 2);
|
|
2710
|
-
|
|
2713
|
+
P([
|
|
2711
2714
|
a({ type: String, reflect: !0 })
|
|
2712
2715
|
], k.prototype, "width", 2);
|
|
2713
|
-
|
|
2714
|
-
|
|
2716
|
+
P([
|
|
2717
|
+
V()
|
|
2715
2718
|
], k.prototype, "open", 2);
|
|
2716
|
-
|
|
2717
|
-
|
|
2719
|
+
P([
|
|
2720
|
+
V()
|
|
2718
2721
|
], k.prototype, "activeIndex", 2);
|
|
2719
|
-
|
|
2720
|
-
|
|
2722
|
+
P([
|
|
2723
|
+
V()
|
|
2721
2724
|
], k.prototype, "menuWidth", 2);
|
|
2722
|
-
k =
|
|
2725
|
+
k = P([
|
|
2723
2726
|
x("o-dropdown")
|
|
2724
2727
|
], k);
|
|
2725
|
-
var
|
|
2726
|
-
for (var i =
|
|
2727
|
-
(
|
|
2728
|
+
var ho = Object.getOwnPropertyDescriptor, po = (o, t, e, n) => {
|
|
2729
|
+
for (var i = n > 1 ? void 0 : n ? ho(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
2730
|
+
(r = o[s]) && (i = r(i) || i);
|
|
2728
2731
|
return i;
|
|
2729
2732
|
};
|
|
2730
|
-
let xt = class extends
|
|
2733
|
+
let xt = class extends b {
|
|
2731
2734
|
render() {
|
|
2732
2735
|
return l` <span class="dots"></span> `;
|
|
2733
2736
|
}
|
|
@@ -2784,15 +2787,15 @@ xt.styles = y`
|
|
|
2784
2787
|
}
|
|
2785
2788
|
}
|
|
2786
2789
|
`;
|
|
2787
|
-
xt =
|
|
2790
|
+
xt = po([
|
|
2788
2791
|
x("o-dots")
|
|
2789
2792
|
], xt);
|
|
2790
|
-
var
|
|
2791
|
-
for (var i =
|
|
2792
|
-
(
|
|
2793
|
-
return
|
|
2793
|
+
var uo = Object.defineProperty, vo = Object.getOwnPropertyDescriptor, L = (o, t, e, n) => {
|
|
2794
|
+
for (var i = n > 1 ? void 0 : n ? vo(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
2795
|
+
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
2796
|
+
return n && i && uo(t, e, i), i;
|
|
2794
2797
|
};
|
|
2795
|
-
let C = class extends
|
|
2798
|
+
let C = class extends b {
|
|
2796
2799
|
constructor() {
|
|
2797
2800
|
super(...arguments), this.options = [], this.value = "", this.name = "", this.additionaltext = "+X variant(s)", this.disabled = !1, this.width = "100%", this.open = !1, this.activeIndex = -1, this.menuWidth = "", this._handleOutsideClick = (o) => {
|
|
2798
2801
|
this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
|
|
@@ -2858,7 +2861,7 @@ let C = class extends g {
|
|
|
2858
2861
|
this.options.length > 0 && (this.options.some((t) => t.value === this.value) || (this.value = this.options[0].value));
|
|
2859
2862
|
}
|
|
2860
2863
|
render() {
|
|
2861
|
-
const o =
|
|
2864
|
+
const o = X.checkstroke.replace(
|
|
2862
2865
|
"<svg",
|
|
2863
2866
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
2864
2867
|
), t = this.options.find((e) => e.value === this.value);
|
|
@@ -2901,14 +2904,14 @@ let C = class extends g {
|
|
|
2901
2904
|
style=${`width: ${this.width};`}
|
|
2902
2905
|
>
|
|
2903
2906
|
${this.options.map(
|
|
2904
|
-
(e,
|
|
2907
|
+
(e, n) => l`
|
|
2905
2908
|
<li
|
|
2906
|
-
id="option-${
|
|
2909
|
+
id="option-${n}"
|
|
2907
2910
|
role="option"
|
|
2908
2911
|
aria-selected="${e.value === this.value}"
|
|
2909
2912
|
aria-disabled="${e.disabled ? "true" : "false"}"
|
|
2910
|
-
tabindex="${
|
|
2911
|
-
class="${
|
|
2913
|
+
tabindex="${n === this.activeIndex ? "0" : "-1"}"
|
|
2914
|
+
class="${n === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
|
|
2912
2915
|
@click=${() => this.selectOption(e)}
|
|
2913
2916
|
>
|
|
2914
2917
|
<a href="${$(e.url)}">
|
|
@@ -2917,7 +2920,7 @@ let C = class extends g {
|
|
|
2917
2920
|
<div class="right">
|
|
2918
2921
|
<span class="additional-text">${$(e.additionaltext)}</span>
|
|
2919
2922
|
${e.value === this.value && !e.additionaltext ? l`
|
|
2920
|
-
<span class="check">${
|
|
2923
|
+
<span class="check">${M(o)}</span>` : null}
|
|
2921
2924
|
</div>
|
|
2922
2925
|
</a>
|
|
2923
2926
|
</li>
|
|
@@ -3105,34 +3108,34 @@ C.styles = y`
|
|
|
3105
3108
|
display: none;
|
|
3106
3109
|
}
|
|
3107
3110
|
`;
|
|
3108
|
-
|
|
3111
|
+
L([
|
|
3109
3112
|
a({ type: Array, reflect: !0 })
|
|
3110
3113
|
], C.prototype, "options", 2);
|
|
3111
|
-
|
|
3114
|
+
L([
|
|
3112
3115
|
a({ type: String, reflect: !0 })
|
|
3113
3116
|
], C.prototype, "value", 2);
|
|
3114
|
-
|
|
3117
|
+
L([
|
|
3115
3118
|
a({ type: String, reflect: !0 })
|
|
3116
3119
|
], C.prototype, "name", 2);
|
|
3117
|
-
|
|
3120
|
+
L([
|
|
3118
3121
|
a({ type: String, reflect: !0 })
|
|
3119
3122
|
], C.prototype, "additionaltext", 2);
|
|
3120
|
-
|
|
3123
|
+
L([
|
|
3121
3124
|
a({ type: Boolean, reflect: !0 })
|
|
3122
3125
|
], C.prototype, "disabled", 2);
|
|
3123
|
-
|
|
3126
|
+
L([
|
|
3124
3127
|
a({ type: String, reflect: !0 })
|
|
3125
3128
|
], C.prototype, "width", 2);
|
|
3126
|
-
|
|
3127
|
-
|
|
3129
|
+
L([
|
|
3130
|
+
V()
|
|
3128
3131
|
], C.prototype, "open", 2);
|
|
3129
|
-
|
|
3130
|
-
|
|
3132
|
+
L([
|
|
3133
|
+
V()
|
|
3131
3134
|
], C.prototype, "activeIndex", 2);
|
|
3132
|
-
|
|
3133
|
-
|
|
3135
|
+
L([
|
|
3136
|
+
V()
|
|
3134
3137
|
], C.prototype, "menuWidth", 2);
|
|
3135
|
-
C =
|
|
3138
|
+
C = L([
|
|
3136
3139
|
x("o-dropdown-variant")
|
|
3137
3140
|
], C);
|
|
3138
3141
|
/**
|
|
@@ -3140,38 +3143,38 @@ C = E([
|
|
|
3140
3143
|
* Copyright 2018 Google LLC
|
|
3141
3144
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3142
3145
|
*/
|
|
3143
|
-
const
|
|
3146
|
+
const Jt = "important", bo = " !" + Jt, go = Gt(class extends Xt {
|
|
3144
3147
|
constructor(o) {
|
|
3145
3148
|
var t;
|
|
3146
|
-
if (super(o), o.type !==
|
|
3149
|
+
if (super(o), o.type !== Kt.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.");
|
|
3147
3150
|
}
|
|
3148
3151
|
render(o) {
|
|
3149
3152
|
return Object.keys(o).reduce((t, e) => {
|
|
3150
|
-
const
|
|
3151
|
-
return
|
|
3153
|
+
const n = o[e];
|
|
3154
|
+
return n == null ? t : t + `${e = e.includes("-") ? e : e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${n};`;
|
|
3152
3155
|
}, "");
|
|
3153
3156
|
}
|
|
3154
3157
|
update(o, [t]) {
|
|
3155
3158
|
const { style: e } = o.element;
|
|
3156
3159
|
if (this.ft === void 0) return this.ft = new Set(Object.keys(t)), this.render(t);
|
|
3157
|
-
for (const
|
|
3158
|
-
for (const
|
|
3159
|
-
const i = t[
|
|
3160
|
+
for (const n of this.ft) t[n] == null && (this.ft.delete(n), n.includes("-") ? e.removeProperty(n) : e[n] = null);
|
|
3161
|
+
for (const n in t) {
|
|
3162
|
+
const i = t[n];
|
|
3160
3163
|
if (i != null) {
|
|
3161
|
-
this.ft.add(
|
|
3162
|
-
const s = typeof i == "string" && i.endsWith(
|
|
3163
|
-
|
|
3164
|
+
this.ft.add(n);
|
|
3165
|
+
const s = typeof i == "string" && i.endsWith(bo);
|
|
3166
|
+
n.includes("-") || s ? e.setProperty(n, s ? i.slice(0, -11) : i, s ? Jt : "") : e[n] = i;
|
|
3164
3167
|
}
|
|
3165
3168
|
}
|
|
3166
|
-
return
|
|
3169
|
+
return H;
|
|
3167
3170
|
}
|
|
3168
3171
|
});
|
|
3169
|
-
var
|
|
3170
|
-
for (var i =
|
|
3171
|
-
(
|
|
3172
|
-
return
|
|
3172
|
+
var fo = Object.defineProperty, yo = Object.getOwnPropertyDescriptor, Lt = (o, t, e, n) => {
|
|
3173
|
+
for (var i = n > 1 ? void 0 : n ? yo(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
3174
|
+
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
3175
|
+
return n && i && fo(t, e, i), i;
|
|
3173
3176
|
};
|
|
3174
|
-
let rt = class extends
|
|
3177
|
+
let rt = class extends b {
|
|
3175
3178
|
constructor() {
|
|
3176
3179
|
super(...arguments), this.option = {}, this.imageSize = 64;
|
|
3177
3180
|
}
|
|
@@ -3280,71 +3283,140 @@ Lt([
|
|
|
3280
3283
|
rt = Lt([
|
|
3281
3284
|
x("o-reassurance")
|
|
3282
3285
|
], rt);
|
|
3283
|
-
var
|
|
3284
|
-
for (var i =
|
|
3285
|
-
(
|
|
3286
|
-
return
|
|
3286
|
+
var mo = Object.defineProperty, wo = Object.getOwnPropertyDescriptor, j = (o, t, e, n) => {
|
|
3287
|
+
for (var i = n > 1 ? void 0 : n ? wo(t, e) : t, s = o.length - 1, r; s >= 0; s--)
|
|
3288
|
+
(r = o[s]) && (i = (n ? r(t, e, i) : r(i)) || i);
|
|
3289
|
+
return n && i && mo(t, e, i), i;
|
|
3287
3290
|
};
|
|
3288
|
-
|
|
3291
|
+
const xo = Wt(b);
|
|
3292
|
+
let S = class extends xo {
|
|
3289
3293
|
constructor() {
|
|
3290
|
-
super(...arguments), this.
|
|
3294
|
+
super(...arguments), this.link = "", this.name = "", this.value = "", this.text = "", this.size = "standard", this.selected = !1, this.fullwidth = !1;
|
|
3295
|
+
}
|
|
3296
|
+
handleClick(o) {
|
|
3297
|
+
this.selected || (this.selected = !0);
|
|
3291
3298
|
}
|
|
3292
3299
|
render() {
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3300
|
+
const o = this.text;
|
|
3301
|
+
return this.link ? l`
|
|
3302
|
+
<a href="${this.link}" class="o-chip">
|
|
3303
|
+
${o ? this.text : l`<slot></slot>`}
|
|
3304
|
+
</a>
|
|
3305
|
+
` : l`
|
|
3306
|
+
<button type="button" class="button" @click=${this.handleClick}
|
|
3307
|
+
aria-label=${this.ariaLabel} aria-pressed=${this.selected}>
|
|
3308
|
+
${o ? this.text : l`<slot></slot>`}
|
|
3309
|
+
</button>
|
|
3310
|
+
`;
|
|
3298
3311
|
}
|
|
3299
3312
|
};
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
font-size: var(--font-size-150);
|
|
3315
|
-
line-height: var(--line-height-200);
|
|
3316
|
-
letter-spacing: var(--letter-spacing-000);
|
|
3317
|
-
font-weight: var(--font-weight-400);
|
|
3318
|
-
text-decoration: none;
|
|
3319
|
-
color: var(--color-content-action-secondary);
|
|
3320
|
-
}
|
|
3313
|
+
S.styles = y`
|
|
3314
|
+
:host {
|
|
3315
|
+
cursor: pointer;
|
|
3316
|
+
display: inline-flex;
|
|
3317
|
+
--button-bg: var(--color-container-action-secondary-default);
|
|
3318
|
+
--button-bg-hover: var(--color-container-action-secondary-hover);
|
|
3319
|
+
--button-bg-pressed: var(--color-container-action-secondary-pressed);
|
|
3320
|
+
--button-text: var(--color-content-action-secondary);
|
|
3321
|
+
--button-text-hover: var(--color-content-action-secondary);
|
|
3322
|
+
--button-border: var(--color-border-secondary);
|
|
3323
|
+
--button-border-width: var(--border-m);
|
|
3324
|
+
--button-padding: var(--spacing-xs) var(--spacing-m);
|
|
3325
|
+
--button-endicon-svg-width: 0px; /* No endicon SVG for secondary button */
|
|
3326
|
+
}
|
|
3321
3327
|
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3328
|
+
:host([fullwidth]) {
|
|
3329
|
+
width: 100%;
|
|
3330
|
+
}
|
|
3331
|
+
|
|
3332
|
+
:host([selected]) {
|
|
3333
|
+
--button-bg: var(--color-container-filter-default);
|
|
3334
|
+
--button-bg-hover: var(--color-container-filter-hover);
|
|
3335
|
+
--button-bg-pressed: var(--color-container-filter-pressed);
|
|
3336
|
+
--button-text: var(--color-content-action-primary);
|
|
3337
|
+
--button-text-hover: var(--color-content-action-primary);
|
|
3338
|
+
--button-border: transparent;
|
|
3339
|
+
--button-border-width: var(--border-m);
|
|
3340
|
+
}
|
|
3326
3341
|
|
|
3327
|
-
|
|
3328
|
-
|
|
3342
|
+
:host([size="large"]) {
|
|
3343
|
+
--button-padding: var(--spacing-m) var(--spacing-3-xl);
|
|
3344
|
+
}
|
|
3329
3345
|
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3346
|
+
.o-chip,
|
|
3347
|
+
.button {
|
|
3348
|
+
display: inline-flex;
|
|
3349
|
+
align-items: center;
|
|
3350
|
+
justify-content: center;
|
|
3351
|
+
width: 100%;
|
|
3352
|
+
gap: var(--spacing-2-xs);
|
|
3353
|
+
height: 100%;
|
|
3354
|
+
background-color: var(--button-bg);
|
|
3355
|
+
color: var(--button-text);
|
|
3356
|
+
border: var(--button-border-width, var(--border-m)) solid var(--button-border);
|
|
3357
|
+
border-radius: var(--radius-m);
|
|
3358
|
+
font-family: var(--font-family-loccitane-sans);
|
|
3359
|
+
font-size: var(--font-size-150);
|
|
3360
|
+
font-weight: var(--font-weight-400);
|
|
3361
|
+
line-height: var(--line-height-200);
|
|
3362
|
+
min-width: 64px;
|
|
3363
|
+
padding: var(--button-padding);
|
|
3364
|
+
text-decoration: none;
|
|
3365
|
+
cursor: inherit;
|
|
3366
|
+
box-sizing: border-box;
|
|
3333
3367
|
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3368
|
+
span {
|
|
3369
|
+
font-family: var(--font-family-loccitane-sans);
|
|
3370
|
+
font-size: var(--font-size-150);
|
|
3371
|
+
font-weight: var(--font-weight-400);
|
|
3372
|
+
line-height: var(--line-height-200);
|
|
3373
|
+
}
|
|
3374
|
+
|
|
3375
|
+
&:hover {
|
|
3376
|
+
background-color: var(--button-bg-hover);
|
|
3377
|
+
color: var(--button-text-hover);
|
|
3378
|
+
}
|
|
3379
|
+
|
|
3380
|
+
&:active {
|
|
3381
|
+
background-color: var(--button-bg-pressed);
|
|
3382
|
+
}
|
|
3383
|
+
|
|
3384
|
+
&:focus-visible {
|
|
3385
|
+
${qt};
|
|
3386
|
+
}
|
|
3387
|
+
}
|
|
3388
|
+
|
|
3389
|
+
span.text + span.text::before {
|
|
3390
|
+
content: "•";
|
|
3391
|
+
margin-right: 8px;
|
|
3392
|
+
}
|
|
3393
|
+
|
|
3394
|
+
.button > * {
|
|
3395
|
+
display: inline-flex;
|
|
3396
|
+
align-items: center;
|
|
3397
|
+
}
|
|
3398
|
+
`;
|
|
3399
|
+
j([
|
|
3343
3400
|
a({ type: String, reflect: !0 })
|
|
3344
|
-
],
|
|
3345
|
-
|
|
3401
|
+
], S.prototype, "link", 2);
|
|
3402
|
+
j([
|
|
3403
|
+
a({ reflect: !0 })
|
|
3404
|
+
], S.prototype, "name", 2);
|
|
3405
|
+
j([
|
|
3406
|
+
a({ reflect: !0 })
|
|
3407
|
+
], S.prototype, "value", 2);
|
|
3408
|
+
j([
|
|
3409
|
+
a({ type: String })
|
|
3410
|
+
], S.prototype, "text", 2);
|
|
3411
|
+
j([
|
|
3346
3412
|
a({ type: String, reflect: !0 })
|
|
3347
|
-
],
|
|
3348
|
-
|
|
3413
|
+
], S.prototype, "size", 2);
|
|
3414
|
+
j([
|
|
3415
|
+
a({ type: Boolean, reflect: !0 })
|
|
3416
|
+
], S.prototype, "selected", 2);
|
|
3417
|
+
j([
|
|
3418
|
+
a({ type: Boolean, reflect: !0 })
|
|
3419
|
+
], S.prototype, "fullwidth", 2);
|
|
3420
|
+
S = j([
|
|
3349
3421
|
x("o-chip")
|
|
3350
|
-
],
|
|
3422
|
+
], S);
|