@florid-kit/components 0.8.63 → 0.8.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/toast.d.ts +23 -0
- package/index.js +143 -97
- package/index.mjs +797 -692
- 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
|
|
6
|
+
const yt = globalThis, zt = yt.ShadowRoot && (yt.ShadyCSS === void 0 || yt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Bt = Symbol(), Kt = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
let se = class {
|
|
8
|
-
constructor(t, e,
|
|
9
|
-
if (this._$cssResult$ = !0,
|
|
8
|
+
constructor(t, e, r) {
|
|
9
|
+
if (this._$cssResult$ = !0, r !== Bt) 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 (zt && t === void 0) {
|
|
16
|
+
const r = e !== void 0 && e.length === 1;
|
|
17
|
+
r && (t = Kt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && Kt.set(e, t));
|
|
18
18
|
}
|
|
19
19
|
return t;
|
|
20
20
|
}
|
|
@@ -22,22 +22,22 @@ let se = class {
|
|
|
22
22
|
return this.cssText;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const ue = (o) => new se(typeof o == "string" ? o : o + "", void 0, Bt),
|
|
26
|
-
const e = o.length === 1 ? o[0] : t.reduce((
|
|
25
|
+
const ue = (o) => new se(typeof o == "string" ? o : o + "", void 0, Bt), g = (o, ...t) => {
|
|
26
|
+
const e = o.length === 1 ? o[0] : t.reduce((r, i, n) => r + ((s) => {
|
|
27
27
|
if (s._$cssResult$ === !0) return s.cssText;
|
|
28
28
|
if (typeof s == "number") return s;
|
|
29
29
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + s + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
30
|
-
})(i) + o[
|
|
30
|
+
})(i) + o[n + 1], o[0]);
|
|
31
31
|
return new se(e, o, Bt);
|
|
32
32
|
}, ve = (o, t) => {
|
|
33
|
-
if (
|
|
33
|
+
if (zt) 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 = yt.litNonce;
|
|
36
|
+
i !== void 0 && r.setAttribute("nonce", i), r.textContent = e.cssText, o.appendChild(r);
|
|
37
37
|
}
|
|
38
|
-
}, Gt =
|
|
38
|
+
}, Gt = zt ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
39
39
|
let e = "";
|
|
40
|
-
for (const
|
|
40
|
+
for (const r of t.cssRules) e += r.cssText;
|
|
41
41
|
return ue(e);
|
|
42
42
|
})(o) : o;
|
|
43
43
|
/**
|
|
@@ -45,10 +45,10 @@ const ue = (o) => new se(typeof o == "string" ? o : o + "", void 0, Bt), b = (o,
|
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is: fe, defineProperty:
|
|
48
|
+
const { is: fe, defineProperty: be, getOwnPropertyDescriptor: ge, getOwnPropertyNames: ye, getOwnPropertySymbols: me, getPrototypeOf: xe } = Object, U = globalThis, Xt = U.trustedTypes, we = Xt ? Xt.emptyScript : "", kt = U.reactiveElementPolyfillSupport, rt = (o, t) => o, mt = { toAttribute(o, t) {
|
|
49
49
|
switch (t) {
|
|
50
50
|
case Boolean:
|
|
51
|
-
o = o ?
|
|
51
|
+
o = o ? we : null;
|
|
52
52
|
break;
|
|
53
53
|
case Object:
|
|
54
54
|
case Array:
|
|
@@ -73,9 +73,9 @@ const { is: fe, defineProperty: ge, getOwnPropertyDescriptor: be, getOwnProperty
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return e;
|
|
76
|
-
} },
|
|
77
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
78
|
-
let
|
|
76
|
+
} }, Dt = (o, t) => !fe(o, t), Jt = { attribute: !0, type: String, converter: mt, reflect: !1, useDefault: !1, hasChanged: Dt };
|
|
77
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), U.litPropertyMetadata ?? (U.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
|
+
let Y = class extends HTMLElement {
|
|
79
79
|
static addInitializer(t) {
|
|
80
80
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
81
81
|
}
|
|
@@ -84,43 +84,43 @@ let J = class extends HTMLElement {
|
|
|
84
84
|
}
|
|
85
85
|
static createProperty(t, e = Jt) {
|
|
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 && be(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 } = ge(this.prototype, t) ?? { get() {
|
|
93
93
|
return this[e];
|
|
94
94
|
}, set(s) {
|
|
95
95
|
this[e] = s;
|
|
96
96
|
} };
|
|
97
97
|
return { get: i, set(s) {
|
|
98
98
|
const h = i == null ? void 0 : i.call(this);
|
|
99
|
-
|
|
99
|
+
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
103
|
return this.elementProperties.get(t) ?? Jt;
|
|
104
104
|
}
|
|
105
105
|
static _$Ei() {
|
|
106
|
-
if (this.hasOwnProperty(
|
|
107
|
-
const t =
|
|
106
|
+
if (this.hasOwnProperty(rt("elementProperties"))) return;
|
|
107
|
+
const t = xe(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(rt("finalized"))) return;
|
|
112
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(rt("properties"))) {
|
|
113
|
+
const e = this.properties, r = [...ye(e), ...me(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 J = class extends HTMLElement {
|
|
|
128
128
|
static finalizeStyles(t) {
|
|
129
129
|
const e = [];
|
|
130
130
|
if (Array.isArray(t)) {
|
|
131
|
-
const
|
|
132
|
-
for (const i of
|
|
131
|
+
const r = new Set(t.flat(1 / 0).reverse());
|
|
132
|
+
for (const i of r) e.unshift(Gt(i));
|
|
133
133
|
} else t !== void 0 && e.push(Gt(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,7 +154,7 @@ let J = 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() {
|
|
@@ -164,8 +164,8 @@ let J = class extends HTMLElement {
|
|
|
164
164
|
connectedCallback() {
|
|
165
165
|
var t;
|
|
166
166
|
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
|
|
167
|
-
var
|
|
168
|
-
return (
|
|
167
|
+
var 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 J = 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 s = (((
|
|
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 : mt).toAttribute(e, r.type);
|
|
188
188
|
this._$Em = t, s == null ? this.removeAttribute(i) : this.setAttribute(i, s), this._$Em = null;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
_$AK(t, e) {
|
|
192
|
-
var
|
|
193
|
-
const
|
|
192
|
+
var n, s;
|
|
193
|
+
const r = this.constructor, i = r._$Eh.get(t);
|
|
194
194
|
if (i !== void 0 && this._$Em !== i) {
|
|
195
|
-
const h =
|
|
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 : mt;
|
|
196
196
|
this._$Em = i, this[i] = c.fromAttribute(e, h.type) ?? ((s = this._$Ej) == null ? void 0 : s.get(i)) ?? null, this._$Em = null;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
requestUpdate(t, e,
|
|
199
|
+
requestUpdate(t, e, 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 ?? Dt)(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 J = 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 } = s, c = this[
|
|
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 J = 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,74 +276,74 @@ let J = class extends HTMLElement {
|
|
|
276
276
|
firstUpdated(t) {
|
|
277
277
|
}
|
|
278
278
|
};
|
|
279
|
-
|
|
279
|
+
Y.elementStyles = [], Y.shadowRootOptions = { mode: "open" }, Y[rt("elementProperties")] = /* @__PURE__ */ new Map(), Y[rt("finalized")] = /* @__PURE__ */ new Map(), kt == null || kt({ ReactiveElement: Y }), (U.reactiveElementVersions ?? (U.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"), ee = /'/g, oe = /"/g, ce = /^(?:script|style|textarea|title)$/i, Ce = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), l = Ce(1),
|
|
285
|
+
const nt = globalThis, xt = nt.trustedTypes, Qt = xt ? xt.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, ae = "$lit$", R = `lit$${Math.random().toFixed(9).slice(2)}$`, le = "?" + R, $e = `<${le}>`, G = document, at = () => G.createComment(""), lt = (o) => o === null || typeof o != "object" && typeof o != "function", Ht = Array.isArray, _e = (o) => Ht(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", At = `[
|
|
286
|
+
\f\r]`, it = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Yt = /-->/g, te = />/g, q = RegExp(`>|${At}(?:([^\\s"'>=/]+)(${At}*=${At}*(?:[^
|
|
287
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), ee = /'/g, oe = /"/g, ce = /^(?:script|style|textarea|title)$/i, Ce = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), l = Ce(1), V = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), ie = /* @__PURE__ */ new WeakMap(), W = G.createTreeWalker(G, 129);
|
|
288
288
|
function he(o, t) {
|
|
289
|
-
if (!
|
|
289
|
+
if (!Ht(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
290
290
|
return Qt !== void 0 ? Qt.createHTML(t) : t;
|
|
291
291
|
}
|
|
292
292
|
const ke = (o, t) => {
|
|
293
|
-
const e = o.length - 1,
|
|
294
|
-
let i,
|
|
293
|
+
const e = o.length - 1, r = [];
|
|
294
|
+
let i, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = it;
|
|
295
295
|
for (let h = 0; h < e; h++) {
|
|
296
296
|
const c = o[h];
|
|
297
|
-
let f, m, p = -1,
|
|
298
|
-
for (;
|
|
299
|
-
const
|
|
300
|
-
|
|
297
|
+
let f, m, p = -1, _ = 0;
|
|
298
|
+
for (; _ < c.length && (s.lastIndex = _, m = s.exec(c), m !== null); ) _ = s.lastIndex, s === it ? m[1] === "!--" ? s = Yt : m[1] !== void 0 ? s = te : m[2] !== void 0 ? (ce.test(m[2]) && (i = RegExp("</" + m[2], "g")), s = q) : m[3] !== void 0 && (s = q) : s === q ? m[0] === ">" ? (s = i ?? it, p = -1) : m[1] === void 0 ? p = -2 : (p = s.lastIndex - m[2].length, f = m[1], s = m[3] === void 0 ? q : m[3] === '"' ? oe : ee) : s === oe || s === ee ? s = q : s === Yt || s === te ? s = it : (s = q, i = void 0);
|
|
299
|
+
const P = s === q && o[h + 1].startsWith("/>") ? " " : "";
|
|
300
|
+
n += s === it ? c + $e : p >= 0 ? (r.push(f), c.slice(0, p) + ae + c.slice(p) + R + P) : c + R + (p === -2 ? h : P);
|
|
301
301
|
}
|
|
302
|
-
return [he(o,
|
|
302
|
+
return [he(o, n + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
|
|
303
303
|
};
|
|
304
|
-
class
|
|
305
|
-
constructor({ strings: t, _$litType$: e },
|
|
304
|
+
class ct {
|
|
305
|
+
constructor({ strings: t, _$litType$: e }, r) {
|
|
306
306
|
let i;
|
|
307
307
|
this.parts = [];
|
|
308
|
-
let
|
|
308
|
+
let n = 0, s = 0;
|
|
309
309
|
const h = t.length - 1, c = this.parts, [f, m] = ke(t, e);
|
|
310
|
-
if (this.el =
|
|
310
|
+
if (this.el = ct.createElement(f, r), W.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 = W.nextNode()) !== null && c.length < h; ) {
|
|
315
315
|
if (i.nodeType === 1) {
|
|
316
316
|
if (i.hasAttributes()) for (const p of i.getAttributeNames()) if (p.endsWith(ae)) {
|
|
317
|
-
const
|
|
318
|
-
c.push({ type: 1, index:
|
|
319
|
-
} else p.startsWith(
|
|
317
|
+
const _ = m[s++], P = i.getAttribute(p).split(R), gt = /([.?@])?(.*)/.exec(_);
|
|
318
|
+
c.push({ type: 1, index: n, name: gt[2], strings: P, ctor: gt[1] === "." ? Se : gt[1] === "?" ? Ee : gt[1] === "@" ? Le : $t }), i.removeAttribute(p);
|
|
319
|
+
} else p.startsWith(R) && (c.push({ type: 6, index: n }), i.removeAttribute(p));
|
|
320
320
|
if (ce.test(i.tagName)) {
|
|
321
|
-
const p = i.textContent.split(
|
|
322
|
-
if (
|
|
323
|
-
i.textContent =
|
|
324
|
-
for (let
|
|
325
|
-
i.append(p[
|
|
321
|
+
const p = i.textContent.split(R), _ = p.length - 1;
|
|
322
|
+
if (_ > 0) {
|
|
323
|
+
i.textContent = xt ? xt.emptyScript : "";
|
|
324
|
+
for (let P = 0; P < _; P++) i.append(p[P], at()), W.nextNode(), c.push({ type: 2, index: ++n });
|
|
325
|
+
i.append(p[_], at());
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
|
-
} else if (i.nodeType === 8) if (i.data === le) c.push({ type: 2, index:
|
|
328
|
+
} else if (i.nodeType === 8) if (i.data === le) 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(R, p + 1)) !== -1; ) c.push({ type: 7, index: n }), p += R.length - 1;
|
|
332
332
|
}
|
|
333
|
-
|
|
333
|
+
n++;
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
336
|
static createElement(t, e) {
|
|
337
|
-
const
|
|
338
|
-
return
|
|
337
|
+
const r = G.createElement("template");
|
|
338
|
+
return r.innerHTML = t, r;
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function tt(o, t, e = o, r) {
|
|
342
342
|
var s, h;
|
|
343
|
-
if (t ===
|
|
344
|
-
let i =
|
|
345
|
-
const
|
|
346
|
-
return (i == null ? void 0 : i.constructor) !==
|
|
343
|
+
if (t === V) return t;
|
|
344
|
+
let i = r !== void 0 ? (s = e._$Co) == null ? void 0 : s[r] : e._$Cl;
|
|
345
|
+
const n = lt(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 = tt(o, i._$AS(o, t.values), i, r)), t;
|
|
347
347
|
}
|
|
348
348
|
class Ae {
|
|
349
349
|
constructor(t, e) {
|
|
@@ -356,30 +356,30 @@ class Ae {
|
|
|
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) ?? G).importNode(e, !0);
|
|
360
|
+
W.currentNode = i;
|
|
361
|
+
let n = W.nextNode(), s = 0, h = 0, c = r[0];
|
|
362
362
|
for (; c !== void 0; ) {
|
|
363
363
|
if (s === c.index) {
|
|
364
364
|
let f;
|
|
365
|
-
c.type === 2 ? f = new
|
|
365
|
+
c.type === 2 ? f = new ft(n, n.nextSibling, this, t) : c.type === 1 ? f = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (f = new Pe(n, this, t)), this._$AV.push(f), c = r[++h];
|
|
366
366
|
}
|
|
367
|
-
s !== (c == null ? void 0 : c.index) && (
|
|
367
|
+
s !== (c == null ? void 0 : c.index) && (n = W.nextNode(), s++);
|
|
368
368
|
}
|
|
369
|
-
return
|
|
369
|
+
return W.currentNode = G, 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 ft {
|
|
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 vt {
|
|
|
393
393
|
return this._$AB;
|
|
394
394
|
}
|
|
395
395
|
_$AI(t, e = this) {
|
|
396
|
-
t =
|
|
396
|
+
t = tt(this, t, e), lt(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== V && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : _e(t) ? this.k(t) : this._(t);
|
|
397
397
|
}
|
|
398
398
|
O(t) {
|
|
399
399
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -402,12 +402,12 @@ class vt {
|
|
|
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 && lt(this._$AH) ? this._$AA.nextSibling.data = t : this.T(G.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 = ct.createElement(he(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
412
|
const s = new Ae(i, this), h = s.u(this.options);
|
|
413
413
|
s.p(e), this.T(h), this._$AH = s;
|
|
@@ -415,18 +415,18 @@ class vt {
|
|
|
415
415
|
}
|
|
416
416
|
_$AC(t) {
|
|
417
417
|
let e = ie.get(t.strings);
|
|
418
|
-
return e === void 0 && ie.set(t.strings, e = new
|
|
418
|
+
return e === void 0 && ie.set(t.strings, e = new ct(t)), e;
|
|
419
419
|
}
|
|
420
420
|
k(t) {
|
|
421
|
-
|
|
421
|
+
Ht(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 ft(this.O(at()), this.O(at()), 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,24 +436,24 @@ class vt {
|
|
|
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 $t {
|
|
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
|
|
449
|
+
_$AI(t, e = this, r, i) {
|
|
450
|
+
const n = this.strings;
|
|
451
451
|
let s = !1;
|
|
452
|
-
if (
|
|
452
|
+
if (n === void 0) t = tt(this, t, e, 0), s = !lt(t) || t !== this._$AH && t !== V, s && (this._$AH = t);
|
|
453
453
|
else {
|
|
454
454
|
const h = t;
|
|
455
455
|
let c, f;
|
|
456
|
-
for (t =
|
|
456
|
+
for (t = n[0], c = 0; c < n.length - 1; c++) f = tt(this, h[r + c], e, c), f === V && (f = this._$AH[c]), s || (s = !lt(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
|
}
|
|
@@ -461,7 +461,7 @@ class xt {
|
|
|
461
461
|
t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
-
class
|
|
464
|
+
class Se extends $t {
|
|
465
465
|
constructor() {
|
|
466
466
|
super(...arguments), this.type = 3;
|
|
467
467
|
}
|
|
@@ -469,7 +469,7 @@ class Ee extends xt {
|
|
|
469
469
|
this.element[this.name] = t === d ? void 0 : t;
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
class
|
|
472
|
+
class Ee extends $t {
|
|
473
473
|
constructor() {
|
|
474
474
|
super(...arguments), this.type = 4;
|
|
475
475
|
}
|
|
@@ -477,14 +477,14 @@ class Se extends xt {
|
|
|
477
477
|
this.element.toggleAttribute(this.name, !!t && t !== d);
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
|
-
class Le extends
|
|
481
|
-
constructor(t, e,
|
|
482
|
-
super(t, e,
|
|
480
|
+
class Le extends $t {
|
|
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 = tt(this, t, e, 0) ?? d) === V) 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;
|
|
@@ -492,24 +492,24 @@ class Le extends xt {
|
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
class Pe {
|
|
495
|
-
constructor(t, e,
|
|
496
|
-
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options =
|
|
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
|
+
tt(this, t);
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
const
|
|
506
|
-
|
|
505
|
+
const St = nt.litHtmlPolyfillSupport;
|
|
506
|
+
St == null || St(ct, ft), (nt.litHtmlVersions ?? (nt.litHtmlVersions = [])).push("3.3.0");
|
|
507
507
|
const Oe = (o, t, e) => {
|
|
508
|
-
const
|
|
509
|
-
let i =
|
|
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 ft(t.insertBefore(at(), n), n, void 0, e ?? {});
|
|
513
513
|
}
|
|
514
514
|
return i._$AI(o), i;
|
|
515
515
|
};
|
|
@@ -518,8 +518,8 @@ const Oe = (o, t, e) => {
|
|
|
518
518
|
* Copyright 2017 Google LLC
|
|
519
519
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
520
520
|
*/
|
|
521
|
-
const
|
|
522
|
-
let v = class extends
|
|
521
|
+
const K = globalThis;
|
|
522
|
+
let v = class extends Y {
|
|
523
523
|
constructor() {
|
|
524
524
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
525
525
|
}
|
|
@@ -541,20 +541,20 @@ let v = class extends J {
|
|
|
541
541
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
|
542
542
|
}
|
|
543
543
|
render() {
|
|
544
|
-
return
|
|
544
|
+
return V;
|
|
545
545
|
}
|
|
546
546
|
};
|
|
547
|
-
var
|
|
548
|
-
v._$litElement$ = !0, v.finalized = !0, (
|
|
549
|
-
const Et =
|
|
547
|
+
var ne;
|
|
548
|
+
v._$litElement$ = !0, v.finalized = !0, (ne = K.litElementHydrateSupport) == null || ne.call(K, { LitElement: v });
|
|
549
|
+
const Et = K.litElementPolyfillSupport;
|
|
550
550
|
Et == null || Et({ LitElement: v });
|
|
551
|
-
(
|
|
551
|
+
(K.litElementVersions ?? (K.litElementVersions = [])).push("4.2.0");
|
|
552
552
|
/**
|
|
553
553
|
* @license
|
|
554
554
|
* Copyright 2017 Google LLC
|
|
555
555
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
556
556
|
*/
|
|
557
|
-
const
|
|
557
|
+
const x = (o) => (t, e) => {
|
|
558
558
|
e !== void 0 ? e.addInitializer(() => {
|
|
559
559
|
customElements.define(o, t);
|
|
560
560
|
}) : customElements.define(o, t);
|
|
@@ -564,10 +564,10 @@ const w = (o) => (t, e) => {
|
|
|
564
564
|
* Copyright 2017 Google LLC
|
|
565
565
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
566
566
|
*/
|
|
567
|
-
const Ie = { attribute: !0, type: String, converter:
|
|
568
|
-
const { kind:
|
|
569
|
-
let
|
|
570
|
-
if (
|
|
567
|
+
const Ie = { attribute: !0, type: String, converter: mt, reflect: !1, hasChanged: Dt }, ze = (o = Ie, 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
571
|
const { name: s } = e;
|
|
572
572
|
return { set(h) {
|
|
573
573
|
const c = t.get.call(this);
|
|
@@ -576,19 +576,19 @@ const Ie = { attribute: !0, type: String, converter: yt, reflect: !1, hasChanged
|
|
|
576
576
|
return h !== void 0 && this.C(s, void 0, o, h), h;
|
|
577
577
|
} };
|
|
578
578
|
}
|
|
579
|
-
if (
|
|
579
|
+
if (r === "setter") {
|
|
580
580
|
const { name: s } = e;
|
|
581
581
|
return function(h) {
|
|
582
582
|
const c = this[s];
|
|
583
583
|
t.call(this, h), this.requestUpdate(s, c, o);
|
|
584
584
|
};
|
|
585
585
|
}
|
|
586
|
-
throw Error("Unsupported decorator location: " +
|
|
586
|
+
throw Error("Unsupported decorator location: " + r);
|
|
587
587
|
};
|
|
588
588
|
function a(o) {
|
|
589
|
-
return (t, e) => typeof e == "object" ?
|
|
590
|
-
const s = i.hasOwnProperty(
|
|
591
|
-
return i.constructor.createProperty(
|
|
589
|
+
return (t, e) => typeof e == "object" ? ze(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,14 +596,14 @@ function a(o) {
|
|
|
596
596
|
* Copyright 2017 Google LLC
|
|
597
597
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
598
598
|
*/
|
|
599
|
-
function
|
|
599
|
+
function X(o) {
|
|
600
600
|
return a({ ...o, state: !0, attribute: !1 });
|
|
601
601
|
}
|
|
602
|
-
const
|
|
602
|
+
const bt = g`
|
|
603
603
|
outline: 1px dashed var(--color-border-primary);
|
|
604
604
|
outline-offset: 2px;
|
|
605
605
|
`;
|
|
606
|
-
|
|
606
|
+
g`
|
|
607
607
|
:host * {
|
|
608
608
|
box-sizing: border-box;
|
|
609
609
|
}
|
|
@@ -613,12 +613,12 @@ b`
|
|
|
613
613
|
* Copyright 2023 Google LLC
|
|
614
614
|
* SPDX-License-Identifier: Apache-2.0
|
|
615
615
|
*/
|
|
616
|
-
const
|
|
617
|
-
function
|
|
616
|
+
const Mt = Symbol("internals"), Lt = Symbol("privateInternals");
|
|
617
|
+
function Tt(o) {
|
|
618
618
|
var t;
|
|
619
619
|
class e extends o {
|
|
620
|
-
get [(t =
|
|
621
|
-
return this[
|
|
620
|
+
get [(t = Mt, t)]() {
|
|
621
|
+
return this[Lt] || (this[Lt] = this.attachInternals()), this[Lt];
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
624
|
return e;
|
|
@@ -628,14 +628,14 @@ function Mt(o) {
|
|
|
628
628
|
* Copyright 2023 Google LLC
|
|
629
629
|
* SPDX-License-Identifier: Apache-2.0
|
|
630
630
|
*/
|
|
631
|
-
function
|
|
631
|
+
function Be(o) {
|
|
632
632
|
o.addInitializer((t) => {
|
|
633
633
|
const e = t;
|
|
634
|
-
e.addEventListener("click", async (
|
|
635
|
-
const { type: i, [
|
|
634
|
+
e.addEventListener("click", async (r) => {
|
|
635
|
+
const { type: i, [Mt]: n } = e, { form: s } = n;
|
|
636
636
|
if (!(!s || i === "button") && (await new Promise((h) => {
|
|
637
637
|
setTimeout(h);
|
|
638
|
-
}), !
|
|
638
|
+
}), !r.defaultPrevented)) {
|
|
639
639
|
if (i === "reset") {
|
|
640
640
|
s.reset();
|
|
641
641
|
return;
|
|
@@ -650,7 +650,7 @@ function ze(o) {
|
|
|
650
650
|
});
|
|
651
651
|
},
|
|
652
652
|
{ capture: !0, once: !0 }
|
|
653
|
-
),
|
|
653
|
+
), n.setFormValue(e.value), s.requestSubmit();
|
|
654
654
|
}
|
|
655
655
|
});
|
|
656
656
|
});
|
|
@@ -673,13 +673,13 @@ const De = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
673
673
|
`, Fe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
674
674
|
<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"/>
|
|
675
675
|
</svg>
|
|
676
|
-
`,
|
|
676
|
+
`, Ne = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
677
677
|
<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"/>
|
|
678
678
|
</svg>
|
|
679
|
-
`,
|
|
679
|
+
`, Re = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
680
680
|
<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"/>
|
|
681
681
|
</svg>
|
|
682
|
-
`,
|
|
682
|
+
`, Ue = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
683
683
|
<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"/>
|
|
684
684
|
</svg>
|
|
685
685
|
`, Ve = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -738,11 +738,11 @@ const De = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
738
738
|
</svg>
|
|
739
739
|
`, io = `<svg viewBox="0 0 200 200" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg">
|
|
740
740
|
<line x1="0" y1="0" x2="200" y2="200" />
|
|
741
|
-
</svg>`,
|
|
741
|
+
</svg>`, ro = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
742
742
|
<path d="M2.31202e-08 7.85218C0.974855 6.83983 3.01741 4.44477 6.12766 0.666992L6.54545 0.926252C5.54739 3.04971 4.35203 5.40773 2.95938 8.00033C4.35203 10.5929 5.54739 12.9509 6.54545 15.0744L6.12766 15.3337C3.01741 11.5559 0.974855 9.16082 0 8.14847L2.31202e-08 7.85218Z" fill="#3F2B2E"/>
|
|
743
743
|
<path d="M16 8.14847C15.0251 9.16082 12.9826 11.5559 9.87234 15.3337L9.45455 15.0744C10.4526 12.9509 11.648 10.5929 13.0406 8.00033C11.648 5.40773 10.4526 3.04971 9.45455 0.92625L9.87234 0.666992C12.9826 4.44477 15.0251 6.83983 16 7.85218V8.14847Z" fill="#3F2B2E"/>
|
|
744
744
|
</svg>
|
|
745
|
-
`,
|
|
745
|
+
`, no = `<svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
746
746
|
<path d="M8 0.458496C12.4183 0.458496 16 4.04022 16 8.4585C16 12.8768 12.4183 16.4585 8 16.4585C3.58172 16.4585 0 12.8768 0 8.4585C0 4.04022 3.58172 0.458496 8 0.458496ZM11.8115 5.56787C11.5953 5.39556 11.2797 5.43075 11.1074 5.64697L7.45801 10.2104L4.85254 7.60596C4.65647 7.41684 4.34516 7.41943 4.15234 7.61182C3.95956 7.8046 3.95626 8.11678 4.14551 8.31299L7.14551 11.313C7.23977 11.4062 7.36741 11.4592 7.5 11.4595L7.52832 11.4585C7.67017 11.4503 7.80168 11.3818 7.89062 11.271L11.8906 6.271C12.0629 6.05485 12.0275 5.74022 11.8115 5.56787Z" fill="#3B7902"/>
|
|
747
747
|
</svg>
|
|
748
748
|
`, so = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -751,7 +751,7 @@ const De = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
751
751
|
`, ao = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
752
752
|
<path d="M8 0C12.4183 0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0ZM7.16602 6.1084V12H8.84668V6.1084H7.16602ZM8.00684 2.64062C7.45497 2.64062 7.01096 3.09591 7.01074 3.63574C7.01074 4.18774 7.45484 4.63184 8.00684 4.63184C8.55862 4.63159 9.00195 4.18759 9.00195 3.63574C9.00174 3.09606 8.55849 2.64088 8.00684 2.64062Z" fill="#4572A6"/>
|
|
753
753
|
</svg>
|
|
754
|
-
`,
|
|
754
|
+
`, J = {
|
|
755
755
|
wishlist: De,
|
|
756
756
|
playerv: He,
|
|
757
757
|
chevronRight: Me,
|
|
@@ -760,9 +760,9 @@ const De = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
760
760
|
icoMinus: We,
|
|
761
761
|
"star-0": je,
|
|
762
762
|
"star-25": Fe,
|
|
763
|
-
"star-50":
|
|
764
|
-
"star-75":
|
|
765
|
-
"star-100":
|
|
763
|
+
"star-50": Ne,
|
|
764
|
+
"star-75": Re,
|
|
765
|
+
"star-100": Ue,
|
|
766
766
|
cross: Ve,
|
|
767
767
|
search: Ze,
|
|
768
768
|
arrowLeft: Ke,
|
|
@@ -774,11 +774,11 @@ const De = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
774
774
|
checkstroke: to,
|
|
775
775
|
pause: eo,
|
|
776
776
|
mapDualArrow: oo,
|
|
777
|
-
swipeDualArrow:
|
|
777
|
+
swipeDualArrow: ro
|
|
778
778
|
}, lo = {
|
|
779
779
|
strikeDiagonal: io
|
|
780
780
|
}, co = {
|
|
781
|
-
success:
|
|
781
|
+
success: no,
|
|
782
782
|
error: so,
|
|
783
783
|
info: ao
|
|
784
784
|
};
|
|
@@ -787,15 +787,15 @@ const De = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
787
787
|
* Copyright 2017 Google LLC
|
|
788
788
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
789
789
|
*/
|
|
790
|
-
const
|
|
791
|
-
let
|
|
790
|
+
const jt = { ATTRIBUTE: 1, CHILD: 2 }, Ft = (o) => (...t) => ({ _$litDirective$: o, values: t });
|
|
791
|
+
let Nt = class {
|
|
792
792
|
constructor(t) {
|
|
793
793
|
}
|
|
794
794
|
get _$AU() {
|
|
795
795
|
return this._$AM._$AU;
|
|
796
796
|
}
|
|
797
|
-
_$AT(t, e,
|
|
798
|
-
this._$Ct = t, this._$AM = e, this._$Ci =
|
|
797
|
+
_$AT(t, e, r) {
|
|
798
|
+
this._$Ct = t, this._$AM = e, this._$Ci = r;
|
|
799
799
|
}
|
|
800
800
|
_$AS(t, e) {
|
|
801
801
|
return this.update(t, e);
|
|
@@ -809,13 +809,13 @@ let Ft = class {
|
|
|
809
809
|
* Copyright 2017 Google LLC
|
|
810
810
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
811
811
|
*/
|
|
812
|
-
class
|
|
812
|
+
class Pt extends Nt {
|
|
813
813
|
constructor(t) {
|
|
814
|
-
if (super(t), this.it = d, t.type !==
|
|
814
|
+
if (super(t), this.it = d, t.type !== jt.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
815
815
|
}
|
|
816
816
|
render(t) {
|
|
817
817
|
if (t === d || t == null) return this._t = void 0, this.it = t;
|
|
818
|
-
if (t ===
|
|
818
|
+
if (t === V) return t;
|
|
819
819
|
if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
820
820
|
if (t === this.it) return this._t;
|
|
821
821
|
this.it = t;
|
|
@@ -823,23 +823,23 @@ class Lt extends Ft {
|
|
|
823
823
|
return e.raw = e, this._t = { _$litType$: this.constructor.resultType, strings: e, values: [] };
|
|
824
824
|
}
|
|
825
825
|
}
|
|
826
|
-
|
|
826
|
+
Pt.directiveName = "unsafeHTML", Pt.resultType = 1;
|
|
827
827
|
/**
|
|
828
828
|
* @license
|
|
829
829
|
* Copyright 2017 Google LLC
|
|
830
830
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
831
831
|
*/
|
|
832
|
-
class
|
|
832
|
+
class Ot extends Pt {
|
|
833
833
|
}
|
|
834
|
-
|
|
835
|
-
const
|
|
836
|
-
var ho = Object.defineProperty, po = Object.getOwnPropertyDescriptor,
|
|
837
|
-
for (var i =
|
|
838
|
-
(s = o[
|
|
839
|
-
return
|
|
834
|
+
Ot.directiveName = "unsafeSVG", Ot.resultType = 2;
|
|
835
|
+
const O = Ft(Ot);
|
|
836
|
+
var ho = Object.defineProperty, po = Object.getOwnPropertyDescriptor, w = (o, t, e, r) => {
|
|
837
|
+
for (var i = r > 1 ? void 0 : r ? po(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
838
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
839
|
+
return r && i && ho(t, e, i), i;
|
|
840
840
|
};
|
|
841
|
-
const uo =
|
|
842
|
-
let
|
|
841
|
+
const uo = Tt(v);
|
|
842
|
+
let b = class extends uo {
|
|
843
843
|
constructor() {
|
|
844
844
|
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, this.withbadge = !1;
|
|
845
845
|
}
|
|
@@ -850,7 +850,7 @@ let g = class extends uo {
|
|
|
850
850
|
this.setAttribute("name", o);
|
|
851
851
|
}
|
|
852
852
|
get form() {
|
|
853
|
-
return this[
|
|
853
|
+
return this[Mt].form;
|
|
854
854
|
}
|
|
855
855
|
handleClick(o) {
|
|
856
856
|
if (!(o instanceof KeyboardEvent && !["Enter", " "].includes(o.key)) && this.panelTarget) {
|
|
@@ -864,11 +864,11 @@ let g = class extends uo {
|
|
|
864
864
|
renderIcon(o) {
|
|
865
865
|
const t = o === "start" ? this.startIconModel : this.endIconModel;
|
|
866
866
|
if (!t) return d;
|
|
867
|
-
const e =
|
|
867
|
+
const e = J[t].replace(
|
|
868
868
|
"<svg",
|
|
869
869
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
870
870
|
);
|
|
871
|
-
return l`<span class="${o === "start" ? "icon-start" : "icon-end"}">${
|
|
871
|
+
return l`<span class="${o === "start" ? "icon-start" : "icon-end"}">${O(e)}</span>`;
|
|
872
872
|
}
|
|
873
873
|
renderButton() {
|
|
874
874
|
const o = this.text || this.textsecond;
|
|
@@ -903,9 +903,9 @@ let g = class extends uo {
|
|
|
903
903
|
`;
|
|
904
904
|
}
|
|
905
905
|
};
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
906
|
+
Be(b);
|
|
907
|
+
b.formAssociated = !0;
|
|
908
|
+
b.styles = g`
|
|
909
909
|
:host {
|
|
910
910
|
--button-border: transparent;
|
|
911
911
|
--badge-outer-width: 19px;
|
|
@@ -1022,7 +1022,7 @@ g.styles = b`
|
|
|
1022
1022
|
}
|
|
1023
1023
|
|
|
1024
1024
|
.button:focus-visible {
|
|
1025
|
-
${
|
|
1025
|
+
${bt};
|
|
1026
1026
|
}
|
|
1027
1027
|
|
|
1028
1028
|
span.text + span.text::before {
|
|
@@ -1107,63 +1107,63 @@ g.styles = b`
|
|
|
1107
1107
|
}
|
|
1108
1108
|
//End icon movment on hover
|
|
1109
1109
|
`;
|
|
1110
|
-
|
|
1110
|
+
w([
|
|
1111
1111
|
a()
|
|
1112
|
-
],
|
|
1113
|
-
|
|
1112
|
+
], b.prototype, "type", 2);
|
|
1113
|
+
w([
|
|
1114
1114
|
a({ reflect: !0 })
|
|
1115
|
-
],
|
|
1116
|
-
|
|
1115
|
+
], b.prototype, "value", 2);
|
|
1116
|
+
w([
|
|
1117
1117
|
a({ type: String, reflect: !0 })
|
|
1118
|
-
],
|
|
1119
|
-
|
|
1118
|
+
], b.prototype, "variant", 2);
|
|
1119
|
+
w([
|
|
1120
1120
|
a({ type: String })
|
|
1121
|
-
],
|
|
1122
|
-
|
|
1121
|
+
], b.prototype, "text", 2);
|
|
1122
|
+
w([
|
|
1123
1123
|
a({ type: String })
|
|
1124
|
-
],
|
|
1125
|
-
|
|
1124
|
+
], b.prototype, "textsecond", 2);
|
|
1125
|
+
w([
|
|
1126
1126
|
a({ type: Boolean, reflect: !0 })
|
|
1127
|
-
],
|
|
1128
|
-
|
|
1127
|
+
], b.prototype, "fullwidth", 2);
|
|
1128
|
+
w([
|
|
1129
1129
|
a({ type: Boolean, reflect: !0 })
|
|
1130
|
-
],
|
|
1131
|
-
|
|
1130
|
+
], b.prototype, "disabled", 2);
|
|
1131
|
+
w([
|
|
1132
1132
|
a({ type: String, reflect: !0 })
|
|
1133
|
-
],
|
|
1134
|
-
|
|
1133
|
+
], b.prototype, "startIconModel", 2);
|
|
1134
|
+
w([
|
|
1135
1135
|
a({ type: String, reflect: !0 })
|
|
1136
|
-
],
|
|
1137
|
-
|
|
1136
|
+
], b.prototype, "endIconModel", 2);
|
|
1137
|
+
w([
|
|
1138
1138
|
a({ type: Boolean, reflect: !0, attribute: "starticon" })
|
|
1139
|
-
],
|
|
1140
|
-
|
|
1139
|
+
], b.prototype, "startIcon", 2);
|
|
1140
|
+
w([
|
|
1141
1141
|
a({ type: Boolean, reflect: !0, attribute: "endicon" })
|
|
1142
|
-
],
|
|
1143
|
-
|
|
1142
|
+
], b.prototype, "endIcon", 2);
|
|
1143
|
+
w([
|
|
1144
1144
|
a({ type: String, attribute: "paneltarget", reflect: !0 })
|
|
1145
|
-
],
|
|
1146
|
-
|
|
1145
|
+
], b.prototype, "panelTarget", 2);
|
|
1146
|
+
w([
|
|
1147
1147
|
a({ type: String })
|
|
1148
|
-
],
|
|
1149
|
-
|
|
1148
|
+
], b.prototype, "href", 2);
|
|
1149
|
+
w([
|
|
1150
1150
|
a({ type: String })
|
|
1151
|
-
],
|
|
1152
|
-
|
|
1151
|
+
], b.prototype, "target", 2);
|
|
1152
|
+
w([
|
|
1153
1153
|
a({ type: Boolean, reflect: !0 })
|
|
1154
|
-
],
|
|
1155
|
-
|
|
1154
|
+
], b.prototype, "underlined", 2);
|
|
1155
|
+
w([
|
|
1156
1156
|
a({ type: Boolean, reflect: !0 })
|
|
1157
|
-
],
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
],
|
|
1161
|
-
var vo = Object.defineProperty, fo = Object.getOwnPropertyDescriptor,
|
|
1162
|
-
for (var i =
|
|
1163
|
-
(s = o[
|
|
1164
|
-
return
|
|
1157
|
+
], b.prototype, "withbadge", 2);
|
|
1158
|
+
b = w([
|
|
1159
|
+
x("o-button")
|
|
1160
|
+
], b);
|
|
1161
|
+
var vo = Object.defineProperty, fo = Object.getOwnPropertyDescriptor, _t = (o, t, e, r) => {
|
|
1162
|
+
for (var i = r > 1 ? void 0 : r ? fo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
1163
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
1164
|
+
return r && i && vo(t, e, i), i;
|
|
1165
1165
|
};
|
|
1166
|
-
let
|
|
1166
|
+
let et = class extends v {
|
|
1167
1167
|
constructor() {
|
|
1168
1168
|
super(...arguments), this.status = "empty", this.ariaDescribedBy = "a-product-name", this.label = "Add to wishlist", this.toggleStatus = () => {
|
|
1169
1169
|
this.status = this.status === "empty" ? "filled" : "empty", this.setAttribute("aria-pressed", String(this.status === "filled")), this.dispatchEvent(new CustomEvent("wishlist-toggle", {
|
|
@@ -1183,14 +1183,14 @@ let Y = class extends v {
|
|
|
1183
1183
|
(o.key === "Enter" || o.key === " ") && (o.preventDefault(), this.toggleStatus());
|
|
1184
1184
|
}
|
|
1185
1185
|
render() {
|
|
1186
|
-
const o =
|
|
1186
|
+
const o = J.wishlist.replace(
|
|
1187
1187
|
"<svg",
|
|
1188
1188
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
1189
1189
|
);
|
|
1190
1190
|
return l`
|
|
1191
1191
|
<button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
|
|
1192
1192
|
<span class="sr-only">${this.label}</span>
|
|
1193
|
-
${
|
|
1193
|
+
${O(o)}
|
|
1194
1194
|
</button>
|
|
1195
1195
|
`;
|
|
1196
1196
|
}
|
|
@@ -1204,7 +1204,7 @@ let Y = class extends v {
|
|
|
1204
1204
|
this.label = o, this.requestUpdate();
|
|
1205
1205
|
}
|
|
1206
1206
|
};
|
|
1207
|
-
|
|
1207
|
+
et.styles = g`
|
|
1208
1208
|
:host {
|
|
1209
1209
|
display: inline-flex;
|
|
1210
1210
|
justify-content: center;
|
|
@@ -1270,30 +1270,30 @@ Y.styles = b`
|
|
|
1270
1270
|
white-space: nowrap !important;
|
|
1271
1271
|
}
|
|
1272
1272
|
`;
|
|
1273
|
-
|
|
1273
|
+
_t([
|
|
1274
1274
|
a({ type: String, reflect: !0 })
|
|
1275
|
-
],
|
|
1276
|
-
|
|
1275
|
+
], et.prototype, "status", 2);
|
|
1276
|
+
_t([
|
|
1277
1277
|
a({ type: String, reflect: !0 })
|
|
1278
|
-
],
|
|
1279
|
-
|
|
1278
|
+
], et.prototype, "ariaDescribedBy", 2);
|
|
1279
|
+
_t([
|
|
1280
1280
|
a({ type: String, reflect: !0 })
|
|
1281
|
-
],
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
],
|
|
1281
|
+
], et.prototype, "label", 2);
|
|
1282
|
+
et = _t([
|
|
1283
|
+
x("o-wishlist-button")
|
|
1284
|
+
], et);
|
|
1285
1285
|
/**
|
|
1286
1286
|
* @license
|
|
1287
1287
|
* Copyright 2018 Google LLC
|
|
1288
1288
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1289
1289
|
*/
|
|
1290
|
-
const
|
|
1291
|
-
var
|
|
1292
|
-
for (var i =
|
|
1293
|
-
(s = o[
|
|
1294
|
-
return
|
|
1290
|
+
const C = (o) => o ?? d;
|
|
1291
|
+
var bo = Object.defineProperty, go = Object.getOwnPropertyDescriptor, D = (o, t, e, r) => {
|
|
1292
|
+
for (var i = r > 1 ? void 0 : r ? go(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
1293
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
1294
|
+
return r && i && bo(t, e, i), i;
|
|
1295
1295
|
};
|
|
1296
|
-
let
|
|
1296
|
+
let k = class extends v {
|
|
1297
1297
|
constructor() {
|
|
1298
1298
|
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 = "";
|
|
1299
1299
|
}
|
|
@@ -1301,27 +1301,27 @@ let C = class extends v {
|
|
|
1301
1301
|
super.updated(o), this.style.setProperty("--icon-stroke-width", this.strokewidth);
|
|
1302
1302
|
}
|
|
1303
1303
|
render() {
|
|
1304
|
-
const o =
|
|
1304
|
+
const o = J[this.icon] ?? "", t = `icon-${this.icon}`, e = o.replace("<svg", '<svg aria-hidden="true" focusable="false" part="svg"').replace(/<path\b/g, '<path part="icon-path"').replace(/<g\b/g, '<g part="icon-group"').replace(/<circle\b/g, '<circle part="icon-circle"'), r = this.showSrLabel ? l`<span class="sr-only">${this.srLabel}</span>` : null, i = this.showSrLabel ? null : "icon";
|
|
1305
1305
|
return l`
|
|
1306
1306
|
${this.type === "span" ? l`
|
|
1307
1307
|
<span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
|
|
1308
|
-
${
|
|
1308
|
+
${O(e)}
|
|
1309
1309
|
</span>
|
|
1310
1310
|
` : l`
|
|
1311
1311
|
<button
|
|
1312
1312
|
type="button"
|
|
1313
|
-
aria-label=${
|
|
1313
|
+
aria-label=${C(i)}
|
|
1314
1314
|
class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}"
|
|
1315
1315
|
?disabled="${this.disabled}"
|
|
1316
1316
|
>
|
|
1317
|
-
${
|
|
1318
|
-
${
|
|
1317
|
+
${O(e)}
|
|
1318
|
+
${r}
|
|
1319
1319
|
</button>
|
|
1320
1320
|
`}
|
|
1321
1321
|
`;
|
|
1322
1322
|
}
|
|
1323
1323
|
};
|
|
1324
|
-
|
|
1324
|
+
k.styles = g`
|
|
1325
1325
|
:host {
|
|
1326
1326
|
display: inline-flex;
|
|
1327
1327
|
justify-content: center;
|
|
@@ -1526,49 +1526,49 @@ C.styles = b`
|
|
|
1526
1526
|
}
|
|
1527
1527
|
|
|
1528
1528
|
.icon-button:focus-visible {
|
|
1529
|
-
${
|
|
1529
|
+
${bt}
|
|
1530
1530
|
}
|
|
1531
1531
|
|
|
1532
1532
|
.sr-only {
|
|
1533
1533
|
display: none;
|
|
1534
1534
|
}
|
|
1535
1535
|
`;
|
|
1536
|
-
|
|
1536
|
+
D([
|
|
1537
1537
|
a({ type: String, reflect: !0 })
|
|
1538
|
-
],
|
|
1539
|
-
|
|
1538
|
+
], k.prototype, "bgstyle", 2);
|
|
1539
|
+
D([
|
|
1540
1540
|
a({ type: String, reflect: !0 })
|
|
1541
|
-
],
|
|
1542
|
-
|
|
1541
|
+
], k.prototype, "size", 2);
|
|
1542
|
+
D([
|
|
1543
1543
|
a({ type: String, reflect: !0 })
|
|
1544
|
-
],
|
|
1545
|
-
|
|
1544
|
+
], k.prototype, "status", 2);
|
|
1545
|
+
D([
|
|
1546
1546
|
a({ type: String, reflect: !0 })
|
|
1547
|
-
],
|
|
1548
|
-
|
|
1547
|
+
], k.prototype, "type", 2);
|
|
1548
|
+
D([
|
|
1549
1549
|
a({ type: String })
|
|
1550
|
-
],
|
|
1551
|
-
|
|
1550
|
+
], k.prototype, "strokewidth", 2);
|
|
1551
|
+
D([
|
|
1552
1552
|
a({ type: String })
|
|
1553
|
-
],
|
|
1554
|
-
|
|
1553
|
+
], k.prototype, "icon", 2);
|
|
1554
|
+
D([
|
|
1555
1555
|
a({ type: Boolean, reflect: !0 })
|
|
1556
|
-
],
|
|
1557
|
-
|
|
1556
|
+
], k.prototype, "disabled", 2);
|
|
1557
|
+
D([
|
|
1558
1558
|
a({ type: Boolean })
|
|
1559
|
-
],
|
|
1560
|
-
|
|
1559
|
+
], k.prototype, "showSrLabel", 2);
|
|
1560
|
+
D([
|
|
1561
1561
|
a({ type: String })
|
|
1562
|
-
],
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
],
|
|
1566
|
-
var yo = Object.defineProperty, mo = Object.getOwnPropertyDescriptor,
|
|
1567
|
-
for (var i =
|
|
1568
|
-
(s = o[
|
|
1569
|
-
return
|
|
1562
|
+
], k.prototype, "srLabel", 2);
|
|
1563
|
+
k = D([
|
|
1564
|
+
x("o-icon-button")
|
|
1565
|
+
], k);
|
|
1566
|
+
var yo = Object.defineProperty, mo = Object.getOwnPropertyDescriptor, Q = (o, t, e, r) => {
|
|
1567
|
+
for (var i = r > 1 ? void 0 : r ? mo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
1568
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
1569
|
+
return r && i && yo(t, e, i), i;
|
|
1570
1570
|
};
|
|
1571
|
-
let
|
|
1571
|
+
let T = class extends v {
|
|
1572
1572
|
constructor() {
|
|
1573
1573
|
super(...arguments), this.href = "", this.target = "", this.template = "standard", this.inverse = !1, this.endIcon = !1, this.reverseEndIcon = !1;
|
|
1574
1574
|
}
|
|
@@ -1580,7 +1580,7 @@ let H = class extends v {
|
|
|
1580
1580
|
return l`
|
|
1581
1581
|
<a
|
|
1582
1582
|
href="${o}"
|
|
1583
|
-
target="${
|
|
1583
|
+
target="${C(this.target || void 0)}"
|
|
1584
1584
|
@click="${this._handleClick}"
|
|
1585
1585
|
>
|
|
1586
1586
|
${this.endIcon && this.reverseEndIcon ? l`
|
|
@@ -1606,7 +1606,7 @@ let H = class extends v {
|
|
|
1606
1606
|
`;
|
|
1607
1607
|
}
|
|
1608
1608
|
};
|
|
1609
|
-
|
|
1609
|
+
T.styles = g`
|
|
1610
1610
|
:host([template="standard"]) a {
|
|
1611
1611
|
color: var(--color-content-action-secondary);
|
|
1612
1612
|
font-size: var(--font-size-200);
|
|
@@ -1694,33 +1694,33 @@ H.styles = b`
|
|
|
1694
1694
|
}
|
|
1695
1695
|
/* End of underline effect */
|
|
1696
1696
|
`;
|
|
1697
|
-
|
|
1697
|
+
Q([
|
|
1698
1698
|
a({ type: String })
|
|
1699
|
-
],
|
|
1700
|
-
|
|
1699
|
+
], T.prototype, "href", 2);
|
|
1700
|
+
Q([
|
|
1701
1701
|
a({ type: String })
|
|
1702
|
-
],
|
|
1703
|
-
|
|
1702
|
+
], T.prototype, "target", 2);
|
|
1703
|
+
Q([
|
|
1704
1704
|
a({ type: String, reflect: !0 })
|
|
1705
|
-
],
|
|
1706
|
-
|
|
1705
|
+
], T.prototype, "template", 2);
|
|
1706
|
+
Q([
|
|
1707
1707
|
a({ type: Boolean, reflect: !0 })
|
|
1708
|
-
],
|
|
1709
|
-
|
|
1708
|
+
], T.prototype, "inverse", 2);
|
|
1709
|
+
Q([
|
|
1710
1710
|
a({ type: Boolean, reflect: !0 })
|
|
1711
|
-
],
|
|
1712
|
-
|
|
1711
|
+
], T.prototype, "endIcon", 2);
|
|
1712
|
+
Q([
|
|
1713
1713
|
a({ type: Boolean, reflect: !0 })
|
|
1714
|
-
],
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
],
|
|
1718
|
-
var
|
|
1719
|
-
for (var i =
|
|
1720
|
-
(s = o[
|
|
1721
|
-
return
|
|
1714
|
+
], T.prototype, "reverseEndIcon", 2);
|
|
1715
|
+
T = Q([
|
|
1716
|
+
x("o-link")
|
|
1717
|
+
], T);
|
|
1718
|
+
var xo = Object.defineProperty, wo = Object.getOwnPropertyDescriptor, Ct = (o, t, e, r) => {
|
|
1719
|
+
for (var i = r > 1 ? void 0 : r ? wo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
1720
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
1721
|
+
return r && i && xo(t, e, i), i;
|
|
1722
1722
|
};
|
|
1723
|
-
let
|
|
1723
|
+
let ot = class extends v {
|
|
1724
1724
|
constructor() {
|
|
1725
1725
|
super(...arguments), this.rating = 0;
|
|
1726
1726
|
}
|
|
@@ -1728,8 +1728,8 @@ let tt = class extends v {
|
|
|
1728
1728
|
const o = [];
|
|
1729
1729
|
for (let t = 0; t < 5; t++) {
|
|
1730
1730
|
const e = this.rating - t;
|
|
1731
|
-
let
|
|
1732
|
-
e >= 1 ?
|
|
1731
|
+
let r;
|
|
1732
|
+
e >= 1 ? r = 100 : e <= 0 ? r = 0 : r = Math.round(e * 100 / 25) * 25, o.push(`star-${r}`);
|
|
1733
1733
|
}
|
|
1734
1734
|
return o;
|
|
1735
1735
|
}
|
|
@@ -1739,7 +1739,7 @@ let tt = class extends v {
|
|
|
1739
1739
|
<div class="rating">
|
|
1740
1740
|
<div class="stars">
|
|
1741
1741
|
${o.map(
|
|
1742
|
-
(t) => l`<span class="star">${
|
|
1742
|
+
(t) => l`<span class="star">${O(J[t] ?? "")}</span>`
|
|
1743
1743
|
)}
|
|
1744
1744
|
</div>
|
|
1745
1745
|
${this.reviewCount != null && this.href != null ? l`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>` : null}
|
|
@@ -1747,7 +1747,7 @@ let tt = class extends v {
|
|
|
1747
1747
|
`;
|
|
1748
1748
|
}
|
|
1749
1749
|
};
|
|
1750
|
-
|
|
1750
|
+
ot.styles = g`
|
|
1751
1751
|
svg {
|
|
1752
1752
|
width: 12px;
|
|
1753
1753
|
height: 12px;
|
|
@@ -1781,18 +1781,18 @@ tt.styles = b`
|
|
|
1781
1781
|
cursor: pointer;
|
|
1782
1782
|
}
|
|
1783
1783
|
`;
|
|
1784
|
-
|
|
1784
|
+
Ct([
|
|
1785
1785
|
a({ type: Number })
|
|
1786
|
-
],
|
|
1787
|
-
|
|
1786
|
+
], ot.prototype, "rating", 2);
|
|
1787
|
+
Ct([
|
|
1788
1788
|
a({ type: String })
|
|
1789
|
-
],
|
|
1790
|
-
|
|
1789
|
+
], ot.prototype, "reviewCount", 2);
|
|
1790
|
+
Ct([
|
|
1791
1791
|
a({ type: String })
|
|
1792
|
-
],
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
],
|
|
1792
|
+
], ot.prototype, "href", 2);
|
|
1793
|
+
ot = Ct([
|
|
1794
|
+
x("o-rating")
|
|
1795
|
+
], ot);
|
|
1796
1796
|
/**
|
|
1797
1797
|
* @license
|
|
1798
1798
|
* Copyright 2020 Google LLC
|
|
@@ -1804,11 +1804,11 @@ const $o = (o) => o.strings === void 0;
|
|
|
1804
1804
|
* Copyright 2017 Google LLC
|
|
1805
1805
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1806
1806
|
*/
|
|
1807
|
-
const
|
|
1808
|
-
var
|
|
1807
|
+
const st = (o, t) => {
|
|
1808
|
+
var r;
|
|
1809
1809
|
const e = o._$AN;
|
|
1810
1810
|
if (e === void 0) return !1;
|
|
1811
|
-
for (const i of e) (
|
|
1811
|
+
for (const i of e) (r = i._$AO) == null || r.call(i, t, !1), st(i, t);
|
|
1812
1812
|
return !0;
|
|
1813
1813
|
}, wt = (o) => {
|
|
1814
1814
|
let t, e;
|
|
@@ -1828,24 +1828,24 @@ function _o(o) {
|
|
|
1828
1828
|
this._$AN !== void 0 ? (wt(this), this._$AM = o, de(this)) : this._$AM = o;
|
|
1829
1829
|
}
|
|
1830
1830
|
function Co(o, t = !1, e = 0) {
|
|
1831
|
-
const
|
|
1832
|
-
if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(
|
|
1833
|
-
else
|
|
1834
|
-
else
|
|
1831
|
+
const r = this._$AH, i = this._$AN;
|
|
1832
|
+
if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(r)) for (let n = e; n < r.length; n++) st(r[n], !1), wt(r[n]);
|
|
1833
|
+
else r != null && (st(r, !1), wt(r));
|
|
1834
|
+
else st(this, o);
|
|
1835
1835
|
}
|
|
1836
1836
|
const ko = (o) => {
|
|
1837
|
-
o.type ==
|
|
1837
|
+
o.type == jt.CHILD && (o._$AP ?? (o._$AP = Co), o._$AQ ?? (o._$AQ = _o));
|
|
1838
1838
|
};
|
|
1839
|
-
class Ao extends
|
|
1839
|
+
class Ao extends Nt {
|
|
1840
1840
|
constructor() {
|
|
1841
1841
|
super(...arguments), this._$AN = void 0;
|
|
1842
1842
|
}
|
|
1843
|
-
_$AT(t, e,
|
|
1844
|
-
super._$AT(t, e,
|
|
1843
|
+
_$AT(t, e, r) {
|
|
1844
|
+
super._$AT(t, e, r), de(this), this.isConnected = t._$AU;
|
|
1845
1845
|
}
|
|
1846
1846
|
_$AO(t, e = !0) {
|
|
1847
|
-
var
|
|
1848
|
-
t !== this.isConnected && (this.isConnected = t, t ? (
|
|
1847
|
+
var r, i;
|
|
1848
|
+
t !== this.isConnected && (this.isConnected = t, t ? (r = this.reconnected) == null || r.call(this) : (i = this.disconnected) == null || i.call(this)), e && (st(this, t), wt(this));
|
|
1849
1849
|
}
|
|
1850
1850
|
setValue(t) {
|
|
1851
1851
|
if ($o(this._$Ct)) this._$Ct._$AI(t, this);
|
|
@@ -1859,7 +1859,7 @@ class Ao extends Ft {
|
|
|
1859
1859
|
reconnected() {
|
|
1860
1860
|
}
|
|
1861
1861
|
}
|
|
1862
|
-
class
|
|
1862
|
+
class So extends Ao {
|
|
1863
1863
|
constructor() {
|
|
1864
1864
|
super(...arguments), this.prevData = {};
|
|
1865
1865
|
}
|
|
@@ -1867,49 +1867,49 @@ class Eo extends Ao {
|
|
|
1867
1867
|
return d;
|
|
1868
1868
|
}
|
|
1869
1869
|
update(t, [e]) {
|
|
1870
|
-
var
|
|
1871
|
-
this.element !== t.element && (this.element = t.element), this.host = ((
|
|
1870
|
+
var r;
|
|
1871
|
+
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 };
|
|
1872
1872
|
}
|
|
1873
1873
|
apply(t) {
|
|
1874
1874
|
if (!t)
|
|
1875
1875
|
return;
|
|
1876
|
-
const { prevData: e, element:
|
|
1876
|
+
const { prevData: e, element: r } = this;
|
|
1877
1877
|
for (const i in t) {
|
|
1878
|
-
const
|
|
1879
|
-
|
|
1878
|
+
const n = t[i];
|
|
1879
|
+
n !== e[i] && (r[i] = n);
|
|
1880
1880
|
}
|
|
1881
1881
|
}
|
|
1882
1882
|
groom(t) {
|
|
1883
|
-
const { prevData: e, element:
|
|
1883
|
+
const { prevData: e, element: r } = this;
|
|
1884
1884
|
if (e)
|
|
1885
1885
|
for (const i in e)
|
|
1886
|
-
(!t || !(i in t) &&
|
|
1886
|
+
(!t || !(i in t) && r[i] === e[i]) && (r[i] = void 0);
|
|
1887
1887
|
}
|
|
1888
1888
|
}
|
|
1889
|
-
class
|
|
1889
|
+
class Eo extends So {
|
|
1890
1890
|
constructor() {
|
|
1891
1891
|
super(...arguments), this.eventData = {};
|
|
1892
1892
|
}
|
|
1893
1893
|
apply(t) {
|
|
1894
1894
|
if (t)
|
|
1895
1895
|
for (const e in t) {
|
|
1896
|
-
const
|
|
1897
|
-
|
|
1896
|
+
const r = t[e];
|
|
1897
|
+
r !== this.eventData[e] && this.applyEvent(e, r);
|
|
1898
1898
|
}
|
|
1899
1899
|
}
|
|
1900
1900
|
applyEvent(t, e) {
|
|
1901
|
-
const { prevData:
|
|
1902
|
-
this.eventData[t] = e,
|
|
1901
|
+
const { prevData: r, element: i } = this;
|
|
1902
|
+
this.eventData[t] = e, r[t] && i.removeEventListener(t, this, e), i.addEventListener(t, this, e);
|
|
1903
1903
|
}
|
|
1904
1904
|
groom(t) {
|
|
1905
|
-
const { prevData: e, element:
|
|
1905
|
+
const { prevData: e, element: r } = this;
|
|
1906
1906
|
if (e)
|
|
1907
1907
|
for (const i in e)
|
|
1908
|
-
(!t || !(i in t) &&
|
|
1908
|
+
(!t || !(i in t) && r[i] === e[i]) && this.groomEvent(i, e[i]);
|
|
1909
1909
|
}
|
|
1910
1910
|
groomEvent(t, e) {
|
|
1911
|
-
const { element:
|
|
1912
|
-
delete this.eventData[t],
|
|
1911
|
+
const { element: r } = this;
|
|
1912
|
+
delete this.eventData[t], r.removeEventListener(t, this, e);
|
|
1913
1913
|
}
|
|
1914
1914
|
handleEvent(t) {
|
|
1915
1915
|
const e = this.eventData[t.type];
|
|
@@ -1917,73 +1917,73 @@ class So extends Eo {
|
|
|
1917
1917
|
}
|
|
1918
1918
|
disconnected() {
|
|
1919
1919
|
const { eventData: t, element: e } = this;
|
|
1920
|
-
for (const
|
|
1921
|
-
const i =
|
|
1922
|
-
e.removeEventListener(i, this,
|
|
1920
|
+
for (const r in t) {
|
|
1921
|
+
const i = r.slice(1), n = t[r];
|
|
1922
|
+
e.removeEventListener(i, this, n);
|
|
1923
1923
|
}
|
|
1924
1924
|
}
|
|
1925
1925
|
reconnected() {
|
|
1926
1926
|
const { eventData: t, element: e } = this;
|
|
1927
|
-
for (const
|
|
1928
|
-
const i =
|
|
1929
|
-
e.addEventListener(i, this,
|
|
1927
|
+
for (const r in t) {
|
|
1928
|
+
const i = r.slice(1), n = t[r];
|
|
1929
|
+
e.addEventListener(i, this, n);
|
|
1930
1930
|
}
|
|
1931
1931
|
}
|
|
1932
1932
|
}
|
|
1933
|
-
class Lo extends
|
|
1933
|
+
class Lo extends Eo {
|
|
1934
1934
|
apply(t) {
|
|
1935
1935
|
if (!t)
|
|
1936
1936
|
return;
|
|
1937
|
-
const { prevData: e, element:
|
|
1937
|
+
const { prevData: e, element: r } = this;
|
|
1938
1938
|
for (const i in t) {
|
|
1939
|
-
const
|
|
1940
|
-
if (
|
|
1939
|
+
const n = t[i];
|
|
1940
|
+
if (n === e[i])
|
|
1941
1941
|
continue;
|
|
1942
1942
|
const s = i.slice(1);
|
|
1943
1943
|
switch (i[0]) {
|
|
1944
1944
|
case "@":
|
|
1945
|
-
this.eventData[s] =
|
|
1945
|
+
this.eventData[s] = n, this.applyEvent(s, n);
|
|
1946
1946
|
break;
|
|
1947
1947
|
case ".":
|
|
1948
|
-
|
|
1948
|
+
r[s] = n;
|
|
1949
1949
|
break;
|
|
1950
1950
|
case "?":
|
|
1951
|
-
|
|
1951
|
+
n ? r.setAttribute(s, "") : r.removeAttribute(s);
|
|
1952
1952
|
break;
|
|
1953
1953
|
default:
|
|
1954
|
-
|
|
1954
|
+
n != null ? r.setAttribute(i, String(n)) : r.removeAttribute(i);
|
|
1955
1955
|
break;
|
|
1956
1956
|
}
|
|
1957
1957
|
}
|
|
1958
1958
|
}
|
|
1959
1959
|
groom(t) {
|
|
1960
|
-
const { prevData: e, element:
|
|
1960
|
+
const { prevData: e, element: r } = this;
|
|
1961
1961
|
if (e)
|
|
1962
1962
|
for (const i in e) {
|
|
1963
|
-
const
|
|
1964
|
-
if (!t || !(i in t) && n
|
|
1963
|
+
const n = i.slice(1);
|
|
1964
|
+
if (!t || !(i in t) && r[n] === e[i])
|
|
1965
1965
|
switch (i[0]) {
|
|
1966
1966
|
case "@":
|
|
1967
|
-
this.groomEvent(
|
|
1967
|
+
this.groomEvent(n, e[i]);
|
|
1968
1968
|
break;
|
|
1969
1969
|
case ".":
|
|
1970
|
-
n
|
|
1970
|
+
r[n] = void 0;
|
|
1971
1971
|
break;
|
|
1972
1972
|
case "?":
|
|
1973
|
-
|
|
1973
|
+
r.removeAttribute(n);
|
|
1974
1974
|
break;
|
|
1975
1975
|
default:
|
|
1976
|
-
|
|
1976
|
+
r.removeAttribute(i);
|
|
1977
1977
|
break;
|
|
1978
1978
|
}
|
|
1979
1979
|
}
|
|
1980
1980
|
}
|
|
1981
1981
|
}
|
|
1982
|
-
const
|
|
1983
|
-
var Po = Object.defineProperty, Oo = Object.getOwnPropertyDescriptor, y = (o, t, e,
|
|
1984
|
-
for (var i =
|
|
1985
|
-
(s = o[
|
|
1986
|
-
return
|
|
1982
|
+
const re = Ft(Lo);
|
|
1983
|
+
var Po = Object.defineProperty, Oo = Object.getOwnPropertyDescriptor, y = (o, t, e, r) => {
|
|
1984
|
+
for (var i = r > 1 ? void 0 : r ? Oo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
1985
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
1986
|
+
return r && i && Po(t, e, i), i;
|
|
1987
1987
|
};
|
|
1988
1988
|
let u = class extends v {
|
|
1989
1989
|
constructor() {
|
|
@@ -1998,13 +1998,13 @@ let u = class extends v {
|
|
|
1998
1998
|
const t = o.currentTarget, e = (t == null ? void 0 : t.getAttribute("data-role")) === "back";
|
|
1999
1999
|
if (this.showDetail && e) {
|
|
2000
2000
|
this.isHidingDetail = !0;
|
|
2001
|
-
const
|
|
2002
|
-
if (
|
|
2001
|
+
const r = this.renderRoot.querySelector(".content");
|
|
2002
|
+
if (r) {
|
|
2003
2003
|
this.showHeaderStartIcon = !1;
|
|
2004
2004
|
const i = () => {
|
|
2005
|
-
this.showDetail = !1, this.isHidingDetail = !1,
|
|
2005
|
+
this.showDetail = !1, this.isHidingDetail = !1, r.removeEventListener("animationend", i);
|
|
2006
2006
|
};
|
|
2007
|
-
|
|
2007
|
+
r.addEventListener("animationend", i);
|
|
2008
2008
|
} else
|
|
2009
2009
|
this.showDetail = !1, this.isHidingDetail = !1, this.showHeaderStartIcon = !1;
|
|
2010
2010
|
return;
|
|
@@ -2021,12 +2021,12 @@ let u = class extends v {
|
|
|
2021
2021
|
document.body.style.overflow = "", document.body.removeAttribute("data-side-panel"), this.removeEventListener("keydown", this.handleKeyDown), super.disconnectedCallback(), this.removeEventListener("open-detail", this._onOpenDetail);
|
|
2022
2022
|
}
|
|
2023
2023
|
trapFocus(o) {
|
|
2024
|
-
var i,
|
|
2025
|
-
this.innerFocusedElement = document.activeElement || null, this.innerFocusedElement = ((
|
|
2024
|
+
var i, n, s, h, c, f, m, p, _, P;
|
|
2025
|
+
this.innerFocusedElement = document.activeElement || null, this.innerFocusedElement = ((n = (i = this.innerFocusedElement) == null ? void 0 : i.shadowRoot) == null ? void 0 : n.activeElement) || this.innerFocusedElement;
|
|
2026
2026
|
const t = this.getFocusableElements();
|
|
2027
2027
|
if (t.length === 0) return;
|
|
2028
|
-
const e = t[0],
|
|
2029
|
-
o.shiftKey && this.innerFocusedElement === e ? (o.preventDefault(),
|
|
2028
|
+
const e = t[0], r = t[t.length - 1];
|
|
2029
|
+
o.shiftKey && this.innerFocusedElement === e ? (o.preventDefault(), r.shadowRoot ? (c = (h = (s = r.shadowRoot) == null ? void 0 : s.querySelector(u.focusablesSelector)) == null ? void 0 : h.focus) == null || c.call(h) : (f = r.focus) == null || f.call(r)) : !o.shiftKey && this.innerFocusedElement === r && (o.preventDefault(), e.shadowRoot ? (_ = (p = (m = e.shadowRoot) == null ? void 0 : m.querySelector(u.focusablesSelector)) == null ? void 0 : p.focus) == null || _.call(p) : (P = e.focus) == null || P.call(e));
|
|
2030
2030
|
}
|
|
2031
2031
|
getFocusableElements() {
|
|
2032
2032
|
const o = this.renderRoot.querySelector(".panel");
|
|
@@ -2036,36 +2036,36 @@ let u = class extends v {
|
|
|
2036
2036
|
}
|
|
2037
2037
|
function e(i) {
|
|
2038
2038
|
var s;
|
|
2039
|
-
const
|
|
2039
|
+
const n = [i.matches(u.focusablesSelector) ? i : []];
|
|
2040
2040
|
if (!["o-icon-button", "o-button"].includes(i.tagName.toLowerCase())) {
|
|
2041
2041
|
const h = Array.from(
|
|
2042
2042
|
i instanceof HTMLSlotElement ? i.assignedElements({ flatten: !0 }) : []
|
|
2043
2043
|
).filter(t).flatMap(e), c = Array.from(
|
|
2044
2044
|
((s = i.shadowRoot) == null ? void 0 : s.querySelectorAll("*")) || []
|
|
2045
2045
|
).filter(t).flatMap(e);
|
|
2046
|
-
|
|
2046
|
+
n.push(...h, ...c);
|
|
2047
2047
|
}
|
|
2048
|
-
return
|
|
2048
|
+
return n.flat();
|
|
2049
2049
|
}
|
|
2050
2050
|
return Array.from(o.querySelectorAll("*")).filter(t).flatMap(e);
|
|
2051
2051
|
}
|
|
2052
2052
|
openPanel() {
|
|
2053
2053
|
this.previousFocusedElement = document.activeElement, this.open = !0, document.body.style.overflow = "hidden", document.body.setAttribute("data-side-panel", "open"), this.updateComplete.then(() => {
|
|
2054
|
-
var o, t, e,
|
|
2054
|
+
var o, t, e, r;
|
|
2055
2055
|
if (this.showHeader) {
|
|
2056
|
-
const i = ((o = this.shadowRoot) == null ? void 0 : o.querySelector(".panel .close-btn")) || null,
|
|
2057
|
-
|
|
2056
|
+
const i = ((o = this.shadowRoot) == null ? void 0 : o.querySelector(".panel .close-btn")) || null, n = ((t = i == null ? void 0 : i.shadowRoot) == null ? void 0 : t.querySelector("button")) || null;
|
|
2057
|
+
n && ((e = n.focus) == null || e.call(n));
|
|
2058
2058
|
} else {
|
|
2059
2059
|
const i = this.getFocusableElements()[0];
|
|
2060
|
-
(
|
|
2060
|
+
(r = i == null ? void 0 : i.focus) == null || r.call(i);
|
|
2061
2061
|
}
|
|
2062
2062
|
}), this.dispatchEvent(
|
|
2063
2063
|
new CustomEvent("open", { bubbles: !0, composed: !0 })
|
|
2064
2064
|
);
|
|
2065
2065
|
}
|
|
2066
2066
|
closePanel() {
|
|
2067
|
-
var o, t, e,
|
|
2068
|
-
this.open = !1, this.showDetail = !1, document.body.style.overflow = "", document.body.removeAttribute("data-side-panel"), ((o = this.previousFocusedElement) == null ? void 0 : o.tagName.toLowerCase()) === "o-button" ? (
|
|
2067
|
+
var o, t, e, r, i;
|
|
2068
|
+
this.open = !1, this.showDetail = !1, document.body.style.overflow = "", document.body.removeAttribute("data-side-panel"), ((o = this.previousFocusedElement) == null ? void 0 : o.tagName.toLowerCase()) === "o-button" ? (r = (e = (t = this.previousFocusedElement.shadowRoot) == null ? void 0 : t.querySelector(".button")) == null ? void 0 : e.focus) == null || r.call(e) : (i = this.previousFocusedElement) == null || i.focus(), this.dispatchEvent(
|
|
2069
2069
|
new CustomEvent("close", { bubbles: !0, composed: !0 })
|
|
2070
2070
|
);
|
|
2071
2071
|
}
|
|
@@ -2160,7 +2160,7 @@ let u = class extends v {
|
|
|
2160
2160
|
variant="${this.firstButtonVariant}"
|
|
2161
2161
|
@click=${this.handleFirstClick}
|
|
2162
2162
|
@keydown=${this.handleFirstClick}
|
|
2163
|
-
${
|
|
2163
|
+
${re(this.firstButtonProps)}
|
|
2164
2164
|
>
|
|
2165
2165
|
${this.firstButtonLabel}
|
|
2166
2166
|
</o-button>
|
|
@@ -2171,7 +2171,7 @@ let u = class extends v {
|
|
|
2171
2171
|
variant="${this.secondButtonVariant}"
|
|
2172
2172
|
@click=${this.handleSecondClick}
|
|
2173
2173
|
@keydown=${this.handleSecondClick}
|
|
2174
|
-
${
|
|
2174
|
+
${re(this.secondButtonProps)}
|
|
2175
2175
|
>
|
|
2176
2176
|
${this.secondButtonLabel}
|
|
2177
2177
|
</o-button>
|
|
@@ -2182,7 +2182,7 @@ let u = class extends v {
|
|
|
2182
2182
|
`;
|
|
2183
2183
|
}
|
|
2184
2184
|
};
|
|
2185
|
-
u.styles =
|
|
2185
|
+
u.styles = g`
|
|
2186
2186
|
:host {
|
|
2187
2187
|
--z-overlay: 99;
|
|
2188
2188
|
--z-panel: 100;
|
|
@@ -2286,7 +2286,7 @@ u.styles = b`
|
|
|
2286
2286
|
.panel:focus-visible,
|
|
2287
2287
|
.close-btn:focus,
|
|
2288
2288
|
.close-btn:focus-visible {
|
|
2289
|
-
${
|
|
2289
|
+
${bt}
|
|
2290
2290
|
}
|
|
2291
2291
|
|
|
2292
2292
|
.content {
|
|
@@ -2434,14 +2434,14 @@ y([
|
|
|
2434
2434
|
a({ type: Boolean })
|
|
2435
2435
|
], u.prototype, "isHidingDetail", 2);
|
|
2436
2436
|
u = y([
|
|
2437
|
-
|
|
2437
|
+
x("o-side-panel")
|
|
2438
2438
|
], u);
|
|
2439
|
-
var Io = Object.defineProperty,
|
|
2440
|
-
for (var i =
|
|
2441
|
-
(s = o[
|
|
2442
|
-
return
|
|
2439
|
+
var Io = Object.defineProperty, zo = Object.getOwnPropertyDescriptor, Z = (o, t, e, r) => {
|
|
2440
|
+
for (var i = r > 1 ? void 0 : r ? zo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2441
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2442
|
+
return r && i && Io(t, e, i), i;
|
|
2443
2443
|
};
|
|
2444
|
-
let
|
|
2444
|
+
let B = class extends v {
|
|
2445
2445
|
constructor() {
|
|
2446
2446
|
super(...arguments), this.thumbnails = [], this.activeIndex = 0, this.disabledIndexes = [], this.maxWidth = "100%", this.altressource = "visual", this.focusedIndex = 0, this.playerIconTemplate = l`
|
|
2447
2447
|
<o-icon-button
|
|
@@ -2493,7 +2493,7 @@ let I = class extends v {
|
|
|
2493
2493
|
return l`
|
|
2494
2494
|
<ul class="scroll-container" style="max-width: ${this.maxWidth};">
|
|
2495
2495
|
${this.thumbnails.map((o, t) => {
|
|
2496
|
-
const e = this.disabledIndexes.includes(t),
|
|
2496
|
+
const e = this.disabledIndexes.includes(t), r = this.activeIndex === t, i = o.type === "video", n = i ? `video ${t}` : `${this.altressource} ${t + 1}`;
|
|
2497
2497
|
return l`
|
|
2498
2498
|
<li class="thumb-wrapper">
|
|
2499
2499
|
<button
|
|
@@ -2501,14 +2501,14 @@ let I = class extends v {
|
|
|
2501
2501
|
data-index="${t}"
|
|
2502
2502
|
?disabled=${e}
|
|
2503
2503
|
aria-selected="${this.focusedIndex === t}"
|
|
2504
|
-
aria-current=${
|
|
2504
|
+
aria-current=${r ? "true" : "false"}
|
|
2505
2505
|
tabindex="${this.disabledIndexes.includes(t) ? -1 : 0}"
|
|
2506
2506
|
@click=${() => this.selectThumbnail(t)}
|
|
2507
2507
|
@keydown=${this.handleKeyDown}
|
|
2508
2508
|
@focus=${(s) => this.onFocus(s)}
|
|
2509
2509
|
@blur=${(s) => this.onBlur(s)}
|
|
2510
2510
|
>
|
|
2511
|
-
<img alt="${
|
|
2511
|
+
<img alt="${n}" src="${o.src}" />
|
|
2512
2512
|
</button>
|
|
2513
2513
|
${i ? l`<div class="play-icon-wrapper">${this.playerIconTemplate}</div>` : null}
|
|
2514
2514
|
</li>
|
|
@@ -2518,7 +2518,7 @@ let I = class extends v {
|
|
|
2518
2518
|
`;
|
|
2519
2519
|
}
|
|
2520
2520
|
};
|
|
2521
|
-
|
|
2521
|
+
B.styles = g`
|
|
2522
2522
|
:host {
|
|
2523
2523
|
display: flex;
|
|
2524
2524
|
gap: 5px;
|
|
@@ -2624,36 +2624,36 @@ I.styles = b`
|
|
|
2624
2624
|
width: 0;
|
|
2625
2625
|
}
|
|
2626
2626
|
`;
|
|
2627
|
-
|
|
2627
|
+
Z([
|
|
2628
2628
|
a({ type: Array })
|
|
2629
|
-
],
|
|
2630
|
-
|
|
2629
|
+
], B.prototype, "thumbnails", 2);
|
|
2630
|
+
Z([
|
|
2631
2631
|
a({ type: Number })
|
|
2632
|
-
],
|
|
2633
|
-
|
|
2632
|
+
], B.prototype, "activeIndex", 2);
|
|
2633
|
+
Z([
|
|
2634
2634
|
a({ type: Array })
|
|
2635
|
-
],
|
|
2636
|
-
|
|
2635
|
+
], B.prototype, "disabledIndexes", 2);
|
|
2636
|
+
Z([
|
|
2637
2637
|
a({ type: String })
|
|
2638
|
-
],
|
|
2639
|
-
|
|
2638
|
+
], B.prototype, "maxWidth", 2);
|
|
2639
|
+
Z([
|
|
2640
2640
|
a({ type: String })
|
|
2641
|
-
],
|
|
2642
|
-
|
|
2641
|
+
], B.prototype, "altressource", 2);
|
|
2642
|
+
Z([
|
|
2643
2643
|
a({ type: Object })
|
|
2644
|
-
],
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
],
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
],
|
|
2651
|
-
var
|
|
2652
|
-
for (var i =
|
|
2653
|
-
(s = o[
|
|
2654
|
-
return
|
|
2644
|
+
], B.prototype, "swiperInstance", 2);
|
|
2645
|
+
Z([
|
|
2646
|
+
X()
|
|
2647
|
+
], B.prototype, "focusedIndex", 2);
|
|
2648
|
+
B = Z([
|
|
2649
|
+
x("thumbnail-navigation")
|
|
2650
|
+
], B);
|
|
2651
|
+
var Bo = Object.defineProperty, Do = Object.getOwnPropertyDescriptor, Rt = (o, t, e, r) => {
|
|
2652
|
+
for (var i = r > 1 ? void 0 : r ? Do(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2653
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2654
|
+
return r && i && Bo(t, e, i), i;
|
|
2655
2655
|
};
|
|
2656
|
-
let
|
|
2656
|
+
let ht = class extends v {
|
|
2657
2657
|
constructor() {
|
|
2658
2658
|
super(...arguments), this.type = "", this.bgstyle = "background-white";
|
|
2659
2659
|
}
|
|
@@ -2663,7 +2663,7 @@ let lt = class extends v {
|
|
|
2663
2663
|
`;
|
|
2664
2664
|
}
|
|
2665
2665
|
};
|
|
2666
|
-
|
|
2666
|
+
ht.styles = g`
|
|
2667
2667
|
.tag {
|
|
2668
2668
|
display: inline-block;
|
|
2669
2669
|
padding: var(--spacing-2-xs) var(--spacing-s);
|
|
@@ -2723,19 +2723,19 @@ lt.styles = b`
|
|
|
2723
2723
|
`;
|
|
2724
2724
|
Rt([
|
|
2725
2725
|
a({ type: String, reflect: !0 })
|
|
2726
|
-
],
|
|
2726
|
+
], ht.prototype, "type", 2);
|
|
2727
2727
|
Rt([
|
|
2728
2728
|
a({ type: String, reflect: !0 })
|
|
2729
|
-
],
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
],
|
|
2733
|
-
var Ho = Object.defineProperty, Mo = Object.getOwnPropertyDescriptor, Ut = (o, t, e,
|
|
2734
|
-
for (var i =
|
|
2735
|
-
(s = o[
|
|
2736
|
-
return
|
|
2729
|
+
], ht.prototype, "bgstyle", 2);
|
|
2730
|
+
ht = Rt([
|
|
2731
|
+
x("o-tag")
|
|
2732
|
+
], ht);
|
|
2733
|
+
var Ho = Object.defineProperty, Mo = Object.getOwnPropertyDescriptor, Ut = (o, t, e, r) => {
|
|
2734
|
+
for (var i = r > 1 ? void 0 : r ? Mo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2735
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2736
|
+
return r && i && Ho(t, e, i), i;
|
|
2737
2737
|
};
|
|
2738
|
-
let
|
|
2738
|
+
let dt = class extends v {
|
|
2739
2739
|
constructor() {
|
|
2740
2740
|
super(...arguments), this.type = "top", this.text = "";
|
|
2741
2741
|
}
|
|
@@ -2748,7 +2748,7 @@ let ct = class extends v {
|
|
|
2748
2748
|
`;
|
|
2749
2749
|
}
|
|
2750
2750
|
};
|
|
2751
|
-
|
|
2751
|
+
dt.styles = g`
|
|
2752
2752
|
.tooltip {
|
|
2753
2753
|
position: relative;
|
|
2754
2754
|
display: inline-block;
|
|
@@ -2843,19 +2843,19 @@ ct.styles = b`
|
|
|
2843
2843
|
`;
|
|
2844
2844
|
Ut([
|
|
2845
2845
|
a({ type: String, reflect: !0 })
|
|
2846
|
-
],
|
|
2846
|
+
], dt.prototype, "type", 2);
|
|
2847
2847
|
Ut([
|
|
2848
2848
|
a({ type: String, reflect: !0 })
|
|
2849
|
-
],
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
],
|
|
2853
|
-
var To = Object.defineProperty, jo = Object.getOwnPropertyDescriptor,
|
|
2854
|
-
for (var i =
|
|
2855
|
-
(s = o[
|
|
2856
|
-
return
|
|
2849
|
+
], dt.prototype, "text", 2);
|
|
2850
|
+
dt = Ut([
|
|
2851
|
+
x("o-tooltip")
|
|
2852
|
+
], dt);
|
|
2853
|
+
var To = Object.defineProperty, jo = Object.getOwnPropertyDescriptor, j = (o, t, e, r) => {
|
|
2854
|
+
for (var i = r > 1 ? void 0 : r ? jo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2855
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2856
|
+
return r && i && To(t, e, i), i;
|
|
2857
2857
|
};
|
|
2858
|
-
let
|
|
2858
|
+
let I = class extends v {
|
|
2859
2859
|
constructor() {
|
|
2860
2860
|
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) => {
|
|
2861
2861
|
this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
|
|
@@ -2921,7 +2921,7 @@ let O = class extends v {
|
|
|
2921
2921
|
this.options.length > 0 && (this.options.some((e) => e.value === this.value) || (this.value = this.options[0].value));
|
|
2922
2922
|
}
|
|
2923
2923
|
render() {
|
|
2924
|
-
const o =
|
|
2924
|
+
const o = J.checkstroke.replace(
|
|
2925
2925
|
"<svg",
|
|
2926
2926
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
2927
2927
|
), t = this.options.find((e) => e.value === this.value);
|
|
@@ -2954,22 +2954,22 @@ let O = class extends v {
|
|
|
2954
2954
|
style=${`width: ${this.width};`}
|
|
2955
2955
|
>
|
|
2956
2956
|
${this.options.map(
|
|
2957
|
-
(e,
|
|
2957
|
+
(e, r) => l`
|
|
2958
2958
|
<li
|
|
2959
|
-
id="option-${
|
|
2959
|
+
id="option-${r}"
|
|
2960
2960
|
role="option"
|
|
2961
2961
|
aria-selected="${e.value === this.value}"
|
|
2962
|
-
tabindex="${
|
|
2963
|
-
class="${
|
|
2962
|
+
tabindex="${r === this.activeIndex ? "0" : "-1"}"
|
|
2963
|
+
class="${r === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
|
|
2964
2964
|
@click=${() => this.selectOption(e)}
|
|
2965
2965
|
>
|
|
2966
2966
|
${e.url ? l`
|
|
2967
2967
|
<a href="${e.url}">
|
|
2968
2968
|
<span>${e.label}</span>
|
|
2969
|
-
${e.value === this.value ? l`<span class="check">${
|
|
2969
|
+
${e.value === this.value ? l`<span class="check">${O(o)}</span>` : null}
|
|
2970
2970
|
</a>` : l`
|
|
2971
2971
|
<span>${e.label}</span>
|
|
2972
|
-
${e.value === this.value ? l`<span class="check">${
|
|
2972
|
+
${e.value === this.value ? l`<span class="check">${O(o)}</span>` : null}`}
|
|
2973
2973
|
</li>`
|
|
2974
2974
|
)}
|
|
2975
2975
|
</ul>` : null}
|
|
@@ -2978,7 +2978,7 @@ let O = class extends v {
|
|
|
2978
2978
|
`;
|
|
2979
2979
|
}
|
|
2980
2980
|
};
|
|
2981
|
-
|
|
2981
|
+
I.styles = g`
|
|
2982
2982
|
:host {
|
|
2983
2983
|
display: inline-block;
|
|
2984
2984
|
position: relative;
|
|
@@ -3118,44 +3118,44 @@ O.styles = b`
|
|
|
3118
3118
|
display: none;
|
|
3119
3119
|
}
|
|
3120
3120
|
`;
|
|
3121
|
-
|
|
3121
|
+
j([
|
|
3122
3122
|
a({ type: Array, reflect: !0 })
|
|
3123
|
-
],
|
|
3124
|
-
|
|
3123
|
+
], I.prototype, "options", 2);
|
|
3124
|
+
j([
|
|
3125
3125
|
a({ type: String, reflect: !0 })
|
|
3126
|
-
],
|
|
3127
|
-
|
|
3126
|
+
], I.prototype, "value", 2);
|
|
3127
|
+
j([
|
|
3128
3128
|
a({ type: String, reflect: !0 })
|
|
3129
|
-
],
|
|
3130
|
-
|
|
3129
|
+
], I.prototype, "name", 2);
|
|
3130
|
+
j([
|
|
3131
3131
|
a({ type: Boolean, reflect: !0 })
|
|
3132
|
-
],
|
|
3133
|
-
|
|
3132
|
+
], I.prototype, "disabled", 2);
|
|
3133
|
+
j([
|
|
3134
3134
|
a({ type: String, reflect: !0 })
|
|
3135
|
-
],
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
],
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
],
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
],
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
],
|
|
3148
|
-
var Fo = Object.getOwnPropertyDescriptor,
|
|
3149
|
-
for (var i =
|
|
3150
|
-
(s = o[
|
|
3135
|
+
], I.prototype, "width", 2);
|
|
3136
|
+
j([
|
|
3137
|
+
X()
|
|
3138
|
+
], I.prototype, "open", 2);
|
|
3139
|
+
j([
|
|
3140
|
+
X()
|
|
3141
|
+
], I.prototype, "activeIndex", 2);
|
|
3142
|
+
j([
|
|
3143
|
+
X()
|
|
3144
|
+
], I.prototype, "menuWidth", 2);
|
|
3145
|
+
I = j([
|
|
3146
|
+
x("o-dropdown")
|
|
3147
|
+
], I);
|
|
3148
|
+
var Fo = Object.getOwnPropertyDescriptor, No = (o, t, e, r) => {
|
|
3149
|
+
for (var i = r > 1 ? void 0 : r ? Fo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3150
|
+
(s = o[n]) && (i = s(i) || i);
|
|
3151
3151
|
return i;
|
|
3152
3152
|
};
|
|
3153
|
-
let
|
|
3153
|
+
let It = class extends v {
|
|
3154
3154
|
render() {
|
|
3155
3155
|
return l` <span class="dots"></span> `;
|
|
3156
3156
|
}
|
|
3157
3157
|
};
|
|
3158
|
-
|
|
3158
|
+
It.styles = g`
|
|
3159
3159
|
:host {
|
|
3160
3160
|
display: flex;
|
|
3161
3161
|
align-items: center;
|
|
@@ -3207,15 +3207,15 @@ Ot.styles = b`
|
|
|
3207
3207
|
}
|
|
3208
3208
|
}
|
|
3209
3209
|
`;
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
],
|
|
3213
|
-
var
|
|
3214
|
-
for (var i =
|
|
3215
|
-
(s = o[
|
|
3216
|
-
return
|
|
3210
|
+
It = No([
|
|
3211
|
+
x("o-dots")
|
|
3212
|
+
], It);
|
|
3213
|
+
var Ro = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, H = (o, t, e, r) => {
|
|
3214
|
+
for (var i = r > 1 ? void 0 : r ? Uo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3215
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3216
|
+
return r && i && Ro(t, e, i), i;
|
|
3217
3217
|
};
|
|
3218
|
-
let
|
|
3218
|
+
let A = class extends v {
|
|
3219
3219
|
constructor() {
|
|
3220
3220
|
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) => {
|
|
3221
3221
|
this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
|
|
@@ -3281,7 +3281,7 @@ let k = class extends v {
|
|
|
3281
3281
|
this.options.length > 0 && (this.options.some((t) => t.value === this.value) || (this.value = this.options[0].value));
|
|
3282
3282
|
}
|
|
3283
3283
|
render() {
|
|
3284
|
-
const o =
|
|
3284
|
+
const o = J.checkstroke.replace(
|
|
3285
3285
|
"<svg",
|
|
3286
3286
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
3287
3287
|
), t = this.options.find((e) => e.value === this.value);
|
|
@@ -3299,7 +3299,7 @@ let k = class extends v {
|
|
|
3299
3299
|
?disabled=${this.disabled}
|
|
3300
3300
|
class="btn-dropdown"
|
|
3301
3301
|
>
|
|
3302
|
-
<img alt="${
|
|
3302
|
+
<img alt="${C(t == null ? void 0 : t.label)}" src="${C(t == null ? void 0 : t.imgurl)}" />
|
|
3303
3303
|
<span id="dropdown-label" class="label">
|
|
3304
3304
|
${t ? t.label : "Select an option"}
|
|
3305
3305
|
</span>
|
|
@@ -3324,23 +3324,23 @@ let k = class extends v {
|
|
|
3324
3324
|
style=${`width: ${this.width};`}
|
|
3325
3325
|
>
|
|
3326
3326
|
${this.options.map(
|
|
3327
|
-
(e,
|
|
3327
|
+
(e, r) => l`
|
|
3328
3328
|
<li
|
|
3329
|
-
id="option-${
|
|
3329
|
+
id="option-${r}"
|
|
3330
3330
|
role="option"
|
|
3331
3331
|
aria-selected="${e.value === this.value}"
|
|
3332
3332
|
aria-disabled="${e.disabled ? "true" : "false"}"
|
|
3333
|
-
tabindex="${
|
|
3334
|
-
class="${
|
|
3333
|
+
tabindex="${r === this.activeIndex ? "0" : "-1"}"
|
|
3334
|
+
class="${r === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
|
|
3335
3335
|
@click=${() => this.selectOption(e)}
|
|
3336
3336
|
>
|
|
3337
|
-
<a href="${
|
|
3338
|
-
<img alt="${
|
|
3337
|
+
<a href="${C(e.url)}">
|
|
3338
|
+
<img alt="${C(e.label)}" src="${C(e.imgurl)}" />
|
|
3339
3339
|
<span class="label">${e.label}</span>
|
|
3340
3340
|
<div class="right">
|
|
3341
|
-
<span class="additional-text">${
|
|
3341
|
+
<span class="additional-text">${C(e.additionaltext)}</span>
|
|
3342
3342
|
${e.value === this.value && !e.additionaltext ? l`
|
|
3343
|
-
<span class="check">${
|
|
3343
|
+
<span class="check">${O(o)}</span>` : null}
|
|
3344
3344
|
</div>
|
|
3345
3345
|
</a>
|
|
3346
3346
|
</li>
|
|
@@ -3352,7 +3352,7 @@ let k = class extends v {
|
|
|
3352
3352
|
`;
|
|
3353
3353
|
}
|
|
3354
3354
|
};
|
|
3355
|
-
|
|
3355
|
+
A.styles = g`
|
|
3356
3356
|
:host {
|
|
3357
3357
|
display: inline-block;
|
|
3358
3358
|
position: relative;
|
|
@@ -3528,73 +3528,73 @@ k.styles = b`
|
|
|
3528
3528
|
display: none;
|
|
3529
3529
|
}
|
|
3530
3530
|
`;
|
|
3531
|
-
|
|
3531
|
+
H([
|
|
3532
3532
|
a({ type: Array, reflect: !0 })
|
|
3533
|
-
],
|
|
3534
|
-
|
|
3533
|
+
], A.prototype, "options", 2);
|
|
3534
|
+
H([
|
|
3535
3535
|
a({ type: String, reflect: !0 })
|
|
3536
|
-
],
|
|
3537
|
-
|
|
3536
|
+
], A.prototype, "value", 2);
|
|
3537
|
+
H([
|
|
3538
3538
|
a({ type: String, reflect: !0 })
|
|
3539
|
-
],
|
|
3540
|
-
|
|
3539
|
+
], A.prototype, "name", 2);
|
|
3540
|
+
H([
|
|
3541
3541
|
a({ type: String, reflect: !0 })
|
|
3542
|
-
],
|
|
3543
|
-
|
|
3542
|
+
], A.prototype, "additionaltext", 2);
|
|
3543
|
+
H([
|
|
3544
3544
|
a({ type: Boolean, reflect: !0 })
|
|
3545
|
-
],
|
|
3546
|
-
|
|
3545
|
+
], A.prototype, "disabled", 2);
|
|
3546
|
+
H([
|
|
3547
3547
|
a({ type: String, reflect: !0 })
|
|
3548
|
-
],
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
],
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
],
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
],
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
],
|
|
3548
|
+
], A.prototype, "width", 2);
|
|
3549
|
+
H([
|
|
3550
|
+
X()
|
|
3551
|
+
], A.prototype, "open", 2);
|
|
3552
|
+
H([
|
|
3553
|
+
X()
|
|
3554
|
+
], A.prototype, "activeIndex", 2);
|
|
3555
|
+
H([
|
|
3556
|
+
X()
|
|
3557
|
+
], A.prototype, "menuWidth", 2);
|
|
3558
|
+
A = H([
|
|
3559
|
+
x("o-dropdown-variant")
|
|
3560
|
+
], A);
|
|
3561
3561
|
/**
|
|
3562
3562
|
* @license
|
|
3563
3563
|
* Copyright 2018 Google LLC
|
|
3564
3564
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3565
3565
|
*/
|
|
3566
|
-
const pe = "important", Vo = " !" + pe, Zo =
|
|
3566
|
+
const pe = "important", Vo = " !" + pe, Zo = Ft(class extends Nt {
|
|
3567
3567
|
constructor(o) {
|
|
3568
3568
|
var t;
|
|
3569
|
-
if (super(o), o.type !==
|
|
3569
|
+
if (super(o), o.type !== jt.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.");
|
|
3570
3570
|
}
|
|
3571
3571
|
render(o) {
|
|
3572
3572
|
return Object.keys(o).reduce((t, e) => {
|
|
3573
|
-
const
|
|
3574
|
-
return
|
|
3573
|
+
const r = o[e];
|
|
3574
|
+
return r == null ? t : t + `${e = e.includes("-") ? e : e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${r};`;
|
|
3575
3575
|
}, "");
|
|
3576
3576
|
}
|
|
3577
3577
|
update(o, [t]) {
|
|
3578
3578
|
const { style: e } = o.element;
|
|
3579
3579
|
if (this.ft === void 0) return this.ft = new Set(Object.keys(t)), this.render(t);
|
|
3580
|
-
for (const
|
|
3581
|
-
for (const
|
|
3582
|
-
const i = t[
|
|
3580
|
+
for (const r of this.ft) t[r] == null && (this.ft.delete(r), r.includes("-") ? e.removeProperty(r) : e[r] = null);
|
|
3581
|
+
for (const r in t) {
|
|
3582
|
+
const i = t[r];
|
|
3583
3583
|
if (i != null) {
|
|
3584
|
-
this.ft.add(
|
|
3585
|
-
const
|
|
3586
|
-
|
|
3584
|
+
this.ft.add(r);
|
|
3585
|
+
const n = typeof i == "string" && i.endsWith(Vo);
|
|
3586
|
+
r.includes("-") || n ? e.setProperty(r, n ? i.slice(0, -11) : i, n ? pe : "") : e[r] = i;
|
|
3587
3587
|
}
|
|
3588
3588
|
}
|
|
3589
|
-
return
|
|
3589
|
+
return V;
|
|
3590
3590
|
}
|
|
3591
3591
|
});
|
|
3592
|
-
var qo = Object.defineProperty, Wo = Object.getOwnPropertyDescriptor,
|
|
3593
|
-
for (var i =
|
|
3594
|
-
(s = o[
|
|
3595
|
-
return
|
|
3592
|
+
var qo = Object.defineProperty, Wo = Object.getOwnPropertyDescriptor, Vt = (o, t, e, r) => {
|
|
3593
|
+
for (var i = r > 1 ? void 0 : r ? Wo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3594
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3595
|
+
return r && i && qo(t, e, i), i;
|
|
3596
3596
|
};
|
|
3597
|
-
let
|
|
3597
|
+
let pt = class extends v {
|
|
3598
3598
|
constructor() {
|
|
3599
3599
|
super(...arguments), this.option = {}, this.imageSize = 64;
|
|
3600
3600
|
}
|
|
@@ -3603,16 +3603,16 @@ let ht = class extends v {
|
|
|
3603
3603
|
width: `${this.imageSize}px`,
|
|
3604
3604
|
height: `${this.imageSize}px`
|
|
3605
3605
|
}, e = l`
|
|
3606
|
-
${this.option.imgurl ? l`<img src="${this.option.imgurl}" alt="${
|
|
3606
|
+
${this.option.imgurl ? l`<img src="${this.option.imgurl}" alt="${C(this.option.title)}" aria-hidden="true" style=${Zo(t)} />` : ""}
|
|
3607
3607
|
<div class="m-reassurance-content">
|
|
3608
|
-
<h3 class="a-reassurance-text">${
|
|
3609
|
-
<p class="a-reassurance-description">${
|
|
3608
|
+
<h3 class="a-reassurance-text">${C(this.option.title)}</h3>
|
|
3609
|
+
<p class="a-reassurance-description">${C(this.option.description)}</p>
|
|
3610
3610
|
</div>
|
|
3611
3611
|
`;
|
|
3612
|
-
return o ? l`<a href="${
|
|
3612
|
+
return o ? l`<a href="${C(this.option.url)}" class="reassurance-item clickable">${e}</a>` : l`<div class="reassurance-item">${e}</div>`;
|
|
3613
3613
|
}
|
|
3614
3614
|
};
|
|
3615
|
-
|
|
3615
|
+
pt.styles = g`
|
|
3616
3616
|
:host {
|
|
3617
3617
|
display: inline-block;
|
|
3618
3618
|
position: relative;
|
|
@@ -3694,22 +3694,22 @@ ht.styles = b`
|
|
|
3694
3694
|
}
|
|
3695
3695
|
}
|
|
3696
3696
|
`;
|
|
3697
|
-
|
|
3697
|
+
Vt([
|
|
3698
3698
|
a({ type: Object, reflect: !0 })
|
|
3699
|
-
],
|
|
3700
|
-
|
|
3699
|
+
], pt.prototype, "option", 2);
|
|
3700
|
+
Vt([
|
|
3701
3701
|
a({ type: Number, reflect: !0 })
|
|
3702
|
-
],
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
],
|
|
3706
|
-
var Ko = Object.defineProperty, Go = Object.getOwnPropertyDescriptor,
|
|
3707
|
-
for (var i =
|
|
3708
|
-
(s = o[
|
|
3709
|
-
return
|
|
3702
|
+
], pt.prototype, "imageSize", 2);
|
|
3703
|
+
pt = Vt([
|
|
3704
|
+
x("o-reassurance")
|
|
3705
|
+
], pt);
|
|
3706
|
+
var Ko = Object.defineProperty, Go = Object.getOwnPropertyDescriptor, F = (o, t, e, r) => {
|
|
3707
|
+
for (var i = r > 1 ? void 0 : r ? Go(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3708
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3709
|
+
return r && i && Ko(t, e, i), i;
|
|
3710
3710
|
};
|
|
3711
|
-
const Xo =
|
|
3712
|
-
let
|
|
3711
|
+
const Xo = Tt(v);
|
|
3712
|
+
let S = class extends Xo {
|
|
3713
3713
|
constructor() {
|
|
3714
3714
|
super(...arguments), this.link = "", this.name = "", this.value = "", this.text = "", this.size = "standard", this.selected = !1, this.fullwidth = !1, this.inactive = !1;
|
|
3715
3715
|
}
|
|
@@ -3732,7 +3732,7 @@ let A = class extends Xo {
|
|
|
3732
3732
|
`;
|
|
3733
3733
|
}
|
|
3734
3734
|
};
|
|
3735
|
-
|
|
3735
|
+
S.styles = g`
|
|
3736
3736
|
:host {
|
|
3737
3737
|
cursor: pointer;
|
|
3738
3738
|
display: inline-flex;
|
|
@@ -3808,7 +3808,7 @@ A.styles = b`
|
|
|
3808
3808
|
}
|
|
3809
3809
|
|
|
3810
3810
|
&:focus-visible {
|
|
3811
|
-
${
|
|
3811
|
+
${bt};
|
|
3812
3812
|
}
|
|
3813
3813
|
}
|
|
3814
3814
|
|
|
@@ -3822,44 +3822,44 @@ A.styles = b`
|
|
|
3822
3822
|
align-items: center;
|
|
3823
3823
|
}
|
|
3824
3824
|
`;
|
|
3825
|
-
|
|
3825
|
+
F([
|
|
3826
3826
|
a({ type: String, reflect: !0 })
|
|
3827
|
-
],
|
|
3828
|
-
|
|
3827
|
+
], S.prototype, "link", 2);
|
|
3828
|
+
F([
|
|
3829
3829
|
a({ reflect: !0 })
|
|
3830
|
-
],
|
|
3831
|
-
|
|
3830
|
+
], S.prototype, "name", 2);
|
|
3831
|
+
F([
|
|
3832
3832
|
a({ reflect: !0 })
|
|
3833
|
-
],
|
|
3834
|
-
|
|
3833
|
+
], S.prototype, "value", 2);
|
|
3834
|
+
F([
|
|
3835
3835
|
a({ type: String })
|
|
3836
|
-
],
|
|
3837
|
-
|
|
3836
|
+
], S.prototype, "text", 2);
|
|
3837
|
+
F([
|
|
3838
3838
|
a({ type: String, reflect: !0 })
|
|
3839
|
-
],
|
|
3840
|
-
|
|
3839
|
+
], S.prototype, "size", 2);
|
|
3840
|
+
F([
|
|
3841
3841
|
a({ type: Boolean, reflect: !0 })
|
|
3842
|
-
],
|
|
3843
|
-
|
|
3842
|
+
], S.prototype, "selected", 2);
|
|
3843
|
+
F([
|
|
3844
3844
|
a({ type: Boolean, reflect: !0 })
|
|
3845
|
-
],
|
|
3846
|
-
|
|
3845
|
+
], S.prototype, "fullwidth", 2);
|
|
3846
|
+
F([
|
|
3847
3847
|
a({ type: Boolean, reflect: !0 })
|
|
3848
|
-
],
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
],
|
|
3852
|
-
var Jo = Object.defineProperty, Qo = Object.getOwnPropertyDescriptor,
|
|
3853
|
-
for (var i =
|
|
3854
|
-
(s = o[
|
|
3855
|
-
return
|
|
3848
|
+
], S.prototype, "inactive", 2);
|
|
3849
|
+
S = F([
|
|
3850
|
+
x("o-chip")
|
|
3851
|
+
], S);
|
|
3852
|
+
var Jo = Object.defineProperty, Qo = Object.getOwnPropertyDescriptor, Zt = (o, t, e, r) => {
|
|
3853
|
+
for (var i = r > 1 ? void 0 : r ? Qo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3854
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3855
|
+
return r && i && Jo(t, e, i), i;
|
|
3856
3856
|
};
|
|
3857
|
-
let
|
|
3857
|
+
let ut = class extends v {
|
|
3858
3858
|
constructor() {
|
|
3859
3859
|
super(), this.name = "", this.value = "", this.addEventListener("selected", this.onChipSelected);
|
|
3860
3860
|
}
|
|
3861
3861
|
onChipSelected(o) {
|
|
3862
|
-
const t = o.target instanceof
|
|
3862
|
+
const t = o.target instanceof S ? o.target : null;
|
|
3863
3863
|
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) => {
|
|
3864
3864
|
e !== t && (e.selected = !1);
|
|
3865
3865
|
}));
|
|
@@ -3870,7 +3870,7 @@ let dt = class extends v {
|
|
|
3870
3870
|
`;
|
|
3871
3871
|
}
|
|
3872
3872
|
};
|
|
3873
|
-
|
|
3873
|
+
ut.styles = g`
|
|
3874
3874
|
:host {
|
|
3875
3875
|
display: flex;
|
|
3876
3876
|
flex-direction: row;
|
|
@@ -3878,21 +3878,21 @@ dt.styles = b`
|
|
|
3878
3878
|
gap: var(--spacing-s);
|
|
3879
3879
|
}
|
|
3880
3880
|
`;
|
|
3881
|
-
|
|
3881
|
+
Zt([
|
|
3882
3882
|
a({ reflect: !0 })
|
|
3883
|
-
],
|
|
3884
|
-
|
|
3883
|
+
], ut.prototype, "name", 2);
|
|
3884
|
+
Zt([
|
|
3885
3885
|
a({ reflect: !0 })
|
|
3886
|
-
],
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
],
|
|
3890
|
-
var Yo = Object.defineProperty, ti = Object.getOwnPropertyDescriptor,
|
|
3891
|
-
for (var i =
|
|
3892
|
-
(s = o[
|
|
3893
|
-
return
|
|
3886
|
+
], ut.prototype, "value", 2);
|
|
3887
|
+
ut = Zt([
|
|
3888
|
+
x("o-chipset")
|
|
3889
|
+
], ut);
|
|
3890
|
+
var Yo = Object.defineProperty, ti = Object.getOwnPropertyDescriptor, M = (o, t, e, r) => {
|
|
3891
|
+
for (var i = r > 1 ? void 0 : r ? ti(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3892
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3893
|
+
return r && i && Yo(t, e, i), i;
|
|
3894
3894
|
};
|
|
3895
|
-
const ei =
|
|
3895
|
+
const ei = Tt(v);
|
|
3896
3896
|
let E = class extends ei {
|
|
3897
3897
|
constructor() {
|
|
3898
3898
|
super(...arguments), this.name = "", this.value = "", this.type = "", this.text = "", this.selected = !1, this.disabled = !1, this.fullwidth = !1, this.crossIconName = "cross", this.strikethroughImgName = "strikeDiagonal";
|
|
@@ -3905,18 +3905,18 @@ let E = class extends ei {
|
|
|
3905
3905
|
this.dispatchEvent(e), e.defaultPrevented && o.preventDefault(), this.selected = t.selected;
|
|
3906
3906
|
}
|
|
3907
3907
|
crossIcon() {
|
|
3908
|
-
const o =
|
|
3908
|
+
const o = J[this.crossIconName].replace(
|
|
3909
3909
|
"<svg",
|
|
3910
3910
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
3911
3911
|
).replace(/stroke=[#"'a-z1-9]*/gi, "");
|
|
3912
|
-
return l`<span class="cross-icon">${
|
|
3912
|
+
return l`<span class="cross-icon">${O(o)}</span>`;
|
|
3913
3913
|
}
|
|
3914
3914
|
strikeThroughImg() {
|
|
3915
3915
|
const o = lo[this.strikethroughImgName].replace(
|
|
3916
3916
|
"<svg",
|
|
3917
3917
|
'<svg aria-hidden="true" focusable="false" part="strikethrough"'
|
|
3918
3918
|
).replace(/stroke=[#"'a-z1-9]*/gi, "");
|
|
3919
|
-
return
|
|
3919
|
+
return O(o);
|
|
3920
3920
|
}
|
|
3921
3921
|
render() {
|
|
3922
3922
|
const o = this.text;
|
|
@@ -3943,7 +3943,7 @@ let E = class extends ei {
|
|
|
3943
3943
|
`;
|
|
3944
3944
|
}
|
|
3945
3945
|
};
|
|
3946
|
-
E.styles =
|
|
3946
|
+
E.styles = g`
|
|
3947
3947
|
:host {
|
|
3948
3948
|
cursor: pointer;
|
|
3949
3949
|
display: inline-flex;
|
|
@@ -4023,7 +4023,7 @@ E.styles = b`
|
|
|
4023
4023
|
}
|
|
4024
4024
|
|
|
4025
4025
|
.button:focus-visible {
|
|
4026
|
-
${
|
|
4026
|
+
${bt};
|
|
4027
4027
|
}
|
|
4028
4028
|
|
|
4029
4029
|
span.text + span.text::before {
|
|
@@ -4069,39 +4069,39 @@ E.styles = b`
|
|
|
4069
4069
|
}
|
|
4070
4070
|
}
|
|
4071
4071
|
`;
|
|
4072
|
-
|
|
4072
|
+
M([
|
|
4073
4073
|
a({ reflect: !0 })
|
|
4074
4074
|
], E.prototype, "name", 2);
|
|
4075
|
-
|
|
4075
|
+
M([
|
|
4076
4076
|
a({ reflect: !0 })
|
|
4077
4077
|
], E.prototype, "value", 2);
|
|
4078
|
-
|
|
4078
|
+
M([
|
|
4079
4079
|
a({ type: String, reflect: !0 })
|
|
4080
4080
|
], E.prototype, "type", 2);
|
|
4081
|
-
|
|
4081
|
+
M([
|
|
4082
4082
|
a({ type: String, reflect: !0 })
|
|
4083
4083
|
], E.prototype, "href", 2);
|
|
4084
|
-
|
|
4084
|
+
M([
|
|
4085
4085
|
a({ type: String, reflect: !0, attribute: "data-href" })
|
|
4086
4086
|
], E.prototype, "dataHref", 2);
|
|
4087
|
-
|
|
4087
|
+
M([
|
|
4088
4088
|
a({ type: String })
|
|
4089
4089
|
], E.prototype, "text", 2);
|
|
4090
|
-
|
|
4090
|
+
M([
|
|
4091
4091
|
a({ type: Boolean, reflect: !0 })
|
|
4092
4092
|
], E.prototype, "selected", 2);
|
|
4093
|
-
|
|
4093
|
+
M([
|
|
4094
4094
|
a({ type: Boolean, reflect: !0 })
|
|
4095
4095
|
], E.prototype, "disabled", 2);
|
|
4096
|
-
|
|
4096
|
+
M([
|
|
4097
4097
|
a({ type: Boolean, reflect: !0 })
|
|
4098
4098
|
], E.prototype, "fullwidth", 2);
|
|
4099
|
-
E =
|
|
4100
|
-
|
|
4099
|
+
E = M([
|
|
4100
|
+
x("o-filter-chip")
|
|
4101
4101
|
], E);
|
|
4102
|
-
var oi = Object.defineProperty,
|
|
4103
|
-
for (var i = void 0,
|
|
4104
|
-
(s = o[
|
|
4102
|
+
var oi = Object.defineProperty, N = (o, t, e, r) => {
|
|
4103
|
+
for (var i = void 0, n = o.length - 1, s; n >= 0; n--)
|
|
4104
|
+
(s = o[n]) && (i = s(t, e, i) || i);
|
|
4105
4105
|
return i && oi(t, e, i), i;
|
|
4106
4106
|
};
|
|
4107
4107
|
const Wt = class Wt extends v {
|
|
@@ -4150,7 +4150,7 @@ const Wt = class Wt extends v {
|
|
|
4150
4150
|
`;
|
|
4151
4151
|
}
|
|
4152
4152
|
};
|
|
4153
|
-
Wt.styles =
|
|
4153
|
+
Wt.styles = g`
|
|
4154
4154
|
:host {
|
|
4155
4155
|
display: block;
|
|
4156
4156
|
max-width: 100%;
|
|
@@ -4238,41 +4238,41 @@ Wt.styles = b`
|
|
|
4238
4238
|
cursor: pointer;
|
|
4239
4239
|
}
|
|
4240
4240
|
`;
|
|
4241
|
-
let
|
|
4242
|
-
|
|
4241
|
+
let L = Wt;
|
|
4242
|
+
N([
|
|
4243
4243
|
a({ type: String })
|
|
4244
|
-
],
|
|
4245
|
-
|
|
4244
|
+
], L.prototype, "type");
|
|
4245
|
+
N([
|
|
4246
4246
|
a({ type: String })
|
|
4247
|
-
],
|
|
4248
|
-
|
|
4247
|
+
], L.prototype, "titleProduct");
|
|
4248
|
+
N([
|
|
4249
4249
|
a({ type: String })
|
|
4250
|
-
],
|
|
4251
|
-
|
|
4250
|
+
], L.prototype, "volume");
|
|
4251
|
+
N([
|
|
4252
4252
|
a({ type: String })
|
|
4253
|
-
],
|
|
4254
|
-
|
|
4253
|
+
], L.prototype, "perLiter");
|
|
4254
|
+
N([
|
|
4255
4255
|
a({ type: String })
|
|
4256
|
-
],
|
|
4257
|
-
|
|
4256
|
+
], L.prototype, "mainPrice");
|
|
4257
|
+
N([
|
|
4258
4258
|
a({ type: String })
|
|
4259
|
-
],
|
|
4260
|
-
|
|
4259
|
+
], L.prototype, "imageUrl");
|
|
4260
|
+
N([
|
|
4261
4261
|
a({ type: String })
|
|
4262
|
-
],
|
|
4263
|
-
|
|
4262
|
+
], L.prototype, "altImage");
|
|
4263
|
+
N([
|
|
4264
4264
|
a({ type: Boolean })
|
|
4265
|
-
],
|
|
4266
|
-
|
|
4265
|
+
], L.prototype, "fullwidth");
|
|
4266
|
+
N([
|
|
4267
4267
|
a({ type: Function })
|
|
4268
|
-
],
|
|
4269
|
-
customElements.define("mini-tile",
|
|
4270
|
-
var ii = Object.defineProperty,
|
|
4271
|
-
for (var i =
|
|
4272
|
-
(s = o[
|
|
4273
|
-
return
|
|
4268
|
+
], L.prototype, "onClickTile");
|
|
4269
|
+
customElements.define("mini-tile", L);
|
|
4270
|
+
var ii = Object.defineProperty, ri = Object.getOwnPropertyDescriptor, qt = (o, t, e, r) => {
|
|
4271
|
+
for (var i = r > 1 ? void 0 : r ? ri(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
4272
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
4273
|
+
return r && i && ii(t, e, i), i;
|
|
4274
4274
|
};
|
|
4275
|
-
let
|
|
4275
|
+
let vt = class extends v {
|
|
4276
4276
|
constructor() {
|
|
4277
4277
|
super(...arguments), this.variant = "cart", this.text = "";
|
|
4278
4278
|
}
|
|
@@ -4284,7 +4284,7 @@ let pt = class extends v {
|
|
|
4284
4284
|
`;
|
|
4285
4285
|
}
|
|
4286
4286
|
};
|
|
4287
|
-
|
|
4287
|
+
vt.styles = g`
|
|
4288
4288
|
:host([variant]) {
|
|
4289
4289
|
--badge-width: 19px;
|
|
4290
4290
|
display: inline-block;
|
|
@@ -4319,30 +4319,65 @@ pt.styles = b`
|
|
|
4319
4319
|
}
|
|
4320
4320
|
|
|
4321
4321
|
`;
|
|
4322
|
-
|
|
4322
|
+
qt([
|
|
4323
4323
|
a({ type: String, reflect: !0 })
|
|
4324
|
-
],
|
|
4325
|
-
|
|
4324
|
+
], vt.prototype, "variant", 2);
|
|
4325
|
+
qt([
|
|
4326
4326
|
a({ type: String })
|
|
4327
|
-
],
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
],
|
|
4331
|
-
var
|
|
4332
|
-
for (var i =
|
|
4333
|
-
(s = o[
|
|
4334
|
-
return
|
|
4327
|
+
], vt.prototype, "text", 2);
|
|
4328
|
+
vt = qt([
|
|
4329
|
+
x("o-badge")
|
|
4330
|
+
], vt);
|
|
4331
|
+
var ni = Object.defineProperty, si = Object.getOwnPropertyDescriptor, z = (o, t, e, r) => {
|
|
4332
|
+
for (var i = r > 1 ? void 0 : r ? si(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
4333
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
4334
|
+
return r && i && ni(t, e, i), i;
|
|
4335
4335
|
};
|
|
4336
|
-
let
|
|
4336
|
+
let $ = class extends v {
|
|
4337
4337
|
constructor() {
|
|
4338
|
-
super(...arguments), this.icon = "info", this.text = "Sample text";
|
|
4338
|
+
super(...arguments), this.icon = "info", this.text = "Sample text", this.verticalanchor = "top", this.horizontalanchor = "right", this.verticaloffset = 24, this.horizontaloffset = 24, this.animationduration = 500, this.animationaxis = "horizontal", this.animated = !0, this.lifeduration = 3e3;
|
|
4339
|
+
}
|
|
4340
|
+
attributeChangedCallback(o, t, e) {
|
|
4341
|
+
super.attributeChangedCallback(o, t, e), o == "verticaloffset" && this.style.setProperty("--vertical-offset", e + "px"), o == "horizontaloffset" && this.style.setProperty("--horizontal-offset", e + "px"), o == "animationduration" && this.style.setProperty("--animation-duration", e + "ms");
|
|
4342
|
+
}
|
|
4343
|
+
/**
|
|
4344
|
+
* Animate closing toast
|
|
4345
|
+
*/
|
|
4346
|
+
selfCloseAfterDelay() {
|
|
4347
|
+
var o = this;
|
|
4348
|
+
setTimeout(function() {
|
|
4349
|
+
o.animated = !0, o.selfClose();
|
|
4350
|
+
}, this.lifeduration);
|
|
4351
|
+
}
|
|
4352
|
+
/**
|
|
4353
|
+
*
|
|
4354
|
+
*/
|
|
4355
|
+
selfClose() {
|
|
4356
|
+
var o = this;
|
|
4357
|
+
setTimeout(function() {
|
|
4358
|
+
o.remove();
|
|
4359
|
+
}, this.animationduration + 200);
|
|
4360
|
+
}
|
|
4361
|
+
connectedCallback() {
|
|
4362
|
+
var o = this;
|
|
4363
|
+
super.connectedCallback(), setTimeout(() => {
|
|
4364
|
+
o.animated = !1, this.selfCloseAfterDelay();
|
|
4365
|
+
}, 300);
|
|
4366
|
+
}
|
|
4367
|
+
firstUpdated() {
|
|
4368
|
+
var e;
|
|
4369
|
+
var o = this;
|
|
4370
|
+
const t = (e = this.renderRoot) == null ? void 0 : e.querySelector("o-icon-button");
|
|
4371
|
+
t != null && t.addEventListener("click", function() {
|
|
4372
|
+
o.remove();
|
|
4373
|
+
});
|
|
4339
4374
|
}
|
|
4340
4375
|
render() {
|
|
4341
4376
|
const t = co[this.icon].replace("<svg", '<svg aria-hidden="true" focusable="false" part="svg"').replace(/<path\b/g, '<path part="icon-path"').replace(/<g\b/g, '<g part="icon-group"').replace(/<circle\b/g, '<circle part="icon-circle"');
|
|
4342
4377
|
return l`
|
|
4343
4378
|
<div class="o-toast">
|
|
4344
4379
|
<div class="o-toast-icon">
|
|
4345
|
-
${
|
|
4380
|
+
${O(t)}
|
|
4346
4381
|
</div>
|
|
4347
4382
|
<div class="o-toast-text">
|
|
4348
4383
|
${this.text}
|
|
@@ -4358,7 +4393,53 @@ let ut = class extends v {
|
|
|
4358
4393
|
`;
|
|
4359
4394
|
}
|
|
4360
4395
|
};
|
|
4361
|
-
|
|
4396
|
+
$.styles = g`
|
|
4397
|
+
:host {
|
|
4398
|
+
--vertical-offset: 24px;
|
|
4399
|
+
--horizontal-offset: 24px;
|
|
4400
|
+
--animation-duration: 500ms;
|
|
4401
|
+
position: fixed;
|
|
4402
|
+
z-index: 30;
|
|
4403
|
+
transition: all var(--animation-duration) ease-in-out;
|
|
4404
|
+
}
|
|
4405
|
+
|
|
4406
|
+
:host([verticalanchor="top"]) {
|
|
4407
|
+
top: var(--vertical-offset);
|
|
4408
|
+
}
|
|
4409
|
+
|
|
4410
|
+
:host([verticalanchor="bottom"]) {
|
|
4411
|
+
bottom: var(--vertical-offset);
|
|
4412
|
+
}
|
|
4413
|
+
|
|
4414
|
+
:host([horizontalanchor="right"]) {
|
|
4415
|
+
right: var(--horizontal-offset);
|
|
4416
|
+
}
|
|
4417
|
+
|
|
4418
|
+
:host([horizontalanchor="center"]) {
|
|
4419
|
+
left: 50%;
|
|
4420
|
+
transform: translateX(-50%);
|
|
4421
|
+
}
|
|
4422
|
+
|
|
4423
|
+
:host([horizontalanchor="left"]) {
|
|
4424
|
+
left: var(--horizontal-offset);
|
|
4425
|
+
}
|
|
4426
|
+
|
|
4427
|
+
:host([animated][animationaxis="horizontal"][horizontalanchor="right"]) {
|
|
4428
|
+
right: -300px;
|
|
4429
|
+
}
|
|
4430
|
+
|
|
4431
|
+
:host([animated][animationaxis="horizontal"][horizontalanchor="left"]) {
|
|
4432
|
+
left: -300px;
|
|
4433
|
+
}
|
|
4434
|
+
|
|
4435
|
+
:host([animated][animationaxis="vertical"][verticalanchor="top"]) {
|
|
4436
|
+
top: -300px;
|
|
4437
|
+
}
|
|
4438
|
+
|
|
4439
|
+
:host([animated][animationaxis="vertical"][verticalanchor="bottom"]) {
|
|
4440
|
+
bottom: -300px;
|
|
4441
|
+
}
|
|
4442
|
+
|
|
4362
4443
|
.o-toast {
|
|
4363
4444
|
background: #fffefe;
|
|
4364
4445
|
padding: var(--spacing-l);
|
|
@@ -4379,12 +4460,36 @@ ut.styles = b`
|
|
|
4379
4460
|
height: 16px;
|
|
4380
4461
|
}
|
|
4381
4462
|
`;
|
|
4382
|
-
|
|
4383
|
-
a({ type: String })
|
|
4384
|
-
],
|
|
4385
|
-
|
|
4386
|
-
a({ type: String })
|
|
4387
|
-
],
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
],
|
|
4463
|
+
z([
|
|
4464
|
+
a({ type: String, reflect: !0 })
|
|
4465
|
+
], $.prototype, "icon", 2);
|
|
4466
|
+
z([
|
|
4467
|
+
a({ type: String, reflect: !0 })
|
|
4468
|
+
], $.prototype, "text", 2);
|
|
4469
|
+
z([
|
|
4470
|
+
a({ type: String, reflect: !0 })
|
|
4471
|
+
], $.prototype, "verticalanchor", 2);
|
|
4472
|
+
z([
|
|
4473
|
+
a({ type: String, reflect: !0 })
|
|
4474
|
+
], $.prototype, "horizontalanchor", 2);
|
|
4475
|
+
z([
|
|
4476
|
+
a({ type: Number, reflect: !0 })
|
|
4477
|
+
], $.prototype, "verticaloffset", 2);
|
|
4478
|
+
z([
|
|
4479
|
+
a({ type: Number, reflect: !0 })
|
|
4480
|
+
], $.prototype, "horizontaloffset", 2);
|
|
4481
|
+
z([
|
|
4482
|
+
a({ type: Number, reflect: !0 })
|
|
4483
|
+
], $.prototype, "animationduration", 2);
|
|
4484
|
+
z([
|
|
4485
|
+
a({ type: String, reflect: !0 })
|
|
4486
|
+
], $.prototype, "animationaxis", 2);
|
|
4487
|
+
z([
|
|
4488
|
+
a({ type: Boolean, reflect: !0 })
|
|
4489
|
+
], $.prototype, "animated", 2);
|
|
4490
|
+
z([
|
|
4491
|
+
a({ type: Number, reflect: !0 })
|
|
4492
|
+
], $.prototype, "lifeduration", 2);
|
|
4493
|
+
$ = z([
|
|
4494
|
+
x("o-toast")
|
|
4495
|
+
], $);
|