@florid-kit/components 0.3.43 → 0.4.0

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/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 G = globalThis, ct = G.ShadowRoot && (G.ShadyCSS === void 0 || G.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ht = Symbol(), bt = /* @__PURE__ */ new WeakMap();
6
+ const X = globalThis, ht = X.ShadowRoot && (X.ShadyCSS === void 0 || X.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, dt = Symbol(), vt = /* @__PURE__ */ new WeakMap();
7
7
  let Et = class {
8
8
  constructor(t, e, n) {
9
- if (this._$cssResult$ = !0, n !== ht) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
9
+ if (this._$cssResult$ = !0, n !== dt) 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 (ct && t === void 0) {
15
+ if (ht && t === void 0) {
16
16
  const n = e !== void 0 && e.length === 1;
17
- n && (t = bt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), n && bt.set(e, t));
17
+ n && (t = vt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), n && vt.set(e, t));
18
18
  }
19
19
  return t;
20
20
  }
@@ -22,33 +22,33 @@ let Et = class {
22
22
  return this.cssText;
23
23
  }
24
24
  };
25
- const Bt = (s) => new Et(typeof s == "string" ? s : s + "", void 0, ht), A = (s, ...t) => {
26
- const e = s.length === 1 ? s[0] : t.reduce((n, o, r) => n + ((i) => {
27
- if (i._$cssResult$ === !0) return i.cssText;
28
- if (typeof i == "number") return i;
29
- throw Error("Value passed to 'css' function must be a 'css' function result: " + i + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
30
- })(o) + s[r + 1], s[0]);
31
- return new Et(e, s, ht);
32
- }, It = (s, t) => {
33
- if (ct) s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
25
+ const It = (s) => new Et(typeof s == "string" ? s : s + "", void 0, dt), A = (s, ...t) => {
26
+ const e = s.length === 1 ? s[0] : t.reduce((n, o, i) => n + ((r) => {
27
+ if (r._$cssResult$ === !0) return r.cssText;
28
+ if (typeof r == "number") return r;
29
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + r + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
30
+ })(o) + s[i + 1], s[0]);
31
+ return new Et(e, s, dt);
32
+ }, Bt = (s, t) => {
33
+ if (ht) s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
34
34
  else for (const e of t) {
35
- const n = document.createElement("style"), o = G.litNonce;
35
+ const n = document.createElement("style"), o = X.litNonce;
36
36
  o !== void 0 && n.setAttribute("nonce", o), n.textContent = e.cssText, s.appendChild(n);
37
37
  }
38
- }, vt = ct ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
38
+ }, bt = ht ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
39
39
  let e = "";
40
40
  for (const n of t.cssRules) e += n.cssText;
41
- return Bt(e);
41
+ return It(e);
42
42
  })(s) : s;
43
43
  /**
44
44
  * @license
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: Ot, defineProperty: Ht, getOwnPropertyDescriptor: Tt, getOwnPropertyNames: Mt, getOwnPropertySymbols: zt, getPrototypeOf: Dt } = Object, C = globalThis, gt = C.trustedTypes, Ut = gt ? gt.emptyScript : "", st = C.reactiveElementPolyfillSupport, R = (s, t) => s, X = { toAttribute(s, t) {
48
+ const { is: Ot, defineProperty: Mt, getOwnPropertyDescriptor: Ht, getOwnPropertyNames: Tt, getOwnPropertySymbols: Dt, getPrototypeOf: Ut } = Object, C = globalThis, gt = C.trustedTypes, zt = gt ? gt.emptyScript : "", nt = C.reactiveElementPolyfillSupport, R = (s, t) => s, J = { toAttribute(s, t) {
49
49
  switch (t) {
50
50
  case Boolean:
51
- s = s ? Ut : null;
51
+ s = s ? zt : null;
52
52
  break;
53
53
  case Object:
54
54
  case Array:
@@ -73,9 +73,9 @@ const { is: Ot, defineProperty: Ht, getOwnPropertyDescriptor: Tt, getOwnProperty
73
73
  }
74
74
  }
75
75
  return e;
76
- } }, dt = (s, t) => !Ot(s, t), yt = { attribute: !0, type: String, converter: X, reflect: !1, useDefault: !1, hasChanged: dt };
76
+ } }, pt = (s, t) => !Ot(s, t), yt = { attribute: !0, type: String, converter: J, reflect: !1, useDefault: !1, hasChanged: pt };
77
77
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), C.litPropertyMetadata ?? (C.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
- let z = class extends HTMLElement {
78
+ let D = class extends HTMLElement {
79
79
  static addInitializer(t) {
80
80
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
81
81
  }
@@ -85,18 +85,18 @@ let z = class extends HTMLElement {
85
85
  static createProperty(t, e = yt) {
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
87
  const n = Symbol(), o = this.getPropertyDescriptor(t, n, e);
88
- o !== void 0 && Ht(this.prototype, t, o);
88
+ o !== void 0 && Mt(this.prototype, t, o);
89
89
  }
90
90
  }
91
91
  static getPropertyDescriptor(t, e, n) {
92
- const { get: o, set: r } = Tt(this.prototype, t) ?? { get() {
92
+ const { get: o, set: i } = Ht(this.prototype, t) ?? { get() {
93
93
  return this[e];
94
- }, set(i) {
95
- this[e] = i;
94
+ }, set(r) {
95
+ this[e] = r;
96
96
  } };
97
- return { get: o, set(i) {
97
+ return { get: o, set(r) {
98
98
  const c = o == null ? void 0 : o.call(this);
99
- r == null || r.call(this, i), this.requestUpdate(t, c, n);
99
+ i == null || i.call(this, r), this.requestUpdate(t, c, n);
100
100
  }, configurable: !0, enumerable: !0 };
101
101
  }
102
102
  static getPropertyOptions(t) {
@@ -104,13 +104,13 @@ let z = class extends HTMLElement {
104
104
  }
105
105
  static _$Ei() {
106
106
  if (this.hasOwnProperty(R("elementProperties"))) return;
107
- const t = Dt(this);
107
+ const t = Ut(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
111
  if (this.hasOwnProperty(R("finalized"))) return;
112
112
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(R("properties"))) {
113
- const e = this.properties, n = [...Mt(e), ...zt(e)];
113
+ const e = this.properties, n = [...Tt(e), ...Dt(e)];
114
114
  for (const o of n) this.createProperty(o, e[o]);
115
115
  }
116
116
  const t = this[Symbol.metadata];
@@ -129,8 +129,8 @@ let z = class extends HTMLElement {
129
129
  const e = [];
130
130
  if (Array.isArray(t)) {
131
131
  const n = new Set(t.flat(1 / 0).reverse());
132
- for (const o of n) e.unshift(vt(o));
133
- } else t !== void 0 && e.push(vt(t));
132
+ for (const o of n) e.unshift(bt(o));
133
+ } else t !== void 0 && e.push(bt(t));
134
134
  return e;
135
135
  }
136
136
  static _$Eu(t, e) {
@@ -159,7 +159,7 @@ let z = class extends HTMLElement {
159
159
  }
160
160
  createRenderRoot() {
161
161
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
162
- return It(t, this.constructor.elementStyles), t;
162
+ return Bt(t, this.constructor.elementStyles), t;
163
163
  }
164
164
  connectedCallback() {
165
165
  var t;
@@ -181,32 +181,32 @@ let z = class extends HTMLElement {
181
181
  this._$AK(t, n);
182
182
  }
183
183
  _$ET(t, e) {
184
- var r;
184
+ var i;
185
185
  const n = this.constructor.elementProperties.get(t), o = this.constructor._$Eu(t, n);
186
186
  if (o !== void 0 && n.reflect === !0) {
187
- const i = (((r = n.converter) == null ? void 0 : r.toAttribute) !== void 0 ? n.converter : X).toAttribute(e, n.type);
188
- this._$Em = t, i == null ? this.removeAttribute(o) : this.setAttribute(o, i), this._$Em = null;
187
+ const r = (((i = n.converter) == null ? void 0 : i.toAttribute) !== void 0 ? n.converter : J).toAttribute(e, n.type);
188
+ this._$Em = t, r == null ? this.removeAttribute(o) : this.setAttribute(o, r), this._$Em = null;
189
189
  }
190
190
  }
191
191
  _$AK(t, e) {
192
- var r, i;
192
+ var i, r;
193
193
  const n = this.constructor, o = n._$Eh.get(t);
194
194
  if (o !== void 0 && this._$Em !== o) {
195
- const c = n.getPropertyOptions(o), l = typeof c.converter == "function" ? { fromAttribute: c.converter } : ((r = c.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? c.converter : X;
196
- this._$Em = o, this[o] = l.fromAttribute(e, c.type) ?? ((i = this._$Ej) == null ? void 0 : i.get(o)) ?? null, this._$Em = null;
195
+ const c = n.getPropertyOptions(o), l = typeof c.converter == "function" ? { fromAttribute: c.converter } : ((i = c.converter) == null ? void 0 : i.fromAttribute) !== void 0 ? c.converter : J;
196
+ this._$Em = o, this[o] = l.fromAttribute(e, c.type) ?? ((r = this._$Ej) == null ? void 0 : r.get(o)) ?? null, this._$Em = null;
197
197
  }
198
198
  }
199
199
  requestUpdate(t, e, n) {
200
200
  var o;
201
201
  if (t !== void 0) {
202
- const r = this.constructor, i = this[t];
203
- if (n ?? (n = r.getPropertyOptions(t)), !((n.hasChanged ?? dt)(i, e) || n.useDefault && n.reflect && i === ((o = this._$Ej) == null ? void 0 : o.get(t)) && !this.hasAttribute(r._$Eu(t, n)))) return;
202
+ const i = this.constructor, r = this[t];
203
+ if (n ?? (n = i.getPropertyOptions(t)), !((n.hasChanged ?? pt)(r, e) || n.useDefault && n.reflect && r === ((o = this._$Ej) == null ? void 0 : o.get(t)) && !this.hasAttribute(i._$Eu(t, n)))) return;
204
204
  this.C(t, e, n);
205
205
  }
206
206
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
207
207
  }
208
- C(t, e, { useDefault: n, reflect: o, wrapped: r }, i) {
209
- n && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, i ?? e ?? this[t]), r !== !0 || i !== void 0) || (this._$AL.has(t) || (this.hasUpdated || n || (e = void 0), this._$AL.set(t, e)), o === !0 && this._$Em !== t && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t));
208
+ C(t, e, { useDefault: n, reflect: o, wrapped: i }, r) {
209
+ n && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, r ?? e ?? this[t]), i !== !0 || r !== void 0) || (this._$AL.has(t) || (this.hasUpdated || n || (e = void 0), this._$AL.set(t, e)), o === !0 && this._$Em !== t && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t));
210
210
  }
211
211
  async _$EP() {
212
212
  this.isUpdatePending = !0;
@@ -226,21 +226,21 @@ let z = class extends HTMLElement {
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 [r, i] of this._$Ep) this[r] = i;
229
+ for (const [i, r] of this._$Ep) this[i] = r;
230
230
  this._$Ep = void 0;
231
231
  }
232
232
  const o = this.constructor.elementProperties;
233
- if (o.size > 0) for (const [r, i] of o) {
234
- const { wrapped: c } = i, l = this[r];
235
- c !== !0 || this._$AL.has(r) || l === void 0 || this.C(r, void 0, i, l);
233
+ if (o.size > 0) for (const [i, r] of o) {
234
+ const { wrapped: c } = r, l = this[i];
235
+ c !== !0 || this._$AL.has(i) || l === void 0 || this.C(i, void 0, r, l);
236
236
  }
237
237
  }
238
238
  let t = !1;
239
239
  const e = this._$AL;
240
240
  try {
241
241
  t = this.shouldUpdate(e), t ? (this.willUpdate(e), (n = this._$EO) == null || n.forEach((o) => {
242
- var r;
243
- return (r = o.hostUpdate) == null ? void 0 : r.call(o);
242
+ var i;
243
+ return (i = o.hostUpdate) == null ? void 0 : i.call(o);
244
244
  }), this.update(e)) : this._$EM();
245
245
  } catch (o) {
246
246
  throw t = !1, this._$EM(), o;
@@ -276,61 +276,61 @@ let z = class extends HTMLElement {
276
276
  firstUpdated(t) {
277
277
  }
278
278
  };
279
- z.elementStyles = [], z.shadowRootOptions = { mode: "open" }, z[R("elementProperties")] = /* @__PURE__ */ new Map(), z[R("finalized")] = /* @__PURE__ */ new Map(), st == null || st({ ReactiveElement: z }), (C.reactiveElementVersions ?? (C.reactiveElementVersions = [])).push("2.1.0");
279
+ D.elementStyles = [], D.shadowRootOptions = { mode: "open" }, D[R("elementProperties")] = /* @__PURE__ */ new Map(), D[R("finalized")] = /* @__PURE__ */ new Map(), nt == null || nt({ ReactiveElement: D }), (C.reactiveElementVersions ?? (C.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 F = globalThis, J = F.trustedTypes, mt = J ? J.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Ct = "$lit$", E = `lit$${Math.random().toFixed(9).slice(2)}$`, Lt = "?" + E, Nt = `<${Lt}>`, O = document, V = () => O.createComment(""), q = (s) => s === null || typeof s != "object" && typeof s != "function", pt = Array.isArray, jt = (s) => pt(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", nt = `[
286
- \f\r]`, j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $t = /-->/g, wt = />/g, k = RegExp(`>|${nt}(?:([^\\s"'>=/]+)(${nt}*=${nt}*(?:[^
287
- \f\r"'\`<>=]|("|')|))|$)`, "g"), xt = /'/g, _t = /"/g, Pt = /^(?:script|style|textarea|title)$/i, Rt = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), d = Rt(1), H = Symbol.for("lit-noChange"), h = Symbol.for("lit-nothing"), At = /* @__PURE__ */ new WeakMap(), B = O.createTreeWalker(O, 129);
285
+ const V = globalThis, Q = V.trustedTypes, mt = Q ? Q.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Ct = "$lit$", E = `lit$${Math.random().toFixed(9).slice(2)}$`, Lt = "?" + E, Nt = `<${Lt}>`, O = document, F = () => O.createComment(""), q = (s) => s === null || typeof s != "object" && typeof s != "function", ut = Array.isArray, jt = (s) => ut(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", ot = `[
286
+ \f\r]`, j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $t = /-->/g, wt = />/g, k = RegExp(`>|${ot}(?:([^\\s"'>=/]+)(${ot}*=${ot}*(?:[^
287
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), xt = /'/g, _t = /"/g, Pt = /^(?:script|style|textarea|title)$/i, Rt = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), d = Rt(1), M = Symbol.for("lit-noChange"), h = Symbol.for("lit-nothing"), At = /* @__PURE__ */ new WeakMap(), I = O.createTreeWalker(O, 129);
288
288
  function kt(s, t) {
289
- if (!pt(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
289
+ if (!ut(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
290
290
  return mt !== void 0 ? mt.createHTML(t) : t;
291
291
  }
292
- const Ft = (s, t) => {
292
+ const Vt = (s, t) => {
293
293
  const e = s.length - 1, n = [];
294
- let o, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", i = j;
294
+ let o, i = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", r = j;
295
295
  for (let c = 0; c < e; c++) {
296
296
  const l = s[c];
297
- let f, b, p = -1, x = 0;
298
- for (; x < l.length && (i.lastIndex = x, b = i.exec(l), b !== null); ) x = i.lastIndex, i === j ? b[1] === "!--" ? i = $t : b[1] !== void 0 ? i = wt : b[2] !== void 0 ? (Pt.test(b[2]) && (o = RegExp("</" + b[2], "g")), i = k) : b[3] !== void 0 && (i = k) : i === k ? b[0] === ">" ? (i = o ?? j, p = -1) : b[1] === void 0 ? p = -2 : (p = i.lastIndex - b[2].length, f = b[1], i = b[3] === void 0 ? k : b[3] === '"' ? _t : xt) : i === _t || i === xt ? i = k : i === $t || i === wt ? i = j : (i = k, o = void 0);
299
- const S = i === k && s[c + 1].startsWith("/>") ? " " : "";
300
- r += i === j ? l + Nt : p >= 0 ? (n.push(f), l.slice(0, p) + Ct + l.slice(p) + E + S) : l + E + (p === -2 ? c : S);
297
+ let f, v, p = -1, x = 0;
298
+ for (; x < l.length && (r.lastIndex = x, v = r.exec(l), v !== null); ) x = r.lastIndex, r === j ? v[1] === "!--" ? r = $t : v[1] !== void 0 ? r = wt : v[2] !== void 0 ? (Pt.test(v[2]) && (o = RegExp("</" + v[2], "g")), r = k) : v[3] !== void 0 && (r = k) : r === k ? v[0] === ">" ? (r = o ?? j, p = -1) : v[1] === void 0 ? p = -2 : (p = r.lastIndex - v[2].length, f = v[1], r = v[3] === void 0 ? k : v[3] === '"' ? _t : xt) : r === _t || r === xt ? r = k : r === $t || r === wt ? r = j : (r = k, o = void 0);
299
+ const S = r === k && s[c + 1].startsWith("/>") ? " " : "";
300
+ i += r === j ? l + Nt : p >= 0 ? (n.push(f), l.slice(0, p) + Ct + l.slice(p) + E + S) : l + E + (p === -2 ? c : S);
301
301
  }
302
- return [kt(s, r + (s[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
302
+ return [kt(s, i + (s[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
303
303
  };
304
304
  class Z {
305
305
  constructor({ strings: t, _$litType$: e }, n) {
306
306
  let o;
307
307
  this.parts = [];
308
- let r = 0, i = 0;
309
- const c = t.length - 1, l = this.parts, [f, b] = Ft(t, e);
310
- if (this.el = Z.createElement(f, n), B.currentNode = this.el.content, e === 2 || e === 3) {
308
+ let i = 0, r = 0;
309
+ const c = t.length - 1, l = this.parts, [f, v] = Vt(t, e);
310
+ if (this.el = Z.createElement(f, n), I.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 (; (o = B.nextNode()) !== null && l.length < c; ) {
314
+ for (; (o = I.nextNode()) !== null && l.length < c; ) {
315
315
  if (o.nodeType === 1) {
316
316
  if (o.hasAttributes()) for (const p of o.getAttributeNames()) if (p.endsWith(Ct)) {
317
- const x = b[i++], S = o.getAttribute(p).split(E), K = /([.?@])?(.*)/.exec(x);
318
- l.push({ type: 1, index: r, name: K[2], strings: S, ctor: K[1] === "." ? qt : K[1] === "?" ? Zt : K[1] === "@" ? Wt : Y }), o.removeAttribute(p);
319
- } else p.startsWith(E) && (l.push({ type: 6, index: r }), o.removeAttribute(p));
317
+ const x = v[r++], S = o.getAttribute(p).split(E), K = /([.?@])?(.*)/.exec(x);
318
+ l.push({ type: 1, index: i, name: K[2], strings: S, ctor: K[1] === "." ? qt : K[1] === "?" ? Zt : K[1] === "@" ? Wt : Y }), o.removeAttribute(p);
319
+ } else p.startsWith(E) && (l.push({ type: 6, index: i }), o.removeAttribute(p));
320
320
  if (Pt.test(o.tagName)) {
321
321
  const p = o.textContent.split(E), x = p.length - 1;
322
322
  if (x > 0) {
323
- o.textContent = J ? J.emptyScript : "";
324
- for (let S = 0; S < x; S++) o.append(p[S], V()), B.nextNode(), l.push({ type: 2, index: ++r });
325
- o.append(p[x], V());
323
+ o.textContent = Q ? Q.emptyScript : "";
324
+ for (let S = 0; S < x; S++) o.append(p[S], F()), I.nextNode(), l.push({ type: 2, index: ++i });
325
+ o.append(p[x], F());
326
326
  }
327
327
  }
328
- } else if (o.nodeType === 8) if (o.data === Lt) l.push({ type: 2, index: r });
328
+ } else if (o.nodeType === 8) if (o.data === Lt) l.push({ type: 2, index: i });
329
329
  else {
330
330
  let p = -1;
331
- for (; (p = o.data.indexOf(E, p + 1)) !== -1; ) l.push({ type: 7, index: r }), p += E.length - 1;
331
+ for (; (p = o.data.indexOf(E, p + 1)) !== -1; ) l.push({ type: 7, index: i }), p += E.length - 1;
332
332
  }
333
- r++;
333
+ i++;
334
334
  }
335
335
  }
336
336
  static createElement(t, e) {
@@ -338,14 +338,14 @@ class Z {
338
338
  return n.innerHTML = t, n;
339
339
  }
340
340
  }
341
- function D(s, t, e = s, n) {
342
- var i, c;
343
- if (t === H) return t;
344
- let o = n !== void 0 ? (i = e._$Co) == null ? void 0 : i[n] : e._$Cl;
345
- const r = q(t) ? void 0 : t._$litDirective$;
346
- return (o == null ? void 0 : o.constructor) !== r && ((c = o == null ? void 0 : o._$AO) == null || c.call(o, !1), r === void 0 ? o = void 0 : (o = new r(s), o._$AT(s, e, n)), n !== void 0 ? (e._$Co ?? (e._$Co = []))[n] = o : e._$Cl = o), o !== void 0 && (t = D(s, o._$AS(s, t.values), o, n)), t;
341
+ function U(s, t, e = s, n) {
342
+ var r, c;
343
+ if (t === M) return t;
344
+ let o = n !== void 0 ? (r = e._$Co) == null ? void 0 : r[n] : e._$Cl;
345
+ const i = q(t) ? void 0 : t._$litDirective$;
346
+ return (o == null ? void 0 : o.constructor) !== i && ((c = o == null ? void 0 : o._$AO) == null || c.call(o, !1), i === void 0 ? o = void 0 : (o = new i(s), o._$AT(s, e, n)), n !== void 0 ? (e._$Co ?? (e._$Co = []))[n] = o : e._$Cl = o), o !== void 0 && (t = U(s, o._$AS(s, t.values), o, n)), t;
347
347
  }
348
- class Vt {
348
+ class Ft {
349
349
  constructor(t, e) {
350
350
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
351
351
  }
@@ -357,23 +357,23 @@ class Vt {
357
357
  }
358
358
  u(t) {
359
359
  const { el: { content: e }, parts: n } = this._$AD, o = ((t == null ? void 0 : t.creationScope) ?? O).importNode(e, !0);
360
- B.currentNode = o;
361
- let r = B.nextNode(), i = 0, c = 0, l = n[0];
360
+ I.currentNode = o;
361
+ let i = I.nextNode(), r = 0, c = 0, l = n[0];
362
362
  for (; l !== void 0; ) {
363
- if (i === l.index) {
363
+ if (r === l.index) {
364
364
  let f;
365
- l.type === 2 ? f = new W(r, r.nextSibling, this, t) : l.type === 1 ? f = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (f = new Kt(r, this, t)), this._$AV.push(f), l = n[++c];
365
+ l.type === 2 ? f = new G(i, i.nextSibling, this, t) : l.type === 1 ? f = new l.ctor(i, l.name, l.strings, this, t) : l.type === 6 && (f = new Gt(i, this, t)), this._$AV.push(f), l = n[++c];
366
366
  }
367
- i !== (l == null ? void 0 : l.index) && (r = B.nextNode(), i++);
367
+ r !== (l == null ? void 0 : l.index) && (i = I.nextNode(), r++);
368
368
  }
369
- return B.currentNode = O, o;
369
+ return I.currentNode = O, o;
370
370
  }
371
371
  p(t) {
372
372
  let e = 0;
373
373
  for (const n of this._$AV) n !== void 0 && (n.strings !== void 0 ? (n._$AI(t, n, e), e += n.strings.length - 2) : n._$AI(t[e])), e++;
374
374
  }
375
375
  }
376
- class W {
376
+ class G {
377
377
  get _$AU() {
378
378
  var t;
379
379
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
@@ -393,7 +393,7 @@ class W {
393
393
  return this._$AB;
394
394
  }
395
395
  _$AI(t, e = this) {
396
- t = D(this, t, e), q(t) ? t === h || t == null || t === "" ? (this._$AH !== h && this._$AR(), this._$AH = h) : t !== this._$AH && t !== H && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : jt(t) ? this.k(t) : this._(t);
396
+ t = U(this, t, e), q(t) ? t === h || t == null || t === "" ? (this._$AH !== h && this._$AR(), this._$AH = h) : t !== this._$AH && t !== M && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : jt(t) ? this.k(t) : this._(t);
397
397
  }
398
398
  O(t) {
399
399
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -405,12 +405,12 @@ class W {
405
405
  this._$AH !== h && q(this._$AH) ? this._$AA.nextSibling.data = t : this.T(O.createTextNode(t)), this._$AH = t;
406
406
  }
407
407
  $(t) {
408
- var r;
408
+ var i;
409
409
  const { values: e, _$litType$: n } = t, o = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = Z.createElement(kt(n.h, n.h[0]), this.options)), n);
410
- if (((r = this._$AH) == null ? void 0 : r._$AD) === o) this._$AH.p(e);
410
+ if (((i = this._$AH) == null ? void 0 : i._$AD) === o) this._$AH.p(e);
411
411
  else {
412
- const i = new Vt(o, this), c = i.u(this.options);
413
- i.p(e), this.T(c), this._$AH = i;
412
+ const r = new Ft(o, this), c = r.u(this.options);
413
+ r.p(e), this.T(c), this._$AH = r;
414
414
  }
415
415
  }
416
416
  _$AC(t) {
@@ -418,10 +418,10 @@ class W {
418
418
  return e === void 0 && At.set(t.strings, e = new Z(t)), e;
419
419
  }
420
420
  k(t) {
421
- pt(this._$AH) || (this._$AH = [], this._$AR());
421
+ ut(this._$AH) || (this._$AH = [], this._$AR());
422
422
  const e = this._$AH;
423
423
  let n, o = 0;
424
- for (const r of t) o === e.length ? e.push(n = new W(this.O(V()), this.O(V()), this, this.options)) : n = e[o], n._$AI(r), o++;
424
+ for (const i of t) o === e.length ? e.push(n = new G(this.O(F()), this.O(F()), this, this.options)) : n = e[o], n._$AI(i), o++;
425
425
  o < e.length && (this._$AR(n && n._$AB.nextSibling, o), e.length = o);
426
426
  }
427
427
  _$AR(t = this._$AA.nextSibling, e) {
@@ -443,19 +443,19 @@ class Y {
443
443
  get _$AU() {
444
444
  return this._$AM._$AU;
445
445
  }
446
- constructor(t, e, n, o, r) {
447
- this.type = 1, this._$AH = h, this._$AN = void 0, this.element = t, this.name = e, this._$AM = o, this.options = r, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = h;
446
+ constructor(t, e, n, o, i) {
447
+ this.type = 1, this._$AH = h, this._$AN = void 0, this.element = t, this.name = e, this._$AM = o, this.options = i, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = h;
448
448
  }
449
449
  _$AI(t, e = this, n, o) {
450
- const r = this.strings;
451
- let i = !1;
452
- if (r === void 0) t = D(this, t, e, 0), i = !q(t) || t !== this._$AH && t !== H, i && (this._$AH = t);
450
+ const i = this.strings;
451
+ let r = !1;
452
+ if (i === void 0) t = U(this, t, e, 0), r = !q(t) || t !== this._$AH && t !== M, r && (this._$AH = t);
453
453
  else {
454
454
  const c = t;
455
455
  let l, f;
456
- for (t = r[0], l = 0; l < r.length - 1; l++) f = D(this, c[n + l], e, l), f === H && (f = this._$AH[l]), i || (i = !q(f) || f !== this._$AH[l]), f === h ? t = h : t !== h && (t += (f ?? "") + r[l + 1]), this._$AH[l] = f;
456
+ for (t = i[0], l = 0; l < i.length - 1; l++) f = U(this, c[n + l], e, l), f === M && (f = this._$AH[l]), r || (r = !q(f) || f !== this._$AH[l]), f === h ? t = h : t !== h && (t += (f ?? "") + i[l + 1]), this._$AH[l] = f;
457
457
  }
458
- i && !o && this.j(t);
458
+ r && !o && this.j(t);
459
459
  }
460
460
  j(t) {
461
461
  t === h ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
@@ -478,20 +478,20 @@ class Zt extends Y {
478
478
  }
479
479
  }
480
480
  class Wt extends Y {
481
- constructor(t, e, n, o, r) {
482
- super(t, e, n, o, r), this.type = 5;
481
+ constructor(t, e, n, o, i) {
482
+ super(t, e, n, o, i), this.type = 5;
483
483
  }
484
484
  _$AI(t, e = this) {
485
- if ((t = D(this, t, e, 0) ?? h) === H) return;
486
- const n = this._$AH, o = t === h && n !== h || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, r = t !== h && (n === h || o);
487
- o && this.element.removeEventListener(this.name, this, n), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
485
+ if ((t = U(this, t, e, 0) ?? h) === M) return;
486
+ const n = this._$AH, o = t === h && n !== h || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, i = t !== h && (n === h || o);
487
+ o && this.element.removeEventListener(this.name, this, n), i && this.element.addEventListener(this.name, this, t), this._$AH = t;
488
488
  }
489
489
  handleEvent(t) {
490
490
  var e;
491
491
  typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
492
492
  }
493
493
  }
494
- class Kt {
494
+ class Gt {
495
495
  constructor(t, e, n) {
496
496
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = n;
497
497
  }
@@ -499,17 +499,17 @@ class Kt {
499
499
  return this._$AM._$AU;
500
500
  }
501
501
  _$AI(t) {
502
- D(this, t);
502
+ U(this, t);
503
503
  }
504
504
  }
505
- const ot = F.litHtmlPolyfillSupport;
506
- ot == null || ot(Z, W), (F.litHtmlVersions ?? (F.litHtmlVersions = [])).push("3.3.0");
507
- const Gt = (s, t, e) => {
505
+ const rt = V.litHtmlPolyfillSupport;
506
+ rt == null || rt(Z, G), (V.litHtmlVersions ?? (V.litHtmlVersions = [])).push("3.3.0");
507
+ const Kt = (s, t, e) => {
508
508
  const n = (e == null ? void 0 : e.renderBefore) ?? t;
509
509
  let o = n._$litPart$;
510
510
  if (o === void 0) {
511
- const r = (e == null ? void 0 : e.renderBefore) ?? null;
512
- n._$litPart$ = o = new W(t.insertBefore(V(), r), r, void 0, e ?? {});
511
+ const i = (e == null ? void 0 : e.renderBefore) ?? null;
512
+ n._$litPart$ = o = new G(t.insertBefore(F(), i), i, void 0, e ?? {});
513
513
  }
514
514
  return o._$AI(s), o;
515
515
  };
@@ -518,8 +518,8 @@ const Gt = (s, t, e) => {
518
518
  * Copyright 2017 Google LLC
519
519
  * SPDX-License-Identifier: BSD-3-Clause
520
520
  */
521
- const I = globalThis;
522
- let m = class extends z {
521
+ const B = globalThis;
522
+ let m = class extends D {
523
523
  constructor() {
524
524
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
525
525
  }
@@ -530,7 +530,7 @@ let m = class extends z {
530
530
  }
531
531
  update(t) {
532
532
  const e = this.render();
533
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Gt(e, this.renderRoot, this.renderOptions);
533
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Kt(e, this.renderRoot, this.renderOptions);
534
534
  }
535
535
  connectedCallback() {
536
536
  var t;
@@ -541,20 +541,20 @@ let m = class extends z {
541
541
  super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
542
542
  }
543
543
  render() {
544
- return H;
544
+ return M;
545
545
  }
546
546
  };
547
547
  var St;
548
- m._$litElement$ = !0, m.finalized = !0, (St = I.litElementHydrateSupport) == null || St.call(I, { LitElement: m });
549
- const it = I.litElementPolyfillSupport;
548
+ m._$litElement$ = !0, m.finalized = !0, (St = B.litElementHydrateSupport) == null || St.call(B, { LitElement: m });
549
+ const it = B.litElementPolyfillSupport;
550
550
  it == null || it({ LitElement: m });
551
- (I.litElementVersions ?? (I.litElementVersions = [])).push("4.2.0");
551
+ (B.litElementVersions ?? (B.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 T = (s) => (t, e) => {
557
+ const H = (s) => (t, e) => {
558
558
  e !== void 0 ? e.addInitializer(() => {
559
559
  customElements.define(s, t);
560
560
  }) : customElements.define(s, t);
@@ -564,31 +564,31 @@ const T = (s) => (t, e) => {
564
564
  * Copyright 2017 Google LLC
565
565
  * SPDX-License-Identifier: BSD-3-Clause
566
566
  */
567
- const Xt = { attribute: !0, type: String, converter: X, reflect: !1, hasChanged: dt }, Jt = (s = Xt, t, e) => {
567
+ const Xt = { attribute: !0, type: String, converter: J, reflect: !1, hasChanged: pt }, Jt = (s = Xt, t, e) => {
568
568
  const { kind: n, metadata: o } = e;
569
- let r = globalThis.litPropertyMetadata.get(o);
570
- if (r === void 0 && globalThis.litPropertyMetadata.set(o, r = /* @__PURE__ */ new Map()), n === "setter" && ((s = Object.create(s)).wrapped = !0), r.set(e.name, s), n === "accessor") {
571
- const { name: i } = e;
569
+ let i = globalThis.litPropertyMetadata.get(o);
570
+ if (i === void 0 && globalThis.litPropertyMetadata.set(o, i = /* @__PURE__ */ new Map()), n === "setter" && ((s = Object.create(s)).wrapped = !0), i.set(e.name, s), n === "accessor") {
571
+ const { name: r } = e;
572
572
  return { set(c) {
573
573
  const l = t.get.call(this);
574
- t.set.call(this, c), this.requestUpdate(i, l, s);
574
+ t.set.call(this, c), this.requestUpdate(r, l, s);
575
575
  }, init(c) {
576
- return c !== void 0 && this.C(i, void 0, s, c), c;
576
+ return c !== void 0 && this.C(r, void 0, s, c), c;
577
577
  } };
578
578
  }
579
579
  if (n === "setter") {
580
- const { name: i } = e;
580
+ const { name: r } = e;
581
581
  return function(c) {
582
- const l = this[i];
583
- t.call(this, c), this.requestUpdate(i, l, s);
582
+ const l = this[r];
583
+ t.call(this, c), this.requestUpdate(r, l, s);
584
584
  };
585
585
  }
586
586
  throw Error("Unsupported decorator location: " + n);
587
587
  };
588
588
  function a(s) {
589
- return (t, e) => typeof e == "object" ? Jt(s, t, e) : ((n, o, r) => {
590
- const i = o.hasOwnProperty(r);
591
- return o.constructor.createProperty(r, n), i ? Object.getOwnPropertyDescriptor(o, r) : void 0;
589
+ return (t, e) => typeof e == "object" ? Jt(s, t, e) : ((n, o, i) => {
590
+ const r = o.hasOwnProperty(i);
591
+ return o.constructor.createProperty(i, n), r ? Object.getOwnPropertyDescriptor(o, i) : void 0;
592
592
  })(s, t, e);
593
593
  }
594
594
  /**
@@ -614,12 +614,12 @@ A`
614
614
  * Copyright 2023 Google LLC
615
615
  * SPDX-License-Identifier: Apache-2.0
616
616
  */
617
- const ut = Symbol("internals"), rt = Symbol("privateInternals");
617
+ const ft = Symbol("internals"), at = Symbol("privateInternals");
618
618
  function te(s) {
619
619
  var t;
620
620
  class e extends s {
621
- get [(t = ut, t)]() {
622
- return this[rt] || (this[rt] = this.attachInternals()), this[rt];
621
+ get [(t = ft, t)]() {
622
+ return this[at] || (this[at] = this.attachInternals()), this[at];
623
623
  }
624
624
  }
625
625
  return e;
@@ -633,15 +633,15 @@ function ee(s) {
633
633
  s.addInitializer((t) => {
634
634
  const e = t;
635
635
  e.addEventListener("click", async (n) => {
636
- const { type: o, [ut]: r } = e, { form: i } = r;
637
- if (!(!i || o === "button") && (await new Promise((c) => {
636
+ const { type: o, [ft]: i } = e, { form: r } = i;
637
+ if (!(!r || o === "button") && (await new Promise((c) => {
638
638
  setTimeout(c);
639
639
  }), !n.defaultPrevented)) {
640
640
  if (o === "reset") {
641
- i.reset();
641
+ r.reset();
642
642
  return;
643
643
  }
644
- i.addEventListener(
644
+ r.addEventListener(
645
645
  "submit",
646
646
  (c) => {
647
647
  Object.defineProperty(c, "submitter", {
@@ -651,96 +651,46 @@ function ee(s) {
651
651
  });
652
652
  },
653
653
  { capture: !0, once: !0 }
654
- ), r.setFormValue(e.value), i.requestSubmit();
654
+ ), i.setFormValue(e.value), r.requestSubmit();
655
655
  }
656
656
  });
657
657
  });
658
658
  }
659
- /**
660
- * @license
661
- * Copyright 2017 Google LLC
662
- * SPDX-License-Identifier: BSD-3-Clause
663
- */
664
- const se = { CHILD: 2 }, ne = (s) => (...t) => ({ _$litDirective$: s, values: t });
665
- class oe {
666
- constructor(t) {
667
- }
668
- get _$AU() {
669
- return this._$AM._$AU;
670
- }
671
- _$AT(t, e, n) {
672
- this._$Ct = t, this._$AM = e, this._$Ci = n;
673
- }
674
- _$AS(t, e) {
675
- return this.update(t, e);
676
- }
677
- update(t, e) {
678
- return this.render(...e);
679
- }
680
- }
681
- /**
682
- * @license
683
- * Copyright 2017 Google LLC
684
- * SPDX-License-Identifier: BSD-3-Clause
685
- */
686
- class at extends oe {
687
- constructor(t) {
688
- if (super(t), this.it = h, t.type !== se.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
689
- }
690
- render(t) {
691
- if (t === h || t == null) return this._t = void 0, this.it = t;
692
- if (t === H) return t;
693
- if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
694
- if (t === this.it) return this._t;
695
- this.it = t;
696
- const e = [t];
697
- return e.raw = e, this._t = { _$litType$: this.constructor.resultType, strings: e, values: [] };
698
- }
699
- }
700
- at.directiveName = "unsafeHTML", at.resultType = 1;
701
- /**
702
- * @license
703
- * Copyright 2017 Google LLC
704
- * SPDX-License-Identifier: BSD-3-Clause
705
- */
706
- class lt extends at {
707
- }
708
- lt.directiveName = "unsafeSVG", lt.resultType = 2;
709
- const Q = ne(lt), ie = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
659
+ const se = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
710
660
  <path d="M8 3.6275C7.06799 0.971489 3.25399 -0.0226278 1.67414 2.30983C0.0877404 4.65197 1.67414 6.99412 2.62598 8.33249C3.0147 8.87905 8 14 8 14C8 14 12.9853 8.87905 13.374 8.33249C14.3259 6.99412 15.9123 4.65197 14.3259 2.30983C12.746 -0.0226277 8.97167 0.971489 8 3.6275Z" stroke="#3F2B2E" stroke-linecap="round"/>
711
661
  </svg>
712
- `, re = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
662
+ `, ne = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
713
663
  <path d="M16 8L4 0V16L16 8Z" fill="#3F2B2E"/>
714
664
  </svg>
715
- `, ae = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
665
+ `, oe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
716
666
  <path d="M12.2266 8.16162C11.0953 9.26599 8.72489 11.8788 5.11546 16L4.63062 15.7172C5.78886 13.4007 7.17607 10.8283 8.79223 8C7.17607 5.17172 5.78886 2.59933 4.63062 0.282827L5.11546 0C8.72489 4.12121 11.0953 6.73401 12.2266 7.83838V8.16162Z" fill="#3F2B2E"/>
717
667
  </svg>
718
- `, le = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
668
+ `, re = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
719
669
  <path d="M5 7.83838C6.02128 6.73401 8.16109 4.12121 11.4195 0L11.8571 0.282829C10.8116 2.59933 9.55927 5.17172 8.1003 8C9.55927 10.8283 10.8115 13.4007 11.8571 15.7172L11.4195 16C8.16109 11.8788 6.02128 9.266 5 8.16162L5 7.83838Z" fill="#3F2B2E"/>
720
670
  </svg>
721
- `, ce = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
671
+ `, ie = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
722
672
  <path d="M12.2834 14.4585L7.98873 11.3928L3.69404 14.4585L5.33977 9.4972L1 6.39639H6.36554L8 1.4585L9.63446 6.39639H15L10.6602 9.4972L12.306 14.4585H12.2834ZM7.98873 10.328L10.6602 12.2353L9.64573 9.15787L12.2721 7.28568H9.02576L8 4.17317L6.97424 7.28568H3.72786L6.35427 9.15787L5.33977 12.2353L8.01127 10.328H7.98873Z" fill="#3F2B2E"/>
723
673
  </svg>
724
- `, he = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
674
+ `, ae = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
725
675
  <path d="M15 6.43789H9.63446L8 1.5L6.36554 6.43789H1L5.33977 9.5387L3.69404 14.5L7.98873 11.4343L12.2834 14.5H12.306L10.6602 9.5387L15 6.43789ZM6.36554 11.5396V7.32718H6.97424L8 4.21467L9.02576 7.32718H12.2721L9.64573 9.19937L10.6602 12.2768L8 10.3812L6.36554 11.5513V11.5396Z" fill="#3F2B2E"/>
726
676
  </svg>
727
- `, de = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
677
+ `, le = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
728
678
  <path d="M15 6.39639H9.63446L8 1.4585L6.36554 6.39639H1L5.33977 9.4972L3.69404 14.4585L7.98873 11.3928L12.2834 14.4585L10.6377 9.4972L14.9775 6.39639H15ZM10.6715 12.2353L8.05636 10.3631V4.32528L9.03704 7.27398H12.2834L9.65701 9.14616L10.6715 12.2236V12.2353Z" fill="#3F2B2E"/>
729
679
  </svg>
730
- `, pe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
680
+ `, ce = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
731
681
  <path d="M15 6.43789H9.63446L8 1.5L6.36554 6.43789H1L5.33977 9.5387L3.69404 14.5L7.98873 11.4343L9.46538 12.4874L12.2834 14.5H12.306L10.6602 9.5387L15 6.43789ZM9.46538 11.4226V7.32718H12.2721L9.64573 9.19937L10.6602 12.2768L9.46538 11.4226Z" fill="#3F2B2E"/>
732
682
  </svg>
733
- `, ue = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
683
+ `, he = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
734
684
  <path d="M12.2834 14.4585L7.98873 11.3928L3.69404 14.4585L5.33977 9.4972L1 6.39639H6.36554L8 1.4585L9.63446 6.39639H15L10.6602 9.4972L12.306 14.4585H12.2834Z" fill="#3F2B2E"/>
735
685
  </svg>
736
- `, fe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
686
+ `, de = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
737
687
  <path d="M2 2L14 14" stroke="#3F2B2E"/>
738
688
  <path d="M14 2L2 14" stroke="#3F2B2E"/>
739
689
  </svg>
740
- `, be = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
690
+ `, pe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
741
691
  <path d="M7.12506 1C10.5018 1 13.2509 3.74834 13.251 7.125C13.2511 8.59738 12.7172 10.0206 11.7491 11.1299L14.8731 14.2539C15.0433 14.4253 15.0435 14.7018 14.8731 14.873C14.7913 14.9555 14.6797 15.002 14.5635 15.002C14.4475 15.0019 14.3357 14.9554 14.254 14.873L11.1309 11.749C10.0555 12.6818 8.6564 13.251 7.12506 13.251C3.7484 13.2508 1.00006 10.5017 1.00006 7.125C1.00025 3.74846 3.74852 1.00019 7.12506 1ZM7.12506 1.875C4.22971 1.87522 1.87506 4.23058 1.87506 7.12598C1.87532 10.0212 4.22987 12.3758 7.12506 12.376C10.0204 12.376 12.3758 10.0213 12.376 7.12598C12.376 4.23044 10.0206 1.875 7.12506 1.875Z" fill="#3F2B2E"/>
742
692
  </svg>
743
- `, ve = `<?xml version="1.0" encoding="utf-8"?>
693
+ `, ue = `<?xml version="1.0" encoding="utf-8"?>
744
694
  <!-- Generator: $$$/GeneralStr/196=Adobe Illustrator 27.6.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
745
695
  <svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
746
696
  viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve">
@@ -750,7 +700,7 @@ const Q = ne(lt), ie = `<svg width="16" height="16" viewBox="0 0 16 16" fill="no
750
700
  <path class="st0" d="M27.3,19.3h-6.7v-6.7c0-0.4-0.3-0.7-0.7-0.7s-0.7,0.3-0.7,0.7v6.7h-6.7c-0.4,0-0.7,0.3-0.7,0.7s0.3,0.7,0.7,0.7
751
701
  h6.7v6.7c0,0.4,0.3,0.7,0.7,0.7s0.7-0.3,0.7-0.7v-6.7h6.7c0.4,0,0.7-0.3,0.7-0.7S27.7,19.3,27.3,19.3z"/>
752
702
  </svg>
753
- `, ge = `<?xml version="1.0" encoding="utf-8"?>
703
+ `, fe = `<?xml version="1.0" encoding="utf-8"?>
754
704
  <!-- Generator: $$$/GeneralStr/196=Adobe Illustrator 27.6.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
755
705
  <svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
756
706
  viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve">
@@ -759,247 +709,81 @@ const Q = ne(lt), ie = `<svg width="16" height="16" viewBox="0 0 16 16" fill="no
759
709
  </style>
760
710
  <path class="st0" d="M27.3,20.7H12.7c-0.4,0-0.7-0.3-0.7-0.7s0.3-0.7,0.7-0.7h14.7c0.4,0,0.7,0.3,0.7,0.7S27.7,20.7,27.3,20.7z"/>
761
711
  </svg>
762
- `, ft = {
763
- wishlist: ie,
764
- playerv: re,
765
- chevronRight: ae,
766
- chevronLeft: le,
767
- icoPlus: ve,
768
- icoMinus: ge,
769
- "star-0": ce,
770
- "star-25": he,
771
- "star-50": de,
772
- "star-75": pe,
773
- "star-100": ue,
774
- cross: fe,
775
- search: be
712
+ `, tt = {
713
+ wishlist: se,
714
+ playerv: ne,
715
+ chevronRight: oe,
716
+ chevronLeft: re,
717
+ icoPlus: ue,
718
+ icoMinus: fe,
719
+ "star-0": ie,
720
+ "star-25": ae,
721
+ "star-50": le,
722
+ "star-75": ce,
723
+ "star-100": he,
724
+ cross: de,
725
+ search: pe
776
726
  };
777
- var ye = Object.defineProperty, me = Object.getOwnPropertyDescriptor, L = (s, t, e, n) => {
778
- for (var o = n > 1 ? void 0 : n ? me(t, e) : t, r = s.length - 1, i; r >= 0; r--)
779
- (i = s[r]) && (o = (n ? i(t, e, o) : i(o)) || o);
780
- return n && o && ye(t, e, o), o;
781
- };
782
- let $ = class extends m {
783
- constructor() {
784
- super(...arguments), this.bgstyle = "background-light", this.size = "medium", this.status = "empty", this.type = "button", this.strokewidth = "1", this.icon = "wishlist", this.disabled = !1;
727
+ /**
728
+ * @license
729
+ * Copyright 2017 Google LLC
730
+ * SPDX-License-Identifier: BSD-3-Clause
731
+ */
732
+ const ve = { CHILD: 2 }, be = (s) => (...t) => ({ _$litDirective$: s, values: t });
733
+ class ge {
734
+ constructor(t) {
785
735
  }
786
- updated(s) {
787
- super.updated(s), this.style.setProperty("--icon-stroke-width", this.strokewidth);
736
+ get _$AU() {
737
+ return this._$AM._$AU;
788
738
  }
789
- render() {
790
- const s = ft[this.icon] ?? "", t = `icon-${this.icon}`, e = s.replace(
791
- "<svg",
792
- '<svg aria-hidden="true" focusable="false" part="svg"'
793
- );
794
- return d`
795
- ${this.type === "span" ? d`
796
- <span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
797
- ${Q(e)}
798
- </span>
799
- ` : d`
800
- <button
801
- type="button"
802
- aria-label="icon"
803
- class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}"
804
- ?disabled="${this.disabled}"
805
- >
806
- ${Q(e)}
807
- </button>
808
- `}
809
- `;
739
+ _$AT(t, e, n) {
740
+ this._$Ct = t, this._$AM = e, this._$Ci = n;
810
741
  }
742
+ _$AS(t, e) {
743
+ return this.update(t, e);
744
+ }
745
+ update(t, e) {
746
+ return this.render(...e);
747
+ }
748
+ }
749
+ /**
750
+ * @license
751
+ * Copyright 2017 Google LLC
752
+ * SPDX-License-Identifier: BSD-3-Clause
753
+ */
754
+ class lt extends ge {
755
+ constructor(t) {
756
+ if (super(t), this.it = h, t.type !== ve.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
757
+ }
758
+ render(t) {
759
+ if (t === h || t == null) return this._t = void 0, this.it = t;
760
+ if (t === M) return t;
761
+ if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
762
+ if (t === this.it) return this._t;
763
+ this.it = t;
764
+ const e = [t];
765
+ return e.raw = e, this._t = { _$litType$: this.constructor.resultType, strings: e, values: [] };
766
+ }
767
+ }
768
+ lt.directiveName = "unsafeHTML", lt.resultType = 1;
769
+ /**
770
+ * @license
771
+ * Copyright 2017 Google LLC
772
+ * SPDX-License-Identifier: BSD-3-Clause
773
+ */
774
+ class ct extends lt {
775
+ }
776
+ ct.directiveName = "unsafeSVG", ct.resultType = 2;
777
+ const W = be(ct);
778
+ var ye = Object.defineProperty, me = Object.getOwnPropertyDescriptor, g = (s, t, e, n) => {
779
+ for (var o = n > 1 ? void 0 : n ? me(t, e) : t, i = s.length - 1, r; i >= 0; i--)
780
+ (r = s[i]) && (o = (n ? r(t, e, o) : r(o)) || o);
781
+ return n && o && ye(t, e, o), o;
811
782
  };
812
- $.styles = A`
813
- :host {
814
- display: inline-flex;
815
- justify-content: center;
816
- align-items: center;
817
- }
818
-
819
- .icon-button {
820
- display: flex;
821
- justify-content: center;
822
- align-items: center;
823
- width: 32px;
824
- height: 32px;
825
- border: transparent;
826
- border-radius: var(--radius-full);
827
- cursor: pointer;
828
- position: relative;
829
-
830
- svg {
831
- path {
832
- stroke: var(--color-content-action-secondary);
833
- stroke-width: var(--icon-stroke-width, 1);
834
- }
835
- }
836
- }
837
-
838
- .icon-button.filled svg {
839
- fill: var(--color-content-action-secondary);
840
- }
841
-
842
- .icon-button.small {
843
- width: 20px;
844
- height: 20px;
845
- }
846
-
847
- .icon-button.medium {
848
- width: 32px;
849
- height: 32px;
850
- }
851
-
852
- .icon-button.large {
853
- width: 40px;
854
- height: 40px;
855
- }
856
-
857
- .icon-button.none-light, .icon-button.none-contrast {
858
- background-color: transparent;
859
- width: auto;
860
- height: auto;
861
-
862
- &.small {
863
- svg {
864
- width: 8px;
865
- height: 8px;
866
- }
867
- }
868
-
869
- &.medium {
870
- svg {
871
- width: 16px;
872
- height: 16px;
873
- }
874
- }
875
-
876
- &.large {
877
- svg {
878
- width: 24px;
879
- height: 24px;
880
- }
881
- }
882
-
883
- &:disabled {
884
- background-color: transparent;
885
- }
886
- }
887
-
888
- .icon-button.none-light {
889
- svg {
890
- path {
891
- stroke: var(--color-content-action-primary);
892
- fill: var(--color-content-action-primary);
893
- }
894
- }
895
- }
896
-
897
- .icon-button.none-light.icon-wishlist svg path {
898
- fill: none;
899
- }
900
-
901
- .icon-button.background-light {
902
- background-color: var(--color-alpha-light-strong);
903
-
904
- &:hover:not(:disabled) {
905
- background-color: var(--color-alpha-light-stronger);
906
- }
907
-
908
- &:active:not(:disabled) {
909
- background-color: var(--color-alpha-light-strongest);
910
- }
911
- }
912
-
913
- .icon-button.background-contrast {
914
- background-color: var(--color-container-action-tertiary-default);
915
-
916
- &:hover:not(:disabled) {
917
- background-color: var(--color-container-action-tertiary-hover);
918
- }
919
-
920
- &:active:not(:disabled) {
921
- background-color: var(--color-container-action-tertiary-pressed);
922
- }
923
- }
924
-
925
- .icon-button.ghost-light {
926
- background-color: transparent;
927
-
928
- svg {
929
- path {
930
- stroke: var(--color-content-action-primary);
931
- fill: var(--color-content-action-primary);
932
- }
933
- }
934
-
935
- &:hover:not(:disabled) {
936
- background-color: var(--color-alpha-light-lightest);
937
- }
938
-
939
- &:active:not(:disabled) {
940
- background-color: var(--color-alpha-light-light);
941
- }
942
- }
943
-
944
- .icon-button.ghost-contrast {
945
- background-color: transparent;
946
-
947
- &:hover:not(:disabled) {
948
- background-color: var(--color-alpha-light-medium);
949
- }
950
-
951
- &:active:not(:disabled) {
952
- background-color: var(--color-alpha-light-strongest);
953
- }
954
- }
955
-
956
- .icon-button:disabled {
957
- background-color: var(--color-container-disabled);
958
-
959
- svg {
960
- fill: var(--color-content-disabled);
961
-
962
- path {
963
- stroke: var(--color-content-disabled);
964
- fill: var(--color-content-disabled);
965
- }
966
- }
967
-
968
- }
969
- `;
970
- L([
971
- a({ type: String, reflect: !0 })
972
- ], $.prototype, "bgstyle", 2);
973
- L([
974
- a({ type: String, reflect: !0 })
975
- ], $.prototype, "size", 2);
976
- L([
977
- a({ type: String, reflect: !0 })
978
- ], $.prototype, "status", 2);
979
- L([
980
- a({ type: String, reflect: !0 })
981
- ], $.prototype, "type", 2);
982
- L([
983
- a({ type: String })
984
- ], $.prototype, "strokewidth", 2);
985
- L([
986
- a({ type: String })
987
- ], $.prototype, "icon", 2);
988
- L([
989
- a({ type: Boolean, reflect: !0 })
990
- ], $.prototype, "disabled", 2);
991
- $ = L([
992
- T("o-icon-button")
993
- ], $);
994
- var $e = Object.defineProperty, we = Object.getOwnPropertyDescriptor, v = (s, t, e, n) => {
995
- for (var o = n > 1 ? void 0 : n ? we(t, e) : t, r = s.length - 1, i; r >= 0; r--)
996
- (i = s[r]) && (o = (n ? i(t, e, o) : i(o)) || o);
997
- return n && o && $e(t, e, o), o;
998
- };
999
- const xe = te(m);
1000
- let u = class extends xe {
783
+ const $e = te(m);
784
+ let u = class extends $e {
1001
785
  constructor() {
1002
- super(...arguments), this.type = "submit", this.value = "", this.variant = "primary", this.text = "", this.textsecond = "", this.fullwidth = !1, this.disabled = !1, this.iconstrokewidth = "1", this.icon = "", this.startIcon = !1, this.endIcon = !1, this.iconSize = "small", this.panelTarget = "", this.href = "", this.target = "";
786
+ super(...arguments), this.type = "submit", this.value = "", this.variant = "primary", this.text = "", this.textsecond = "", this.fullwidth = !1, this.disabled = !1, this.startIconModel = "search", this.endIconModel = "chevronRight", this.startIcon = !1, this.endIcon = !1, this.panelTarget = "", this.href = "", this.target = "";
1003
787
  }
1004
788
  get name() {
1005
789
  return this.getAttribute("name") ?? "";
@@ -1008,7 +792,7 @@ let u = class extends xe {
1008
792
  this.setAttribute("name", s);
1009
793
  }
1010
794
  get form() {
1011
- return this[ut].form;
795
+ return this[ft].form;
1012
796
  }
1013
797
  handleClick() {
1014
798
  if (this.panelTarget) {
@@ -1020,16 +804,13 @@ let u = class extends xe {
1020
804
  return this.href ? this.renderLink() : this.renderButton();
1021
805
  }
1022
806
  renderIcon(s) {
1023
- return this.icon ? d`<o-icon-button
1024
- class=${s === "start" ? "icon-start" : "icon-end"}
1025
- icon=${this.icon}
1026
- bgstyle="${this.variant === "primary" ? "none-light" : "none-contrast"}"
1027
- size="${this.iconSize}"
1028
- strokewidth="${this.iconstrokewidth || "1"}"
1029
- type="span"
1030
- aria-hidden="true"
1031
- ?disabled=${this.disabled}
1032
- ></o-icon-button>` : h;
807
+ const t = s === "start" ? this.startIconModel : this.endIconModel;
808
+ if (!t) return h;
809
+ const e = tt[t].replace(
810
+ "<svg",
811
+ '<svg aria-hidden="true" focusable="false" part="svg"'
812
+ );
813
+ return d`<span class="${s === "start" ? "icon-start" : "icon-end"}">${W(e)}</span>`;
1033
814
  }
1034
815
  renderButton() {
1035
816
  const s = this.text || this.textsecond;
@@ -1037,8 +818,8 @@ let u = class extends xe {
1037
818
  <button type=${this.type} class="button" ?disabled=${this.disabled} @click=${this.handleClick}>
1038
819
  ${this.startIcon ? this.renderIcon("start") : h}
1039
820
  ${s ? d`
1040
- ${this.text ? d`<span>${this.text}</span>` : h}
1041
- ${this.textsecond ? d`<span>${this.textsecond}</span>` : h}
821
+ ${this.text ? d`<span class="text">${this.text}</span>` : h}
822
+ ${this.textsecond ? d`<span class="text">${this.textsecond}</span>` : h}
1042
823
  ` : d`<slot></slot>`}
1043
824
  ${this.endIcon ? this.renderIcon("end") : h}
1044
825
  </button>
@@ -1084,6 +865,9 @@ u.styles = A`
1084
865
  --button-text-hover: var(--color-content-action-primary);
1085
866
  --button-border: transparent;
1086
867
  --button-border-width: var(--border-m);
868
+ --button-padding: var(--spacing-l, 12px) var(--spacing-3-xl, 24px);
869
+ --button-starticon-svg-width: 0px; /* No SVG for primary button */
870
+ --button-endicon-svg-width: 0px; /* No SVG for primary button */
1087
871
  }
1088
872
 
1089
873
  :host([variant="secondary"]) {
@@ -1094,6 +878,9 @@ u.styles = A`
1094
878
  --button-text-hover: var(--color-content-action-secondary);
1095
879
  --button-border: var(--color-border-secondary);
1096
880
  --button-border-width: var(--border-m);
881
+ --button-padding: var(--spacing-l, 12px) var(--spacing-3-xl, 24px);
882
+ --button-starticon-svg-width: 16px;
883
+ --button-endicon-svg-width: 0px; /* No SVG for primary button */
1097
884
  }
1098
885
 
1099
886
  :host([variant="ghost"]) {
@@ -1103,6 +890,9 @@ u.styles = A`
1103
890
  --button-text: var(--color-content-action-secondary);
1104
891
  --button-text-hover: var(--color-content-action-secondary);
1105
892
  --button-border-width: 0;
893
+ --button-padding: var(--spacing-m, 10px) var(--spacing-xl, 16px);
894
+ --button-starticon-svg-width: 16px;
895
+ --button-endicon-svg-width: 12px; /* No SVG for primary button */
1106
896
  }
1107
897
 
1108
898
  :host([variant="tertiary"]) {
@@ -1112,6 +902,9 @@ u.styles = A`
1112
902
  --button-text: var(--color-content-body);
1113
903
  --button-text-hover: var(--color-content-action-tertiary);
1114
904
  --button-border-width: 0;
905
+ --button-padding: var(--spacing-m, 10px) var(--spacing-l, 12px);
906
+ --button-starticon-svg-width: 0px;
907
+ --button-endicon-svg-width: 8px; /* No SVG for primary button */
1115
908
  }
1116
909
 
1117
910
  :host([disabled]),
@@ -1142,11 +935,11 @@ u.styles = A`
1142
935
  font-weight: var(--font-weight-400);
1143
936
  line-height: var(--line-height-200);
1144
937
  min-width: 64px;
1145
- padding: var(--spacing-l, 12px) var(--spacing-3-xl, 24px);
938
+ padding: var(--button-padding);
1146
939
  cursor: inherit;
1147
940
  box-sizing: border-box;
1148
941
 
1149
- span, o-icon-button {
942
+ span {
1150
943
  font-family: var(--font-family-loccitane-sans);
1151
944
  font-size: var(--font-size-150);
1152
945
  font-weight: var(--font-weight-400);
@@ -1154,6 +947,11 @@ u.styles = A`
1154
947
  }
1155
948
  }
1156
949
 
950
+ .button:hover:not([disabled]) {
951
+ background-color: var(--button-bg-hover);
952
+ color: var(--button-text-hover);
953
+ }
954
+
1157
955
  .button:active:not([disabled]) {
1158
956
  background-color: var(--button-bg-pressed);
1159
957
  }
@@ -1162,7 +960,7 @@ u.styles = A`
1162
960
  ${Yt};
1163
961
  }
1164
962
 
1165
- span + span::before {
963
+ span.text + span.text::before {
1166
964
  content: "•";
1167
965
  margin-right: 8px;
1168
966
  }
@@ -1173,11 +971,10 @@ u.styles = A`
1173
971
  align-items: center;
1174
972
  }
1175
973
 
1176
- :host([variant="tertiary"][fullwidth][startIcon]) .button,
1177
974
  :host([variant="tertiary"][fullwidth][endIcon]) .button {
1178
975
  justify-content: space-between;
1179
- padding-left: 12px;
1180
- padding-right: 8px;
976
+ padding-left: 8px;
977
+ padding-right: 12px;
1181
978
  }
1182
979
 
1183
980
  .button span {
@@ -1191,61 +988,74 @@ u.styles = A`
1191
988
  display: inline-flex;
1192
989
  align-items: center;
1193
990
  }
991
+
992
+ :host([variant="tertiary"][endIcon]) .button .icon-end {
993
+ width: var(--button-endicon-svg-width, 8px);
994
+ }
995
+
996
+ //Icon movment on hover
997
+ :host([variant="tertiary"][endIcon]) .icon-end {
998
+ display: inline-flex;
999
+ align-items: center;
1000
+ }
1001
+
1002
+ :host([variant="tertiary"][endIcon]:hover) .icon-end {
1003
+ transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
1004
+ transform: translateX(4px);
1005
+ }
1006
+ //End icon movment on hover
1194
1007
  `;
1195
- v([
1008
+ g([
1196
1009
  a()
1197
1010
  ], u.prototype, "type", 2);
1198
- v([
1011
+ g([
1199
1012
  a({ reflect: !0 })
1200
1013
  ], u.prototype, "value", 2);
1201
- v([
1014
+ g([
1202
1015
  a({ type: String, reflect: !0 })
1203
1016
  ], u.prototype, "variant", 2);
1204
- v([
1017
+ g([
1205
1018
  a({ type: String })
1206
1019
  ], u.prototype, "text", 2);
1207
- v([
1020
+ g([
1208
1021
  a({ type: String })
1209
1022
  ], u.prototype, "textsecond", 2);
1210
- v([
1023
+ g([
1211
1024
  a({ type: Boolean, reflect: !0 })
1212
1025
  ], u.prototype, "fullwidth", 2);
1213
- v([
1026
+ g([
1214
1027
  a({ type: Boolean, reflect: !0 })
1215
1028
  ], u.prototype, "disabled", 2);
1216
- v([
1217
- a({ type: String, attribute: "iconstrokewidth" })
1218
- ], u.prototype, "iconstrokewidth", 2);
1219
- v([
1220
- a({ type: String })
1221
- ], u.prototype, "icon", 2);
1222
- v([
1029
+ g([
1030
+ a({ type: String, reflect: !0 })
1031
+ ], u.prototype, "startIconModel", 2);
1032
+ g([
1033
+ a({ type: String, reflect: !0 })
1034
+ ], u.prototype, "endIconModel", 2);
1035
+ g([
1223
1036
  a({ type: Boolean, reflect: !0, attribute: "starticon" })
1224
1037
  ], u.prototype, "startIcon", 2);
1225
- v([
1038
+ g([
1226
1039
  a({ type: Boolean, reflect: !0, attribute: "endicon" })
1227
1040
  ], u.prototype, "endIcon", 2);
1228
- v([
1229
- a({ type: String, reflect: !0, attribute: "iconsize" })
1230
- ], u.prototype, "iconSize", 2);
1231
- v([
1041
+ g([
1232
1042
  a({ type: String, attribute: "paneltarget", reflect: !0 })
1233
1043
  ], u.prototype, "panelTarget", 2);
1234
- v([
1044
+ g([
1235
1045
  a({ type: String })
1236
1046
  ], u.prototype, "href", 2);
1237
- v([
1047
+ g([
1238
1048
  a({ type: String })
1239
1049
  ], u.prototype, "target", 2);
1240
- u = v([
1241
- T("o-button")
1050
+ u = g([
1051
+ H("o-button")
1242
1052
  ], u);
1243
- var _e = Object.defineProperty, Ae = Object.getOwnPropertyDescriptor, tt = (s, t, e, n) => {
1244
- for (var o = n > 1 ? void 0 : n ? Ae(t, e) : t, r = s.length - 1, i; r >= 0; r--)
1245
- (i = s[r]) && (o = (n ? i(t, e, o) : i(o)) || o);
1246
- return n && o && _e(t, e, o), o;
1053
+ var we = Object.defineProperty, xe = Object.getOwnPropertyDescriptor, et = (s, t, e, n) => {
1054
+ for (var o = n > 1 ? void 0 : n ? xe(t, e) : t, i = s.length - 1, r; i >= 0; i--)
1055
+ (r = s[i]) && (o = (n ? r(t, e, o) : r(o)) || o);
1056
+ return n && o && we(t, e, o), o;
1247
1057
  };
1248
- let U = class extends m {
1058
+ let z = class extends m {
1249
1059
  constructor() {
1250
1060
  super(...arguments), this.status = "empty", this.ariaDescribedBy = "a-product-name", this.label = "Add to wishlist", this.toggleStatus = () => {
1251
1061
  this.status = this.status === "empty" ? "filled" : "empty", this.setAttribute("aria-pressed", String(this.status === "filled")), this.dispatchEvent(new CustomEvent("wishlist-toggle", {
@@ -1265,14 +1075,14 @@ let U = class extends m {
1265
1075
  (s.key === "Enter" || s.key === " ") && (s.preventDefault(), this.toggleStatus());
1266
1076
  }
1267
1077
  render() {
1268
- const s = ft.wishlist.replace(
1078
+ const s = tt.wishlist.replace(
1269
1079
  "<svg",
1270
1080
  '<svg aria-hidden="true" focusable="false" part="svg"'
1271
1081
  );
1272
1082
  return d`
1273
1083
  <button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
1274
1084
  <span class="sr-only">${this.label}</span>
1275
- ${Q(s)}
1085
+ ${W(s)}
1276
1086
  </button>
1277
1087
  `;
1278
1088
  }
@@ -1286,7 +1096,7 @@ let U = class extends m {
1286
1096
  this.label = s, this.requestUpdate();
1287
1097
  }
1288
1098
  };
1289
- U.styles = A`
1099
+ z.styles = A`
1290
1100
  :host {
1291
1101
  display: inline-flex;
1292
1102
  justify-content: center;
@@ -1346,21 +1156,238 @@ U.styles = A`
1346
1156
  white-space: nowrap !important;
1347
1157
  }
1348
1158
  `;
1349
- tt([
1159
+ et([
1160
+ a({ type: String, reflect: !0 })
1161
+ ], z.prototype, "status", 2);
1162
+ et([
1163
+ a({ type: String, reflect: !0 })
1164
+ ], z.prototype, "ariaDescribedBy", 2);
1165
+ et([
1166
+ a({ type: String, reflect: !0 })
1167
+ ], z.prototype, "label", 2);
1168
+ z = et([
1169
+ H("o-wishlist-button")
1170
+ ], z);
1171
+ var _e = Object.defineProperty, Ae = Object.getOwnPropertyDescriptor, L = (s, t, e, n) => {
1172
+ for (var o = n > 1 ? void 0 : n ? Ae(t, e) : t, i = s.length - 1, r; i >= 0; i--)
1173
+ (r = s[i]) && (o = (n ? r(t, e, o) : r(o)) || o);
1174
+ return n && o && _e(t, e, o), o;
1175
+ };
1176
+ let $ = class extends m {
1177
+ constructor() {
1178
+ super(...arguments), this.bgstyle = "background-light", this.size = "medium", this.status = "empty", this.type = "button", this.strokewidth = "1", this.icon = "wishlist", this.disabled = !1;
1179
+ }
1180
+ updated(s) {
1181
+ super.updated(s), this.style.setProperty("--icon-stroke-width", this.strokewidth);
1182
+ }
1183
+ render() {
1184
+ const s = tt[this.icon] ?? "", t = `icon-${this.icon}`, e = s.replace(
1185
+ "<svg",
1186
+ '<svg aria-hidden="true" focusable="false" part="svg"'
1187
+ );
1188
+ return d`
1189
+ ${this.type === "span" ? d`
1190
+ <span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
1191
+ ${W(e)}
1192
+ </span>
1193
+ ` : d`
1194
+ <button
1195
+ type="button"
1196
+ aria-label="icon"
1197
+ class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}"
1198
+ ?disabled="${this.disabled}"
1199
+ >
1200
+ ${W(e)}
1201
+ </button>
1202
+ `}
1203
+ `;
1204
+ }
1205
+ };
1206
+ $.styles = A`
1207
+ :host {
1208
+ display: inline-flex;
1209
+ justify-content: center;
1210
+ align-items: center;
1211
+ }
1212
+
1213
+ .icon-button {
1214
+ display: flex;
1215
+ justify-content: center;
1216
+ align-items: center;
1217
+ width: 32px;
1218
+ height: 32px;
1219
+ border: transparent;
1220
+ border-radius: var(--radius-full);
1221
+ cursor: pointer;
1222
+ position: relative;
1223
+
1224
+ svg {
1225
+ path {
1226
+ stroke: var(--color-content-action-secondary);
1227
+ stroke-width: var(--icon-stroke-width, 1);
1228
+ }
1229
+ }
1230
+ }
1231
+
1232
+ .icon-button.filled svg {
1233
+ fill: var(--color-content-action-secondary);
1234
+ }
1235
+
1236
+ .icon-button.small {
1237
+ width: 20px;
1238
+ height: 20px;
1239
+ }
1240
+
1241
+ .icon-button.medium {
1242
+ width: 32px;
1243
+ height: 32px;
1244
+ }
1245
+
1246
+ .icon-button.large {
1247
+ width: 40px;
1248
+ height: 40px;
1249
+ }
1250
+
1251
+ .icon-button.none-light, .icon-button.none-contrast {
1252
+ background-color: transparent;
1253
+ width: auto;
1254
+ height: auto;
1255
+
1256
+ &.small {
1257
+ svg {
1258
+ width: 8px;
1259
+ height: 8px;
1260
+ }
1261
+ }
1262
+
1263
+ &.medium {
1264
+ svg {
1265
+ width: 16px;
1266
+ height: 16px;
1267
+ }
1268
+ }
1269
+
1270
+ &.large {
1271
+ svg {
1272
+ width: 24px;
1273
+ height: 24px;
1274
+ }
1275
+ }
1276
+
1277
+ &:disabled {
1278
+ background-color: transparent;
1279
+ }
1280
+ }
1281
+
1282
+ .icon-button.none-light {
1283
+ svg {
1284
+ path {
1285
+ stroke: var(--color-content-action-primary);
1286
+ fill: var(--color-content-action-primary);
1287
+ }
1288
+ }
1289
+ }
1290
+
1291
+ .icon-button.none-light.icon-wishlist svg path {
1292
+ fill: none;
1293
+ }
1294
+
1295
+ .icon-button.background-light {
1296
+ background-color: var(--color-alpha-light-strong);
1297
+
1298
+ &:hover:not(:disabled) {
1299
+ background-color: var(--color-alpha-light-stronger);
1300
+ }
1301
+
1302
+ &:active:not(:disabled) {
1303
+ background-color: var(--color-alpha-light-strongest);
1304
+ }
1305
+ }
1306
+
1307
+ .icon-button.background-contrast {
1308
+ background-color: var(--color-container-action-tertiary-default);
1309
+
1310
+ &:hover:not(:disabled) {
1311
+ background-color: var(--color-container-action-tertiary-hover);
1312
+ }
1313
+
1314
+ &:active:not(:disabled) {
1315
+ background-color: var(--color-container-action-tertiary-pressed);
1316
+ }
1317
+ }
1318
+
1319
+ .icon-button.ghost-light {
1320
+ background-color: transparent;
1321
+
1322
+ svg {
1323
+ path {
1324
+ stroke: var(--color-content-action-primary);
1325
+ fill: var(--color-content-action-primary);
1326
+ }
1327
+ }
1328
+
1329
+ &:hover:not(:disabled) {
1330
+ background-color: var(--color-alpha-light-lightest);
1331
+ }
1332
+
1333
+ &:active:not(:disabled) {
1334
+ background-color: var(--color-alpha-light-light);
1335
+ }
1336
+ }
1337
+
1338
+ .icon-button.ghost-contrast {
1339
+ background-color: transparent;
1340
+
1341
+ &:hover:not(:disabled) {
1342
+ background-color: var(--color-alpha-light-medium);
1343
+ }
1344
+
1345
+ &:active:not(:disabled) {
1346
+ background-color: var(--color-alpha-light-strongest);
1347
+ }
1348
+ }
1349
+
1350
+ .icon-button:disabled {
1351
+ background-color: var(--color-container-disabled);
1352
+
1353
+ svg {
1354
+ fill: var(--color-content-disabled);
1355
+
1356
+ path {
1357
+ stroke: var(--color-content-disabled);
1358
+ fill: var(--color-content-disabled);
1359
+ }
1360
+ }
1361
+
1362
+ }
1363
+ `;
1364
+ L([
1365
+ a({ type: String, reflect: !0 })
1366
+ ], $.prototype, "bgstyle", 2);
1367
+ L([
1350
1368
  a({ type: String, reflect: !0 })
1351
- ], U.prototype, "status", 2);
1352
- tt([
1369
+ ], $.prototype, "size", 2);
1370
+ L([
1353
1371
  a({ type: String, reflect: !0 })
1354
- ], U.prototype, "ariaDescribedBy", 2);
1355
- tt([
1372
+ ], $.prototype, "status", 2);
1373
+ L([
1356
1374
  a({ type: String, reflect: !0 })
1357
- ], U.prototype, "label", 2);
1358
- U = tt([
1359
- T("o-wishlist-button")
1360
- ], U);
1361
- var Se = Object.defineProperty, Ee = Object.getOwnPropertyDescriptor, M = (s, t, e, n) => {
1362
- for (var o = n > 1 ? void 0 : n ? Ee(t, e) : t, r = s.length - 1, i; r >= 0; r--)
1363
- (i = s[r]) && (o = (n ? i(t, e, o) : i(o)) || o);
1375
+ ], $.prototype, "type", 2);
1376
+ L([
1377
+ a({ type: String })
1378
+ ], $.prototype, "strokewidth", 2);
1379
+ L([
1380
+ a({ type: String })
1381
+ ], $.prototype, "icon", 2);
1382
+ L([
1383
+ a({ type: Boolean, reflect: !0 })
1384
+ ], $.prototype, "disabled", 2);
1385
+ $ = L([
1386
+ H("o-icon-button")
1387
+ ], $);
1388
+ var Se = Object.defineProperty, Ee = Object.getOwnPropertyDescriptor, T = (s, t, e, n) => {
1389
+ for (var o = n > 1 ? void 0 : n ? Ee(t, e) : t, i = s.length - 1, r; i >= 0; i--)
1390
+ (r = s[i]) && (o = (n ? r(t, e, o) : r(o)) || o);
1364
1391
  return n && o && Se(t, e, o), o;
1365
1392
  };
1366
1393
  let _ = class extends m {
@@ -1481,30 +1508,30 @@ _.styles = A`
1481
1508
  }
1482
1509
  /* End of underline effect */
1483
1510
  `;
1484
- M([
1511
+ T([
1485
1512
  a({ type: String })
1486
1513
  ], _.prototype, "href", 2);
1487
- M([
1514
+ T([
1488
1515
  a({ type: String })
1489
1516
  ], _.prototype, "target", 2);
1490
- M([
1517
+ T([
1491
1518
  a({ type: String, reflect: !0 })
1492
1519
  ], _.prototype, "template", 2);
1493
- M([
1520
+ T([
1494
1521
  a({ type: Boolean, reflect: !0 })
1495
1522
  ], _.prototype, "inverse", 2);
1496
- M([
1523
+ T([
1497
1524
  a({ type: Boolean, reflect: !0 })
1498
1525
  ], _.prototype, "endIcon", 2);
1499
- M([
1526
+ T([
1500
1527
  a({ type: Boolean, reflect: !0 })
1501
1528
  ], _.prototype, "reverseEndIcon", 2);
1502
- _ = M([
1503
- T("o-link")
1529
+ _ = T([
1530
+ H("o-link")
1504
1531
  ], _);
1505
- var Ce = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, et = (s, t, e, n) => {
1506
- for (var o = n > 1 ? void 0 : n ? Le(t, e) : t, r = s.length - 1, i; r >= 0; r--)
1507
- (i = s[r]) && (o = (n ? i(t, e, o) : i(o)) || o);
1532
+ var Ce = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, st = (s, t, e, n) => {
1533
+ for (var o = n > 1 ? void 0 : n ? Le(t, e) : t, i = s.length - 1, r; i >= 0; i--)
1534
+ (r = s[i]) && (o = (n ? r(t, e, o) : r(o)) || o);
1508
1535
  return n && o && Ce(t, e, o), o;
1509
1536
  };
1510
1537
  let N = class extends m {
@@ -1526,7 +1553,7 @@ let N = class extends m {
1526
1553
  <div class="rating">
1527
1554
  <div class="stars">
1528
1555
  ${s.map(
1529
- (t) => d`<span class="star">${Q(ft[t] ?? "")}</span>`
1556
+ (t) => d`<span class="star">${W(tt[t] ?? "")}</span>`
1530
1557
  )}
1531
1558
  </div>
1532
1559
  ${this.reviewCount != null && this.href != null ? d`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>` : null}
@@ -1568,24 +1595,24 @@ N.styles = A`
1568
1595
  cursor: pointer;
1569
1596
  }
1570
1597
  `;
1571
- et([
1598
+ st([
1572
1599
  a({ type: Number })
1573
1600
  ], N.prototype, "rating", 2);
1574
- et([
1601
+ st([
1575
1602
  a({ type: String })
1576
1603
  ], N.prototype, "reviewCount", 2);
1577
- et([
1604
+ st([
1578
1605
  a({ type: String })
1579
1606
  ], N.prototype, "href", 2);
1580
- N = et([
1581
- T("o-rating")
1607
+ N = st([
1608
+ H("o-rating")
1582
1609
  ], N);
1583
1610
  var Pe = Object.defineProperty, ke = Object.getOwnPropertyDescriptor, y = (s, t, e, n) => {
1584
- for (var o = n > 1 ? void 0 : n ? ke(t, e) : t, r = s.length - 1, i; r >= 0; r--)
1585
- (i = s[r]) && (o = (n ? i(t, e, o) : i(o)) || o);
1611
+ for (var o = n > 1 ? void 0 : n ? ke(t, e) : t, i = s.length - 1, r; i >= 0; i--)
1612
+ (r = s[i]) && (o = (n ? r(t, e, o) : r(o)) || o);
1586
1613
  return n && o && Pe(t, e, o), o;
1587
1614
  };
1588
- let g = class extends m {
1615
+ let b = class extends m {
1589
1616
  constructor() {
1590
1617
  super(...arguments), this.open = !1, this.showHeader = !0, this.showFooter = !1, this.headerTitle = "", this.closeButtonLabel = "Close the modal", this.firstButtonLabel = "Close", this.firstButtonVariant = "primary", this.secondaryButtonLabel = "", this.secondaryButtonVariant = "secondary", this.disablePortal = !1, this.previousFocusedElement = null, this.handleKeyDown = (s) => {
1591
1618
  this.open && (s.key === "Escape" ? this.closePanel() : s.key === "Tab" && this.trapFocus(s));
@@ -1675,7 +1702,7 @@ let g = class extends m {
1675
1702
  `;
1676
1703
  }
1677
1704
  };
1678
- g.styles = A`
1705
+ b.styles = A`
1679
1706
  :host {
1680
1707
  position: fixed;
1681
1708
  top: 0;
@@ -1771,47 +1798,47 @@ g.styles = A`
1771
1798
  `;
1772
1799
  y([
1773
1800
  a({ type: Boolean, reflect: !0 })
1774
- ], g.prototype, "open", 2);
1801
+ ], b.prototype, "open", 2);
1775
1802
  y([
1776
1803
  a({ type: Boolean, reflect: !0 })
1777
- ], g.prototype, "showHeader", 2);
1804
+ ], b.prototype, "showHeader", 2);
1778
1805
  y([
1779
1806
  a({ type: Boolean, reflect: !0 })
1780
- ], g.prototype, "showFooter", 2);
1807
+ ], b.prototype, "showFooter", 2);
1781
1808
  y([
1782
1809
  a({ type: String, reflect: !0 })
1783
- ], g.prototype, "headerTitle", 2);
1810
+ ], b.prototype, "headerTitle", 2);
1784
1811
  y([
1785
1812
  a({ type: String, reflect: !0 })
1786
- ], g.prototype, "closeButtonLabel", 2);
1813
+ ], b.prototype, "closeButtonLabel", 2);
1787
1814
  y([
1788
1815
  a({ type: String, reflect: !0 })
1789
- ], g.prototype, "firstButtonLabel", 2);
1816
+ ], b.prototype, "firstButtonLabel", 2);
1790
1817
  y([
1791
1818
  a({ type: String, reflect: !0 })
1792
- ], g.prototype, "firstButtonVariant", 2);
1819
+ ], b.prototype, "firstButtonVariant", 2);
1793
1820
  y([
1794
1821
  a({ type: Function })
1795
- ], g.prototype, "onFirstButtonClick", 2);
1822
+ ], b.prototype, "onFirstButtonClick", 2);
1796
1823
  y([
1797
1824
  a({ type: String, reflect: !0 })
1798
- ], g.prototype, "secondaryButtonLabel", 2);
1825
+ ], b.prototype, "secondaryButtonLabel", 2);
1799
1826
  y([
1800
1827
  a({ type: String, reflect: !0 })
1801
- ], g.prototype, "secondaryButtonVariant", 2);
1828
+ ], b.prototype, "secondaryButtonVariant", 2);
1802
1829
  y([
1803
1830
  a({ type: Function })
1804
- ], g.prototype, "onSecondaryButtonClick", 2);
1831
+ ], b.prototype, "onSecondaryButtonClick", 2);
1805
1832
  y([
1806
1833
  a({ type: Boolean, reflect: !0 })
1807
- ], g.prototype, "disablePortal", 2);
1808
- g = y([
1809
- T("o-side-panel")
1810
- ], g);
1811
- var Be = Object.defineProperty, Ie = Object.getOwnPropertyDescriptor, P = (s, t, e, n) => {
1812
- for (var o = n > 1 ? void 0 : n ? Ie(t, e) : t, r = s.length - 1, i; r >= 0; r--)
1813
- (i = s[r]) && (o = (n ? i(t, e, o) : i(o)) || o);
1814
- return n && o && Be(t, e, o), o;
1834
+ ], b.prototype, "disablePortal", 2);
1835
+ b = y([
1836
+ H("o-side-panel")
1837
+ ], b);
1838
+ var Ie = Object.defineProperty, Be = Object.getOwnPropertyDescriptor, P = (s, t, e, n) => {
1839
+ for (var o = n > 1 ? void 0 : n ? Be(t, e) : t, i = s.length - 1, r; i >= 0; i--)
1840
+ (r = s[i]) && (o = (n ? r(t, e, o) : r(o)) || o);
1841
+ return n && o && Ie(t, e, o), o;
1815
1842
  };
1816
1843
  let w = class extends m {
1817
1844
  constructor() {
@@ -1960,5 +1987,5 @@ P([
1960
1987
  Qt()
1961
1988
  ], w.prototype, "focusedIndex", 2);
1962
1989
  w = P([
1963
- T("thumbnail-navigation")
1990
+ H("thumbnail-navigation")
1964
1991
  ], w);