@florid-kit/components 0.8.12 → 0.8.15
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/assets/icons/icons.d.ts +1 -0
- package/components/button.d.ts +2 -0
- package/components/filter-chip.d.ts +1 -1
- package/components/side-panel.d.ts +2 -0
- package/index.js +257 -92
- package/index.mjs +1029 -593
- 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 dt = globalThis, St = dt.ShadowRoot && (dt.ShadyCSS === void 0 || dt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Et = Symbol(), Nt = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
let Yt = class {
|
|
8
|
+
constructor(t, e, r) {
|
|
9
|
+
if (this._$cssResult$ = !0, r !== Et) 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
|
-
if (
|
|
16
|
-
const
|
|
17
|
-
|
|
15
|
+
if (St && t === void 0) {
|
|
16
|
+
const r = e !== void 0 && e.length === 1;
|
|
17
|
+
r && (t = Nt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && Nt.set(e, t));
|
|
18
18
|
}
|
|
19
19
|
return t;
|
|
20
20
|
}
|
|
@@ -22,33 +22,33 @@ let Nt = 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: " +
|
|
30
|
-
})(i) + o[
|
|
31
|
-
return new
|
|
32
|
-
},
|
|
33
|
-
if (
|
|
25
|
+
const se = (o) => new Yt(typeof o == "string" ? o : o + "", void 0, Et), y = (o, ...t) => {
|
|
26
|
+
const e = o.length === 1 ? o[0] : t.reduce((r, i, n) => r + ((s) => {
|
|
27
|
+
if (s._$cssResult$ === !0) return s.cssText;
|
|
28
|
+
if (typeof s == "number") return s;
|
|
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[n + 1], o[0]);
|
|
31
|
+
return new Yt(e, o, Et);
|
|
32
|
+
}, ae = (o, t) => {
|
|
33
|
+
if (St) 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 r = document.createElement("style"), i = dt.litNonce;
|
|
36
|
+
i !== void 0 && r.setAttribute("nonce", i), r.textContent = e.cssText, o.appendChild(r);
|
|
37
37
|
}
|
|
38
|
-
},
|
|
38
|
+
}, Ft = St ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
39
39
|
let e = "";
|
|
40
|
-
for (const
|
|
41
|
-
return
|
|
40
|
+
for (const r of t.cssRules) e += r.cssText;
|
|
41
|
+
return se(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: le, defineProperty: ce, getOwnPropertyDescriptor: he, getOwnPropertyNames: de, getOwnPropertySymbols: pe, getPrototypeOf: ue } = Object, M = globalThis, Rt = M.trustedTypes, ve = Rt ? Rt.emptyScript : "", mt = M.reactiveElementPolyfillSupport, tt = (o, t) => o, pt = { toAttribute(o, t) {
|
|
49
49
|
switch (t) {
|
|
50
50
|
case Boolean:
|
|
51
|
-
o = o ?
|
|
51
|
+
o = o ? ve : null;
|
|
52
52
|
break;
|
|
53
53
|
case Object:
|
|
54
54
|
case Array:
|
|
@@ -73,54 +73,54 @@ const { is: te, defineProperty: ee, getOwnPropertyDescriptor: oe, getOwnProperty
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return e;
|
|
76
|
-
} },
|
|
77
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
78
|
-
let
|
|
76
|
+
} }, Lt = (o, t) => !le(o, t), Vt = { attribute: !0, type: String, converter: pt, reflect: !1, useDefault: !1, hasChanged: Lt };
|
|
77
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), M.litPropertyMetadata ?? (M.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
|
+
let G = class extends HTMLElement {
|
|
79
79
|
static addInitializer(t) {
|
|
80
80
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
81
81
|
}
|
|
82
82
|
static get observedAttributes() {
|
|
83
83
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
84
84
|
}
|
|
85
|
-
static createProperty(t, e =
|
|
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
|
|
88
|
-
i !== void 0 &&
|
|
87
|
+
const r = Symbol(), i = this.getPropertyDescriptor(t, r, e);
|
|
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, r) {
|
|
92
|
+
const { get: i, set: n } = he(this.prototype, t) ?? { get() {
|
|
93
93
|
return this[e];
|
|
94
|
-
}, set(
|
|
95
|
-
this[e] =
|
|
94
|
+
}, set(s) {
|
|
95
|
+
this[e] = s;
|
|
96
96
|
} };
|
|
97
|
-
return { get: i, set(
|
|
97
|
+
return { get: i, set(s) {
|
|
98
98
|
const h = i == null ? void 0 : i.call(this);
|
|
99
|
-
|
|
99
|
+
n == null || n.call(this, s), this.requestUpdate(t, h, r);
|
|
100
100
|
}, configurable: !0, enumerable: !0 };
|
|
101
101
|
}
|
|
102
102
|
static getPropertyOptions(t) {
|
|
103
|
-
return this.elementProperties.get(t) ??
|
|
103
|
+
return this.elementProperties.get(t) ?? Vt;
|
|
104
104
|
}
|
|
105
105
|
static _$Ei() {
|
|
106
|
-
if (this.hasOwnProperty(
|
|
107
|
-
const t =
|
|
106
|
+
if (this.hasOwnProperty(tt("elementProperties"))) return;
|
|
107
|
+
const t = ue(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(tt("finalized"))) return;
|
|
112
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(tt("properties"))) {
|
|
113
|
+
const e = this.properties, r = [...de(e), ...pe(e)];
|
|
114
|
+
for (const i of r) 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 [r, i] of e) this.elementProperties.set(r, i);
|
|
120
120
|
}
|
|
121
121
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
122
|
-
for (const [e,
|
|
123
|
-
const i = this._$Eu(e,
|
|
122
|
+
for (const [e, r] of this.elementProperties) {
|
|
123
|
+
const i = this._$Eu(e, r);
|
|
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 q = 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
|
|
133
|
-
} else t !== void 0 && e.push(
|
|
131
|
+
const r = new Set(t.flat(1 / 0).reverse());
|
|
132
|
+
for (const i of r) e.unshift(Ft(i));
|
|
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 r = e.attribute;
|
|
138
|
+
return r === !1 ? void 0 : typeof r == "string" ? r : 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 q = 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 r of e.keys()) this.hasOwnProperty(r) && (t.set(r, this[r]), delete this[r]);
|
|
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 ae(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 r;
|
|
168
|
+
return (r = e.hostConnected) == null ? void 0 : r.call(e);
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
enableUpdating(t) {
|
|
@@ -173,40 +173,40 @@ let q = 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 r;
|
|
177
|
+
return (r = e.hostDisconnected) == null ? void 0 : r.call(e);
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
|
-
attributeChangedCallback(t, e,
|
|
181
|
-
this._$AK(t,
|
|
180
|
+
attributeChangedCallback(t, e, r) {
|
|
181
|
+
this._$AK(t, r);
|
|
182
182
|
}
|
|
183
183
|
_$ET(t, e) {
|
|
184
|
-
var
|
|
185
|
-
const
|
|
186
|
-
if (i !== void 0 &&
|
|
187
|
-
const
|
|
188
|
-
this._$Em = t,
|
|
184
|
+
var n;
|
|
185
|
+
const r = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, r);
|
|
186
|
+
if (i !== void 0 && r.reflect === !0) {
|
|
187
|
+
const s = (((n = r.converter) == null ? void 0 : n.toAttribute) !== void 0 ? r.converter : pt).toAttribute(e, r.type);
|
|
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 n, s;
|
|
193
|
+
const r = this.constructor, i = r._$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 = r.getPropertyOptions(i), c = typeof h.converter == "function" ? { fromAttribute: h.converter } : ((n = h.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? h.converter : pt;
|
|
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, r) {
|
|
200
200
|
var i;
|
|
201
201
|
if (t !== void 0) {
|
|
202
|
-
const
|
|
203
|
-
if (
|
|
204
|
-
this.C(t, e,
|
|
202
|
+
const n = this.constructor, s = this[t];
|
|
203
|
+
if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ?? Lt)(s, e) || r.useDefault && r.reflect && s === ((i = this._$Ej) == null ? void 0 : i.get(t)) && !this.hasAttribute(n._$Eu(t, r)))) return;
|
|
204
|
+
this.C(t, e, r);
|
|
205
205
|
}
|
|
206
206
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
207
207
|
}
|
|
208
|
-
C(t, e, { useDefault:
|
|
209
|
-
|
|
208
|
+
C(t, e, { useDefault: r, reflect: i, wrapped: n }, s) {
|
|
209
|
+
r && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, s ?? e ?? this[t]), n !== !0 || s !== void 0) || (this._$AL.has(t) || (this.hasUpdated || r || (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 q = class extends HTMLElement {
|
|
|
222
222
|
return this.performUpdate();
|
|
223
223
|
}
|
|
224
224
|
performUpdate() {
|
|
225
|
-
var
|
|
225
|
+
var r;
|
|
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 [n, s] of this._$Ep) this[n] = 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 } =
|
|
235
|
-
h !== !0 || this._$AL.has(
|
|
233
|
+
if (i.size > 0) for (const [n, s] of i) {
|
|
234
|
+
const { wrapped: h } = s, c = this[n];
|
|
235
|
+
h !== !0 || this._$AL.has(n) || c === void 0 || this.C(n, 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), (r = this._$EO) == null || r.forEach((i) => {
|
|
242
|
+
var n;
|
|
243
|
+
return (n = i.hostUpdate) == null ? void 0 : n.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 q = 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((r) => {
|
|
255
255
|
var i;
|
|
256
|
-
return (i =
|
|
256
|
+
return (i = r.hostUpdated) == null ? void 0 : i.call(r);
|
|
257
257
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
258
258
|
}
|
|
259
259
|
_$EM() {
|
|
@@ -276,76 +276,76 @@ let q = class extends HTMLElement {
|
|
|
276
276
|
firstUpdated(t) {
|
|
277
277
|
}
|
|
278
278
|
};
|
|
279
|
-
|
|
279
|
+
G.elementStyles = [], G.shadowRootOptions = { mode: "open" }, G[tt("elementProperties")] = /* @__PURE__ */ new Map(), G[tt("finalized")] = /* @__PURE__ */ new Map(), mt == null || mt({ ReactiveElement: G }), (M.reactiveElementVersions ?? (M.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"),
|
|
288
|
-
function
|
|
289
|
-
if (!
|
|
290
|
-
return
|
|
285
|
+
const et = globalThis, ut = et.trustedTypes, Zt = ut ? ut.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, te = "$lit$", H = `lit$${Math.random().toFixed(9).slice(2)}$`, ee = "?" + H, be = `<${ee}>`, V = document, it = () => V.createComment(""), rt = (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
|
+
\f\r]`, Y = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, qt = /-->/g, Wt = />/g, N = RegExp(`>|${xt}(?:([^\\s"'>=/]+)(${xt}*=${xt}*(?:[^
|
|
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), T = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Xt = /* @__PURE__ */ new WeakMap(), F = V.createTreeWalker(V, 129);
|
|
288
|
+
function ie(o, t) {
|
|
289
|
+
if (!It(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
290
|
+
return Zt !== void 0 ? Zt.createHTML(t) : t;
|
|
291
291
|
}
|
|
292
|
-
const
|
|
293
|
-
const e = o.length - 1,
|
|
294
|
-
let i,
|
|
292
|
+
const ye = (o, t) => {
|
|
293
|
+
const e = o.length - 1, r = [];
|
|
294
|
+
let i, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = Y;
|
|
295
295
|
for (let h = 0; h < e; h++) {
|
|
296
296
|
const c = o[h];
|
|
297
|
-
let
|
|
298
|
-
for (;
|
|
299
|
-
const
|
|
300
|
-
|
|
297
|
+
let f, m, p = -1, P = 0;
|
|
298
|
+
for (; P < c.length && (s.lastIndex = P, m = s.exec(c), m !== null); ) P = 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 = N) : m[3] !== void 0 && (s = N) : s === N ? 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 ? N : m[3] === '"' ? Gt : Kt) : s === Gt || s === Kt ? s = N : s === qt || s === Wt ? s = Y : (s = N, i = void 0);
|
|
299
|
+
const D = s === N && o[h + 1].startsWith("/>") ? " " : "";
|
|
300
|
+
n += s === Y ? c + be : p >= 0 ? (r.push(f), c.slice(0, p) + te + c.slice(p) + H + D) : c + H + (p === -2 ? h : D);
|
|
301
301
|
}
|
|
302
|
-
return [
|
|
302
|
+
return [ie(o, n + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
|
|
303
303
|
};
|
|
304
|
-
class
|
|
305
|
-
constructor({ strings: t, _$litType$: e },
|
|
304
|
+
class nt {
|
|
305
|
+
constructor({ strings: t, _$litType$: e }, r) {
|
|
306
306
|
let i;
|
|
307
307
|
this.parts = [];
|
|
308
|
-
let
|
|
309
|
-
const h = t.length - 1, c = this.parts, [
|
|
310
|
-
if (this.el =
|
|
308
|
+
let n = 0, s = 0;
|
|
309
|
+
const h = t.length - 1, c = this.parts, [f, m] = ye(t, e);
|
|
310
|
+
if (this.el = nt.createElement(f, r), F.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 = F.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:
|
|
319
|
-
} else p.startsWith(
|
|
320
|
-
if (
|
|
321
|
-
const p = i.textContent.split(
|
|
322
|
-
if (
|
|
323
|
-
i.textContent =
|
|
324
|
-
for (let
|
|
325
|
-
i.append(p[
|
|
316
|
+
if (i.hasAttributes()) for (const p of i.getAttributeNames()) if (p.endsWith(te)) {
|
|
317
|
+
const P = m[s++], D = i.getAttribute(p).split(H), ht = /([.?@])?(.*)/.exec(P);
|
|
318
|
+
c.push({ type: 1, index: n, name: ht[2], strings: D, ctor: ht[1] === "." ? xe : ht[1] === "?" ? we : ht[1] === "@" ? $e : ft }), i.removeAttribute(p);
|
|
319
|
+
} else p.startsWith(H) && (c.push({ type: 6, index: n }), i.removeAttribute(p));
|
|
320
|
+
if (oe.test(i.tagName)) {
|
|
321
|
+
const p = i.textContent.split(H), P = p.length - 1;
|
|
322
|
+
if (P > 0) {
|
|
323
|
+
i.textContent = ut ? ut.emptyScript : "";
|
|
324
|
+
for (let D = 0; D < P; D++) i.append(p[D], it()), F.nextNode(), c.push({ type: 2, index: ++n });
|
|
325
|
+
i.append(p[P], it());
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
|
-
} else if (i.nodeType === 8) if (i.data ===
|
|
328
|
+
} else if (i.nodeType === 8) if (i.data === ee) c.push({ type: 2, index: n });
|
|
329
329
|
else {
|
|
330
330
|
let p = -1;
|
|
331
|
-
for (; (p = i.data.indexOf(
|
|
331
|
+
for (; (p = i.data.indexOf(H, p + 1)) !== -1; ) c.push({ type: 7, index: n }), p += H.length - 1;
|
|
332
332
|
}
|
|
333
|
-
|
|
333
|
+
n++;
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
336
|
static createElement(t, e) {
|
|
337
|
-
const
|
|
338
|
-
return
|
|
337
|
+
const r = V.createElement("template");
|
|
338
|
+
return r.innerHTML = t, r;
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
function
|
|
342
|
-
var
|
|
343
|
-
if (t ===
|
|
344
|
-
let i =
|
|
345
|
-
const
|
|
346
|
-
return (i == null ? void 0 : i.constructor) !==
|
|
341
|
+
function X(o, t, e = o, r) {
|
|
342
|
+
var s, h;
|
|
343
|
+
if (t === T) return t;
|
|
344
|
+
let i = r !== void 0 ? (s = e._$Co) == null ? void 0 : s[r] : e._$Cl;
|
|
345
|
+
const n = rt(t) ? void 0 : t._$litDirective$;
|
|
346
|
+
return (i == null ? void 0 : i.constructor) !== n && ((h = i == null ? void 0 : i._$AO) == null || h.call(i, !1), n === void 0 ? i = void 0 : (i = new n(o), i._$AT(o, e, r)), r !== void 0 ? (e._$Co ?? (e._$Co = []))[r] = i : e._$Cl = i), i !== void 0 && (t = X(o, i._$AS(o, t.values), i, r)), t;
|
|
347
347
|
}
|
|
348
|
-
class
|
|
348
|
+
class me {
|
|
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 de {
|
|
|
356
356
|
return this._$AM._$AU;
|
|
357
357
|
}
|
|
358
358
|
u(t) {
|
|
359
|
-
const { el: { content: e }, parts:
|
|
360
|
-
|
|
361
|
-
let
|
|
359
|
+
const { el: { content: e }, parts: r } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? V).importNode(e, !0);
|
|
360
|
+
F.currentNode = i;
|
|
361
|
+
let n = F.nextNode(), s = 0, h = 0, c = r[0];
|
|
362
362
|
for (; c !== void 0; ) {
|
|
363
|
-
if (
|
|
364
|
-
let
|
|
365
|
-
c.type === 2 ?
|
|
363
|
+
if (s === c.index) {
|
|
364
|
+
let f;
|
|
365
|
+
c.type === 2 ? f = new ct(n, n.nextSibling, this, t) : c.type === 1 ? f = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (f = new _e(n, this, t)), this._$AV.push(f), c = r[++h];
|
|
366
366
|
}
|
|
367
|
-
|
|
367
|
+
s !== (c == null ? void 0 : c.index) && (n = F.nextNode(), s++);
|
|
368
368
|
}
|
|
369
|
-
return
|
|
369
|
+
return F.currentNode = V, i;
|
|
370
370
|
}
|
|
371
371
|
p(t) {
|
|
372
372
|
let e = 0;
|
|
373
|
-
for (const
|
|
373
|
+
for (const r of this._$AV) r !== void 0 && (r.strings !== void 0 ? (r._$AI(t, r, e), e += r.strings.length - 2) : r._$AI(t[e])), e++;
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
|
-
class
|
|
376
|
+
class ct {
|
|
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, r, i) {
|
|
382
|
+
this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = r, 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 st {
|
|
|
393
393
|
return this._$AB;
|
|
394
394
|
}
|
|
395
395
|
_$AI(t, e = this) {
|
|
396
|
-
t =
|
|
396
|
+
t = X(this, t, e), rt(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== T && 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,31 +402,31 @@ class st {
|
|
|
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 && rt(this._$AH) ? this._$AA.nextSibling.data = t : this.T(V.createTextNode(t)), this._$AH = t;
|
|
406
406
|
}
|
|
407
407
|
$(t) {
|
|
408
|
-
var
|
|
409
|
-
const { values: e, _$litType$:
|
|
410
|
-
if (((
|
|
408
|
+
var n;
|
|
409
|
+
const { values: e, _$litType$: r } = t, i = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = nt.createElement(ie(r.h, r.h[0]), this.options)), r);
|
|
410
|
+
if (((n = this._$AH) == null ? void 0 : n._$AD) === i) this._$AH.p(e);
|
|
411
411
|
else {
|
|
412
|
-
const
|
|
413
|
-
|
|
412
|
+
const s = new me(i, this), h = s.u(this.options);
|
|
413
|
+
s.p(e), this.T(h), this._$AH = s;
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
_$AC(t) {
|
|
417
|
-
let e =
|
|
418
|
-
return e === void 0 &&
|
|
417
|
+
let e = Xt.get(t.strings);
|
|
418
|
+
return e === void 0 && Xt.set(t.strings, e = new nt(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 r, i = 0;
|
|
424
|
+
for (const n of t) i === e.length ? e.push(r = new ct(this.O(it()), this.O(it()), this, this.options)) : r = e[i], r._$AI(n), i++;
|
|
425
|
+
i < e.length && (this._$AR(r && r._$AB.nextSibling, i), e.length = i);
|
|
426
426
|
}
|
|
427
427
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
428
|
-
var
|
|
429
|
-
for ((
|
|
428
|
+
var r;
|
|
429
|
+
for ((r = this._$AP) == null ? void 0 : r.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 st {
|
|
|
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 ft {
|
|
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 =
|
|
446
|
+
constructor(t, e, r, i, n) {
|
|
447
|
+
this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = n, r.length > 2 || r[0] !== "" || r[1] !== "" ? (this._$AH = Array(r.length - 1).fill(new String()), this.strings = r) : this._$AH = d;
|
|
448
448
|
}
|
|
449
|
-
_$AI(t, e = this,
|
|
450
|
-
const
|
|
451
|
-
let
|
|
452
|
-
if (
|
|
449
|
+
_$AI(t, e = this, r, i) {
|
|
450
|
+
const n = this.strings;
|
|
451
|
+
let s = !1;
|
|
452
|
+
if (n === void 0) t = X(this, t, e, 0), s = !rt(t) || t !== this._$AH && t !== T, s && (this._$AH = t);
|
|
453
453
|
else {
|
|
454
454
|
const h = t;
|
|
455
|
-
let c,
|
|
456
|
-
for (t =
|
|
455
|
+
let c, f;
|
|
456
|
+
for (t = n[0], c = 0; c < n.length - 1; c++) f = X(this, h[r + c], e, c), f === T && (f = this._$AH[c]), s || (s = !rt(f) || f !== this._$AH[c]), f === d ? t = d : t !== d && (t += (f ?? "") + n[c + 1]), this._$AH[c] = f;
|
|
457
457
|
}
|
|
458
|
-
|
|
458
|
+
s && !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 xe extends ft {
|
|
465
465
|
constructor() {
|
|
466
466
|
super(...arguments), this.type = 3;
|
|
467
467
|
}
|
|
@@ -469,7 +469,7 @@ class pe extends dt {
|
|
|
469
469
|
this.element[this.name] = t === d ? void 0 : t;
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
class
|
|
472
|
+
class we extends ft {
|
|
473
473
|
constructor() {
|
|
474
474
|
super(...arguments), this.type = 4;
|
|
475
475
|
}
|
|
@@ -477,39 +477,39 @@ class ue extends dt {
|
|
|
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 $e extends ft {
|
|
481
|
+
constructor(t, e, r, i, n) {
|
|
482
|
+
super(t, e, r, i, n), 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 = X(this, t, e, 0) ?? d) === T) return;
|
|
486
|
+
const r = this._$AH, i = t === d && r !== d || t.capture !== r.capture || t.once !== r.once || t.passive !== r.passive, n = t !== d && (r === d || i);
|
|
487
|
+
i && this.element.removeEventListener(this.name, this, r), n && 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 _e {
|
|
495
|
+
constructor(t, e, r) {
|
|
496
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = r;
|
|
497
497
|
}
|
|
498
498
|
get _$AU() {
|
|
499
499
|
return this._$AM._$AU;
|
|
500
500
|
}
|
|
501
501
|
_$AI(t) {
|
|
502
|
-
|
|
502
|
+
X(this, t);
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
const
|
|
506
|
-
|
|
507
|
-
const
|
|
508
|
-
const
|
|
509
|
-
let i =
|
|
505
|
+
const wt = et.litHtmlPolyfillSupport;
|
|
506
|
+
wt == null || wt(nt, ct), (et.litHtmlVersions ?? (et.litHtmlVersions = [])).push("3.3.0");
|
|
507
|
+
const ke = (o, t, e) => {
|
|
508
|
+
const r = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
509
|
+
let i = r._$litPart$;
|
|
510
510
|
if (i === void 0) {
|
|
511
|
-
const
|
|
512
|
-
|
|
511
|
+
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
512
|
+
r._$litPart$ = i = new ct(t.insertBefore(it(), n), n, void 0, e ?? {});
|
|
513
513
|
}
|
|
514
514
|
return i._$AI(o), i;
|
|
515
515
|
};
|
|
@@ -519,7 +519,7 @@ const ge = (o, t, e) => {
|
|
|
519
519
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
520
520
|
*/
|
|
521
521
|
const R = globalThis;
|
|
522
|
-
let
|
|
522
|
+
let u = class extends G {
|
|
523
523
|
constructor() {
|
|
524
524
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
525
525
|
}
|
|
@@ -530,7 +530,7 @@ let b = class extends q {
|
|
|
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 = ke(e, this.renderRoot, this.renderOptions);
|
|
534
534
|
}
|
|
535
535
|
connectedCallback() {
|
|
536
536
|
var t;
|
|
@@ -541,13 +541,13 @@ let b = class extends q {
|
|
|
541
541
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
|
542
542
|
}
|
|
543
543
|
render() {
|
|
544
|
-
return
|
|
544
|
+
return T;
|
|
545
545
|
}
|
|
546
546
|
};
|
|
547
|
-
var
|
|
548
|
-
|
|
549
|
-
const
|
|
550
|
-
|
|
547
|
+
var Qt;
|
|
548
|
+
u._$litElement$ = !0, u.finalized = !0, (Qt = R.litElementHydrateSupport) == null || Qt.call(R, { LitElement: u });
|
|
549
|
+
const $t = R.litElementPolyfillSupport;
|
|
550
|
+
$t == null || $t({ LitElement: u });
|
|
551
551
|
(R.litElementVersions ?? (R.litElementVersions = [])).push("4.2.0");
|
|
552
552
|
/**
|
|
553
553
|
* @license
|
|
@@ -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:
|
|
569
|
-
let
|
|
570
|
-
if (
|
|
571
|
-
const { name:
|
|
567
|
+
const Ce = { attribute: !0, type: String, converter: pt, reflect: !1, hasChanged: Lt }, Ae = (o = Ce, t, e) => {
|
|
568
|
+
const { kind: r, metadata: i } = e;
|
|
569
|
+
let n = globalThis.litPropertyMetadata.get(i);
|
|
570
|
+
if (n === void 0 && globalThis.litPropertyMetadata.set(i, n = /* @__PURE__ */ new Map()), r === "setter" && ((o = Object.create(o)).wrapped = !0), n.set(e.name, o), r === "accessor") {
|
|
571
|
+
const { name: s } = 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(s, c, o);
|
|
575
575
|
}, init(h) {
|
|
576
|
-
return h !== void 0 && this.C(
|
|
576
|
+
return h !== void 0 && this.C(s, void 0, o, h), h;
|
|
577
577
|
} };
|
|
578
578
|
}
|
|
579
|
-
if (
|
|
580
|
-
const { name:
|
|
579
|
+
if (r === "setter") {
|
|
580
|
+
const { name: s } = e;
|
|
581
581
|
return function(h) {
|
|
582
|
-
const c = this[
|
|
583
|
-
t.call(this, h), this.requestUpdate(
|
|
582
|
+
const c = this[s];
|
|
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: " + r);
|
|
587
587
|
};
|
|
588
588
|
function a(o) {
|
|
589
|
-
return (t, e) => typeof e == "object" ?
|
|
590
|
-
const
|
|
591
|
-
return i.constructor.createProperty(
|
|
589
|
+
return (t, e) => typeof e == "object" ? Ae(o, t, e) : ((r, i, n) => {
|
|
590
|
+
const s = i.hasOwnProperty(n);
|
|
591
|
+
return i.constructor.createProperty(n, r), s ? Object.getOwnPropertyDescriptor(i, n) : 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 Z(o) {
|
|
600
600
|
return a({ ...o, state: !0, attribute: !1 });
|
|
601
601
|
}
|
|
602
|
-
const
|
|
602
|
+
const Pt = y`
|
|
603
603
|
outline: 1px dashed var(--button-border-color);
|
|
604
604
|
outline-offset: 2px;
|
|
605
605
|
outline: dashed black;
|
|
@@ -614,12 +614,12 @@ y`
|
|
|
614
614
|
* Copyright 2023 Google LLC
|
|
615
615
|
* SPDX-License-Identifier: Apache-2.0
|
|
616
616
|
*/
|
|
617
|
-
const
|
|
618
|
-
function
|
|
617
|
+
const Ot = Symbol("internals"), _t = Symbol("privateInternals");
|
|
618
|
+
function Bt(o) {
|
|
619
619
|
var t;
|
|
620
620
|
class e extends o {
|
|
621
|
-
get [(t =
|
|
622
|
-
return this[
|
|
621
|
+
get [(t = Ot, t)]() {
|
|
622
|
+
return this[_t] || (this[_t] = this.attachInternals()), this[_t];
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
625
|
return e;
|
|
@@ -629,19 +629,19 @@ function Wt(o) {
|
|
|
629
629
|
* Copyright 2023 Google LLC
|
|
630
630
|
* SPDX-License-Identifier: Apache-2.0
|
|
631
631
|
*/
|
|
632
|
-
function
|
|
632
|
+
function Se(o) {
|
|
633
633
|
o.addInitializer((t) => {
|
|
634
634
|
const e = t;
|
|
635
|
-
e.addEventListener("click", async (
|
|
636
|
-
const { type: i, [
|
|
637
|
-
if (!(!
|
|
635
|
+
e.addEventListener("click", async (r) => {
|
|
636
|
+
const { type: i, [Ot]: n } = e, { form: s } = n;
|
|
637
|
+
if (!(!s || i === "button") && (await new Promise((h) => {
|
|
638
638
|
setTimeout(h);
|
|
639
|
-
}), !
|
|
639
|
+
}), !r.defaultPrevented)) {
|
|
640
640
|
if (i === "reset") {
|
|
641
|
-
|
|
641
|
+
s.reset();
|
|
642
642
|
return;
|
|
643
643
|
}
|
|
644
|
-
|
|
644
|
+
s.addEventListener(
|
|
645
645
|
"submit",
|
|
646
646
|
(h) => {
|
|
647
647
|
Object.defineProperty(h, "submitter", {
|
|
@@ -651,46 +651,46 @@ function me(o) {
|
|
|
651
651
|
});
|
|
652
652
|
},
|
|
653
653
|
{ capture: !0, once: !0 }
|
|
654
|
-
),
|
|
654
|
+
), n.setFormValue(e.value), s.requestSubmit();
|
|
655
655
|
}
|
|
656
656
|
});
|
|
657
657
|
});
|
|
658
658
|
}
|
|
659
|
-
const
|
|
659
|
+
const Ee = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
660
660
|
<path d="M8 3.6275C7.06799 0.971489 3.25399 -0.0226278 1.67414 2.30983C0.0877404 4.65197 1.67414 6.99412 2.62598 8.33249C3.0147 8.87905 8 14 8 14C8 14 12.9853 8.87905 13.374 8.33249C14.3259 6.99412 15.9123 4.65197 14.3259 2.30983C12.746 -0.0226277 8.97167 0.971489 8 3.6275Z" stroke="#3F2B2E" stroke-linecap="round"/>
|
|
661
661
|
</svg>
|
|
662
|
-
`,
|
|
662
|
+
`, Le = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
663
663
|
<path d="M16 8L4 0V16L16 8Z" fill="#3F2B2E"/>
|
|
664
664
|
</svg>
|
|
665
|
-
`,
|
|
665
|
+
`, Ie = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
666
666
|
<path d="M12.2266 8.16162C11.0953 9.26599 8.72489 11.8788 5.11546 16L4.63062 15.7172C5.78886 13.4007 7.17607 10.8283 8.79223 8C7.17607 5.17172 5.78886 2.59933 4.63062 0.282827L5.11546 0C8.72489 4.12121 11.0953 6.73401 12.2266 7.83838V8.16162Z" fill="#3F2B2E"/>
|
|
667
667
|
</svg>
|
|
668
|
-
`,
|
|
668
|
+
`, Pe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
669
669
|
<path d="M5 7.83838C6.02128 6.73401 8.16109 4.12121 11.4195 0L11.8571 0.282829C10.8116 2.59933 9.55927 5.17172 8.1003 8C9.55927 10.8283 10.8115 13.4007 11.8571 15.7172L11.4195 16C8.16109 11.8788 6.02128 9.266 5 8.16162L5 7.83838Z" fill="#3F2B2E"/>
|
|
670
670
|
</svg>
|
|
671
|
-
`,
|
|
671
|
+
`, Oe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
672
672
|
<path d="M12.2834 14.4585L7.98873 11.3928L3.69404 14.4585L5.33977 9.4972L1 6.39639H6.36554L8 1.4585L9.63446 6.39639H15L10.6602 9.4972L12.306 14.4585H12.2834ZM7.98873 10.328L10.6602 12.2353L9.64573 9.15787L12.2721 7.28568H9.02576L8 4.17317L6.97424 7.28568H3.72786L6.35427 9.15787L5.33977 12.2353L8.01127 10.328H7.98873Z" fill="#3F2B2E"/>
|
|
673
673
|
</svg>
|
|
674
|
-
`,
|
|
674
|
+
`, Be = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
675
675
|
<path d="M15 6.43789H9.63446L8 1.5L6.36554 6.43789H1L5.33977 9.5387L3.69404 14.5L7.98873 11.4343L12.2834 14.5H12.306L10.6602 9.5387L15 6.43789ZM6.36554 11.5396V7.32718H6.97424L8 4.21467L9.02576 7.32718H12.2721L9.64573 9.19937L10.6602 12.2768L8 10.3812L6.36554 11.5513V11.5396Z" fill="#3F2B2E"/>
|
|
676
676
|
</svg>
|
|
677
|
-
`,
|
|
677
|
+
`, ze = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
678
678
|
<path d="M15 6.39639H9.63446L8 1.4585L6.36554 6.39639H1L5.33977 9.4972L3.69404 14.4585L7.98873 11.3928L12.2834 14.4585L10.6377 9.4972L14.9775 6.39639H15ZM10.6715 12.2353L8.05636 10.3631V4.32528L9.03704 7.27398H12.2834L9.65701 9.14616L10.6715 12.2236V12.2353Z" fill="#3F2B2E"/>
|
|
679
679
|
</svg>
|
|
680
|
-
`,
|
|
680
|
+
`, De = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
681
681
|
<path d="M15 6.43789H9.63446L8 1.5L6.36554 6.43789H1L5.33977 9.5387L3.69404 14.5L7.98873 11.4343L9.46538 12.4874L12.2834 14.5H12.306L10.6602 9.5387L15 6.43789ZM9.46538 11.4226V7.32718H12.2721L9.64573 9.19937L10.6602 12.2768L9.46538 11.4226Z" fill="#3F2B2E"/>
|
|
682
682
|
</svg>
|
|
683
|
-
`,
|
|
683
|
+
`, He = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
684
684
|
<path d="M12.2834 14.4585L7.98873 11.3928L3.69404 14.4585L5.33977 9.4972L1 6.39639H6.36554L8 1.4585L9.63446 6.39639H15L10.6602 9.4972L12.306 14.4585H12.2834Z" fill="#3F2B2E"/>
|
|
685
685
|
</svg>
|
|
686
|
-
`,
|
|
686
|
+
`, Me = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
687
687
|
<path d="M2 2L14 14" stroke="#3F2B2E"/>
|
|
688
688
|
<path d="M14 2L2 14" stroke="#3F2B2E"/>
|
|
689
689
|
</svg>
|
|
690
|
-
`,
|
|
690
|
+
`, Te = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
691
691
|
<path d="M7.12506 1C10.5018 1 13.2509 3.74834 13.251 7.125C13.2511 8.59738 12.7172 10.0206 11.7491 11.1299L14.8731 14.2539C15.0433 14.4253 15.0435 14.7018 14.8731 14.873C14.7913 14.9555 14.6797 15.002 14.5635 15.002C14.4475 15.0019 14.3357 14.9554 14.254 14.873L11.1309 11.749C10.0555 12.6818 8.6564 13.251 7.12506 13.251C3.7484 13.2508 1.00006 10.5017 1.00006 7.125C1.00025 3.74846 3.74852 1.00019 7.12506 1ZM7.12506 1.875C4.22971 1.87522 1.87506 4.23058 1.87506 7.12598C1.87532 10.0212 4.22987 12.3758 7.12506 12.376C10.0204 12.376 12.3758 10.0213 12.376 7.12598C12.376 4.23044 10.0206 1.875 7.12506 1.875Z" fill="#3F2B2E"/>
|
|
692
692
|
</svg>
|
|
693
|
-
`,
|
|
693
|
+
`, je = `<?xml version="1.0" encoding="utf-8"?>
|
|
694
694
|
<!-- Generator: $$$/GeneralStr/196=Adobe Illustrator 27.6.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
695
695
|
<svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
696
696
|
viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve">
|
|
@@ -700,7 +700,7 @@ const we = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
700
700
|
<path class="st0" d="M40,20c0,0.7-0.6,1.2-1.2,1.2H21.2v17.5c0,0.7-0.6,1.2-1.2,1.2s-1.2-0.6-1.2-1.2V21.2H1.2C0.6,21.2,0,20.7,0,20
|
|
701
701
|
s0.6-1.2,1.2-1.2h17.5V1.2C18.8,0.6,19.3,0,20,0s1.2,0.6,1.2,1.2v17.5h17.5C39.4,18.8,40,19.3,40,20z"/>
|
|
702
702
|
</svg>
|
|
703
|
-
`,
|
|
703
|
+
`, Ue = `<?xml version="1.0" encoding="utf-8"?>
|
|
704
704
|
<!-- Generator: $$$/GeneralStr/196=Adobe Illustrator 27.6.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
705
705
|
<svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
706
706
|
viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve">
|
|
@@ -709,75 +709,76 @@ const we = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
709
709
|
</style>
|
|
710
710
|
<path class="st0" d="M38.8,20.5H1.2c-0.7,0-1.2-0.6-1.2-1.2S0.6,18,1.2,18h37.5c0.7,0,1.2,0.6,1.2,1.2S39.4,20.5,38.8,20.5z"/>
|
|
711
711
|
</svg>
|
|
712
|
-
`,
|
|
712
|
+
`, Ne = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
713
713
|
<path d="M15.0009 8.12175C15.0009 8.36347 14.805 8.55943 14.5634 8.55943H2.49495L7.43502 13.5017C7.60609 13.6726 7.60628 13.9499 7.43546 14.1211C7.26464 14.2922 6.98749 14.2924 6.81642 14.1215L1.13 8.43163C1.04685 8.34998 1 8.23831 1 8.12175C1 8.00518 1.04685 7.89351 1.13 7.81187L6.81642 2.12286C6.98808 1.95699 7.26094 1.95937 7.4297 2.12819C7.59845 2.29702 7.60082 2.57001 7.43502 2.74175L2.49495 7.68406H14.5634C14.805 7.68406 15.0009 7.88002 15.0009 8.12175Z" fill="#3F2B2E"/>
|
|
714
714
|
</svg>
|
|
715
|
-
`,
|
|
715
|
+
`, Fe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
716
716
|
<path d="M14.1218 7.43502C13.9504 7.60543 13.6735 7.60543 13.5021 7.43502L8.55961 2.49408V14.5625C8.55961 14.8041 8.36365 15 8.12192 15C7.88018 15 7.68422 14.8041 7.68422 14.5625V2.49408L2.74177 7.43502C2.57002 7.60082 2.29703 7.59845 2.1282 7.4297C1.95936 7.26094 1.95699 6.98808 2.12287 6.81642L7.81203 1.13C7.89368 1.04685 8.00535 1 8.12192 1C8.23848 1 8.35015 1.04685 8.4318 1.13L14.121 6.81642C14.2921 6.98702 14.2925 7.26395 14.1218 7.43502Z" fill="#3F2B2E"/>
|
|
717
717
|
</svg>
|
|
718
|
-
`,
|
|
718
|
+
`, Re = `<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
719
719
|
<path d="M6.33317 8.00033C6.33317 3.95024 7.52708 0.666992 8.99984 0.666992C10.4726 0.666992 11.6665 3.95024 11.6665 8.00033M5.33317 15.3337H12.6665L16.3332 6.20033C14.9582 5.76699 12.2998 5.33366 8.99984 5.33366C5.69984 5.33366 3.49984 5.76699 1.6665 6.20033L5.33317 15.3337Z" stroke="#3F2B2E"/>
|
|
720
720
|
</svg>
|
|
721
|
-
`,
|
|
721
|
+
`, Ve = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
722
722
|
<path d="M7.99376 14.4486C7.46684 14.4486 6.93991 14.251 6.54472 13.8558C6.14953 13.4606 5.8202 12.9995 5.68847 12.4067H3.77837C2.98798 12.4067 2.59279 12.4067 2.32933 12.1433C2.13173 12.0116 2 11.7481 2 11.5505C2 11.2212 2.13173 10.826 2.52692 10.1673L2.92212 9.4428C3.31731 8.78415 3.51491 8.05963 3.64664 7.3351L3.84423 5.68847C3.97596 4.63462 4.43702 3.7125 5.22741 3.05385C6.01779 2.39519 7.00578 2 7.99376 2C8.98174 2 10.0356 2.39519 10.7601 3.05385C11.5505 3.7125 12.0116 4.70049 12.1433 5.68847L12.3409 7.26924C12.4067 8.05963 12.6702 8.78415 13.0654 9.37693L13.4606 10.1015C13.8558 10.7601 14.0534 11.0894 13.9875 11.4846C13.9875 11.7481 13.8558 11.9457 13.6582 12.0774C13.3947 12.3409 12.9995 12.3409 12.2092 12.3409H10.2991C10.1673 12.9337 9.83799 13.4606 9.4428 13.7899C9.04761 14.1851 8.52068 14.3827 7.99376 14.3827V14.4486ZM6.28126 12.4067C6.41299 12.8019 6.61058 13.1971 6.93991 13.4606C7.5327 13.9875 8.45482 13.9875 9.11347 13.4606C9.4428 13.1971 9.6404 12.8019 9.77213 12.4067H6.28126ZM7.99376 2.65865C7.13751 2.65865 6.28126 2.98798 5.6226 3.58077C4.96395 4.17356 4.56875 4.96395 4.43702 5.88606L4.23943 7.46684C4.1077 8.32309 3.84423 9.11347 3.44904 9.83799L3.05385 10.5625C2.72452 11.0894 2.59279 11.3529 2.59279 11.5505C2.59279 11.6164 2.59279 11.7481 2.72452 11.814C2.85625 11.8798 3.25144 11.8798 3.77837 11.8798H12.2092C12.7361 11.8798 13.1971 11.8798 13.263 11.814C13.3289 11.814 13.3947 11.6822 13.3947 11.5505C13.3947 11.4188 13.1971 11.0894 12.9337 10.5625L12.5385 9.83799C12.0774 9.11347 11.814 8.32309 11.7481 7.5327L11.5505 5.88606C11.4846 5.02981 11.0236 4.17356 10.3649 3.58077C9.70626 2.98798 8.85001 2.65865 7.99376 2.65865Z" fill="#3F2B2E"/>
|
|
723
723
|
</svg>
|
|
724
|
-
`,
|
|
724
|
+
`, Ze = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
725
725
|
<path d="M12 17.4585L4 6.4585L20 6.4585L12 17.4585Z" fill="#3F2B2E"/>
|
|
726
726
|
</svg>
|
|
727
|
-
`,
|
|
727
|
+
`, qe = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
728
728
|
<path d="M12 6.4585L20 17.4585H4L12 6.4585Z" fill="#3F2B2E"/>
|
|
729
729
|
</svg>
|
|
730
|
-
`,
|
|
730
|
+
`, We = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
731
731
|
<path d="M5.24611 10.4659C5.04705 10.4654 4.85616 10.3867 4.71465 10.2467L0.210718 5.74273C-0.0737595 5.44819 -0.0696911 4.98 0.219862 4.69045C0.509415 4.4009 0.977603 4.39683 1.27214 4.6813L5.18306 8.59071L10.6628 1.74024C10.9219 1.41646 11.3945 1.36403 11.7183 1.62314C12.042 1.88225 12.0945 2.35477 11.8354 2.67856L5.83012 10.1851C5.69763 10.3521 5.49956 10.4539 5.28665 10.4643L5.24611 10.4659Z" fill="#3F2B2E"/>
|
|
732
732
|
</svg>
|
|
733
|
-
`,
|
|
733
|
+
`, Ke = `<svg width="8" height="8" viewBox="0 0 8 8" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
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
|
+
`, Ge = `<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
|
+
`, Xe = `<svg viewBox="0 0 200 200" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg">
|
|
741
741
|
<line x1="0" y1="0" x2="200" y2="200" />
|
|
742
|
-
</svg>`,
|
|
743
|
-
wishlist:
|
|
744
|
-
playerv:
|
|
745
|
-
chevronRight:
|
|
746
|
-
chevronLeft:
|
|
747
|
-
icoPlus:
|
|
748
|
-
icoMinus:
|
|
749
|
-
"star-0":
|
|
750
|
-
"star-25":
|
|
751
|
-
"star-50":
|
|
752
|
-
"star-75":
|
|
753
|
-
"star-100":
|
|
754
|
-
cross:
|
|
755
|
-
search:
|
|
756
|
-
arrowLeft:
|
|
757
|
-
arrowTop:
|
|
758
|
-
cart:
|
|
759
|
-
notifyme:
|
|
760
|
-
triangledown:
|
|
761
|
-
triangleup:
|
|
762
|
-
checkstroke:
|
|
763
|
-
pause:
|
|
764
|
-
mapDualArrow:
|
|
765
|
-
|
|
742
|
+
</svg>`, q = {
|
|
743
|
+
wishlist: Ee,
|
|
744
|
+
playerv: Le,
|
|
745
|
+
chevronRight: Ie,
|
|
746
|
+
chevronLeft: Pe,
|
|
747
|
+
icoPlus: je,
|
|
748
|
+
icoMinus: Ue,
|
|
749
|
+
"star-0": Oe,
|
|
750
|
+
"star-25": Be,
|
|
751
|
+
"star-50": ze,
|
|
752
|
+
"star-75": De,
|
|
753
|
+
"star-100": He,
|
|
754
|
+
cross: Me,
|
|
755
|
+
search: Te,
|
|
756
|
+
arrowLeft: Ne,
|
|
757
|
+
arrowTop: Fe,
|
|
758
|
+
cart: Re,
|
|
759
|
+
notifyme: Ve,
|
|
760
|
+
triangledown: Ze,
|
|
761
|
+
triangleup: qe,
|
|
762
|
+
checkstroke: We,
|
|
763
|
+
pause: Ke,
|
|
764
|
+
mapDualArrow: Ge
|
|
765
|
+
}, Je = {
|
|
766
|
+
strikeDiagonal: Xe
|
|
766
767
|
};
|
|
767
768
|
/**
|
|
768
769
|
* @license
|
|
769
770
|
* Copyright 2017 Google LLC
|
|
770
771
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
771
772
|
*/
|
|
772
|
-
const
|
|
773
|
-
let
|
|
773
|
+
const zt = { ATTRIBUTE: 1, CHILD: 2 }, Dt = (o) => (...t) => ({ _$litDirective$: o, values: t });
|
|
774
|
+
let Ht = class {
|
|
774
775
|
constructor(t) {
|
|
775
776
|
}
|
|
776
777
|
get _$AU() {
|
|
777
778
|
return this._$AM._$AU;
|
|
778
779
|
}
|
|
779
|
-
_$AT(t, e,
|
|
780
|
-
this._$Ct = t, this._$AM = e, this._$Ci =
|
|
780
|
+
_$AT(t, e, r) {
|
|
781
|
+
this._$Ct = t, this._$AM = e, this._$Ci = r;
|
|
781
782
|
}
|
|
782
783
|
_$AS(t, e) {
|
|
783
784
|
return this.update(t, e);
|
|
@@ -791,13 +792,13 @@ let Xt = class {
|
|
|
791
792
|
* Copyright 2017 Google LLC
|
|
792
793
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
793
794
|
*/
|
|
794
|
-
class
|
|
795
|
+
class kt extends Ht {
|
|
795
796
|
constructor(t) {
|
|
796
|
-
if (super(t), this.it = d, t.type !==
|
|
797
|
+
if (super(t), this.it = d, t.type !== zt.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
797
798
|
}
|
|
798
799
|
render(t) {
|
|
799
800
|
if (t === d || t == null) return this._t = void 0, this.it = t;
|
|
800
|
-
if (t ===
|
|
801
|
+
if (t === T) return t;
|
|
801
802
|
if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
802
803
|
if (t === this.it) return this._t;
|
|
803
804
|
this.it = t;
|
|
@@ -805,25 +806,25 @@ class mt extends Xt {
|
|
|
805
806
|
return e.raw = e, this._t = { _$litType$: this.constructor.resultType, strings: e, values: [] };
|
|
806
807
|
}
|
|
807
808
|
}
|
|
808
|
-
|
|
809
|
+
kt.directiveName = "unsafeHTML", kt.resultType = 1;
|
|
809
810
|
/**
|
|
810
811
|
* @license
|
|
811
812
|
* Copyright 2017 Google LLC
|
|
812
813
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
813
814
|
*/
|
|
814
|
-
class
|
|
815
|
+
class Ct extends kt {
|
|
815
816
|
}
|
|
816
|
-
|
|
817
|
-
const
|
|
818
|
-
var
|
|
819
|
-
for (var i =
|
|
820
|
-
(
|
|
821
|
-
return
|
|
817
|
+
Ct.directiveName = "unsafeSVG", Ct.resultType = 2;
|
|
818
|
+
const S = Dt(Ct);
|
|
819
|
+
var Qe = Object.defineProperty, Ye = Object.getOwnPropertyDescriptor, w = (o, t, e, r) => {
|
|
820
|
+
for (var i = r > 1 ? void 0 : r ? Ye(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
821
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
822
|
+
return r && i && Qe(t, e, i), i;
|
|
822
823
|
};
|
|
823
|
-
const
|
|
824
|
-
let
|
|
824
|
+
const to = Bt(u);
|
|
825
|
+
let v = class extends to {
|
|
825
826
|
constructor() {
|
|
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 = "";
|
|
827
|
+
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 = "", this.underlined = !1;
|
|
827
828
|
}
|
|
828
829
|
get name() {
|
|
829
830
|
return this.getAttribute("name") ?? "";
|
|
@@ -832,7 +833,7 @@ let u = class extends Ze {
|
|
|
832
833
|
this.setAttribute("name", o);
|
|
833
834
|
}
|
|
834
835
|
get form() {
|
|
835
|
-
return this[
|
|
836
|
+
return this[Ot].form;
|
|
836
837
|
}
|
|
837
838
|
handleClick() {
|
|
838
839
|
if (this.panelTarget) {
|
|
@@ -846,11 +847,11 @@ let u = class extends Ze {
|
|
|
846
847
|
renderIcon(o) {
|
|
847
848
|
const t = o === "start" ? this.startIconModel : this.endIconModel;
|
|
848
849
|
if (!t) return d;
|
|
849
|
-
const e =
|
|
850
|
+
const e = q[t].replace(
|
|
850
851
|
"<svg",
|
|
851
852
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
852
853
|
);
|
|
853
|
-
return l`<span class="${o === "start" ? "icon-start" : "icon-end"}">${
|
|
854
|
+
return l`<span class="${o === "start" ? "icon-start" : "icon-end"}">${S(e)}</span>`;
|
|
854
855
|
}
|
|
855
856
|
renderButton() {
|
|
856
857
|
const o = this.text || this.textsecond;
|
|
@@ -884,9 +885,9 @@ let u = class extends Ze {
|
|
|
884
885
|
`;
|
|
885
886
|
}
|
|
886
887
|
};
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
888
|
+
Se(v);
|
|
889
|
+
v.formAssociated = !0;
|
|
890
|
+
v.styles = y`
|
|
890
891
|
:host {
|
|
891
892
|
--button-border: transparent;
|
|
892
893
|
cursor: pointer;
|
|
@@ -998,7 +999,7 @@ u.styles = y`
|
|
|
998
999
|
}
|
|
999
1000
|
|
|
1000
1001
|
.button:focus-visible {
|
|
1001
|
-
${
|
|
1002
|
+
${Pt};
|
|
1002
1003
|
}
|
|
1003
1004
|
|
|
1004
1005
|
span.text + span.text::before {
|
|
@@ -1010,6 +1011,20 @@ u.styles = y`
|
|
|
1010
1011
|
.icon-end {
|
|
1011
1012
|
display: inline-flex;
|
|
1012
1013
|
align-items: center;
|
|
1014
|
+
|
|
1015
|
+
svg {
|
|
1016
|
+
max-height: 20px;
|
|
1017
|
+
}
|
|
1018
|
+
svg[x] {
|
|
1019
|
+
width: 15px;
|
|
1020
|
+
}
|
|
1021
|
+
path[fill],
|
|
1022
|
+
path[class] {
|
|
1023
|
+
fill: var(--button-text) !important;
|
|
1024
|
+
}
|
|
1025
|
+
path[stroke] {
|
|
1026
|
+
stroke: var(--button-text) !important;
|
|
1027
|
+
}
|
|
1013
1028
|
}
|
|
1014
1029
|
|
|
1015
1030
|
:host([variant="tertiary"][fullwidth][endIcon]) .button {
|
|
@@ -1019,11 +1034,9 @@ u.styles = y`
|
|
|
1019
1034
|
.button span {
|
|
1020
1035
|
display: inline-flex;
|
|
1021
1036
|
align-items: center;
|
|
1022
|
-
margin-top: 1px;
|
|
1023
1037
|
}
|
|
1024
1038
|
|
|
1025
1039
|
.button slot {
|
|
1026
|
-
margin-top: 1px;
|
|
1027
1040
|
display: inline-flex;
|
|
1028
1041
|
align-items: center;
|
|
1029
1042
|
}
|
|
@@ -1032,9 +1045,19 @@ u.styles = y`
|
|
|
1032
1045
|
width: var(--button-endicon-svg-width, 8px);
|
|
1033
1046
|
}
|
|
1034
1047
|
|
|
1035
|
-
:host([underlined])
|
|
1036
|
-
:host([underlined]
|
|
1037
|
-
|
|
1048
|
+
:host([underlined]) span:not([class*="icon-"]),
|
|
1049
|
+
:host([underlined]) .text,
|
|
1050
|
+
:host([underlined]) .button slot {
|
|
1051
|
+
position: relative;
|
|
1052
|
+
&::after {
|
|
1053
|
+
content: "";
|
|
1054
|
+
display: block;
|
|
1055
|
+
position: absolute;
|
|
1056
|
+
bottom: 0;
|
|
1057
|
+
left: 0;
|
|
1058
|
+
width: 100%;
|
|
1059
|
+
border-bottom: var(--border-M, 1px) solid var(--button-text);
|
|
1060
|
+
}
|
|
1038
1061
|
}
|
|
1039
1062
|
|
|
1040
1063
|
//Icon movement on hover
|
|
@@ -1051,55 +1074,58 @@ u.styles = y`
|
|
|
1051
1074
|
`;
|
|
1052
1075
|
w([
|
|
1053
1076
|
a()
|
|
1054
|
-
],
|
|
1077
|
+
], v.prototype, "type", 2);
|
|
1055
1078
|
w([
|
|
1056
1079
|
a({ reflect: !0 })
|
|
1057
|
-
],
|
|
1080
|
+
], v.prototype, "value", 2);
|
|
1058
1081
|
w([
|
|
1059
1082
|
a({ type: String, reflect: !0 })
|
|
1060
|
-
],
|
|
1083
|
+
], v.prototype, "variant", 2);
|
|
1061
1084
|
w([
|
|
1062
1085
|
a({ type: String })
|
|
1063
|
-
],
|
|
1086
|
+
], v.prototype, "text", 2);
|
|
1064
1087
|
w([
|
|
1065
1088
|
a({ type: String })
|
|
1066
|
-
],
|
|
1089
|
+
], v.prototype, "textsecond", 2);
|
|
1067
1090
|
w([
|
|
1068
1091
|
a({ type: Boolean, reflect: !0 })
|
|
1069
|
-
],
|
|
1092
|
+
], v.prototype, "fullwidth", 2);
|
|
1070
1093
|
w([
|
|
1071
1094
|
a({ type: Boolean, reflect: !0 })
|
|
1072
|
-
],
|
|
1095
|
+
], v.prototype, "disabled", 2);
|
|
1073
1096
|
w([
|
|
1074
1097
|
a({ type: String, reflect: !0 })
|
|
1075
|
-
],
|
|
1098
|
+
], v.prototype, "startIconModel", 2);
|
|
1076
1099
|
w([
|
|
1077
1100
|
a({ type: String, reflect: !0 })
|
|
1078
|
-
],
|
|
1101
|
+
], v.prototype, "endIconModel", 2);
|
|
1079
1102
|
w([
|
|
1080
1103
|
a({ type: Boolean, reflect: !0, attribute: "starticon" })
|
|
1081
|
-
],
|
|
1104
|
+
], v.prototype, "startIcon", 2);
|
|
1082
1105
|
w([
|
|
1083
1106
|
a({ type: Boolean, reflect: !0, attribute: "endicon" })
|
|
1084
|
-
],
|
|
1107
|
+
], v.prototype, "endIcon", 2);
|
|
1085
1108
|
w([
|
|
1086
1109
|
a({ type: String, attribute: "paneltarget", reflect: !0 })
|
|
1087
|
-
],
|
|
1110
|
+
], v.prototype, "panelTarget", 2);
|
|
1088
1111
|
w([
|
|
1089
1112
|
a({ type: String })
|
|
1090
|
-
],
|
|
1113
|
+
], v.prototype, "href", 2);
|
|
1091
1114
|
w([
|
|
1092
1115
|
a({ type: String })
|
|
1093
|
-
],
|
|
1094
|
-
|
|
1116
|
+
], v.prototype, "target", 2);
|
|
1117
|
+
w([
|
|
1118
|
+
a({ type: Boolean, reflect: !0 })
|
|
1119
|
+
], v.prototype, "underlined", 2);
|
|
1120
|
+
v = w([
|
|
1095
1121
|
x("o-button")
|
|
1096
|
-
],
|
|
1097
|
-
var
|
|
1098
|
-
for (var i =
|
|
1099
|
-
(
|
|
1100
|
-
return
|
|
1122
|
+
], v);
|
|
1123
|
+
var eo = Object.defineProperty, oo = Object.getOwnPropertyDescriptor, gt = (o, t, e, r) => {
|
|
1124
|
+
for (var i = r > 1 ? void 0 : r ? oo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
1125
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
1126
|
+
return r && i && eo(t, e, i), i;
|
|
1101
1127
|
};
|
|
1102
|
-
let
|
|
1128
|
+
let J = class extends u {
|
|
1103
1129
|
constructor() {
|
|
1104
1130
|
super(...arguments), this.status = "empty", this.ariaDescribedBy = "a-product-name", this.label = "Add to wishlist", this.toggleStatus = () => {
|
|
1105
1131
|
this.status = this.status === "empty" ? "filled" : "empty", this.setAttribute("aria-pressed", String(this.status === "filled")), this.dispatchEvent(new CustomEvent("wishlist-toggle", {
|
|
@@ -1119,14 +1145,14 @@ let K = class extends b {
|
|
|
1119
1145
|
(o.key === "Enter" || o.key === " ") && (o.preventDefault(), this.toggleStatus());
|
|
1120
1146
|
}
|
|
1121
1147
|
render() {
|
|
1122
|
-
const o =
|
|
1148
|
+
const o = q.wishlist.replace(
|
|
1123
1149
|
"<svg",
|
|
1124
1150
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
1125
1151
|
);
|
|
1126
1152
|
return l`
|
|
1127
1153
|
<button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
|
|
1128
1154
|
<span class="sr-only">${this.label}</span>
|
|
1129
|
-
${
|
|
1155
|
+
${S(o)}
|
|
1130
1156
|
</button>
|
|
1131
1157
|
`;
|
|
1132
1158
|
}
|
|
@@ -1140,7 +1166,7 @@ let K = class extends b {
|
|
|
1140
1166
|
this.label = o, this.requestUpdate();
|
|
1141
1167
|
}
|
|
1142
1168
|
};
|
|
1143
|
-
|
|
1169
|
+
J.styles = y`
|
|
1144
1170
|
:host {
|
|
1145
1171
|
display: inline-flex;
|
|
1146
1172
|
justify-content: center;
|
|
@@ -1204,30 +1230,30 @@ K.styles = y`
|
|
|
1204
1230
|
white-space: nowrap !important;
|
|
1205
1231
|
}
|
|
1206
1232
|
`;
|
|
1207
|
-
|
|
1233
|
+
gt([
|
|
1208
1234
|
a({ type: String, reflect: !0 })
|
|
1209
|
-
],
|
|
1210
|
-
|
|
1235
|
+
], J.prototype, "status", 2);
|
|
1236
|
+
gt([
|
|
1211
1237
|
a({ type: String, reflect: !0 })
|
|
1212
|
-
],
|
|
1213
|
-
|
|
1238
|
+
], J.prototype, "ariaDescribedBy", 2);
|
|
1239
|
+
gt([
|
|
1214
1240
|
a({ type: String, reflect: !0 })
|
|
1215
|
-
],
|
|
1216
|
-
|
|
1241
|
+
], J.prototype, "label", 2);
|
|
1242
|
+
J = gt([
|
|
1217
1243
|
x("o-wishlist-button")
|
|
1218
|
-
],
|
|
1244
|
+
], J);
|
|
1219
1245
|
/**
|
|
1220
1246
|
* @license
|
|
1221
1247
|
* Copyright 2018 Google LLC
|
|
1222
1248
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1223
1249
|
*/
|
|
1224
1250
|
const $ = (o) => o ?? d;
|
|
1225
|
-
var
|
|
1226
|
-
for (var i =
|
|
1227
|
-
(
|
|
1228
|
-
return
|
|
1251
|
+
var io = Object.defineProperty, ro = Object.getOwnPropertyDescriptor, L = (o, t, e, r) => {
|
|
1252
|
+
for (var i = r > 1 ? void 0 : r ? ro(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
1253
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
1254
|
+
return r && i && io(t, e, i), i;
|
|
1229
1255
|
};
|
|
1230
|
-
let _ = class extends
|
|
1256
|
+
let _ = class extends u {
|
|
1231
1257
|
constructor() {
|
|
1232
1258
|
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 = "";
|
|
1233
1259
|
}
|
|
@@ -1235,14 +1261,14 @@ let _ = class extends b {
|
|
|
1235
1261
|
super.updated(o), this.style.setProperty("--icon-stroke-width", this.strokewidth);
|
|
1236
1262
|
}
|
|
1237
1263
|
render() {
|
|
1238
|
-
const o =
|
|
1264
|
+
const o = q[this.icon] ?? "", t = `icon-${this.icon}`, e = o.replace(
|
|
1239
1265
|
"<svg",
|
|
1240
1266
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
1241
|
-
),
|
|
1267
|
+
), r = this.showSrLabel ? l`<span class="sr-only">${this.srLabel}</span>` : null, i = this.showSrLabel ? null : "icon";
|
|
1242
1268
|
return l`
|
|
1243
1269
|
${this.type === "span" ? l`
|
|
1244
1270
|
<span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
|
|
1245
|
-
${
|
|
1271
|
+
${S(e)}
|
|
1246
1272
|
</span>
|
|
1247
1273
|
` : l`
|
|
1248
1274
|
<button
|
|
@@ -1251,8 +1277,8 @@ let _ = class extends b {
|
|
|
1251
1277
|
class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}"
|
|
1252
1278
|
?disabled="${this.disabled}"
|
|
1253
1279
|
>
|
|
1254
|
-
${
|
|
1255
|
-
${
|
|
1280
|
+
${S(e)}
|
|
1281
|
+
${r}
|
|
1256
1282
|
</button>
|
|
1257
1283
|
`}
|
|
1258
1284
|
`;
|
|
@@ -1465,42 +1491,42 @@ _.styles = y`
|
|
|
1465
1491
|
display: none;
|
|
1466
1492
|
}
|
|
1467
1493
|
`;
|
|
1468
|
-
|
|
1494
|
+
L([
|
|
1469
1495
|
a({ type: String, reflect: !0 })
|
|
1470
1496
|
], _.prototype, "bgstyle", 2);
|
|
1471
|
-
|
|
1497
|
+
L([
|
|
1472
1498
|
a({ type: String, reflect: !0 })
|
|
1473
1499
|
], _.prototype, "size", 2);
|
|
1474
|
-
|
|
1500
|
+
L([
|
|
1475
1501
|
a({ type: String, reflect: !0 })
|
|
1476
1502
|
], _.prototype, "status", 2);
|
|
1477
|
-
|
|
1503
|
+
L([
|
|
1478
1504
|
a({ type: String, reflect: !0 })
|
|
1479
1505
|
], _.prototype, "type", 2);
|
|
1480
|
-
|
|
1506
|
+
L([
|
|
1481
1507
|
a({ type: String })
|
|
1482
1508
|
], _.prototype, "strokewidth", 2);
|
|
1483
|
-
|
|
1509
|
+
L([
|
|
1484
1510
|
a({ type: String })
|
|
1485
1511
|
], _.prototype, "icon", 2);
|
|
1486
|
-
|
|
1512
|
+
L([
|
|
1487
1513
|
a({ type: Boolean, reflect: !0 })
|
|
1488
1514
|
], _.prototype, "disabled", 2);
|
|
1489
|
-
|
|
1515
|
+
L([
|
|
1490
1516
|
a({ type: Boolean })
|
|
1491
1517
|
], _.prototype, "showSrLabel", 2);
|
|
1492
|
-
|
|
1518
|
+
L([
|
|
1493
1519
|
a({ type: String })
|
|
1494
1520
|
], _.prototype, "srLabel", 2);
|
|
1495
|
-
_ =
|
|
1521
|
+
_ = L([
|
|
1496
1522
|
x("o-icon-button")
|
|
1497
1523
|
], _);
|
|
1498
|
-
var
|
|
1499
|
-
for (var i =
|
|
1500
|
-
(
|
|
1501
|
-
return
|
|
1524
|
+
var no = Object.defineProperty, so = Object.getOwnPropertyDescriptor, W = (o, t, e, r) => {
|
|
1525
|
+
for (var i = r > 1 ? void 0 : r ? so(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
1526
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
1527
|
+
return r && i && no(t, e, i), i;
|
|
1502
1528
|
};
|
|
1503
|
-
let O = class extends
|
|
1529
|
+
let O = class extends u {
|
|
1504
1530
|
constructor() {
|
|
1505
1531
|
super(...arguments), this.href = "", this.target = "", this.template = "standard", this.inverse = !1, this.endIcon = !1, this.reverseEndIcon = !1;
|
|
1506
1532
|
}
|
|
@@ -1626,33 +1652,33 @@ O.styles = y`
|
|
|
1626
1652
|
}
|
|
1627
1653
|
/* End of underline effect */
|
|
1628
1654
|
`;
|
|
1629
|
-
|
|
1655
|
+
W([
|
|
1630
1656
|
a({ type: String })
|
|
1631
1657
|
], O.prototype, "href", 2);
|
|
1632
|
-
|
|
1658
|
+
W([
|
|
1633
1659
|
a({ type: String })
|
|
1634
1660
|
], O.prototype, "target", 2);
|
|
1635
|
-
|
|
1661
|
+
W([
|
|
1636
1662
|
a({ type: String, reflect: !0 })
|
|
1637
1663
|
], O.prototype, "template", 2);
|
|
1638
|
-
|
|
1664
|
+
W([
|
|
1639
1665
|
a({ type: Boolean, reflect: !0 })
|
|
1640
1666
|
], O.prototype, "inverse", 2);
|
|
1641
|
-
|
|
1667
|
+
W([
|
|
1642
1668
|
a({ type: Boolean, reflect: !0 })
|
|
1643
1669
|
], O.prototype, "endIcon", 2);
|
|
1644
|
-
|
|
1670
|
+
W([
|
|
1645
1671
|
a({ type: Boolean, reflect: !0 })
|
|
1646
1672
|
], O.prototype, "reverseEndIcon", 2);
|
|
1647
|
-
O =
|
|
1673
|
+
O = W([
|
|
1648
1674
|
x("o-link")
|
|
1649
1675
|
], O);
|
|
1650
|
-
var
|
|
1651
|
-
for (var i =
|
|
1652
|
-
(
|
|
1653
|
-
return
|
|
1676
|
+
var ao = Object.defineProperty, lo = Object.getOwnPropertyDescriptor, yt = (o, t, e, r) => {
|
|
1677
|
+
for (var i = r > 1 ? void 0 : r ? lo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
1678
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
1679
|
+
return r && i && ao(t, e, i), i;
|
|
1654
1680
|
};
|
|
1655
|
-
let
|
|
1681
|
+
let Q = class extends u {
|
|
1656
1682
|
constructor() {
|
|
1657
1683
|
super(...arguments), this.rating = 0;
|
|
1658
1684
|
}
|
|
@@ -1660,8 +1686,8 @@ let G = class extends b {
|
|
|
1660
1686
|
const o = [];
|
|
1661
1687
|
for (let t = 0; t < 5; t++) {
|
|
1662
1688
|
const e = this.rating - t;
|
|
1663
|
-
let
|
|
1664
|
-
e >= 1 ?
|
|
1689
|
+
let r;
|
|
1690
|
+
e >= 1 ? r = 100 : e <= 0 ? r = 0 : r = Math.round(e * 100 / 25) * 25, o.push(`star-${r}`);
|
|
1665
1691
|
}
|
|
1666
1692
|
return o;
|
|
1667
1693
|
}
|
|
@@ -1671,7 +1697,7 @@ let G = class extends b {
|
|
|
1671
1697
|
<div class="rating">
|
|
1672
1698
|
<div class="stars">
|
|
1673
1699
|
${o.map(
|
|
1674
|
-
(t) => l`<span class="star">${
|
|
1700
|
+
(t) => l`<span class="star">${S(q[t] ?? "")}</span>`
|
|
1675
1701
|
)}
|
|
1676
1702
|
</div>
|
|
1677
1703
|
${this.reviewCount != null && this.href != null ? l`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>` : null}
|
|
@@ -1679,7 +1705,7 @@ let G = class extends b {
|
|
|
1679
1705
|
`;
|
|
1680
1706
|
}
|
|
1681
1707
|
};
|
|
1682
|
-
|
|
1708
|
+
Q.styles = y`
|
|
1683
1709
|
svg {
|
|
1684
1710
|
width: 12px;
|
|
1685
1711
|
height: 12px;
|
|
@@ -1713,26 +1739,213 @@ G.styles = y`
|
|
|
1713
1739
|
cursor: pointer;
|
|
1714
1740
|
}
|
|
1715
1741
|
`;
|
|
1716
|
-
|
|
1742
|
+
yt([
|
|
1717
1743
|
a({ type: Number })
|
|
1718
|
-
],
|
|
1719
|
-
|
|
1744
|
+
], Q.prototype, "rating", 2);
|
|
1745
|
+
yt([
|
|
1720
1746
|
a({ type: String })
|
|
1721
|
-
],
|
|
1722
|
-
|
|
1747
|
+
], Q.prototype, "reviewCount", 2);
|
|
1748
|
+
yt([
|
|
1723
1749
|
a({ type: String })
|
|
1724
|
-
],
|
|
1725
|
-
|
|
1750
|
+
], Q.prototype, "href", 2);
|
|
1751
|
+
Q = yt([
|
|
1726
1752
|
x("o-rating")
|
|
1727
|
-
],
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1753
|
+
], Q);
|
|
1754
|
+
/**
|
|
1755
|
+
* @license
|
|
1756
|
+
* Copyright 2020 Google LLC
|
|
1757
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1758
|
+
*/
|
|
1759
|
+
const co = (o) => o.strings === void 0;
|
|
1760
|
+
/**
|
|
1761
|
+
* @license
|
|
1762
|
+
* Copyright 2017 Google LLC
|
|
1763
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1764
|
+
*/
|
|
1765
|
+
const ot = (o, t) => {
|
|
1766
|
+
var r;
|
|
1767
|
+
const e = o._$AN;
|
|
1768
|
+
if (e === void 0) return !1;
|
|
1769
|
+
for (const i of e) (r = i._$AO) == null || r.call(i, t, !1), ot(i, t);
|
|
1770
|
+
return !0;
|
|
1771
|
+
}, vt = (o) => {
|
|
1772
|
+
let t, e;
|
|
1773
|
+
do {
|
|
1774
|
+
if ((t = o._$AM) === void 0) break;
|
|
1775
|
+
e = t._$AN, e.delete(o), o = t;
|
|
1776
|
+
} while ((e == null ? void 0 : e.size) === 0);
|
|
1777
|
+
}, re = (o) => {
|
|
1778
|
+
for (let t; t = o._$AM; o = t) {
|
|
1779
|
+
let e = t._$AN;
|
|
1780
|
+
if (e === void 0) t._$AN = e = /* @__PURE__ */ new Set();
|
|
1781
|
+
else if (e.has(o)) break;
|
|
1782
|
+
e.add(o), uo(t);
|
|
1783
|
+
}
|
|
1784
|
+
};
|
|
1785
|
+
function ho(o) {
|
|
1786
|
+
this._$AN !== void 0 ? (vt(this), this._$AM = o, re(this)) : this._$AM = o;
|
|
1787
|
+
}
|
|
1788
|
+
function po(o, t = !1, e = 0) {
|
|
1789
|
+
const r = this._$AH, i = this._$AN;
|
|
1790
|
+
if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(r)) for (let n = e; n < r.length; n++) ot(r[n], !1), vt(r[n]);
|
|
1791
|
+
else r != null && (ot(r, !1), vt(r));
|
|
1792
|
+
else ot(this, o);
|
|
1793
|
+
}
|
|
1794
|
+
const uo = (o) => {
|
|
1795
|
+
o.type == zt.CHILD && (o._$AP ?? (o._$AP = po), o._$AQ ?? (o._$AQ = ho));
|
|
1796
|
+
};
|
|
1797
|
+
class vo extends Ht {
|
|
1798
|
+
constructor() {
|
|
1799
|
+
super(...arguments), this._$AN = void 0;
|
|
1800
|
+
}
|
|
1801
|
+
_$AT(t, e, r) {
|
|
1802
|
+
super._$AT(t, e, r), re(this), this.isConnected = t._$AU;
|
|
1803
|
+
}
|
|
1804
|
+
_$AO(t, e = !0) {
|
|
1805
|
+
var r, i;
|
|
1806
|
+
t !== this.isConnected && (this.isConnected = t, t ? (r = this.reconnected) == null || r.call(this) : (i = this.disconnected) == null || i.call(this)), e && (ot(this, t), vt(this));
|
|
1807
|
+
}
|
|
1808
|
+
setValue(t) {
|
|
1809
|
+
if (co(this._$Ct)) this._$Ct._$AI(t, this);
|
|
1810
|
+
else {
|
|
1811
|
+
const e = [...this._$Ct._$AH];
|
|
1812
|
+
e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
|
|
1813
|
+
}
|
|
1814
|
+
}
|
|
1815
|
+
disconnected() {
|
|
1816
|
+
}
|
|
1817
|
+
reconnected() {
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
class bo extends vo {
|
|
1821
|
+
constructor() {
|
|
1822
|
+
super(...arguments), this.prevData = {};
|
|
1823
|
+
}
|
|
1824
|
+
render(t) {
|
|
1825
|
+
return d;
|
|
1826
|
+
}
|
|
1827
|
+
update(t, [e]) {
|
|
1828
|
+
var r;
|
|
1829
|
+
this.element !== t.element && (this.element = t.element), this.host = ((r = t.options) === null || r === void 0 ? void 0 : r.host) || this.element, this.apply(e), this.groom(e), this.prevData = { ...e };
|
|
1830
|
+
}
|
|
1831
|
+
apply(t) {
|
|
1832
|
+
if (!t)
|
|
1833
|
+
return;
|
|
1834
|
+
const { prevData: e, element: r } = this;
|
|
1835
|
+
for (const i in t) {
|
|
1836
|
+
const n = t[i];
|
|
1837
|
+
n !== e[i] && (r[i] = n);
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
groom(t) {
|
|
1841
|
+
const { prevData: e, element: r } = this;
|
|
1842
|
+
if (e)
|
|
1843
|
+
for (const i in e)
|
|
1844
|
+
(!t || !(i in t) && r[i] === e[i]) && (r[i] = void 0);
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
class fo extends bo {
|
|
1848
|
+
constructor() {
|
|
1849
|
+
super(...arguments), this.eventData = {};
|
|
1850
|
+
}
|
|
1851
|
+
apply(t) {
|
|
1852
|
+
if (t)
|
|
1853
|
+
for (const e in t) {
|
|
1854
|
+
const r = t[e];
|
|
1855
|
+
r !== this.eventData[e] && this.applyEvent(e, r);
|
|
1856
|
+
}
|
|
1857
|
+
}
|
|
1858
|
+
applyEvent(t, e) {
|
|
1859
|
+
const { prevData: r, element: i } = this;
|
|
1860
|
+
this.eventData[t] = e, r[t] && i.removeEventListener(t, this, e), i.addEventListener(t, this, e);
|
|
1861
|
+
}
|
|
1862
|
+
groom(t) {
|
|
1863
|
+
const { prevData: e, element: r } = this;
|
|
1864
|
+
if (e)
|
|
1865
|
+
for (const i in e)
|
|
1866
|
+
(!t || !(i in t) && r[i] === e[i]) && this.groomEvent(i, e[i]);
|
|
1867
|
+
}
|
|
1868
|
+
groomEvent(t, e) {
|
|
1869
|
+
const { element: r } = this;
|
|
1870
|
+
delete this.eventData[t], r.removeEventListener(t, this, e);
|
|
1871
|
+
}
|
|
1872
|
+
handleEvent(t) {
|
|
1873
|
+
const e = this.eventData[t.type];
|
|
1874
|
+
typeof e == "function" ? e.call(this.host, t) : e.handleEvent(t);
|
|
1875
|
+
}
|
|
1876
|
+
disconnected() {
|
|
1877
|
+
const { eventData: t, element: e } = this;
|
|
1878
|
+
for (const r in t) {
|
|
1879
|
+
const i = r.slice(1), n = t[r];
|
|
1880
|
+
e.removeEventListener(i, this, n);
|
|
1881
|
+
}
|
|
1882
|
+
}
|
|
1883
|
+
reconnected() {
|
|
1884
|
+
const { eventData: t, element: e } = this;
|
|
1885
|
+
for (const r in t) {
|
|
1886
|
+
const i = r.slice(1), n = t[r];
|
|
1887
|
+
e.addEventListener(i, this, n);
|
|
1888
|
+
}
|
|
1889
|
+
}
|
|
1890
|
+
}
|
|
1891
|
+
class go extends fo {
|
|
1892
|
+
apply(t) {
|
|
1893
|
+
if (!t)
|
|
1894
|
+
return;
|
|
1895
|
+
const { prevData: e, element: r } = this;
|
|
1896
|
+
for (const i in t) {
|
|
1897
|
+
const n = t[i];
|
|
1898
|
+
if (n === e[i])
|
|
1899
|
+
continue;
|
|
1900
|
+
const s = i.slice(1);
|
|
1901
|
+
switch (i[0]) {
|
|
1902
|
+
case "@":
|
|
1903
|
+
this.eventData[s] = n, this.applyEvent(s, n);
|
|
1904
|
+
break;
|
|
1905
|
+
case ".":
|
|
1906
|
+
r[s] = n;
|
|
1907
|
+
break;
|
|
1908
|
+
case "?":
|
|
1909
|
+
n ? r.setAttribute(s, "") : r.removeAttribute(s);
|
|
1910
|
+
break;
|
|
1911
|
+
default:
|
|
1912
|
+
n != null ? r.setAttribute(i, String(n)) : r.removeAttribute(i);
|
|
1913
|
+
break;
|
|
1914
|
+
}
|
|
1915
|
+
}
|
|
1916
|
+
}
|
|
1917
|
+
groom(t) {
|
|
1918
|
+
const { prevData: e, element: r } = this;
|
|
1919
|
+
if (e)
|
|
1920
|
+
for (const i in e) {
|
|
1921
|
+
const n = i.slice(1);
|
|
1922
|
+
if (!t || !(i in t) && r[n] === e[i])
|
|
1923
|
+
switch (i[0]) {
|
|
1924
|
+
case "@":
|
|
1925
|
+
this.groomEvent(n, e[i]);
|
|
1926
|
+
break;
|
|
1927
|
+
case ".":
|
|
1928
|
+
r[n] = void 0;
|
|
1929
|
+
break;
|
|
1930
|
+
case "?":
|
|
1931
|
+
r.removeAttribute(n);
|
|
1932
|
+
break;
|
|
1933
|
+
default:
|
|
1934
|
+
r.removeAttribute(i);
|
|
1935
|
+
break;
|
|
1936
|
+
}
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
}
|
|
1940
|
+
const Jt = Dt(go);
|
|
1941
|
+
var yo = Object.defineProperty, mo = Object.getOwnPropertyDescriptor, g = (o, t, e, r) => {
|
|
1942
|
+
for (var i = r > 1 ? void 0 : r ? mo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
1943
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
1944
|
+
return r && i && yo(t, e, i), i;
|
|
1732
1945
|
};
|
|
1733
|
-
let
|
|
1946
|
+
let b = class extends u {
|
|
1734
1947
|
constructor() {
|
|
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) => {
|
|
1948
|
+
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.secondaryButtonLabel = "", this.secondaryButtonVariant = "secondary", this.secondaryButtonProps = {}, this.disablePortal = !1, this.zIndex = 99, this.initialized = !1, this.previousFocusedElement = null, this.handleKeyDown = (o) => {
|
|
1736
1949
|
this.open && (o.key === "Escape" ? this.closePanel() : o.key === "Tab" && this.trapFocus(o));
|
|
1737
1950
|
};
|
|
1738
1951
|
}
|
|
@@ -1747,8 +1960,8 @@ let g = class extends b {
|
|
|
1747
1960
|
trapFocus(o) {
|
|
1748
1961
|
const t = this.getFocusableElements();
|
|
1749
1962
|
if (t.length === 0) return;
|
|
1750
|
-
const e = t[0],
|
|
1751
|
-
o.shiftKey && document.activeElement === e ? (o.preventDefault(),
|
|
1963
|
+
const e = t[0], r = t[t.length - 1];
|
|
1964
|
+
o.shiftKey && document.activeElement === e ? (o.preventDefault(), r.focus()) : !o.shiftKey && document.activeElement === r && (o.preventDefault(), e.focus());
|
|
1752
1965
|
}
|
|
1753
1966
|
getFocusableElements() {
|
|
1754
1967
|
const o = this.renderRoot.querySelector(".panel");
|
|
@@ -1810,6 +2023,7 @@ let g = class extends b {
|
|
|
1810
2023
|
<o-button
|
|
1811
2024
|
variant="${this.firstButtonVariant}"
|
|
1812
2025
|
@click=${this.handleFirstClick}
|
|
2026
|
+
${Jt(this.firstButtonProps)}
|
|
1813
2027
|
>
|
|
1814
2028
|
${this.firstButtonLabel}
|
|
1815
2029
|
</o-button>
|
|
@@ -1819,6 +2033,7 @@ let g = class extends b {
|
|
|
1819
2033
|
<o-button
|
|
1820
2034
|
variant="${this.secondaryButtonVariant}"
|
|
1821
2035
|
@click=${this.handleSecondaryClick}
|
|
2036
|
+
${Jt(this.secondaryButtonProps)}
|
|
1822
2037
|
>
|
|
1823
2038
|
${this.secondaryButtonLabel}
|
|
1824
2039
|
</o-button>
|
|
@@ -1829,7 +2044,7 @@ let g = class extends b {
|
|
|
1829
2044
|
`;
|
|
1830
2045
|
}
|
|
1831
2046
|
};
|
|
1832
|
-
|
|
2047
|
+
b.styles = y`
|
|
1833
2048
|
:host {
|
|
1834
2049
|
--z-overlay: 99;
|
|
1835
2050
|
--z-panel: 100;
|
|
@@ -1971,60 +2186,66 @@ g.styles = y`
|
|
|
1971
2186
|
}
|
|
1972
2187
|
}
|
|
1973
2188
|
`;
|
|
1974
|
-
|
|
2189
|
+
g([
|
|
1975
2190
|
a({ type: Boolean, reflect: !0 })
|
|
1976
|
-
],
|
|
1977
|
-
|
|
2191
|
+
], b.prototype, "open", 2);
|
|
2192
|
+
g([
|
|
1978
2193
|
a({ type: Boolean, reflect: !0 })
|
|
1979
|
-
],
|
|
1980
|
-
|
|
2194
|
+
], b.prototype, "showHeader", 2);
|
|
2195
|
+
g([
|
|
1981
2196
|
a({ type: Boolean, reflect: !0 })
|
|
1982
|
-
],
|
|
1983
|
-
|
|
2197
|
+
], b.prototype, "showFooter", 2);
|
|
2198
|
+
g([
|
|
1984
2199
|
a({ type: Boolean, reflect: !0 })
|
|
1985
|
-
],
|
|
1986
|
-
|
|
2200
|
+
], b.prototype, "showHeaderStartIcon", 2);
|
|
2201
|
+
g([
|
|
1987
2202
|
a({ type: String, reflect: !0 })
|
|
1988
|
-
],
|
|
1989
|
-
|
|
2203
|
+
], b.prototype, "headerTitle", 2);
|
|
2204
|
+
g([
|
|
1990
2205
|
a({ type: String, reflect: !0 })
|
|
1991
|
-
],
|
|
1992
|
-
|
|
2206
|
+
], b.prototype, "closeButtonLabel", 2);
|
|
2207
|
+
g([
|
|
1993
2208
|
a({ type: String, reflect: !0 })
|
|
1994
|
-
],
|
|
1995
|
-
|
|
2209
|
+
], b.prototype, "firstButtonLabel", 2);
|
|
2210
|
+
g([
|
|
1996
2211
|
a({ type: String, reflect: !0 })
|
|
1997
|
-
],
|
|
1998
|
-
|
|
2212
|
+
], b.prototype, "firstButtonVariant", 2);
|
|
2213
|
+
g([
|
|
2214
|
+
a({ type: Object, reflect: !0 })
|
|
2215
|
+
], b.prototype, "firstButtonProps", 2);
|
|
2216
|
+
g([
|
|
1999
2217
|
a({ type: Function })
|
|
2000
|
-
],
|
|
2001
|
-
|
|
2218
|
+
], b.prototype, "onFirstButtonClick", 2);
|
|
2219
|
+
g([
|
|
2002
2220
|
a({ type: String, reflect: !0 })
|
|
2003
|
-
],
|
|
2004
|
-
|
|
2221
|
+
], b.prototype, "secondaryButtonLabel", 2);
|
|
2222
|
+
g([
|
|
2005
2223
|
a({ type: String, reflect: !0 })
|
|
2006
|
-
],
|
|
2007
|
-
|
|
2224
|
+
], b.prototype, "secondaryButtonVariant", 2);
|
|
2225
|
+
g([
|
|
2226
|
+
a({ type: Object, reflect: !0 })
|
|
2227
|
+
], b.prototype, "secondaryButtonProps", 2);
|
|
2228
|
+
g([
|
|
2008
2229
|
a({ type: Function })
|
|
2009
|
-
],
|
|
2010
|
-
|
|
2230
|
+
], b.prototype, "onSecondaryButtonClick", 2);
|
|
2231
|
+
g([
|
|
2011
2232
|
a({ type: Boolean, reflect: !0 })
|
|
2012
|
-
],
|
|
2013
|
-
|
|
2233
|
+
], b.prototype, "disablePortal", 2);
|
|
2234
|
+
g([
|
|
2014
2235
|
a({ type: Number, reflect: !0 })
|
|
2015
|
-
],
|
|
2016
|
-
|
|
2236
|
+
], b.prototype, "zIndex", 2);
|
|
2237
|
+
g([
|
|
2017
2238
|
a({ type: Boolean, reflect: !0 })
|
|
2018
|
-
],
|
|
2019
|
-
|
|
2239
|
+
], b.prototype, "initialized", 2);
|
|
2240
|
+
b = g([
|
|
2020
2241
|
x("o-side-panel")
|
|
2021
|
-
],
|
|
2022
|
-
var
|
|
2023
|
-
for (var i =
|
|
2024
|
-
(
|
|
2025
|
-
return
|
|
2242
|
+
], b);
|
|
2243
|
+
var xo = Object.defineProperty, wo = Object.getOwnPropertyDescriptor, j = (o, t, e, r) => {
|
|
2244
|
+
for (var i = r > 1 ? void 0 : r ? wo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2245
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2246
|
+
return r && i && xo(t, e, i), i;
|
|
2026
2247
|
};
|
|
2027
|
-
let
|
|
2248
|
+
let E = class extends u {
|
|
2028
2249
|
constructor() {
|
|
2029
2250
|
super(...arguments), this.thumbnails = [], this.activeIndex = 0, this.disabledIndexes = [], this.maxWidth = "100%", this.altressource = "visual", this.focusedIndex = 0, this.playerIconTemplate = l`
|
|
2030
2251
|
<o-icon-button
|
|
@@ -2076,7 +2297,7 @@ let A = class extends b {
|
|
|
2076
2297
|
return l`
|
|
2077
2298
|
<ul class="scroll-container" style="max-width: ${this.maxWidth};">
|
|
2078
2299
|
${this.thumbnails.map((o, t) => {
|
|
2079
|
-
const e = this.disabledIndexes.includes(t),
|
|
2300
|
+
const e = this.disabledIndexes.includes(t), r = this.activeIndex === t, i = o.type === "video", n = i ? `video ${t}` : `${this.altressource} ${t + 1}`;
|
|
2080
2301
|
return l`
|
|
2081
2302
|
<li class="thumb-wrapper">
|
|
2082
2303
|
<button
|
|
@@ -2084,14 +2305,14 @@ let A = class extends b {
|
|
|
2084
2305
|
data-index="${t}"
|
|
2085
2306
|
?disabled=${e}
|
|
2086
2307
|
aria-selected="${this.focusedIndex === t}"
|
|
2087
|
-
aria-current=${
|
|
2308
|
+
aria-current=${r ? "true" : "false"}
|
|
2088
2309
|
tabindex="${this.disabledIndexes.includes(t) ? -1 : 0}"
|
|
2089
2310
|
@click=${() => this.selectThumbnail(t)}
|
|
2090
2311
|
@keydown=${this.handleKeyDown}
|
|
2091
|
-
@focus=${(
|
|
2092
|
-
@blur=${(
|
|
2312
|
+
@focus=${(s) => this.onFocus(s)}
|
|
2313
|
+
@blur=${(s) => this.onBlur(s)}
|
|
2093
2314
|
>
|
|
2094
|
-
<img alt="${
|
|
2315
|
+
<img alt="${n}" src="${o.src}" />
|
|
2095
2316
|
</button>
|
|
2096
2317
|
${i ? l`<div class="play-icon-wrapper">${this.playerIconTemplate}</div>` : null}
|
|
2097
2318
|
</li>
|
|
@@ -2101,7 +2322,7 @@ let A = class extends b {
|
|
|
2101
2322
|
`;
|
|
2102
2323
|
}
|
|
2103
2324
|
};
|
|
2104
|
-
|
|
2325
|
+
E.styles = y`
|
|
2105
2326
|
:host {
|
|
2106
2327
|
display: flex;
|
|
2107
2328
|
gap: 5px;
|
|
@@ -2207,36 +2428,36 @@ A.styles = y`
|
|
|
2207
2428
|
width: 0;
|
|
2208
2429
|
}
|
|
2209
2430
|
`;
|
|
2210
|
-
|
|
2431
|
+
j([
|
|
2211
2432
|
a({ type: Array })
|
|
2212
|
-
],
|
|
2213
|
-
|
|
2433
|
+
], E.prototype, "thumbnails", 2);
|
|
2434
|
+
j([
|
|
2214
2435
|
a({ type: Number })
|
|
2215
|
-
],
|
|
2216
|
-
|
|
2436
|
+
], E.prototype, "activeIndex", 2);
|
|
2437
|
+
j([
|
|
2217
2438
|
a({ type: Array })
|
|
2218
|
-
],
|
|
2219
|
-
|
|
2439
|
+
], E.prototype, "disabledIndexes", 2);
|
|
2440
|
+
j([
|
|
2220
2441
|
a({ type: String })
|
|
2221
|
-
],
|
|
2222
|
-
|
|
2442
|
+
], E.prototype, "maxWidth", 2);
|
|
2443
|
+
j([
|
|
2223
2444
|
a({ type: String })
|
|
2224
|
-
],
|
|
2225
|
-
|
|
2445
|
+
], E.prototype, "altressource", 2);
|
|
2446
|
+
j([
|
|
2226
2447
|
a({ type: Object })
|
|
2227
|
-
],
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
],
|
|
2231
|
-
|
|
2448
|
+
], E.prototype, "swiperInstance", 2);
|
|
2449
|
+
j([
|
|
2450
|
+
Z()
|
|
2451
|
+
], E.prototype, "focusedIndex", 2);
|
|
2452
|
+
E = j([
|
|
2232
2453
|
x("thumbnail-navigation")
|
|
2233
|
-
],
|
|
2234
|
-
var
|
|
2235
|
-
for (var i =
|
|
2236
|
-
(
|
|
2237
|
-
return
|
|
2454
|
+
], E);
|
|
2455
|
+
var $o = Object.defineProperty, _o = Object.getOwnPropertyDescriptor, Mt = (o, t, e, r) => {
|
|
2456
|
+
for (var i = r > 1 ? void 0 : r ? _o(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2457
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2458
|
+
return r && i && $o(t, e, i), i;
|
|
2238
2459
|
};
|
|
2239
|
-
let
|
|
2460
|
+
let st = class extends u {
|
|
2240
2461
|
constructor() {
|
|
2241
2462
|
super(...arguments), this.type = "", this.bgstyle = "background-white";
|
|
2242
2463
|
}
|
|
@@ -2246,7 +2467,7 @@ let it = class extends b {
|
|
|
2246
2467
|
`;
|
|
2247
2468
|
}
|
|
2248
2469
|
};
|
|
2249
|
-
|
|
2470
|
+
st.styles = y`
|
|
2250
2471
|
.tag {
|
|
2251
2472
|
display: inline-block;
|
|
2252
2473
|
padding: var(--spacing-2-xs) var(--spacing-s);
|
|
@@ -2302,21 +2523,21 @@ it.styles = y`
|
|
|
2302
2523
|
}
|
|
2303
2524
|
|
|
2304
2525
|
`;
|
|
2305
|
-
|
|
2526
|
+
Mt([
|
|
2306
2527
|
a({ type: String, reflect: !0 })
|
|
2307
|
-
],
|
|
2308
|
-
|
|
2528
|
+
], st.prototype, "type", 2);
|
|
2529
|
+
Mt([
|
|
2309
2530
|
a({ type: String, reflect: !0 })
|
|
2310
|
-
],
|
|
2311
|
-
|
|
2531
|
+
], st.prototype, "bgstyle", 2);
|
|
2532
|
+
st = Mt([
|
|
2312
2533
|
x("o-tag")
|
|
2313
|
-
],
|
|
2314
|
-
var
|
|
2315
|
-
for (var i =
|
|
2316
|
-
(
|
|
2317
|
-
return
|
|
2534
|
+
], st);
|
|
2535
|
+
var ko = Object.defineProperty, Co = Object.getOwnPropertyDescriptor, Tt = (o, t, e, r) => {
|
|
2536
|
+
for (var i = r > 1 ? void 0 : r ? Co(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2537
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2538
|
+
return r && i && ko(t, e, i), i;
|
|
2318
2539
|
};
|
|
2319
|
-
let
|
|
2540
|
+
let at = class extends u {
|
|
2320
2541
|
constructor() {
|
|
2321
2542
|
super(...arguments), this.type = "top", this.text = "";
|
|
2322
2543
|
}
|
|
@@ -2329,7 +2550,7 @@ let nt = class extends b {
|
|
|
2329
2550
|
`;
|
|
2330
2551
|
}
|
|
2331
2552
|
};
|
|
2332
|
-
|
|
2553
|
+
at.styles = y`
|
|
2333
2554
|
.tooltip {
|
|
2334
2555
|
position: relative;
|
|
2335
2556
|
display: inline-block;
|
|
@@ -2422,21 +2643,21 @@ nt.styles = y`
|
|
|
2422
2643
|
}
|
|
2423
2644
|
|
|
2424
2645
|
`;
|
|
2425
|
-
|
|
2646
|
+
Tt([
|
|
2426
2647
|
a({ type: String, reflect: !0 })
|
|
2427
|
-
],
|
|
2428
|
-
|
|
2648
|
+
], at.prototype, "type", 2);
|
|
2649
|
+
Tt([
|
|
2429
2650
|
a({ type: String, reflect: !0 })
|
|
2430
|
-
],
|
|
2431
|
-
|
|
2651
|
+
], at.prototype, "text", 2);
|
|
2652
|
+
at = Tt([
|
|
2432
2653
|
x("o-tooltip")
|
|
2433
|
-
],
|
|
2434
|
-
var
|
|
2435
|
-
for (var i =
|
|
2436
|
-
(
|
|
2437
|
-
return
|
|
2654
|
+
], at);
|
|
2655
|
+
var Ao = Object.defineProperty, So = Object.getOwnPropertyDescriptor, z = (o, t, e, r) => {
|
|
2656
|
+
for (var i = r > 1 ? void 0 : r ? So(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2657
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2658
|
+
return r && i && Ao(t, e, i), i;
|
|
2438
2659
|
};
|
|
2439
|
-
let
|
|
2660
|
+
let C = class extends u {
|
|
2440
2661
|
constructor() {
|
|
2441
2662
|
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) => {
|
|
2442
2663
|
this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
|
|
@@ -2502,7 +2723,7 @@ let k = class extends b {
|
|
|
2502
2723
|
this.options.length > 0 && (this.options.some((e) => e.value === this.value) || (this.value = this.options[0].value));
|
|
2503
2724
|
}
|
|
2504
2725
|
render() {
|
|
2505
|
-
const o =
|
|
2726
|
+
const o = q.checkstroke.replace(
|
|
2506
2727
|
"<svg",
|
|
2507
2728
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
2508
2729
|
), t = this.options.find((e) => e.value === this.value);
|
|
@@ -2535,22 +2756,22 @@ let k = class extends b {
|
|
|
2535
2756
|
style=${`width: ${this.width};`}
|
|
2536
2757
|
>
|
|
2537
2758
|
${this.options.map(
|
|
2538
|
-
(e,
|
|
2759
|
+
(e, r) => l`
|
|
2539
2760
|
<li
|
|
2540
|
-
id="option-${
|
|
2761
|
+
id="option-${r}"
|
|
2541
2762
|
role="option"
|
|
2542
2763
|
aria-selected="${e.value === this.value}"
|
|
2543
|
-
tabindex="${
|
|
2544
|
-
class="${
|
|
2764
|
+
tabindex="${r === this.activeIndex ? "0" : "-1"}"
|
|
2765
|
+
class="${r === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
|
|
2545
2766
|
@click=${() => this.selectOption(e)}
|
|
2546
2767
|
>
|
|
2547
2768
|
${e.url ? l`
|
|
2548
2769
|
<a href="${e.url}">
|
|
2549
2770
|
<span>${e.label}</span>
|
|
2550
|
-
${e.value === this.value ? l`<span class="check">${
|
|
2771
|
+
${e.value === this.value ? l`<span class="check">${S(o)}</span>` : null}
|
|
2551
2772
|
</a>` : l`
|
|
2552
2773
|
<span>${e.label}</span>
|
|
2553
|
-
${e.value === this.value ? l`<span class="check">${
|
|
2774
|
+
${e.value === this.value ? l`<span class="check">${S(o)}</span>` : null}`}
|
|
2554
2775
|
</li>`
|
|
2555
2776
|
)}
|
|
2556
2777
|
</ul>` : null}
|
|
@@ -2559,7 +2780,7 @@ let k = class extends b {
|
|
|
2559
2780
|
`;
|
|
2560
2781
|
}
|
|
2561
2782
|
};
|
|
2562
|
-
|
|
2783
|
+
C.styles = y`
|
|
2563
2784
|
:host {
|
|
2564
2785
|
display: inline-block;
|
|
2565
2786
|
position: relative;
|
|
@@ -2699,44 +2920,44 @@ k.styles = y`
|
|
|
2699
2920
|
display: none;
|
|
2700
2921
|
}
|
|
2701
2922
|
`;
|
|
2702
|
-
|
|
2923
|
+
z([
|
|
2703
2924
|
a({ type: Array, reflect: !0 })
|
|
2704
|
-
],
|
|
2705
|
-
|
|
2925
|
+
], C.prototype, "options", 2);
|
|
2926
|
+
z([
|
|
2706
2927
|
a({ type: String, reflect: !0 })
|
|
2707
|
-
],
|
|
2708
|
-
|
|
2928
|
+
], C.prototype, "value", 2);
|
|
2929
|
+
z([
|
|
2709
2930
|
a({ type: String, reflect: !0 })
|
|
2710
|
-
],
|
|
2711
|
-
|
|
2931
|
+
], C.prototype, "name", 2);
|
|
2932
|
+
z([
|
|
2712
2933
|
a({ type: Boolean, reflect: !0 })
|
|
2713
|
-
],
|
|
2714
|
-
|
|
2934
|
+
], C.prototype, "disabled", 2);
|
|
2935
|
+
z([
|
|
2715
2936
|
a({ type: String, reflect: !0 })
|
|
2716
|
-
],
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
],
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
],
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
],
|
|
2726
|
-
|
|
2937
|
+
], C.prototype, "width", 2);
|
|
2938
|
+
z([
|
|
2939
|
+
Z()
|
|
2940
|
+
], C.prototype, "open", 2);
|
|
2941
|
+
z([
|
|
2942
|
+
Z()
|
|
2943
|
+
], C.prototype, "activeIndex", 2);
|
|
2944
|
+
z([
|
|
2945
|
+
Z()
|
|
2946
|
+
], C.prototype, "menuWidth", 2);
|
|
2947
|
+
C = z([
|
|
2727
2948
|
x("o-dropdown")
|
|
2728
|
-
],
|
|
2729
|
-
var
|
|
2730
|
-
for (var i =
|
|
2731
|
-
(
|
|
2949
|
+
], C);
|
|
2950
|
+
var Eo = Object.getOwnPropertyDescriptor, Lo = (o, t, e, r) => {
|
|
2951
|
+
for (var i = r > 1 ? void 0 : r ? Eo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2952
|
+
(s = o[n]) && (i = s(i) || i);
|
|
2732
2953
|
return i;
|
|
2733
2954
|
};
|
|
2734
|
-
let
|
|
2955
|
+
let At = class extends u {
|
|
2735
2956
|
render() {
|
|
2736
2957
|
return l` <span class="dots"></span> `;
|
|
2737
2958
|
}
|
|
2738
2959
|
};
|
|
2739
|
-
|
|
2960
|
+
At.styles = y`
|
|
2740
2961
|
:host {
|
|
2741
2962
|
display: flex;
|
|
2742
2963
|
align-items: center;
|
|
@@ -2788,15 +3009,15 @@ xt.styles = y`
|
|
|
2788
3009
|
}
|
|
2789
3010
|
}
|
|
2790
3011
|
`;
|
|
2791
|
-
|
|
3012
|
+
At = Lo([
|
|
2792
3013
|
x("o-dots")
|
|
2793
|
-
],
|
|
2794
|
-
var
|
|
2795
|
-
for (var i =
|
|
2796
|
-
(
|
|
2797
|
-
return
|
|
3014
|
+
], At);
|
|
3015
|
+
var Io = Object.defineProperty, Po = Object.getOwnPropertyDescriptor, I = (o, t, e, r) => {
|
|
3016
|
+
for (var i = r > 1 ? void 0 : r ? Po(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3017
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3018
|
+
return r && i && Io(t, e, i), i;
|
|
2798
3019
|
};
|
|
2799
|
-
let
|
|
3020
|
+
let k = class extends u {
|
|
2800
3021
|
constructor() {
|
|
2801
3022
|
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) => {
|
|
2802
3023
|
this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
|
|
@@ -2862,7 +3083,7 @@ let C = class extends b {
|
|
|
2862
3083
|
this.options.length > 0 && (this.options.some((t) => t.value === this.value) || (this.value = this.options[0].value));
|
|
2863
3084
|
}
|
|
2864
3085
|
render() {
|
|
2865
|
-
const o =
|
|
3086
|
+
const o = q.checkstroke.replace(
|
|
2866
3087
|
"<svg",
|
|
2867
3088
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
2868
3089
|
), t = this.options.find((e) => e.value === this.value);
|
|
@@ -2905,14 +3126,14 @@ let C = class extends b {
|
|
|
2905
3126
|
style=${`width: ${this.width};`}
|
|
2906
3127
|
>
|
|
2907
3128
|
${this.options.map(
|
|
2908
|
-
(e,
|
|
3129
|
+
(e, r) => l`
|
|
2909
3130
|
<li
|
|
2910
|
-
id="option-${
|
|
3131
|
+
id="option-${r}"
|
|
2911
3132
|
role="option"
|
|
2912
3133
|
aria-selected="${e.value === this.value}"
|
|
2913
3134
|
aria-disabled="${e.disabled ? "true" : "false"}"
|
|
2914
|
-
tabindex="${
|
|
2915
|
-
class="${
|
|
3135
|
+
tabindex="${r === this.activeIndex ? "0" : "-1"}"
|
|
3136
|
+
class="${r === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
|
|
2916
3137
|
@click=${() => this.selectOption(e)}
|
|
2917
3138
|
>
|
|
2918
3139
|
<a href="${$(e.url)}">
|
|
@@ -2921,7 +3142,7 @@ let C = class extends b {
|
|
|
2921
3142
|
<div class="right">
|
|
2922
3143
|
<span class="additional-text">${$(e.additionaltext)}</span>
|
|
2923
3144
|
${e.value === this.value && !e.additionaltext ? l`
|
|
2924
|
-
<span class="check">${
|
|
3145
|
+
<span class="check">${S(o)}</span>` : null}
|
|
2925
3146
|
</div>
|
|
2926
3147
|
</a>
|
|
2927
3148
|
</li>
|
|
@@ -2933,7 +3154,7 @@ let C = class extends b {
|
|
|
2933
3154
|
`;
|
|
2934
3155
|
}
|
|
2935
3156
|
};
|
|
2936
|
-
|
|
3157
|
+
k.styles = y`
|
|
2937
3158
|
:host {
|
|
2938
3159
|
display: inline-block;
|
|
2939
3160
|
position: relative;
|
|
@@ -3109,73 +3330,73 @@ C.styles = y`
|
|
|
3109
3330
|
display: none;
|
|
3110
3331
|
}
|
|
3111
3332
|
`;
|
|
3112
|
-
|
|
3333
|
+
I([
|
|
3113
3334
|
a({ type: Array, reflect: !0 })
|
|
3114
|
-
],
|
|
3115
|
-
|
|
3335
|
+
], k.prototype, "options", 2);
|
|
3336
|
+
I([
|
|
3116
3337
|
a({ type: String, reflect: !0 })
|
|
3117
|
-
],
|
|
3118
|
-
|
|
3338
|
+
], k.prototype, "value", 2);
|
|
3339
|
+
I([
|
|
3119
3340
|
a({ type: String, reflect: !0 })
|
|
3120
|
-
],
|
|
3121
|
-
|
|
3341
|
+
], k.prototype, "name", 2);
|
|
3342
|
+
I([
|
|
3122
3343
|
a({ type: String, reflect: !0 })
|
|
3123
|
-
],
|
|
3124
|
-
|
|
3344
|
+
], k.prototype, "additionaltext", 2);
|
|
3345
|
+
I([
|
|
3125
3346
|
a({ type: Boolean, reflect: !0 })
|
|
3126
|
-
],
|
|
3127
|
-
|
|
3347
|
+
], k.prototype, "disabled", 2);
|
|
3348
|
+
I([
|
|
3128
3349
|
a({ type: String, reflect: !0 })
|
|
3129
|
-
],
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
],
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
],
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
],
|
|
3139
|
-
|
|
3350
|
+
], k.prototype, "width", 2);
|
|
3351
|
+
I([
|
|
3352
|
+
Z()
|
|
3353
|
+
], k.prototype, "open", 2);
|
|
3354
|
+
I([
|
|
3355
|
+
Z()
|
|
3356
|
+
], k.prototype, "activeIndex", 2);
|
|
3357
|
+
I([
|
|
3358
|
+
Z()
|
|
3359
|
+
], k.prototype, "menuWidth", 2);
|
|
3360
|
+
k = I([
|
|
3140
3361
|
x("o-dropdown-variant")
|
|
3141
|
-
],
|
|
3362
|
+
], k);
|
|
3142
3363
|
/**
|
|
3143
3364
|
* @license
|
|
3144
3365
|
* Copyright 2018 Google LLC
|
|
3145
3366
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3146
3367
|
*/
|
|
3147
|
-
const
|
|
3368
|
+
const ne = "important", Oo = " !" + ne, Bo = Dt(class extends Ht {
|
|
3148
3369
|
constructor(o) {
|
|
3149
3370
|
var t;
|
|
3150
|
-
if (super(o), o.type !==
|
|
3371
|
+
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.");
|
|
3151
3372
|
}
|
|
3152
3373
|
render(o) {
|
|
3153
3374
|
return Object.keys(o).reduce((t, e) => {
|
|
3154
|
-
const
|
|
3155
|
-
return
|
|
3375
|
+
const r = o[e];
|
|
3376
|
+
return r == null ? t : t + `${e = e.includes("-") ? e : e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${r};`;
|
|
3156
3377
|
}, "");
|
|
3157
3378
|
}
|
|
3158
3379
|
update(o, [t]) {
|
|
3159
3380
|
const { style: e } = o.element;
|
|
3160
3381
|
if (this.ft === void 0) return this.ft = new Set(Object.keys(t)), this.render(t);
|
|
3161
|
-
for (const
|
|
3162
|
-
for (const
|
|
3163
|
-
const i = t[
|
|
3382
|
+
for (const r of this.ft) t[r] == null && (this.ft.delete(r), r.includes("-") ? e.removeProperty(r) : e[r] = null);
|
|
3383
|
+
for (const r in t) {
|
|
3384
|
+
const i = t[r];
|
|
3164
3385
|
if (i != null) {
|
|
3165
|
-
this.ft.add(
|
|
3166
|
-
const
|
|
3167
|
-
|
|
3386
|
+
this.ft.add(r);
|
|
3387
|
+
const n = typeof i == "string" && i.endsWith(Oo);
|
|
3388
|
+
r.includes("-") || n ? e.setProperty(r, n ? i.slice(0, -11) : i, n ? ne : "") : e[r] = i;
|
|
3168
3389
|
}
|
|
3169
3390
|
}
|
|
3170
|
-
return
|
|
3391
|
+
return T;
|
|
3171
3392
|
}
|
|
3172
3393
|
});
|
|
3173
|
-
var
|
|
3174
|
-
for (var i =
|
|
3175
|
-
(
|
|
3176
|
-
return
|
|
3394
|
+
var zo = Object.defineProperty, Do = Object.getOwnPropertyDescriptor, jt = (o, t, e, r) => {
|
|
3395
|
+
for (var i = r > 1 ? void 0 : r ? Do(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3396
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3397
|
+
return r && i && zo(t, e, i), i;
|
|
3177
3398
|
};
|
|
3178
|
-
let
|
|
3399
|
+
let lt = class extends u {
|
|
3179
3400
|
constructor() {
|
|
3180
3401
|
super(...arguments), this.option = {}, this.imageSize = 64;
|
|
3181
3402
|
}
|
|
@@ -3184,7 +3405,7 @@ let rt = class extends b {
|
|
|
3184
3405
|
width: `${this.imageSize}px`,
|
|
3185
3406
|
height: `${this.imageSize}px`
|
|
3186
3407
|
}, e = l`
|
|
3187
|
-
${this.option.imgurl ? l`<img src="${this.option.imgurl}" alt="${$(this.option.title)}" aria-hidden="true" style=${
|
|
3408
|
+
${this.option.imgurl ? l`<img src="${this.option.imgurl}" alt="${$(this.option.title)}" aria-hidden="true" style=${Bo(t)} />` : ""}
|
|
3188
3409
|
<div class="m-reassurance-content">
|
|
3189
3410
|
<h3 class="a-reassurance-text">${$(this.option.title)}</h3>
|
|
3190
3411
|
<p class="a-reassurance-description">${$(this.option.description)}</p>
|
|
@@ -3193,7 +3414,7 @@ let rt = class extends b {
|
|
|
3193
3414
|
return o ? l`<a href="${$(this.option.url)}" class="reassurance-item clickable">${e}</a>` : l`<div class="reassurance-item">${e}</div>`;
|
|
3194
3415
|
}
|
|
3195
3416
|
};
|
|
3196
|
-
|
|
3417
|
+
lt.styles = y`
|
|
3197
3418
|
:host {
|
|
3198
3419
|
display: inline-block;
|
|
3199
3420
|
position: relative;
|
|
@@ -3275,22 +3496,22 @@ rt.styles = y`
|
|
|
3275
3496
|
}
|
|
3276
3497
|
}
|
|
3277
3498
|
`;
|
|
3278
|
-
|
|
3499
|
+
jt([
|
|
3279
3500
|
a({ type: Object, reflect: !0 })
|
|
3280
|
-
],
|
|
3281
|
-
|
|
3501
|
+
], lt.prototype, "option", 2);
|
|
3502
|
+
jt([
|
|
3282
3503
|
a({ type: Number, reflect: !0 })
|
|
3283
|
-
],
|
|
3284
|
-
|
|
3504
|
+
], lt.prototype, "imageSize", 2);
|
|
3505
|
+
lt = jt([
|
|
3285
3506
|
x("o-reassurance")
|
|
3286
|
-
],
|
|
3287
|
-
var
|
|
3288
|
-
for (var i =
|
|
3289
|
-
(
|
|
3290
|
-
return
|
|
3507
|
+
], lt);
|
|
3508
|
+
var Ho = Object.defineProperty, Mo = Object.getOwnPropertyDescriptor, U = (o, t, e, r) => {
|
|
3509
|
+
for (var i = r > 1 ? void 0 : r ? Mo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3510
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3511
|
+
return r && i && Ho(t, e, i), i;
|
|
3291
3512
|
};
|
|
3292
|
-
const
|
|
3293
|
-
let
|
|
3513
|
+
const To = Bt(u);
|
|
3514
|
+
let A = class extends To {
|
|
3294
3515
|
constructor() {
|
|
3295
3516
|
super(...arguments), this.link = "", this.name = "", this.value = "", this.text = "", this.size = "standard", this.selected = !1, this.fullwidth = !1;
|
|
3296
3517
|
}
|
|
@@ -3311,7 +3532,7 @@ let S = class extends xo {
|
|
|
3311
3532
|
`;
|
|
3312
3533
|
}
|
|
3313
3534
|
};
|
|
3314
|
-
|
|
3535
|
+
A.styles = y`
|
|
3315
3536
|
:host {
|
|
3316
3537
|
cursor: pointer;
|
|
3317
3538
|
display: inline-flex;
|
|
@@ -3383,7 +3604,7 @@ S.styles = y`
|
|
|
3383
3604
|
}
|
|
3384
3605
|
|
|
3385
3606
|
&:focus-visible {
|
|
3386
|
-
${
|
|
3607
|
+
${Pt};
|
|
3387
3608
|
}
|
|
3388
3609
|
}
|
|
3389
3610
|
|
|
@@ -3397,27 +3618,242 @@ S.styles = y`
|
|
|
3397
3618
|
align-items: center;
|
|
3398
3619
|
}
|
|
3399
3620
|
`;
|
|
3400
|
-
|
|
3621
|
+
U([
|
|
3401
3622
|
a({ type: String, reflect: !0 })
|
|
3402
|
-
],
|
|
3403
|
-
|
|
3623
|
+
], A.prototype, "link", 2);
|
|
3624
|
+
U([
|
|
3404
3625
|
a({ reflect: !0 })
|
|
3405
|
-
],
|
|
3406
|
-
|
|
3626
|
+
], A.prototype, "name", 2);
|
|
3627
|
+
U([
|
|
3407
3628
|
a({ reflect: !0 })
|
|
3408
|
-
],
|
|
3409
|
-
|
|
3629
|
+
], A.prototype, "value", 2);
|
|
3630
|
+
U([
|
|
3410
3631
|
a({ type: String })
|
|
3411
|
-
],
|
|
3412
|
-
|
|
3632
|
+
], A.prototype, "text", 2);
|
|
3633
|
+
U([
|
|
3413
3634
|
a({ type: String, reflect: !0 })
|
|
3414
|
-
],
|
|
3415
|
-
|
|
3635
|
+
], A.prototype, "size", 2);
|
|
3636
|
+
U([
|
|
3416
3637
|
a({ type: Boolean, reflect: !0 })
|
|
3417
|
-
],
|
|
3418
|
-
|
|
3638
|
+
], A.prototype, "selected", 2);
|
|
3639
|
+
U([
|
|
3419
3640
|
a({ type: Boolean, reflect: !0 })
|
|
3420
|
-
],
|
|
3421
|
-
|
|
3641
|
+
], A.prototype, "fullwidth", 2);
|
|
3642
|
+
A = U([
|
|
3422
3643
|
x("o-chip")
|
|
3423
|
-
],
|
|
3644
|
+
], A);
|
|
3645
|
+
var jo = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, Ut = (o, t, e, r) => {
|
|
3646
|
+
for (var i = r > 1 ? void 0 : r ? Uo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3647
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3648
|
+
return r && i && jo(t, e, i), i;
|
|
3649
|
+
};
|
|
3650
|
+
let bt = class extends u {
|
|
3651
|
+
constructor() {
|
|
3652
|
+
super(), this.name = "", this.value = "", this.addEventListener("click", this.onChipSelected);
|
|
3653
|
+
}
|
|
3654
|
+
onChipSelected(o) {
|
|
3655
|
+
const t = o.target instanceof A ? o.target : null;
|
|
3656
|
+
t != null && t.link || (this.name = (t == null ? void 0 : t.name) || "", this.value = (t == null ? void 0 : t.value) || "", this.querySelectorAll("o-chip").forEach((e) => {
|
|
3657
|
+
e !== t && (e.selected = !1);
|
|
3658
|
+
}));
|
|
3659
|
+
}
|
|
3660
|
+
render() {
|
|
3661
|
+
return l`
|
|
3662
|
+
<slot></slot>
|
|
3663
|
+
`;
|
|
3664
|
+
}
|
|
3665
|
+
};
|
|
3666
|
+
Ut([
|
|
3667
|
+
a({ reflect: !0 })
|
|
3668
|
+
], bt.prototype, "name", 2);
|
|
3669
|
+
Ut([
|
|
3670
|
+
a({ reflect: !0 })
|
|
3671
|
+
], bt.prototype, "value", 2);
|
|
3672
|
+
bt = Ut([
|
|
3673
|
+
x("o-chipset")
|
|
3674
|
+
], bt);
|
|
3675
|
+
var No = Object.defineProperty, Fo = Object.getOwnPropertyDescriptor, K = (o, t, e, r) => {
|
|
3676
|
+
for (var i = r > 1 ? void 0 : r ? Fo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3677
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3678
|
+
return r && i && No(t, e, i), i;
|
|
3679
|
+
};
|
|
3680
|
+
const Ro = Bt(u);
|
|
3681
|
+
let B = class extends Ro {
|
|
3682
|
+
constructor() {
|
|
3683
|
+
super(...arguments), this.name = "", this.value = "", this.text = "", this.selected = !1, this.disabled = !1, this.fullwidth = !1, this.crossIconName = "cross", this.strikethroughImgName = "strikeDiagonal";
|
|
3684
|
+
}
|
|
3685
|
+
handleClick() {
|
|
3686
|
+
this.selected = !this.selected;
|
|
3687
|
+
}
|
|
3688
|
+
crossIcon() {
|
|
3689
|
+
const o = q[this.crossIconName].replace(
|
|
3690
|
+
"<svg",
|
|
3691
|
+
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
3692
|
+
).replace(/stroke=[#"'a-z1-9]*/gi, "");
|
|
3693
|
+
return l`<span class="cross-icon">${S(o)}</span>`;
|
|
3694
|
+
}
|
|
3695
|
+
strikeThroughImg() {
|
|
3696
|
+
const o = Je[this.strikethroughImgName].replace(
|
|
3697
|
+
"<svg",
|
|
3698
|
+
'<svg aria-hidden="true" focusable="false" part="strikethrough"'
|
|
3699
|
+
).replace(/stroke=[#"'a-z1-9]*/gi, "");
|
|
3700
|
+
return S(o);
|
|
3701
|
+
}
|
|
3702
|
+
render() {
|
|
3703
|
+
const o = this.text;
|
|
3704
|
+
return l`
|
|
3705
|
+
<button type="button" class="button" ?disabled=${this.disabled} @click=${this.handleClick}
|
|
3706
|
+
aria-label=${this.ariaLabel} aria-pressed=${this.selected}>
|
|
3707
|
+
${o ? l`
|
|
3708
|
+
${this.text ? l`<span class="text">${this.text}</span>` : d}
|
|
3709
|
+
` : l`
|
|
3710
|
+
<span class="text"><slot></slot></span>`}
|
|
3711
|
+
${this.selected ? this.crossIcon() : d}
|
|
3712
|
+
</button>
|
|
3713
|
+
${this.disabled ? this.strikeThroughImg() : d}
|
|
3714
|
+
`;
|
|
3715
|
+
}
|
|
3716
|
+
};
|
|
3717
|
+
B.styles = y`
|
|
3718
|
+
:host {
|
|
3719
|
+
cursor: pointer;
|
|
3720
|
+
display: inline-flex;
|
|
3721
|
+
position: relative;
|
|
3722
|
+
--button-bg: var(--color-container-action-secondary-default);
|
|
3723
|
+
--button-bg-hover: var(--color-container-action-secondary-hover);
|
|
3724
|
+
--button-bg-pressed: var(--color-container-action-secondary-pressed);
|
|
3725
|
+
--button-text: var(--color-content-action-secondary);
|
|
3726
|
+
--button-text-hover: var(--color-content-action-secondary);
|
|
3727
|
+
--button-border: var(--color-border-secondary);
|
|
3728
|
+
--button-border-width: var(--border-m);
|
|
3729
|
+
--button-padding: var(--spacing-m) var(--spacing-xl);
|
|
3730
|
+
--button-strikethrough-stroke: var(--color-border-secondary);
|
|
3731
|
+
}
|
|
3732
|
+
|
|
3733
|
+
:host([fullwidth]) {
|
|
3734
|
+
width: 100%;
|
|
3735
|
+
}
|
|
3736
|
+
|
|
3737
|
+
:host([selected]) {
|
|
3738
|
+
--button-bg: var(--color-container-filter-default);
|
|
3739
|
+
--button-bg-hover: var(--color-container-filter-hover);
|
|
3740
|
+
--button-bg-pressed: var(--color-container-filter-pressed);
|
|
3741
|
+
--button-text: var(--color-content-action-primary);
|
|
3742
|
+
--button-text-hover: var(--color-content-action-primary);
|
|
3743
|
+
--button-border: var(--color-container-filter-default);
|
|
3744
|
+
--button-strikethrough-stroke: var(--color-border-white);
|
|
3745
|
+
}
|
|
3746
|
+
|
|
3747
|
+
:host([disabled]),
|
|
3748
|
+
:host([aria-disabled="true"]),
|
|
3749
|
+
:host([aria-disabled="true"]:hover) {
|
|
3750
|
+
--button-border: var(--color-border-secondary);
|
|
3751
|
+
opacity: 0.64;
|
|
3752
|
+
}
|
|
3753
|
+
|
|
3754
|
+
.button {
|
|
3755
|
+
display: inline-flex;
|
|
3756
|
+
align-items: center;
|
|
3757
|
+
justify-content: center;
|
|
3758
|
+
width: 100%;
|
|
3759
|
+
gap: var(--spacing-s);
|
|
3760
|
+
height: 100%;
|
|
3761
|
+
background-color: var(--button-bg);
|
|
3762
|
+
color: var(--button-text);
|
|
3763
|
+
border: var(--button-border-width, var(--border-m)) solid var(--button-border);
|
|
3764
|
+
border-radius: var(--radius-m);
|
|
3765
|
+
font-family: var(--font-family-loccitane-sans);
|
|
3766
|
+
font-size: var(--font-size-150);
|
|
3767
|
+
font-weight: var(--font-weight-400);
|
|
3768
|
+
line-height: var(--line-height-200);
|
|
3769
|
+
min-width: 64px;
|
|
3770
|
+
padding: var(--button-padding);
|
|
3771
|
+
text-decoration: none;
|
|
3772
|
+
cursor: inherit;
|
|
3773
|
+
box-sizing: border-box;
|
|
3774
|
+
|
|
3775
|
+
span {
|
|
3776
|
+
font-family: var(--font-family-loccitane-sans);
|
|
3777
|
+
font-size: var(--font-size-150);
|
|
3778
|
+
font-weight: var(--font-weight-400);
|
|
3779
|
+
line-height: var(--line-height-200);
|
|
3780
|
+
}
|
|
3781
|
+
}
|
|
3782
|
+
|
|
3783
|
+
.button:hover:not([disabled]) {
|
|
3784
|
+
background-color: var(--button-bg-hover);
|
|
3785
|
+
color: var(--button-text-hover);
|
|
3786
|
+
}
|
|
3787
|
+
|
|
3788
|
+
.button:active:not([disabled]) {
|
|
3789
|
+
background-color: var(--button-bg-pressed);
|
|
3790
|
+
}
|
|
3791
|
+
|
|
3792
|
+
.button:focus-visible {
|
|
3793
|
+
${Pt};
|
|
3794
|
+
}
|
|
3795
|
+
|
|
3796
|
+
span.text + span.text::before {
|
|
3797
|
+
content: "•";
|
|
3798
|
+
margin-right: 8px;
|
|
3799
|
+
}
|
|
3800
|
+
|
|
3801
|
+
.cross-icon {
|
|
3802
|
+
display: inline-flex;
|
|
3803
|
+
align-items: center;
|
|
3804
|
+
|
|
3805
|
+
svg {
|
|
3806
|
+
width: 8px;
|
|
3807
|
+
height: 8px;
|
|
3808
|
+
stroke: var(--color-content-action-primary);
|
|
3809
|
+
}
|
|
3810
|
+
}
|
|
3811
|
+
|
|
3812
|
+
.button span {
|
|
3813
|
+
display: inline-flex;
|
|
3814
|
+
align-items: center;
|
|
3815
|
+
}
|
|
3816
|
+
|
|
3817
|
+
.button slot {
|
|
3818
|
+
margin-top: 1px;
|
|
3819
|
+
display: inline-flex;
|
|
3820
|
+
align-items: center;
|
|
3821
|
+
}
|
|
3822
|
+
|
|
3823
|
+
[part="strikethrough"] {
|
|
3824
|
+
position: absolute;
|
|
3825
|
+
width: 100%;
|
|
3826
|
+
height: 100%;
|
|
3827
|
+
top: 0;
|
|
3828
|
+
bottom: 0;
|
|
3829
|
+
left: 0;
|
|
3830
|
+
right: 0;
|
|
3831
|
+
|
|
3832
|
+
line {
|
|
3833
|
+
stroke: var(--button-strikethrough-stroke);
|
|
3834
|
+
stroke-width: 4px;
|
|
3835
|
+
stroke-linecap: round;
|
|
3836
|
+
}
|
|
3837
|
+
}
|
|
3838
|
+
`;
|
|
3839
|
+
K([
|
|
3840
|
+
a({ reflect: !0 })
|
|
3841
|
+
], B.prototype, "name", 2);
|
|
3842
|
+
K([
|
|
3843
|
+
a({ reflect: !0 })
|
|
3844
|
+
], B.prototype, "value", 2);
|
|
3845
|
+
K([
|
|
3846
|
+
a({ type: String })
|
|
3847
|
+
], B.prototype, "text", 2);
|
|
3848
|
+
K([
|
|
3849
|
+
a({ type: Boolean, reflect: !0 })
|
|
3850
|
+
], B.prototype, "selected", 2);
|
|
3851
|
+
K([
|
|
3852
|
+
a({ type: Boolean, reflect: !0 })
|
|
3853
|
+
], B.prototype, "disabled", 2);
|
|
3854
|
+
K([
|
|
3855
|
+
a({ type: Boolean, reflect: !0 })
|
|
3856
|
+
], B.prototype, "fullwidth", 2);
|
|
3857
|
+
B = K([
|
|
3858
|
+
x("o-filter-chip")
|
|
3859
|
+
], B);
|