@florid-kit/components 0.9.30 → 0.9.32

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
@@ -45,7 +45,7 @@ const Ee = (o) => new ye(typeof o == "string" ? o : o + "", void 0, Vt), v = (o,
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: Ae, defineProperty: Le, getOwnPropertyDescriptor: Pe, getOwnPropertyNames: Be, getOwnPropertySymbols: Oe, getPrototypeOf: ze } = Object, X = globalThis, le = X.trustedTypes, Ie = le ? le.emptyScript : "", It = X.reactiveElementPolyfillSupport, pt = (o, t) => o, At = { toAttribute(o, t) {
48
+ const { is: Ae, defineProperty: Be, getOwnPropertyDescriptor: Le, getOwnPropertyNames: Pe, getOwnPropertySymbols: ze, getPrototypeOf: Oe } = Object, X = globalThis, le = X.trustedTypes, Ie = le ? le.emptyScript : "", It = X.reactiveElementPolyfillSupport, pt = (o, t) => o, At = { toAttribute(o, t) {
49
49
  switch (t) {
50
50
  case Boolean:
51
51
  o = o ? Ie : null;
@@ -85,11 +85,11 @@ let at = class extends HTMLElement {
85
85
  static createProperty(t, e = ce) {
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(), i = this.getPropertyDescriptor(t, n, e);
88
- i !== void 0 && Le(this.prototype, t, i);
88
+ i !== void 0 && Be(this.prototype, t, i);
89
89
  }
90
90
  }
91
91
  static getPropertyDescriptor(t, e, n) {
92
- const { get: i, set: r } = Pe(this.prototype, t) ?? { get() {
92
+ const { get: i, set: r } = Le(this.prototype, t) ?? { get() {
93
93
  return this[e];
94
94
  }, set(s) {
95
95
  this[e] = s;
@@ -104,13 +104,13 @@ let at = class extends HTMLElement {
104
104
  }
105
105
  static _$Ei() {
106
106
  if (this.hasOwnProperty(pt("elementProperties"))) return;
107
- const t = ze(this);
107
+ const t = Oe(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(pt("finalized"))) return;
112
112
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(pt("properties"))) {
113
- const e = this.properties, n = [...Be(e), ...Oe(e)];
113
+ const e = this.properties, n = [...Pe(e), ...ze(e)];
114
114
  for (const i of n) this.createProperty(i, e[i]);
115
115
  }
116
116
  const t = this[Symbol.metadata];
@@ -282,7 +282,7 @@ at.elementStyles = [], at.shadowRootOptions = { mode: "open" }, at[pt("elementPr
282
282
  * Copyright 2017 Google LLC
283
283
  * SPDX-License-Identifier: BSD-3-Clause
284
284
  */
285
- const ut = globalThis, Lt = ut.trustedTypes, he = Lt ? Lt.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, me = "$lit$", G = `lit$${Math.random().toFixed(9).slice(2)}$`, xe = "?" + G, De = `<${xe}>`, it = document, ft = () => it.createComment(""), gt = (o) => o === null || typeof o != "object" && typeof o != "function", Zt = Array.isArray, He = (o) => Zt(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", Dt = `[
285
+ const ut = globalThis, Bt = ut.trustedTypes, he = Bt ? Bt.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, me = "$lit$", G = `lit$${Math.random().toFixed(9).slice(2)}$`, xe = "?" + G, De = `<${xe}>`, it = document, ft = () => it.createComment(""), gt = (o) => o === null || typeof o != "object" && typeof o != "function", Zt = Array.isArray, He = (o) => Zt(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", Dt = `[
286
286
  \f\r]`, dt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, de = /-->/g, pe = />/g, tt = RegExp(`>|${Dt}(?:([^\\s"'>=/]+)(${Dt}*=${Dt}*(?:[^
287
287
  \f\r"'\`<>=]|("|')|))|$)`, "g"), ue = /'/g, ve = /"/g, we = /^(?:script|style|textarea|title)$/i, Me = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), l = Me(1), Y = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), fe = /* @__PURE__ */ new WeakMap(), et = it.createTreeWalker(it, 129);
288
288
  function $e(o, t) {
@@ -315,12 +315,12 @@ class bt {
315
315
  if (i.nodeType === 1) {
316
316
  if (i.hasAttributes()) for (const f of i.getAttributeNames()) if (f.endsWith(me)) {
317
317
  const N = w[s++], W = i.getAttribute(f).split(G), Et = /([.?@])?(.*)/.exec(N);
318
- h.push({ type: 1, index: r, name: Et[2], strings: W, ctor: Et[1] === "." ? Fe : Et[1] === "?" ? Re : Et[1] === "@" ? Ue : Bt }), i.removeAttribute(f);
318
+ h.push({ type: 1, index: r, name: Et[2], strings: W, ctor: Et[1] === "." ? Fe : Et[1] === "?" ? Re : Et[1] === "@" ? Ue : Pt }), i.removeAttribute(f);
319
319
  } else f.startsWith(G) && (h.push({ type: 6, index: r }), i.removeAttribute(f));
320
320
  if (we.test(i.tagName)) {
321
321
  const f = i.textContent.split(G), N = f.length - 1;
322
322
  if (N > 0) {
323
- i.textContent = Lt ? Lt.emptyScript : "";
323
+ i.textContent = Bt ? Bt.emptyScript : "";
324
324
  for (let W = 0; W < N; W++) i.append(f[W], ft()), et.nextNode(), h.push({ type: 2, index: ++r });
325
325
  i.append(f[N], ft());
326
326
  }
@@ -436,7 +436,7 @@ class _t {
436
436
  this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
437
437
  }
438
438
  }
439
- class Bt {
439
+ class Pt {
440
440
  get tagName() {
441
441
  return this.element.tagName;
442
442
  }
@@ -461,7 +461,7 @@ class Bt {
461
461
  t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
462
462
  }
463
463
  }
464
- class Fe extends Bt {
464
+ class Fe extends Pt {
465
465
  constructor() {
466
466
  super(...arguments), this.type = 3;
467
467
  }
@@ -469,7 +469,7 @@ class Fe extends Bt {
469
469
  this.element[this.name] = t === d ? void 0 : t;
470
470
  }
471
471
  }
472
- class Re extends Bt {
472
+ class Re extends Pt {
473
473
  constructor() {
474
474
  super(...arguments), this.type = 4;
475
475
  }
@@ -477,7 +477,7 @@ class Re extends Bt {
477
477
  this.element.toggleAttribute(this.name, !!t && t !== d);
478
478
  }
479
479
  }
480
- class Ue extends Bt {
480
+ class Ue extends Pt {
481
481
  constructor(t, e, n, i, r) {
482
482
  super(t, e, n, i, r), this.type = 5;
483
483
  }
@@ -855,7 +855,7 @@ jt.directiveName = "unsafeHTML", jt.resultType = 1;
855
855
  class Ft extends jt {
856
856
  }
857
857
  Ft.directiveName = "unsafeSVG", Ft.resultType = 2;
858
- const $ = Xt(Ft);
858
+ const k = Xt(Ft);
859
859
  /**
860
860
  * @license
861
861
  * Copyright 2020 Google LLC
@@ -873,7 +873,7 @@ const vt = (o, t) => {
873
873
  if (e === void 0) return !1;
874
874
  for (const i of e) (n = i._$AO) == null || n.call(i, t, !1), vt(i, t);
875
875
  return !0;
876
- }, Pt = (o) => {
876
+ }, Lt = (o) => {
877
877
  let t, e;
878
878
  do {
879
879
  if ((t = o._$AM) === void 0) break;
@@ -884,22 +884,22 @@ const vt = (o, t) => {
884
884
  let e = t._$AN;
885
885
  if (e === void 0) t._$AN = e = /* @__PURE__ */ new Set();
886
886
  else if (e.has(o)) break;
887
- e.add(o), Po(t);
887
+ e.add(o), Lo(t);
888
888
  }
889
889
  };
890
890
  function Ao(o) {
891
- this._$AN !== void 0 ? (Pt(this), this._$AM = o, _e(this)) : this._$AM = o;
891
+ this._$AN !== void 0 ? (Lt(this), this._$AM = o, _e(this)) : this._$AM = o;
892
892
  }
893
- function Lo(o, t = !1, e = 0) {
893
+ function Bo(o, t = !1, e = 0) {
894
894
  const n = this._$AH, i = this._$AN;
895
- if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(n)) for (let r = e; r < n.length; r++) vt(n[r], !1), Pt(n[r]);
896
- else n != null && (vt(n, !1), Pt(n));
895
+ if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(n)) for (let r = e; r < n.length; r++) vt(n[r], !1), Lt(n[r]);
896
+ else n != null && (vt(n, !1), Lt(n));
897
897
  else vt(this, o);
898
898
  }
899
- const Po = (o) => {
900
- o.type == Gt.CHILD && (o._$AP ?? (o._$AP = Lo), o._$AQ ?? (o._$AQ = Ao));
899
+ const Lo = (o) => {
900
+ o.type == Gt.CHILD && (o._$AP ?? (o._$AP = Bo), o._$AQ ?? (o._$AQ = Ao));
901
901
  };
902
- class Bo extends Yt {
902
+ class Po extends Yt {
903
903
  constructor() {
904
904
  super(...arguments), this._$AN = void 0;
905
905
  }
@@ -908,7 +908,7 @@ class Bo extends Yt {
908
908
  }
909
909
  _$AO(t, e = !0) {
910
910
  var n, i;
911
- t !== this.isConnected && (this.isConnected = t, t ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), e && (vt(this, t), Pt(this));
911
+ t !== this.isConnected && (this.isConnected = t, t ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), e && (vt(this, t), Lt(this));
912
912
  }
913
913
  setValue(t) {
914
914
  if (So(this._$Ct)) this._$Ct._$AI(t, this);
@@ -922,7 +922,7 @@ class Bo extends Yt {
922
922
  reconnected() {
923
923
  }
924
924
  }
925
- class Oo extends Bo {
925
+ class zo extends Po {
926
926
  constructor() {
927
927
  super(...arguments), this.prevData = {};
928
928
  }
@@ -949,7 +949,7 @@ class Oo extends Bo {
949
949
  (!t || !(i in t) && n[i] === e[i]) && (n[i] = void 0);
950
950
  }
951
951
  }
952
- class zo extends Oo {
952
+ class Oo extends zo {
953
953
  constructor() {
954
954
  super(...arguments), this.eventData = {};
955
955
  }
@@ -993,7 +993,7 @@ class zo extends Oo {
993
993
  }
994
994
  }
995
995
  }
996
- class Io extends zo {
996
+ class Io extends Oo {
997
997
  apply(t) {
998
998
  if (!t)
999
999
  return;
@@ -1048,13 +1048,13 @@ const ge = Xt(Io);
1048
1048
  * Copyright 2018 Google LLC
1049
1049
  * SPDX-License-Identifier: BSD-3-Clause
1050
1050
  */
1051
- const S = (o) => o ?? d;
1051
+ const A = (o) => o ?? d;
1052
1052
  var Do = Object.defineProperty, Ho = Object.getOwnPropertyDescriptor, T = (o, t, e, n) => {
1053
1053
  for (var i = n > 1 ? void 0 : n ? Ho(t, e) : t, r = o.length - 1, s; r >= 0; r--)
1054
1054
  (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
1055
1055
  return n && i && Do(t, e, i), i;
1056
1056
  };
1057
- let A = class extends p {
1057
+ let B = class extends p {
1058
1058
  constructor() {
1059
1059
  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 = "";
1060
1060
  }
@@ -1066,23 +1066,23 @@ let A = class extends p {
1066
1066
  return l`
1067
1067
  ${this.type === "span" ? l`
1068
1068
  <span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
1069
- ${$(e)}
1069
+ ${k(e)}
1070
1070
  </span>
1071
1071
  ` : l`
1072
1072
  <button
1073
1073
  type="button"
1074
- aria-label=${S(i)}
1074
+ aria-label=${A(i)}
1075
1075
  class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}"
1076
1076
  ?disabled="${this.disabled}"
1077
1077
  >
1078
- ${$(e)}
1078
+ ${k(e)}
1079
1079
  ${n}
1080
1080
  </button>
1081
1081
  `}
1082
1082
  `;
1083
1083
  }
1084
1084
  };
1085
- A.styles = v`
1085
+ B.styles = v`
1086
1086
  :host {
1087
1087
  display: inline-flex;
1088
1088
  justify-content: center;
@@ -1296,34 +1296,34 @@ A.styles = v`
1296
1296
  `;
1297
1297
  T([
1298
1298
  a({ type: String, reflect: !0 })
1299
- ], A.prototype, "bgstyle", 2);
1299
+ ], B.prototype, "bgstyle", 2);
1300
1300
  T([
1301
1301
  a({ type: String, reflect: !0 })
1302
- ], A.prototype, "size", 2);
1302
+ ], B.prototype, "size", 2);
1303
1303
  T([
1304
1304
  a({ type: String, reflect: !0 })
1305
- ], A.prototype, "status", 2);
1305
+ ], B.prototype, "status", 2);
1306
1306
  T([
1307
1307
  a({ type: String, reflect: !0 })
1308
- ], A.prototype, "type", 2);
1308
+ ], B.prototype, "type", 2);
1309
1309
  T([
1310
1310
  a({ type: String })
1311
- ], A.prototype, "strokewidth", 2);
1311
+ ], B.prototype, "strokewidth", 2);
1312
1312
  T([
1313
1313
  a({ type: String })
1314
- ], A.prototype, "icon", 2);
1314
+ ], B.prototype, "icon", 2);
1315
1315
  T([
1316
1316
  a({ type: Boolean, reflect: !0 })
1317
- ], A.prototype, "disabled", 2);
1317
+ ], B.prototype, "disabled", 2);
1318
1318
  T([
1319
1319
  a({ type: Boolean })
1320
- ], A.prototype, "showSrLabel", 2);
1320
+ ], B.prototype, "showSrLabel", 2);
1321
1321
  T([
1322
1322
  a({ type: String })
1323
- ], A.prototype, "srLabel", 2);
1324
- A = T([
1323
+ ], B.prototype, "srLabel", 2);
1324
+ B = T([
1325
1325
  g("o-icon-button")
1326
- ], A);
1326
+ ], B);
1327
1327
  var Mo = Object.defineProperty, To = Object.getOwnPropertyDescriptor, b = (o, t, e, n) => {
1328
1328
  for (var i = n > 1 ? void 0 : n ? To(t, e) : t, r = o.length - 1, s; r >= 0; r--)
1329
1329
  (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
@@ -1338,7 +1338,7 @@ let u = class extends p {
1338
1338
  const i = (n = this.shadowRoot) == null ? void 0 : n.querySelector(".detail-view");
1339
1339
  i && i.setAttribute("fromelement", this._detailOriginClass);
1340
1340
  }
1341
- this._setPriceTabindex(), await this.focusDetailReturnBtn();
1341
+ await this.focusDetailReturnBtn();
1342
1342
  }, this._detailOriginEl = null, this._detailOriginClass = "", this.handleKeyDown = (o) => {
1343
1343
  this.open && (o.key === "Escape" ? this.closePanel() : o.key === "Tab" && this.trapFocus(o));
1344
1344
  }, this.handleClosePanel = (o) => {
@@ -1391,16 +1391,6 @@ let u = class extends p {
1391
1391
  const n = (h = this.shadowRoot) == null ? void 0 : h.querySelector('.panel[role="dialog"]');
1392
1392
  n && n.setAttribute("aria-label", this.headerTitle);
1393
1393
  }
1394
- _setPriceTabindex() {
1395
- var n;
1396
- const o = (n = this.shadowRoot) == null ? void 0 : n.querySelector('slot[name="detail"]');
1397
- if (!o) return;
1398
- const e = o.assignedElements({ flatten: !0 }).flatMap(
1399
- (i) => Array.from(i.querySelectorAll(".m-product-price-standard"))
1400
- );
1401
- for (const i of e)
1402
- i.hasAttribute("tabindex") || i.setAttribute("tabindex", "0");
1403
- }
1404
1394
  _restoreFocusToOrigin() {
1405
1395
  var t, e;
1406
1396
  const o = this._detailOriginEl;
@@ -1553,7 +1543,9 @@ let u = class extends p {
1553
1543
  <div class="detail-view">
1554
1544
  ${o}
1555
1545
  <div class="detail-content">
1556
- <slot name="detail" @slotchange=${this._onDetailSlotChange}></slot>
1546
+ <div class="detail-scroller">
1547
+ <slot name="detail" @slotchange=${this._onDetailSlotChange}></slot>
1548
+ </div>
1557
1549
  </div>
1558
1550
  </div>
1559
1551
  ` : l`<slot></slot>`}
@@ -1790,6 +1782,12 @@ u.styles = v`
1790
1782
  .detail-content {
1791
1783
  padding: var(--spacing-xl);
1792
1784
  }
1785
+
1786
+ .detail-scroller {
1787
+ height: calc(100vh - 91px);
1788
+ overflow: auto;
1789
+ box-sizing: border-box;
1790
+ }
1793
1791
  `;
1794
1792
  u.focusablesSelector = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), o-icon-button, o-button';
1795
1793
  u.focusablesCustomElementsSelector = "o-icon-button, o-button";
@@ -1897,7 +1895,7 @@ let y = class extends Ro {
1897
1895
  "<svg",
1898
1896
  '<svg aria-hidden="true" focusable="false" part="svg"'
1899
1897
  );
1900
- return l`<span class="${o === "start" ? "icon-start" : "icon-end"}">${$(e)}</span>`;
1898
+ return l`<span class="${o === "start" ? "icon-start" : "icon-end"}">${k(e)}</span>`;
1901
1899
  }
1902
1900
  renderButton() {
1903
1901
  const o = this.text || this.textsecond;
@@ -2191,7 +2189,7 @@ x([
2191
2189
  y = x([
2192
2190
  g("o-button")
2193
2191
  ], y);
2194
- var Uo = Object.defineProperty, No = Object.getOwnPropertyDescriptor, Ot = (o, t, e, n) => {
2192
+ var Uo = Object.defineProperty, No = Object.getOwnPropertyDescriptor, zt = (o, t, e, n) => {
2195
2193
  for (var i = n > 1 ? void 0 : n ? No(t, e) : t, r = o.length - 1, s; r >= 0; r--)
2196
2194
  (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
2197
2195
  return n && i && Uo(t, e, i), i;
@@ -2223,7 +2221,7 @@ let ct = class extends p {
2223
2221
  return l`
2224
2222
  <button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
2225
2223
  <span class="sr-only">${this.label}</span>
2226
- ${$(o)}
2224
+ ${k(o)}
2227
2225
  </button>
2228
2226
  `;
2229
2227
  }
@@ -2302,16 +2300,16 @@ ct.styles = v`
2302
2300
  white-space: nowrap !important;
2303
2301
  }
2304
2302
  `;
2305
- Ot([
2303
+ zt([
2306
2304
  a({ type: String, reflect: !0 })
2307
2305
  ], ct.prototype, "status", 2);
2308
- Ot([
2306
+ zt([
2309
2307
  a({ type: String, reflect: !0 })
2310
2308
  ], ct.prototype, "ariaDescribedBy", 2);
2311
- Ot([
2309
+ zt([
2312
2310
  a({ type: String, reflect: !0 })
2313
2311
  ], ct.prototype, "label", 2);
2314
- ct = Ot([
2312
+ ct = zt([
2315
2313
  g("o-wishlist-button")
2316
2314
  ], ct);
2317
2315
  var Vo = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, st = (o, t, e, n) => {
@@ -2335,7 +2333,7 @@ let q = class extends p {
2335
2333
  return l`
2336
2334
  <a
2337
2335
  href="${o}"
2338
- target="${S(this.target || void 0)}"
2336
+ target="${A(this.target || void 0)}"
2339
2337
  @click="${this._handleClick}"
2340
2338
  >
2341
2339
  ${this.endIcon && this.reverseEndIcon ? l`
@@ -2470,7 +2468,7 @@ st([
2470
2468
  q = st([
2471
2469
  g("o-link")
2472
2470
  ], q);
2473
- var Zo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor, zt = (o, t, e, n) => {
2471
+ var Zo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor, Ot = (o, t, e, n) => {
2474
2472
  for (var i = n > 1 ? void 0 : n ? Ko(t, e) : t, r = o.length - 1, s; r >= 0; r--)
2475
2473
  (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
2476
2474
  return n && i && Zo(t, e, i), i;
@@ -2494,7 +2492,7 @@ let ht = class extends p {
2494
2492
  <div class="rating">
2495
2493
  <div class="stars">
2496
2494
  ${o.map(
2497
- (t) => l`<span class="star">${$(V[t] ?? "")}</span>`
2495
+ (t) => l`<span class="star">${k(V[t] ?? "")}</span>`
2498
2496
  )}
2499
2497
  </div>
2500
2498
  ${this.reviewCount != null && this.href != null ? l`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>` : null}
@@ -2536,16 +2534,16 @@ ht.styles = v`
2536
2534
  cursor: pointer;
2537
2535
  }
2538
2536
  `;
2539
- zt([
2537
+ Ot([
2540
2538
  a({ type: Number })
2541
2539
  ], ht.prototype, "rating", 2);
2542
- zt([
2540
+ Ot([
2543
2541
  a({ type: String })
2544
2542
  ], ht.prototype, "reviewCount", 2);
2545
- zt([
2543
+ Ot([
2546
2544
  a({ type: String })
2547
2545
  ], ht.prototype, "href", 2);
2548
- ht = zt([
2546
+ ht = Ot([
2549
2547
  g("o-rating")
2550
2548
  ], ht);
2551
2549
  var Wo = Object.defineProperty, Go = Object.getOwnPropertyDescriptor, Q = (o, t, e, n) => {
@@ -2981,7 +2979,7 @@ var ti = Object.defineProperty, ei = Object.getOwnPropertyDescriptor, Z = (o, t,
2981
2979
  (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
2982
2980
  return n && i && ti(t, e, i), i;
2983
2981
  };
2984
- let I = class extends p {
2982
+ let D = class extends p {
2985
2983
  constructor() {
2986
2984
  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) => {
2987
2985
  this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
@@ -3092,10 +3090,10 @@ let I = class extends p {
3092
3090
  ${e.url ? l`
3093
3091
  <a href="${e.url}">
3094
3092
  <span>${e.label}</span>
3095
- ${e.value === this.value ? l`<span class="check">${$(o)}</span>` : null}
3093
+ ${e.value === this.value ? l`<span class="check">${k(o)}</span>` : null}
3096
3094
  </a>` : l`
3097
3095
  <span>${e.label}</span>
3098
- ${e.value === this.value ? l`<span class="check">${$(o)}</span>` : null}`}
3096
+ ${e.value === this.value ? l`<span class="check">${k(o)}</span>` : null}`}
3099
3097
  </li>`
3100
3098
  )}
3101
3099
  </ul>` : null}
@@ -3104,7 +3102,7 @@ let I = class extends p {
3104
3102
  `;
3105
3103
  }
3106
3104
  };
3107
- I.styles = v`
3105
+ D.styles = v`
3108
3106
  :host {
3109
3107
  display: inline-block;
3110
3108
  position: relative;
@@ -3246,31 +3244,31 @@ I.styles = v`
3246
3244
  `;
3247
3245
  Z([
3248
3246
  a({ type: Array, reflect: !0 })
3249
- ], I.prototype, "options", 2);
3247
+ ], D.prototype, "options", 2);
3250
3248
  Z([
3251
3249
  a({ type: String, reflect: !0 })
3252
- ], I.prototype, "value", 2);
3250
+ ], D.prototype, "value", 2);
3253
3251
  Z([
3254
3252
  a({ type: String, reflect: !0 })
3255
- ], I.prototype, "name", 2);
3253
+ ], D.prototype, "name", 2);
3256
3254
  Z([
3257
3255
  a({ type: Boolean, reflect: !0 })
3258
- ], I.prototype, "disabled", 2);
3256
+ ], D.prototype, "disabled", 2);
3259
3257
  Z([
3260
3258
  a({ type: String, reflect: !0 })
3261
- ], I.prototype, "width", 2);
3259
+ ], D.prototype, "width", 2);
3262
3260
  Z([
3263
3261
  J()
3264
- ], I.prototype, "open", 2);
3262
+ ], D.prototype, "open", 2);
3265
3263
  Z([
3266
3264
  J()
3267
- ], I.prototype, "activeIndex", 2);
3265
+ ], D.prototype, "activeIndex", 2);
3268
3266
  Z([
3269
3267
  J()
3270
- ], I.prototype, "menuWidth", 2);
3271
- I = Z([
3268
+ ], D.prototype, "menuWidth", 2);
3269
+ D = Z([
3272
3270
  g("o-dropdown")
3273
- ], I);
3271
+ ], D);
3274
3272
  var oi = Object.getOwnPropertyDescriptor, ii = (o, t, e, n) => {
3275
3273
  for (var i = n > 1 ? void 0 : n ? oi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
3276
3274
  (s = o[r]) && (i = s(i) || i);
@@ -3425,7 +3423,7 @@ let L = class extends p {
3425
3423
  ?disabled=${this.disabled}
3426
3424
  class="btn-dropdown"
3427
3425
  >
3428
- <img alt="${S(t == null ? void 0 : t.label)}" src="${S(t == null ? void 0 : t.imgurl)}" />
3426
+ <img alt="${A(t == null ? void 0 : t.label)}" src="${A(t == null ? void 0 : t.imgurl)}" />
3429
3427
  <span id="dropdown-label" class="label">
3430
3428
  ${t ? t.label : "Select an option"}
3431
3429
  </span>
@@ -3460,13 +3458,13 @@ let L = class extends p {
3460
3458
  class="${n === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
3461
3459
  @click=${() => this.selectOption(e)}
3462
3460
  >
3463
- <a href="${S(e.url)}">
3464
- <img alt="${S(e.label)}" src="${S(e.imgurl)}" />
3461
+ <a href="${A(e.url)}">
3462
+ <img alt="${A(e.label)}" src="${A(e.imgurl)}" />
3465
3463
  <span class="label">${e.label}</span>
3466
3464
  <div class="right">
3467
- <span class="additional-text">${S(e.additionaltext)}</span>
3465
+ <span class="additional-text">${A(e.additionaltext)}</span>
3468
3466
  ${e.value === this.value && !e.additionaltext ? l`
3469
- <span class="check">${$(o)}</span>` : null}
3467
+ <span class="check">${k(o)}</span>` : null}
3470
3468
  </div>
3471
3469
  </a>
3472
3470
  </li>
@@ -3732,13 +3730,13 @@ let xt = class extends p {
3732
3730
  width: `${this.imageSize}px`,
3733
3731
  height: `${this.imageSize}px`
3734
3732
  }, n = this.option && this.option.title ? o(this.option.title) : "", i = this.option && this.option.description ? o(this.option.description) : "", r = l`
3735
- ${this.option.imgurl ? l`<img src="${this.option.imgurl}" alt="${S(n)}" aria-hidden="true" style=${ai(e)} />` : ""}
3733
+ ${this.option.imgurl ? l`<img src="${this.option.imgurl}" alt="${A(n)}" aria-hidden="true" style=${ai(e)} />` : ""}
3736
3734
  <div class="m-reassurance-content">
3737
- <h3 class="a-reassurance-text">${S(n)}</h3>
3738
- <p class="a-reassurance-description">${S(i)}</p>
3735
+ <h3 class="a-reassurance-text">${A(n)}</h3>
3736
+ <p class="a-reassurance-description">${A(i)}</p>
3739
3737
  </div>
3740
3738
  `;
3741
- return t ? l`<a href="${S(this.option.url)}" class="reassurance-item clickable">${r}</a>` : l`<div class="reassurance-item">${r}</div>`;
3739
+ return t ? l`<a href="${A(this.option.url)}" class="reassurance-item clickable">${r}</a>` : l`<div class="reassurance-item">${r}</div>`;
3742
3740
  }
3743
3741
  };
3744
3742
  xt.styles = v`
@@ -4022,7 +4020,7 @@ var fi = Object.defineProperty, gi = Object.getOwnPropertyDescriptor, F = (o, t,
4022
4020
  return n && i && fi(t, e, i), i;
4023
4021
  };
4024
4022
  const bi = Wt(p);
4025
- let B = class extends bi {
4023
+ let z = class extends bi {
4026
4024
  constructor() {
4027
4025
  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";
4028
4026
  }
@@ -4038,14 +4036,14 @@ let B = class extends bi {
4038
4036
  "<svg",
4039
4037
  '<svg aria-hidden="true" focusable="false" part="svg"'
4040
4038
  ).replace(/stroke=[#"'a-z1-9]*/gi, "");
4041
- return l`<span class="cross-icon">${$(o)}</span>`;
4039
+ return l`<span class="cross-icon">${k(o)}</span>`;
4042
4040
  }
4043
4041
  strikeThroughImg() {
4044
4042
  const o = Co[this.strikethroughImgName].replace(
4045
4043
  "<svg",
4046
4044
  '<svg aria-hidden="true" focusable="false" part="strikethrough"'
4047
4045
  ).replace(/stroke=[#"'a-z1-9]*/gi, "");
4048
- return $(o);
4046
+ return k(o);
4049
4047
  }
4050
4048
  render() {
4051
4049
  const o = this.text;
@@ -4072,7 +4070,7 @@ let B = class extends bi {
4072
4070
  `;
4073
4071
  }
4074
4072
  };
4075
- B.styles = v`
4073
+ z.styles = v`
4076
4074
  :host {
4077
4075
  cursor: pointer;
4078
4076
  display: inline-flex;
@@ -4200,34 +4198,34 @@ B.styles = v`
4200
4198
  `;
4201
4199
  F([
4202
4200
  a({ reflect: !0 })
4203
- ], B.prototype, "name", 2);
4201
+ ], z.prototype, "name", 2);
4204
4202
  F([
4205
4203
  a({ reflect: !0 })
4206
- ], B.prototype, "value", 2);
4204
+ ], z.prototype, "value", 2);
4207
4205
  F([
4208
4206
  a({ type: String, reflect: !0 })
4209
- ], B.prototype, "type", 2);
4207
+ ], z.prototype, "type", 2);
4210
4208
  F([
4211
4209
  a({ type: String, reflect: !0 })
4212
- ], B.prototype, "href", 2);
4210
+ ], z.prototype, "href", 2);
4213
4211
  F([
4214
4212
  a({ type: String, reflect: !0, attribute: "data-href" })
4215
- ], B.prototype, "dataHref", 2);
4213
+ ], z.prototype, "dataHref", 2);
4216
4214
  F([
4217
4215
  a({ type: String })
4218
- ], B.prototype, "text", 2);
4216
+ ], z.prototype, "text", 2);
4219
4217
  F([
4220
4218
  a({ type: Boolean, reflect: !0 })
4221
- ], B.prototype, "selected", 2);
4219
+ ], z.prototype, "selected", 2);
4222
4220
  F([
4223
4221
  a({ type: Boolean, reflect: !0 })
4224
- ], B.prototype, "disabled", 2);
4222
+ ], z.prototype, "disabled", 2);
4225
4223
  F([
4226
4224
  a({ type: Boolean, reflect: !0 })
4227
- ], B.prototype, "fullwidth", 2);
4228
- B = F([
4225
+ ], z.prototype, "fullwidth", 2);
4226
+ z = F([
4229
4227
  g("o-filter-chip")
4230
- ], B);
4228
+ ], z);
4231
4229
  var yi = Object.defineProperty, R = (o, t, e, n) => {
4232
4230
  for (var i = void 0, r = o.length - 1, s; r >= 0; r--)
4233
4231
  (s = o[r]) && (i = s(t, e, i) || i);
@@ -4473,12 +4471,12 @@ oe([
4473
4471
  $t = oe([
4474
4472
  g("o-badge")
4475
4473
  ], $t);
4476
- var wi = Object.defineProperty, $i = Object.getOwnPropertyDescriptor, z = (o, t, e, n) => {
4474
+ var wi = Object.defineProperty, $i = Object.getOwnPropertyDescriptor, I = (o, t, e, n) => {
4477
4475
  for (var i = n > 1 ? void 0 : n ? $i(t, e) : t, r = o.length - 1, s; r >= 0; r--)
4478
4476
  (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
4479
4477
  return n && i && wi(t, e, i), i;
4480
4478
  };
4481
- let k = class extends p {
4479
+ let _ = class extends p {
4482
4480
  constructor() {
4483
4481
  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 = 5e3, this.multiline = !1;
4484
4482
  }
@@ -4526,7 +4524,7 @@ let k = class extends p {
4526
4524
  return l`
4527
4525
  <div class="o-toast">
4528
4526
  <div class="o-toast-icon">
4529
- ${$(t)}
4527
+ ${k(t)}
4530
4528
  </div>
4531
4529
  <div class="o-toast-text">
4532
4530
  ${this.text}
@@ -4542,7 +4540,7 @@ let k = class extends p {
4542
4540
  `;
4543
4541
  }
4544
4542
  };
4545
- k.styles = v`
4543
+ _.styles = v`
4546
4544
  :host {
4547
4545
  --vertical-offset: 24px;
4548
4546
  --horizontal-offset: 24px;
@@ -4620,43 +4618,43 @@ k.styles = v`
4620
4618
  height: 16px;
4621
4619
  }
4622
4620
  `;
4623
- z([
4621
+ I([
4624
4622
  a({ type: String, reflect: !0 })
4625
- ], k.prototype, "icon", 2);
4626
- z([
4623
+ ], _.prototype, "icon", 2);
4624
+ I([
4627
4625
  a({ type: String, reflect: !0 })
4628
- ], k.prototype, "text", 2);
4629
- z([
4626
+ ], _.prototype, "text", 2);
4627
+ I([
4630
4628
  a({ type: String, reflect: !0 })
4631
- ], k.prototype, "verticalanchor", 2);
4632
- z([
4629
+ ], _.prototype, "verticalanchor", 2);
4630
+ I([
4633
4631
  a({ type: String, reflect: !0 })
4634
- ], k.prototype, "horizontalanchor", 2);
4635
- z([
4632
+ ], _.prototype, "horizontalanchor", 2);
4633
+ I([
4636
4634
  a({ type: Number, reflect: !0 })
4637
- ], k.prototype, "verticaloffset", 2);
4638
- z([
4635
+ ], _.prototype, "verticaloffset", 2);
4636
+ I([
4639
4637
  a({ type: Number, reflect: !0 })
4640
- ], k.prototype, "horizontaloffset", 2);
4641
- z([
4638
+ ], _.prototype, "horizontaloffset", 2);
4639
+ I([
4642
4640
  a({ type: Number, reflect: !0 })
4643
- ], k.prototype, "animationduration", 2);
4644
- z([
4641
+ ], _.prototype, "animationduration", 2);
4642
+ I([
4645
4643
  a({ type: String, reflect: !0 })
4646
- ], k.prototype, "animationaxis", 2);
4647
- z([
4644
+ ], _.prototype, "animationaxis", 2);
4645
+ I([
4648
4646
  a({ type: Boolean, reflect: !0 })
4649
- ], k.prototype, "animated", 2);
4650
- z([
4647
+ ], _.prototype, "animated", 2);
4648
+ I([
4651
4649
  a({ type: Number, reflect: !0 })
4652
- ], k.prototype, "lifeduration", 2);
4653
- z([
4650
+ ], _.prototype, "lifeduration", 2);
4651
+ I([
4654
4652
  a({ type: Boolean, reflect: !0 })
4655
- ], k.prototype, "multiline", 2);
4656
- k = z([
4653
+ ], _.prototype, "multiline", 2);
4654
+ _ = I([
4657
4655
  g("o-toast")
4658
- ], k);
4659
- var ki = Object.defineProperty, _i = Object.getOwnPropertyDescriptor, D = (o, t, e, n) => {
4656
+ ], _);
4657
+ var ki = Object.defineProperty, _i = Object.getOwnPropertyDescriptor, H = (o, t, e, n) => {
4660
4658
  for (var i = n > 1 ? void 0 : n ? _i(t, e) : t, r = o.length - 1, s; r >= 0; r--)
4661
4659
  (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
4662
4660
  return n && i && ki(t, e, i), i;
@@ -4678,7 +4676,7 @@ let Ci = 0, E = class extends p {
4678
4676
  this.disabled || (o.key === " " || o.key === "Enter") && (o.preventDefault(), this.toggle());
4679
4677
  }
4680
4678
  render() {
4681
- const o = $(V.checkbox.replace("<svg", '<svg aria-hidden="true" focusable="false" part="svg"')), t = $(V.icoMinus.replace("<svg", '<svg class="indeterminate" aria-hidden="true" focusable="false" part="svg"'));
4679
+ const o = k(V.checkbox.replace("<svg", '<svg aria-hidden="true" focusable="false" part="svg"')), t = k(V.icoMinus.replace("<svg", '<svg class="indeterminate" aria-hidden="true" focusable="false" part="svg"'));
4682
4680
  return l`
4683
4681
  <input
4684
4682
  type="checkbox"
@@ -4805,37 +4803,37 @@ E.styles = v`
4805
4803
  stroke: var(--color-border-white);
4806
4804
  }
4807
4805
  `;
4808
- D([
4806
+ H([
4809
4807
  a({ type: Boolean, reflect: !0 })
4810
4808
  ], E.prototype, "checked", 2);
4811
- D([
4809
+ H([
4812
4810
  a({ type: Boolean, reflect: !0 })
4813
4811
  ], E.prototype, "indeterminate", 2);
4814
- D([
4812
+ H([
4815
4813
  a({ type: Boolean, reflect: !0 })
4816
4814
  ], E.prototype, "disabled", 2);
4817
- D([
4815
+ H([
4818
4816
  a({ type: String, reflect: !0 })
4819
4817
  ], E.prototype, "size", 2);
4820
- D([
4818
+ H([
4821
4819
  a({ type: Boolean })
4822
4820
  ], E.prototype, "showLabel", 2);
4823
- D([
4821
+ H([
4824
4822
  a({ type: String })
4825
4823
  ], E.prototype, "label", 2);
4826
- D([
4824
+ H([
4827
4825
  a({ type: String })
4828
4826
  ], E.prototype, "name", 2);
4829
- D([
4827
+ H([
4830
4828
  a({ type: String })
4831
4829
  ], E.prototype, "value", 2);
4832
- D([
4830
+ H([
4833
4831
  a({ type: String, reflect: !0 })
4834
4832
  ], E.prototype, "inputId", 2);
4835
- D([
4833
+ H([
4836
4834
  ke("input")
4837
4835
  ], E.prototype, "inputEl", 2);
4838
- E = D([
4836
+ E = H([
4839
4837
  g("o-checkbox")
4840
4838
  ], E);
4841
4839
  var Ei = Object.defineProperty, Si = Object.getOwnPropertyDescriptor, U = (o, t, e, n) => {
@@ -4997,8 +4995,8 @@ U([
4997
4995
  O = U([
4998
4996
  g("o-radio")
4999
4997
  ], O);
5000
- var Li = Object.getOwnPropertyDescriptor, Pi = (o, t, e, n) => {
5001
- for (var i = n > 1 ? void 0 : n ? Li(t, e) : t, r = o.length - 1, s; r >= 0; r--)
4998
+ var Bi = Object.getOwnPropertyDescriptor, Li = (o, t, e, n) => {
4999
+ for (var i = n > 1 ? void 0 : n ? Bi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
5002
5000
  (s = o[r]) && (i = s(i) || i);
5003
5001
  return i;
5004
5002
  };
@@ -5025,13 +5023,13 @@ Ut.styles = v`
5025
5023
  padding: var(--spacing-4-xs);
5026
5024
  }
5027
5025
  `;
5028
- Ut = Pi([
5026
+ Ut = Li([
5029
5027
  g("o-breadcrumbs")
5030
5028
  ], Ut);
5031
- var Bi = Object.defineProperty, Oi = Object.getOwnPropertyDescriptor, ie = (o, t, e, n) => {
5032
- for (var i = n > 1 ? void 0 : n ? Oi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
5029
+ var Pi = Object.defineProperty, zi = Object.getOwnPropertyDescriptor, ie = (o, t, e, n) => {
5030
+ for (var i = n > 1 ? void 0 : n ? zi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
5033
5031
  (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
5034
- return n && i && Bi(t, e, i), i;
5032
+ return n && i && Pi(t, e, i), i;
5035
5033
  };
5036
5034
  let kt = class extends p {
5037
5035
  constructor() {
@@ -5103,10 +5101,10 @@ ie([
5103
5101
  kt = ie([
5104
5102
  g("o-breadcrumb")
5105
5103
  ], kt);
5106
- var zi = Object.defineProperty, Ii = Object.getOwnPropertyDescriptor, Ct = (o, t, e, n) => {
5104
+ var Oi = Object.defineProperty, Ii = Object.getOwnPropertyDescriptor, Ct = (o, t, e, n) => {
5107
5105
  for (var i = n > 1 ? void 0 : n ? Ii(t, e) : t, r = o.length - 1, s; r >= 0; r--)
5108
5106
  (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
5109
- return n && i && zi(t, e, i), i;
5107
+ return n && i && Oi(t, e, i), i;
5110
5108
  };
5111
5109
  let nt = class extends p {
5112
5110
  constructor() {
@@ -5260,14 +5258,14 @@ const Di = `<?xml version="1.0" encoding="UTF-8" standalone="no"?>
5260
5258
  id="path52"
5261
5259
  style="fill:#3F2B2E;fill-opacity:1;fill-rule:nonzero;stroke:none"
5262
5260
  d="m 1647.15,320.5 c -2.07,0 -4.94,-0.199 -8.49,-0.469 -8.68,-0.64 -23.5,-1.062 -37.41,-0.172 -20.4,1.282 -32.01,-0.589 -32.01,-10.687 0,-8.66 8.46,-10.781 15.19,-12.461 11.42,-2.949 17.17,-4.422 17.17,-27.402 l 0.93,-77.731 c 0.5,-38.668 1.03,-80.199 1.26,-103.4296 -51.33,57.4726 -160.86,181.7736 -188.51,217.5116 -6.78,8.68 -10.53,13.449 -17.38,13.449 -9.28,0 -20.13,0.743 -29.55,1.379 -7.55,0.5 -14.21,0.934 -18.55,0.934 -12.43,0 -18.72,-3.953 -18.72,-11.781 0,-10.34 10.9,-11.911 15.93,-12.621 10.36,-1.731 14.33,-3.668 18.82,-7.11 2.1,-1.629 5.01,-3.879 5.01,-26.988 0,-29.461 -3.75,-186.1837 -5.06,-201.8126 -2.12,-24.4688 -4.58,-25.168 -18.72,-29.1485 -6.17,-1.6718 -14.6,-3.9609 -14.6,-12.7421 0,-5.1797 2.84,-11.34771 16.4,-11.34771 1.21,0 3.75,0.23829 7.15,0.61719 11.38,1.22266 33.32,1.64062 46.82,0.3125 25.84,-2.53125 30.46,3.93752 30.46,10.41802 0,9.3593 -9.18,11.8515 -14.53,13.3203 -8.73,2.4922 -15.61,6.5195 -17.27,10.1992 -3.05,6.5234 -4.31,16.8515 -4.31,35.6719 0,10.1093 0.37,54.9488 0.74,98.9808 0.25,28.839 0.47,57.359 0.59,75.558 25.28,-29.508 56.38,-65.5 86.72,-100.609 49.5,-57.2697 96.26,-111.3712 113.23,-132.09 l 1.93,-2.3516 c 3.93,-4.8203 7.75,-9.97652 12.34,-14.19918 3.35,-3.089845 8.47,-4.83985 12.86,-2.871095 3.52,1.570315 5.52,5.300785 6.26,8.941405 0.88,4.26177 0.44,8.69927 0.28,13.01177 -0.59,15.3281 -0.42,31.5898 -0.25,52.0703 0.12,12.1172 0.25,25.7184 0.25,41.4684 0,49.141 1.03,147.141 2.98,161.66 1.58,10.52 2.25,14.879 14.31,18.891 l 2.09,0.75 c 4.07,1.41 11.6,4.027 11.6,12.02 0,4.949 -2.76,10.859 -15.96,10.859" /></g></g></svg>`;
5263
- var Hi = Object.defineProperty, Mi = Object.getOwnPropertyDescriptor, H = (o, t, e, n) => {
5261
+ var Hi = Object.defineProperty, Mi = Object.getOwnPropertyDescriptor, S = (o, t, e, n) => {
5264
5262
  for (var i = n > 1 ? void 0 : n ? Mi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
5265
5263
  (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
5266
5264
  return n && i && Hi(t, e, i), i;
5267
5265
  };
5268
5266
  const re = class re extends p {
5269
5267
  constructor() {
5270
- super(...arguments), this.ispagedesigner = !1, this._classPopin = "", this.open = !1, this.background = "", this.backgroundUrl = "", this.closeOnEsc = !0, this.closeOnBackdrop = !0, this.lockScroll = !0, this.variant = "fullscreen", this.maxWidth = "640px", this._labelId = `title-${Math.random().toString(36).slice(2)}`, this._onBackdropClick = (t) => {
5268
+ super(...arguments), this.ispagedesigner = !1, this._classPopin = "", this.open = !1, this.background = "", this.backgroundUrl = "", this.closeOnEsc = !0, this.closeOnBackdrop = !0, this.lockScroll = !0, this.variant = "fullscreen", this.maxWidth = "640px", this.showBackButton = !1, this.contrast = !1, this._labelId = `title-${Math.random().toString(36).slice(2)}`, this._onBackdropClick = (t) => {
5271
5269
  var n;
5272
5270
  if (!this.open || !this.closeOnBackdrop) return;
5273
5271
  const e = t.composedPath()[0];
@@ -5302,6 +5300,9 @@ const re = class re extends p {
5302
5300
  _onKeydown(t) {
5303
5301
  this.open && this.closeOnEsc && t.key === "Escape" && (t.preventDefault(), this._requestClose("esc"));
5304
5302
  }
5303
+ _onBackClick() {
5304
+ this.dispatchEvent(new CustomEvent("back", { bubbles: !0, composed: !0 }));
5305
+ }
5305
5306
  _requestClose(t) {
5306
5307
  const e = new CustomEvent("request-close", {
5307
5308
  bubbles: !0,
@@ -5316,7 +5317,7 @@ const re = class re extends p {
5316
5317
  data-close-btn
5317
5318
  icon="cross"
5318
5319
  size="large"
5319
- bgstyle="none-light"
5320
+ bgstyle="none-${this.contrast ? "contrast" : "light"}"
5320
5321
  status="empty"
5321
5322
  type="button"
5322
5323
  aria-label="Close"
@@ -5326,6 +5327,25 @@ const re = class re extends p {
5326
5327
  <button class="close" data-close-btn aria-label="Close" @click=${() => this._requestClose("button")}>×</button>
5327
5328
  `;
5328
5329
  }
5330
+ _renderBackButton() {
5331
+ return l`
5332
+ <div part="back">
5333
+ <o-icon-button
5334
+ icon="arrowLeft"
5335
+ size="large"
5336
+ status="empty"
5337
+ class="return-btn"
5338
+ bgstyle="none-${this.contrast ? "contrast" : "light"}"
5339
+ data-role="back"
5340
+ @click=${() => this._onBackClick()}
5341
+ @keydown=${() => this._onBackClick()}
5342
+ srlabel="Go back"
5343
+ ?showsrlabel=${!0}
5344
+ tabindex="-1"
5345
+ ></o-icon-button>
5346
+ </div>
5347
+ `;
5348
+ }
5329
5349
  render() {
5330
5350
  return l`
5331
5351
  ${this.open ? l`<div class="backdrop" part="backdrop" @click=${this._onBackdropClick}></div>` : null}
@@ -5339,10 +5359,11 @@ const re = class re extends p {
5339
5359
  aria-labelledby=${this.title ? this._labelId : void 0}
5340
5360
  >
5341
5361
  <header part="header">
5362
+ ${this.showBackButton ? this._renderBackButton() : null}
5342
5363
  <div class="brand">
5343
- <span slot="logo">${$(Di)}</span>
5364
+ <span slot="logo${this.contrast ? "-contrast" : ""}">${k(Di)}</span>
5344
5365
  </div>
5345
- <div part="close">${this._renderCloseButton()}</div>
5366
+ <div part="close${this.contrast ? "-contrast" : ""}">${this._renderCloseButton()}</div>
5346
5367
  </header>
5347
5368
  <main part="body">
5348
5369
  <slot></slot>
@@ -5406,12 +5427,11 @@ re.styles = v`
5406
5427
  background: var(--color-container-bg-white, #fff);
5407
5428
  }
5408
5429
 
5409
- /* Calque de fond */
5410
5430
  .dialog::before {
5411
5431
  content: '';
5412
5432
  position: absolute;
5413
5433
  inset: 0;
5414
- background: var(--_bg, none); /* couleur / gradient / image */
5434
+ background: var(--_bg, none);
5415
5435
  background-size: cover;
5416
5436
  background-position: center;
5417
5437
  opacity: 1;
@@ -5438,10 +5458,12 @@ re.styles = v`
5438
5458
 
5439
5459
  .brand { display: inline-flex; align-items: center; gap: var(--spacing-s, 8px); }
5440
5460
  ::slotted([slot="logo"]) { display: inline-flex; height: 28px; line-height: 0; }
5441
- [slot="logo"] svg { width: 176px; height: auto; }
5461
+ [slot="logo"] svg, [slot="logo-contrast"] svg { width: 176px; height: auto; }
5442
5462
  [slot="logo"] svg path { fill: #fff !important; }
5443
5463
 
5444
5464
  [part="close"] { position: absolute; top: 16px; right: 36px; }
5465
+ [part="close-contrast"] { position: absolute; top: 16px; right: var(--spacing-l); }
5466
+ [part="back"] { position: absolute; top: 16px; left: var(--spacing-l); }
5445
5467
  @media (max-width: 767px) { [part="close"] { right: 8px; top: 22px; } }
5446
5468
 
5447
5469
  .close { font: inherit; border: 0; background: transparent; cursor: pointer;
@@ -5461,38 +5483,44 @@ re.styles = v`
5461
5483
  to { transform: translateY(0) scale(1); opacity: 1; }
5462
5484
  }
5463
5485
  `;
5464
- let _ = re;
5465
- H([
5486
+ let $ = re;
5487
+ S([
5466
5488
  a({ type: Boolean, reflect: !0 })
5467
- ], _.prototype, "ispagedesigner", 2);
5468
- H([
5489
+ ], $.prototype, "ispagedesigner", 2);
5490
+ S([
5469
5491
  a({ type: String, reflect: !0 })
5470
- ], _.prototype, "classPopin", 1);
5471
- H([
5492
+ ], $.prototype, "classPopin", 1);
5493
+ S([
5472
5494
  a({ type: Boolean, reflect: !0 })
5473
- ], _.prototype, "open", 2);
5474
- H([
5495
+ ], $.prototype, "open", 2);
5496
+ S([
5475
5497
  a({ type: String, reflect: !0 })
5476
- ], _.prototype, "background", 2);
5477
- H([
5498
+ ], $.prototype, "background", 2);
5499
+ S([
5478
5500
  a({ type: String, attribute: "background-url", reflect: !0 })
5479
- ], _.prototype, "backgroundUrl", 2);
5480
- H([
5501
+ ], $.prototype, "backgroundUrl", 2);
5502
+ S([
5481
5503
  a({ type: Boolean, attribute: "close-on-esc" })
5482
- ], _.prototype, "closeOnEsc", 2);
5483
- H([
5504
+ ], $.prototype, "closeOnEsc", 2);
5505
+ S([
5484
5506
  a({ type: Boolean, attribute: "close-on-backdrop" })
5485
- ], _.prototype, "closeOnBackdrop", 2);
5486
- H([
5507
+ ], $.prototype, "closeOnBackdrop", 2);
5508
+ S([
5487
5509
  a({ type: Boolean, attribute: "lock-scroll" })
5488
- ], _.prototype, "lockScroll", 2);
5489
- H([
5510
+ ], $.prototype, "lockScroll", 2);
5511
+ S([
5490
5512
  a({ type: String, reflect: !0 })
5491
- ], _.prototype, "variant", 2);
5492
- H([
5513
+ ], $.prototype, "variant", 2);
5514
+ S([
5493
5515
  a({ type: String, attribute: "max-width" })
5494
- ], _.prototype, "maxWidth", 2);
5495
- H([
5516
+ ], $.prototype, "maxWidth", 2);
5517
+ S([
5518
+ a({ type: Boolean, reflect: !0 })
5519
+ ], $.prototype, "showBackButton", 2);
5520
+ S([
5521
+ a({ type: Boolean, reflect: !0 })
5522
+ ], $.prototype, "contrast", 2);
5523
+ S([
5496
5524
  J()
5497
- ], _.prototype, "_labelId", 2);
5498
- customElements.define("o-popin", _);
5525
+ ], $.prototype, "_labelId", 2);
5526
+ customElements.define("o-popin", $);