@florid-kit/components 0.9.30 → 0.9.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/popin.d.ts +4 -15
- package/index.js +71 -53
- package/index.mjs +206 -176
- package/package.json +1 -1
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:
|
|
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 &&
|
|
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 } =
|
|
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 =
|
|
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 = [...
|
|
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,
|
|
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 :
|
|
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 =
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
},
|
|
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),
|
|
887
|
+
e.add(o), Lo(t);
|
|
888
888
|
}
|
|
889
889
|
};
|
|
890
890
|
function Ao(o) {
|
|
891
|
-
this._$AN !== void 0 ? (
|
|
891
|
+
this._$AN !== void 0 ? (Lt(this), this._$AM = o, _e(this)) : this._$AM = o;
|
|
892
892
|
}
|
|
893
|
-
function
|
|
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),
|
|
896
|
-
else n != null && (vt(n, !1),
|
|
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
|
|
900
|
-
o.type == Gt.CHILD && (o._$AP ?? (o._$AP =
|
|
899
|
+
const Lo = (o) => {
|
|
900
|
+
o.type == Gt.CHILD && (o._$AP ?? (o._$AP = Bo), o._$AQ ?? (o._$AQ = Ao));
|
|
901
901
|
};
|
|
902
|
-
class
|
|
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),
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
${
|
|
1069
|
+
${k(e)}
|
|
1070
1070
|
</span>
|
|
1071
1071
|
` : l`
|
|
1072
1072
|
<button
|
|
1073
1073
|
type="button"
|
|
1074
|
-
aria-label=${
|
|
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
|
-
${
|
|
1078
|
+
${k(e)}
|
|
1079
1079
|
${n}
|
|
1080
1080
|
</button>
|
|
1081
1081
|
`}
|
|
1082
1082
|
`;
|
|
1083
1083
|
}
|
|
1084
1084
|
};
|
|
1085
|
-
|
|
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
|
-
],
|
|
1299
|
+
], B.prototype, "bgstyle", 2);
|
|
1300
1300
|
T([
|
|
1301
1301
|
a({ type: String, reflect: !0 })
|
|
1302
|
-
],
|
|
1302
|
+
], B.prototype, "size", 2);
|
|
1303
1303
|
T([
|
|
1304
1304
|
a({ type: String, reflect: !0 })
|
|
1305
|
-
],
|
|
1305
|
+
], B.prototype, "status", 2);
|
|
1306
1306
|
T([
|
|
1307
1307
|
a({ type: String, reflect: !0 })
|
|
1308
|
-
],
|
|
1308
|
+
], B.prototype, "type", 2);
|
|
1309
1309
|
T([
|
|
1310
1310
|
a({ type: String })
|
|
1311
|
-
],
|
|
1311
|
+
], B.prototype, "strokewidth", 2);
|
|
1312
1312
|
T([
|
|
1313
1313
|
a({ type: String })
|
|
1314
|
-
],
|
|
1314
|
+
], B.prototype, "icon", 2);
|
|
1315
1315
|
T([
|
|
1316
1316
|
a({ type: Boolean, reflect: !0 })
|
|
1317
|
-
],
|
|
1317
|
+
], B.prototype, "disabled", 2);
|
|
1318
1318
|
T([
|
|
1319
1319
|
a({ type: Boolean })
|
|
1320
|
-
],
|
|
1320
|
+
], B.prototype, "showSrLabel", 2);
|
|
1321
1321
|
T([
|
|
1322
1322
|
a({ type: String })
|
|
1323
|
-
],
|
|
1324
|
-
|
|
1323
|
+
], B.prototype, "srLabel", 2);
|
|
1324
|
+
B = T([
|
|
1325
1325
|
g("o-icon-button")
|
|
1326
|
-
],
|
|
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);
|
|
@@ -1897,7 +1897,7 @@ let y = class extends Ro {
|
|
|
1897
1897
|
"<svg",
|
|
1898
1898
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
1899
1899
|
);
|
|
1900
|
-
return l`<span class="${o === "start" ? "icon-start" : "icon-end"}">${
|
|
1900
|
+
return l`<span class="${o === "start" ? "icon-start" : "icon-end"}">${k(e)}</span>`;
|
|
1901
1901
|
}
|
|
1902
1902
|
renderButton() {
|
|
1903
1903
|
const o = this.text || this.textsecond;
|
|
@@ -2191,7 +2191,7 @@ x([
|
|
|
2191
2191
|
y = x([
|
|
2192
2192
|
g("o-button")
|
|
2193
2193
|
], y);
|
|
2194
|
-
var Uo = Object.defineProperty, No = Object.getOwnPropertyDescriptor,
|
|
2194
|
+
var Uo = Object.defineProperty, No = Object.getOwnPropertyDescriptor, zt = (o, t, e, n) => {
|
|
2195
2195
|
for (var i = n > 1 ? void 0 : n ? No(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2196
2196
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2197
2197
|
return n && i && Uo(t, e, i), i;
|
|
@@ -2223,7 +2223,7 @@ let ct = class extends p {
|
|
|
2223
2223
|
return l`
|
|
2224
2224
|
<button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
|
|
2225
2225
|
<span class="sr-only">${this.label}</span>
|
|
2226
|
-
${
|
|
2226
|
+
${k(o)}
|
|
2227
2227
|
</button>
|
|
2228
2228
|
`;
|
|
2229
2229
|
}
|
|
@@ -2302,16 +2302,16 @@ ct.styles = v`
|
|
|
2302
2302
|
white-space: nowrap !important;
|
|
2303
2303
|
}
|
|
2304
2304
|
`;
|
|
2305
|
-
|
|
2305
|
+
zt([
|
|
2306
2306
|
a({ type: String, reflect: !0 })
|
|
2307
2307
|
], ct.prototype, "status", 2);
|
|
2308
|
-
|
|
2308
|
+
zt([
|
|
2309
2309
|
a({ type: String, reflect: !0 })
|
|
2310
2310
|
], ct.prototype, "ariaDescribedBy", 2);
|
|
2311
|
-
|
|
2311
|
+
zt([
|
|
2312
2312
|
a({ type: String, reflect: !0 })
|
|
2313
2313
|
], ct.prototype, "label", 2);
|
|
2314
|
-
ct =
|
|
2314
|
+
ct = zt([
|
|
2315
2315
|
g("o-wishlist-button")
|
|
2316
2316
|
], ct);
|
|
2317
2317
|
var Vo = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, st = (o, t, e, n) => {
|
|
@@ -2335,7 +2335,7 @@ let q = class extends p {
|
|
|
2335
2335
|
return l`
|
|
2336
2336
|
<a
|
|
2337
2337
|
href="${o}"
|
|
2338
|
-
target="${
|
|
2338
|
+
target="${A(this.target || void 0)}"
|
|
2339
2339
|
@click="${this._handleClick}"
|
|
2340
2340
|
>
|
|
2341
2341
|
${this.endIcon && this.reverseEndIcon ? l`
|
|
@@ -2470,7 +2470,7 @@ st([
|
|
|
2470
2470
|
q = st([
|
|
2471
2471
|
g("o-link")
|
|
2472
2472
|
], q);
|
|
2473
|
-
var Zo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor,
|
|
2473
|
+
var Zo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor, Ot = (o, t, e, n) => {
|
|
2474
2474
|
for (var i = n > 1 ? void 0 : n ? Ko(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2475
2475
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2476
2476
|
return n && i && Zo(t, e, i), i;
|
|
@@ -2494,7 +2494,7 @@ let ht = class extends p {
|
|
|
2494
2494
|
<div class="rating">
|
|
2495
2495
|
<div class="stars">
|
|
2496
2496
|
${o.map(
|
|
2497
|
-
(t) => l`<span class="star">${
|
|
2497
|
+
(t) => l`<span class="star">${k(V[t] ?? "")}</span>`
|
|
2498
2498
|
)}
|
|
2499
2499
|
</div>
|
|
2500
2500
|
${this.reviewCount != null && this.href != null ? l`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>` : null}
|
|
@@ -2536,16 +2536,16 @@ ht.styles = v`
|
|
|
2536
2536
|
cursor: pointer;
|
|
2537
2537
|
}
|
|
2538
2538
|
`;
|
|
2539
|
-
|
|
2539
|
+
Ot([
|
|
2540
2540
|
a({ type: Number })
|
|
2541
2541
|
], ht.prototype, "rating", 2);
|
|
2542
|
-
|
|
2542
|
+
Ot([
|
|
2543
2543
|
a({ type: String })
|
|
2544
2544
|
], ht.prototype, "reviewCount", 2);
|
|
2545
|
-
|
|
2545
|
+
Ot([
|
|
2546
2546
|
a({ type: String })
|
|
2547
2547
|
], ht.prototype, "href", 2);
|
|
2548
|
-
ht =
|
|
2548
|
+
ht = Ot([
|
|
2549
2549
|
g("o-rating")
|
|
2550
2550
|
], ht);
|
|
2551
2551
|
var Wo = Object.defineProperty, Go = Object.getOwnPropertyDescriptor, Q = (o, t, e, n) => {
|
|
@@ -2981,7 +2981,7 @@ var ti = Object.defineProperty, ei = Object.getOwnPropertyDescriptor, Z = (o, t,
|
|
|
2981
2981
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2982
2982
|
return n && i && ti(t, e, i), i;
|
|
2983
2983
|
};
|
|
2984
|
-
let
|
|
2984
|
+
let D = class extends p {
|
|
2985
2985
|
constructor() {
|
|
2986
2986
|
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
2987
|
this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
|
|
@@ -3092,10 +3092,10 @@ let I = class extends p {
|
|
|
3092
3092
|
${e.url ? l`
|
|
3093
3093
|
<a href="${e.url}">
|
|
3094
3094
|
<span>${e.label}</span>
|
|
3095
|
-
${e.value === this.value ? l`<span class="check">${
|
|
3095
|
+
${e.value === this.value ? l`<span class="check">${k(o)}</span>` : null}
|
|
3096
3096
|
</a>` : l`
|
|
3097
3097
|
<span>${e.label}</span>
|
|
3098
|
-
${e.value === this.value ? l`<span class="check">${
|
|
3098
|
+
${e.value === this.value ? l`<span class="check">${k(o)}</span>` : null}`}
|
|
3099
3099
|
</li>`
|
|
3100
3100
|
)}
|
|
3101
3101
|
</ul>` : null}
|
|
@@ -3104,7 +3104,7 @@ let I = class extends p {
|
|
|
3104
3104
|
`;
|
|
3105
3105
|
}
|
|
3106
3106
|
};
|
|
3107
|
-
|
|
3107
|
+
D.styles = v`
|
|
3108
3108
|
:host {
|
|
3109
3109
|
display: inline-block;
|
|
3110
3110
|
position: relative;
|
|
@@ -3246,31 +3246,31 @@ I.styles = v`
|
|
|
3246
3246
|
`;
|
|
3247
3247
|
Z([
|
|
3248
3248
|
a({ type: Array, reflect: !0 })
|
|
3249
|
-
],
|
|
3249
|
+
], D.prototype, "options", 2);
|
|
3250
3250
|
Z([
|
|
3251
3251
|
a({ type: String, reflect: !0 })
|
|
3252
|
-
],
|
|
3252
|
+
], D.prototype, "value", 2);
|
|
3253
3253
|
Z([
|
|
3254
3254
|
a({ type: String, reflect: !0 })
|
|
3255
|
-
],
|
|
3255
|
+
], D.prototype, "name", 2);
|
|
3256
3256
|
Z([
|
|
3257
3257
|
a({ type: Boolean, reflect: !0 })
|
|
3258
|
-
],
|
|
3258
|
+
], D.prototype, "disabled", 2);
|
|
3259
3259
|
Z([
|
|
3260
3260
|
a({ type: String, reflect: !0 })
|
|
3261
|
-
],
|
|
3261
|
+
], D.prototype, "width", 2);
|
|
3262
3262
|
Z([
|
|
3263
3263
|
J()
|
|
3264
|
-
],
|
|
3264
|
+
], D.prototype, "open", 2);
|
|
3265
3265
|
Z([
|
|
3266
3266
|
J()
|
|
3267
|
-
],
|
|
3267
|
+
], D.prototype, "activeIndex", 2);
|
|
3268
3268
|
Z([
|
|
3269
3269
|
J()
|
|
3270
|
-
],
|
|
3271
|
-
|
|
3270
|
+
], D.prototype, "menuWidth", 2);
|
|
3271
|
+
D = Z([
|
|
3272
3272
|
g("o-dropdown")
|
|
3273
|
-
],
|
|
3273
|
+
], D);
|
|
3274
3274
|
var oi = Object.getOwnPropertyDescriptor, ii = (o, t, e, n) => {
|
|
3275
3275
|
for (var i = n > 1 ? void 0 : n ? oi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3276
3276
|
(s = o[r]) && (i = s(i) || i);
|
|
@@ -3425,7 +3425,7 @@ let L = class extends p {
|
|
|
3425
3425
|
?disabled=${this.disabled}
|
|
3426
3426
|
class="btn-dropdown"
|
|
3427
3427
|
>
|
|
3428
|
-
<img alt="${
|
|
3428
|
+
<img alt="${A(t == null ? void 0 : t.label)}" src="${A(t == null ? void 0 : t.imgurl)}" />
|
|
3429
3429
|
<span id="dropdown-label" class="label">
|
|
3430
3430
|
${t ? t.label : "Select an option"}
|
|
3431
3431
|
</span>
|
|
@@ -3460,13 +3460,13 @@ let L = class extends p {
|
|
|
3460
3460
|
class="${n === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
|
|
3461
3461
|
@click=${() => this.selectOption(e)}
|
|
3462
3462
|
>
|
|
3463
|
-
<a href="${
|
|
3464
|
-
<img alt="${
|
|
3463
|
+
<a href="${A(e.url)}">
|
|
3464
|
+
<img alt="${A(e.label)}" src="${A(e.imgurl)}" />
|
|
3465
3465
|
<span class="label">${e.label}</span>
|
|
3466
3466
|
<div class="right">
|
|
3467
|
-
<span class="additional-text">${
|
|
3467
|
+
<span class="additional-text">${A(e.additionaltext)}</span>
|
|
3468
3468
|
${e.value === this.value && !e.additionaltext ? l`
|
|
3469
|
-
<span class="check">${
|
|
3469
|
+
<span class="check">${k(o)}</span>` : null}
|
|
3470
3470
|
</div>
|
|
3471
3471
|
</a>
|
|
3472
3472
|
</li>
|
|
@@ -3732,13 +3732,13 @@ let xt = class extends p {
|
|
|
3732
3732
|
width: `${this.imageSize}px`,
|
|
3733
3733
|
height: `${this.imageSize}px`
|
|
3734
3734
|
}, 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="${
|
|
3735
|
+
${this.option.imgurl ? l`<img src="${this.option.imgurl}" alt="${A(n)}" aria-hidden="true" style=${ai(e)} />` : ""}
|
|
3736
3736
|
<div class="m-reassurance-content">
|
|
3737
|
-
<h3 class="a-reassurance-text">${
|
|
3738
|
-
<p class="a-reassurance-description">${
|
|
3737
|
+
<h3 class="a-reassurance-text">${A(n)}</h3>
|
|
3738
|
+
<p class="a-reassurance-description">${A(i)}</p>
|
|
3739
3739
|
</div>
|
|
3740
3740
|
`;
|
|
3741
|
-
return t ? l`<a href="${
|
|
3741
|
+
return t ? l`<a href="${A(this.option.url)}" class="reassurance-item clickable">${r}</a>` : l`<div class="reassurance-item">${r}</div>`;
|
|
3742
3742
|
}
|
|
3743
3743
|
};
|
|
3744
3744
|
xt.styles = v`
|
|
@@ -4022,7 +4022,7 @@ var fi = Object.defineProperty, gi = Object.getOwnPropertyDescriptor, F = (o, t,
|
|
|
4022
4022
|
return n && i && fi(t, e, i), i;
|
|
4023
4023
|
};
|
|
4024
4024
|
const bi = Wt(p);
|
|
4025
|
-
let
|
|
4025
|
+
let z = class extends bi {
|
|
4026
4026
|
constructor() {
|
|
4027
4027
|
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
4028
|
}
|
|
@@ -4038,14 +4038,14 @@ let B = class extends bi {
|
|
|
4038
4038
|
"<svg",
|
|
4039
4039
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
4040
4040
|
).replace(/stroke=[#"'a-z1-9]*/gi, "");
|
|
4041
|
-
return l`<span class="cross-icon">${
|
|
4041
|
+
return l`<span class="cross-icon">${k(o)}</span>`;
|
|
4042
4042
|
}
|
|
4043
4043
|
strikeThroughImg() {
|
|
4044
4044
|
const o = Co[this.strikethroughImgName].replace(
|
|
4045
4045
|
"<svg",
|
|
4046
4046
|
'<svg aria-hidden="true" focusable="false" part="strikethrough"'
|
|
4047
4047
|
).replace(/stroke=[#"'a-z1-9]*/gi, "");
|
|
4048
|
-
return
|
|
4048
|
+
return k(o);
|
|
4049
4049
|
}
|
|
4050
4050
|
render() {
|
|
4051
4051
|
const o = this.text;
|
|
@@ -4072,7 +4072,7 @@ let B = class extends bi {
|
|
|
4072
4072
|
`;
|
|
4073
4073
|
}
|
|
4074
4074
|
};
|
|
4075
|
-
|
|
4075
|
+
z.styles = v`
|
|
4076
4076
|
:host {
|
|
4077
4077
|
cursor: pointer;
|
|
4078
4078
|
display: inline-flex;
|
|
@@ -4200,34 +4200,34 @@ B.styles = v`
|
|
|
4200
4200
|
`;
|
|
4201
4201
|
F([
|
|
4202
4202
|
a({ reflect: !0 })
|
|
4203
|
-
],
|
|
4203
|
+
], z.prototype, "name", 2);
|
|
4204
4204
|
F([
|
|
4205
4205
|
a({ reflect: !0 })
|
|
4206
|
-
],
|
|
4206
|
+
], z.prototype, "value", 2);
|
|
4207
4207
|
F([
|
|
4208
4208
|
a({ type: String, reflect: !0 })
|
|
4209
|
-
],
|
|
4209
|
+
], z.prototype, "type", 2);
|
|
4210
4210
|
F([
|
|
4211
4211
|
a({ type: String, reflect: !0 })
|
|
4212
|
-
],
|
|
4212
|
+
], z.prototype, "href", 2);
|
|
4213
4213
|
F([
|
|
4214
4214
|
a({ type: String, reflect: !0, attribute: "data-href" })
|
|
4215
|
-
],
|
|
4215
|
+
], z.prototype, "dataHref", 2);
|
|
4216
4216
|
F([
|
|
4217
4217
|
a({ type: String })
|
|
4218
|
-
],
|
|
4218
|
+
], z.prototype, "text", 2);
|
|
4219
4219
|
F([
|
|
4220
4220
|
a({ type: Boolean, reflect: !0 })
|
|
4221
|
-
],
|
|
4221
|
+
], z.prototype, "selected", 2);
|
|
4222
4222
|
F([
|
|
4223
4223
|
a({ type: Boolean, reflect: !0 })
|
|
4224
|
-
],
|
|
4224
|
+
], z.prototype, "disabled", 2);
|
|
4225
4225
|
F([
|
|
4226
4226
|
a({ type: Boolean, reflect: !0 })
|
|
4227
|
-
],
|
|
4228
|
-
|
|
4227
|
+
], z.prototype, "fullwidth", 2);
|
|
4228
|
+
z = F([
|
|
4229
4229
|
g("o-filter-chip")
|
|
4230
|
-
],
|
|
4230
|
+
], z);
|
|
4231
4231
|
var yi = Object.defineProperty, R = (o, t, e, n) => {
|
|
4232
4232
|
for (var i = void 0, r = o.length - 1, s; r >= 0; r--)
|
|
4233
4233
|
(s = o[r]) && (i = s(t, e, i) || i);
|
|
@@ -4473,12 +4473,12 @@ oe([
|
|
|
4473
4473
|
$t = oe([
|
|
4474
4474
|
g("o-badge")
|
|
4475
4475
|
], $t);
|
|
4476
|
-
var wi = Object.defineProperty, $i = Object.getOwnPropertyDescriptor,
|
|
4476
|
+
var wi = Object.defineProperty, $i = Object.getOwnPropertyDescriptor, I = (o, t, e, n) => {
|
|
4477
4477
|
for (var i = n > 1 ? void 0 : n ? $i(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
4478
4478
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
4479
4479
|
return n && i && wi(t, e, i), i;
|
|
4480
4480
|
};
|
|
4481
|
-
let
|
|
4481
|
+
let _ = class extends p {
|
|
4482
4482
|
constructor() {
|
|
4483
4483
|
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
4484
|
}
|
|
@@ -4526,7 +4526,7 @@ let k = class extends p {
|
|
|
4526
4526
|
return l`
|
|
4527
4527
|
<div class="o-toast">
|
|
4528
4528
|
<div class="o-toast-icon">
|
|
4529
|
-
${
|
|
4529
|
+
${k(t)}
|
|
4530
4530
|
</div>
|
|
4531
4531
|
<div class="o-toast-text">
|
|
4532
4532
|
${this.text}
|
|
@@ -4542,7 +4542,7 @@ let k = class extends p {
|
|
|
4542
4542
|
`;
|
|
4543
4543
|
}
|
|
4544
4544
|
};
|
|
4545
|
-
|
|
4545
|
+
_.styles = v`
|
|
4546
4546
|
:host {
|
|
4547
4547
|
--vertical-offset: 24px;
|
|
4548
4548
|
--horizontal-offset: 24px;
|
|
@@ -4620,43 +4620,43 @@ k.styles = v`
|
|
|
4620
4620
|
height: 16px;
|
|
4621
4621
|
}
|
|
4622
4622
|
`;
|
|
4623
|
-
|
|
4623
|
+
I([
|
|
4624
4624
|
a({ type: String, reflect: !0 })
|
|
4625
|
-
],
|
|
4626
|
-
|
|
4625
|
+
], _.prototype, "icon", 2);
|
|
4626
|
+
I([
|
|
4627
4627
|
a({ type: String, reflect: !0 })
|
|
4628
|
-
],
|
|
4629
|
-
|
|
4628
|
+
], _.prototype, "text", 2);
|
|
4629
|
+
I([
|
|
4630
4630
|
a({ type: String, reflect: !0 })
|
|
4631
|
-
],
|
|
4632
|
-
|
|
4631
|
+
], _.prototype, "verticalanchor", 2);
|
|
4632
|
+
I([
|
|
4633
4633
|
a({ type: String, reflect: !0 })
|
|
4634
|
-
],
|
|
4635
|
-
|
|
4634
|
+
], _.prototype, "horizontalanchor", 2);
|
|
4635
|
+
I([
|
|
4636
4636
|
a({ type: Number, reflect: !0 })
|
|
4637
|
-
],
|
|
4638
|
-
|
|
4637
|
+
], _.prototype, "verticaloffset", 2);
|
|
4638
|
+
I([
|
|
4639
4639
|
a({ type: Number, reflect: !0 })
|
|
4640
|
-
],
|
|
4641
|
-
|
|
4640
|
+
], _.prototype, "horizontaloffset", 2);
|
|
4641
|
+
I([
|
|
4642
4642
|
a({ type: Number, reflect: !0 })
|
|
4643
|
-
],
|
|
4644
|
-
|
|
4643
|
+
], _.prototype, "animationduration", 2);
|
|
4644
|
+
I([
|
|
4645
4645
|
a({ type: String, reflect: !0 })
|
|
4646
|
-
],
|
|
4647
|
-
|
|
4646
|
+
], _.prototype, "animationaxis", 2);
|
|
4647
|
+
I([
|
|
4648
4648
|
a({ type: Boolean, reflect: !0 })
|
|
4649
|
-
],
|
|
4650
|
-
|
|
4649
|
+
], _.prototype, "animated", 2);
|
|
4650
|
+
I([
|
|
4651
4651
|
a({ type: Number, reflect: !0 })
|
|
4652
|
-
],
|
|
4653
|
-
|
|
4652
|
+
], _.prototype, "lifeduration", 2);
|
|
4653
|
+
I([
|
|
4654
4654
|
a({ type: Boolean, reflect: !0 })
|
|
4655
|
-
],
|
|
4656
|
-
|
|
4655
|
+
], _.prototype, "multiline", 2);
|
|
4656
|
+
_ = I([
|
|
4657
4657
|
g("o-toast")
|
|
4658
|
-
],
|
|
4659
|
-
var ki = Object.defineProperty, _i = Object.getOwnPropertyDescriptor,
|
|
4658
|
+
], _);
|
|
4659
|
+
var ki = Object.defineProperty, _i = Object.getOwnPropertyDescriptor, H = (o, t, e, n) => {
|
|
4660
4660
|
for (var i = n > 1 ? void 0 : n ? _i(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
4661
4661
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
4662
4662
|
return n && i && ki(t, e, i), i;
|
|
@@ -4678,7 +4678,7 @@ let Ci = 0, E = class extends p {
|
|
|
4678
4678
|
this.disabled || (o.key === " " || o.key === "Enter") && (o.preventDefault(), this.toggle());
|
|
4679
4679
|
}
|
|
4680
4680
|
render() {
|
|
4681
|
-
const o =
|
|
4681
|
+
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
4682
|
return l`
|
|
4683
4683
|
<input
|
|
4684
4684
|
type="checkbox"
|
|
@@ -4805,37 +4805,37 @@ E.styles = v`
|
|
|
4805
4805
|
stroke: var(--color-border-white);
|
|
4806
4806
|
}
|
|
4807
4807
|
`;
|
|
4808
|
-
|
|
4808
|
+
H([
|
|
4809
4809
|
a({ type: Boolean, reflect: !0 })
|
|
4810
4810
|
], E.prototype, "checked", 2);
|
|
4811
|
-
|
|
4811
|
+
H([
|
|
4812
4812
|
a({ type: Boolean, reflect: !0 })
|
|
4813
4813
|
], E.prototype, "indeterminate", 2);
|
|
4814
|
-
|
|
4814
|
+
H([
|
|
4815
4815
|
a({ type: Boolean, reflect: !0 })
|
|
4816
4816
|
], E.prototype, "disabled", 2);
|
|
4817
|
-
|
|
4817
|
+
H([
|
|
4818
4818
|
a({ type: String, reflect: !0 })
|
|
4819
4819
|
], E.prototype, "size", 2);
|
|
4820
|
-
|
|
4820
|
+
H([
|
|
4821
4821
|
a({ type: Boolean })
|
|
4822
4822
|
], E.prototype, "showLabel", 2);
|
|
4823
|
-
|
|
4823
|
+
H([
|
|
4824
4824
|
a({ type: String })
|
|
4825
4825
|
], E.prototype, "label", 2);
|
|
4826
|
-
|
|
4826
|
+
H([
|
|
4827
4827
|
a({ type: String })
|
|
4828
4828
|
], E.prototype, "name", 2);
|
|
4829
|
-
|
|
4829
|
+
H([
|
|
4830
4830
|
a({ type: String })
|
|
4831
4831
|
], E.prototype, "value", 2);
|
|
4832
|
-
|
|
4832
|
+
H([
|
|
4833
4833
|
a({ type: String, reflect: !0 })
|
|
4834
4834
|
], E.prototype, "inputId", 2);
|
|
4835
|
-
|
|
4835
|
+
H([
|
|
4836
4836
|
ke("input")
|
|
4837
4837
|
], E.prototype, "inputEl", 2);
|
|
4838
|
-
E =
|
|
4838
|
+
E = H([
|
|
4839
4839
|
g("o-checkbox")
|
|
4840
4840
|
], E);
|
|
4841
4841
|
var Ei = Object.defineProperty, Si = Object.getOwnPropertyDescriptor, U = (o, t, e, n) => {
|
|
@@ -4997,8 +4997,8 @@ U([
|
|
|
4997
4997
|
O = U([
|
|
4998
4998
|
g("o-radio")
|
|
4999
4999
|
], O);
|
|
5000
|
-
var
|
|
5001
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
5000
|
+
var Bi = Object.getOwnPropertyDescriptor, Li = (o, t, e, n) => {
|
|
5001
|
+
for (var i = n > 1 ? void 0 : n ? Bi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
5002
5002
|
(s = o[r]) && (i = s(i) || i);
|
|
5003
5003
|
return i;
|
|
5004
5004
|
};
|
|
@@ -5025,13 +5025,13 @@ Ut.styles = v`
|
|
|
5025
5025
|
padding: var(--spacing-4-xs);
|
|
5026
5026
|
}
|
|
5027
5027
|
`;
|
|
5028
|
-
Ut =
|
|
5028
|
+
Ut = Li([
|
|
5029
5029
|
g("o-breadcrumbs")
|
|
5030
5030
|
], Ut);
|
|
5031
|
-
var
|
|
5032
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
5031
|
+
var Pi = Object.defineProperty, zi = Object.getOwnPropertyDescriptor, ie = (o, t, e, n) => {
|
|
5032
|
+
for (var i = n > 1 ? void 0 : n ? zi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
5033
5033
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
5034
|
-
return n && i &&
|
|
5034
|
+
return n && i && Pi(t, e, i), i;
|
|
5035
5035
|
};
|
|
5036
5036
|
let kt = class extends p {
|
|
5037
5037
|
constructor() {
|
|
@@ -5103,10 +5103,10 @@ ie([
|
|
|
5103
5103
|
kt = ie([
|
|
5104
5104
|
g("o-breadcrumb")
|
|
5105
5105
|
], kt);
|
|
5106
|
-
var
|
|
5106
|
+
var Oi = Object.defineProperty, Ii = Object.getOwnPropertyDescriptor, Ct = (o, t, e, n) => {
|
|
5107
5107
|
for (var i = n > 1 ? void 0 : n ? Ii(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
5108
5108
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
5109
|
-
return n && i &&
|
|
5109
|
+
return n && i && Oi(t, e, i), i;
|
|
5110
5110
|
};
|
|
5111
5111
|
let nt = class extends p {
|
|
5112
5112
|
constructor() {
|
|
@@ -5260,14 +5260,14 @@ const Di = `<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
|
5260
5260
|
id="path52"
|
|
5261
5261
|
style="fill:#3F2B2E;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
|
5262
5262
|
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,
|
|
5263
|
+
var Hi = Object.defineProperty, Mi = Object.getOwnPropertyDescriptor, S = (o, t, e, n) => {
|
|
5264
5264
|
for (var i = n > 1 ? void 0 : n ? Mi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
5265
5265
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
5266
5266
|
return n && i && Hi(t, e, i), i;
|
|
5267
5267
|
};
|
|
5268
5268
|
const re = class re extends p {
|
|
5269
5269
|
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) => {
|
|
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.showBackButton = !1, this.contrast = !1, this._labelId = `title-${Math.random().toString(36).slice(2)}`, this._onBackdropClick = (t) => {
|
|
5271
5271
|
var n;
|
|
5272
5272
|
if (!this.open || !this.closeOnBackdrop) return;
|
|
5273
5273
|
const e = t.composedPath()[0];
|
|
@@ -5302,6 +5302,9 @@ const re = class re extends p {
|
|
|
5302
5302
|
_onKeydown(t) {
|
|
5303
5303
|
this.open && this.closeOnEsc && t.key === "Escape" && (t.preventDefault(), this._requestClose("esc"));
|
|
5304
5304
|
}
|
|
5305
|
+
_onBackClick() {
|
|
5306
|
+
this.dispatchEvent(new CustomEvent("back", { bubbles: !0, composed: !0 }));
|
|
5307
|
+
}
|
|
5305
5308
|
_requestClose(t) {
|
|
5306
5309
|
const e = new CustomEvent("request-close", {
|
|
5307
5310
|
bubbles: !0,
|
|
@@ -5316,7 +5319,7 @@ const re = class re extends p {
|
|
|
5316
5319
|
data-close-btn
|
|
5317
5320
|
icon="cross"
|
|
5318
5321
|
size="large"
|
|
5319
|
-
bgstyle="none
|
|
5322
|
+
bgstyle="none-${this.contrast ? "contrast" : "light"}"
|
|
5320
5323
|
status="empty"
|
|
5321
5324
|
type="button"
|
|
5322
5325
|
aria-label="Close"
|
|
@@ -5326,6 +5329,25 @@ const re = class re extends p {
|
|
|
5326
5329
|
<button class="close" data-close-btn aria-label="Close" @click=${() => this._requestClose("button")}>×</button>
|
|
5327
5330
|
`;
|
|
5328
5331
|
}
|
|
5332
|
+
_renderBackButton() {
|
|
5333
|
+
return l`
|
|
5334
|
+
<div part="back">
|
|
5335
|
+
<o-icon-button
|
|
5336
|
+
icon="arrowLeft"
|
|
5337
|
+
size="large"
|
|
5338
|
+
status="empty"
|
|
5339
|
+
class="return-btn"
|
|
5340
|
+
bgstyle="none-${this.contrast ? "contrast" : "light"}"
|
|
5341
|
+
data-role="back"
|
|
5342
|
+
@click=${() => this._onBackClick()}
|
|
5343
|
+
@keydown=${() => this._onBackClick()}
|
|
5344
|
+
srlabel="Go back"
|
|
5345
|
+
?showsrlabel=${!0}
|
|
5346
|
+
tabindex="-1"
|
|
5347
|
+
></o-icon-button>
|
|
5348
|
+
</div>
|
|
5349
|
+
`;
|
|
5350
|
+
}
|
|
5329
5351
|
render() {
|
|
5330
5352
|
return l`
|
|
5331
5353
|
${this.open ? l`<div class="backdrop" part="backdrop" @click=${this._onBackdropClick}></div>` : null}
|
|
@@ -5339,10 +5361,11 @@ const re = class re extends p {
|
|
|
5339
5361
|
aria-labelledby=${this.title ? this._labelId : void 0}
|
|
5340
5362
|
>
|
|
5341
5363
|
<header part="header">
|
|
5364
|
+
${this.showBackButton ? this._renderBackButton() : null}
|
|
5342
5365
|
<div class="brand">
|
|
5343
|
-
<span slot="logo">${
|
|
5366
|
+
<span slot="logo${this.contrast ? "-contrast" : ""}">${k(Di)}</span>
|
|
5344
5367
|
</div>
|
|
5345
|
-
<div part="close">${this._renderCloseButton()}</div>
|
|
5368
|
+
<div part="close${this.contrast ? "-contrast" : ""}">${this._renderCloseButton()}</div>
|
|
5346
5369
|
</header>
|
|
5347
5370
|
<main part="body">
|
|
5348
5371
|
<slot></slot>
|
|
@@ -5406,12 +5429,11 @@ re.styles = v`
|
|
|
5406
5429
|
background: var(--color-container-bg-white, #fff);
|
|
5407
5430
|
}
|
|
5408
5431
|
|
|
5409
|
-
/* Calque de fond */
|
|
5410
5432
|
.dialog::before {
|
|
5411
5433
|
content: '';
|
|
5412
5434
|
position: absolute;
|
|
5413
5435
|
inset: 0;
|
|
5414
|
-
background: var(--_bg, none);
|
|
5436
|
+
background: var(--_bg, none);
|
|
5415
5437
|
background-size: cover;
|
|
5416
5438
|
background-position: center;
|
|
5417
5439
|
opacity: 1;
|
|
@@ -5438,10 +5460,12 @@ re.styles = v`
|
|
|
5438
5460
|
|
|
5439
5461
|
.brand { display: inline-flex; align-items: center; gap: var(--spacing-s, 8px); }
|
|
5440
5462
|
::slotted([slot="logo"]) { display: inline-flex; height: 28px; line-height: 0; }
|
|
5441
|
-
[slot="logo"] svg { width: 176px; height: auto; }
|
|
5463
|
+
[slot="logo"] svg, [slot="logo-contrast"] svg { width: 176px; height: auto; }
|
|
5442
5464
|
[slot="logo"] svg path { fill: #fff !important; }
|
|
5443
5465
|
|
|
5444
5466
|
[part="close"] { position: absolute; top: 16px; right: 36px; }
|
|
5467
|
+
[part="close-contrast"] { position: absolute; top: 16px; right: var(--spacing-l); }
|
|
5468
|
+
[part="back"] { position: absolute; top: 16px; left: var(--spacing-l); }
|
|
5445
5469
|
@media (max-width: 767px) { [part="close"] { right: 8px; top: 22px; } }
|
|
5446
5470
|
|
|
5447
5471
|
.close { font: inherit; border: 0; background: transparent; cursor: pointer;
|
|
@@ -5461,38 +5485,44 @@ re.styles = v`
|
|
|
5461
5485
|
to { transform: translateY(0) scale(1); opacity: 1; }
|
|
5462
5486
|
}
|
|
5463
5487
|
`;
|
|
5464
|
-
let
|
|
5465
|
-
|
|
5488
|
+
let $ = re;
|
|
5489
|
+
S([
|
|
5466
5490
|
a({ type: Boolean, reflect: !0 })
|
|
5467
|
-
],
|
|
5468
|
-
|
|
5491
|
+
], $.prototype, "ispagedesigner", 2);
|
|
5492
|
+
S([
|
|
5469
5493
|
a({ type: String, reflect: !0 })
|
|
5470
|
-
],
|
|
5471
|
-
|
|
5494
|
+
], $.prototype, "classPopin", 1);
|
|
5495
|
+
S([
|
|
5472
5496
|
a({ type: Boolean, reflect: !0 })
|
|
5473
|
-
],
|
|
5474
|
-
|
|
5497
|
+
], $.prototype, "open", 2);
|
|
5498
|
+
S([
|
|
5475
5499
|
a({ type: String, reflect: !0 })
|
|
5476
|
-
],
|
|
5477
|
-
|
|
5500
|
+
], $.prototype, "background", 2);
|
|
5501
|
+
S([
|
|
5478
5502
|
a({ type: String, attribute: "background-url", reflect: !0 })
|
|
5479
|
-
],
|
|
5480
|
-
|
|
5503
|
+
], $.prototype, "backgroundUrl", 2);
|
|
5504
|
+
S([
|
|
5481
5505
|
a({ type: Boolean, attribute: "close-on-esc" })
|
|
5482
|
-
],
|
|
5483
|
-
|
|
5506
|
+
], $.prototype, "closeOnEsc", 2);
|
|
5507
|
+
S([
|
|
5484
5508
|
a({ type: Boolean, attribute: "close-on-backdrop" })
|
|
5485
|
-
],
|
|
5486
|
-
|
|
5509
|
+
], $.prototype, "closeOnBackdrop", 2);
|
|
5510
|
+
S([
|
|
5487
5511
|
a({ type: Boolean, attribute: "lock-scroll" })
|
|
5488
|
-
],
|
|
5489
|
-
|
|
5512
|
+
], $.prototype, "lockScroll", 2);
|
|
5513
|
+
S([
|
|
5490
5514
|
a({ type: String, reflect: !0 })
|
|
5491
|
-
],
|
|
5492
|
-
|
|
5515
|
+
], $.prototype, "variant", 2);
|
|
5516
|
+
S([
|
|
5493
5517
|
a({ type: String, attribute: "max-width" })
|
|
5494
|
-
],
|
|
5495
|
-
|
|
5518
|
+
], $.prototype, "maxWidth", 2);
|
|
5519
|
+
S([
|
|
5520
|
+
a({ type: Boolean, reflect: !0 })
|
|
5521
|
+
], $.prototype, "showBackButton", 2);
|
|
5522
|
+
S([
|
|
5523
|
+
a({ type: Boolean, reflect: !0 })
|
|
5524
|
+
], $.prototype, "contrast", 2);
|
|
5525
|
+
S([
|
|
5496
5526
|
J()
|
|
5497
|
-
],
|
|
5498
|
-
customElements.define("o-popin",
|
|
5527
|
+
], $.prototype, "_labelId", 2);
|
|
5528
|
+
customElements.define("o-popin", $);
|