@supersoniks/concorde 3.1.87 → 3.1.88
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/build-infos.json +1 -1
- package/concorde-core.bundle.js +62 -54
- package/concorde-core.es.js +487 -462
- package/dist/concorde-core.bundle.js +62 -54
- package/dist/concorde-core.es.js +487 -462
- package/package.json +1 -1
- package/src/core/components/ui/button/button.ts +5 -5
- package/src/core/components/ui/form/checkbox/checkbox.ts +1 -1
- package/src/core/components/ui/modal/modal.ts +23 -0
- package/src/core/components/ui/pop/pop.ts +1 -1
- package/src/core/components/ui/tooltip/tooltip.ts +22 -7
- package/src/core/mixins/FormElement.ts +5 -1
package/concorde-core.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
let
|
|
1
|
+
let et = class Nt {
|
|
2
2
|
/**
|
|
3
3
|
* retourne la langue de la page courante telle que défini via l'attribut lang de la balise html
|
|
4
4
|
*/
|
|
@@ -126,7 +126,7 @@ let Os = class {
|
|
|
126
126
|
return typeof t != "string" ? t : t.charAt(0).toUpperCase() + t.substring(1);
|
|
127
127
|
}
|
|
128
128
|
static minutesDuration(t, s = "", i = "long") {
|
|
129
|
-
s || (s =
|
|
129
|
+
s || (s = et.getLanguage());
|
|
130
130
|
const e = (h, d) => [Math.floor(h / d), h % d];
|
|
131
131
|
function o(h, d, p) {
|
|
132
132
|
return new Intl.NumberFormat(h, { style: "unit", unit: d, unitDisplay: p }).format;
|
|
@@ -475,7 +475,7 @@ let T = (k = class {
|
|
|
475
475
|
async setLocalData(t, s) {
|
|
476
476
|
var i;
|
|
477
477
|
await this.isLocalStrorageReady, t.set(
|
|
478
|
-
((i = this.localStorageData[s + "¤lang_" +
|
|
478
|
+
((i = this.localStorageData[s + "¤lang_" + et.getLanguage()]) == null ? void 0 : i.data) || t.get()
|
|
479
479
|
);
|
|
480
480
|
}
|
|
481
481
|
get(t, s) {
|
|
@@ -519,7 +519,7 @@ let T = (k = class {
|
|
|
519
519
|
const o = this.publishers.get(e);
|
|
520
520
|
if (!(o != null && o._is_savable_)) continue;
|
|
521
521
|
const n = o == null ? void 0 : o.get();
|
|
522
|
-
n && (this.localStorageData[e + "¤lang_" +
|
|
522
|
+
n && (this.localStorageData[e + "¤lang_" + et.getLanguage()] = {
|
|
523
523
|
lastModifiationMS: (/* @__PURE__ */ new Date()).getTime(),
|
|
524
524
|
expirationDelayMs: o._expiration_delay_,
|
|
525
525
|
data: n
|
|
@@ -559,7 +559,7 @@ let T = (k = class {
|
|
|
559
559
|
const h = await new Response(a.readable).arrayBuffer();
|
|
560
560
|
return new TextDecoder().decode(h);
|
|
561
561
|
}
|
|
562
|
-
}, k.buildDate = "
|
|
562
|
+
}, k.buildDate = "Tue Aug 05 2025 16:59:39 GMT+0200 (Central European Summer Time)", k.changed = !1, k.saving = !1, k.saveId = 0, k.instance = null, k.instances = /* @__PURE__ */ new Map(), k.modifiedCollectore = [], k);
|
|
563
563
|
if (typeof window < "u") {
|
|
564
564
|
const r = window;
|
|
565
565
|
r[Ds + "PublisherManager"] = r[Ds + "PublisherManager"] || T;
|
|
@@ -714,17 +714,17 @@ try {
|
|
|
714
714
|
window.addEventListener("pageshow", (r) => {
|
|
715
715
|
r.persisted && T.getInstance().invalidateAll();
|
|
716
716
|
});
|
|
717
|
-
var
|
|
718
|
-
let qs = (
|
|
717
|
+
var E;
|
|
718
|
+
let qs = (E = class {
|
|
719
719
|
static disable() {
|
|
720
|
-
this.enabled && (this.enabled = !1, Array.from(
|
|
721
|
-
(t) =>
|
|
720
|
+
this.enabled && (this.enabled = !1, Array.from(E.observedElements.keys()).forEach(
|
|
721
|
+
(t) => E.unObserve(t)
|
|
722
722
|
));
|
|
723
723
|
}
|
|
724
724
|
static observe(t) {
|
|
725
|
-
if (!t || !
|
|
726
|
-
const s = new MutationObserver(
|
|
727
|
-
i.childList = !0, i.subtree = !0, i.attributes = !0, i.attributeFilter = ["data-bind"], s.observe(t, i), t.querySelectorAll("[data-bind]").forEach((e) =>
|
|
725
|
+
if (!t || !E.enabled || E.observedElements.has(t)) return;
|
|
726
|
+
const s = new MutationObserver(E.onMutation), i = {};
|
|
727
|
+
i.childList = !0, i.subtree = !0, i.attributes = !0, i.attributeFilter = ["data-bind"], s.observe(t, i), t.querySelectorAll("[data-bind]").forEach((e) => E.addPublisherListeners(e)), E.observedElements.set(t, s);
|
|
728
728
|
}
|
|
729
729
|
/**
|
|
730
730
|
* Arrêter à observer un élément html.
|
|
@@ -732,13 +732,13 @@ let qs = (L = class {
|
|
|
732
732
|
static unObserve(t) {
|
|
733
733
|
if (!t) return;
|
|
734
734
|
const s = this.observedElements.get(t);
|
|
735
|
-
s && (s.disconnect(), t.querySelectorAll("[data-bind]").forEach((i) =>
|
|
735
|
+
s && (s.disconnect(), t.querySelectorAll("[data-bind]").forEach((i) => E.removePublisherListeners(i)));
|
|
736
736
|
}
|
|
737
737
|
static onAdded(t) {
|
|
738
|
-
t.hasAttribute && t.hasAttribute("data-bind") &&
|
|
738
|
+
t.hasAttribute && t.hasAttribute("data-bind") && E.addPublisherListeners(t), t.querySelectorAll ? t.querySelectorAll("[data-bind]").forEach((s) => E.addPublisherListeners(s)) : t.childNodes.forEach((s) => E.onAdded(s));
|
|
739
739
|
}
|
|
740
740
|
static onRemoved(t) {
|
|
741
|
-
t.hasAttribute && t.hasAttribute("data-bind") &&
|
|
741
|
+
t.hasAttribute && t.hasAttribute("data-bind") && E.removePublisherListeners(t), t.querySelectorAll ? t.querySelectorAll("[data-bind]").forEach((s) => E.removePublisherListeners(s)) : t.childNodes.forEach((s) => E.onRemoved(s));
|
|
742
742
|
}
|
|
743
743
|
/**
|
|
744
744
|
* Callback appelé par le MutationObserver
|
|
@@ -747,13 +747,13 @@ let qs = (L = class {
|
|
|
747
747
|
for (const s of t)
|
|
748
748
|
switch (s.type) {
|
|
749
749
|
case "attributes":
|
|
750
|
-
|
|
750
|
+
E.addPublisherListeners(s.target);
|
|
751
751
|
break;
|
|
752
752
|
case "childList":
|
|
753
753
|
s.addedNodes.forEach((i) => {
|
|
754
|
-
|
|
754
|
+
E.onAdded(i);
|
|
755
755
|
}), s.removedNodes.forEach((i) => {
|
|
756
|
-
|
|
756
|
+
E.onRemoved(i);
|
|
757
757
|
});
|
|
758
758
|
break;
|
|
759
759
|
}
|
|
@@ -762,8 +762,8 @@ let qs = (L = class {
|
|
|
762
762
|
* La liaison avec le publisher supprimée ici.
|
|
763
763
|
*/
|
|
764
764
|
static removePublisherListeners(t) {
|
|
765
|
-
const s =
|
|
766
|
-
s && (
|
|
765
|
+
const s = E.publisherListeners.get(t);
|
|
766
|
+
s && (E.publisherListeners.delete(t), s.forEach((i) => {
|
|
767
767
|
var e;
|
|
768
768
|
(e = i.publisher) == null || e.offAssign(i.onAssign);
|
|
769
769
|
}));
|
|
@@ -797,7 +797,7 @@ let qs = (L = class {
|
|
|
797
797
|
static getDataBindItems(t) {
|
|
798
798
|
return "attributes" in t ? Array.from(t.attributes).filter((s) => s.name.indexOf("::") == 0).map((s) => ({
|
|
799
799
|
propertyToUpdate: s.name.substring(2).replace(/-((html)|\w)/g, (e) => e.substring(1).toUpperCase()),
|
|
800
|
-
bindedVariablesDescriptor:
|
|
800
|
+
bindedVariablesDescriptor: E.getVariablesDescriptor(s.value)
|
|
801
801
|
})) : [];
|
|
802
802
|
}
|
|
803
803
|
/**
|
|
@@ -820,25 +820,25 @@ let qs = (L = class {
|
|
|
820
820
|
* TODO Sans doute factoriser
|
|
821
821
|
*/
|
|
822
822
|
static addPublisherListeners(t) {
|
|
823
|
-
|
|
824
|
-
const s =
|
|
823
|
+
E.removePublisherListeners(t);
|
|
824
|
+
const s = et.getAncestorAttributeValue(
|
|
825
825
|
t.parentNode || t.host || t,
|
|
826
826
|
"dataProvider"
|
|
827
827
|
);
|
|
828
828
|
if (!s) return;
|
|
829
|
-
const i = T.getInstance().get(s), e =
|
|
829
|
+
const i = T.getInstance().get(s), e = E.getDataBindItems(t), o = [];
|
|
830
830
|
e.forEach((n) => {
|
|
831
831
|
const a = n.bindedVariablesDescriptor, c = n.propertyToUpdate;
|
|
832
832
|
for (const h of a.variables) {
|
|
833
833
|
const d = h;
|
|
834
834
|
let p = i;
|
|
835
|
-
p =
|
|
835
|
+
p = E.getSubPublisher(i, d);
|
|
836
836
|
const g = t, v = {
|
|
837
837
|
publisher: p,
|
|
838
838
|
onAssign: () => {
|
|
839
839
|
const b = a.variables.map((D) => {
|
|
840
840
|
var f;
|
|
841
|
-
return (f =
|
|
841
|
+
return (f = E.getSubPublisher(i, D)) == null ? void 0 : f.get();
|
|
842
842
|
});
|
|
843
843
|
let y = a.expression, _ = !1;
|
|
844
844
|
if (b.length == 1 && a.variables[0].join(".") == y.substring(1)) {
|
|
@@ -866,12 +866,12 @@ let qs = (L = class {
|
|
|
866
866
|
};
|
|
867
867
|
p == null || p.onAssign(v.onAssign), o.push(v);
|
|
868
868
|
}
|
|
869
|
-
}),
|
|
869
|
+
}), E.publisherListeners.set(t, o);
|
|
870
870
|
}
|
|
871
|
-
},
|
|
871
|
+
}, E.observedElements = /* @__PURE__ */ new Map(), E.enabled = !0, E.publisherListeners = /* @__PURE__ */ new Map(), E);
|
|
872
872
|
qs.observe(document.documentElement);
|
|
873
873
|
window.SonicDataBindObserver || (window.SonicDataBindObserver = qs);
|
|
874
|
-
let
|
|
874
|
+
let st = class Ht {
|
|
875
875
|
/**
|
|
876
876
|
* Effectue une comparaison d'égalité non profonde entre deux objets.
|
|
877
877
|
*/
|
|
@@ -897,8 +897,8 @@ let et = class Bt {
|
|
|
897
897
|
if (e.length !== o.length && i)
|
|
898
898
|
return !1;
|
|
899
899
|
for (const n of e) {
|
|
900
|
-
const a = t[n], c = s[n], h =
|
|
901
|
-
if (h && !
|
|
900
|
+
const a = t[n], c = s[n], h = Ht.isObject(a) && Ht.isObject(c), d = i ? a !== c : a != c;
|
|
901
|
+
if (h && !Ht.deepEqual(a, c) || !h && d)
|
|
902
902
|
return !1;
|
|
903
903
|
}
|
|
904
904
|
return !0;
|
|
@@ -917,7 +917,7 @@ let et = class Bt {
|
|
|
917
917
|
return t == null;
|
|
918
918
|
}
|
|
919
919
|
static isEmpty(t) {
|
|
920
|
-
return
|
|
920
|
+
return Ht.isUndefindOrNull(t) ? !0 : Object.keys(t).length === 0;
|
|
921
921
|
}
|
|
922
922
|
/**
|
|
923
923
|
* traverse l'objet pour obtenir la valeur a l'adresse donnée via le tableau de clés pathArray.
|
|
@@ -929,19 +929,19 @@ let et = class Bt {
|
|
|
929
929
|
const o = t[e];
|
|
930
930
|
if (o === void 0)
|
|
931
931
|
return;
|
|
932
|
-
i &&
|
|
932
|
+
i && Ht.isObject(o) ? t = Object.assign(Array.isArray(o) ? [] : {}, t, o) : t = t[e];
|
|
933
933
|
}
|
|
934
934
|
return t;
|
|
935
935
|
}
|
|
936
936
|
static traverseDotNotation(t, s, i = !1) {
|
|
937
|
-
return
|
|
937
|
+
return Ht.traverse(t, s.split("."), i);
|
|
938
938
|
}
|
|
939
939
|
/*eslint-enable @typescript-eslint/no-explicit-any*/
|
|
940
940
|
static getURLSearchArray(t, s = "") {
|
|
941
941
|
let i = [];
|
|
942
942
|
for (let e in t) {
|
|
943
943
|
const o = t[e];
|
|
944
|
-
s && (e = s + "[" + e + "]"),
|
|
944
|
+
s && (e = s + "[" + e + "]"), Ht.isObject(o) ? i = [
|
|
945
945
|
...i,
|
|
946
946
|
...this.getURLSearchArray(o, e)
|
|
947
947
|
] : i.push(`${e}=${o}`);
|
|
@@ -949,10 +949,10 @@ let et = class Bt {
|
|
|
949
949
|
return i;
|
|
950
950
|
}
|
|
951
951
|
static getURLSearchString(t) {
|
|
952
|
-
return
|
|
952
|
+
return Ht.getURLSearchArray(t, "").join("&");
|
|
953
953
|
}
|
|
954
954
|
};
|
|
955
|
-
const pt =
|
|
955
|
+
const pt = st.traverseDotNotation;
|
|
956
956
|
/**
|
|
957
957
|
* @license
|
|
958
958
|
* Copyright 2017 Google LLC
|
|
@@ -1010,7 +1010,7 @@ const zo = (r) => new Wr(typeof r == "string" ? r : r + "", void 0, Fi), P = (r,
|
|
|
1010
1010
|
* Copyright 2017 Google LLC
|
|
1011
1011
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1012
1012
|
*/
|
|
1013
|
-
const { is: Uo, defineProperty: Vo, getOwnPropertyDescriptor:
|
|
1013
|
+
const { is: Uo, defineProperty: Vo, getOwnPropertyDescriptor: Bo, getOwnPropertyNames: Ho, getOwnPropertySymbols: qo, getPrototypeOf: Wo } = Object, Qt = globalThis, cr = Qt.trustedTypes, Ko = cr ? cr.emptyScript : "", ii = Qt.reactiveElementPolyfillSupport, Ze = (r, t) => r, ks = { toAttribute(r, t) {
|
|
1014
1014
|
switch (t) {
|
|
1015
1015
|
case Boolean:
|
|
1016
1016
|
r = r ? Ko : null;
|
|
@@ -1054,7 +1054,7 @@ let De = class extends HTMLElement {
|
|
|
1054
1054
|
}
|
|
1055
1055
|
}
|
|
1056
1056
|
static getPropertyDescriptor(t, s, i) {
|
|
1057
|
-
const { get: e, set: o } =
|
|
1057
|
+
const { get: e, set: o } = Bo(this.prototype, t) ?? { get() {
|
|
1058
1058
|
return this[s];
|
|
1059
1059
|
}, set(n) {
|
|
1060
1060
|
this[s] = n;
|
|
@@ -1077,7 +1077,7 @@ let De = class extends HTMLElement {
|
|
|
1077
1077
|
static finalize() {
|
|
1078
1078
|
if (this.hasOwnProperty(Ze("finalized"))) return;
|
|
1079
1079
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Ze("properties"))) {
|
|
1080
|
-
const s = this.properties, i = [...
|
|
1080
|
+
const s = this.properties, i = [...Ho(s), ...qo(s)];
|
|
1081
1081
|
for (const e of i) this.createProperty(e, s[e]);
|
|
1082
1082
|
}
|
|
1083
1083
|
const t = this[Symbol.metadata];
|
|
@@ -1276,7 +1276,7 @@ function l(r) {
|
|
|
1276
1276
|
* Copyright 2017 Google LLC
|
|
1277
1277
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1278
1278
|
*/
|
|
1279
|
-
function
|
|
1279
|
+
function L(r) {
|
|
1280
1280
|
return l({ ...r, state: !0, attribute: !1 });
|
|
1281
1281
|
}
|
|
1282
1282
|
/**
|
|
@@ -1336,22 +1336,22 @@ function dt(r) {
|
|
|
1336
1336
|
* Copyright 2017 Google LLC
|
|
1337
1337
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1338
1338
|
*/
|
|
1339
|
-
const Xe = globalThis, Ls = Xe.trustedTypes, dr = Ls ? Ls.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Ui = "$lit$", qt = `lit$${Math.random().toFixed(9).slice(2)}$`, Vi = "?" + qt, Xo = `<${Vi}>`, me = document, es = () => me.createComment(""), ss = (r) => r === null || typeof r != "object" && typeof r != "function",
|
|
1340
|
-
\f\r]`,
|
|
1339
|
+
const Xe = globalThis, Ls = Xe.trustedTypes, dr = Ls ? Ls.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Ui = "$lit$", qt = `lit$${Math.random().toFixed(9).slice(2)}$`, Vi = "?" + qt, Xo = `<${Vi}>`, me = document, es = () => me.createComment(""), ss = (r) => r === null || typeof r != "object" && typeof r != "function", Bi = Array.isArray, Kr = (r) => Bi(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", ri = `[
|
|
1340
|
+
\f\r]`, Be = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, pr = /-->/g, ur = />/g, le = RegExp(`>|${ri}(?:([^\\s"'>=/]+)(${ri}*=${ri}*(?:[^
|
|
1341
1341
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), fr = /'/g, mr = /"/g, Yr = /^(?:script|style|textarea|title)$/i, Go = (r) => (t, ...s) => ({ _$litType$: r, strings: t, values: s }), m = Go(1), _t = Symbol.for("lit-noChange"), C = Symbol.for("lit-nothing"), gr = /* @__PURE__ */ new WeakMap(), ue = me.createTreeWalker(me, 129);
|
|
1342
1342
|
function Zr(r, t) {
|
|
1343
|
-
if (!
|
|
1343
|
+
if (!Bi(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
1344
1344
|
return dr !== void 0 ? dr.createHTML(t) : t;
|
|
1345
1345
|
}
|
|
1346
1346
|
const Xr = (r, t) => {
|
|
1347
1347
|
const s = r.length - 1, i = [];
|
|
1348
|
-
let e, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n =
|
|
1348
|
+
let e, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = Be;
|
|
1349
1349
|
for (let a = 0; a < s; a++) {
|
|
1350
1350
|
const c = r[a];
|
|
1351
1351
|
let h, d, p = -1, g = 0;
|
|
1352
|
-
for (; g < c.length && (n.lastIndex = g, d = n.exec(c), d !== null); ) g = n.lastIndex, n ===
|
|
1352
|
+
for (; g < c.length && (n.lastIndex = g, d = n.exec(c), d !== null); ) g = n.lastIndex, n === Be ? d[1] === "!--" ? n = pr : d[1] !== void 0 ? n = ur : d[2] !== void 0 ? (Yr.test(d[2]) && (e = RegExp("</" + d[2], "g")), n = le) : d[3] !== void 0 && (n = le) : n === le ? d[0] === ">" ? (n = e ?? Be, p = -1) : d[1] === void 0 ? p = -2 : (p = n.lastIndex - d[2].length, h = d[1], n = d[3] === void 0 ? le : d[3] === '"' ? mr : fr) : n === mr || n === fr ? n = le : n === pr || n === ur ? n = Be : (n = le, e = void 0);
|
|
1353
1353
|
const v = n === le && r[a + 1].startsWith("/>") ? " " : "";
|
|
1354
|
-
o += n ===
|
|
1354
|
+
o += n === Be ? c + Xo : p >= 0 ? (i.push(h), c.slice(0, p) + Ui + c.slice(p) + qt + v) : c + qt + (p === -2 ? a : v);
|
|
1355
1355
|
}
|
|
1356
1356
|
return [Zr(r, o + (r[s] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
|
1357
1357
|
};
|
|
@@ -1471,7 +1471,7 @@ let Qr = class {
|
|
|
1471
1471
|
return s === void 0 && gr.set(t.strings, s = new fi(t)), s;
|
|
1472
1472
|
}
|
|
1473
1473
|
k(t) {
|
|
1474
|
-
|
|
1474
|
+
Bi(this._$AH) || (this._$AH = [], this._$AR());
|
|
1475
1475
|
const s = this._$AH;
|
|
1476
1476
|
let i, e = 0;
|
|
1477
1477
|
for (const o of t) e === s.length ? s.push(i = new Jr(this.O(es()), this.O(es()), this, this.options)) : i = s[e], i._$AI(o), e++;
|
|
@@ -1570,7 +1570,7 @@ const Jo = (r, t, s) => {
|
|
|
1570
1570
|
* Copyright 2020 Google LLC
|
|
1571
1571
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1572
1572
|
*/
|
|
1573
|
-
const { I: tn } = Qo, en = (r) => r.strings === void 0, br = () => document.createComment(""),
|
|
1573
|
+
const { I: tn } = Qo, en = (r) => r.strings === void 0, br = () => document.createComment(""), He = (r, t, s) => {
|
|
1574
1574
|
var o;
|
|
1575
1575
|
const i = r._$AA.parentNode, e = t === void 0 ? r._$AB : t._$AA;
|
|
1576
1576
|
if (s === void 0) {
|
|
@@ -1713,8 +1713,8 @@ let x = class extends De {
|
|
|
1713
1713
|
return _t;
|
|
1714
1714
|
}
|
|
1715
1715
|
};
|
|
1716
|
-
var
|
|
1717
|
-
x._$litElement$ = !0, x.finalized = !0, (
|
|
1716
|
+
var Hr;
|
|
1717
|
+
x._$litElement$ = !0, x.finalized = !0, (Hr = globalThis.litElementHydrateSupport) == null || Hr.call(globalThis, { LitElement: x });
|
|
1718
1718
|
const ai = globalThis.litElementPolyfillSupport;
|
|
1719
1719
|
ai == null || ai({ LitElement: x });
|
|
1720
1720
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
|
|
@@ -1726,7 +1726,7 @@ function Ks(r) {
|
|
|
1726
1726
|
if (typeof r == "string") {
|
|
1727
1727
|
const t = r.split("."), s = t.shift() || "";
|
|
1728
1728
|
let i = T.get(s);
|
|
1729
|
-
i =
|
|
1729
|
+
i = st.traverse(i, t);
|
|
1730
1730
|
const e = /* @__PURE__ */ new Set();
|
|
1731
1731
|
return e.add(i), e;
|
|
1732
1732
|
}
|
|
@@ -1778,7 +1778,7 @@ const no = Ae(cn), hn = no, dn = no, pn = (r) => {
|
|
|
1778
1778
|
const s = Ks(r).values().next().value;
|
|
1779
1779
|
if (t !== void 0 && s) {
|
|
1780
1780
|
const i = s.get();
|
|
1781
|
-
|
|
1781
|
+
st.isEmpty(i) && s.set(t);
|
|
1782
1782
|
}
|
|
1783
1783
|
return s;
|
|
1784
1784
|
}, un = ao, lo = ao, fn = (r, t) => {
|
|
@@ -1814,7 +1814,7 @@ const no = Ae(cn), hn = no, dn = no, pn = (r) => {
|
|
|
1814
1814
|
} catch {
|
|
1815
1815
|
o = {};
|
|
1816
1816
|
}
|
|
1817
|
-
this.addHTTPResponse &&
|
|
1817
|
+
this.addHTTPResponse && st.isObject(o) && (o._sonic_http_response_ = t), e === 498 && !z.failledTokenUpdates.has(this.serviceURL) && (this.handleInvalidToken(this.token), s.apiMethod === "get" ? o = await this[s.apiMethod](
|
|
1818
1818
|
s.path,
|
|
1819
1819
|
s.additionalHeaders
|
|
1820
1820
|
) : o = await this[s.apiMethod](
|
|
@@ -1952,7 +1952,7 @@ const no = Ae(cn), hn = no, dn = no, pn = (r) => {
|
|
|
1952
1952
|
async createHeaders(t) {
|
|
1953
1953
|
await this.auth();
|
|
1954
1954
|
const s = {};
|
|
1955
|
-
return this.token && (s.Authorization = "Bearer " + this.token), s["Accept-Language"] =
|
|
1955
|
+
return this.token && (s.Authorization = "Bearer " + this.token), s["Accept-Language"] = et.getLanguage(), t && Object.assign(s, t), s;
|
|
1956
1956
|
}
|
|
1957
1957
|
/**
|
|
1958
1958
|
* Concatène le serviceURL et le endpoint donné en paramètre
|
|
@@ -2034,7 +2034,7 @@ const no = Ae(cn), hn = no, dn = no, pn = (r) => {
|
|
|
2034
2034
|
};
|
|
2035
2035
|
z.loadingGetPromises = /* @__PURE__ */ new Map(), z.tokens = /* @__PURE__ */ new Map(), z.invalidTokens = [], z.failledTokenUpdates = /* @__PURE__ */ new Map(), z.firstCallDoneFlags = /* @__PURE__ */ new Map();
|
|
2036
2036
|
let Ee = z;
|
|
2037
|
-
|
|
2037
|
+
et.getApiConfiguration(
|
|
2038
2038
|
document.body || document.documentElement
|
|
2039
2039
|
);
|
|
2040
2040
|
const mn = async (r, t) => {
|
|
@@ -2061,10 +2061,10 @@ let mi = class extends je {
|
|
|
2061
2061
|
mi.directiveName = "unsafeHTML", mi.resultType = 1;
|
|
2062
2062
|
const R = Ae(mi), gi = /* @__PURE__ */ new Map(), vr = (r) => {
|
|
2063
2063
|
if (!r) return null;
|
|
2064
|
-
const t =
|
|
2064
|
+
const t = et.getApiConfiguration(r), s = et.getAncestorAttributeValue(
|
|
2065
2065
|
r,
|
|
2066
2066
|
"wordingProvider"
|
|
2067
|
-
), i =
|
|
2067
|
+
), i = et.getAncestorAttributeValue(
|
|
2068
2068
|
r,
|
|
2069
2069
|
"wordingVersionProvider"
|
|
2070
2070
|
), e = {
|
|
@@ -2074,7 +2074,7 @@ const R = Ae(mi), gi = /* @__PURE__ */ new Map(), vr = (r) => {
|
|
|
2074
2074
|
};
|
|
2075
2075
|
let o = null;
|
|
2076
2076
|
for (const [n, a] of gi)
|
|
2077
|
-
if (
|
|
2077
|
+
if (st.deepEqual(n, e)) {
|
|
2078
2078
|
o = a;
|
|
2079
2079
|
break;
|
|
2080
2080
|
}
|
|
@@ -2087,7 +2087,7 @@ const R = Ae(mi), gi = /* @__PURE__ */ new Map(), vr = (r) => {
|
|
|
2087
2087
|
wordingVersionProvider: i,
|
|
2088
2088
|
apiCallKey: e
|
|
2089
2089
|
}, gi.set(e, o)), o;
|
|
2090
|
-
}, yr = "",
|
|
2090
|
+
}, yr = "", H = class H extends oo {
|
|
2091
2091
|
/* eslint-disable @typescript-eslint/no-explicit-any*/
|
|
2092
2092
|
constructor(t) {
|
|
2093
2093
|
super(t), this.useUnsafeHTML = !1, this.onAssign = (s) => {
|
|
@@ -2096,29 +2096,29 @@ const R = Ae(mi), gi = /* @__PURE__ */ new Map(), vr = (r) => {
|
|
|
2096
2096
|
}, this.node = t.options.host;
|
|
2097
2097
|
}
|
|
2098
2098
|
unsubscribe() {
|
|
2099
|
-
|
|
2099
|
+
H.publisher["wording_" + this.key].offAssign(this.onAssign);
|
|
2100
2100
|
}
|
|
2101
2101
|
/* eslint-enable @typescript-eslint/no-explicit-any*/
|
|
2102
2102
|
render(t, s = !1) {
|
|
2103
2103
|
return this.useUnsafeHTML = s, this.key !== t && (this.key = t, this.isConnected && this.subscribe(t)), _t;
|
|
2104
2104
|
}
|
|
2105
2105
|
static async callApi(t, s, i = !0, e) {
|
|
2106
|
-
if (await T.getInstance().isLocalStrorageReady,
|
|
2107
|
-
|
|
2108
|
-
const d = Object.keys(
|
|
2106
|
+
if (await T.getInstance().isLocalStrorageReady, H.firstCall) {
|
|
2107
|
+
H.firstCall = !1, Mi(H.reloadWordings);
|
|
2108
|
+
const d = Object.keys(H.publisher.get());
|
|
2109
2109
|
for (const p of d)
|
|
2110
|
-
|
|
2110
|
+
H.publisher.get()[p] === yr && delete H.publisher[p];
|
|
2111
2111
|
}
|
|
2112
2112
|
if (t) {
|
|
2113
|
-
const d =
|
|
2113
|
+
const d = et.getAncestorAttributeValue(
|
|
2114
2114
|
t,
|
|
2115
2115
|
"wordingVersionProvider"
|
|
2116
2116
|
);
|
|
2117
2117
|
d && lo(d).onAssign(
|
|
2118
|
-
|
|
2118
|
+
H.handleVersionProvider(t)
|
|
2119
2119
|
);
|
|
2120
2120
|
}
|
|
2121
|
-
let o =
|
|
2121
|
+
let o = H.publisher.get()["wording_" + s] != null;
|
|
2122
2122
|
const n = e || vr(t);
|
|
2123
2123
|
if (!n) return;
|
|
2124
2124
|
if (o && s !== "") {
|
|
@@ -2129,13 +2129,13 @@ const R = Ae(mi), gi = /* @__PURE__ */ new Map(), vr = (r) => {
|
|
|
2129
2129
|
const a = n.callIndex, c = n.wordingProvider ?? "";
|
|
2130
2130
|
if (!c && i) {
|
|
2131
2131
|
window.setTimeout(async () => {
|
|
2132
|
-
|
|
2132
|
+
H.callApi(null, s, !1, n);
|
|
2133
2133
|
}, 1e3);
|
|
2134
2134
|
return;
|
|
2135
2135
|
}
|
|
2136
2136
|
const h = n.api;
|
|
2137
2137
|
window.queueMicrotask(async () => {
|
|
2138
|
-
if (o =
|
|
2138
|
+
if (o = H.publisher["wording_" + s].get() != null, !o && s !== "" && (n.keysToTranslate.add(s), H.publisher["wording_" + s] = yr), a !== n.callIndex) return;
|
|
2139
2139
|
const d = Array.from(n.keysToTranslate);
|
|
2140
2140
|
if (!d.length) return;
|
|
2141
2141
|
const p = c.split("?"), g = p.shift(), v = (p.length > 0 ? p.join("?") + "&" : "") + "labels[]=" + d.join("&labels[]="), b = g + "?" + v;
|
|
@@ -2145,23 +2145,23 @@ const R = Ae(mi), gi = /* @__PURE__ */ new Map(), vr = (r) => {
|
|
|
2145
2145
|
]), n.keysToTranslate.clear();
|
|
2146
2146
|
const y = await h.get(b);
|
|
2147
2147
|
for (const _ in y)
|
|
2148
|
-
|
|
2148
|
+
H.publisher["wording_" + _] = y[_];
|
|
2149
2149
|
});
|
|
2150
2150
|
}
|
|
2151
2151
|
static reloadWordings() {
|
|
2152
2152
|
for (const t of gi.values())
|
|
2153
|
-
t.keysToTranslate = new Set(t.translatedKeys), t.keysToTranslate.size > 0 &&
|
|
2153
|
+
t.keysToTranslate = new Set(t.translatedKeys), t.keysToTranslate.size > 0 && H.callApi(null, "", !1, t);
|
|
2154
2154
|
}
|
|
2155
2155
|
//check if the wording version has changed
|
|
2156
2156
|
static handleVersionProvider(t) {
|
|
2157
2157
|
const s = vr(t), i = (o) => {
|
|
2158
2158
|
};
|
|
2159
2159
|
if (!s) return i;
|
|
2160
|
-
if (
|
|
2161
|
-
return
|
|
2160
|
+
if (H.versionProviderHandlers.has(s))
|
|
2161
|
+
return H.versionProviderHandlers.get(s) || i;
|
|
2162
2162
|
const e = function(o) {
|
|
2163
2163
|
if (!s.wordingVersionProvider) return;
|
|
2164
|
-
const a =
|
|
2164
|
+
const a = H.publisher.get().__wording_versions__ ?? [];
|
|
2165
2165
|
if (o == null) return;
|
|
2166
2166
|
const c = a.find(
|
|
2167
2167
|
(h) => h.serviceURL === s.api.serviceURL
|
|
@@ -2169,9 +2169,9 @@ const R = Ae(mi), gi = /* @__PURE__ */ new Map(), vr = (r) => {
|
|
|
2169
2169
|
serviceURL: s.api.serviceURL,
|
|
2170
2170
|
version: 0
|
|
2171
2171
|
};
|
|
2172
|
-
a.includes(c) || a.push(c), o !== c.version && (c.version = o,
|
|
2172
|
+
a.includes(c) || a.push(c), o !== c.version && (c.version = o, H.publisher.set({ __wording_versions__: a }), H.reloadWordings());
|
|
2173
2173
|
};
|
|
2174
|
-
return
|
|
2174
|
+
return H.versionProviderHandlers.set(
|
|
2175
2175
|
s,
|
|
2176
2176
|
e
|
|
2177
2177
|
), e;
|
|
@@ -2179,7 +2179,7 @@ const R = Ae(mi), gi = /* @__PURE__ */ new Map(), vr = (r) => {
|
|
|
2179
2179
|
// Subscribes to the key, calling the directive's asynchronous
|
|
2180
2180
|
// setValue API each time the value changes
|
|
2181
2181
|
subscribe(t) {
|
|
2182
|
-
this.unsubscribe(),
|
|
2182
|
+
this.unsubscribe(), H.publisher["wording_" + t].onAssign(this.onAssign), H.callApi(this.node, t);
|
|
2183
2183
|
}
|
|
2184
2184
|
// When the directive is disconnected from the DOM, unsubscribe to ensure
|
|
2185
2185
|
// the directive instance can be garbage collected
|
|
@@ -2192,10 +2192,10 @@ const R = Ae(mi), gi = /* @__PURE__ */ new Map(), vr = (r) => {
|
|
|
2192
2192
|
this.key && this.subscribe(this.key);
|
|
2193
2193
|
}
|
|
2194
2194
|
};
|
|
2195
|
-
|
|
2195
|
+
H.publisher = T.get("sonic-wording", {
|
|
2196
2196
|
localStorageMode: "enabled"
|
|
2197
|
-
}),
|
|
2198
|
-
let ke =
|
|
2197
|
+
}), H.firstCall = !0, H.versionProviderHandlers = /* @__PURE__ */ new Map();
|
|
2198
|
+
let ke = H;
|
|
2199
2199
|
const gn = Ae(ke), bn = gn;
|
|
2200
2200
|
var vn = Object.defineProperty, yn = Object.getOwnPropertyDescriptor, Lt = (r, t, s, i) => {
|
|
2201
2201
|
for (var e = i > 1 ? void 0 : i ? yn(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
@@ -2225,7 +2225,7 @@ const G = (r, t) => {
|
|
|
2225
2225
|
* @returns valeur de l'attribut ou null si l'attribut n'est pas trouvé
|
|
2226
2226
|
*/
|
|
2227
2227
|
getAncestorAttributeValue(n) {
|
|
2228
|
-
return
|
|
2228
|
+
return et.getAncestorAttributeValue(this, n);
|
|
2229
2229
|
}
|
|
2230
2230
|
get props() {
|
|
2231
2231
|
return this._props !== null || !this.publisher ? this._props : this.publisher.get();
|
|
@@ -2304,7 +2304,7 @@ const G = (r, t) => {
|
|
|
2304
2304
|
* A voir si on le bouge dans un utilitaire
|
|
2305
2305
|
*/
|
|
2306
2306
|
getApiConfiguration() {
|
|
2307
|
-
return
|
|
2307
|
+
return et.getApiConfiguration(this);
|
|
2308
2308
|
}
|
|
2309
2309
|
/**
|
|
2310
2310
|
* Initialise le remplisage automatique des traductions / du wording
|
|
@@ -2345,7 +2345,7 @@ const G = (r, t) => {
|
|
|
2345
2345
|
const h = this.getAttribute(
|
|
2346
2346
|
"subDataProvider"
|
|
2347
2347
|
);
|
|
2348
|
-
this.dataProvider = a + "/" + h, c =
|
|
2348
|
+
this.dataProvider = a + "/" + h, c = st.traverse(c, h.split(".")), n.set(this.dataProvider, c), this.publisher = c;
|
|
2349
2349
|
}
|
|
2350
2350
|
this.publisher = c;
|
|
2351
2351
|
}
|
|
@@ -2374,7 +2374,7 @@ const G = (r, t) => {
|
|
|
2374
2374
|
], s.prototype, "bindPublisher", 2), Lt([
|
|
2375
2375
|
l()
|
|
2376
2376
|
], s.prototype, "props", 1), Lt([
|
|
2377
|
-
|
|
2377
|
+
L()
|
|
2378
2378
|
], s.prototype, "shouldRenderLazy", 2), s;
|
|
2379
2379
|
};
|
|
2380
2380
|
var _n = Object.defineProperty, wn = (r, t, s, i) => {
|
|
@@ -2413,7 +2413,7 @@ let U = class extends G(ds(x)) {
|
|
|
2413
2413
|
}
|
|
2414
2414
|
static updateComponentsLanguage() {
|
|
2415
2415
|
U.dateCompnents.forEach(
|
|
2416
|
-
(r) => r.pageLanguage =
|
|
2416
|
+
(r) => r.pageLanguage = et.getLanguage()
|
|
2417
2417
|
);
|
|
2418
2418
|
}
|
|
2419
2419
|
get wording_billet_periode_validite() {
|
|
@@ -2424,7 +2424,7 @@ let U = class extends G(ds(x)) {
|
|
|
2424
2424
|
r || (r = "Du %s au %s"), this._wording_billet_periode_validite = r, this.duAu = (t = this.wording_billet_periode_validite) == null ? void 0 : t.split("%s").map((s) => s.trim()), this.duAu.pop(), this.requestUpdate();
|
|
2425
2425
|
}
|
|
2426
2426
|
connectedCallback() {
|
|
2427
|
-
this.hasAttribute("wording_billet_periode_validite") || (this.wording_billet_periode_validite = "Du %s au %s"), this.pageLanguage =
|
|
2427
|
+
this.hasAttribute("wording_billet_periode_validite") || (this.wording_billet_periode_validite = "Du %s au %s"), this.pageLanguage = et.getLanguage(), U.dateCompnents.add(this), super.connectedCallback();
|
|
2428
2428
|
}
|
|
2429
2429
|
disconnectedCallback() {
|
|
2430
2430
|
super.disconnectedCallback(), U.dateCompnents.delete(this);
|
|
@@ -2565,7 +2565,7 @@ U = Z([
|
|
|
2565
2565
|
$(Pn)
|
|
2566
2566
|
], U);
|
|
2567
2567
|
var t, K;
|
|
2568
|
-
let
|
|
2568
|
+
let it = (K = class {
|
|
2569
2569
|
static listen() {
|
|
2570
2570
|
var s;
|
|
2571
2571
|
if (!K.listening)
|
|
@@ -2741,7 +2741,7 @@ const Ps = /* @__PURE__ */ new Map(), Fe = (r) => {
|
|
|
2741
2741
|
return this._value;
|
|
2742
2742
|
}
|
|
2743
2743
|
set value(i) {
|
|
2744
|
-
i == null && (i = ""),
|
|
2744
|
+
i == null && (i = ""), st.isObject(i) && Object.prototype.hasOwnProperty.call(i, "__value") && i._value == null && (i = ""), this._value != i && (this._value = i, this.updateDataValue(), this.requestUpdate());
|
|
2745
2745
|
}
|
|
2746
2746
|
initPublisher() {
|
|
2747
2747
|
let i = this.getFormPublisher();
|
|
@@ -2990,9 +2990,9 @@ var bi = { exports: {} };
|
|
|
2990
2990
|
}, y = function(f) {
|
|
2991
2991
|
return new RegExp(f.toString() + "|").exec("").length - 1;
|
|
2992
2992
|
}, v = function(f, u) {
|
|
2993
|
-
var w, S, O, N,
|
|
2993
|
+
var w, S, O, N, B;
|
|
2994
2994
|
for (N = {}, w = -1, O = f.length; ++w < O; )
|
|
2995
|
-
S = f[w],
|
|
2995
|
+
S = f[w], B = u[w], B != null && (N[S] != null ? (Array.isArray(N[S]) || (N[S] = [N[S]]), N[S].push(B)) : N[S] = B);
|
|
2996
2996
|
return N;
|
|
2997
2997
|
}, i = {}, i.Result = function(f, u) {
|
|
2998
2998
|
this.value = f, this.rest = u;
|
|
@@ -3013,11 +3013,11 @@ var bi = { exports: {} };
|
|
|
3013
3013
|
}, i.sequence = function() {
|
|
3014
3014
|
var f;
|
|
3015
3015
|
return f = 1 <= arguments.length ? s.call(arguments, 0) : [], function(u) {
|
|
3016
|
-
var w, S, O, N,
|
|
3016
|
+
var w, S, O, N, B, W;
|
|
3017
3017
|
for (w = -1, S = f.length, W = [], N = u; ++w < S; ) {
|
|
3018
|
-
if (O = f[w],
|
|
3018
|
+
if (O = f[w], B = O(N), B == null)
|
|
3019
3019
|
return;
|
|
3020
|
-
W.push(
|
|
3020
|
+
W.push(B.value), N = B.rest;
|
|
3021
3021
|
}
|
|
3022
3022
|
return new i.Result(W, N);
|
|
3023
3023
|
};
|
|
@@ -3040,9 +3040,9 @@ var bi = { exports: {} };
|
|
|
3040
3040
|
return u == null && (u = f()), u(w);
|
|
3041
3041
|
};
|
|
3042
3042
|
}, i.baseMany = function(f, u, w, S, O) {
|
|
3043
|
-
var N,
|
|
3044
|
-
for (W = O, Ot = w ? "" : []; !(u != null && (N = u(W), N != null) || (
|
|
3045
|
-
w ? Ot +=
|
|
3043
|
+
var N, B, W, Ot;
|
|
3044
|
+
for (W = O, Ot = w ? "" : []; !(u != null && (N = u(W), N != null) || (B = f(W), B == null)); )
|
|
3045
|
+
w ? Ot += B.value : Ot.push(B.value), W = B.rest;
|
|
3046
3046
|
if (!(S && Ot.length === 0))
|
|
3047
3047
|
return new i.Result(Ot, W);
|
|
3048
3048
|
}, i.many1 = function(f) {
|
|
@@ -3113,7 +3113,7 @@ var bi = { exports: {} };
|
|
|
3113
3113
|
return n(f.value);
|
|
3114
3114
|
}
|
|
3115
3115
|
}, g = function(f, u, w, S) {
|
|
3116
|
-
var O, N,
|
|
3116
|
+
var O, N, B, W;
|
|
3117
3117
|
if (S == null && (S = !1), W = f[u], W == null) {
|
|
3118
3118
|
if (S)
|
|
3119
3119
|
throw new Error("no values provided for key `" + u + "`");
|
|
@@ -3124,7 +3124,7 @@ var bi = { exports: {} };
|
|
|
3124
3124
|
throw new Error("too few values provided for key `" + u + "`");
|
|
3125
3125
|
return;
|
|
3126
3126
|
}
|
|
3127
|
-
return
|
|
3127
|
+
return B = Array.isArray(W) ? W[O] : W, S && (w[u] = O + 1), B;
|
|
3128
3128
|
}, o = function(f, u, w) {
|
|
3129
3129
|
var S, O;
|
|
3130
3130
|
if (Array.isArray(f)) {
|
|
@@ -3159,7 +3159,7 @@ var bi = { exports: {} };
|
|
|
3159
3159
|
return o(f.value, u, w) ? D(f.value, u, w) : "";
|
|
3160
3160
|
}
|
|
3161
3161
|
}, e = function(f, u) {
|
|
3162
|
-
var w, S, O, N,
|
|
3162
|
+
var w, S, O, N, B;
|
|
3163
3163
|
if (f instanceof e) {
|
|
3164
3164
|
this.isRegex = f.isRegex, this.regex = f.regex, this.ast = f.ast, this.names = f.names;
|
|
3165
3165
|
return;
|
|
@@ -3178,7 +3178,7 @@ var bi = { exports: {} };
|
|
|
3178
3178
|
}
|
|
3179
3179
|
if (f === "")
|
|
3180
3180
|
throw new Error("argument must not be the empty string");
|
|
3181
|
-
if (
|
|
3181
|
+
if (B = f.replace(/\s+/g, ""), B !== f)
|
|
3182
3182
|
throw new Error("argument must not contain whitespace");
|
|
3183
3183
|
if (S = {
|
|
3184
3184
|
escapeChar: (u != null ? u.escapeChar : void 0) || d.escapeChar,
|
|
@@ -3206,7 +3206,7 @@ var bi = { exports: {} };
|
|
|
3206
3206
|
});
|
|
3207
3207
|
})(bi, bi.exports);
|
|
3208
3208
|
var Ln = bi.exports;
|
|
3209
|
-
const Wt = /* @__PURE__ */ kn(Ln), En = Io, Nn = On, Tn = qs, Mn = Os, Jt =
|
|
3209
|
+
const Wt = /* @__PURE__ */ kn(Ln), En = Io, Nn = On, Tn = qs, Mn = Os, Jt = et, In = it, ps = st, jn = ts, rt = T, Fn = Ee, zn = Wt;
|
|
3210
3210
|
window["concorde-utils"] = window["concorde-utils"] || {};
|
|
3211
3211
|
window["concorde-utils"] = {
|
|
3212
3212
|
Utils: En,
|
|
@@ -3217,7 +3217,7 @@ window["concorde-utils"] = {
|
|
|
3217
3217
|
LocationHandler: In,
|
|
3218
3218
|
Objects: ps,
|
|
3219
3219
|
PublisherProxy: jn,
|
|
3220
|
-
PublisherManager:
|
|
3220
|
+
PublisherManager: rt,
|
|
3221
3221
|
api: Fn,
|
|
3222
3222
|
URLPattern: zn
|
|
3223
3223
|
};
|
|
@@ -3226,7 +3226,7 @@ var Rn = Object.defineProperty, Un = Object.getOwnPropertyDescriptor, qe = (r, t
|
|
|
3226
3226
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
3227
3227
|
return i && e && Rn(t, s, e), e;
|
|
3228
3228
|
};
|
|
3229
|
-
const
|
|
3229
|
+
const Hi = (r) => {
|
|
3230
3230
|
class t extends r {
|
|
3231
3231
|
constructor() {
|
|
3232
3232
|
super(...arguments), this._value = "", this.forceAutoFill = !1, this.unique = null, this.radio = null, this._checked = null, this.updateAllChecked = () => {
|
|
@@ -3328,7 +3328,7 @@ const Bi = (r) => {
|
|
|
3328
3328
|
getCheckAllPublisher() {
|
|
3329
3329
|
this.formDataProvider || (this.formDataProvider = this.getAncestorAttributeValue("formDataProvider"));
|
|
3330
3330
|
const i = this.formDataProvider, e = this.getAttribute("name");
|
|
3331
|
-
return !i || !e ? null :
|
|
3331
|
+
return !i || !e ? null : rt.get(
|
|
3332
3332
|
i + "/" + e + "/_available_values_"
|
|
3333
3333
|
);
|
|
3334
3334
|
}
|
|
@@ -3407,13 +3407,13 @@ const A = (r) => r ?? C, jt = P`
|
|
|
3407
3407
|
--sc-_fs: 1em;
|
|
3408
3408
|
}
|
|
3409
3409
|
`;
|
|
3410
|
-
var Vn = Object.defineProperty,
|
|
3411
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
3410
|
+
var Vn = Object.defineProperty, Bn = Object.getOwnPropertyDescriptor, q = (r, t, s, i) => {
|
|
3411
|
+
for (var e = i > 1 ? void 0 : i ? Bn(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
3412
3412
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
3413
3413
|
return i && e && Vn(t, s, e), e;
|
|
3414
3414
|
};
|
|
3415
|
-
const
|
|
3416
|
-
let
|
|
3415
|
+
const Hn = "sonic-button";
|
|
3416
|
+
let j = class extends Hi(Fe(G(x))) {
|
|
3417
3417
|
constructor() {
|
|
3418
3418
|
super(...arguments), this.type = "default", this.variant = "default", this.shape = "default", this.direction = "row", this.alignItems = "center", this.justify = "center", this.minWidth = "0", this.icon = !1, this.download = null, this.autoActive = "partial", this.loading = !1, this.hasPrefix = !1, this.hasSuffix = !1, this._href = "", this.goBack = null, this.pushState = !1, this.active = !1, this.autoRepeat = !1, this.pointerDownTime = 0, this.lastRepeatTime = 0, this.isRepeating = !1, this.handleRepeatend = () => {
|
|
3419
3419
|
window.removeEventListener("pointerup", this.handleRepeatend), window.removeEventListener("blur", this.handleRepeatend), this.autoRepeat && (this.isRepeating = !1);
|
|
@@ -3422,17 +3422,17 @@ let I = class extends Bi(Fe(G(x))) {
|
|
|
3422
3422
|
set href(r) {
|
|
3423
3423
|
this._href = r;
|
|
3424
3424
|
const t = this._href.toString();
|
|
3425
|
-
t && t.indexOf("http") != 0 ?
|
|
3425
|
+
t && t.indexOf("http") != 0 ? it.onChange(this) : it.offChange(this), this.requestUpdate();
|
|
3426
3426
|
}
|
|
3427
3427
|
get href() {
|
|
3428
3428
|
return this._href;
|
|
3429
3429
|
}
|
|
3430
3430
|
handleNavigation(r) {
|
|
3431
|
-
r.preventDefault(),
|
|
3431
|
+
r.preventDefault(), it.changeFromComponent(this);
|
|
3432
3432
|
}
|
|
3433
3433
|
handleChange(r) {
|
|
3434
|
-
if (!((r == null ? void 0 : r.type) == "click" && this.autoRepeat) && (super.handleChange(), (this.pushState || this.goBack !== null) && (r == null || r.preventDefault(), r == null || r.stopPropagation(),
|
|
3435
|
-
const t = this.getAttribute("reset"), s = t ?
|
|
3434
|
+
if (!((r == null ? void 0 : r.type) == "click" && this.autoRepeat) && (super.handleChange(), (this.pushState || this.goBack !== null) && (r == null || r.preventDefault(), r == null || r.stopPropagation(), it.changeFromComponent(this)), this.hasAttribute("reset"))) {
|
|
3435
|
+
const t = this.getAttribute("reset"), s = t ? rt.get(t) : this.getFormPublisher();
|
|
3436
3436
|
s && s.set({});
|
|
3437
3437
|
}
|
|
3438
3438
|
}
|
|
@@ -3458,10 +3458,10 @@ let I = class extends Bi(Fe(G(x))) {
|
|
|
3458
3458
|
}
|
|
3459
3459
|
}
|
|
3460
3460
|
disconnectedCallback() {
|
|
3461
|
-
|
|
3461
|
+
it.offChange(this), super.disconnectedCallback();
|
|
3462
3462
|
}
|
|
3463
3463
|
willUpdate(r) {
|
|
3464
|
-
(r.has("href") || r.has("autoActive")) &&
|
|
3464
|
+
(r.has("href") || r.has("autoActive")) && it.updateComponentActiveState(this), r.has("location") && it.updateComponentActiveState(this);
|
|
3465
3465
|
}
|
|
3466
3466
|
render() {
|
|
3467
3467
|
const r = {
|
|
@@ -3511,7 +3511,7 @@ let I = class extends Bi(Fe(G(x))) {
|
|
|
3511
3511
|
this.hasPrefix = !!((r = this.prefixes) != null && r.length), this.hasSuffix = !!((t = this.suffixes) != null && t.length);
|
|
3512
3512
|
}
|
|
3513
3513
|
};
|
|
3514
|
-
|
|
3514
|
+
j.styles = [
|
|
3515
3515
|
jt,
|
|
3516
3516
|
P`
|
|
3517
3517
|
* {
|
|
@@ -3610,7 +3610,7 @@ I.styles = [
|
|
|
3610
3610
|
gap: var(--sc-btn-gap);
|
|
3611
3611
|
}
|
|
3612
3612
|
|
|
3613
|
-
:host button:focus,
|
|
3613
|
+
:host button:focus-visible,
|
|
3614
3614
|
:host button:hover {
|
|
3615
3615
|
filter: var(--sc-btn-hover-filter);
|
|
3616
3616
|
}
|
|
@@ -3669,7 +3669,7 @@ I.styles = [
|
|
|
3669
3669
|
}
|
|
3670
3670
|
|
|
3671
3671
|
/*GESTION DU FOCUS*/
|
|
3672
|
-
:host(:not([disabled])) button:focus {
|
|
3672
|
+
:host(:not([disabled])) button:focus-visible {
|
|
3673
3673
|
box-shadow: 0 0 0 0.18rem var(--sc-base-300, rgba(0, 0, 0, 0.18));
|
|
3674
3674
|
border-color: var(--sc-base-300, rgba(0, 0, 0, 0.18)) !important;
|
|
3675
3675
|
outline: none;
|
|
@@ -3686,7 +3686,7 @@ I.styles = [
|
|
|
3686
3686
|
background: transparent;
|
|
3687
3687
|
}
|
|
3688
3688
|
|
|
3689
|
-
/*:host([variant="ghost"]) button:focus,*/
|
|
3689
|
+
/*:host([variant="ghost"]) button:focus-visible,*/
|
|
3690
3690
|
:host([variant="ghost"]) button:hover {
|
|
3691
3691
|
background: var(--sc-btn-ghost-bg-hover);
|
|
3692
3692
|
filter: none;
|
|
@@ -3714,7 +3714,7 @@ I.styles = [
|
|
|
3714
3714
|
background: transparent;
|
|
3715
3715
|
}
|
|
3716
3716
|
|
|
3717
|
-
/*:host([variant="outline"]) button:focus,*/
|
|
3717
|
+
/*:host([variant="outline"]) button:focus-visible,*/
|
|
3718
3718
|
:host([variant="outline"]) button:hover {
|
|
3719
3719
|
background: var(--btn-outline-bg-hover);
|
|
3720
3720
|
}
|
|
@@ -3747,7 +3747,7 @@ I.styles = [
|
|
|
3747
3747
|
color: inherit;
|
|
3748
3748
|
}
|
|
3749
3749
|
|
|
3750
|
-
:host([variant="link"]) button:focus,
|
|
3750
|
+
:host([variant="link"]) button:focus-visible,
|
|
3751
3751
|
:host([variant="link"]) button:hover {
|
|
3752
3752
|
text-decoration: none;
|
|
3753
3753
|
}
|
|
@@ -3883,85 +3883,85 @@ I.styles = [
|
|
|
3883
3883
|
];
|
|
3884
3884
|
q([
|
|
3885
3885
|
l({ type: String, reflect: !0 })
|
|
3886
|
-
],
|
|
3886
|
+
], j.prototype, "type", 2);
|
|
3887
3887
|
q([
|
|
3888
3888
|
l({ type: String, reflect: !0 })
|
|
3889
|
-
],
|
|
3889
|
+
], j.prototype, "variant", 2);
|
|
3890
3890
|
q([
|
|
3891
3891
|
l({ type: String, reflect: !0 })
|
|
3892
|
-
],
|
|
3892
|
+
], j.prototype, "size", 2);
|
|
3893
3893
|
q([
|
|
3894
3894
|
l({ type: String, reflect: !0 })
|
|
3895
|
-
],
|
|
3895
|
+
], j.prototype, "shape", 2);
|
|
3896
3896
|
q([
|
|
3897
3897
|
l({ type: String })
|
|
3898
|
-
],
|
|
3898
|
+
], j.prototype, "direction", 2);
|
|
3899
3899
|
q([
|
|
3900
3900
|
l({ type: String, reflect: !0 })
|
|
3901
|
-
],
|
|
3901
|
+
], j.prototype, "alignItems", 2);
|
|
3902
3902
|
q([
|
|
3903
3903
|
l({ type: String })
|
|
3904
|
-
],
|
|
3904
|
+
], j.prototype, "justify", 2);
|
|
3905
3905
|
q([
|
|
3906
3906
|
l({ type: String, reflect: !0 })
|
|
3907
|
-
],
|
|
3907
|
+
], j.prototype, "align", 2);
|
|
3908
3908
|
q([
|
|
3909
3909
|
l({ type: String })
|
|
3910
|
-
],
|
|
3910
|
+
], j.prototype, "minWidth", 2);
|
|
3911
3911
|
q([
|
|
3912
3912
|
l({ type: Boolean, reflect: !0 })
|
|
3913
|
-
],
|
|
3913
|
+
], j.prototype, "icon", 2);
|
|
3914
3914
|
q([
|
|
3915
3915
|
l({ type: String })
|
|
3916
|
-
],
|
|
3916
|
+
], j.prototype, "download", 2);
|
|
3917
3917
|
q([
|
|
3918
3918
|
l({ type: String })
|
|
3919
|
-
],
|
|
3919
|
+
], j.prototype, "autoActive", 2);
|
|
3920
3920
|
q([
|
|
3921
3921
|
l({ type: Boolean, reflect: !0 })
|
|
3922
|
-
],
|
|
3922
|
+
], j.prototype, "loading", 2);
|
|
3923
3923
|
q([
|
|
3924
|
-
|
|
3925
|
-
],
|
|
3924
|
+
L()
|
|
3925
|
+
], j.prototype, "hasPrefix", 2);
|
|
3926
3926
|
q([
|
|
3927
|
-
|
|
3928
|
-
],
|
|
3927
|
+
L()
|
|
3928
|
+
], j.prototype, "hasSuffix", 2);
|
|
3929
3929
|
q([
|
|
3930
3930
|
Pe({ flatten: !0, slot: "prefix" })
|
|
3931
|
-
],
|
|
3931
|
+
], j.prototype, "prefixes", 2);
|
|
3932
3932
|
q([
|
|
3933
3933
|
Pe({ flatten: !0, slot: "suffix" })
|
|
3934
|
-
],
|
|
3934
|
+
], j.prototype, "suffixes", 2);
|
|
3935
3935
|
q([
|
|
3936
3936
|
l({ type: String })
|
|
3937
|
-
],
|
|
3937
|
+
], j.prototype, "target", 2);
|
|
3938
3938
|
q([
|
|
3939
3939
|
l({ type: String })
|
|
3940
|
-
],
|
|
3940
|
+
], j.prototype, "href", 1);
|
|
3941
3941
|
q([
|
|
3942
3942
|
l({ type: String })
|
|
3943
|
-
],
|
|
3943
|
+
], j.prototype, "goBack", 2);
|
|
3944
3944
|
q([
|
|
3945
3945
|
l({ type: Boolean })
|
|
3946
|
-
],
|
|
3946
|
+
], j.prototype, "pushState", 2);
|
|
3947
3947
|
q([
|
|
3948
3948
|
l({ type: Boolean, reflect: !0 })
|
|
3949
|
-
],
|
|
3949
|
+
], j.prototype, "active", 2);
|
|
3950
3950
|
q([
|
|
3951
3951
|
l({ type: Boolean, reflect: !0 })
|
|
3952
|
-
],
|
|
3952
|
+
], j.prototype, "autoRepeat", 2);
|
|
3953
3953
|
q([
|
|
3954
3954
|
l({ type: String, attribute: "data-aria-controls" })
|
|
3955
|
-
],
|
|
3955
|
+
], j.prototype, "ariaControls", 2);
|
|
3956
3956
|
q([
|
|
3957
3957
|
l({ type: Boolean, attribute: "data-aria-expanded" })
|
|
3958
|
-
],
|
|
3958
|
+
], j.prototype, "sonicAriaExpanded", 2);
|
|
3959
3959
|
q([
|
|
3960
|
-
|
|
3961
|
-
],
|
|
3962
|
-
|
|
3963
|
-
$(
|
|
3964
|
-
],
|
|
3960
|
+
L()
|
|
3961
|
+
], j.prototype, "location", 2);
|
|
3962
|
+
j = q([
|
|
3963
|
+
$(Hn)
|
|
3964
|
+
], j);
|
|
3965
3965
|
/**
|
|
3966
3966
|
* @license
|
|
3967
3967
|
* Copyright 2017 Google LLC
|
|
@@ -3995,19 +3995,19 @@ const _r = (r, t, s) => {
|
|
|
3995
3995
|
else if (e[g] === null) g--;
|
|
3996
3996
|
else if (a[p] === n[v]) c[v] = ce(e[p], o[v]), p++, v++;
|
|
3997
3997
|
else if (a[g] === n[b]) c[b] = ce(e[g], o[b]), g--, b--;
|
|
3998
|
-
else if (a[p] === n[b]) c[b] = ce(e[p], o[b]),
|
|
3999
|
-
else if (a[g] === n[v]) c[v] = ce(e[g], o[v]),
|
|
3998
|
+
else if (a[p] === n[b]) c[b] = ce(e[p], o[b]), He(r, c[b + 1], e[p]), p++, b--;
|
|
3999
|
+
else if (a[g] === n[v]) c[v] = ce(e[g], o[v]), He(r, e[p], e[g]), g--, v++;
|
|
4000
4000
|
else if (h === void 0 && (h = _r(n, v, b), d = _r(a, p, g)), h.has(a[p])) if (h.has(a[g])) {
|
|
4001
4001
|
const y = d.get(n[v]), _ = y !== void 0 ? e[y] : null;
|
|
4002
4002
|
if (_ === null) {
|
|
4003
|
-
const D =
|
|
4003
|
+
const D = He(r, e[p]);
|
|
4004
4004
|
ce(D, o[v]), c[v] = D;
|
|
4005
|
-
} else c[v] = ce(_, o[v]),
|
|
4005
|
+
} else c[v] = ce(_, o[v]), He(r, e[p], _), e[y] = null;
|
|
4006
4006
|
v++;
|
|
4007
4007
|
} else ni(e[g]), g--;
|
|
4008
4008
|
else ni(e[p]), p++;
|
|
4009
4009
|
for (; v <= b; ) {
|
|
4010
|
-
const y =
|
|
4010
|
+
const y = He(r, c[b + 1]);
|
|
4011
4011
|
ce(y, o[v]), c[v++] = y;
|
|
4012
4012
|
}
|
|
4013
4013
|
for (; p <= g; ) {
|
|
@@ -4024,7 +4024,7 @@ const _r = (r, t, s) => {
|
|
|
4024
4024
|
*/
|
|
4025
4025
|
const Qe = globalThis, Ns = Qe.trustedTypes, wr = Ns ? Ns.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, ho = "$lit$", Gt = `lit$${Math.random().toFixed(9).slice(2)}$`, po = "?" + Gt, qn = `<${po}>`, be = document, Ts = () => be.createComment(""), is = (r) => r === null || typeof r != "object" && typeof r != "function", qi = Array.isArray, Wn = (r) => qi(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", ci = `[
|
|
4026
4026
|
\f\r]`, We = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, xr = /-->/g, $r = />/g, he = RegExp(`>|${ci}(?:([^\\s"'>=/]+)(${ci}*=${ci}*(?:[^
|
|
4027
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Pr = /'/g, Ar = /"/g, uo = /^(?:script|style|textarea|title)$/i, rs = Symbol.for("lit-noChange"),
|
|
4027
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Pr = /'/g, Ar = /"/g, uo = /^(?:script|style|textarea|title)$/i, rs = Symbol.for("lit-noChange"), tt = Symbol.for("lit-nothing"), Cr = /* @__PURE__ */ new WeakMap(), fe = be.createTreeWalker(be, 129);
|
|
4028
4028
|
function fo(r, t) {
|
|
4029
4029
|
if (!qi(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
4030
4030
|
return wr !== void 0 ? wr.createHTML(t) : t;
|
|
@@ -4119,7 +4119,7 @@ class Zs {
|
|
|
4119
4119
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this.v;
|
|
4120
4120
|
}
|
|
4121
4121
|
constructor(t, s, i, e) {
|
|
4122
|
-
this.type = 2, this._$AH =
|
|
4122
|
+
this.type = 2, this._$AH = tt, this._$AN = void 0, this._$AA = t, this._$AB = s, this._$AM = i, this.options = e, this.v = (e == null ? void 0 : e.isConnected) ?? !0;
|
|
4123
4123
|
}
|
|
4124
4124
|
get parentNode() {
|
|
4125
4125
|
let t = this._$AA.parentNode;
|
|
@@ -4133,7 +4133,7 @@ class Zs {
|
|
|
4133
4133
|
return this._$AB;
|
|
4134
4134
|
}
|
|
4135
4135
|
_$AI(t, s = this) {
|
|
4136
|
-
t = Ne(this, t, s), is(t) ? t ===
|
|
4136
|
+
t = Ne(this, t, s), is(t) ? t === tt || t == null || t === "" ? (this._$AH !== tt && this._$AR(), this._$AH = tt) : t !== this._$AH && t !== rs && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Wn(t) ? this.k(t) : this._(t);
|
|
4137
4137
|
}
|
|
4138
4138
|
O(t) {
|
|
4139
4139
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -4142,7 +4142,7 @@ class Zs {
|
|
|
4142
4142
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
4143
4143
|
}
|
|
4144
4144
|
_(t) {
|
|
4145
|
-
this._$AH !==
|
|
4145
|
+
this._$AH !== tt && is(this._$AH) ? this._$AA.nextSibling.data = t : this.T(be.createTextNode(t)), this._$AH = t;
|
|
4146
4146
|
}
|
|
4147
4147
|
$(t) {
|
|
4148
4148
|
var o;
|
|
@@ -4184,7 +4184,7 @@ class Xs {
|
|
|
4184
4184
|
return this._$AM._$AU;
|
|
4185
4185
|
}
|
|
4186
4186
|
constructor(t, s, i, e, o) {
|
|
4187
|
-
this.type = 1, this._$AH =
|
|
4187
|
+
this.type = 1, this._$AH = tt, this._$AN = void 0, this.element = t, this.name = s, this._$AM = e, this.options = o, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = tt;
|
|
4188
4188
|
}
|
|
4189
4189
|
_$AI(t, s = this, i, e) {
|
|
4190
4190
|
const o = this.strings;
|
|
@@ -4193,12 +4193,12 @@ class Xs {
|
|
|
4193
4193
|
else {
|
|
4194
4194
|
const a = t;
|
|
4195
4195
|
let c, h;
|
|
4196
|
-
for (t = o[0], c = 0; c < o.length - 1; c++) h = Ne(this, a[i + c], s, c), h === rs && (h = this._$AH[c]), n || (n = !is(h) || h !== this._$AH[c]), h ===
|
|
4196
|
+
for (t = o[0], c = 0; c < o.length - 1; c++) h = Ne(this, a[i + c], s, c), h === rs && (h = this._$AH[c]), n || (n = !is(h) || h !== this._$AH[c]), h === tt ? t = tt : t !== tt && (t += (h ?? "") + o[c + 1]), this._$AH[c] = h;
|
|
4197
4197
|
}
|
|
4198
4198
|
n && !e && this.j(t);
|
|
4199
4199
|
}
|
|
4200
4200
|
j(t) {
|
|
4201
|
-
t ===
|
|
4201
|
+
t === tt ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
4202
4202
|
}
|
|
4203
4203
|
}
|
|
4204
4204
|
class Zn extends Xs {
|
|
@@ -4206,7 +4206,7 @@ class Zn extends Xs {
|
|
|
4206
4206
|
super(...arguments), this.type = 3;
|
|
4207
4207
|
}
|
|
4208
4208
|
j(t) {
|
|
4209
|
-
this.element[this.name] = t ===
|
|
4209
|
+
this.element[this.name] = t === tt ? void 0 : t;
|
|
4210
4210
|
}
|
|
4211
4211
|
}
|
|
4212
4212
|
class Xn extends Xs {
|
|
@@ -4214,7 +4214,7 @@ class Xn extends Xs {
|
|
|
4214
4214
|
super(...arguments), this.type = 4;
|
|
4215
4215
|
}
|
|
4216
4216
|
j(t) {
|
|
4217
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
|
4217
|
+
this.element.toggleAttribute(this.name, !!t && t !== tt);
|
|
4218
4218
|
}
|
|
4219
4219
|
}
|
|
4220
4220
|
class Gn extends Xs {
|
|
@@ -4222,8 +4222,8 @@ class Gn extends Xs {
|
|
|
4222
4222
|
super(t, s, i, e, o), this.type = 5;
|
|
4223
4223
|
}
|
|
4224
4224
|
_$AI(t, s = this) {
|
|
4225
|
-
if ((t = Ne(this, t, s, 0) ??
|
|
4226
|
-
const i = this._$AH, e = t ===
|
|
4225
|
+
if ((t = Ne(this, t, s, 0) ?? tt) === rs) return;
|
|
4226
|
+
const i = this._$AH, e = t === tt && i !== tt || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== tt && (i === tt || e);
|
|
4227
4227
|
e && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
4228
4228
|
}
|
|
4229
4229
|
handleEvent(t) {
|
|
@@ -4373,7 +4373,7 @@ class ca extends oa {
|
|
|
4373
4373
|
(t = this.l) == null || t.call(this), this.l = void 0;
|
|
4374
4374
|
}
|
|
4375
4375
|
render(t) {
|
|
4376
|
-
return
|
|
4376
|
+
return tt;
|
|
4377
4377
|
}
|
|
4378
4378
|
getController() {
|
|
4379
4379
|
return na.get(this.u);
|
|
@@ -4732,7 +4732,7 @@ ve.styles = P`
|
|
|
4732
4732
|
}
|
|
4733
4733
|
`;
|
|
4734
4734
|
us([
|
|
4735
|
-
|
|
4735
|
+
L()
|
|
4736
4736
|
], ve.prototype, "iconText", 2);
|
|
4737
4737
|
us([
|
|
4738
4738
|
l({ type: String })
|
|
@@ -5050,7 +5050,7 @@ Ft([
|
|
|
5050
5050
|
l({ type: String })
|
|
5051
5051
|
], xt.prototype, "maxHeight", 2);
|
|
5052
5052
|
Ft([
|
|
5053
|
-
|
|
5053
|
+
L()
|
|
5054
5054
|
], xt.prototype, "visible", 2);
|
|
5055
5055
|
xt = Ft([
|
|
5056
5056
|
$(_a)
|
|
@@ -5221,7 +5221,7 @@ let yt = class extends x {
|
|
|
5221
5221
|
variables: this.getCssVariables(),
|
|
5222
5222
|
fonts: s
|
|
5223
5223
|
};
|
|
5224
|
-
(e =
|
|
5224
|
+
(e = rt.get("sonic-theme")) == null || e.set(i), document.querySelectorAll("iframe").forEach(
|
|
5225
5225
|
(o) => {
|
|
5226
5226
|
var n;
|
|
5227
5227
|
return (n = o.contentWindow) == null ? void 0 : n.postMessage(
|
|
@@ -5428,7 +5428,7 @@ let M = class extends x {
|
|
|
5428
5428
|
for (const c of s.toasts) {
|
|
5429
5429
|
const h = { ...c };
|
|
5430
5430
|
if (a.id = h.id = 0, /*!currentToast.preserve && */
|
|
5431
|
-
|
|
5431
|
+
st.shallowEqual(a, h))
|
|
5432
5432
|
return null;
|
|
5433
5433
|
}
|
|
5434
5434
|
}
|
|
@@ -5455,7 +5455,7 @@ let M = class extends x {
|
|
|
5455
5455
|
}
|
|
5456
5456
|
// Remove Toast
|
|
5457
5457
|
removeItem(t) {
|
|
5458
|
-
t && (this.toasts = this.toasts.filter((s) => (s = { ...s }, delete s.id, !
|
|
5458
|
+
t && (this.toasts = this.toasts.filter((s) => (s = { ...s }, delete s.id, !st.shallowEqual(s, t, !1))));
|
|
5459
5459
|
}
|
|
5460
5460
|
};
|
|
5461
5461
|
M.delegateToasts = !1;
|
|
@@ -5522,9 +5522,9 @@ const Wi = (r, t) => {
|
|
|
5522
5522
|
* Un Toast est affiché si le chargement échoue
|
|
5523
5523
|
*/
|
|
5524
5524
|
async _fetchData() {
|
|
5525
|
-
if (this.requestUpdate(), !this.isFetchEnabled || (this.api = new Ee(this.getApiConfiguration()), !this.api) || (this.dispatchEvent(new CustomEvent("loading", { detail: this })), this.getAttribute("localStorage") === "enabled" && await
|
|
5526
|
-
const e =
|
|
5527
|
-
this.isLoading = !0,
|
|
5525
|
+
if (this.requestUpdate(), !this.isFetchEnabled || (this.api = new Ee(this.getApiConfiguration()), !this.api) || (this.dispatchEvent(new CustomEvent("loading", { detail: this })), this.getAttribute("localStorage") === "enabled" && await rt.getInstance().isLocalStrorageReady, !this.isConnected)) return;
|
|
5526
|
+
const e = rt.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();
|
|
5527
|
+
this.isLoading = !0, st.isObject(this.props) && Object.keys(this.props || {}).length > 0 && this.isFirstLoad && window.requestAnimationFrame(() => {
|
|
5528
5528
|
this.dispatchEvent(new CustomEvent("load", { detail: this })), this.isFirstLoad = !1, this.isLoading = !1;
|
|
5529
5529
|
});
|
|
5530
5530
|
let o = await this.api.get(
|
|
@@ -5543,11 +5543,11 @@ const Wi = (r, t) => {
|
|
|
5543
5543
|
}
|
|
5544
5544
|
if (this.key) {
|
|
5545
5545
|
const n = o._sonic_http_response_, a = this.key.split(".");
|
|
5546
|
-
o =
|
|
5546
|
+
o = st.traverse(
|
|
5547
5547
|
o,
|
|
5548
5548
|
a,
|
|
5549
5549
|
this.hasAttribute("preserveOtherKeys")
|
|
5550
|
-
), o &&
|
|
5550
|
+
), o && st.isObject(o) && n && (o._sonic_http_response_ = n);
|
|
5551
5551
|
}
|
|
5552
5552
|
this.props = o, this.dispatchEvent(new CustomEvent("load", { detail: this })), this.isFirstLoad = !1, this.isLoading = !1, this.refetchEveryMs && this.isConnected && (this.refetchTimeOutId = setTimeout(
|
|
5553
5553
|
() => this._fetchData(),
|
|
@@ -5664,7 +5664,7 @@ const Gs = (r) => {
|
|
|
5664
5664
|
], t.prototype, "tabindex", 2), de([
|
|
5665
5665
|
l({ type: String })
|
|
5666
5666
|
], t.prototype, "autocomplete", 2), t;
|
|
5667
|
-
}, vo = Wi, Fa =
|
|
5667
|
+
}, vo = Wi, Fa = Hi, yo = Fe, _o = Gs, oe = G, Ki = ds;
|
|
5668
5668
|
window["concorde-mixins"] = window["concorde-mixins"] || {};
|
|
5669
5669
|
window["concorde-mixins"] = {
|
|
5670
5670
|
Fetcher: vo,
|
|
@@ -5723,12 +5723,12 @@ wo([
|
|
|
5723
5723
|
js = wo([
|
|
5724
5724
|
$(Ua)
|
|
5725
5725
|
], js);
|
|
5726
|
-
var Va = Object.defineProperty,
|
|
5727
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
5726
|
+
var Va = Object.defineProperty, Ba = Object.getOwnPropertyDescriptor, xo = (r, t, s, i) => {
|
|
5727
|
+
for (var e = i > 1 ? void 0 : i ? Ba(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
5728
5728
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
5729
5729
|
return i && e && Va(t, s, e), e;
|
|
5730
5730
|
};
|
|
5731
|
-
const
|
|
5731
|
+
const Ha = "sonic-if";
|
|
5732
5732
|
let Fs = class extends x {
|
|
5733
5733
|
constructor() {
|
|
5734
5734
|
super(...arguments), this.condition = !1;
|
|
@@ -5746,7 +5746,7 @@ xo([
|
|
|
5746
5746
|
l({ type: Boolean })
|
|
5747
5747
|
], Fs.prototype, "condition", 2);
|
|
5748
5748
|
Fs = xo([
|
|
5749
|
-
$(
|
|
5749
|
+
$(Ha)
|
|
5750
5750
|
], Fs);
|
|
5751
5751
|
const qa = P`
|
|
5752
5752
|
:host([align="left"]) .sonic-loader--inline {
|
|
@@ -5875,17 +5875,17 @@ var Ka = Object.defineProperty, Ya = Object.getOwnPropertyDescriptor, Yi = (r, t
|
|
|
5875
5875
|
return i && e && Ka(t, s, e), e;
|
|
5876
5876
|
};
|
|
5877
5877
|
const Za = "sonic-loader";
|
|
5878
|
-
let
|
|
5878
|
+
let at = class extends x {
|
|
5879
5879
|
constructor() {
|
|
5880
5880
|
super(...arguments), this.mode = "fixed", this.noDelay = !1;
|
|
5881
5881
|
}
|
|
5882
5882
|
static show(r) {
|
|
5883
|
-
|
|
5884
|
-
const t =
|
|
5885
|
-
r || (r = {}), r.mode && t.setAttribute("mode", r.mode), r.noDelay && t.setAttribute("noDelay", ""), r.container || (r.container = yt.getPopContainer(), r.mode = "fixed"), r.container.appendChild(t),
|
|
5883
|
+
at.loader || (at.loader = document.createElement("sonic-loader"));
|
|
5884
|
+
const t = at.loader;
|
|
5885
|
+
r || (r = {}), r.mode && t.setAttribute("mode", r.mode), r.noDelay && t.setAttribute("noDelay", ""), r.container || (r.container = yt.getPopContainer(), r.mode = "fixed"), r.container.appendChild(t), at.callCounter++;
|
|
5886
5886
|
}
|
|
5887
5887
|
static hide() {
|
|
5888
|
-
|
|
5888
|
+
at.callCounter--, !(at.callCounter > 0) && at.loader && at.loader.remove();
|
|
5889
5889
|
}
|
|
5890
5890
|
render() {
|
|
5891
5891
|
return m`<div
|
|
@@ -5898,7 +5898,7 @@ let nt = class extends x {
|
|
|
5898
5898
|
</div>`;
|
|
5899
5899
|
}
|
|
5900
5900
|
};
|
|
5901
|
-
|
|
5901
|
+
at.styles = [
|
|
5902
5902
|
qa,
|
|
5903
5903
|
Wa,
|
|
5904
5904
|
P`
|
|
@@ -5931,16 +5931,16 @@ nt.styles = [
|
|
|
5931
5931
|
}
|
|
5932
5932
|
`
|
|
5933
5933
|
];
|
|
5934
|
-
|
|
5934
|
+
at.callCounter = 0;
|
|
5935
5935
|
Yi([
|
|
5936
5936
|
l({ type: String })
|
|
5937
|
-
],
|
|
5937
|
+
], at.prototype, "mode", 2);
|
|
5938
5938
|
Yi([
|
|
5939
5939
|
l({ type: Boolean })
|
|
5940
|
-
],
|
|
5941
|
-
|
|
5940
|
+
], at.prototype, "noDelay", 2);
|
|
5941
|
+
at = Yi([
|
|
5942
5942
|
$(Za)
|
|
5943
|
-
],
|
|
5943
|
+
], at);
|
|
5944
5944
|
var Xa = Object.defineProperty, Ga = Object.getOwnPropertyDescriptor, Qa = (r, t, s, i) => {
|
|
5945
5945
|
for (var e = i > 1 ? void 0 : i ? Ga(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
5946
5946
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
@@ -6026,7 +6026,7 @@ let $t = class extends Wi(G(ds(x))) {
|
|
|
6026
6026
|
if (r == null)
|
|
6027
6027
|
return null;
|
|
6028
6028
|
const t = r._sonic_http_response_, s = this.hasAttribute("extractValues");
|
|
6029
|
-
return Array.isArray(r) || (s ? r = Object.entries(r).map(([i, e]) => ({ key: i, value: e })) :
|
|
6029
|
+
return Array.isArray(r) || (s ? r = Object.entries(r).map(([i, e]) => ({ key: i, value: e })) : st.isObject(r) && Object.keys(r).length > 0 && (!t || t.ok) ? r = [r] : r = []), r = r.filter((i) => i != null), t && (r._sonic_http_response_ = t), r;
|
|
6030
6030
|
}
|
|
6031
6031
|
updated(r) {
|
|
6032
6032
|
window.requestAnimationFrame(() => {
|
|
@@ -6074,7 +6074,7 @@ let $t = class extends Wi(G(ds(x))) {
|
|
|
6074
6074
|
renderContent() {
|
|
6075
6075
|
if (this.isLoading && !Array.isArray(this.props)) return this.renderLoadingState();
|
|
6076
6076
|
if (typeof this.props == "string") return this.renderNoResultState();
|
|
6077
|
-
if (!
|
|
6077
|
+
if (!st.isObject(this.props)) return m`<div></div>`;
|
|
6078
6078
|
const i = this.formatProps();
|
|
6079
6079
|
if (((i == null ? void 0 : i.length) || 0) == 0) {
|
|
6080
6080
|
if (this.noItems)
|
|
@@ -6175,7 +6175,7 @@ function* $o(r, t) {
|
|
|
6175
6175
|
for (const i of r) yield t(i, s++);
|
|
6176
6176
|
}
|
|
6177
6177
|
}
|
|
6178
|
-
var il = Object.defineProperty, rl = Object.getOwnPropertyDescriptor,
|
|
6178
|
+
var il = Object.defineProperty, rl = Object.getOwnPropertyDescriptor, nt = (r, t, s, i) => {
|
|
6179
6179
|
for (var e = i > 1 ? void 0 : i ? rl(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
6180
6180
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
6181
6181
|
return i && e && il(t, s, e), e;
|
|
@@ -6324,58 +6324,58 @@ let X = class extends G(x) {
|
|
|
6324
6324
|
}
|
|
6325
6325
|
};
|
|
6326
6326
|
X.instanceCounter = 0;
|
|
6327
|
-
|
|
6327
|
+
nt([
|
|
6328
6328
|
l({ type: Array })
|
|
6329
6329
|
], X.prototype, "templates", 2);
|
|
6330
|
-
|
|
6330
|
+
nt([
|
|
6331
6331
|
l({ type: Function })
|
|
6332
6332
|
], X.prototype, "items", 2);
|
|
6333
|
-
|
|
6333
|
+
nt([
|
|
6334
6334
|
l({ type: Function })
|
|
6335
6335
|
], X.prototype, "noItems", 2);
|
|
6336
|
-
|
|
6336
|
+
nt([
|
|
6337
6337
|
l({ type: Function })
|
|
6338
6338
|
], X.prototype, "skeleton", 2);
|
|
6339
|
-
|
|
6339
|
+
nt([
|
|
6340
6340
|
l({ type: Object })
|
|
6341
6341
|
], X.prototype, "itemPropertyMap", 2);
|
|
6342
|
-
|
|
6342
|
+
nt([
|
|
6343
6343
|
l()
|
|
6344
6344
|
], X.prototype, "cache", 2);
|
|
6345
|
-
|
|
6345
|
+
nt([
|
|
6346
6346
|
l()
|
|
6347
6347
|
], X.prototype, "targetRequestDuration", 2);
|
|
6348
|
-
|
|
6348
|
+
nt([
|
|
6349
6349
|
l()
|
|
6350
6350
|
], X.prototype, "limit", 2);
|
|
6351
|
-
|
|
6351
|
+
nt([
|
|
6352
6352
|
l()
|
|
6353
6353
|
], X.prototype, "lazyBoundsRatio", 2);
|
|
6354
|
-
|
|
6354
|
+
nt([
|
|
6355
6355
|
l()
|
|
6356
6356
|
], X.prototype, "offset", 2);
|
|
6357
|
-
|
|
6357
|
+
nt([
|
|
6358
6358
|
l()
|
|
6359
6359
|
], X.prototype, "resultCount", 2);
|
|
6360
|
-
|
|
6360
|
+
nt([
|
|
6361
6361
|
l({ type: Boolean })
|
|
6362
6362
|
], X.prototype, "noLazyload", 2);
|
|
6363
|
-
|
|
6363
|
+
nt([
|
|
6364
6364
|
l({ type: String })
|
|
6365
6365
|
], X.prototype, "loader", 2);
|
|
6366
|
-
|
|
6366
|
+
nt([
|
|
6367
6367
|
l()
|
|
6368
6368
|
], X.prototype, "filteredFields", 2);
|
|
6369
|
-
|
|
6369
|
+
nt([
|
|
6370
6370
|
l({ type: String })
|
|
6371
6371
|
], X.prototype, "dataProviderExpression", 2);
|
|
6372
|
-
|
|
6372
|
+
nt([
|
|
6373
6373
|
l({ type: Boolean })
|
|
6374
6374
|
], X.prototype, "invalidateOnPageShow", 2);
|
|
6375
|
-
|
|
6375
|
+
nt([
|
|
6376
6376
|
l({ type: String })
|
|
6377
6377
|
], X.prototype, "idKey", 2);
|
|
6378
|
-
X =
|
|
6378
|
+
X = nt([
|
|
6379
6379
|
$(ol)
|
|
6380
6380
|
], X);
|
|
6381
6381
|
var nl = Object.defineProperty, al = Object.getOwnPropertyDescriptor, ze = (r, t, s, i) => {
|
|
@@ -6394,7 +6394,7 @@ let te = class extends G(x) {
|
|
|
6394
6394
|
this.getAncestorAttributeValue("formDataProvider")
|
|
6395
6395
|
);
|
|
6396
6396
|
if (t.isFormValid = !0, t.invalidateForm(), !t.isFormValid.get()) return;
|
|
6397
|
-
if (this.disabled = !0,
|
|
6397
|
+
if (this.disabled = !0, at.show(), t.isFormValid, this.hasAttribute("native")) {
|
|
6398
6398
|
this.submitNativeForm();
|
|
6399
6399
|
return;
|
|
6400
6400
|
}
|
|
@@ -6407,7 +6407,7 @@ let te = class extends G(x) {
|
|
|
6407
6407
|
a && (c = a.get());
|
|
6408
6408
|
let h = null;
|
|
6409
6409
|
const d = this.getAncestorAttributeValue("dataProvider"), p = this.endPoint || d, g = async () => {
|
|
6410
|
-
var w, S, O, N,
|
|
6410
|
+
var w, S, O, N, B, W, Ot, rr;
|
|
6411
6411
|
const y = { ...o };
|
|
6412
6412
|
if (delete y.needsCaptchaValidation, delete c.needsCaptchaValidation, e)
|
|
6413
6413
|
h = await ((w = this.api) == null ? void 0 : w.submitFormData(
|
|
@@ -6433,13 +6433,13 @@ let te = class extends G(x) {
|
|
|
6433
6433
|
for (const or in y)
|
|
6434
6434
|
ws.append(or, y[or]);
|
|
6435
6435
|
const Mo = "?" + ws.toString();
|
|
6436
|
-
h = await ((
|
|
6436
|
+
h = await ((B = this.api) == null ? void 0 : B.get(p + Mo, c));
|
|
6437
6437
|
break;
|
|
6438
6438
|
default:
|
|
6439
6439
|
h = await ((W = this.api) == null ? void 0 : W.post(p, y, c));
|
|
6440
6440
|
break;
|
|
6441
6441
|
}
|
|
6442
|
-
|
|
6442
|
+
at.hide(), h ? h._sonic_http_response_ && !h._sonic_http_response_.ok && Object.keys(h).length === 1 && (h.messages = [{ content: "Network Error", status: "error" }]) : h = {
|
|
6443
6443
|
messages: [{ content: "Network Error", status: "error" }]
|
|
6444
6444
|
};
|
|
6445
6445
|
const _ = this.getAncestorAttributeValue(
|
|
@@ -6452,7 +6452,7 @@ let te = class extends G(x) {
|
|
|
6452
6452
|
(rr = (Ot = this.api) == null ? void 0 : Ot.lastResult) != null && rr.ok && y[D] && y[f] && this.saveCredentials(
|
|
6453
6453
|
y[D],
|
|
6454
6454
|
y[f]
|
|
6455
|
-
), this.submitResultKey && (h =
|
|
6455
|
+
), this.submitResultKey && (h = st.traverse(
|
|
6456
6456
|
h,
|
|
6457
6457
|
this.submitResultKey.split("."),
|
|
6458
6458
|
!0
|
|
@@ -6474,7 +6474,7 @@ let te = class extends G(x) {
|
|
|
6474
6474
|
if (v) {
|
|
6475
6475
|
v.captchaToken = "request_token";
|
|
6476
6476
|
const y = (_) => {
|
|
6477
|
-
_ != "request_token" ? (g(), v.captchaToken.offAssign(y)) : (
|
|
6477
|
+
_ != "request_token" ? (g(), v.captchaToken.offAssign(y)) : (at.hide(), this.disabled = !1);
|
|
6478
6478
|
};
|
|
6479
6479
|
v.captchaToken.onAssign(y);
|
|
6480
6480
|
} else
|
|
@@ -6557,10 +6557,10 @@ let Te = class extends ds(x) {
|
|
|
6557
6557
|
return this;
|
|
6558
6558
|
}
|
|
6559
6559
|
connectedCallback() {
|
|
6560
|
-
|
|
6560
|
+
it.onChange(this), super.connectedCallback();
|
|
6561
6561
|
}
|
|
6562
6562
|
disconnectedCallback() {
|
|
6563
|
-
|
|
6563
|
+
it.offChange(this), super.disconnectedCallback();
|
|
6564
6564
|
}
|
|
6565
6565
|
set location(r) {
|
|
6566
6566
|
this._location = r, this.requestUpdate();
|
|
@@ -6691,12 +6691,12 @@ let zr = class extends G(x) {
|
|
|
6691
6691
|
}
|
|
6692
6692
|
update() {
|
|
6693
6693
|
if (this.hasAttribute("onAdded")) {
|
|
6694
|
-
|
|
6694
|
+
it.changeFromComponent(this);
|
|
6695
6695
|
return;
|
|
6696
6696
|
}
|
|
6697
6697
|
if (!this.props) return;
|
|
6698
|
-
const r = this.getAttribute("onData").split("."), t =
|
|
6699
|
-
t && !(
|
|
6698
|
+
const r = this.getAttribute("onData").split("."), t = st.traverse(this.props, r);
|
|
6699
|
+
t && !(st.isObject(t) && t) && it.changeFromComponent(this);
|
|
6700
6700
|
}
|
|
6701
6701
|
};
|
|
6702
6702
|
zr = fl([
|
|
@@ -6754,7 +6754,7 @@ let ns = class extends G(ds(x)) {
|
|
|
6754
6754
|
}
|
|
6755
6755
|
render() {
|
|
6756
6756
|
let r = this.state;
|
|
6757
|
-
(!Array.isArray(r) &&
|
|
6757
|
+
(!Array.isArray(r) && st.isObject(r) || r === void 0) && (r = "");
|
|
6758
6758
|
const t = this.handleStates(r);
|
|
6759
6759
|
if (t.length > 0)
|
|
6760
6760
|
return m`${t}`;
|
|
@@ -6934,9 +6934,9 @@ const Cl = {
|
|
|
6934
6934
|
tagName: "sonic-form-layout"
|
|
6935
6935
|
}, Vl = {
|
|
6936
6936
|
tagName: "sonic-form-actions"
|
|
6937
|
-
}, Hl = {
|
|
6938
|
-
tagName: "sonic-password-helper"
|
|
6939
6937
|
}, Bl = {
|
|
6938
|
+
tagName: "sonic-password-helper"
|
|
6939
|
+
}, Hl = {
|
|
6940
6940
|
tagName: "sonic-same-value-helper"
|
|
6941
6941
|
}, ql = {
|
|
6942
6942
|
tagName: "sonic-divider"
|
|
@@ -6958,8 +6958,8 @@ const Cl = {
|
|
|
6958
6958
|
formItemContainer: Rl,
|
|
6959
6959
|
formLayout: Ul,
|
|
6960
6960
|
formActions: Vl,
|
|
6961
|
-
passwordHelper:
|
|
6962
|
-
sameValueHelper:
|
|
6961
|
+
passwordHelper: Bl,
|
|
6962
|
+
sameValueHelper: Hl,
|
|
6963
6963
|
divider: ql
|
|
6964
6964
|
};
|
|
6965
6965
|
class Kl {
|
|
@@ -7313,7 +7313,7 @@ let Rs = class extends oe(x) {
|
|
|
7313
7313
|
if (typeof i == "string") {
|
|
7314
7314
|
const e = i.split("."), o = e.shift();
|
|
7315
7315
|
if (!o) continue;
|
|
7316
|
-
let n =
|
|
7316
|
+
let n = rt.get(o);
|
|
7317
7317
|
n = ps.traverse(n, e);
|
|
7318
7318
|
const a = {
|
|
7319
7319
|
publisher: n,
|
|
@@ -7590,10 +7590,10 @@ let ee = class extends x {
|
|
|
7590
7590
|
return this._location;
|
|
7591
7591
|
}
|
|
7592
7592
|
set location(r) {
|
|
7593
|
-
this._location = r,
|
|
7593
|
+
this._location = r, it.updateComponentActiveState(this);
|
|
7594
7594
|
}
|
|
7595
7595
|
connectedCallback() {
|
|
7596
|
-
this.href && this.href.indexOf("http") != 0 && (
|
|
7596
|
+
this.href && this.href.indexOf("http") != 0 && (it.onChange(this), this.location = document.location.href.replace(document.location.origin, "")), this.addEventListener("keypress", (r) => {
|
|
7597
7597
|
var t, s;
|
|
7598
7598
|
r.key === "Enter" && ((s = (t = this.shadowRoot) == null ? void 0 : t.querySelector("a")) == null || s.click());
|
|
7599
7599
|
}), this.setFocusable(), super.connectedCallback();
|
|
@@ -7602,7 +7602,7 @@ let ee = class extends x {
|
|
|
7602
7602
|
this.href ? this.setAttribute("tabIndex", "0") : this.removeAttribute("tabIndex");
|
|
7603
7603
|
}
|
|
7604
7604
|
disconnectedCallback() {
|
|
7605
|
-
|
|
7605
|
+
it.offChange(this), super.disconnectedCallback();
|
|
7606
7606
|
}
|
|
7607
7607
|
set target(r) {
|
|
7608
7608
|
this._target = r, cc.fixBlankLink(this), this.requestUpdate();
|
|
@@ -7611,7 +7611,7 @@ let ee = class extends x {
|
|
|
7611
7611
|
return this._target;
|
|
7612
7612
|
}
|
|
7613
7613
|
handlePushState(r) {
|
|
7614
|
-
r.preventDefault(),
|
|
7614
|
+
r.preventDefault(), it.changeFromComponent(this);
|
|
7615
7615
|
}
|
|
7616
7616
|
updated(r) {
|
|
7617
7617
|
r.has("href") && this.setFocusable();
|
|
@@ -8232,7 +8232,7 @@ var bc = Object.defineProperty, vc = Object.getOwnPropertyDescriptor, V = (r, t,
|
|
|
8232
8232
|
return i && e && bc(t, s, e), e;
|
|
8233
8233
|
};
|
|
8234
8234
|
const yc = "sonic-input";
|
|
8235
|
-
let
|
|
8235
|
+
let F = class extends Gs(Fe(G(x))) {
|
|
8236
8236
|
constructor() {
|
|
8237
8237
|
super(...arguments), this.readonly = !1, this.inlineContent = !1, this.disableInlineContentFocus = !1, this.showPasswordToggle = !1, this.autoActive = !1, this.active = !1, this.hasDescription = !1, this.hasLabel = !1, this.hasSuffix = !1, this.hasPrefix = !1, this.isPassword = !1;
|
|
8238
8238
|
}
|
|
@@ -8388,7 +8388,7 @@ let j = class extends Gs(Fe(G(x))) {
|
|
|
8388
8388
|
`;
|
|
8389
8389
|
}
|
|
8390
8390
|
};
|
|
8391
|
-
|
|
8391
|
+
F.styles = [
|
|
8392
8392
|
jt,
|
|
8393
8393
|
Gi,
|
|
8394
8394
|
Js,
|
|
@@ -8406,88 +8406,88 @@ j.styles = [
|
|
|
8406
8406
|
];
|
|
8407
8407
|
V([
|
|
8408
8408
|
l({ type: String, reflect: !0 })
|
|
8409
|
-
],
|
|
8409
|
+
], F.prototype, "size", 2);
|
|
8410
8410
|
V([
|
|
8411
8411
|
l({ type: String })
|
|
8412
|
-
],
|
|
8412
|
+
], F.prototype, "inputmode", 2);
|
|
8413
8413
|
V([
|
|
8414
8414
|
l({ type: String })
|
|
8415
|
-
],
|
|
8415
|
+
], F.prototype, "list", 2);
|
|
8416
8416
|
V([
|
|
8417
8417
|
l({ type: String })
|
|
8418
|
-
],
|
|
8418
|
+
], F.prototype, "placeholder", 2);
|
|
8419
8419
|
V([
|
|
8420
8420
|
l({ type: String })
|
|
8421
|
-
],
|
|
8421
|
+
], F.prototype, "pattern", 2);
|
|
8422
8422
|
V([
|
|
8423
8423
|
l({ type: String })
|
|
8424
|
-
],
|
|
8424
|
+
], F.prototype, "min", 2);
|
|
8425
8425
|
V([
|
|
8426
8426
|
l({ type: String })
|
|
8427
|
-
],
|
|
8427
|
+
], F.prototype, "max", 2);
|
|
8428
8428
|
V([
|
|
8429
8429
|
l({ type: Boolean, reflect: !0 })
|
|
8430
|
-
],
|
|
8430
|
+
], F.prototype, "readonly", 2);
|
|
8431
8431
|
V([
|
|
8432
8432
|
l({ type: Number })
|
|
8433
|
-
],
|
|
8433
|
+
], F.prototype, "step", 2);
|
|
8434
8434
|
V([
|
|
8435
8435
|
l({ type: Number })
|
|
8436
|
-
],
|
|
8436
|
+
], F.prototype, "minlength", 2);
|
|
8437
8437
|
V([
|
|
8438
8438
|
l({ type: Number })
|
|
8439
|
-
],
|
|
8439
|
+
], F.prototype, "maxlength", 2);
|
|
8440
8440
|
V([
|
|
8441
8441
|
l({ type: String })
|
|
8442
|
-
],
|
|
8442
|
+
], F.prototype, "src", 2);
|
|
8443
8443
|
V([
|
|
8444
8444
|
l({ type: Boolean, reflect: !0 })
|
|
8445
|
-
],
|
|
8445
|
+
], F.prototype, "inlineContent", 2);
|
|
8446
8446
|
V([
|
|
8447
8447
|
l({ type: Boolean })
|
|
8448
|
-
],
|
|
8448
|
+
], F.prototype, "disableInlineContentFocus", 2);
|
|
8449
8449
|
V([
|
|
8450
8450
|
l({ type: Boolean })
|
|
8451
|
-
],
|
|
8451
|
+
], F.prototype, "showPasswordToggle", 2);
|
|
8452
8452
|
V([
|
|
8453
8453
|
l({ type: Boolean })
|
|
8454
|
-
],
|
|
8454
|
+
], F.prototype, "autoActive", 2);
|
|
8455
8455
|
V([
|
|
8456
8456
|
l({ type: Boolean, reflect: !0 })
|
|
8457
|
-
],
|
|
8457
|
+
], F.prototype, "active", 2);
|
|
8458
8458
|
V([
|
|
8459
8459
|
dt({ slot: "label", flatten: !0 })
|
|
8460
|
-
],
|
|
8460
|
+
], F.prototype, "slotLabelNodes", 2);
|
|
8461
8461
|
V([
|
|
8462
8462
|
dt({ slot: "description", flatten: !0 })
|
|
8463
|
-
],
|
|
8463
|
+
], F.prototype, "slotDescriptionNodes", 2);
|
|
8464
8464
|
V([
|
|
8465
8465
|
dt({ slot: "suffix", flatten: !0 })
|
|
8466
|
-
],
|
|
8466
|
+
], F.prototype, "slotSuffixNodes", 2);
|
|
8467
8467
|
V([
|
|
8468
8468
|
dt({ slot: "prefix", flatten: !0 })
|
|
8469
|
-
],
|
|
8469
|
+
], F.prototype, "slotPrefixNodes", 2);
|
|
8470
8470
|
V([
|
|
8471
8471
|
$e("input")
|
|
8472
|
-
],
|
|
8472
|
+
], F.prototype, "input", 2);
|
|
8473
8473
|
V([
|
|
8474
|
-
|
|
8475
|
-
],
|
|
8474
|
+
L()
|
|
8475
|
+
], F.prototype, "hasDescription", 2);
|
|
8476
8476
|
V([
|
|
8477
|
-
|
|
8478
|
-
],
|
|
8477
|
+
L()
|
|
8478
|
+
], F.prototype, "hasLabel", 2);
|
|
8479
8479
|
V([
|
|
8480
|
-
|
|
8481
|
-
],
|
|
8480
|
+
L()
|
|
8481
|
+
], F.prototype, "hasSuffix", 2);
|
|
8482
8482
|
V([
|
|
8483
|
-
|
|
8484
|
-
],
|
|
8483
|
+
L()
|
|
8484
|
+
], F.prototype, "hasPrefix", 2);
|
|
8485
8485
|
V([
|
|
8486
|
-
|
|
8487
|
-
],
|
|
8488
|
-
|
|
8486
|
+
L()
|
|
8487
|
+
], F.prototype, "isPassword", 2);
|
|
8488
|
+
F = V([
|
|
8489
8489
|
$(yc)
|
|
8490
|
-
],
|
|
8490
|
+
], F);
|
|
8491
8491
|
const Co = P`
|
|
8492
8492
|
/*OMBRE*/
|
|
8493
8493
|
:host([shadow]) .shadowable,
|
|
@@ -8514,7 +8514,7 @@ var _c = Object.defineProperty, wc = Object.getOwnPropertyDescriptor, zt = (r, t
|
|
|
8514
8514
|
return i && e && _c(t, s, e), e;
|
|
8515
8515
|
};
|
|
8516
8516
|
const xc = "sonic-pop";
|
|
8517
|
-
let
|
|
8517
|
+
let ot = class extends x {
|
|
8518
8518
|
constructor() {
|
|
8519
8519
|
super(...arguments), this.open = !1, this.noToggle = !1, this.inline = !1, this.manual = !1, this.shadow = "lg", this.placement = "bottom", this.positioningRuns = !1, this.lastContentX = 0, this.lastContentY = 0, this.resizeObserver = new ResizeObserver(
|
|
8520
8520
|
() => this.computePosition(this.placement)
|
|
@@ -8531,7 +8531,8 @@ let rt = class extends x {
|
|
|
8531
8531
|
r.type == "keydown" && (t.key != "ArrowDown" || this.open) || (this.open || (this.triggerElement = r.target), this.open = !this.open, this.open ? this.show() : this.hide());
|
|
8532
8532
|
}
|
|
8533
8533
|
show() {
|
|
8534
|
-
|
|
8534
|
+
var r, t;
|
|
8535
|
+
this.setMaxZindex(), (t = (r = this.popContent) == null ? void 0 : r.style) == null || t.removeProperty("display"), this.open = !0, this.popContent.setAttribute("tabindex", "0"), this.popBtn && this.popContent && !this.positioningRuns && (this.positioningRuns = !0, this.lastContentX = 0, this.lastContentY = 0, this.runPositioningLoop()), this.dispatchEvent(new CustomEvent("show"));
|
|
8535
8536
|
}
|
|
8536
8537
|
hide() {
|
|
8537
8538
|
this.resetZindexes(), this.open = !1, this.popContent.setAttribute("tabindex", "-1"), this.positioningRuns = !1, this.triggerElement && (this.triggerElement.focus(), this.triggerElement = null), Object.assign(this.popContent.style, {
|
|
@@ -8540,7 +8541,7 @@ let rt = class extends x {
|
|
|
8540
8541
|
}), this.dispatchEvent(new CustomEvent("hide"));
|
|
8541
8542
|
}
|
|
8542
8543
|
setMaxZindex() {
|
|
8543
|
-
|
|
8544
|
+
et.everyAncestors(this, (r) => {
|
|
8544
8545
|
const t = r;
|
|
8545
8546
|
if (!t.className) return !0;
|
|
8546
8547
|
if ([...t.classList].includes("@container")) {
|
|
@@ -8559,15 +8560,15 @@ let rt = class extends x {
|
|
|
8559
8560
|
}
|
|
8560
8561
|
_handleClosePop(r) {
|
|
8561
8562
|
const t = r.composedPath(), s = t[0];
|
|
8562
|
-
|
|
8563
|
+
ot.pops.forEach((i) => {
|
|
8563
8564
|
const e = t.includes(i), o = t.includes(
|
|
8564
8565
|
i.querySelector('[slot="content"]')
|
|
8565
|
-
), n =
|
|
8566
|
+
), n = et.getAncestorAttributeValue(s, "data-on-select") === "keep";
|
|
8566
8567
|
r.type == "pointerdown" && e || r.type == "click" && (e && n || !o) || i.hide();
|
|
8567
8568
|
});
|
|
8568
8569
|
}
|
|
8569
8570
|
connectedCallback() {
|
|
8570
|
-
super.connectedCallback(),
|
|
8571
|
+
super.connectedCallback(), ot.pops.size == 0 && (document.addEventListener("pointerdown", this._handleClosePop), document.addEventListener("click", this._handleClosePop), document.addEventListener("keydown", this._handleKeyDown)), ot.pops.add(this);
|
|
8571
8572
|
}
|
|
8572
8573
|
// /*
|
|
8573
8574
|
// On attends le premier rendu pour observer les changements de taille car popup content n'est pas encore défini sinon
|
|
@@ -8576,13 +8577,13 @@ let rt = class extends x {
|
|
|
8576
8577
|
super.firstUpdated(r), this.resizeObserver.observe(this.popContent);
|
|
8577
8578
|
}
|
|
8578
8579
|
disconnectedCallback() {
|
|
8579
|
-
this.popContent && this.resizeObserver.unobserve(this.popContent), super.disconnectedCallback(),
|
|
8580
|
+
this.popContent && this.resizeObserver.unobserve(this.popContent), super.disconnectedCallback(), ot.pops.delete(this), ot.pops.size == 0 && (document.removeEventListener("pointerdown", this._handleClosePop), document.removeEventListener("click", this._handleClosePop), document.removeEventListener("keydown", this._handleKeyDown));
|
|
8580
8581
|
}
|
|
8581
8582
|
computePosition(r) {
|
|
8582
|
-
var N,
|
|
8583
|
+
var N, B, W, Ot;
|
|
8583
8584
|
const t = r.split(" "), s = t[0];
|
|
8584
8585
|
let i = t[1];
|
|
8585
|
-
const e = 5, o = this.getBoundingClientRect(), n =
|
|
8586
|
+
const e = 5, o = this.getBoundingClientRect(), n = et.getScrollableAncestor(
|
|
8586
8587
|
this.popContent
|
|
8587
8588
|
), a = n == null ? void 0 : n.getBoundingClientRect(), c = Math.max(0, (a == null ? void 0 : a.left) || 0) + e, h = Math.max(0, (a == null ? void 0 : a.top) || 0) + e, d = Math.min(
|
|
8588
8589
|
window.innerWidth,
|
|
@@ -8610,7 +8611,7 @@ let rt = class extends x {
|
|
|
8610
8611
|
this.lastContentX += b - _.x, this.lastContentY += y - _.y, Object.assign(this.popContent.style, {
|
|
8611
8612
|
left: `${this.lastContentX}px`,
|
|
8612
8613
|
top: `${this.lastContentY}px`
|
|
8613
|
-
}), _ = (
|
|
8614
|
+
}), _ = (B = this.popContent) == null ? void 0 : B.getBoundingClientRect(), _.x < c && s == "left" && (b = u), _.y < h && s == "top" && (y = w), _.x + _.width > d && s == "right" && (b = f), _.y + _.height > p && s == "bottom" && (y = D), this.lastContentX += b - _.x, this.lastContentY += y - _.y, Object.assign(this.popContent.style, {
|
|
8614
8615
|
left: `${this.lastContentX}px`,
|
|
8615
8616
|
top: `${this.lastContentY}px`
|
|
8616
8617
|
}), _ = (W = this.popContent) == null ? void 0 : W.getBoundingClientRect(), _.x < c && (this.lastContentX += c - _.x), _.y < h && (this.lastContentY += h - _.y), Object.assign(this.popContent.style, {
|
|
@@ -8641,8 +8642,8 @@ let rt = class extends x {
|
|
|
8641
8642
|
`;
|
|
8642
8643
|
}
|
|
8643
8644
|
};
|
|
8644
|
-
|
|
8645
|
-
|
|
8645
|
+
ot.pops = /* @__PURE__ */ new Set();
|
|
8646
|
+
ot.styles = [
|
|
8646
8647
|
P`
|
|
8647
8648
|
:host {
|
|
8648
8649
|
display: inline-block;
|
|
@@ -8679,42 +8680,42 @@ rt.styles = [
|
|
|
8679
8680
|
Co
|
|
8680
8681
|
];
|
|
8681
8682
|
zt([
|
|
8682
|
-
|
|
8683
|
-
],
|
|
8683
|
+
L()
|
|
8684
|
+
], ot.prototype, "open", 2);
|
|
8684
8685
|
zt([
|
|
8685
8686
|
$e("slot:not([name=content])")
|
|
8686
|
-
],
|
|
8687
|
+
], ot.prototype, "popBtn", 2);
|
|
8687
8688
|
zt([
|
|
8688
8689
|
$e("slot[name=content]")
|
|
8689
|
-
],
|
|
8690
|
+
], ot.prototype, "popContent", 2);
|
|
8690
8691
|
zt([
|
|
8691
8692
|
l({ type: Boolean })
|
|
8692
|
-
],
|
|
8693
|
+
], ot.prototype, "noToggle", 2);
|
|
8693
8694
|
zt([
|
|
8694
8695
|
l({ type: Boolean, reflect: !0 })
|
|
8695
|
-
],
|
|
8696
|
+
], ot.prototype, "inline", 2);
|
|
8696
8697
|
zt([
|
|
8697
8698
|
l({ type: Boolean })
|
|
8698
|
-
],
|
|
8699
|
+
], ot.prototype, "manual", 2);
|
|
8699
8700
|
zt([
|
|
8700
8701
|
l({ type: String, reflect: !0 })
|
|
8701
|
-
],
|
|
8702
|
+
], ot.prototype, "shadow", 2);
|
|
8702
8703
|
zt([
|
|
8703
8704
|
l({ type: String })
|
|
8704
|
-
],
|
|
8705
|
+
], ot.prototype, "placement", 2);
|
|
8705
8706
|
zt([
|
|
8706
|
-
|
|
8707
|
-
],
|
|
8708
|
-
|
|
8707
|
+
L()
|
|
8708
|
+
], ot.prototype, "triggerElement", 2);
|
|
8709
|
+
ot = zt([
|
|
8709
8710
|
$(xc)
|
|
8710
|
-
],
|
|
8711
|
+
], ot);
|
|
8711
8712
|
var $c = Object.defineProperty, Pc = Object.getOwnPropertyDescriptor, Ac = (r, t, s, i) => {
|
|
8712
8713
|
for (var e = i > 1 ? void 0 : i ? Pc(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
8713
8714
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
8714
8715
|
return i && e && $c(t, s, e), e;
|
|
8715
8716
|
};
|
|
8716
8717
|
const Cc = "sonic-menu-item";
|
|
8717
|
-
let Vr = class extends
|
|
8718
|
+
let Vr = class extends j {
|
|
8718
8719
|
constructor() {
|
|
8719
8720
|
super();
|
|
8720
8721
|
}
|
|
@@ -8766,7 +8767,7 @@ var Sc = Object.defineProperty, Oc = Object.getOwnPropertyDescriptor, mt = (r, t
|
|
|
8766
8767
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
8767
8768
|
return i && e && Sc(t, s, e), e;
|
|
8768
8769
|
};
|
|
8769
|
-
let
|
|
8770
|
+
let lt = class extends Ki(
|
|
8770
8771
|
_o(yo(oe(x)))
|
|
8771
8772
|
) {
|
|
8772
8773
|
constructor() {
|
|
@@ -8823,18 +8824,18 @@ let at = class extends Ki(
|
|
|
8823
8824
|
super.connectedCallback();
|
|
8824
8825
|
const r = this.searchParameter || this.name, t = this.getAncestorAttributeValue("formDataProvider"), s = t + "__" + this.name + "__autocomplete";
|
|
8825
8826
|
this.initSearchDataProvider = `${s}_init_search__`, this.initQueueDataProvider = `${s}_init_queue__`, this.searchDataProvider = `${s}_search__`, this.queueDataProvider = `${s}_queue__`;
|
|
8826
|
-
const i =
|
|
8827
|
+
const i = rt.get;
|
|
8827
8828
|
this.searchPublisher = i(this.searchDataProvider)[r], this.formValuePublisher = pt(
|
|
8828
8829
|
i(t),
|
|
8829
8830
|
this.name
|
|
8830
8831
|
), this.countPublisher = i(this.queueDataProvider).resultCount, this.initCountPublisher = i(
|
|
8831
8832
|
this.initQueueDataProvider
|
|
8832
|
-
).resultCount, this.value && (
|
|
8833
|
+
).resultCount, this.value && (rt.get(this.initSearchDataProvider)[this.name] = this.value), (e = this.initCountPublisher) == null || e.onAssign(this.initSearchParameter), (o = this.formValuePublisher) == null || o.onAssign(this.updateSearchParameter), (n = this.countPublisher) == null || n.onAssign(this.updateActiveSelection), (a = this.searchPublisher) == null || a.onAssign(this.updatePopContentVisibility);
|
|
8833
8834
|
}
|
|
8834
8835
|
disconnectedCallback() {
|
|
8835
8836
|
var t, s, i, e;
|
|
8836
8837
|
super.disconnectedCallback(), (t = this.initCountPublisher) == null || t.offAssign(this.initSearchParameter), (s = this.formValuePublisher) == null || s.offAssign(this.updateSearchParameter), (i = this.countPublisher) == null || i.offAssign(this.updateActiveSelection);
|
|
8837
|
-
const r =
|
|
8838
|
+
const r = rt.get;
|
|
8838
8839
|
r(this.initSearchDataProvider).delete(), r(this.initQueueDataProvider).delete(), r(this.searchDataProvider).delete(), r(this.queueDataProvider).delete(), (e = this.searchPublisher) == null || e.offAssign(this.updatePopContentVisibility);
|
|
8839
8840
|
}
|
|
8840
8841
|
/**
|
|
@@ -8845,11 +8846,11 @@ let at = class extends Ki(
|
|
|
8845
8846
|
* @return bool|undefined True if item found, false otherwise, undefined if result is not a list
|
|
8846
8847
|
*/
|
|
8847
8848
|
queryQueueListItem(r, t, s) {
|
|
8848
|
-
const i =
|
|
8849
|
+
const i = rt.get(r);
|
|
8849
8850
|
let e, o = i.get();
|
|
8850
8851
|
if (!o || !Array.isArray(o) || !o.length) return !1;
|
|
8851
8852
|
for (const n of o) {
|
|
8852
|
-
let a =
|
|
8853
|
+
let a = rt.get(n.dataProvider).get();
|
|
8853
8854
|
if (Array.isArray(a) && (e = a.find(t), e))
|
|
8854
8855
|
break;
|
|
8855
8856
|
}
|
|
@@ -8941,7 +8942,7 @@ let at = class extends Ki(
|
|
|
8941
8942
|
`;
|
|
8942
8943
|
}
|
|
8943
8944
|
};
|
|
8944
|
-
|
|
8945
|
+
lt.styles = [
|
|
8945
8946
|
fs,
|
|
8946
8947
|
P`
|
|
8947
8948
|
:host {
|
|
@@ -8968,49 +8969,49 @@ at.styles = [
|
|
|
8968
8969
|
];
|
|
8969
8970
|
mt([
|
|
8970
8971
|
l({ type: String })
|
|
8971
|
-
],
|
|
8972
|
+
], lt.prototype, "size", 2);
|
|
8972
8973
|
mt([
|
|
8973
8974
|
l({ type: String })
|
|
8974
|
-
],
|
|
8975
|
+
], lt.prototype, "placeholder", 2);
|
|
8975
8976
|
mt([
|
|
8976
8977
|
l()
|
|
8977
|
-
],
|
|
8978
|
+
], lt.prototype, "filteredFields", 2);
|
|
8978
8979
|
mt([
|
|
8979
8980
|
l({ type: Boolean, reflect: !0 })
|
|
8980
|
-
],
|
|
8981
|
+
], lt.prototype, "readonly", 2);
|
|
8981
8982
|
mt([
|
|
8982
8983
|
l({ type: String })
|
|
8983
|
-
],
|
|
8984
|
+
], lt.prototype, "dataProviderExpression", 2);
|
|
8984
8985
|
mt([
|
|
8985
8986
|
l({ type: Number })
|
|
8986
|
-
],
|
|
8987
|
+
], lt.prototype, "minSearchLength", 2);
|
|
8987
8988
|
mt([
|
|
8988
8989
|
l({ type: Boolean })
|
|
8989
|
-
],
|
|
8990
|
+
], lt.prototype, "select", 2);
|
|
8990
8991
|
mt([
|
|
8991
8992
|
l({ type: String })
|
|
8992
|
-
],
|
|
8993
|
+
], lt.prototype, "key", 2);
|
|
8993
8994
|
mt([
|
|
8994
8995
|
l({ type: String })
|
|
8995
|
-
],
|
|
8996
|
+
], lt.prototype, "searchParameter", 2);
|
|
8996
8997
|
mt([
|
|
8997
8998
|
l({ type: String })
|
|
8998
|
-
],
|
|
8999
|
+
], lt.prototype, "propertyName", 2);
|
|
8999
9000
|
mt([
|
|
9000
9001
|
dt({ slot: "prefix", flatten: !0 })
|
|
9001
|
-
],
|
|
9002
|
+
], lt.prototype, "slotInputPrefixNodes", 2);
|
|
9002
9003
|
mt([
|
|
9003
|
-
|
|
9004
|
-
],
|
|
9004
|
+
L()
|
|
9005
|
+
], lt.prototype, "hasInputPrefix", 2);
|
|
9005
9006
|
mt([
|
|
9006
|
-
|
|
9007
|
-
],
|
|
9007
|
+
L()
|
|
9008
|
+
], lt.prototype, "isPopVisible", 2);
|
|
9008
9009
|
mt([
|
|
9009
|
-
|
|
9010
|
-
],
|
|
9011
|
-
|
|
9010
|
+
L()
|
|
9011
|
+
], lt.prototype, "lastValidSearch", 2);
|
|
9012
|
+
lt = mt([
|
|
9012
9013
|
$("sonic-input-autocomplete")
|
|
9013
|
-
],
|
|
9014
|
+
], lt);
|
|
9014
9015
|
var Dc = Object.defineProperty, kc = Object.getOwnPropertyDescriptor, gt = (r, t, s, i) => {
|
|
9015
9016
|
for (var e = i > 1 ? void 0 : i ? kc(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
9016
9017
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
@@ -9024,10 +9025,10 @@ let ct = class extends oe(x) {
|
|
|
9024
9025
|
connectedCallback() {
|
|
9025
9026
|
super.connectedCallback(), this.name && (this.checkValue = (t) => {
|
|
9026
9027
|
t ? (this.hasNoChar = t.length == 0, this.hasEnoughChars = t.length > this.minChars) : (this.hasNoChar = !0, this.hasEnoughChars = !1), this.hasMinuscule = /[a-z]/.test(t), this.hasMajuscule = /[A-Z]/.test(t), this.hasNumber = /[0-9]/.test(t), this.hasSpecialChar = /[!"#$%&'()*+,\-./:;<=>?@[\]^_`{|}~]/.test(t);
|
|
9027
|
-
},
|
|
9028
|
+
}, rt.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue));
|
|
9028
9029
|
}
|
|
9029
9030
|
disconnectedCallback() {
|
|
9030
|
-
this.checkValue && this.name &&
|
|
9031
|
+
this.checkValue && this.name && rt.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue), super.disconnectedCallback();
|
|
9031
9032
|
}
|
|
9032
9033
|
getIcon(t) {
|
|
9033
9034
|
return t ? m`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>` : m`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`;
|
|
@@ -9064,22 +9065,22 @@ gt([
|
|
|
9064
9065
|
l()
|
|
9065
9066
|
], ct.prototype, "minChars", 2);
|
|
9066
9067
|
gt([
|
|
9067
|
-
|
|
9068
|
+
L()
|
|
9068
9069
|
], ct.prototype, "hasNoChar", 2);
|
|
9069
9070
|
gt([
|
|
9070
|
-
|
|
9071
|
+
L()
|
|
9071
9072
|
], ct.prototype, "hasEnoughChars", 2);
|
|
9072
9073
|
gt([
|
|
9073
|
-
|
|
9074
|
+
L()
|
|
9074
9075
|
], ct.prototype, "hasMinuscule", 2);
|
|
9075
9076
|
gt([
|
|
9076
|
-
|
|
9077
|
+
L()
|
|
9077
9078
|
], ct.prototype, "hasMajuscule", 2);
|
|
9078
9079
|
gt([
|
|
9079
|
-
|
|
9080
|
+
L()
|
|
9080
9081
|
], ct.prototype, "hasNumber", 2);
|
|
9081
9082
|
gt([
|
|
9082
|
-
|
|
9083
|
+
L()
|
|
9083
9084
|
], ct.prototype, "hasSpecialChar", 2);
|
|
9084
9085
|
gt([
|
|
9085
9086
|
l()
|
|
@@ -9114,7 +9115,7 @@ let ie = class extends oe(x) {
|
|
|
9114
9115
|
}
|
|
9115
9116
|
connectedCallback() {
|
|
9116
9117
|
super.connectedCallback();
|
|
9117
|
-
const r =
|
|
9118
|
+
const r = rt.get(
|
|
9118
9119
|
this.getAncestorAttributeValue("formDataProvider")
|
|
9119
9120
|
);
|
|
9120
9121
|
this.name && this.sameValueAs && (this.checkValue = (t) => {
|
|
@@ -9127,7 +9128,7 @@ let ie = class extends oe(x) {
|
|
|
9127
9128
|
}
|
|
9128
9129
|
disconnectedCallback() {
|
|
9129
9130
|
if (this.checkValue && this.name && this.sameValueAs) {
|
|
9130
|
-
const r =
|
|
9131
|
+
const r = rt.get(
|
|
9131
9132
|
this.getAncestorAttributeValue("formDataProvider")
|
|
9132
9133
|
);
|
|
9133
9134
|
pt(r, this.name).offAssign(
|
|
@@ -9160,10 +9161,10 @@ Ce([
|
|
|
9160
9161
|
l()
|
|
9161
9162
|
], ie.prototype, "descriptionWhenNotEqual", 2);
|
|
9162
9163
|
Ce([
|
|
9163
|
-
|
|
9164
|
+
L()
|
|
9164
9165
|
], ie.prototype, "areEqual", 2);
|
|
9165
9166
|
Ce([
|
|
9166
|
-
|
|
9167
|
+
L()
|
|
9167
9168
|
], ie.prototype, "hasNoChar", 2);
|
|
9168
9169
|
ie = Ce([
|
|
9169
9170
|
$(Tc)
|
|
@@ -9174,7 +9175,7 @@ var Mc = Object.defineProperty, Ic = Object.getOwnPropertyDescriptor, Zt = (r, t
|
|
|
9174
9175
|
return i && e && Mc(t, s, e), e;
|
|
9175
9176
|
};
|
|
9176
9177
|
const jc = "sonic-checkbox";
|
|
9177
|
-
let ut = class extends
|
|
9178
|
+
let ut = class extends Hi(
|
|
9178
9179
|
Gs(Fe(G(x)))
|
|
9179
9180
|
) {
|
|
9180
9181
|
constructor() {
|
|
@@ -9274,7 +9275,7 @@ ut.styles = [
|
|
|
9274
9275
|
var(--sc-checkbox-border-color);
|
|
9275
9276
|
}
|
|
9276
9277
|
|
|
9277
|
-
input:focus,
|
|
9278
|
+
input:focus-visible,
|
|
9278
9279
|
:host(:not([disabled])) input:active {
|
|
9279
9280
|
box-shadow: 0 0 0 2px var(--sc-primary, var(--sc-base-content, #000));
|
|
9280
9281
|
}
|
|
@@ -9415,8 +9416,8 @@ wi.styles = [
|
|
|
9415
9416
|
wi = Rc([
|
|
9416
9417
|
$(Uc)
|
|
9417
9418
|
], wi);
|
|
9418
|
-
var Vc = Object.defineProperty,
|
|
9419
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
9419
|
+
var Vc = Object.defineProperty, Bc = Object.getOwnPropertyDescriptor, Hc = (r, t, s, i) => {
|
|
9420
|
+
for (var e = i > 1 ? void 0 : i ? Bc(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
9420
9421
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
9421
9422
|
return i && e && Vc(t, s, e), e;
|
|
9422
9423
|
};
|
|
@@ -9495,10 +9496,10 @@ xi.styles = [
|
|
|
9495
9496
|
}
|
|
9496
9497
|
`
|
|
9497
9498
|
];
|
|
9498
|
-
xi =
|
|
9499
|
+
xi = Hc([
|
|
9499
9500
|
$(qc)
|
|
9500
9501
|
], xi);
|
|
9501
|
-
var Wc = Object.defineProperty, Kc = Object.getOwnPropertyDescriptor,
|
|
9502
|
+
var Wc = Object.defineProperty, Kc = Object.getOwnPropertyDescriptor, J = (r, t, s, i) => {
|
|
9502
9503
|
for (var e = i > 1 ? void 0 : i ? Kc(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
9503
9504
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
9504
9505
|
return i && e && Wc(t, s, e), e;
|
|
@@ -9698,64 +9699,64 @@ Y.styles = [
|
|
|
9698
9699
|
}
|
|
9699
9700
|
`
|
|
9700
9701
|
];
|
|
9701
|
-
|
|
9702
|
+
J([
|
|
9702
9703
|
l({ type: String })
|
|
9703
9704
|
], Y.prototype, "valueKey", 2);
|
|
9704
|
-
|
|
9705
|
+
J([
|
|
9705
9706
|
l({ type: String })
|
|
9706
9707
|
], Y.prototype, "wordingKey", 2);
|
|
9707
|
-
|
|
9708
|
+
J([
|
|
9708
9709
|
l({ type: Boolean })
|
|
9709
9710
|
], Y.prototype, "multiple", 2);
|
|
9710
|
-
|
|
9711
|
+
J([
|
|
9711
9712
|
l({ type: String, reflect: !0 })
|
|
9712
9713
|
], Y.prototype, "size", 2);
|
|
9713
|
-
|
|
9714
|
+
J([
|
|
9714
9715
|
l({ type: Number })
|
|
9715
9716
|
], Y.prototype, "selectSize", 2);
|
|
9716
|
-
|
|
9717
|
+
J([
|
|
9717
9718
|
l({ type: String, reflect: !0 })
|
|
9718
9719
|
], Y.prototype, "status", 2);
|
|
9719
|
-
|
|
9720
|
+
J([
|
|
9720
9721
|
l({ type: Array })
|
|
9721
9722
|
], Y.prototype, "options", 1);
|
|
9722
|
-
|
|
9723
|
+
J([
|
|
9723
9724
|
l({ reflect: !0 })
|
|
9724
9725
|
], Y.prototype, "value", 1);
|
|
9725
|
-
|
|
9726
|
+
J([
|
|
9726
9727
|
l({ type: Boolean })
|
|
9727
9728
|
], Y.prototype, "forceAutoFill", 2);
|
|
9728
|
-
|
|
9729
|
+
J([
|
|
9729
9730
|
l()
|
|
9730
9731
|
], Y.prototype, "description", 1);
|
|
9731
|
-
|
|
9732
|
+
J([
|
|
9732
9733
|
l()
|
|
9733
9734
|
], Y.prototype, "label", 1);
|
|
9734
|
-
|
|
9735
|
+
J([
|
|
9735
9736
|
dt({ slot: "label", flatten: !0 })
|
|
9736
9737
|
], Y.prototype, "slotLabelNodes", 2);
|
|
9737
|
-
|
|
9738
|
+
J([
|
|
9738
9739
|
dt({ slot: "description", flatten: !0 })
|
|
9739
9740
|
], Y.prototype, "slotDescriptionNodes", 2);
|
|
9740
|
-
|
|
9741
|
+
J([
|
|
9741
9742
|
dt({ slot: "suffix", flatten: !0 })
|
|
9742
9743
|
], Y.prototype, "slotSuffixNodes", 2);
|
|
9743
|
-
|
|
9744
|
+
J([
|
|
9744
9745
|
dt({ slot: "prefix", flatten: !0 })
|
|
9745
9746
|
], Y.prototype, "slotPrefixNodes", 2);
|
|
9746
|
-
|
|
9747
|
-
|
|
9747
|
+
J([
|
|
9748
|
+
L()
|
|
9748
9749
|
], Y.prototype, "hasDescription", 2);
|
|
9749
|
-
|
|
9750
|
-
|
|
9750
|
+
J([
|
|
9751
|
+
L()
|
|
9751
9752
|
], Y.prototype, "hasLabel", 2);
|
|
9752
|
-
|
|
9753
|
-
|
|
9753
|
+
J([
|
|
9754
|
+
L()
|
|
9754
9755
|
], Y.prototype, "hasSuffix", 2);
|
|
9755
|
-
|
|
9756
|
-
|
|
9756
|
+
J([
|
|
9757
|
+
L()
|
|
9757
9758
|
], Y.prototype, "hasPrefix", 2);
|
|
9758
|
-
Y =
|
|
9759
|
+
Y = J([
|
|
9759
9760
|
$(Yc)
|
|
9760
9761
|
], Y);
|
|
9761
9762
|
var Zc = Object.defineProperty, Xc = Object.getOwnPropertyDescriptor, vt = (r, t, s, i) => {
|
|
@@ -9888,10 +9889,10 @@ vt([
|
|
|
9888
9889
|
dt({ slot: "description", flatten: !0 })
|
|
9889
9890
|
], ht.prototype, "slotDescriptionNodes", 2);
|
|
9890
9891
|
vt([
|
|
9891
|
-
|
|
9892
|
+
L()
|
|
9892
9893
|
], ht.prototype, "hasDescription", 2);
|
|
9893
9894
|
vt([
|
|
9894
|
-
|
|
9895
|
+
L()
|
|
9895
9896
|
], ht.prototype, "hasLabel", 2);
|
|
9896
9897
|
ht = vt([
|
|
9897
9898
|
$(Gc)
|
|
@@ -10353,10 +10354,10 @@ ne([
|
|
|
10353
10354
|
dt({ slot: "description", flatten: !0 })
|
|
10354
10355
|
], Mt.prototype, "slotDescriptionNodes", 2);
|
|
10355
10356
|
ne([
|
|
10356
|
-
|
|
10357
|
+
L()
|
|
10357
10358
|
], Mt.prototype, "hasDescription", 2);
|
|
10358
10359
|
ne([
|
|
10359
|
-
|
|
10360
|
+
L()
|
|
10360
10361
|
], Mt.prototype, "hasLabel", 2);
|
|
10361
10362
|
Mt = ne([
|
|
10362
10363
|
$(mh)
|
|
@@ -10758,7 +10759,7 @@ wt([
|
|
|
10758
10759
|
Pe({ slot: "more", selector: "*" })
|
|
10759
10760
|
], ft.prototype, "moreElements", 2);
|
|
10760
10761
|
wt([
|
|
10761
|
-
|
|
10762
|
+
L()
|
|
10762
10763
|
], ft.prototype, "hasMoreElements", 2);
|
|
10763
10764
|
ft = wt([
|
|
10764
10765
|
$(wh)
|
|
@@ -10808,17 +10809,17 @@ var Ah = Object.defineProperty, Ch = Object.getOwnPropertyDescriptor, Do = (r, t
|
|
|
10808
10809
|
return i && e && Ah(t, s, e), e;
|
|
10809
10810
|
};
|
|
10810
10811
|
const Sh = "sonic-modal-close";
|
|
10811
|
-
let
|
|
10812
|
+
let Bs = class extends x {
|
|
10812
10813
|
render() {
|
|
10813
10814
|
return m`<sonic-button reset=${A(this.reset)} shape="circle" @click=${this.handleClick}
|
|
10814
10815
|
><sonic-icon name="cancel" size="lg"></sonic-icon
|
|
10815
10816
|
></sonic-button>`;
|
|
10816
10817
|
}
|
|
10817
10818
|
handleClick() {
|
|
10818
|
-
|
|
10819
|
+
et.getClosestElement(this, "sonic-modal").hide();
|
|
10819
10820
|
}
|
|
10820
10821
|
};
|
|
10821
|
-
|
|
10822
|
+
Bs.styles = [
|
|
10822
10823
|
P`
|
|
10823
10824
|
:host {
|
|
10824
10825
|
position: sticky;
|
|
@@ -10834,10 +10835,10 @@ Hs.styles = [
|
|
|
10834
10835
|
];
|
|
10835
10836
|
Do([
|
|
10836
10837
|
l()
|
|
10837
|
-
],
|
|
10838
|
-
|
|
10838
|
+
], Bs.prototype, "reset", 2);
|
|
10839
|
+
Bs = Do([
|
|
10839
10840
|
$(Sh)
|
|
10840
|
-
],
|
|
10841
|
+
], Bs);
|
|
10841
10842
|
var Oh = Object.defineProperty, Dh = Object.getOwnPropertyDescriptor, kh = (r, t, s, i) => {
|
|
10842
10843
|
for (var e = i > 1 ? void 0 : i ? Dh(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
10843
10844
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
@@ -10920,25 +10921,25 @@ Ci.styles = [
|
|
|
10920
10921
|
Ci = Fh([
|
|
10921
10922
|
$(zh)
|
|
10922
10923
|
], Ci);
|
|
10923
|
-
var Rh = Object.defineProperty, Uh = Object.getOwnPropertyDescriptor,
|
|
10924
|
+
var Rh = Object.defineProperty, Uh = Object.getOwnPropertyDescriptor, Q = (r, t, s, i) => {
|
|
10924
10925
|
for (var e = i > 1 ? void 0 : i ? Uh(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
10925
10926
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
10926
10927
|
return i && e && Rh(t, s, e), e;
|
|
10927
10928
|
};
|
|
10928
10929
|
const ko = "sonic-modal";
|
|
10929
|
-
let
|
|
10930
|
+
let I = class extends G(x) {
|
|
10930
10931
|
constructor() {
|
|
10931
|
-
super(...arguments), this.forceAction = !1, this.removeOnHide = !1, this.removeHashOnHide = !1, this.align = "left", this.padding = "var(--sc-modal-py) var(--sc-modal-px)", this.maxWidth = "var(--sc-modal-max-w) ", this.maxHeight = "var(--sc-modal-max-h) ", this.width = "100%", this.height = "auto", this.zIndex = "var(--sc-modal-z-index)", this.fullScreen = !1, this.visible = !1;
|
|
10932
|
+
super(...arguments), this.forceAction = !1, this.removeOnHide = !1, this.removeHashOnHide = !1, this.align = "left", this.padding = "var(--sc-modal-py) var(--sc-modal-px)", this.maxWidth = "var(--sc-modal-max-w) ", this.maxHeight = "var(--sc-modal-max-h) ", this.width = "100%", this.height = "auto", this.zIndex = "var(--sc-modal-z-index)", this.fullScreen = !1, this.visible = !1, this.closeOnLocationChange = !1, this.location = "";
|
|
10932
10933
|
}
|
|
10933
10934
|
static create(r) {
|
|
10934
10935
|
const t = document.createElement(ko);
|
|
10935
|
-
return t.options = r, r.removeHashOnHide === !0 && t.setAttribute("removeHashOnHide", "true"), r.removeOnHide === !0 && t.setAttribute("removeOnHide", "true"), r.maxWidth && (t.maxWidth = r == null ? void 0 : r.maxWidth), r.width && (t.width = r == null ? void 0 : r.width), r.maxHeight && (t.maxHeight = r == null ? void 0 : r.maxHeight), r.height && (t.height = r == null ? void 0 : r.height), r.forceAction && (t.forceAction = !0), r.fullScreen && (t.fullScreen = r == null ? void 0 : r.fullScreen), r.effect && (t.effect = r == null ? void 0 : r.effect), r.paddingX && t.style.setProperty("--sc-modal-px", r == null ? void 0 : r.paddingX), r.paddingY && t.style.setProperty("--sc-modal-py", r == null ? void 0 : r.paddingY), r.zIndex && t.style.setProperty("--sc-modal-z-index", r == null ? void 0 : r.zIndex), yt.getPopContainer().appendChild(t), t.show(), t;
|
|
10936
|
+
return t.options = r, r.removeHashOnHide === !0 && t.setAttribute("removeHashOnHide", "true"), r.removeOnHide === !0 && t.setAttribute("removeOnHide", "true"), r.closeOnLocationChange === !0 && t.setAttribute("closeOnLocationChange", "true"), r.maxWidth && (t.maxWidth = r == null ? void 0 : r.maxWidth), r.width && (t.width = r == null ? void 0 : r.width), r.maxHeight && (t.maxHeight = r == null ? void 0 : r.maxHeight), r.height && (t.height = r == null ? void 0 : r.height), r.forceAction && (t.forceAction = !0), r.fullScreen && (t.fullScreen = r == null ? void 0 : r.fullScreen), r.effect && (t.effect = r == null ? void 0 : r.effect), r.paddingX && t.style.setProperty("--sc-modal-px", r == null ? void 0 : r.paddingX), r.paddingY && t.style.setProperty("--sc-modal-py", r == null ? void 0 : r.paddingY), r.zIndex && t.style.setProperty("--sc-modal-z-index", r == null ? void 0 : r.zIndex), yt.getPopContainer().appendChild(t), t.show(), t;
|
|
10936
10937
|
}
|
|
10937
10938
|
connectedCallback() {
|
|
10938
|
-
|
|
10939
|
+
I.modals.push(this), it.onChange(this), super.connectedCallback(), this.handleFullsceen();
|
|
10939
10940
|
}
|
|
10940
10941
|
disconnectedCallback() {
|
|
10941
|
-
|
|
10942
|
+
it.offChange(this), I.modals.splice(I.modals.indexOf(this), 1), super.disconnectedCallback();
|
|
10942
10943
|
}
|
|
10943
10944
|
updated() {
|
|
10944
10945
|
const r = this;
|
|
@@ -10953,6 +10954,12 @@ let F = class extends G(x) {
|
|
|
10953
10954
|
});
|
|
10954
10955
|
}
|
|
10955
10956
|
willUpdate(r) {
|
|
10957
|
+
if (this.closeOnLocationChange && r.has("location")) {
|
|
10958
|
+
const t = r.get("location");
|
|
10959
|
+
t && this.location && this.location !== t && setTimeout(() => {
|
|
10960
|
+
this.hide();
|
|
10961
|
+
}, 50);
|
|
10962
|
+
}
|
|
10956
10963
|
r.has("fullScreen") && this.handleFullsceen(), r.has("effect") && (this.effect == "fade" ? this.animation = {
|
|
10957
10964
|
keyframeOptions: {
|
|
10958
10965
|
duration: 400
|
|
@@ -11059,7 +11066,7 @@ let F = class extends G(x) {
|
|
|
11059
11066
|
hide() {
|
|
11060
11067
|
return new Promise((r) => {
|
|
11061
11068
|
var t;
|
|
11062
|
-
this.visible = !1, (t = this.modalElement) == null || t.setAttribute("tabindex", "-1"), this.dispatchEvent(new CustomEvent("hide")), this.hasAttribute("resetDataProviderOnHide") &&
|
|
11069
|
+
this.visible = !1, (t = this.modalElement) == null || t.setAttribute("tabindex", "-1"), this.dispatchEvent(new CustomEvent("hide")), this.hasAttribute("resetDataProviderOnHide") && rt.get(this.getAttribute("resetDataProviderOnHide")).set(
|
|
11063
11070
|
{}
|
|
11064
11071
|
), setTimeout(() => {
|
|
11065
11072
|
this.removeHashOnHide && window.history.replaceState({}, "", window.location.pathname), this.removeOnHide && this.remove(), this.dispatchEvent(new CustomEvent("hidden")), r();
|
|
@@ -11070,12 +11077,12 @@ let F = class extends G(x) {
|
|
|
11070
11077
|
this.hide(), this.remove();
|
|
11071
11078
|
}
|
|
11072
11079
|
static disposeAll() {
|
|
11073
|
-
|
|
11080
|
+
I.modals.forEach((r) => {
|
|
11074
11081
|
r.dispose();
|
|
11075
11082
|
});
|
|
11076
11083
|
}
|
|
11077
11084
|
handleEscape(r) {
|
|
11078
|
-
r.key === "Escape" &&
|
|
11085
|
+
r.key === "Escape" && I.modals.forEach((t) => {
|
|
11079
11086
|
t.forceAction || t.hide();
|
|
11080
11087
|
});
|
|
11081
11088
|
}
|
|
@@ -11083,7 +11090,7 @@ let F = class extends G(x) {
|
|
|
11083
11090
|
this.fullScreen && (this.width = "100%", this.height = "100%", this.maxWidth = "none", this.maxHeight = "none");
|
|
11084
11091
|
}
|
|
11085
11092
|
};
|
|
11086
|
-
|
|
11093
|
+
I.styles = [
|
|
11087
11094
|
fs,
|
|
11088
11095
|
P`
|
|
11089
11096
|
:host {
|
|
@@ -11221,71 +11228,77 @@ F.styles = [
|
|
|
11221
11228
|
}
|
|
11222
11229
|
`
|
|
11223
11230
|
];
|
|
11224
|
-
|
|
11225
|
-
|
|
11231
|
+
I.modals = [];
|
|
11232
|
+
Q([
|
|
11226
11233
|
l({ type: Boolean })
|
|
11227
|
-
],
|
|
11228
|
-
|
|
11234
|
+
], I.prototype, "forceAction", 2);
|
|
11235
|
+
Q([
|
|
11229
11236
|
l({ type: Boolean })
|
|
11230
|
-
],
|
|
11231
|
-
|
|
11237
|
+
], I.prototype, "removeOnHide", 2);
|
|
11238
|
+
Q([
|
|
11232
11239
|
l({ type: Boolean })
|
|
11233
|
-
],
|
|
11234
|
-
|
|
11240
|
+
], I.prototype, "removeHashOnHide", 2);
|
|
11241
|
+
Q([
|
|
11235
11242
|
l({ type: String, reflect: !0 })
|
|
11236
|
-
],
|
|
11237
|
-
|
|
11243
|
+
], I.prototype, "align", 2);
|
|
11244
|
+
Q([
|
|
11238
11245
|
l({ type: String })
|
|
11239
|
-
],
|
|
11240
|
-
|
|
11246
|
+
], I.prototype, "padding", 2);
|
|
11247
|
+
Q([
|
|
11241
11248
|
l({ type: String })
|
|
11242
|
-
],
|
|
11243
|
-
|
|
11249
|
+
], I.prototype, "maxWidth", 2);
|
|
11250
|
+
Q([
|
|
11244
11251
|
l({ type: String })
|
|
11245
|
-
],
|
|
11246
|
-
|
|
11252
|
+
], I.prototype, "maxHeight", 2);
|
|
11253
|
+
Q([
|
|
11247
11254
|
l({ type: String })
|
|
11248
|
-
],
|
|
11249
|
-
|
|
11255
|
+
], I.prototype, "width", 2);
|
|
11256
|
+
Q([
|
|
11250
11257
|
l({ type: String })
|
|
11251
|
-
],
|
|
11252
|
-
|
|
11258
|
+
], I.prototype, "height", 2);
|
|
11259
|
+
Q([
|
|
11253
11260
|
l({ type: String })
|
|
11254
|
-
],
|
|
11255
|
-
|
|
11261
|
+
], I.prototype, "zIndex", 2);
|
|
11262
|
+
Q([
|
|
11256
11263
|
l({ type: String })
|
|
11257
|
-
],
|
|
11258
|
-
|
|
11264
|
+
], I.prototype, "effect", 2);
|
|
11265
|
+
Q([
|
|
11259
11266
|
l({ type: Object })
|
|
11260
|
-
],
|
|
11261
|
-
|
|
11267
|
+
], I.prototype, "options", 2);
|
|
11268
|
+
Q([
|
|
11262
11269
|
l({ type: Boolean, reflect: !0 })
|
|
11263
|
-
],
|
|
11264
|
-
|
|
11270
|
+
], I.prototype, "fullScreen", 2);
|
|
11271
|
+
Q([
|
|
11265
11272
|
l({ type: Boolean, reflect: !0 })
|
|
11266
|
-
],
|
|
11267
|
-
|
|
11273
|
+
], I.prototype, "visible", 2);
|
|
11274
|
+
Q([
|
|
11268
11275
|
l({ type: Object })
|
|
11269
|
-
],
|
|
11270
|
-
|
|
11276
|
+
], I.prototype, "animation", 2);
|
|
11277
|
+
Q([
|
|
11271
11278
|
$e(".modal-wrapper")
|
|
11272
|
-
],
|
|
11273
|
-
|
|
11279
|
+
], I.prototype, "modalWrapper", 2);
|
|
11280
|
+
Q([
|
|
11274
11281
|
$e(".modal")
|
|
11275
|
-
],
|
|
11276
|
-
|
|
11282
|
+
], I.prototype, "modalElement", 2);
|
|
11283
|
+
Q([
|
|
11284
|
+
l({ type: Boolean })
|
|
11285
|
+
], I.prototype, "closeOnLocationChange", 2);
|
|
11286
|
+
Q([
|
|
11287
|
+
L()
|
|
11288
|
+
], I.prototype, "location", 2);
|
|
11289
|
+
Q([
|
|
11277
11290
|
Pe({ selector: "sonic-modal-close" })
|
|
11278
|
-
],
|
|
11279
|
-
|
|
11291
|
+
], I.prototype, "closeBtn", 2);
|
|
11292
|
+
I = Q([
|
|
11280
11293
|
$(ko)
|
|
11281
|
-
],
|
|
11282
|
-
typeof window < "u" && (window.SonicModal =
|
|
11283
|
-
var Vh = Object.defineProperty,
|
|
11284
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
11294
|
+
], I);
|
|
11295
|
+
typeof window < "u" && (window.SonicModal = I);
|
|
11296
|
+
var Vh = Object.defineProperty, Bh = Object.getOwnPropertyDescriptor, Vt = (r, t, s, i) => {
|
|
11297
|
+
for (var e = i > 1 ? void 0 : i ? Bh(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11285
11298
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
11286
11299
|
return i && e && Vh(t, s, e), e;
|
|
11287
11300
|
};
|
|
11288
|
-
const
|
|
11301
|
+
const Hh = {
|
|
11289
11302
|
warning: "warning-circled-outline",
|
|
11290
11303
|
success: "check-circled-outline",
|
|
11291
11304
|
error: "warning-circled-outline",
|
|
@@ -11307,7 +11320,7 @@ let Ct = class extends x {
|
|
|
11307
11320
|
return m`
|
|
11308
11321
|
<slot name="icon" class="${this.noIcon ? "hidden" : ""}"
|
|
11309
11322
|
>${this.noIcon ? C : m`<div>
|
|
11310
|
-
${this.status && m`<sonic-icon name=${
|
|
11323
|
+
${this.status && m`<sonic-icon name=${Hh[this.status]}></sonic-icon>`}
|
|
11311
11324
|
</div>`}</slot
|
|
11312
11325
|
>
|
|
11313
11326
|
<div class="content">
|
|
@@ -11542,8 +11555,12 @@ let we = class extends x {
|
|
|
11542
11555
|
constructor() {
|
|
11543
11556
|
super(...arguments), this.label = "", this.disabled = !1, this.focusable = !1;
|
|
11544
11557
|
}
|
|
11545
|
-
|
|
11546
|
-
|
|
11558
|
+
willUpdate(r) {
|
|
11559
|
+
if (r.has("disabled")) {
|
|
11560
|
+
const t = r.get("disabled") === !0;
|
|
11561
|
+
this.disabled ? this.setAttribute("tabindex", "-1") : !this.disabled && t && this.removeAttribute("tabindex");
|
|
11562
|
+
}
|
|
11563
|
+
super.willUpdate(r);
|
|
11547
11564
|
}
|
|
11548
11565
|
render() {
|
|
11549
11566
|
const r = this.disabled || this.label == "" ? "disabled" : "";
|
|
@@ -11587,12 +11604,20 @@ we.styles = [
|
|
|
11587
11604
|
scale: 0.9;
|
|
11588
11605
|
will-change: opacity, transform;
|
|
11589
11606
|
}
|
|
11590
|
-
|
|
11591
|
-
|
|
11607
|
+
|
|
11608
|
+
/* désactive au focus-within cause persistance du tooltip au clic */
|
|
11609
|
+
/* :host(:focus-within) .tooltip:before, */
|
|
11610
|
+
:host(:focus-visible) .tooltip:before,
|
|
11611
|
+
.tooltip:hover:before {
|
|
11592
11612
|
opacity: 1;
|
|
11593
11613
|
scale: 1;
|
|
11594
11614
|
}
|
|
11595
11615
|
|
|
11616
|
+
.disabled:before {
|
|
11617
|
+
opacity: 0 !important;
|
|
11618
|
+
scale: 0.9 !important;
|
|
11619
|
+
}
|
|
11620
|
+
|
|
11596
11621
|
:host(:not([placement])) .tooltip:before,
|
|
11597
11622
|
:host([placement="top"]) .tooltip:before {
|
|
11598
11623
|
bottom: var(--sc-tooltip-position);
|
|
@@ -11672,7 +11697,7 @@ ys([
|
|
|
11672
11697
|
we = ys([
|
|
11673
11698
|
$(td)
|
|
11674
11699
|
], we);
|
|
11675
|
-
var ed = Object.defineProperty, sd = Object.getOwnPropertyDescriptor,
|
|
11700
|
+
var ed = Object.defineProperty, sd = Object.getOwnPropertyDescriptor, Bt = (r, t, s, i) => {
|
|
11676
11701
|
for (var e = i > 1 ? void 0 : i ? sd(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11677
11702
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
11678
11703
|
return i && e && ed(t, s, e), e;
|
|
@@ -11828,34 +11853,34 @@ St.styles = [
|
|
|
11828
11853
|
}
|
|
11829
11854
|
`
|
|
11830
11855
|
];
|
|
11831
|
-
|
|
11856
|
+
Bt([
|
|
11832
11857
|
dt({ flatten: !0 })
|
|
11833
11858
|
], St.prototype, "slotNodes", 2);
|
|
11834
|
-
|
|
11859
|
+
Bt([
|
|
11835
11860
|
$e("div")
|
|
11836
11861
|
], St.prototype, "divider", 2);
|
|
11837
|
-
|
|
11862
|
+
Bt([
|
|
11838
11863
|
l({ type: String })
|
|
11839
11864
|
], St.prototype, "label", 2);
|
|
11840
|
-
|
|
11865
|
+
Bt([
|
|
11841
11866
|
l({ type: String, reflect: !0 })
|
|
11842
11867
|
], St.prototype, "size", 2);
|
|
11843
|
-
|
|
11868
|
+
Bt([
|
|
11844
11869
|
l({ type: String, reflect: !0 })
|
|
11845
11870
|
], St.prototype, "align", 2);
|
|
11846
|
-
|
|
11871
|
+
Bt([
|
|
11847
11872
|
l({ type: Boolean, reflect: !0 })
|
|
11848
11873
|
], St.prototype, "vertical", 2);
|
|
11849
|
-
|
|
11874
|
+
Bt([
|
|
11850
11875
|
l({ type: Boolean, reflect: !0 })
|
|
11851
11876
|
], St.prototype, "noMargin", 2);
|
|
11852
|
-
|
|
11877
|
+
Bt([
|
|
11853
11878
|
l({ type: Boolean, reflect: !0 })
|
|
11854
11879
|
], St.prototype, "dashed", 2);
|
|
11855
|
-
|
|
11880
|
+
Bt([
|
|
11856
11881
|
l({ type: Boolean, reflect: !0 })
|
|
11857
11882
|
], St.prototype, "dotted", 2);
|
|
11858
|
-
St =
|
|
11883
|
+
St = Bt([
|
|
11859
11884
|
$(id)
|
|
11860
11885
|
], St);
|
|
11861
11886
|
var rd = Object.defineProperty, od = Object.getOwnPropertyDescriptor, nd = (r, t, s, i) => {
|
|
@@ -12090,7 +12115,7 @@ var _d = Object.defineProperty, wd = Object.getOwnPropertyDescriptor, Eo = (r, t
|
|
|
12090
12115
|
return i && e && _d(t, s, e), e;
|
|
12091
12116
|
};
|
|
12092
12117
|
const xd = "sonic-card";
|
|
12093
|
-
let
|
|
12118
|
+
let Hs = class extends x {
|
|
12094
12119
|
constructor() {
|
|
12095
12120
|
super(...arguments), this.type = "base";
|
|
12096
12121
|
}
|
|
@@ -12098,7 +12123,7 @@ let Bs = class extends x {
|
|
|
12098
12123
|
return m`<slot></slot> `;
|
|
12099
12124
|
}
|
|
12100
12125
|
};
|
|
12101
|
-
|
|
12126
|
+
Hs.styles = [
|
|
12102
12127
|
yd,
|
|
12103
12128
|
P`
|
|
12104
12129
|
* {
|
|
@@ -12134,10 +12159,10 @@ Bs.styles = [
|
|
|
12134
12159
|
];
|
|
12135
12160
|
Eo([
|
|
12136
12161
|
l({ type: String, reflect: !0 })
|
|
12137
|
-
],
|
|
12138
|
-
|
|
12162
|
+
], Hs.prototype, "type", 2);
|
|
12163
|
+
Hs = Eo([
|
|
12139
12164
|
$(xd)
|
|
12140
|
-
],
|
|
12165
|
+
], Hs);
|
|
12141
12166
|
var $d = Object.defineProperty, Pd = Object.getOwnPropertyDescriptor, _s = (r, t, s, i) => {
|
|
12142
12167
|
for (var e = i > 1 ? void 0 : i ? Pd(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
12143
12168
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
@@ -12387,7 +12412,7 @@ var Rd = Object.defineProperty, Ud = Object.getOwnPropertyDescriptor, Vd = (r, t
|
|
|
12387
12412
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
12388
12413
|
return i && e && Rd(t, s, e), e;
|
|
12389
12414
|
};
|
|
12390
|
-
const
|
|
12415
|
+
const Bd = "sonic-tfoot";
|
|
12391
12416
|
let Ni = class extends x {
|
|
12392
12417
|
render() {
|
|
12393
12418
|
return m`<tfoot>
|
|
@@ -12403,12 +12428,12 @@ Ni.styles = [
|
|
|
12403
12428
|
`
|
|
12404
12429
|
];
|
|
12405
12430
|
Ni = Vd([
|
|
12406
|
-
$(
|
|
12431
|
+
$(Bd)
|
|
12407
12432
|
], Ni);
|
|
12408
|
-
var
|
|
12433
|
+
var Hd = Object.defineProperty, qd = Object.getOwnPropertyDescriptor, Wd = (r, t, s, i) => {
|
|
12409
12434
|
for (var e = i > 1 ? void 0 : i ? qd(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
12410
12435
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
12411
|
-
return i && e &&
|
|
12436
|
+
return i && e && Hd(t, s, e), e;
|
|
12412
12437
|
};
|
|
12413
12438
|
const Kd = "sonic-caption";
|
|
12414
12439
|
let Ti = class extends x {
|
|
@@ -12776,7 +12801,7 @@ var sp = Object.defineProperty, ip = Object.getOwnPropertyDescriptor, ei = (r, t
|
|
|
12776
12801
|
return i && e && sp(t, s, e), e;
|
|
12777
12802
|
};
|
|
12778
12803
|
const rp = "supersoniks_altcha", op = "Si2\\]X8M4!n9DCLd";
|
|
12779
|
-
let
|
|
12804
|
+
let Br = !1;
|
|
12780
12805
|
const np = "sonic-captcha";
|
|
12781
12806
|
let Me = class extends oe(x) {
|
|
12782
12807
|
constructor() {
|
|
@@ -12786,11 +12811,11 @@ let Me = class extends oe(x) {
|
|
|
12786
12811
|
}
|
|
12787
12812
|
connectedCallback() {
|
|
12788
12813
|
if (document.location.protocol.includes("https")) {
|
|
12789
|
-
if (!
|
|
12814
|
+
if (!Br) {
|
|
12790
12815
|
const r = document.createElement("script");
|
|
12791
|
-
r.type = "module", this.setAttribute("async", ""), this.setAttribute("defer", ""), r.src = "https://eu.altcha.org/js/latest/altcha.min.js",
|
|
12816
|
+
r.type = "module", this.setAttribute("async", ""), this.setAttribute("defer", ""), r.src = "https://eu.altcha.org/js/latest/altcha.min.js", Br = !0, document.head.appendChild(r);
|
|
12792
12817
|
}
|
|
12793
|
-
this.generateEncryptedKey(), super.connectedCallback(), this.formPublisher =
|
|
12818
|
+
this.generateEncryptedKey(), super.connectedCallback(), this.formPublisher = rt.get(
|
|
12794
12819
|
this.getAncestorAttributeValue("headersDataProvider") ?? this.getAncestorAttributeValue("formDataProvider")
|
|
12795
12820
|
), this.formPublisher && !this.formPublisher.captchaToken.get() && (this.formPublisher.needsCaptchaValidation = !0, this.formPublisher.captchaToken.onAssign(
|
|
12796
12821
|
this.onCaptchaTokenChanged
|
|
@@ -12971,7 +12996,7 @@ window["concorde-directives-data-provider"] = {
|
|
|
12971
12996
|
get: pn,
|
|
12972
12997
|
set: fn
|
|
12973
12998
|
};
|
|
12974
|
-
const dp = M, pp =
|
|
12999
|
+
const dp = M, pp = I;
|
|
12975
13000
|
window["concorde-components"] = window["concorde-components"] || {};
|
|
12976
13001
|
window["concorde-components"] = {
|
|
12977
13002
|
SonicToast: dp,
|