@florid-kit/components 0.8.63 → 0.8.65
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 +139 -90
- package/index.mjs +799 -690
- 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,
|
|
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, Ce = (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, _e = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), l = _e(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, C = 0;
|
|
298
|
+
for (; C < c.length && (s.lastIndex = C, m = s.exec(c), m !== null); ) C = 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 C = m[s++], P = i.getAttribute(p).split(R), gt = /([.?@])?(.*)/.exec(C);
|
|
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), C = p.length - 1;
|
|
322
|
+
if (C > 0) {
|
|
323
|
+
i.textContent = xt ? xt.emptyScript : "";
|
|
324
|
+
for (let P = 0; P < C; P++) i.append(p[P], at()), W.nextNode(), c.push({ type: 2, index: ++n });
|
|
325
|
+
i.append(p[C], 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) : Ce(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,10 @@ 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
|
+
`, lo = `<svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
755
|
+
<path d="M16.0003 10.1648C16.0003 13.2904 13.4583 15.8332 10.3336 15.8332H7.00026C6.81617 15.8332 6.66693 15.6839 6.66693 15.4997C6.66693 15.3156 6.81617 15.1663 7.00026 15.1663H10.3336C13.0909 15.1663 15.3336 12.923 15.3336 10.1648C15.3336 7.40663 13.0909 5.16328 10.3336 5.16328H1.13826L3.90226 7.92812C4.0326 8.05831 4.03275 8.26955 3.9026 8.39993C3.77244 8.5303 3.56127 8.53045 3.43093 8.40026L0.0975955 5.06592C-0.0325318 4.93571 -0.0325318 4.72465 0.0975955 4.59444L3.43093 1.2601C3.56172 1.13374 3.76962 1.13555 3.8982 1.26416C4.02678 1.39278 4.02859 1.60075 3.90226 1.73158L1.13826 4.49641H10.3336C13.4583 4.49641 16.0003 7.03918 16.0003 10.1648Z" fill="#001022"/>
|
|
756
|
+
</svg>
|
|
757
|
+
`, J = {
|
|
755
758
|
wishlist: De,
|
|
756
759
|
playerv: He,
|
|
757
760
|
chevronRight: Me,
|
|
@@ -760,9 +763,9 @@ const De = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
760
763
|
icoMinus: We,
|
|
761
764
|
"star-0": je,
|
|
762
765
|
"star-25": Fe,
|
|
763
|
-
"star-50":
|
|
764
|
-
"star-75":
|
|
765
|
-
"star-100":
|
|
766
|
+
"star-50": Ne,
|
|
767
|
+
"star-75": Re,
|
|
768
|
+
"star-100": Ue,
|
|
766
769
|
cross: Ve,
|
|
767
770
|
search: Ze,
|
|
768
771
|
arrowLeft: Ke,
|
|
@@ -774,11 +777,12 @@ const De = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
774
777
|
checkstroke: to,
|
|
775
778
|
pause: eo,
|
|
776
779
|
mapDualArrow: oo,
|
|
777
|
-
swipeDualArrow:
|
|
778
|
-
|
|
779
|
-
strikeDiagonal: io
|
|
780
|
+
swipeDualArrow: ro,
|
|
781
|
+
backtobag: lo
|
|
780
782
|
}, co = {
|
|
781
|
-
|
|
783
|
+
strikeDiagonal: io
|
|
784
|
+
}, ho = {
|
|
785
|
+
success: no,
|
|
782
786
|
error: so,
|
|
783
787
|
info: ao
|
|
784
788
|
};
|
|
@@ -787,15 +791,15 @@ const De = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
787
791
|
* Copyright 2017 Google LLC
|
|
788
792
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
789
793
|
*/
|
|
790
|
-
const
|
|
791
|
-
let
|
|
794
|
+
const jt = { ATTRIBUTE: 1, CHILD: 2 }, Ft = (o) => (...t) => ({ _$litDirective$: o, values: t });
|
|
795
|
+
let Nt = class {
|
|
792
796
|
constructor(t) {
|
|
793
797
|
}
|
|
794
798
|
get _$AU() {
|
|
795
799
|
return this._$AM._$AU;
|
|
796
800
|
}
|
|
797
|
-
_$AT(t, e,
|
|
798
|
-
this._$Ct = t, this._$AM = e, this._$Ci =
|
|
801
|
+
_$AT(t, e, r) {
|
|
802
|
+
this._$Ct = t, this._$AM = e, this._$Ci = r;
|
|
799
803
|
}
|
|
800
804
|
_$AS(t, e) {
|
|
801
805
|
return this.update(t, e);
|
|
@@ -809,13 +813,13 @@ let Ft = class {
|
|
|
809
813
|
* Copyright 2017 Google LLC
|
|
810
814
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
811
815
|
*/
|
|
812
|
-
class
|
|
816
|
+
class Pt extends Nt {
|
|
813
817
|
constructor(t) {
|
|
814
|
-
if (super(t), this.it = d, t.type !==
|
|
818
|
+
if (super(t), this.it = d, t.type !== jt.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
815
819
|
}
|
|
816
820
|
render(t) {
|
|
817
821
|
if (t === d || t == null) return this._t = void 0, this.it = t;
|
|
818
|
-
if (t ===
|
|
822
|
+
if (t === V) return t;
|
|
819
823
|
if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
820
824
|
if (t === this.it) return this._t;
|
|
821
825
|
this.it = t;
|
|
@@ -823,23 +827,23 @@ class Lt extends Ft {
|
|
|
823
827
|
return e.raw = e, this._t = { _$litType$: this.constructor.resultType, strings: e, values: [] };
|
|
824
828
|
}
|
|
825
829
|
}
|
|
826
|
-
|
|
830
|
+
Pt.directiveName = "unsafeHTML", Pt.resultType = 1;
|
|
827
831
|
/**
|
|
828
832
|
* @license
|
|
829
833
|
* Copyright 2017 Google LLC
|
|
830
834
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
831
835
|
*/
|
|
832
|
-
class
|
|
836
|
+
class Ot extends Pt {
|
|
833
837
|
}
|
|
834
|
-
|
|
835
|
-
const
|
|
836
|
-
var
|
|
837
|
-
for (var i =
|
|
838
|
-
(s = o[
|
|
839
|
-
return
|
|
838
|
+
Ot.directiveName = "unsafeSVG", Ot.resultType = 2;
|
|
839
|
+
const O = Ft(Ot);
|
|
840
|
+
var po = Object.defineProperty, uo = Object.getOwnPropertyDescriptor, w = (o, t, e, r) => {
|
|
841
|
+
for (var i = r > 1 ? void 0 : r ? uo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
842
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
843
|
+
return r && i && po(t, e, i), i;
|
|
840
844
|
};
|
|
841
|
-
const
|
|
842
|
-
let
|
|
845
|
+
const vo = Tt(v);
|
|
846
|
+
let b = class extends vo {
|
|
843
847
|
constructor() {
|
|
844
848
|
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
849
|
}
|
|
@@ -850,7 +854,7 @@ let g = class extends uo {
|
|
|
850
854
|
this.setAttribute("name", o);
|
|
851
855
|
}
|
|
852
856
|
get form() {
|
|
853
|
-
return this[
|
|
857
|
+
return this[Mt].form;
|
|
854
858
|
}
|
|
855
859
|
handleClick(o) {
|
|
856
860
|
if (!(o instanceof KeyboardEvent && !["Enter", " "].includes(o.key)) && this.panelTarget) {
|
|
@@ -864,11 +868,11 @@ let g = class extends uo {
|
|
|
864
868
|
renderIcon(o) {
|
|
865
869
|
const t = o === "start" ? this.startIconModel : this.endIconModel;
|
|
866
870
|
if (!t) return d;
|
|
867
|
-
const e =
|
|
871
|
+
const e = J[t].replace(
|
|
868
872
|
"<svg",
|
|
869
873
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
870
874
|
);
|
|
871
|
-
return l`<span class="${o === "start" ? "icon-start" : "icon-end"}">${
|
|
875
|
+
return l`<span class="${o === "start" ? "icon-start" : "icon-end"}">${O(e)}</span>`;
|
|
872
876
|
}
|
|
873
877
|
renderButton() {
|
|
874
878
|
const o = this.text || this.textsecond;
|
|
@@ -903,9 +907,9 @@ let g = class extends uo {
|
|
|
903
907
|
`;
|
|
904
908
|
}
|
|
905
909
|
};
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
910
|
+
Be(b);
|
|
911
|
+
b.formAssociated = !0;
|
|
912
|
+
b.styles = g`
|
|
909
913
|
:host {
|
|
910
914
|
--button-border: transparent;
|
|
911
915
|
--badge-outer-width: 19px;
|
|
@@ -1022,7 +1026,7 @@ g.styles = b`
|
|
|
1022
1026
|
}
|
|
1023
1027
|
|
|
1024
1028
|
.button:focus-visible {
|
|
1025
|
-
${
|
|
1029
|
+
${bt};
|
|
1026
1030
|
}
|
|
1027
1031
|
|
|
1028
1032
|
span.text + span.text::before {
|
|
@@ -1107,63 +1111,63 @@ g.styles = b`
|
|
|
1107
1111
|
}
|
|
1108
1112
|
//End icon movment on hover
|
|
1109
1113
|
`;
|
|
1110
|
-
|
|
1114
|
+
w([
|
|
1111
1115
|
a()
|
|
1112
|
-
],
|
|
1113
|
-
|
|
1116
|
+
], b.prototype, "type", 2);
|
|
1117
|
+
w([
|
|
1114
1118
|
a({ reflect: !0 })
|
|
1115
|
-
],
|
|
1116
|
-
|
|
1119
|
+
], b.prototype, "value", 2);
|
|
1120
|
+
w([
|
|
1117
1121
|
a({ type: String, reflect: !0 })
|
|
1118
|
-
],
|
|
1119
|
-
|
|
1122
|
+
], b.prototype, "variant", 2);
|
|
1123
|
+
w([
|
|
1120
1124
|
a({ type: String })
|
|
1121
|
-
],
|
|
1122
|
-
|
|
1125
|
+
], b.prototype, "text", 2);
|
|
1126
|
+
w([
|
|
1123
1127
|
a({ type: String })
|
|
1124
|
-
],
|
|
1125
|
-
|
|
1128
|
+
], b.prototype, "textsecond", 2);
|
|
1129
|
+
w([
|
|
1126
1130
|
a({ type: Boolean, reflect: !0 })
|
|
1127
|
-
],
|
|
1128
|
-
|
|
1131
|
+
], b.prototype, "fullwidth", 2);
|
|
1132
|
+
w([
|
|
1129
1133
|
a({ type: Boolean, reflect: !0 })
|
|
1130
|
-
],
|
|
1131
|
-
|
|
1134
|
+
], b.prototype, "disabled", 2);
|
|
1135
|
+
w([
|
|
1132
1136
|
a({ type: String, reflect: !0 })
|
|
1133
|
-
],
|
|
1134
|
-
|
|
1137
|
+
], b.prototype, "startIconModel", 2);
|
|
1138
|
+
w([
|
|
1135
1139
|
a({ type: String, reflect: !0 })
|
|
1136
|
-
],
|
|
1137
|
-
|
|
1140
|
+
], b.prototype, "endIconModel", 2);
|
|
1141
|
+
w([
|
|
1138
1142
|
a({ type: Boolean, reflect: !0, attribute: "starticon" })
|
|
1139
|
-
],
|
|
1140
|
-
|
|
1143
|
+
], b.prototype, "startIcon", 2);
|
|
1144
|
+
w([
|
|
1141
1145
|
a({ type: Boolean, reflect: !0, attribute: "endicon" })
|
|
1142
|
-
],
|
|
1143
|
-
|
|
1146
|
+
], b.prototype, "endIcon", 2);
|
|
1147
|
+
w([
|
|
1144
1148
|
a({ type: String, attribute: "paneltarget", reflect: !0 })
|
|
1145
|
-
],
|
|
1146
|
-
|
|
1149
|
+
], b.prototype, "panelTarget", 2);
|
|
1150
|
+
w([
|
|
1147
1151
|
a({ type: String })
|
|
1148
|
-
],
|
|
1149
|
-
|
|
1152
|
+
], b.prototype, "href", 2);
|
|
1153
|
+
w([
|
|
1150
1154
|
a({ type: String })
|
|
1151
|
-
],
|
|
1152
|
-
|
|
1155
|
+
], b.prototype, "target", 2);
|
|
1156
|
+
w([
|
|
1153
1157
|
a({ type: Boolean, reflect: !0 })
|
|
1154
|
-
],
|
|
1155
|
-
|
|
1158
|
+
], b.prototype, "underlined", 2);
|
|
1159
|
+
w([
|
|
1156
1160
|
a({ type: Boolean, reflect: !0 })
|
|
1157
|
-
],
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
],
|
|
1161
|
-
var
|
|
1162
|
-
for (var i =
|
|
1163
|
-
(s = o[
|
|
1164
|
-
return
|
|
1161
|
+
], b.prototype, "withbadge", 2);
|
|
1162
|
+
b = w([
|
|
1163
|
+
x("o-button")
|
|
1164
|
+
], b);
|
|
1165
|
+
var fo = Object.defineProperty, bo = Object.getOwnPropertyDescriptor, Ct = (o, t, e, r) => {
|
|
1166
|
+
for (var i = r > 1 ? void 0 : r ? bo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
1167
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
1168
|
+
return r && i && fo(t, e, i), i;
|
|
1165
1169
|
};
|
|
1166
|
-
let
|
|
1170
|
+
let et = class extends v {
|
|
1167
1171
|
constructor() {
|
|
1168
1172
|
super(...arguments), this.status = "empty", this.ariaDescribedBy = "a-product-name", this.label = "Add to wishlist", this.toggleStatus = () => {
|
|
1169
1173
|
this.status = this.status === "empty" ? "filled" : "empty", this.setAttribute("aria-pressed", String(this.status === "filled")), this.dispatchEvent(new CustomEvent("wishlist-toggle", {
|
|
@@ -1183,14 +1187,14 @@ let Y = class extends v {
|
|
|
1183
1187
|
(o.key === "Enter" || o.key === " ") && (o.preventDefault(), this.toggleStatus());
|
|
1184
1188
|
}
|
|
1185
1189
|
render() {
|
|
1186
|
-
const o =
|
|
1190
|
+
const o = J.wishlist.replace(
|
|
1187
1191
|
"<svg",
|
|
1188
1192
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
1189
1193
|
);
|
|
1190
1194
|
return l`
|
|
1191
1195
|
<button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
|
|
1192
1196
|
<span class="sr-only">${this.label}</span>
|
|
1193
|
-
${
|
|
1197
|
+
${O(o)}
|
|
1194
1198
|
</button>
|
|
1195
1199
|
`;
|
|
1196
1200
|
}
|
|
@@ -1204,7 +1208,7 @@ let Y = class extends v {
|
|
|
1204
1208
|
this.label = o, this.requestUpdate();
|
|
1205
1209
|
}
|
|
1206
1210
|
};
|
|
1207
|
-
|
|
1211
|
+
et.styles = g`
|
|
1208
1212
|
:host {
|
|
1209
1213
|
display: inline-flex;
|
|
1210
1214
|
justify-content: center;
|
|
@@ -1270,30 +1274,30 @@ Y.styles = b`
|
|
|
1270
1274
|
white-space: nowrap !important;
|
|
1271
1275
|
}
|
|
1272
1276
|
`;
|
|
1273
|
-
|
|
1277
|
+
Ct([
|
|
1274
1278
|
a({ type: String, reflect: !0 })
|
|
1275
|
-
],
|
|
1276
|
-
|
|
1279
|
+
], et.prototype, "status", 2);
|
|
1280
|
+
Ct([
|
|
1277
1281
|
a({ type: String, reflect: !0 })
|
|
1278
|
-
],
|
|
1279
|
-
|
|
1282
|
+
], et.prototype, "ariaDescribedBy", 2);
|
|
1283
|
+
Ct([
|
|
1280
1284
|
a({ type: String, reflect: !0 })
|
|
1281
|
-
],
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
],
|
|
1285
|
+
], et.prototype, "label", 2);
|
|
1286
|
+
et = Ct([
|
|
1287
|
+
x("o-wishlist-button")
|
|
1288
|
+
], et);
|
|
1285
1289
|
/**
|
|
1286
1290
|
* @license
|
|
1287
1291
|
* Copyright 2018 Google LLC
|
|
1288
1292
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1289
1293
|
*/
|
|
1290
1294
|
const _ = (o) => o ?? d;
|
|
1291
|
-
var go = Object.defineProperty,
|
|
1292
|
-
for (var i =
|
|
1293
|
-
(s = o[
|
|
1294
|
-
return
|
|
1295
|
+
var go = Object.defineProperty, yo = Object.getOwnPropertyDescriptor, D = (o, t, e, r) => {
|
|
1296
|
+
for (var i = r > 1 ? void 0 : r ? yo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
1297
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
1298
|
+
return r && i && go(t, e, i), i;
|
|
1295
1299
|
};
|
|
1296
|
-
let
|
|
1300
|
+
let k = class extends v {
|
|
1297
1301
|
constructor() {
|
|
1298
1302
|
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
1303
|
}
|
|
@@ -1301,11 +1305,11 @@ let C = class extends v {
|
|
|
1301
1305
|
super.updated(o), this.style.setProperty("--icon-stroke-width", this.strokewidth);
|
|
1302
1306
|
}
|
|
1303
1307
|
render() {
|
|
1304
|
-
const o =
|
|
1308
|
+
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
1309
|
return l`
|
|
1306
1310
|
${this.type === "span" ? l`
|
|
1307
1311
|
<span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
|
|
1308
|
-
${
|
|
1312
|
+
${O(e)}
|
|
1309
1313
|
</span>
|
|
1310
1314
|
` : l`
|
|
1311
1315
|
<button
|
|
@@ -1314,14 +1318,14 @@ let C = class extends v {
|
|
|
1314
1318
|
class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}"
|
|
1315
1319
|
?disabled="${this.disabled}"
|
|
1316
1320
|
>
|
|
1317
|
-
${
|
|
1318
|
-
${
|
|
1321
|
+
${O(e)}
|
|
1322
|
+
${r}
|
|
1319
1323
|
</button>
|
|
1320
1324
|
`}
|
|
1321
1325
|
`;
|
|
1322
1326
|
}
|
|
1323
1327
|
};
|
|
1324
|
-
|
|
1328
|
+
k.styles = g`
|
|
1325
1329
|
:host {
|
|
1326
1330
|
display: inline-flex;
|
|
1327
1331
|
justify-content: center;
|
|
@@ -1526,49 +1530,49 @@ C.styles = b`
|
|
|
1526
1530
|
}
|
|
1527
1531
|
|
|
1528
1532
|
.icon-button:focus-visible {
|
|
1529
|
-
${
|
|
1533
|
+
${bt}
|
|
1530
1534
|
}
|
|
1531
1535
|
|
|
1532
1536
|
.sr-only {
|
|
1533
1537
|
display: none;
|
|
1534
1538
|
}
|
|
1535
1539
|
`;
|
|
1536
|
-
|
|
1540
|
+
D([
|
|
1537
1541
|
a({ type: String, reflect: !0 })
|
|
1538
|
-
],
|
|
1539
|
-
|
|
1542
|
+
], k.prototype, "bgstyle", 2);
|
|
1543
|
+
D([
|
|
1540
1544
|
a({ type: String, reflect: !0 })
|
|
1541
|
-
],
|
|
1542
|
-
|
|
1545
|
+
], k.prototype, "size", 2);
|
|
1546
|
+
D([
|
|
1543
1547
|
a({ type: String, reflect: !0 })
|
|
1544
|
-
],
|
|
1545
|
-
|
|
1548
|
+
], k.prototype, "status", 2);
|
|
1549
|
+
D([
|
|
1546
1550
|
a({ type: String, reflect: !0 })
|
|
1547
|
-
],
|
|
1548
|
-
|
|
1551
|
+
], k.prototype, "type", 2);
|
|
1552
|
+
D([
|
|
1549
1553
|
a({ type: String })
|
|
1550
|
-
],
|
|
1551
|
-
|
|
1554
|
+
], k.prototype, "strokewidth", 2);
|
|
1555
|
+
D([
|
|
1552
1556
|
a({ type: String })
|
|
1553
|
-
],
|
|
1554
|
-
|
|
1557
|
+
], k.prototype, "icon", 2);
|
|
1558
|
+
D([
|
|
1555
1559
|
a({ type: Boolean, reflect: !0 })
|
|
1556
|
-
],
|
|
1557
|
-
|
|
1560
|
+
], k.prototype, "disabled", 2);
|
|
1561
|
+
D([
|
|
1558
1562
|
a({ type: Boolean })
|
|
1559
|
-
],
|
|
1560
|
-
|
|
1563
|
+
], k.prototype, "showSrLabel", 2);
|
|
1564
|
+
D([
|
|
1561
1565
|
a({ type: String })
|
|
1562
|
-
],
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
],
|
|
1566
|
-
var
|
|
1567
|
-
for (var i =
|
|
1568
|
-
(s = o[
|
|
1569
|
-
return
|
|
1566
|
+
], k.prototype, "srLabel", 2);
|
|
1567
|
+
k = D([
|
|
1568
|
+
x("o-icon-button")
|
|
1569
|
+
], k);
|
|
1570
|
+
var mo = Object.defineProperty, xo = Object.getOwnPropertyDescriptor, Q = (o, t, e, r) => {
|
|
1571
|
+
for (var i = r > 1 ? void 0 : r ? xo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
1572
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
1573
|
+
return r && i && mo(t, e, i), i;
|
|
1570
1574
|
};
|
|
1571
|
-
let
|
|
1575
|
+
let T = class extends v {
|
|
1572
1576
|
constructor() {
|
|
1573
1577
|
super(...arguments), this.href = "", this.target = "", this.template = "standard", this.inverse = !1, this.endIcon = !1, this.reverseEndIcon = !1;
|
|
1574
1578
|
}
|
|
@@ -1606,7 +1610,7 @@ let H = class extends v {
|
|
|
1606
1610
|
`;
|
|
1607
1611
|
}
|
|
1608
1612
|
};
|
|
1609
|
-
|
|
1613
|
+
T.styles = g`
|
|
1610
1614
|
:host([template="standard"]) a {
|
|
1611
1615
|
color: var(--color-content-action-secondary);
|
|
1612
1616
|
font-size: var(--font-size-200);
|
|
@@ -1694,33 +1698,33 @@ H.styles = b`
|
|
|
1694
1698
|
}
|
|
1695
1699
|
/* End of underline effect */
|
|
1696
1700
|
`;
|
|
1697
|
-
|
|
1701
|
+
Q([
|
|
1698
1702
|
a({ type: String })
|
|
1699
|
-
],
|
|
1700
|
-
|
|
1703
|
+
], T.prototype, "href", 2);
|
|
1704
|
+
Q([
|
|
1701
1705
|
a({ type: String })
|
|
1702
|
-
],
|
|
1703
|
-
|
|
1706
|
+
], T.prototype, "target", 2);
|
|
1707
|
+
Q([
|
|
1704
1708
|
a({ type: String, reflect: !0 })
|
|
1705
|
-
],
|
|
1706
|
-
|
|
1709
|
+
], T.prototype, "template", 2);
|
|
1710
|
+
Q([
|
|
1707
1711
|
a({ type: Boolean, reflect: !0 })
|
|
1708
|
-
],
|
|
1709
|
-
|
|
1712
|
+
], T.prototype, "inverse", 2);
|
|
1713
|
+
Q([
|
|
1710
1714
|
a({ type: Boolean, reflect: !0 })
|
|
1711
|
-
],
|
|
1712
|
-
|
|
1715
|
+
], T.prototype, "endIcon", 2);
|
|
1716
|
+
Q([
|
|
1713
1717
|
a({ type: Boolean, reflect: !0 })
|
|
1714
|
-
],
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
],
|
|
1718
|
-
var wo = Object.defineProperty,
|
|
1719
|
-
for (var i =
|
|
1720
|
-
(s = o[
|
|
1721
|
-
return
|
|
1718
|
+
], T.prototype, "reverseEndIcon", 2);
|
|
1719
|
+
T = Q([
|
|
1720
|
+
x("o-link")
|
|
1721
|
+
], T);
|
|
1722
|
+
var wo = Object.defineProperty, $o = Object.getOwnPropertyDescriptor, _t = (o, t, e, r) => {
|
|
1723
|
+
for (var i = r > 1 ? void 0 : r ? $o(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
1724
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
1725
|
+
return r && i && wo(t, e, i), i;
|
|
1722
1726
|
};
|
|
1723
|
-
let
|
|
1727
|
+
let ot = class extends v {
|
|
1724
1728
|
constructor() {
|
|
1725
1729
|
super(...arguments), this.rating = 0;
|
|
1726
1730
|
}
|
|
@@ -1728,8 +1732,8 @@ let tt = class extends v {
|
|
|
1728
1732
|
const o = [];
|
|
1729
1733
|
for (let t = 0; t < 5; t++) {
|
|
1730
1734
|
const e = this.rating - t;
|
|
1731
|
-
let
|
|
1732
|
-
e >= 1 ?
|
|
1735
|
+
let r;
|
|
1736
|
+
e >= 1 ? r = 100 : e <= 0 ? r = 0 : r = Math.round(e * 100 / 25) * 25, o.push(`star-${r}`);
|
|
1733
1737
|
}
|
|
1734
1738
|
return o;
|
|
1735
1739
|
}
|
|
@@ -1739,7 +1743,7 @@ let tt = class extends v {
|
|
|
1739
1743
|
<div class="rating">
|
|
1740
1744
|
<div class="stars">
|
|
1741
1745
|
${o.map(
|
|
1742
|
-
(t) => l`<span class="star">${
|
|
1746
|
+
(t) => l`<span class="star">${O(J[t] ?? "")}</span>`
|
|
1743
1747
|
)}
|
|
1744
1748
|
</div>
|
|
1745
1749
|
${this.reviewCount != null && this.href != null ? l`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>` : null}
|
|
@@ -1747,7 +1751,7 @@ let tt = class extends v {
|
|
|
1747
1751
|
`;
|
|
1748
1752
|
}
|
|
1749
1753
|
};
|
|
1750
|
-
|
|
1754
|
+
ot.styles = g`
|
|
1751
1755
|
svg {
|
|
1752
1756
|
width: 12px;
|
|
1753
1757
|
height: 12px;
|
|
@@ -1783,32 +1787,32 @@ tt.styles = b`
|
|
|
1783
1787
|
`;
|
|
1784
1788
|
_t([
|
|
1785
1789
|
a({ type: Number })
|
|
1786
|
-
],
|
|
1790
|
+
], ot.prototype, "rating", 2);
|
|
1787
1791
|
_t([
|
|
1788
1792
|
a({ type: String })
|
|
1789
|
-
],
|
|
1793
|
+
], ot.prototype, "reviewCount", 2);
|
|
1790
1794
|
_t([
|
|
1791
1795
|
a({ type: String })
|
|
1792
|
-
],
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
],
|
|
1796
|
+
], ot.prototype, "href", 2);
|
|
1797
|
+
ot = _t([
|
|
1798
|
+
x("o-rating")
|
|
1799
|
+
], ot);
|
|
1796
1800
|
/**
|
|
1797
1801
|
* @license
|
|
1798
1802
|
* Copyright 2020 Google LLC
|
|
1799
1803
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1800
1804
|
*/
|
|
1801
|
-
const
|
|
1805
|
+
const Co = (o) => o.strings === void 0;
|
|
1802
1806
|
/**
|
|
1803
1807
|
* @license
|
|
1804
1808
|
* Copyright 2017 Google LLC
|
|
1805
1809
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1806
1810
|
*/
|
|
1807
|
-
const
|
|
1808
|
-
var
|
|
1811
|
+
const st = (o, t) => {
|
|
1812
|
+
var r;
|
|
1809
1813
|
const e = o._$AN;
|
|
1810
1814
|
if (e === void 0) return !1;
|
|
1811
|
-
for (const i of e) (
|
|
1815
|
+
for (const i of e) (r = i._$AO) == null || r.call(i, t, !1), st(i, t);
|
|
1812
1816
|
return !0;
|
|
1813
1817
|
}, wt = (o) => {
|
|
1814
1818
|
let t, e;
|
|
@@ -1821,34 +1825,34 @@ const nt = (o, t) => {
|
|
|
1821
1825
|
let e = t._$AN;
|
|
1822
1826
|
if (e === void 0) t._$AN = e = /* @__PURE__ */ new Set();
|
|
1823
1827
|
else if (e.has(o)) break;
|
|
1824
|
-
e.add(o),
|
|
1828
|
+
e.add(o), Ao(t);
|
|
1825
1829
|
}
|
|
1826
1830
|
};
|
|
1827
1831
|
function _o(o) {
|
|
1828
1832
|
this._$AN !== void 0 ? (wt(this), this._$AM = o, de(this)) : this._$AM = o;
|
|
1829
1833
|
}
|
|
1830
|
-
function
|
|
1831
|
-
const
|
|
1832
|
-
if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(
|
|
1833
|
-
else
|
|
1834
|
-
else
|
|
1834
|
+
function ko(o, t = !1, e = 0) {
|
|
1835
|
+
const r = this._$AH, i = this._$AN;
|
|
1836
|
+
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]);
|
|
1837
|
+
else r != null && (st(r, !1), wt(r));
|
|
1838
|
+
else st(this, o);
|
|
1835
1839
|
}
|
|
1836
|
-
const
|
|
1837
|
-
o.type ==
|
|
1840
|
+
const Ao = (o) => {
|
|
1841
|
+
o.type == jt.CHILD && (o._$AP ?? (o._$AP = ko), o._$AQ ?? (o._$AQ = _o));
|
|
1838
1842
|
};
|
|
1839
|
-
class
|
|
1843
|
+
class So extends Nt {
|
|
1840
1844
|
constructor() {
|
|
1841
1845
|
super(...arguments), this._$AN = void 0;
|
|
1842
1846
|
}
|
|
1843
|
-
_$AT(t, e,
|
|
1844
|
-
super._$AT(t, e,
|
|
1847
|
+
_$AT(t, e, r) {
|
|
1848
|
+
super._$AT(t, e, r), de(this), this.isConnected = t._$AU;
|
|
1845
1849
|
}
|
|
1846
1850
|
_$AO(t, e = !0) {
|
|
1847
|
-
var
|
|
1848
|
-
t !== this.isConnected && (this.isConnected = t, t ? (
|
|
1851
|
+
var r, i;
|
|
1852
|
+
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
1853
|
}
|
|
1850
1854
|
setValue(t) {
|
|
1851
|
-
if (
|
|
1855
|
+
if (Co(this._$Ct)) this._$Ct._$AI(t, this);
|
|
1852
1856
|
else {
|
|
1853
1857
|
const e = [...this._$Ct._$AH];
|
|
1854
1858
|
e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
|
|
@@ -1859,7 +1863,7 @@ class Ao extends Ft {
|
|
|
1859
1863
|
reconnected() {
|
|
1860
1864
|
}
|
|
1861
1865
|
}
|
|
1862
|
-
class Eo extends
|
|
1866
|
+
class Eo extends So {
|
|
1863
1867
|
constructor() {
|
|
1864
1868
|
super(...arguments), this.prevData = {};
|
|
1865
1869
|
}
|
|
@@ -1867,49 +1871,49 @@ class Eo extends Ao {
|
|
|
1867
1871
|
return d;
|
|
1868
1872
|
}
|
|
1869
1873
|
update(t, [e]) {
|
|
1870
|
-
var
|
|
1871
|
-
this.element !== t.element && (this.element = t.element), this.host = ((
|
|
1874
|
+
var r;
|
|
1875
|
+
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
1876
|
}
|
|
1873
1877
|
apply(t) {
|
|
1874
1878
|
if (!t)
|
|
1875
1879
|
return;
|
|
1876
|
-
const { prevData: e, element:
|
|
1880
|
+
const { prevData: e, element: r } = this;
|
|
1877
1881
|
for (const i in t) {
|
|
1878
|
-
const
|
|
1879
|
-
|
|
1882
|
+
const n = t[i];
|
|
1883
|
+
n !== e[i] && (r[i] = n);
|
|
1880
1884
|
}
|
|
1881
1885
|
}
|
|
1882
1886
|
groom(t) {
|
|
1883
|
-
const { prevData: e, element:
|
|
1887
|
+
const { prevData: e, element: r } = this;
|
|
1884
1888
|
if (e)
|
|
1885
1889
|
for (const i in e)
|
|
1886
|
-
(!t || !(i in t) &&
|
|
1890
|
+
(!t || !(i in t) && r[i] === e[i]) && (r[i] = void 0);
|
|
1887
1891
|
}
|
|
1888
1892
|
}
|
|
1889
|
-
class
|
|
1893
|
+
class Lo extends Eo {
|
|
1890
1894
|
constructor() {
|
|
1891
1895
|
super(...arguments), this.eventData = {};
|
|
1892
1896
|
}
|
|
1893
1897
|
apply(t) {
|
|
1894
1898
|
if (t)
|
|
1895
1899
|
for (const e in t) {
|
|
1896
|
-
const
|
|
1897
|
-
|
|
1900
|
+
const r = t[e];
|
|
1901
|
+
r !== this.eventData[e] && this.applyEvent(e, r);
|
|
1898
1902
|
}
|
|
1899
1903
|
}
|
|
1900
1904
|
applyEvent(t, e) {
|
|
1901
|
-
const { prevData:
|
|
1902
|
-
this.eventData[t] = e,
|
|
1905
|
+
const { prevData: r, element: i } = this;
|
|
1906
|
+
this.eventData[t] = e, r[t] && i.removeEventListener(t, this, e), i.addEventListener(t, this, e);
|
|
1903
1907
|
}
|
|
1904
1908
|
groom(t) {
|
|
1905
|
-
const { prevData: e, element:
|
|
1909
|
+
const { prevData: e, element: r } = this;
|
|
1906
1910
|
if (e)
|
|
1907
1911
|
for (const i in e)
|
|
1908
|
-
(!t || !(i in t) &&
|
|
1912
|
+
(!t || !(i in t) && r[i] === e[i]) && this.groomEvent(i, e[i]);
|
|
1909
1913
|
}
|
|
1910
1914
|
groomEvent(t, e) {
|
|
1911
|
-
const { element:
|
|
1912
|
-
delete this.eventData[t],
|
|
1915
|
+
const { element: r } = this;
|
|
1916
|
+
delete this.eventData[t], r.removeEventListener(t, this, e);
|
|
1913
1917
|
}
|
|
1914
1918
|
handleEvent(t) {
|
|
1915
1919
|
const e = this.eventData[t.type];
|
|
@@ -1917,73 +1921,73 @@ class So extends Eo {
|
|
|
1917
1921
|
}
|
|
1918
1922
|
disconnected() {
|
|
1919
1923
|
const { eventData: t, element: e } = this;
|
|
1920
|
-
for (const
|
|
1921
|
-
const i =
|
|
1922
|
-
e.removeEventListener(i, this,
|
|
1924
|
+
for (const r in t) {
|
|
1925
|
+
const i = r.slice(1), n = t[r];
|
|
1926
|
+
e.removeEventListener(i, this, n);
|
|
1923
1927
|
}
|
|
1924
1928
|
}
|
|
1925
1929
|
reconnected() {
|
|
1926
1930
|
const { eventData: t, element: e } = this;
|
|
1927
|
-
for (const
|
|
1928
|
-
const i =
|
|
1929
|
-
e.addEventListener(i, this,
|
|
1931
|
+
for (const r in t) {
|
|
1932
|
+
const i = r.slice(1), n = t[r];
|
|
1933
|
+
e.addEventListener(i, this, n);
|
|
1930
1934
|
}
|
|
1931
1935
|
}
|
|
1932
1936
|
}
|
|
1933
|
-
class
|
|
1937
|
+
class Po extends Lo {
|
|
1934
1938
|
apply(t) {
|
|
1935
1939
|
if (!t)
|
|
1936
1940
|
return;
|
|
1937
|
-
const { prevData: e, element:
|
|
1941
|
+
const { prevData: e, element: r } = this;
|
|
1938
1942
|
for (const i in t) {
|
|
1939
|
-
const
|
|
1940
|
-
if (
|
|
1943
|
+
const n = t[i];
|
|
1944
|
+
if (n === e[i])
|
|
1941
1945
|
continue;
|
|
1942
1946
|
const s = i.slice(1);
|
|
1943
1947
|
switch (i[0]) {
|
|
1944
1948
|
case "@":
|
|
1945
|
-
this.eventData[s] =
|
|
1949
|
+
this.eventData[s] = n, this.applyEvent(s, n);
|
|
1946
1950
|
break;
|
|
1947
1951
|
case ".":
|
|
1948
|
-
|
|
1952
|
+
r[s] = n;
|
|
1949
1953
|
break;
|
|
1950
1954
|
case "?":
|
|
1951
|
-
|
|
1955
|
+
n ? r.setAttribute(s, "") : r.removeAttribute(s);
|
|
1952
1956
|
break;
|
|
1953
1957
|
default:
|
|
1954
|
-
|
|
1958
|
+
n != null ? r.setAttribute(i, String(n)) : r.removeAttribute(i);
|
|
1955
1959
|
break;
|
|
1956
1960
|
}
|
|
1957
1961
|
}
|
|
1958
1962
|
}
|
|
1959
1963
|
groom(t) {
|
|
1960
|
-
const { prevData: e, element:
|
|
1964
|
+
const { prevData: e, element: r } = this;
|
|
1961
1965
|
if (e)
|
|
1962
1966
|
for (const i in e) {
|
|
1963
|
-
const
|
|
1964
|
-
if (!t || !(i in t) && n
|
|
1967
|
+
const n = i.slice(1);
|
|
1968
|
+
if (!t || !(i in t) && r[n] === e[i])
|
|
1965
1969
|
switch (i[0]) {
|
|
1966
1970
|
case "@":
|
|
1967
|
-
this.groomEvent(
|
|
1971
|
+
this.groomEvent(n, e[i]);
|
|
1968
1972
|
break;
|
|
1969
1973
|
case ".":
|
|
1970
|
-
n
|
|
1974
|
+
r[n] = void 0;
|
|
1971
1975
|
break;
|
|
1972
1976
|
case "?":
|
|
1973
|
-
|
|
1977
|
+
r.removeAttribute(n);
|
|
1974
1978
|
break;
|
|
1975
1979
|
default:
|
|
1976
|
-
|
|
1980
|
+
r.removeAttribute(i);
|
|
1977
1981
|
break;
|
|
1978
1982
|
}
|
|
1979
1983
|
}
|
|
1980
1984
|
}
|
|
1981
1985
|
}
|
|
1982
|
-
const
|
|
1983
|
-
var
|
|
1984
|
-
for (var i =
|
|
1985
|
-
(s = o[
|
|
1986
|
-
return
|
|
1986
|
+
const re = Ft(Po);
|
|
1987
|
+
var Oo = Object.defineProperty, Io = Object.getOwnPropertyDescriptor, y = (o, t, e, r) => {
|
|
1988
|
+
for (var i = r > 1 ? void 0 : r ? Io(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
1989
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
1990
|
+
return r && i && Oo(t, e, i), i;
|
|
1987
1991
|
};
|
|
1988
1992
|
let u = class extends v {
|
|
1989
1993
|
constructor() {
|
|
@@ -1998,13 +2002,13 @@ let u = class extends v {
|
|
|
1998
2002
|
const t = o.currentTarget, e = (t == null ? void 0 : t.getAttribute("data-role")) === "back";
|
|
1999
2003
|
if (this.showDetail && e) {
|
|
2000
2004
|
this.isHidingDetail = !0;
|
|
2001
|
-
const
|
|
2002
|
-
if (
|
|
2005
|
+
const r = this.renderRoot.querySelector(".content");
|
|
2006
|
+
if (r) {
|
|
2003
2007
|
this.showHeaderStartIcon = !1;
|
|
2004
2008
|
const i = () => {
|
|
2005
|
-
this.showDetail = !1, this.isHidingDetail = !1,
|
|
2009
|
+
this.showDetail = !1, this.isHidingDetail = !1, r.removeEventListener("animationend", i);
|
|
2006
2010
|
};
|
|
2007
|
-
|
|
2011
|
+
r.addEventListener("animationend", i);
|
|
2008
2012
|
} else
|
|
2009
2013
|
this.showDetail = !1, this.isHidingDetail = !1, this.showHeaderStartIcon = !1;
|
|
2010
2014
|
return;
|
|
@@ -2021,12 +2025,12 @@ let u = class extends v {
|
|
|
2021
2025
|
document.body.style.overflow = "", document.body.removeAttribute("data-side-panel"), this.removeEventListener("keydown", this.handleKeyDown), super.disconnectedCallback(), this.removeEventListener("open-detail", this._onOpenDetail);
|
|
2022
2026
|
}
|
|
2023
2027
|
trapFocus(o) {
|
|
2024
|
-
var i,
|
|
2025
|
-
this.innerFocusedElement = document.activeElement || null, this.innerFocusedElement = ((
|
|
2028
|
+
var i, n, s, h, c, f, m, p, C, P;
|
|
2029
|
+
this.innerFocusedElement = document.activeElement || null, this.innerFocusedElement = ((n = (i = this.innerFocusedElement) == null ? void 0 : i.shadowRoot) == null ? void 0 : n.activeElement) || this.innerFocusedElement;
|
|
2026
2030
|
const t = this.getFocusableElements();
|
|
2027
2031
|
if (t.length === 0) return;
|
|
2028
|
-
const e = t[0],
|
|
2029
|
-
o.shiftKey && this.innerFocusedElement === e ? (o.preventDefault(),
|
|
2032
|
+
const e = t[0], r = t[t.length - 1];
|
|
2033
|
+
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 ? (C = (p = (m = e.shadowRoot) == null ? void 0 : m.querySelector(u.focusablesSelector)) == null ? void 0 : p.focus) == null || C.call(p) : (P = e.focus) == null || P.call(e));
|
|
2030
2034
|
}
|
|
2031
2035
|
getFocusableElements() {
|
|
2032
2036
|
const o = this.renderRoot.querySelector(".panel");
|
|
@@ -2036,36 +2040,36 @@ let u = class extends v {
|
|
|
2036
2040
|
}
|
|
2037
2041
|
function e(i) {
|
|
2038
2042
|
var s;
|
|
2039
|
-
const
|
|
2043
|
+
const n = [i.matches(u.focusablesSelector) ? i : []];
|
|
2040
2044
|
if (!["o-icon-button", "o-button"].includes(i.tagName.toLowerCase())) {
|
|
2041
2045
|
const h = Array.from(
|
|
2042
2046
|
i instanceof HTMLSlotElement ? i.assignedElements({ flatten: !0 }) : []
|
|
2043
2047
|
).filter(t).flatMap(e), c = Array.from(
|
|
2044
2048
|
((s = i.shadowRoot) == null ? void 0 : s.querySelectorAll("*")) || []
|
|
2045
2049
|
).filter(t).flatMap(e);
|
|
2046
|
-
|
|
2050
|
+
n.push(...h, ...c);
|
|
2047
2051
|
}
|
|
2048
|
-
return
|
|
2052
|
+
return n.flat();
|
|
2049
2053
|
}
|
|
2050
2054
|
return Array.from(o.querySelectorAll("*")).filter(t).flatMap(e);
|
|
2051
2055
|
}
|
|
2052
2056
|
openPanel() {
|
|
2053
2057
|
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,
|
|
2058
|
+
var o, t, e, r;
|
|
2055
2059
|
if (this.showHeader) {
|
|
2056
|
-
const i = ((o = this.shadowRoot) == null ? void 0 : o.querySelector(".panel .close-btn")) || null,
|
|
2057
|
-
|
|
2060
|
+
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;
|
|
2061
|
+
n && ((e = n.focus) == null || e.call(n));
|
|
2058
2062
|
} else {
|
|
2059
2063
|
const i = this.getFocusableElements()[0];
|
|
2060
|
-
(
|
|
2064
|
+
(r = i == null ? void 0 : i.focus) == null || r.call(i);
|
|
2061
2065
|
}
|
|
2062
2066
|
}), this.dispatchEvent(
|
|
2063
2067
|
new CustomEvent("open", { bubbles: !0, composed: !0 })
|
|
2064
2068
|
);
|
|
2065
2069
|
}
|
|
2066
2070
|
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" ? (
|
|
2071
|
+
var o, t, e, r, i;
|
|
2072
|
+
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
2073
|
new CustomEvent("close", { bubbles: !0, composed: !0 })
|
|
2070
2074
|
);
|
|
2071
2075
|
}
|
|
@@ -2160,7 +2164,7 @@ let u = class extends v {
|
|
|
2160
2164
|
variant="${this.firstButtonVariant}"
|
|
2161
2165
|
@click=${this.handleFirstClick}
|
|
2162
2166
|
@keydown=${this.handleFirstClick}
|
|
2163
|
-
${
|
|
2167
|
+
${re(this.firstButtonProps)}
|
|
2164
2168
|
>
|
|
2165
2169
|
${this.firstButtonLabel}
|
|
2166
2170
|
</o-button>
|
|
@@ -2171,7 +2175,7 @@ let u = class extends v {
|
|
|
2171
2175
|
variant="${this.secondButtonVariant}"
|
|
2172
2176
|
@click=${this.handleSecondClick}
|
|
2173
2177
|
@keydown=${this.handleSecondClick}
|
|
2174
|
-
${
|
|
2178
|
+
${re(this.secondButtonProps)}
|
|
2175
2179
|
>
|
|
2176
2180
|
${this.secondButtonLabel}
|
|
2177
2181
|
</o-button>
|
|
@@ -2182,7 +2186,7 @@ let u = class extends v {
|
|
|
2182
2186
|
`;
|
|
2183
2187
|
}
|
|
2184
2188
|
};
|
|
2185
|
-
u.styles =
|
|
2189
|
+
u.styles = g`
|
|
2186
2190
|
:host {
|
|
2187
2191
|
--z-overlay: 99;
|
|
2188
2192
|
--z-panel: 100;
|
|
@@ -2286,7 +2290,7 @@ u.styles = b`
|
|
|
2286
2290
|
.panel:focus-visible,
|
|
2287
2291
|
.close-btn:focus,
|
|
2288
2292
|
.close-btn:focus-visible {
|
|
2289
|
-
${
|
|
2293
|
+
${bt}
|
|
2290
2294
|
}
|
|
2291
2295
|
|
|
2292
2296
|
.content {
|
|
@@ -2434,14 +2438,14 @@ y([
|
|
|
2434
2438
|
a({ type: Boolean })
|
|
2435
2439
|
], u.prototype, "isHidingDetail", 2);
|
|
2436
2440
|
u = y([
|
|
2437
|
-
|
|
2441
|
+
x("o-side-panel")
|
|
2438
2442
|
], u);
|
|
2439
|
-
var
|
|
2440
|
-
for (var i =
|
|
2441
|
-
(s = o[
|
|
2442
|
-
return
|
|
2443
|
+
var zo = Object.defineProperty, Bo = Object.getOwnPropertyDescriptor, Z = (o, t, e, r) => {
|
|
2444
|
+
for (var i = r > 1 ? void 0 : r ? Bo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2445
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2446
|
+
return r && i && zo(t, e, i), i;
|
|
2443
2447
|
};
|
|
2444
|
-
let
|
|
2448
|
+
let B = class extends v {
|
|
2445
2449
|
constructor() {
|
|
2446
2450
|
super(...arguments), this.thumbnails = [], this.activeIndex = 0, this.disabledIndexes = [], this.maxWidth = "100%", this.altressource = "visual", this.focusedIndex = 0, this.playerIconTemplate = l`
|
|
2447
2451
|
<o-icon-button
|
|
@@ -2493,7 +2497,7 @@ let I = class extends v {
|
|
|
2493
2497
|
return l`
|
|
2494
2498
|
<ul class="scroll-container" style="max-width: ${this.maxWidth};">
|
|
2495
2499
|
${this.thumbnails.map((o, t) => {
|
|
2496
|
-
const e = this.disabledIndexes.includes(t),
|
|
2500
|
+
const e = this.disabledIndexes.includes(t), r = this.activeIndex === t, i = o.type === "video", n = i ? `video ${t}` : `${this.altressource} ${t + 1}`;
|
|
2497
2501
|
return l`
|
|
2498
2502
|
<li class="thumb-wrapper">
|
|
2499
2503
|
<button
|
|
@@ -2501,14 +2505,14 @@ let I = class extends v {
|
|
|
2501
2505
|
data-index="${t}"
|
|
2502
2506
|
?disabled=${e}
|
|
2503
2507
|
aria-selected="${this.focusedIndex === t}"
|
|
2504
|
-
aria-current=${
|
|
2508
|
+
aria-current=${r ? "true" : "false"}
|
|
2505
2509
|
tabindex="${this.disabledIndexes.includes(t) ? -1 : 0}"
|
|
2506
2510
|
@click=${() => this.selectThumbnail(t)}
|
|
2507
2511
|
@keydown=${this.handleKeyDown}
|
|
2508
2512
|
@focus=${(s) => this.onFocus(s)}
|
|
2509
2513
|
@blur=${(s) => this.onBlur(s)}
|
|
2510
2514
|
>
|
|
2511
|
-
<img alt="${
|
|
2515
|
+
<img alt="${n}" src="${o.src}" />
|
|
2512
2516
|
</button>
|
|
2513
2517
|
${i ? l`<div class="play-icon-wrapper">${this.playerIconTemplate}</div>` : null}
|
|
2514
2518
|
</li>
|
|
@@ -2518,7 +2522,7 @@ let I = class extends v {
|
|
|
2518
2522
|
`;
|
|
2519
2523
|
}
|
|
2520
2524
|
};
|
|
2521
|
-
|
|
2525
|
+
B.styles = g`
|
|
2522
2526
|
:host {
|
|
2523
2527
|
display: flex;
|
|
2524
2528
|
gap: 5px;
|
|
@@ -2624,36 +2628,36 @@ I.styles = b`
|
|
|
2624
2628
|
width: 0;
|
|
2625
2629
|
}
|
|
2626
2630
|
`;
|
|
2627
|
-
|
|
2631
|
+
Z([
|
|
2628
2632
|
a({ type: Array })
|
|
2629
|
-
],
|
|
2630
|
-
|
|
2633
|
+
], B.prototype, "thumbnails", 2);
|
|
2634
|
+
Z([
|
|
2631
2635
|
a({ type: Number })
|
|
2632
|
-
],
|
|
2633
|
-
|
|
2636
|
+
], B.prototype, "activeIndex", 2);
|
|
2637
|
+
Z([
|
|
2634
2638
|
a({ type: Array })
|
|
2635
|
-
],
|
|
2636
|
-
|
|
2639
|
+
], B.prototype, "disabledIndexes", 2);
|
|
2640
|
+
Z([
|
|
2637
2641
|
a({ type: String })
|
|
2638
|
-
],
|
|
2639
|
-
|
|
2642
|
+
], B.prototype, "maxWidth", 2);
|
|
2643
|
+
Z([
|
|
2640
2644
|
a({ type: String })
|
|
2641
|
-
],
|
|
2642
|
-
|
|
2645
|
+
], B.prototype, "altressource", 2);
|
|
2646
|
+
Z([
|
|
2643
2647
|
a({ type: Object })
|
|
2644
|
-
],
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
],
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
],
|
|
2651
|
-
var
|
|
2652
|
-
for (var i =
|
|
2653
|
-
(s = o[
|
|
2654
|
-
return
|
|
2648
|
+
], B.prototype, "swiperInstance", 2);
|
|
2649
|
+
Z([
|
|
2650
|
+
X()
|
|
2651
|
+
], B.prototype, "focusedIndex", 2);
|
|
2652
|
+
B = Z([
|
|
2653
|
+
x("thumbnail-navigation")
|
|
2654
|
+
], B);
|
|
2655
|
+
var Do = Object.defineProperty, Ho = Object.getOwnPropertyDescriptor, Rt = (o, t, e, r) => {
|
|
2656
|
+
for (var i = r > 1 ? void 0 : r ? Ho(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2657
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2658
|
+
return r && i && Do(t, e, i), i;
|
|
2655
2659
|
};
|
|
2656
|
-
let
|
|
2660
|
+
let ht = class extends v {
|
|
2657
2661
|
constructor() {
|
|
2658
2662
|
super(...arguments), this.type = "", this.bgstyle = "background-white";
|
|
2659
2663
|
}
|
|
@@ -2663,7 +2667,7 @@ let lt = class extends v {
|
|
|
2663
2667
|
`;
|
|
2664
2668
|
}
|
|
2665
2669
|
};
|
|
2666
|
-
|
|
2670
|
+
ht.styles = g`
|
|
2667
2671
|
.tag {
|
|
2668
2672
|
display: inline-block;
|
|
2669
2673
|
padding: var(--spacing-2-xs) var(--spacing-s);
|
|
@@ -2723,19 +2727,19 @@ lt.styles = b`
|
|
|
2723
2727
|
`;
|
|
2724
2728
|
Rt([
|
|
2725
2729
|
a({ type: String, reflect: !0 })
|
|
2726
|
-
],
|
|
2730
|
+
], ht.prototype, "type", 2);
|
|
2727
2731
|
Rt([
|
|
2728
2732
|
a({ type: String, reflect: !0 })
|
|
2729
|
-
],
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
],
|
|
2733
|
-
var
|
|
2734
|
-
for (var i =
|
|
2735
|
-
(s = o[
|
|
2736
|
-
return
|
|
2733
|
+
], ht.prototype, "bgstyle", 2);
|
|
2734
|
+
ht = Rt([
|
|
2735
|
+
x("o-tag")
|
|
2736
|
+
], ht);
|
|
2737
|
+
var Mo = Object.defineProperty, To = Object.getOwnPropertyDescriptor, Ut = (o, t, e, r) => {
|
|
2738
|
+
for (var i = r > 1 ? void 0 : r ? To(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2739
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2740
|
+
return r && i && Mo(t, e, i), i;
|
|
2737
2741
|
};
|
|
2738
|
-
let
|
|
2742
|
+
let dt = class extends v {
|
|
2739
2743
|
constructor() {
|
|
2740
2744
|
super(...arguments), this.type = "top", this.text = "";
|
|
2741
2745
|
}
|
|
@@ -2748,7 +2752,7 @@ let ct = class extends v {
|
|
|
2748
2752
|
`;
|
|
2749
2753
|
}
|
|
2750
2754
|
};
|
|
2751
|
-
|
|
2755
|
+
dt.styles = g`
|
|
2752
2756
|
.tooltip {
|
|
2753
2757
|
position: relative;
|
|
2754
2758
|
display: inline-block;
|
|
@@ -2843,19 +2847,19 @@ ct.styles = b`
|
|
|
2843
2847
|
`;
|
|
2844
2848
|
Ut([
|
|
2845
2849
|
a({ type: String, reflect: !0 })
|
|
2846
|
-
],
|
|
2850
|
+
], dt.prototype, "type", 2);
|
|
2847
2851
|
Ut([
|
|
2848
2852
|
a({ type: String, reflect: !0 })
|
|
2849
|
-
],
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
],
|
|
2853
|
-
var
|
|
2854
|
-
for (var i =
|
|
2855
|
-
(s = o[
|
|
2856
|
-
return
|
|
2853
|
+
], dt.prototype, "text", 2);
|
|
2854
|
+
dt = Ut([
|
|
2855
|
+
x("o-tooltip")
|
|
2856
|
+
], dt);
|
|
2857
|
+
var jo = Object.defineProperty, Fo = Object.getOwnPropertyDescriptor, j = (o, t, e, r) => {
|
|
2858
|
+
for (var i = r > 1 ? void 0 : r ? Fo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2859
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
2860
|
+
return r && i && jo(t, e, i), i;
|
|
2857
2861
|
};
|
|
2858
|
-
let
|
|
2862
|
+
let I = class extends v {
|
|
2859
2863
|
constructor() {
|
|
2860
2864
|
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
2865
|
this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
|
|
@@ -2921,7 +2925,7 @@ let O = class extends v {
|
|
|
2921
2925
|
this.options.length > 0 && (this.options.some((e) => e.value === this.value) || (this.value = this.options[0].value));
|
|
2922
2926
|
}
|
|
2923
2927
|
render() {
|
|
2924
|
-
const o =
|
|
2928
|
+
const o = J.checkstroke.replace(
|
|
2925
2929
|
"<svg",
|
|
2926
2930
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
2927
2931
|
), t = this.options.find((e) => e.value === this.value);
|
|
@@ -2954,22 +2958,22 @@ let O = class extends v {
|
|
|
2954
2958
|
style=${`width: ${this.width};`}
|
|
2955
2959
|
>
|
|
2956
2960
|
${this.options.map(
|
|
2957
|
-
(e,
|
|
2961
|
+
(e, r) => l`
|
|
2958
2962
|
<li
|
|
2959
|
-
id="option-${
|
|
2963
|
+
id="option-${r}"
|
|
2960
2964
|
role="option"
|
|
2961
2965
|
aria-selected="${e.value === this.value}"
|
|
2962
|
-
tabindex="${
|
|
2963
|
-
class="${
|
|
2966
|
+
tabindex="${r === this.activeIndex ? "0" : "-1"}"
|
|
2967
|
+
class="${r === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
|
|
2964
2968
|
@click=${() => this.selectOption(e)}
|
|
2965
2969
|
>
|
|
2966
2970
|
${e.url ? l`
|
|
2967
2971
|
<a href="${e.url}">
|
|
2968
2972
|
<span>${e.label}</span>
|
|
2969
|
-
${e.value === this.value ? l`<span class="check">${
|
|
2973
|
+
${e.value === this.value ? l`<span class="check">${O(o)}</span>` : null}
|
|
2970
2974
|
</a>` : l`
|
|
2971
2975
|
<span>${e.label}</span>
|
|
2972
|
-
${e.value === this.value ? l`<span class="check">${
|
|
2976
|
+
${e.value === this.value ? l`<span class="check">${O(o)}</span>` : null}`}
|
|
2973
2977
|
</li>`
|
|
2974
2978
|
)}
|
|
2975
2979
|
</ul>` : null}
|
|
@@ -2978,7 +2982,7 @@ let O = class extends v {
|
|
|
2978
2982
|
`;
|
|
2979
2983
|
}
|
|
2980
2984
|
};
|
|
2981
|
-
|
|
2985
|
+
I.styles = g`
|
|
2982
2986
|
:host {
|
|
2983
2987
|
display: inline-block;
|
|
2984
2988
|
position: relative;
|
|
@@ -3118,44 +3122,44 @@ O.styles = b`
|
|
|
3118
3122
|
display: none;
|
|
3119
3123
|
}
|
|
3120
3124
|
`;
|
|
3121
|
-
|
|
3125
|
+
j([
|
|
3122
3126
|
a({ type: Array, reflect: !0 })
|
|
3123
|
-
],
|
|
3124
|
-
|
|
3127
|
+
], I.prototype, "options", 2);
|
|
3128
|
+
j([
|
|
3125
3129
|
a({ type: String, reflect: !0 })
|
|
3126
|
-
],
|
|
3127
|
-
|
|
3130
|
+
], I.prototype, "value", 2);
|
|
3131
|
+
j([
|
|
3128
3132
|
a({ type: String, reflect: !0 })
|
|
3129
|
-
],
|
|
3130
|
-
|
|
3133
|
+
], I.prototype, "name", 2);
|
|
3134
|
+
j([
|
|
3131
3135
|
a({ type: Boolean, reflect: !0 })
|
|
3132
|
-
],
|
|
3133
|
-
|
|
3136
|
+
], I.prototype, "disabled", 2);
|
|
3137
|
+
j([
|
|
3134
3138
|
a({ type: String, reflect: !0 })
|
|
3135
|
-
],
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
],
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
],
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
],
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
],
|
|
3148
|
-
var
|
|
3149
|
-
for (var i =
|
|
3150
|
-
(s = o[
|
|
3139
|
+
], I.prototype, "width", 2);
|
|
3140
|
+
j([
|
|
3141
|
+
X()
|
|
3142
|
+
], I.prototype, "open", 2);
|
|
3143
|
+
j([
|
|
3144
|
+
X()
|
|
3145
|
+
], I.prototype, "activeIndex", 2);
|
|
3146
|
+
j([
|
|
3147
|
+
X()
|
|
3148
|
+
], I.prototype, "menuWidth", 2);
|
|
3149
|
+
I = j([
|
|
3150
|
+
x("o-dropdown")
|
|
3151
|
+
], I);
|
|
3152
|
+
var No = Object.getOwnPropertyDescriptor, Ro = (o, t, e, r) => {
|
|
3153
|
+
for (var i = r > 1 ? void 0 : r ? No(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3154
|
+
(s = o[n]) && (i = s(i) || i);
|
|
3151
3155
|
return i;
|
|
3152
3156
|
};
|
|
3153
|
-
let
|
|
3157
|
+
let It = class extends v {
|
|
3154
3158
|
render() {
|
|
3155
3159
|
return l` <span class="dots"></span> `;
|
|
3156
3160
|
}
|
|
3157
3161
|
};
|
|
3158
|
-
|
|
3162
|
+
It.styles = g`
|
|
3159
3163
|
:host {
|
|
3160
3164
|
display: flex;
|
|
3161
3165
|
align-items: center;
|
|
@@ -3207,15 +3211,15 @@ Ot.styles = b`
|
|
|
3207
3211
|
}
|
|
3208
3212
|
}
|
|
3209
3213
|
`;
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
],
|
|
3213
|
-
var Uo = Object.defineProperty,
|
|
3214
|
-
for (var i =
|
|
3215
|
-
(s = o[
|
|
3216
|
-
return
|
|
3214
|
+
It = Ro([
|
|
3215
|
+
x("o-dots")
|
|
3216
|
+
], It);
|
|
3217
|
+
var Uo = Object.defineProperty, Vo = Object.getOwnPropertyDescriptor, H = (o, t, e, r) => {
|
|
3218
|
+
for (var i = r > 1 ? void 0 : r ? Vo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3219
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3220
|
+
return r && i && Uo(t, e, i), i;
|
|
3217
3221
|
};
|
|
3218
|
-
let
|
|
3222
|
+
let A = class extends v {
|
|
3219
3223
|
constructor() {
|
|
3220
3224
|
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
3225
|
this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
|
|
@@ -3281,7 +3285,7 @@ let k = class extends v {
|
|
|
3281
3285
|
this.options.length > 0 && (this.options.some((t) => t.value === this.value) || (this.value = this.options[0].value));
|
|
3282
3286
|
}
|
|
3283
3287
|
render() {
|
|
3284
|
-
const o =
|
|
3288
|
+
const o = J.checkstroke.replace(
|
|
3285
3289
|
"<svg",
|
|
3286
3290
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
3287
3291
|
), t = this.options.find((e) => e.value === this.value);
|
|
@@ -3324,14 +3328,14 @@ let k = class extends v {
|
|
|
3324
3328
|
style=${`width: ${this.width};`}
|
|
3325
3329
|
>
|
|
3326
3330
|
${this.options.map(
|
|
3327
|
-
(e,
|
|
3331
|
+
(e, r) => l`
|
|
3328
3332
|
<li
|
|
3329
|
-
id="option-${
|
|
3333
|
+
id="option-${r}"
|
|
3330
3334
|
role="option"
|
|
3331
3335
|
aria-selected="${e.value === this.value}"
|
|
3332
3336
|
aria-disabled="${e.disabled ? "true" : "false"}"
|
|
3333
|
-
tabindex="${
|
|
3334
|
-
class="${
|
|
3337
|
+
tabindex="${r === this.activeIndex ? "0" : "-1"}"
|
|
3338
|
+
class="${r === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
|
|
3335
3339
|
@click=${() => this.selectOption(e)}
|
|
3336
3340
|
>
|
|
3337
3341
|
<a href="${_(e.url)}">
|
|
@@ -3340,7 +3344,7 @@ let k = class extends v {
|
|
|
3340
3344
|
<div class="right">
|
|
3341
3345
|
<span class="additional-text">${_(e.additionaltext)}</span>
|
|
3342
3346
|
${e.value === this.value && !e.additionaltext ? l`
|
|
3343
|
-
<span class="check">${
|
|
3347
|
+
<span class="check">${O(o)}</span>` : null}
|
|
3344
3348
|
</div>
|
|
3345
3349
|
</a>
|
|
3346
3350
|
</li>
|
|
@@ -3352,7 +3356,7 @@ let k = class extends v {
|
|
|
3352
3356
|
`;
|
|
3353
3357
|
}
|
|
3354
3358
|
};
|
|
3355
|
-
|
|
3359
|
+
A.styles = g`
|
|
3356
3360
|
:host {
|
|
3357
3361
|
display: inline-block;
|
|
3358
3362
|
position: relative;
|
|
@@ -3528,73 +3532,73 @@ k.styles = b`
|
|
|
3528
3532
|
display: none;
|
|
3529
3533
|
}
|
|
3530
3534
|
`;
|
|
3531
|
-
|
|
3535
|
+
H([
|
|
3532
3536
|
a({ type: Array, reflect: !0 })
|
|
3533
|
-
],
|
|
3534
|
-
|
|
3537
|
+
], A.prototype, "options", 2);
|
|
3538
|
+
H([
|
|
3535
3539
|
a({ type: String, reflect: !0 })
|
|
3536
|
-
],
|
|
3537
|
-
|
|
3540
|
+
], A.prototype, "value", 2);
|
|
3541
|
+
H([
|
|
3538
3542
|
a({ type: String, reflect: !0 })
|
|
3539
|
-
],
|
|
3540
|
-
|
|
3543
|
+
], A.prototype, "name", 2);
|
|
3544
|
+
H([
|
|
3541
3545
|
a({ type: String, reflect: !0 })
|
|
3542
|
-
],
|
|
3543
|
-
|
|
3546
|
+
], A.prototype, "additionaltext", 2);
|
|
3547
|
+
H([
|
|
3544
3548
|
a({ type: Boolean, reflect: !0 })
|
|
3545
|
-
],
|
|
3546
|
-
|
|
3549
|
+
], A.prototype, "disabled", 2);
|
|
3550
|
+
H([
|
|
3547
3551
|
a({ type: String, reflect: !0 })
|
|
3548
|
-
],
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
],
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
],
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
],
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
],
|
|
3552
|
+
], A.prototype, "width", 2);
|
|
3553
|
+
H([
|
|
3554
|
+
X()
|
|
3555
|
+
], A.prototype, "open", 2);
|
|
3556
|
+
H([
|
|
3557
|
+
X()
|
|
3558
|
+
], A.prototype, "activeIndex", 2);
|
|
3559
|
+
H([
|
|
3560
|
+
X()
|
|
3561
|
+
], A.prototype, "menuWidth", 2);
|
|
3562
|
+
A = H([
|
|
3563
|
+
x("o-dropdown-variant")
|
|
3564
|
+
], A);
|
|
3561
3565
|
/**
|
|
3562
3566
|
* @license
|
|
3563
3567
|
* Copyright 2018 Google LLC
|
|
3564
3568
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3565
3569
|
*/
|
|
3566
|
-
const pe = "important",
|
|
3570
|
+
const pe = "important", Zo = " !" + pe, qo = Ft(class extends Nt {
|
|
3567
3571
|
constructor(o) {
|
|
3568
3572
|
var t;
|
|
3569
|
-
if (super(o), o.type !==
|
|
3573
|
+
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
3574
|
}
|
|
3571
3575
|
render(o) {
|
|
3572
3576
|
return Object.keys(o).reduce((t, e) => {
|
|
3573
|
-
const
|
|
3574
|
-
return
|
|
3577
|
+
const r = o[e];
|
|
3578
|
+
return r == null ? t : t + `${e = e.includes("-") ? e : e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${r};`;
|
|
3575
3579
|
}, "");
|
|
3576
3580
|
}
|
|
3577
3581
|
update(o, [t]) {
|
|
3578
3582
|
const { style: e } = o.element;
|
|
3579
3583
|
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[
|
|
3584
|
+
for (const r of this.ft) t[r] == null && (this.ft.delete(r), r.includes("-") ? e.removeProperty(r) : e[r] = null);
|
|
3585
|
+
for (const r in t) {
|
|
3586
|
+
const i = t[r];
|
|
3583
3587
|
if (i != null) {
|
|
3584
|
-
this.ft.add(
|
|
3585
|
-
const
|
|
3586
|
-
|
|
3588
|
+
this.ft.add(r);
|
|
3589
|
+
const n = typeof i == "string" && i.endsWith(Zo);
|
|
3590
|
+
r.includes("-") || n ? e.setProperty(r, n ? i.slice(0, -11) : i, n ? pe : "") : e[r] = i;
|
|
3587
3591
|
}
|
|
3588
3592
|
}
|
|
3589
|
-
return
|
|
3593
|
+
return V;
|
|
3590
3594
|
}
|
|
3591
3595
|
});
|
|
3592
|
-
var
|
|
3593
|
-
for (var i =
|
|
3594
|
-
(s = o[
|
|
3595
|
-
return
|
|
3596
|
+
var Wo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor, Vt = (o, t, e, r) => {
|
|
3597
|
+
for (var i = r > 1 ? void 0 : r ? Ko(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3598
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3599
|
+
return r && i && Wo(t, e, i), i;
|
|
3596
3600
|
};
|
|
3597
|
-
let
|
|
3601
|
+
let pt = class extends v {
|
|
3598
3602
|
constructor() {
|
|
3599
3603
|
super(...arguments), this.option = {}, this.imageSize = 64;
|
|
3600
3604
|
}
|
|
@@ -3603,7 +3607,7 @@ let ht = class extends v {
|
|
|
3603
3607
|
width: `${this.imageSize}px`,
|
|
3604
3608
|
height: `${this.imageSize}px`
|
|
3605
3609
|
}, e = l`
|
|
3606
|
-
${this.option.imgurl ? l`<img src="${this.option.imgurl}" alt="${_(this.option.title)}" aria-hidden="true" style=${
|
|
3610
|
+
${this.option.imgurl ? l`<img src="${this.option.imgurl}" alt="${_(this.option.title)}" aria-hidden="true" style=${qo(t)} />` : ""}
|
|
3607
3611
|
<div class="m-reassurance-content">
|
|
3608
3612
|
<h3 class="a-reassurance-text">${_(this.option.title)}</h3>
|
|
3609
3613
|
<p class="a-reassurance-description">${_(this.option.description)}</p>
|
|
@@ -3612,7 +3616,7 @@ let ht = class extends v {
|
|
|
3612
3616
|
return o ? l`<a href="${_(this.option.url)}" class="reassurance-item clickable">${e}</a>` : l`<div class="reassurance-item">${e}</div>`;
|
|
3613
3617
|
}
|
|
3614
3618
|
};
|
|
3615
|
-
|
|
3619
|
+
pt.styles = g`
|
|
3616
3620
|
:host {
|
|
3617
3621
|
display: inline-block;
|
|
3618
3622
|
position: relative;
|
|
@@ -3694,22 +3698,22 @@ ht.styles = b`
|
|
|
3694
3698
|
}
|
|
3695
3699
|
}
|
|
3696
3700
|
`;
|
|
3697
|
-
|
|
3701
|
+
Vt([
|
|
3698
3702
|
a({ type: Object, reflect: !0 })
|
|
3699
|
-
],
|
|
3700
|
-
|
|
3703
|
+
], pt.prototype, "option", 2);
|
|
3704
|
+
Vt([
|
|
3701
3705
|
a({ type: Number, reflect: !0 })
|
|
3702
|
-
],
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
],
|
|
3706
|
-
var
|
|
3707
|
-
for (var i =
|
|
3708
|
-
(s = o[
|
|
3709
|
-
return
|
|
3706
|
+
], pt.prototype, "imageSize", 2);
|
|
3707
|
+
pt = Vt([
|
|
3708
|
+
x("o-reassurance")
|
|
3709
|
+
], pt);
|
|
3710
|
+
var Go = Object.defineProperty, Xo = Object.getOwnPropertyDescriptor, F = (o, t, e, r) => {
|
|
3711
|
+
for (var i = r > 1 ? void 0 : r ? Xo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3712
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3713
|
+
return r && i && Go(t, e, i), i;
|
|
3710
3714
|
};
|
|
3711
|
-
const
|
|
3712
|
-
let
|
|
3715
|
+
const Jo = Tt(v);
|
|
3716
|
+
let S = class extends Jo {
|
|
3713
3717
|
constructor() {
|
|
3714
3718
|
super(...arguments), this.link = "", this.name = "", this.value = "", this.text = "", this.size = "standard", this.selected = !1, this.fullwidth = !1, this.inactive = !1;
|
|
3715
3719
|
}
|
|
@@ -3732,7 +3736,7 @@ let A = class extends Xo {
|
|
|
3732
3736
|
`;
|
|
3733
3737
|
}
|
|
3734
3738
|
};
|
|
3735
|
-
|
|
3739
|
+
S.styles = g`
|
|
3736
3740
|
:host {
|
|
3737
3741
|
cursor: pointer;
|
|
3738
3742
|
display: inline-flex;
|
|
@@ -3808,7 +3812,7 @@ A.styles = b`
|
|
|
3808
3812
|
}
|
|
3809
3813
|
|
|
3810
3814
|
&:focus-visible {
|
|
3811
|
-
${
|
|
3815
|
+
${bt};
|
|
3812
3816
|
}
|
|
3813
3817
|
}
|
|
3814
3818
|
|
|
@@ -3822,44 +3826,44 @@ A.styles = b`
|
|
|
3822
3826
|
align-items: center;
|
|
3823
3827
|
}
|
|
3824
3828
|
`;
|
|
3825
|
-
|
|
3829
|
+
F([
|
|
3826
3830
|
a({ type: String, reflect: !0 })
|
|
3827
|
-
],
|
|
3828
|
-
|
|
3831
|
+
], S.prototype, "link", 2);
|
|
3832
|
+
F([
|
|
3829
3833
|
a({ reflect: !0 })
|
|
3830
|
-
],
|
|
3831
|
-
|
|
3834
|
+
], S.prototype, "name", 2);
|
|
3835
|
+
F([
|
|
3832
3836
|
a({ reflect: !0 })
|
|
3833
|
-
],
|
|
3834
|
-
|
|
3837
|
+
], S.prototype, "value", 2);
|
|
3838
|
+
F([
|
|
3835
3839
|
a({ type: String })
|
|
3836
|
-
],
|
|
3837
|
-
|
|
3840
|
+
], S.prototype, "text", 2);
|
|
3841
|
+
F([
|
|
3838
3842
|
a({ type: String, reflect: !0 })
|
|
3839
|
-
],
|
|
3840
|
-
|
|
3843
|
+
], S.prototype, "size", 2);
|
|
3844
|
+
F([
|
|
3841
3845
|
a({ type: Boolean, reflect: !0 })
|
|
3842
|
-
],
|
|
3843
|
-
|
|
3846
|
+
], S.prototype, "selected", 2);
|
|
3847
|
+
F([
|
|
3844
3848
|
a({ type: Boolean, reflect: !0 })
|
|
3845
|
-
],
|
|
3846
|
-
|
|
3849
|
+
], S.prototype, "fullwidth", 2);
|
|
3850
|
+
F([
|
|
3847
3851
|
a({ type: Boolean, reflect: !0 })
|
|
3848
|
-
],
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
],
|
|
3852
|
-
var
|
|
3853
|
-
for (var i =
|
|
3854
|
-
(s = o[
|
|
3855
|
-
return
|
|
3852
|
+
], S.prototype, "inactive", 2);
|
|
3853
|
+
S = F([
|
|
3854
|
+
x("o-chip")
|
|
3855
|
+
], S);
|
|
3856
|
+
var Qo = Object.defineProperty, Yo = Object.getOwnPropertyDescriptor, Zt = (o, t, e, r) => {
|
|
3857
|
+
for (var i = r > 1 ? void 0 : r ? Yo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3858
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3859
|
+
return r && i && Qo(t, e, i), i;
|
|
3856
3860
|
};
|
|
3857
|
-
let
|
|
3861
|
+
let ut = class extends v {
|
|
3858
3862
|
constructor() {
|
|
3859
3863
|
super(), this.name = "", this.value = "", this.addEventListener("selected", this.onChipSelected);
|
|
3860
3864
|
}
|
|
3861
3865
|
onChipSelected(o) {
|
|
3862
|
-
const t = o.target instanceof
|
|
3866
|
+
const t = o.target instanceof S ? o.target : null;
|
|
3863
3867
|
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
3868
|
e !== t && (e.selected = !1);
|
|
3865
3869
|
}));
|
|
@@ -3870,7 +3874,7 @@ let dt = class extends v {
|
|
|
3870
3874
|
`;
|
|
3871
3875
|
}
|
|
3872
3876
|
};
|
|
3873
|
-
|
|
3877
|
+
ut.styles = g`
|
|
3874
3878
|
:host {
|
|
3875
3879
|
display: flex;
|
|
3876
3880
|
flex-direction: row;
|
|
@@ -3878,22 +3882,22 @@ dt.styles = b`
|
|
|
3878
3882
|
gap: var(--spacing-s);
|
|
3879
3883
|
}
|
|
3880
3884
|
`;
|
|
3881
|
-
|
|
3885
|
+
Zt([
|
|
3882
3886
|
a({ reflect: !0 })
|
|
3883
|
-
],
|
|
3884
|
-
|
|
3887
|
+
], ut.prototype, "name", 2);
|
|
3888
|
+
Zt([
|
|
3885
3889
|
a({ reflect: !0 })
|
|
3886
|
-
],
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
],
|
|
3890
|
-
var
|
|
3891
|
-
for (var i =
|
|
3892
|
-
(s = o[
|
|
3893
|
-
return
|
|
3890
|
+
], ut.prototype, "value", 2);
|
|
3891
|
+
ut = Zt([
|
|
3892
|
+
x("o-chipset")
|
|
3893
|
+
], ut);
|
|
3894
|
+
var ti = Object.defineProperty, ei = Object.getOwnPropertyDescriptor, M = (o, t, e, r) => {
|
|
3895
|
+
for (var i = r > 1 ? void 0 : r ? ei(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
3896
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
3897
|
+
return r && i && ti(t, e, i), i;
|
|
3894
3898
|
};
|
|
3895
|
-
const
|
|
3896
|
-
let E = class extends
|
|
3899
|
+
const oi = Tt(v);
|
|
3900
|
+
let E = class extends oi {
|
|
3897
3901
|
constructor() {
|
|
3898
3902
|
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";
|
|
3899
3903
|
}
|
|
@@ -3905,18 +3909,18 @@ let E = class extends ei {
|
|
|
3905
3909
|
this.dispatchEvent(e), e.defaultPrevented && o.preventDefault(), this.selected = t.selected;
|
|
3906
3910
|
}
|
|
3907
3911
|
crossIcon() {
|
|
3908
|
-
const o =
|
|
3912
|
+
const o = J[this.crossIconName].replace(
|
|
3909
3913
|
"<svg",
|
|
3910
3914
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
3911
3915
|
).replace(/stroke=[#"'a-z1-9]*/gi, "");
|
|
3912
|
-
return l`<span class="cross-icon">${
|
|
3916
|
+
return l`<span class="cross-icon">${O(o)}</span>`;
|
|
3913
3917
|
}
|
|
3914
3918
|
strikeThroughImg() {
|
|
3915
|
-
const o =
|
|
3919
|
+
const o = co[this.strikethroughImgName].replace(
|
|
3916
3920
|
"<svg",
|
|
3917
3921
|
'<svg aria-hidden="true" focusable="false" part="strikethrough"'
|
|
3918
3922
|
).replace(/stroke=[#"'a-z1-9]*/gi, "");
|
|
3919
|
-
return
|
|
3923
|
+
return O(o);
|
|
3920
3924
|
}
|
|
3921
3925
|
render() {
|
|
3922
3926
|
const o = this.text;
|
|
@@ -3943,7 +3947,7 @@ let E = class extends ei {
|
|
|
3943
3947
|
`;
|
|
3944
3948
|
}
|
|
3945
3949
|
};
|
|
3946
|
-
E.styles =
|
|
3950
|
+
E.styles = g`
|
|
3947
3951
|
:host {
|
|
3948
3952
|
cursor: pointer;
|
|
3949
3953
|
display: inline-flex;
|
|
@@ -4023,7 +4027,7 @@ E.styles = b`
|
|
|
4023
4027
|
}
|
|
4024
4028
|
|
|
4025
4029
|
.button:focus-visible {
|
|
4026
|
-
${
|
|
4030
|
+
${bt};
|
|
4027
4031
|
}
|
|
4028
4032
|
|
|
4029
4033
|
span.text + span.text::before {
|
|
@@ -4069,40 +4073,40 @@ E.styles = b`
|
|
|
4069
4073
|
}
|
|
4070
4074
|
}
|
|
4071
4075
|
`;
|
|
4072
|
-
|
|
4076
|
+
M([
|
|
4073
4077
|
a({ reflect: !0 })
|
|
4074
4078
|
], E.prototype, "name", 2);
|
|
4075
|
-
|
|
4079
|
+
M([
|
|
4076
4080
|
a({ reflect: !0 })
|
|
4077
4081
|
], E.prototype, "value", 2);
|
|
4078
|
-
|
|
4082
|
+
M([
|
|
4079
4083
|
a({ type: String, reflect: !0 })
|
|
4080
4084
|
], E.prototype, "type", 2);
|
|
4081
|
-
|
|
4085
|
+
M([
|
|
4082
4086
|
a({ type: String, reflect: !0 })
|
|
4083
4087
|
], E.prototype, "href", 2);
|
|
4084
|
-
|
|
4088
|
+
M([
|
|
4085
4089
|
a({ type: String, reflect: !0, attribute: "data-href" })
|
|
4086
4090
|
], E.prototype, "dataHref", 2);
|
|
4087
|
-
|
|
4091
|
+
M([
|
|
4088
4092
|
a({ type: String })
|
|
4089
4093
|
], E.prototype, "text", 2);
|
|
4090
|
-
|
|
4094
|
+
M([
|
|
4091
4095
|
a({ type: Boolean, reflect: !0 })
|
|
4092
4096
|
], E.prototype, "selected", 2);
|
|
4093
|
-
|
|
4097
|
+
M([
|
|
4094
4098
|
a({ type: Boolean, reflect: !0 })
|
|
4095
4099
|
], E.prototype, "disabled", 2);
|
|
4096
|
-
|
|
4100
|
+
M([
|
|
4097
4101
|
a({ type: Boolean, reflect: !0 })
|
|
4098
4102
|
], E.prototype, "fullwidth", 2);
|
|
4099
|
-
E =
|
|
4100
|
-
|
|
4103
|
+
E = M([
|
|
4104
|
+
x("o-filter-chip")
|
|
4101
4105
|
], E);
|
|
4102
|
-
var
|
|
4103
|
-
for (var i = void 0,
|
|
4104
|
-
(s = o[
|
|
4105
|
-
return i &&
|
|
4106
|
+
var ii = Object.defineProperty, N = (o, t, e, r) => {
|
|
4107
|
+
for (var i = void 0, n = o.length - 1, s; n >= 0; n--)
|
|
4108
|
+
(s = o[n]) && (i = s(t, e, i) || i);
|
|
4109
|
+
return i && ii(t, e, i), i;
|
|
4106
4110
|
};
|
|
4107
4111
|
const Wt = class Wt extends v {
|
|
4108
4112
|
constructor() {
|
|
@@ -4150,7 +4154,7 @@ const Wt = class Wt extends v {
|
|
|
4150
4154
|
`;
|
|
4151
4155
|
}
|
|
4152
4156
|
};
|
|
4153
|
-
Wt.styles =
|
|
4157
|
+
Wt.styles = g`
|
|
4154
4158
|
:host {
|
|
4155
4159
|
display: block;
|
|
4156
4160
|
max-width: 100%;
|
|
@@ -4238,41 +4242,41 @@ Wt.styles = b`
|
|
|
4238
4242
|
cursor: pointer;
|
|
4239
4243
|
}
|
|
4240
4244
|
`;
|
|
4241
|
-
let
|
|
4242
|
-
|
|
4245
|
+
let L = Wt;
|
|
4246
|
+
N([
|
|
4243
4247
|
a({ type: String })
|
|
4244
|
-
],
|
|
4245
|
-
|
|
4248
|
+
], L.prototype, "type");
|
|
4249
|
+
N([
|
|
4246
4250
|
a({ type: String })
|
|
4247
|
-
],
|
|
4248
|
-
|
|
4251
|
+
], L.prototype, "titleProduct");
|
|
4252
|
+
N([
|
|
4249
4253
|
a({ type: String })
|
|
4250
|
-
],
|
|
4251
|
-
|
|
4254
|
+
], L.prototype, "volume");
|
|
4255
|
+
N([
|
|
4252
4256
|
a({ type: String })
|
|
4253
|
-
],
|
|
4254
|
-
|
|
4257
|
+
], L.prototype, "perLiter");
|
|
4258
|
+
N([
|
|
4255
4259
|
a({ type: String })
|
|
4256
|
-
],
|
|
4257
|
-
|
|
4260
|
+
], L.prototype, "mainPrice");
|
|
4261
|
+
N([
|
|
4258
4262
|
a({ type: String })
|
|
4259
|
-
],
|
|
4260
|
-
|
|
4263
|
+
], L.prototype, "imageUrl");
|
|
4264
|
+
N([
|
|
4261
4265
|
a({ type: String })
|
|
4262
|
-
],
|
|
4263
|
-
|
|
4266
|
+
], L.prototype, "altImage");
|
|
4267
|
+
N([
|
|
4264
4268
|
a({ type: Boolean })
|
|
4265
|
-
],
|
|
4266
|
-
|
|
4269
|
+
], L.prototype, "fullwidth");
|
|
4270
|
+
N([
|
|
4267
4271
|
a({ type: Function })
|
|
4268
|
-
],
|
|
4269
|
-
customElements.define("mini-tile",
|
|
4270
|
-
var
|
|
4271
|
-
for (var i =
|
|
4272
|
-
(s = o[
|
|
4273
|
-
return
|
|
4272
|
+
], L.prototype, "onClickTile");
|
|
4273
|
+
customElements.define("mini-tile", L);
|
|
4274
|
+
var ri = Object.defineProperty, ni = Object.getOwnPropertyDescriptor, qt = (o, t, e, r) => {
|
|
4275
|
+
for (var i = r > 1 ? void 0 : r ? ni(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
4276
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
4277
|
+
return r && i && ri(t, e, i), i;
|
|
4274
4278
|
};
|
|
4275
|
-
let
|
|
4279
|
+
let vt = class extends v {
|
|
4276
4280
|
constructor() {
|
|
4277
4281
|
super(...arguments), this.variant = "cart", this.text = "";
|
|
4278
4282
|
}
|
|
@@ -4284,7 +4288,7 @@ let pt = class extends v {
|
|
|
4284
4288
|
`;
|
|
4285
4289
|
}
|
|
4286
4290
|
};
|
|
4287
|
-
|
|
4291
|
+
vt.styles = g`
|
|
4288
4292
|
:host([variant]) {
|
|
4289
4293
|
--badge-width: 19px;
|
|
4290
4294
|
display: inline-block;
|
|
@@ -4319,30 +4323,65 @@ pt.styles = b`
|
|
|
4319
4323
|
}
|
|
4320
4324
|
|
|
4321
4325
|
`;
|
|
4322
|
-
|
|
4326
|
+
qt([
|
|
4323
4327
|
a({ type: String, reflect: !0 })
|
|
4324
|
-
],
|
|
4325
|
-
|
|
4328
|
+
], vt.prototype, "variant", 2);
|
|
4329
|
+
qt([
|
|
4326
4330
|
a({ type: String })
|
|
4327
|
-
],
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
],
|
|
4331
|
-
var
|
|
4332
|
-
for (var i =
|
|
4333
|
-
(s = o[
|
|
4334
|
-
return
|
|
4331
|
+
], vt.prototype, "text", 2);
|
|
4332
|
+
vt = qt([
|
|
4333
|
+
x("o-badge")
|
|
4334
|
+
], vt);
|
|
4335
|
+
var si = Object.defineProperty, ai = Object.getOwnPropertyDescriptor, z = (o, t, e, r) => {
|
|
4336
|
+
for (var i = r > 1 ? void 0 : r ? ai(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
4337
|
+
(s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
|
|
4338
|
+
return r && i && si(t, e, i), i;
|
|
4335
4339
|
};
|
|
4336
|
-
let
|
|
4340
|
+
let $ = class extends v {
|
|
4337
4341
|
constructor() {
|
|
4338
|
-
super(...arguments), this.icon = "info", this.text = "Sample text";
|
|
4342
|
+
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;
|
|
4343
|
+
}
|
|
4344
|
+
attributeChangedCallback(o, t, e) {
|
|
4345
|
+
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");
|
|
4346
|
+
}
|
|
4347
|
+
/**
|
|
4348
|
+
* Animate closing toast
|
|
4349
|
+
*/
|
|
4350
|
+
selfCloseAfterDelay() {
|
|
4351
|
+
var o = this;
|
|
4352
|
+
setTimeout(function() {
|
|
4353
|
+
o.animated = !0, o.selfClose();
|
|
4354
|
+
}, this.lifeduration);
|
|
4355
|
+
}
|
|
4356
|
+
/**
|
|
4357
|
+
*
|
|
4358
|
+
*/
|
|
4359
|
+
selfClose() {
|
|
4360
|
+
var o = this;
|
|
4361
|
+
setTimeout(function() {
|
|
4362
|
+
o.remove();
|
|
4363
|
+
}, this.animationduration + 200);
|
|
4364
|
+
}
|
|
4365
|
+
connectedCallback() {
|
|
4366
|
+
var o = this;
|
|
4367
|
+
super.connectedCallback(), setTimeout(() => {
|
|
4368
|
+
o.animated = !1, this.selfCloseAfterDelay();
|
|
4369
|
+
}, 300);
|
|
4370
|
+
}
|
|
4371
|
+
firstUpdated() {
|
|
4372
|
+
var e;
|
|
4373
|
+
var o = this;
|
|
4374
|
+
const t = (e = this.renderRoot) == null ? void 0 : e.querySelector("o-icon-button");
|
|
4375
|
+
t != null && t.addEventListener("click", function() {
|
|
4376
|
+
o.remove();
|
|
4377
|
+
});
|
|
4339
4378
|
}
|
|
4340
4379
|
render() {
|
|
4341
|
-
const t =
|
|
4380
|
+
const t = ho[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
4381
|
return l`
|
|
4343
4382
|
<div class="o-toast">
|
|
4344
4383
|
<div class="o-toast-icon">
|
|
4345
|
-
${
|
|
4384
|
+
${O(t)}
|
|
4346
4385
|
</div>
|
|
4347
4386
|
<div class="o-toast-text">
|
|
4348
4387
|
${this.text}
|
|
@@ -4358,7 +4397,53 @@ let ut = class extends v {
|
|
|
4358
4397
|
`;
|
|
4359
4398
|
}
|
|
4360
4399
|
};
|
|
4361
|
-
|
|
4400
|
+
$.styles = g`
|
|
4401
|
+
:host {
|
|
4402
|
+
--vertical-offset: 24px;
|
|
4403
|
+
--horizontal-offset: 24px;
|
|
4404
|
+
--animation-duration: 500ms;
|
|
4405
|
+
position: fixed;
|
|
4406
|
+
z-index: 30;
|
|
4407
|
+
transition: all var(--animation-duration) ease-in-out;
|
|
4408
|
+
}
|
|
4409
|
+
|
|
4410
|
+
:host([verticalanchor="top"]) {
|
|
4411
|
+
top: var(--vertical-offset);
|
|
4412
|
+
}
|
|
4413
|
+
|
|
4414
|
+
:host([verticalanchor="bottom"]) {
|
|
4415
|
+
bottom: var(--vertical-offset);
|
|
4416
|
+
}
|
|
4417
|
+
|
|
4418
|
+
:host([horizontalanchor="right"]) {
|
|
4419
|
+
right: var(--horizontal-offset);
|
|
4420
|
+
}
|
|
4421
|
+
|
|
4422
|
+
:host([horizontalanchor="center"]) {
|
|
4423
|
+
left: 50%;
|
|
4424
|
+
transform: translateX(-50%);
|
|
4425
|
+
}
|
|
4426
|
+
|
|
4427
|
+
:host([horizontalanchor="left"]) {
|
|
4428
|
+
left: var(--horizontal-offset);
|
|
4429
|
+
}
|
|
4430
|
+
|
|
4431
|
+
:host([animated][animationaxis="horizontal"][horizontalanchor="right"]) {
|
|
4432
|
+
right: -300px;
|
|
4433
|
+
}
|
|
4434
|
+
|
|
4435
|
+
:host([animated][animationaxis="horizontal"][horizontalanchor="left"]) {
|
|
4436
|
+
left: -300px;
|
|
4437
|
+
}
|
|
4438
|
+
|
|
4439
|
+
:host([animated][animationaxis="vertical"][verticalanchor="top"]) {
|
|
4440
|
+
top: -300px;
|
|
4441
|
+
}
|
|
4442
|
+
|
|
4443
|
+
:host([animated][animationaxis="vertical"][verticalanchor="bottom"]) {
|
|
4444
|
+
bottom: -300px;
|
|
4445
|
+
}
|
|
4446
|
+
|
|
4362
4447
|
.o-toast {
|
|
4363
4448
|
background: #fffefe;
|
|
4364
4449
|
padding: var(--spacing-l);
|
|
@@ -4379,12 +4464,36 @@ ut.styles = b`
|
|
|
4379
4464
|
height: 16px;
|
|
4380
4465
|
}
|
|
4381
4466
|
`;
|
|
4382
|
-
|
|
4383
|
-
a({ type: String })
|
|
4384
|
-
],
|
|
4385
|
-
|
|
4386
|
-
a({ type: String })
|
|
4387
|
-
],
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
],
|
|
4467
|
+
z([
|
|
4468
|
+
a({ type: String, reflect: !0 })
|
|
4469
|
+
], $.prototype, "icon", 2);
|
|
4470
|
+
z([
|
|
4471
|
+
a({ type: String, reflect: !0 })
|
|
4472
|
+
], $.prototype, "text", 2);
|
|
4473
|
+
z([
|
|
4474
|
+
a({ type: String, reflect: !0 })
|
|
4475
|
+
], $.prototype, "verticalanchor", 2);
|
|
4476
|
+
z([
|
|
4477
|
+
a({ type: String, reflect: !0 })
|
|
4478
|
+
], $.prototype, "horizontalanchor", 2);
|
|
4479
|
+
z([
|
|
4480
|
+
a({ type: Number, reflect: !0 })
|
|
4481
|
+
], $.prototype, "verticaloffset", 2);
|
|
4482
|
+
z([
|
|
4483
|
+
a({ type: Number, reflect: !0 })
|
|
4484
|
+
], $.prototype, "horizontaloffset", 2);
|
|
4485
|
+
z([
|
|
4486
|
+
a({ type: Number, reflect: !0 })
|
|
4487
|
+
], $.prototype, "animationduration", 2);
|
|
4488
|
+
z([
|
|
4489
|
+
a({ type: String, reflect: !0 })
|
|
4490
|
+
], $.prototype, "animationaxis", 2);
|
|
4491
|
+
z([
|
|
4492
|
+
a({ type: Boolean, reflect: !0 })
|
|
4493
|
+
], $.prototype, "animated", 2);
|
|
4494
|
+
z([
|
|
4495
|
+
a({ type: Number, reflect: !0 })
|
|
4496
|
+
], $.prototype, "lifeduration", 2);
|
|
4497
|
+
$ = z([
|
|
4498
|
+
x("o-toast")
|
|
4499
|
+
], $);
|