@supersoniks/concorde 4.0.0 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build-infos.json +1 -1
- package/concorde-core.bundle.js +93 -93
- package/concorde-core.es.js +590 -552
- package/dist/concorde-core.bundle.js +93 -93
- package/dist/concorde-core.es.js +590 -552
- package/docs/assets/{index-B669R8JF.css → index-BBv9CZqo.css} +1 -1
- package/docs/assets/{index-BTo6ly4d.js → index-BbnRiebQ.js} +393 -321
- package/docs/index.html +2 -2
- package/docs/src/docs/_misc/on-assign.md +5 -5
- package/docs/src/docs/_misc/wait-for-ancestors.md +160 -0
- package/docs/src/docs/search/docs-search.json +280 -0
- package/docs/src/tsconfig.json +3 -9
- package/package.json +2 -1
- package/src/core/components/ui/icon/icons.ts +5 -1
- package/src/core/decorators/lifecycle.ts +79 -0
- package/src/core/utils/HTML.ts +62 -0
- package/src/core/utils/PublisherProxy.ts +8 -6
- package/src/core/utils/route.ts +21 -3
- package/src/decorators.ts +5 -0
- package/src/docs/_misc/wait-for-ancestors.md +160 -0
- package/src/docs/example/decorators-demo.ts +265 -0
- package/src/docs/navigation/navigation.ts +4 -1
- package/src/docs/search/docs-search.json +210 -0
- package/src/tsconfig.json +3 -0
- package/src/tsconfig.tsbuildinfo +1 -1
package/dist/concorde-core.es.js
CHANGED
|
@@ -88,6 +88,44 @@ let Q = class Dt {
|
|
|
88
88
|
static getClosestForm(t) {
|
|
89
89
|
return Dt.getClosestElement(t, "form");
|
|
90
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* Parcourt les ancêtres (parentNode / shadow host) et collecte ceux dont le tagName
|
|
93
|
+
* correspond à l'un des noms fournis (comparaison insensible à la casse).
|
|
94
|
+
* @param node Élément de départ
|
|
95
|
+
* @param tagNames Noms de balises à rechercher (ex: ['sonic-subscriber', 'sonic-sdui'])
|
|
96
|
+
* @returns Tableau des ancêtres correspondants
|
|
97
|
+
*/
|
|
98
|
+
static getAncestorsByTagNames(t, i) {
|
|
99
|
+
const s = new Set(i.map((n) => n.toLowerCase())), e = [];
|
|
100
|
+
let o = t.parentNode || t.host;
|
|
101
|
+
for (; o; )
|
|
102
|
+
o instanceof Element && s.has(o.tagName.toLowerCase()) && e.push(o), o = o.parentNode || o.host;
|
|
103
|
+
return e;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Parcourt les ancêtres (parentNode / shadow host) et collecte ceux qui matchent
|
|
107
|
+
* l'un des sélecteurs CSS fournis (element.matches(selector)).
|
|
108
|
+
* @param node Élément de départ
|
|
109
|
+
* @param selectors Sélecteurs CSS (ex: ['sonic-subscriber', 'sonic-sdui', 'div.container'])
|
|
110
|
+
* @returns Tableau des ancêtres correspondants
|
|
111
|
+
*/
|
|
112
|
+
static getAncestorsBySelectors(t, i) {
|
|
113
|
+
const s = [];
|
|
114
|
+
let e = t.parentNode || t.host;
|
|
115
|
+
for (; e; ) {
|
|
116
|
+
if (e instanceof Element)
|
|
117
|
+
for (const o of i)
|
|
118
|
+
try {
|
|
119
|
+
if (e.matches(o)) {
|
|
120
|
+
s.push(e);
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
} catch {
|
|
124
|
+
}
|
|
125
|
+
e = e.parentNode || e.host;
|
|
126
|
+
}
|
|
127
|
+
return s;
|
|
128
|
+
}
|
|
91
129
|
/**
|
|
92
130
|
* Lance le chargement d'un js et retourne une promise qui resoud à true lorsque le chargement à réussi et à false, sinon.
|
|
93
131
|
* */
|
|
@@ -119,7 +157,7 @@ const mi = (r) => {
|
|
|
119
157
|
};
|
|
120
158
|
i.observe(t, s);
|
|
121
159
|
};
|
|
122
|
-
let
|
|
160
|
+
let bs = class {
|
|
123
161
|
/**
|
|
124
162
|
* Passe le premier caractère de la chaine en majuscule
|
|
125
163
|
*/
|
|
@@ -247,16 +285,16 @@ let ji = br.replace(
|
|
|
247
285
|
/-([a-z])/g,
|
|
248
286
|
(r) => r[1].toUpperCase()
|
|
249
287
|
);
|
|
250
|
-
const
|
|
251
|
-
function
|
|
288
|
+
const gs = ji.charAt(0).toUpperCase() + ji.slice(1);
|
|
289
|
+
function cs(r) {
|
|
252
290
|
return Object.prototype.hasOwnProperty.call(r, "__value");
|
|
253
291
|
}
|
|
254
|
-
function
|
|
255
|
-
return typeof r == "object" && r
|
|
292
|
+
function Wt(r) {
|
|
293
|
+
return typeof r == "object" && r !== null;
|
|
256
294
|
}
|
|
257
|
-
let
|
|
258
|
-
typeof __SONIC_PREFIX__ > "u" && (
|
|
259
|
-
const Us =
|
|
295
|
+
let Pe = "sonic";
|
|
296
|
+
typeof __SONIC_PREFIX__ > "u" && (Pe = "sonic");
|
|
297
|
+
const Us = Pe == "sonic" ? "publisher-proxies-data" : Pe + "-publisher-proxies-data", Kt = class Kt {
|
|
260
298
|
constructor(t, i, s) {
|
|
261
299
|
for (this._proxies_ = /* @__PURE__ */ new Map(), this._is_savable_ = !1, this._expiration_delay_ = 1e3 * 60 * 60 * 12, this._invalidate_on_page_show_ = !1, this._invalidateListeners_ = /* @__PURE__ */ new Set(), this._formInvalidateListeners_ = /* @__PURE__ */ new Set(), this._assignListeners_ = /* @__PURE__ */ new Set(), this._mutationListeners_ = /* @__PURE__ */ new Set(), this._fillListeners_ = /* @__PURE__ */ new Set(), this._templateFillListeners_ = /* @__PURE__ */ new Set(), this._lockInternalMutationPublishing_ = !1, this._instanceCounter_ = 0, this._assignmentId_ = 0, this._value_ = t, this.parent = i || null, this._parentKey_ = s, this.root = this, this._instanceCounter_ = 0; this.root.parent; )
|
|
262
300
|
this.root = this.root.parent;
|
|
@@ -268,7 +306,7 @@ const Us = xe == "sonic" ? "publisher-proxies-data" : xe + "-publisher-proxies-d
|
|
|
268
306
|
delete() {
|
|
269
307
|
for (const t in this._proxies_.keys())
|
|
270
308
|
t != "_parent_" && this._proxies_.get(t)?.delete();
|
|
271
|
-
this._invalidateListeners_.clear(), this._formInvalidateListeners_.clear(), this._assignListeners_.clear(), this._mutationListeners_.clear(), this._fillListeners_.clear(), this._templateFillListeners_.clear(), this._proxies_.clear(),
|
|
309
|
+
this._invalidateListeners_.clear(), this._formInvalidateListeners_.clear(), this._assignListeners_.clear(), this._mutationListeners_.clear(), this._fillListeners_.clear(), this._templateFillListeners_.clear(), this._proxies_.clear(), Kt.instances.delete(this._instanceCounter_);
|
|
272
310
|
}
|
|
273
311
|
/**
|
|
274
312
|
* Utile pour savoir si quelque chose est en écoute d'une modification sur le proxy via une des methodes associées
|
|
@@ -413,12 +451,12 @@ const Us = xe == "sonic" ? "publisher-proxies-data" : xe + "-publisher-proxies-d
|
|
|
413
451
|
* Assigne une nouvelle valeur au proxy ce qui déclenche la transmission de la donnée en fonction des "écouteurs" associés
|
|
414
452
|
*/
|
|
415
453
|
set(t, i = !1) {
|
|
416
|
-
if (this._value_ === t || this._value_ && t &&
|
|
454
|
+
if (this._value_ === t || Wt(this._value_) && Wt(t) && t && cs(this._value_) && cs(t) && this._value_.__value === t.__value || !Wt(t) && t === this._value_.__value)
|
|
417
455
|
return !0;
|
|
418
|
-
this._value_ =
|
|
419
|
-
const s =
|
|
456
|
+
this._value_ = Wt(t) ? t : { __value: t }, this._cachedGet_ = void 0;
|
|
457
|
+
const s = cs(this._value_);
|
|
420
458
|
if (this._parentKey_ && this.parent) {
|
|
421
|
-
const e =
|
|
459
|
+
const e = cs(this._value_) ? this._value_.__value : this._value_;
|
|
422
460
|
if (this.parent?.get() == null && this.parent?.get() == null)
|
|
423
461
|
if (isNaN(Number(this._parentKey_)))
|
|
424
462
|
this.parent.set({ [this._parentKey_]: e });
|
|
@@ -444,9 +482,9 @@ const Us = xe == "sonic" ? "publisher-proxies-data" : xe + "-publisher-proxies-d
|
|
|
444
482
|
}), this._publishAssignement_(), this.parent && this._parentKey_ && this.parent._publishDynamicFilling_(
|
|
445
483
|
this._parentKey_,
|
|
446
484
|
this._value_
|
|
447
|
-
),
|
|
485
|
+
), Wt(this._value_))
|
|
448
486
|
for (const e in this._value_) {
|
|
449
|
-
const o = t[e], l =
|
|
487
|
+
const o = t[e], l = Wt(o) ? o : { __value: o };
|
|
450
488
|
if (!this._proxies_.has(e)) {
|
|
451
489
|
this._publishDynamicFilling_(e, o);
|
|
452
490
|
continue;
|
|
@@ -467,15 +505,15 @@ const Us = xe == "sonic" ? "publisher-proxies-data" : xe + "-publisher-proxies-d
|
|
|
467
505
|
* retourner le webcomponent auquel le proxy est associé
|
|
468
506
|
*/
|
|
469
507
|
get $tag() {
|
|
470
|
-
return this._instanceCounter_ || (
|
|
508
|
+
return this._instanceCounter_ || (Kt.instancesCounter++, this._instanceCounter_ = Kt.instancesCounter), Kt.instances.set(this._instanceCounter_, this), "<" + Pe + '-publisher-proxy publisher="' + this._instanceCounter_ + '"></' + Pe + "-publisher-proxy>";
|
|
471
509
|
}
|
|
472
510
|
};
|
|
473
|
-
|
|
474
|
-
let
|
|
475
|
-
const
|
|
511
|
+
Kt.instances = /* @__PURE__ */ new Map(), Kt.instancesCounter = 0;
|
|
512
|
+
let We = Kt;
|
|
513
|
+
const T = class T {
|
|
476
514
|
constructor() {
|
|
477
|
-
if (this.enabledLocaStorageProxies = [], this.publishers = /* @__PURE__ */ new Map(), this.localStorageData = {}, this.isLocalStrorageReady = null, this.initialisedData = [],
|
|
478
|
-
|
|
515
|
+
if (this.enabledLocaStorageProxies = [], this.publishers = /* @__PURE__ */ new Map(), this.localStorageData = {}, this.isLocalStrorageReady = null, this.initialisedData = [], T.instance != null) throw "Singleton / use getInstance";
|
|
516
|
+
T.instance = this, this.isLocalStrorageReady = this.cleanStorageData();
|
|
479
517
|
}
|
|
480
518
|
invalidateAll() {
|
|
481
519
|
this.publishers.forEach((t) => {
|
|
@@ -514,39 +552,39 @@ const N = class N {
|
|
|
514
552
|
*/
|
|
515
553
|
static getInstance(t) {
|
|
516
554
|
if (t) {
|
|
517
|
-
const i =
|
|
555
|
+
const i = T.instances.get(t);
|
|
518
556
|
return i || (console.warn(
|
|
519
557
|
"No PublisherManager instance registered with id:",
|
|
520
558
|
t,
|
|
521
559
|
"creating new one"
|
|
522
|
-
), new
|
|
560
|
+
), new T());
|
|
523
561
|
}
|
|
524
|
-
return
|
|
562
|
+
return T.instance == null ? new T() : T.instance;
|
|
525
563
|
}
|
|
526
564
|
static registerInstance(t, i) {
|
|
527
|
-
|
|
565
|
+
T.instances.has(t) && console.warn(
|
|
528
566
|
"PublisherManager instance already registered with id: ",
|
|
529
567
|
t
|
|
530
|
-
),
|
|
568
|
+
), T.instances.set(t, i);
|
|
531
569
|
}
|
|
532
570
|
/**
|
|
533
571
|
* shortcut static pour obtenir un publisher vias sont id/adresse sans taper getInstance.
|
|
534
572
|
* Si le publisher n'existe pas, il est créé.
|
|
535
573
|
*/
|
|
536
574
|
static get(t, i) {
|
|
537
|
-
return
|
|
575
|
+
return T.getInstance().get(t, i);
|
|
538
576
|
}
|
|
539
577
|
static collectModifiedPublisher() {
|
|
540
|
-
|
|
578
|
+
T.modifiedCollectore.unshift(/* @__PURE__ */ new Set());
|
|
541
579
|
}
|
|
542
580
|
static getModifiedPublishers() {
|
|
543
|
-
return
|
|
581
|
+
return T.modifiedCollectore.shift();
|
|
544
582
|
}
|
|
545
583
|
/**
|
|
546
584
|
* shortcut static pour supprimer un publisher de la liste et appel également delete sur le publisher ce qui le supprime, de même que ses sous publishers
|
|
547
585
|
*/
|
|
548
586
|
static delete(t) {
|
|
549
|
-
return t ?
|
|
587
|
+
return t ? T.getInstance().delete(t) : !1;
|
|
550
588
|
}
|
|
551
589
|
/**
|
|
552
590
|
* Obtenir un publisher vias sont id/adresse
|
|
@@ -588,10 +626,10 @@ const N = class N {
|
|
|
588
626
|
return this.publishers.has(t) ? (this.publishers.delete(t), !0) : !1;
|
|
589
627
|
}
|
|
590
628
|
async saveToLocalStorage(t = 0) {
|
|
591
|
-
if (!(t !==
|
|
629
|
+
if (!(t !== T.saveId && t % 10 != 0))
|
|
592
630
|
try {
|
|
593
|
-
if (!
|
|
594
|
-
|
|
631
|
+
if (!T.changed || T.saving) return;
|
|
632
|
+
T.saving = !0, T.changed = !1;
|
|
595
633
|
const i = Array.from(this.publishers.keys());
|
|
596
634
|
let s = !1;
|
|
597
635
|
for (const e of i) {
|
|
@@ -611,13 +649,13 @@ const N = class N {
|
|
|
611
649
|
);
|
|
612
650
|
localStorage.setItem(Us, e);
|
|
613
651
|
}
|
|
614
|
-
if (
|
|
615
|
-
|
|
616
|
-
const e =
|
|
652
|
+
if (T.saving = !1, T.changed) {
|
|
653
|
+
T.saveId++;
|
|
654
|
+
const e = T.saveId;
|
|
617
655
|
setTimeout(() => this.saveToLocalStorage(e), 1e3);
|
|
618
656
|
}
|
|
619
657
|
} catch {
|
|
620
|
-
|
|
658
|
+
T.saving = !1;
|
|
621
659
|
}
|
|
622
660
|
}
|
|
623
661
|
async compress(t, i) {
|
|
@@ -639,11 +677,11 @@ const N = class N {
|
|
|
639
677
|
return new TextDecoder().decode(h);
|
|
640
678
|
}
|
|
641
679
|
};
|
|
642
|
-
|
|
643
|
-
let k =
|
|
680
|
+
T.buildDate = "Fri Feb 27 2026 12:35:57 GMT+0100 (Central European Standard Time)", T.changed = !1, T.saving = !1, T.saveId = 0, T.instance = null, T.instances = /* @__PURE__ */ new Map(), T.modifiedCollectore = [];
|
|
681
|
+
let k = T;
|
|
644
682
|
if (typeof window < "u") {
|
|
645
683
|
const r = window;
|
|
646
|
-
r[
|
|
684
|
+
r[gs + "PublisherManager"] = r[gs + "PublisherManager"] || k;
|
|
647
685
|
}
|
|
648
686
|
const Wr = /* @__PURE__ */ new Set([
|
|
649
687
|
"invalidate",
|
|
@@ -703,7 +741,7 @@ function Kr(r, t) {
|
|
|
703
741
|
return () => t().get();
|
|
704
742
|
if (!r._proxies_.has(s)) {
|
|
705
743
|
const e = r._value_[s], o = Ys(
|
|
706
|
-
|
|
744
|
+
Wt(e) ? e : { __value: e },
|
|
707
745
|
r,
|
|
708
746
|
s
|
|
709
747
|
);
|
|
@@ -738,7 +776,7 @@ function Kr(r, t) {
|
|
|
738
776
|
);
|
|
739
777
|
n._proxies_.set("_parent_", t()), r._proxies_.set(s, n);
|
|
740
778
|
}
|
|
741
|
-
return r._value_[s] !== e && (r._value_[s] = e, r._publishDynamicFilling_(s, e), r._proxies_.get(s)?.set(
|
|
779
|
+
return r._value_[s] !== e && (r._value_[s] = e, r._publishDynamicFilling_(s, e), r._proxies_.get(s)?.set(Wt(e) ? e : { __value: e })), !0;
|
|
742
780
|
},
|
|
743
781
|
/**
|
|
744
782
|
* Autres propriétés classiques d'un objet implémentées par le proxy
|
|
@@ -767,7 +805,7 @@ function Kr(r, t) {
|
|
|
767
805
|
};
|
|
768
806
|
}
|
|
769
807
|
function Ys(r, t = null, i) {
|
|
770
|
-
const s = new
|
|
808
|
+
const s = new We(r, t, i);
|
|
771
809
|
let e = null;
|
|
772
810
|
const o = Kr(s, () => e);
|
|
773
811
|
return e = new Proxy(
|
|
@@ -782,7 +820,7 @@ class Yr extends HTMLElement {
|
|
|
782
820
|
};
|
|
783
821
|
}
|
|
784
822
|
connectedCallback() {
|
|
785
|
-
this.publisherId = this.getAttribute("publisher") || "", this.publisher =
|
|
823
|
+
this.publisherId = this.getAttribute("publisher") || "", this.publisher = We.instances.get(parseInt(this.publisherId)), this.publisher?.onAssign(this.onAssign);
|
|
786
824
|
}
|
|
787
825
|
disconnectedCallback() {
|
|
788
826
|
this.publisher?.offAssign(this.onAssign);
|
|
@@ -790,7 +828,7 @@ class Yr extends HTMLElement {
|
|
|
790
828
|
}
|
|
791
829
|
try {
|
|
792
830
|
customElements.define(
|
|
793
|
-
|
|
831
|
+
Pe + "-publisher-proxy",
|
|
794
832
|
Yr
|
|
795
833
|
);
|
|
796
834
|
} catch {
|
|
@@ -814,17 +852,17 @@ const ks = (r) => {
|
|
|
814
852
|
window.addEventListener("pageshow", (r) => {
|
|
815
853
|
r.persisted && k.getInstance().invalidateAll();
|
|
816
854
|
});
|
|
817
|
-
var
|
|
818
|
-
let Ds = (
|
|
855
|
+
var N;
|
|
856
|
+
let Ds = (N = class {
|
|
819
857
|
static disable() {
|
|
820
|
-
this.enabled && (this.enabled = !1, Array.from(
|
|
821
|
-
(t) =>
|
|
858
|
+
this.enabled && (this.enabled = !1, Array.from(N.observedElements.keys()).forEach(
|
|
859
|
+
(t) => N.unObserve(t)
|
|
822
860
|
));
|
|
823
861
|
}
|
|
824
862
|
static observe(t) {
|
|
825
|
-
if (!t || !
|
|
826
|
-
const i = new MutationObserver(
|
|
827
|
-
s.childList = !0, s.subtree = !0, s.attributes = !0, s.attributeFilter = ["data-bind"], i.observe(t, s), t.querySelectorAll("[data-bind]").forEach((e) =>
|
|
863
|
+
if (!t || !N.enabled || N.observedElements.has(t)) return;
|
|
864
|
+
const i = new MutationObserver(N.onMutation), s = {};
|
|
865
|
+
s.childList = !0, s.subtree = !0, s.attributes = !0, s.attributeFilter = ["data-bind"], i.observe(t, s), t.querySelectorAll("[data-bind]").forEach((e) => N.addPublisherListeners(e)), N.observedElements.set(t, i);
|
|
828
866
|
}
|
|
829
867
|
/**
|
|
830
868
|
* Arrêter à observer un élément html.
|
|
@@ -832,13 +870,13 @@ let Ds = (T = class {
|
|
|
832
870
|
static unObserve(t) {
|
|
833
871
|
if (!t) return;
|
|
834
872
|
const i = this.observedElements.get(t);
|
|
835
|
-
i && (i.disconnect(), t.querySelectorAll("[data-bind]").forEach((s) =>
|
|
873
|
+
i && (i.disconnect(), t.querySelectorAll("[data-bind]").forEach((s) => N.removePublisherListeners(s)));
|
|
836
874
|
}
|
|
837
875
|
static onAdded(t) {
|
|
838
|
-
t.hasAttribute && t.hasAttribute("data-bind") &&
|
|
876
|
+
t.hasAttribute && t.hasAttribute("data-bind") && N.addPublisherListeners(t), t.querySelectorAll ? t.querySelectorAll("[data-bind]").forEach((i) => N.addPublisherListeners(i)) : t.childNodes.forEach((i) => N.onAdded(i));
|
|
839
877
|
}
|
|
840
878
|
static onRemoved(t) {
|
|
841
|
-
t.hasAttribute && t.hasAttribute("data-bind") &&
|
|
879
|
+
t.hasAttribute && t.hasAttribute("data-bind") && N.removePublisherListeners(t), t.querySelectorAll ? t.querySelectorAll("[data-bind]").forEach((i) => N.removePublisherListeners(i)) : t.childNodes.forEach((i) => N.onRemoved(i));
|
|
842
880
|
}
|
|
843
881
|
/**
|
|
844
882
|
* Callback appelé par le MutationObserver
|
|
@@ -847,13 +885,13 @@ let Ds = (T = class {
|
|
|
847
885
|
for (const i of t)
|
|
848
886
|
switch (i.type) {
|
|
849
887
|
case "attributes":
|
|
850
|
-
|
|
888
|
+
N.addPublisherListeners(i.target);
|
|
851
889
|
break;
|
|
852
890
|
case "childList":
|
|
853
891
|
i.addedNodes.forEach((s) => {
|
|
854
|
-
|
|
892
|
+
N.onAdded(s);
|
|
855
893
|
}), i.removedNodes.forEach((s) => {
|
|
856
|
-
|
|
894
|
+
N.onRemoved(s);
|
|
857
895
|
});
|
|
858
896
|
break;
|
|
859
897
|
}
|
|
@@ -862,8 +900,8 @@ let Ds = (T = class {
|
|
|
862
900
|
* La liaison avec le publisher supprimée ici.
|
|
863
901
|
*/
|
|
864
902
|
static removePublisherListeners(t) {
|
|
865
|
-
const i =
|
|
866
|
-
i && (
|
|
903
|
+
const i = N.publisherListeners.get(t);
|
|
904
|
+
i && (N.publisherListeners.delete(t), i.forEach((s) => {
|
|
867
905
|
s.publisher?.offAssign(s.onAssign);
|
|
868
906
|
}));
|
|
869
907
|
}
|
|
@@ -896,7 +934,7 @@ let Ds = (T = class {
|
|
|
896
934
|
static getDataBindItems(t) {
|
|
897
935
|
return "attributes" in t ? Array.from(t.attributes).filter((i) => i.name.indexOf("::") == 0).map((i) => ({
|
|
898
936
|
propertyToUpdate: i.name.substring(2).replace(/-((html)|\w)/g, (e) => e.substring(1).toUpperCase()),
|
|
899
|
-
bindedVariablesDescriptor:
|
|
937
|
+
bindedVariablesDescriptor: N.getVariablesDescriptor(i.value)
|
|
900
938
|
})) : [];
|
|
901
939
|
}
|
|
902
940
|
/**
|
|
@@ -919,23 +957,23 @@ let Ds = (T = class {
|
|
|
919
957
|
* TODO Sans doute factoriser
|
|
920
958
|
*/
|
|
921
959
|
static addPublisherListeners(t) {
|
|
922
|
-
|
|
960
|
+
N.removePublisherListeners(t);
|
|
923
961
|
const i = Q.getAncestorAttributeValue(
|
|
924
962
|
t.parentNode || t.host || t,
|
|
925
963
|
"dataProvider"
|
|
926
964
|
);
|
|
927
965
|
if (!i) return;
|
|
928
|
-
const s = k.getInstance().get(i), e =
|
|
966
|
+
const s = k.getInstance().get(i), e = N.getDataBindItems(t), o = [];
|
|
929
967
|
e.forEach((n) => {
|
|
930
968
|
const l = n.bindedVariablesDescriptor, c = n.propertyToUpdate;
|
|
931
969
|
for (const h of l.variables) {
|
|
932
970
|
const u = h;
|
|
933
971
|
let d = s;
|
|
934
|
-
d =
|
|
972
|
+
d = N.getSubPublisher(s, u);
|
|
935
973
|
const g = t, m = {
|
|
936
974
|
publisher: d,
|
|
937
975
|
onAssign: () => {
|
|
938
|
-
const v = l.variables.map((L) =>
|
|
976
|
+
const v = l.variables.map((L) => N.getSubPublisher(s, L)?.get());
|
|
939
977
|
let y = l.expression, P = !1;
|
|
940
978
|
if (v.length == 1 && l.variables[0].join(".") == y.substring(1)) {
|
|
941
979
|
let L = v[0];
|
|
@@ -950,9 +988,9 @@ let Ds = (T = class {
|
|
|
950
988
|
if (y.indexOf("|") != -1) {
|
|
951
989
|
const L = y.indexOf("|");
|
|
952
990
|
if (L == 0)
|
|
953
|
-
y =
|
|
991
|
+
y = bs.js(y.substring(1));
|
|
954
992
|
else {
|
|
955
|
-
const p = y.substring(0, L), f = y.substring(L + 1), w =
|
|
993
|
+
const p = y.substring(0, L), f = y.substring(L + 1), w = bs[p];
|
|
956
994
|
y = P ? "" : w ? w(f) : y;
|
|
957
995
|
}
|
|
958
996
|
} else
|
|
@@ -962,9 +1000,9 @@ let Ds = (T = class {
|
|
|
962
1000
|
};
|
|
963
1001
|
d?.onAssign(m.onAssign), o.push(m);
|
|
964
1002
|
}
|
|
965
|
-
}),
|
|
1003
|
+
}), N.publisherListeners.set(t, o);
|
|
966
1004
|
}
|
|
967
|
-
},
|
|
1005
|
+
}, N.observedElements = /* @__PURE__ */ new Map(), N.enabled = !0, N.publisherListeners = /* @__PURE__ */ new Map(), N);
|
|
968
1006
|
Ds.observe(document.documentElement);
|
|
969
1007
|
window.SonicDataBindObserver || (window.SonicDataBindObserver = Ds);
|
|
970
1008
|
/**
|
|
@@ -982,7 +1020,7 @@ const x = (r) => (t, i) => {
|
|
|
982
1020
|
* Copyright 2019 Google LLC
|
|
983
1021
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
984
1022
|
*/
|
|
985
|
-
const
|
|
1023
|
+
const ps = globalThis, bi = ps.ShadowRoot && (ps.ShadyCSS === void 0 || ps.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, gi = Symbol(), Fi = /* @__PURE__ */ new WeakMap();
|
|
986
1024
|
let vr = class {
|
|
987
1025
|
constructor(t, i, s) {
|
|
988
1026
|
if (this._$cssResult$ = !0, s !== gi) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -1011,7 +1049,7 @@ const Qr = (r) => new vr(typeof r == "string" ? r : r + "", void 0, gi), $ = (r,
|
|
|
1011
1049
|
}, Jr = (r, t) => {
|
|
1012
1050
|
if (bi) r.adoptedStyleSheets = t.map(((i) => i instanceof CSSStyleSheet ? i : i.styleSheet));
|
|
1013
1051
|
else for (const i of t) {
|
|
1014
|
-
const s = document.createElement("style"), e =
|
|
1052
|
+
const s = document.createElement("style"), e = ps.litNonce;
|
|
1015
1053
|
e !== void 0 && s.setAttribute("nonce", e), s.textContent = i.cssText, r.appendChild(s);
|
|
1016
1054
|
}
|
|
1017
1055
|
}, zi = bi ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
|
@@ -1024,7 +1062,7 @@ const Qr = (r) => new vr(typeof r == "string" ? r : r + "", void 0, gi), $ = (r,
|
|
|
1024
1062
|
* Copyright 2017 Google LLC
|
|
1025
1063
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1026
1064
|
*/
|
|
1027
|
-
const { is: to, defineProperty: eo, getOwnPropertyDescriptor: so, getOwnPropertyNames: io, getOwnPropertySymbols: ro, getPrototypeOf: oo } = Object, Ls = globalThis, Ri = Ls.trustedTypes, no = Ri ? Ri.emptyScript : "", ao = Ls.reactiveElementPolyfillSupport, Be = (r, t) => r,
|
|
1065
|
+
const { is: to, defineProperty: eo, getOwnPropertyDescriptor: so, getOwnPropertyNames: io, getOwnPropertySymbols: ro, getPrototypeOf: oo } = Object, Ls = globalThis, Ri = Ls.trustedTypes, no = Ri ? Ri.emptyScript : "", ao = Ls.reactiveElementPolyfillSupport, Be = (r, t) => r, vs = { toAttribute(r, t) {
|
|
1028
1066
|
switch (t) {
|
|
1029
1067
|
case Boolean:
|
|
1030
1068
|
r = r ? no : null;
|
|
@@ -1052,9 +1090,9 @@ const { is: to, defineProperty: eo, getOwnPropertyDescriptor: so, getOwnProperty
|
|
|
1052
1090
|
}
|
|
1053
1091
|
}
|
|
1054
1092
|
return i;
|
|
1055
|
-
} }, vi = (r, t) => !to(r, t), Ui = { attribute: !0, type: String, converter:
|
|
1093
|
+
} }, vi = (r, t) => !to(r, t), Ui = { attribute: !0, type: String, converter: vs, reflect: !1, useDefault: !1, hasChanged: vi };
|
|
1056
1094
|
Symbol.metadata ??= Symbol("metadata"), Ls.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
1057
|
-
let
|
|
1095
|
+
let _e = class extends HTMLElement {
|
|
1058
1096
|
static addInitializer(t) {
|
|
1059
1097
|
this._$Ei(), (this.l ??= []).push(t);
|
|
1060
1098
|
}
|
|
@@ -1151,14 +1189,14 @@ let we = class extends HTMLElement {
|
|
|
1151
1189
|
_$ET(t, i) {
|
|
1152
1190
|
const s = this.constructor.elementProperties.get(t), e = this.constructor._$Eu(t, s);
|
|
1153
1191
|
if (e !== void 0 && s.reflect === !0) {
|
|
1154
|
-
const o = (s.converter?.toAttribute !== void 0 ? s.converter :
|
|
1192
|
+
const o = (s.converter?.toAttribute !== void 0 ? s.converter : vs).toAttribute(i, s.type);
|
|
1155
1193
|
this._$Em = t, o == null ? this.removeAttribute(e) : this.setAttribute(e, o), this._$Em = null;
|
|
1156
1194
|
}
|
|
1157
1195
|
}
|
|
1158
1196
|
_$AK(t, i) {
|
|
1159
1197
|
const s = this.constructor, e = s._$Eh.get(t);
|
|
1160
1198
|
if (e !== void 0 && this._$Em !== e) {
|
|
1161
|
-
const o = s.getPropertyOptions(e), n = typeof o.converter == "function" ? { fromAttribute: o.converter } : o.converter?.fromAttribute !== void 0 ? o.converter :
|
|
1199
|
+
const o = s.getPropertyOptions(e), n = typeof o.converter == "function" ? { fromAttribute: o.converter } : o.converter?.fromAttribute !== void 0 ? o.converter : vs;
|
|
1162
1200
|
this._$Em = e;
|
|
1163
1201
|
const l = n.fromAttribute(i, o.type);
|
|
1164
1202
|
this[e] = l ?? this._$Ej?.get(e) ?? l, this._$Em = null;
|
|
@@ -1235,13 +1273,13 @@ let we = class extends HTMLElement {
|
|
|
1235
1273
|
firstUpdated(t) {
|
|
1236
1274
|
}
|
|
1237
1275
|
};
|
|
1238
|
-
|
|
1276
|
+
_e.elementStyles = [], _e.shadowRootOptions = { mode: "open" }, _e[Be("elementProperties")] = /* @__PURE__ */ new Map(), _e[Be("finalized")] = /* @__PURE__ */ new Map(), ao?.({ ReactiveElement: _e }), (Ls.reactiveElementVersions ??= []).push("2.1.1");
|
|
1239
1277
|
/**
|
|
1240
1278
|
* @license
|
|
1241
1279
|
* Copyright 2017 Google LLC
|
|
1242
1280
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1243
1281
|
*/
|
|
1244
|
-
const lo = { attribute: !0, type: String, converter:
|
|
1282
|
+
const lo = { attribute: !0, type: String, converter: vs, reflect: !1, hasChanged: vi }, co = (r = lo, t, i) => {
|
|
1245
1283
|
const { kind: s, metadata: e } = i;
|
|
1246
1284
|
let o = globalThis.litPropertyMetadata.get(e);
|
|
1247
1285
|
if (o === void 0 && globalThis.litPropertyMetadata.set(e, o = /* @__PURE__ */ new Map()), s === "setter" && ((r = Object.create(r)).wrapped = !0), o.set(i.name, r), s === "accessor") {
|
|
@@ -1287,7 +1325,7 @@ const yi = (r, t, i) => (i.configurable = !0, i.enumerable = !0, Reflect.decorat
|
|
|
1287
1325
|
* Copyright 2017 Google LLC
|
|
1288
1326
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1289
1327
|
*/
|
|
1290
|
-
function
|
|
1328
|
+
function ee(r, t) {
|
|
1291
1329
|
return (i, s, e) => {
|
|
1292
1330
|
const o = (n) => n.renderRoot?.querySelector(r) ?? null;
|
|
1293
1331
|
return yi(i, s, { get() {
|
|
@@ -1300,7 +1338,7 @@ function te(r, t) {
|
|
|
1300
1338
|
* Copyright 2021 Google LLC
|
|
1301
1339
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1302
1340
|
*/
|
|
1303
|
-
function
|
|
1341
|
+
function ke(r) {
|
|
1304
1342
|
return (t, i) => {
|
|
1305
1343
|
const { slot: s, selector: e } = r ?? {}, o = "slot" + (s ? `[name=${s}]` : ":not([name])");
|
|
1306
1344
|
return yi(t, i, { get() {
|
|
@@ -1327,22 +1365,22 @@ function ht(r) {
|
|
|
1327
1365
|
* Copyright 2017 Google LLC
|
|
1328
1366
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1329
1367
|
*/
|
|
1330
|
-
const wi = globalThis,
|
|
1331
|
-
\f\r]`,
|
|
1332
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Hi = /'/g, Wi = /"/g, _r = /^(?:script|style|textarea|title)$/i, po = (r) => (t, ...i) => ({ _$litType$: r, strings: t, values: i }), b = po(1), yt = Symbol.for("lit-noChange"), S = Symbol.for("lit-nothing"), Ki = /* @__PURE__ */ new WeakMap(),
|
|
1368
|
+
const wi = globalThis, ys = wi.trustedTypes, Vi = ys ? ys.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, yr = "$lit$", Yt = `lit$${Math.random().toFixed(9).slice(2)}$`, wr = "?" + Yt, ho = `<${wr}>`, de = document, Ke = () => de.createComment(""), Ye = (r) => r === null || typeof r != "object" && typeof r != "function", _i = Array.isArray, uo = (r) => _i(r) || typeof r?.[Symbol.iterator] == "function", Vs = `[
|
|
1369
|
+
\f\r]`, Fe = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Bi = /-->/g, qi = />/g, ne = RegExp(`>|${Vs}(?:([^\\s"'>=/]+)(${Vs}*=${Vs}*(?:[^
|
|
1370
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Hi = /'/g, Wi = /"/g, _r = /^(?:script|style|textarea|title)$/i, po = (r) => (t, ...i) => ({ _$litType$: r, strings: t, values: i }), b = po(1), yt = Symbol.for("lit-noChange"), S = Symbol.for("lit-nothing"), Ki = /* @__PURE__ */ new WeakMap(), he = de.createTreeWalker(de, 129);
|
|
1333
1371
|
function xr(r, t) {
|
|
1334
1372
|
if (!_i(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
1335
1373
|
return Vi !== void 0 ? Vi.createHTML(t) : t;
|
|
1336
1374
|
}
|
|
1337
1375
|
const fo = (r, t) => {
|
|
1338
1376
|
const i = r.length - 1, s = [];
|
|
1339
|
-
let e, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n =
|
|
1377
|
+
let e, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = Fe;
|
|
1340
1378
|
for (let l = 0; l < i; l++) {
|
|
1341
1379
|
const c = r[l];
|
|
1342
1380
|
let h, u, d = -1, g = 0;
|
|
1343
|
-
for (; g < c.length && (n.lastIndex = g, u = n.exec(c), u !== null); ) g = n.lastIndex, n ===
|
|
1344
|
-
const m = n ===
|
|
1345
|
-
o += n ===
|
|
1381
|
+
for (; g < c.length && (n.lastIndex = g, u = n.exec(c), u !== null); ) g = n.lastIndex, n === Fe ? u[1] === "!--" ? n = Bi : u[1] !== void 0 ? n = qi : u[2] !== void 0 ? (_r.test(u[2]) && (e = RegExp("</" + u[2], "g")), n = ne) : u[3] !== void 0 && (n = ne) : n === ne ? u[0] === ">" ? (n = e ?? Fe, d = -1) : u[1] === void 0 ? d = -2 : (d = n.lastIndex - u[2].length, h = u[1], n = u[3] === void 0 ? ne : u[3] === '"' ? Wi : Hi) : n === Wi || n === Hi ? n = ne : n === Bi || n === qi ? n = Fe : (n = ne, e = void 0);
|
|
1382
|
+
const m = n === ne && r[l + 1].startsWith("/>") ? " " : "";
|
|
1383
|
+
o += n === Fe ? c + ho : d >= 0 ? (s.push(h), c.slice(0, d) + yr + c.slice(d) + Yt + m) : c + Yt + (d === -2 ? l : m);
|
|
1346
1384
|
}
|
|
1347
1385
|
return [xr(r, o + (r[i] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
1348
1386
|
};
|
|
@@ -1352,42 +1390,42 @@ let Zs = class Pr {
|
|
|
1352
1390
|
this.parts = [];
|
|
1353
1391
|
let o = 0, n = 0;
|
|
1354
1392
|
const l = t.length - 1, c = this.parts, [h, u] = fo(t, i);
|
|
1355
|
-
if (this.el = Pr.createElement(h, s),
|
|
1393
|
+
if (this.el = Pr.createElement(h, s), he.currentNode = this.el.content, i === 2 || i === 3) {
|
|
1356
1394
|
const d = this.el.content.firstChild;
|
|
1357
1395
|
d.replaceWith(...d.childNodes);
|
|
1358
1396
|
}
|
|
1359
|
-
for (; (e =
|
|
1397
|
+
for (; (e = he.nextNode()) !== null && c.length < l; ) {
|
|
1360
1398
|
if (e.nodeType === 1) {
|
|
1361
1399
|
if (e.hasAttributes()) for (const d of e.getAttributeNames()) if (d.endsWith(yr)) {
|
|
1362
|
-
const g = u[n++], m = e.getAttribute(d).split(
|
|
1400
|
+
const g = u[n++], m = e.getAttribute(d).split(Yt), v = /([.?@])?(.*)/.exec(g);
|
|
1363
1401
|
c.push({ type: 1, index: o, name: v[2], strings: m, ctor: v[1] === "." ? bo : v[1] === "?" ? go : v[1] === "@" ? vo : Es }), e.removeAttribute(d);
|
|
1364
|
-
} else d.startsWith(
|
|
1402
|
+
} else d.startsWith(Yt) && (c.push({ type: 6, index: o }), e.removeAttribute(d));
|
|
1365
1403
|
if (_r.test(e.tagName)) {
|
|
1366
|
-
const d = e.textContent.split(
|
|
1404
|
+
const d = e.textContent.split(Yt), g = d.length - 1;
|
|
1367
1405
|
if (g > 0) {
|
|
1368
|
-
e.textContent =
|
|
1369
|
-
for (let m = 0; m < g; m++) e.append(d[m],
|
|
1370
|
-
e.append(d[g],
|
|
1406
|
+
e.textContent = ys ? ys.emptyScript : "";
|
|
1407
|
+
for (let m = 0; m < g; m++) e.append(d[m], Ke()), he.nextNode(), c.push({ type: 2, index: ++o });
|
|
1408
|
+
e.append(d[g], Ke());
|
|
1371
1409
|
}
|
|
1372
1410
|
}
|
|
1373
1411
|
} else if (e.nodeType === 8) if (e.data === wr) c.push({ type: 2, index: o });
|
|
1374
1412
|
else {
|
|
1375
1413
|
let d = -1;
|
|
1376
|
-
for (; (d = e.data.indexOf(
|
|
1414
|
+
for (; (d = e.data.indexOf(Yt, d + 1)) !== -1; ) c.push({ type: 7, index: o }), d += Yt.length - 1;
|
|
1377
1415
|
}
|
|
1378
1416
|
o++;
|
|
1379
1417
|
}
|
|
1380
1418
|
}
|
|
1381
1419
|
static createElement(t, i) {
|
|
1382
|
-
const s =
|
|
1420
|
+
const s = de.createElement("template");
|
|
1383
1421
|
return s.innerHTML = t, s;
|
|
1384
1422
|
}
|
|
1385
1423
|
};
|
|
1386
|
-
function
|
|
1424
|
+
function $e(r, t, i = r, s) {
|
|
1387
1425
|
if (t === yt) return t;
|
|
1388
1426
|
let e = s !== void 0 ? i._$Co?.[s] : i._$Cl;
|
|
1389
|
-
const o =
|
|
1390
|
-
return e?.constructor !== o && (e?._$AO?.(!1), o === void 0 ? e = void 0 : (e = new o(r), e._$AT(r, i, s)), s !== void 0 ? (i._$Co ??= [])[s] = e : i._$Cl = e), e !== void 0 && (t =
|
|
1427
|
+
const o = Ye(t) ? void 0 : t._$litDirective$;
|
|
1428
|
+
return e?.constructor !== o && (e?._$AO?.(!1), o === void 0 ? e = void 0 : (e = new o(r), e._$AT(r, i, s)), s !== void 0 ? (i._$Co ??= [])[s] = e : i._$Cl = e), e !== void 0 && (t = $e(r, e._$AS(r, t.values), e, s)), t;
|
|
1391
1429
|
}
|
|
1392
1430
|
let mo = class {
|
|
1393
1431
|
constructor(t, i) {
|
|
@@ -1400,24 +1438,24 @@ let mo = class {
|
|
|
1400
1438
|
return this._$AM._$AU;
|
|
1401
1439
|
}
|
|
1402
1440
|
u(t) {
|
|
1403
|
-
const { el: { content: i }, parts: s } = this._$AD, e = (t?.creationScope ??
|
|
1404
|
-
|
|
1405
|
-
let o =
|
|
1441
|
+
const { el: { content: i }, parts: s } = this._$AD, e = (t?.creationScope ?? de).importNode(i, !0);
|
|
1442
|
+
he.currentNode = e;
|
|
1443
|
+
let o = he.nextNode(), n = 0, l = 0, c = s[0];
|
|
1406
1444
|
for (; c !== void 0; ) {
|
|
1407
1445
|
if (n === c.index) {
|
|
1408
1446
|
let h;
|
|
1409
|
-
c.type === 2 ? h = new
|
|
1447
|
+
c.type === 2 ? h = new Oe(o, o.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(o, c.name, c.strings, this, t) : c.type === 6 && (h = new yo(o, this, t)), this._$AV.push(h), c = s[++l];
|
|
1410
1448
|
}
|
|
1411
|
-
n !== c?.index && (o =
|
|
1449
|
+
n !== c?.index && (o = he.nextNode(), n++);
|
|
1412
1450
|
}
|
|
1413
|
-
return
|
|
1451
|
+
return he.currentNode = de, e;
|
|
1414
1452
|
}
|
|
1415
1453
|
p(t) {
|
|
1416
1454
|
let i = 0;
|
|
1417
1455
|
for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, i), i += s.strings.length - 2) : s._$AI(t[i])), i++;
|
|
1418
1456
|
}
|
|
1419
1457
|
};
|
|
1420
|
-
class
|
|
1458
|
+
class Oe {
|
|
1421
1459
|
get _$AU() {
|
|
1422
1460
|
return this._$AM?._$AU ?? this._$Cv;
|
|
1423
1461
|
}
|
|
@@ -1436,7 +1474,7 @@ class ke {
|
|
|
1436
1474
|
return this._$AB;
|
|
1437
1475
|
}
|
|
1438
1476
|
_$AI(t, i = this) {
|
|
1439
|
-
t =
|
|
1477
|
+
t = $e(this, t, i), Ye(t) ? t === S || t == null || t === "" ? (this._$AH !== S && this._$AR(), this._$AH = S) : t !== this._$AH && t !== yt && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : uo(t) ? this.k(t) : this._(t);
|
|
1440
1478
|
}
|
|
1441
1479
|
O(t) {
|
|
1442
1480
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -1445,7 +1483,7 @@ class ke {
|
|
|
1445
1483
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
1446
1484
|
}
|
|
1447
1485
|
_(t) {
|
|
1448
|
-
this._$AH !== S &&
|
|
1486
|
+
this._$AH !== S && Ye(this._$AH) ? this._$AA.nextSibling.data = t : this.T(de.createTextNode(t)), this._$AH = t;
|
|
1449
1487
|
}
|
|
1450
1488
|
$(t) {
|
|
1451
1489
|
const { values: i, _$litType$: s } = t, e = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = Zs.createElement(xr(s.h, s.h[0]), this.options)), s);
|
|
@@ -1463,7 +1501,7 @@ class ke {
|
|
|
1463
1501
|
_i(this._$AH) || (this._$AH = [], this._$AR());
|
|
1464
1502
|
const i = this._$AH;
|
|
1465
1503
|
let s, e = 0;
|
|
1466
|
-
for (const o of t) e === i.length ? i.push(s = new
|
|
1504
|
+
for (const o of t) e === i.length ? i.push(s = new Oe(this.O(Ke()), this.O(Ke()), this, this.options)) : s = i[e], s._$AI(o), e++;
|
|
1467
1505
|
e < i.length && (this._$AR(s && s._$AB.nextSibling, e), i.length = e);
|
|
1468
1506
|
}
|
|
1469
1507
|
_$AR(t = this._$AA.nextSibling, i) {
|
|
@@ -1489,11 +1527,11 @@ class Es {
|
|
|
1489
1527
|
_$AI(t, i = this, s, e) {
|
|
1490
1528
|
const o = this.strings;
|
|
1491
1529
|
let n = !1;
|
|
1492
|
-
if (o === void 0) t =
|
|
1530
|
+
if (o === void 0) t = $e(this, t, i, 0), n = !Ye(t) || t !== this._$AH && t !== yt, n && (this._$AH = t);
|
|
1493
1531
|
else {
|
|
1494
1532
|
const l = t;
|
|
1495
1533
|
let c, h;
|
|
1496
|
-
for (t = o[0], c = 0; c < o.length - 1; c++) h =
|
|
1534
|
+
for (t = o[0], c = 0; c < o.length - 1; c++) h = $e(this, l[s + c], i, c), h === yt && (h = this._$AH[c]), n ||= !Ye(h) || h !== this._$AH[c], h === S ? t = S : t !== S && (t += (h ?? "") + o[c + 1]), this._$AH[c] = h;
|
|
1497
1535
|
}
|
|
1498
1536
|
n && !e && this.j(t);
|
|
1499
1537
|
}
|
|
@@ -1522,7 +1560,7 @@ class vo extends Es {
|
|
|
1522
1560
|
super(t, i, s, e, o), this.type = 5;
|
|
1523
1561
|
}
|
|
1524
1562
|
_$AI(t, i = this) {
|
|
1525
|
-
if ((t =
|
|
1563
|
+
if ((t = $e(this, t, i, 0) ?? S) === yt) return;
|
|
1526
1564
|
const s = this._$AH, e = t === S && s !== S || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== S && (s === S || e);
|
|
1527
1565
|
e && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
1528
1566
|
}
|
|
@@ -1538,17 +1576,17 @@ class yo {
|
|
|
1538
1576
|
return this._$AM._$AU;
|
|
1539
1577
|
}
|
|
1540
1578
|
_$AI(t) {
|
|
1541
|
-
|
|
1579
|
+
$e(this, t);
|
|
1542
1580
|
}
|
|
1543
1581
|
}
|
|
1544
|
-
const wo = { I:
|
|
1545
|
-
_o?.(Zs,
|
|
1582
|
+
const wo = { I: Oe }, _o = wi.litHtmlPolyfillSupport;
|
|
1583
|
+
_o?.(Zs, Oe), (wi.litHtmlVersions ??= []).push("3.3.1");
|
|
1546
1584
|
const xo = (r, t, i) => {
|
|
1547
1585
|
const s = i?.renderBefore ?? t;
|
|
1548
1586
|
let e = s._$litPart$;
|
|
1549
1587
|
if (e === void 0) {
|
|
1550
1588
|
const o = i?.renderBefore ?? null;
|
|
1551
|
-
s._$litPart$ = e = new
|
|
1589
|
+
s._$litPart$ = e = new Oe(t.insertBefore(Ke(), o), o, void 0, i ?? {});
|
|
1552
1590
|
}
|
|
1553
1591
|
return e._$AI(r), e;
|
|
1554
1592
|
};
|
|
@@ -1557,7 +1595,7 @@ const xo = (r, t, i) => {
|
|
|
1557
1595
|
* Copyright 2020 Google LLC
|
|
1558
1596
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1559
1597
|
*/
|
|
1560
|
-
const { I: Po } = wo, $o = (r) => r.strings === void 0, Yi = () => document.createComment(""),
|
|
1598
|
+
const { I: Po } = wo, $o = (r) => r.strings === void 0, Yi = () => document.createComment(""), ze = (r, t, i) => {
|
|
1561
1599
|
const s = r._$AA.parentNode, e = t === void 0 ? r._$AB : t._$AA;
|
|
1562
1600
|
if (i === void 0) {
|
|
1563
1601
|
const o = s.insertBefore(Yi(), e), n = s.insertBefore(Yi(), e);
|
|
@@ -1577,7 +1615,7 @@ const { I: Po } = wo, $o = (r) => r.strings === void 0, Yi = () => document.crea
|
|
|
1577
1615
|
}
|
|
1578
1616
|
}
|
|
1579
1617
|
return i;
|
|
1580
|
-
},
|
|
1618
|
+
}, ae = (r, t, i = r) => (r._$AI(t, i), r), Co = {}, So = (r, t = Co) => r._$AH = t, Ao = (r) => r._$AH, Bs = (r) => {
|
|
1581
1619
|
r._$AR(), r._$AA.remove();
|
|
1582
1620
|
};
|
|
1583
1621
|
/**
|
|
@@ -1585,8 +1623,8 @@ const { I: Po } = wo, $o = (r) => r.strings === void 0, Yi = () => document.crea
|
|
|
1585
1623
|
* Copyright 2017 Google LLC
|
|
1586
1624
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1587
1625
|
*/
|
|
1588
|
-
const
|
|
1589
|
-
let
|
|
1626
|
+
const ge = { ATTRIBUTE: 1, CHILD: 2 }, se = (r) => (...t) => ({ _$litDirective$: r, values: t });
|
|
1627
|
+
let De = class {
|
|
1590
1628
|
constructor(t) {
|
|
1591
1629
|
}
|
|
1592
1630
|
get _$AU() {
|
|
@@ -1612,7 +1650,7 @@ const qe = (r, t) => {
|
|
|
1612
1650
|
if (i === void 0) return !1;
|
|
1613
1651
|
for (const s of i) s._$AO?.(t, !1), qe(s, t);
|
|
1614
1652
|
return !0;
|
|
1615
|
-
},
|
|
1653
|
+
}, ws = (r) => {
|
|
1616
1654
|
let t, i;
|
|
1617
1655
|
do {
|
|
1618
1656
|
if ((t = r._$AM) === void 0) break;
|
|
@@ -1627,18 +1665,18 @@ const qe = (r, t) => {
|
|
|
1627
1665
|
}
|
|
1628
1666
|
};
|
|
1629
1667
|
function ko(r) {
|
|
1630
|
-
this._$AN !== void 0 ? (
|
|
1668
|
+
this._$AN !== void 0 ? (ws(this), this._$AM = r, $r(this)) : this._$AM = r;
|
|
1631
1669
|
}
|
|
1632
1670
|
function Oo(r, t = !1, i = 0) {
|
|
1633
1671
|
const s = this._$AH, e = this._$AN;
|
|
1634
|
-
if (e !== void 0 && e.size !== 0) if (t) if (Array.isArray(s)) for (let o = i; o < s.length; o++) qe(s[o], !1),
|
|
1635
|
-
else s != null && (qe(s, !1),
|
|
1672
|
+
if (e !== void 0 && e.size !== 0) if (t) if (Array.isArray(s)) for (let o = i; o < s.length; o++) qe(s[o], !1), ws(s[o]);
|
|
1673
|
+
else s != null && (qe(s, !1), ws(s));
|
|
1636
1674
|
else qe(this, r);
|
|
1637
1675
|
}
|
|
1638
1676
|
const Do = (r) => {
|
|
1639
|
-
r.type ==
|
|
1677
|
+
r.type == ge.CHILD && (r._$AP ??= Oo, r._$AQ ??= ko);
|
|
1640
1678
|
};
|
|
1641
|
-
class xi extends
|
|
1679
|
+
class xi extends De {
|
|
1642
1680
|
constructor() {
|
|
1643
1681
|
super(...arguments), this._$AN = void 0;
|
|
1644
1682
|
}
|
|
@@ -1646,7 +1684,7 @@ class xi extends Oe {
|
|
|
1646
1684
|
super._$AT(t, i, s), $r(this), this.isConnected = t._$AU;
|
|
1647
1685
|
}
|
|
1648
1686
|
_$AO(t, i = !0) {
|
|
1649
|
-
t !== this.isConnected && (this.isConnected = t, t ? this.reconnected?.() : this.disconnected?.()), i && (qe(this, t),
|
|
1687
|
+
t !== this.isConnected && (this.isConnected = t, t ? this.reconnected?.() : this.disconnected?.()), i && (qe(this, t), ws(this));
|
|
1650
1688
|
}
|
|
1651
1689
|
setValue(t) {
|
|
1652
1690
|
if ($o(this._$Ct)) this._$Ct._$AI(t, this);
|
|
@@ -1666,7 +1704,7 @@ class xi extends Oe {
|
|
|
1666
1704
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1667
1705
|
*/
|
|
1668
1706
|
const Pi = globalThis;
|
|
1669
|
-
let _ = class extends
|
|
1707
|
+
let _ = class extends _e {
|
|
1670
1708
|
constructor() {
|
|
1671
1709
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
1672
1710
|
}
|
|
@@ -1941,7 +1979,7 @@ const F = class F {
|
|
|
1941
1979
|
}
|
|
1942
1980
|
};
|
|
1943
1981
|
F.loadingGetPromises = /* @__PURE__ */ new Map(), F.tokens = /* @__PURE__ */ new Map(), F.invalidTokens = [], F.failledTokenUpdates = /* @__PURE__ */ new Map(), F.firstCallDoneFlags = /* @__PURE__ */ new Map();
|
|
1944
|
-
let
|
|
1982
|
+
let Ce = F;
|
|
1945
1983
|
Q.getApiConfiguration(
|
|
1946
1984
|
document.body || document.documentElement
|
|
1947
1985
|
);
|
|
@@ -1952,9 +1990,9 @@ const Eo = async (r, t) => {
|
|
|
1952
1990
|
* Copyright 2017 Google LLC
|
|
1953
1991
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1954
1992
|
*/
|
|
1955
|
-
let Xs = class extends
|
|
1993
|
+
let Xs = class extends De {
|
|
1956
1994
|
constructor(t) {
|
|
1957
|
-
if (super(t), this.it = S, t.type !==
|
|
1995
|
+
if (super(t), this.it = S, t.type !== ge.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
1958
1996
|
}
|
|
1959
1997
|
render(t) {
|
|
1960
1998
|
if (t === S || t == null) return this._t = void 0, this.it = t;
|
|
@@ -1967,7 +2005,7 @@ let Xs = class extends Oe {
|
|
|
1967
2005
|
}
|
|
1968
2006
|
};
|
|
1969
2007
|
Xs.directiveName = "unsafeHTML", Xs.resultType = 1;
|
|
1970
|
-
const z =
|
|
2008
|
+
const z = se(Xs), Gs = /* @__PURE__ */ new Map(), Zi = (r) => {
|
|
1971
2009
|
if (!r) return null;
|
|
1972
2010
|
const t = Q.getApiConfiguration(r), i = Q.getAncestorAttributeValue(
|
|
1973
2011
|
r,
|
|
@@ -1987,7 +2025,7 @@ const z = ee(Xs), Gs = /* @__PURE__ */ new Map(), Zi = (r) => {
|
|
|
1987
2025
|
break;
|
|
1988
2026
|
}
|
|
1989
2027
|
return o || (o = {
|
|
1990
|
-
api: new
|
|
2028
|
+
api: new Ce(t),
|
|
1991
2029
|
keysToTranslate: /* @__PURE__ */ new Set(),
|
|
1992
2030
|
translatedKeys: /* @__PURE__ */ new Set(),
|
|
1993
2031
|
wordingProvider: i,
|
|
@@ -2103,14 +2141,14 @@ const z = ee(Xs), Gs = /* @__PURE__ */ new Map(), Zi = (r) => {
|
|
|
2103
2141
|
V.publisher = k.get("sonic-wording", {
|
|
2104
2142
|
localStorageMode: "enabled"
|
|
2105
2143
|
}), V.firstCall = !0, V.versionProviderHandlers = /* @__PURE__ */ new Map();
|
|
2106
|
-
let
|
|
2107
|
-
const
|
|
2144
|
+
let xe = V;
|
|
2145
|
+
const No = se(xe), To = No;
|
|
2108
2146
|
var Io = Object.defineProperty, Mo = Object.getOwnPropertyDescriptor, kt = (r, t, i, s) => {
|
|
2109
2147
|
for (var e = s > 1 ? void 0 : s ? Mo(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
2110
2148
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
2111
2149
|
return s && e && Io(t, i, e), e;
|
|
2112
2150
|
};
|
|
2113
|
-
let
|
|
2151
|
+
let hs = !1, qs = /* @__PURE__ */ new Set();
|
|
2114
2152
|
const G = (r, t) => {
|
|
2115
2153
|
var e;
|
|
2116
2154
|
const i = (e = class extends r {
|
|
@@ -2169,7 +2207,7 @@ const G = (r, t) => {
|
|
|
2169
2207
|
this.initPublisher(), this.addDebugger(), super.connectedCallback();
|
|
2170
2208
|
}
|
|
2171
2209
|
disconnectedCallback() {
|
|
2172
|
-
this.removeDebugger(), super.disconnectedCallback(), this.publisher && (this.publisher.stopTemplateFilling(this), this.publisher.offInternalMutation(this.requestUpdate)),
|
|
2210
|
+
this.removeDebugger(), super.disconnectedCallback(), this.publisher && (this.publisher.stopTemplateFilling(this), this.publisher.offInternalMutation(this.requestUpdate)), xe.publisher.stopTemplateFilling(this), this.onAssign && this.publisher?.offAssign(this.onAssign);
|
|
2173
2211
|
}
|
|
2174
2212
|
addDebugger() {
|
|
2175
2213
|
if (this.hasAttribute("debug") && !this.defferedDebug) {
|
|
@@ -2179,11 +2217,11 @@ const G = (r, t) => {
|
|
|
2179
2217
|
n.position = "fixed", n.top = "0", n.right = "0", n.margin = "auto", n.borderRadius = ".7rem", n.backgroundColor = "#0f1729", n.color = "#c5d4f9", n.padding = "16px 16px", n.margin = "16px 16px", n.boxShadow = "0 10px 30px -18px rgba(0,0,0,.3)", n.overflowY = "auto", n.zIndex = "99999999", n.maxHeight = "calc(100vh - 32px)", n.fontFamily = "Consolas, monospace", n.maxWidth = "min(50vw,25rem)", n.fontSize = "12px", n.minWidth = "300px", n.overflowWrap = "break-word", n.resize = "vertical";
|
|
2180
2218
|
}
|
|
2181
2219
|
this.addEventListener("click", (n) => {
|
|
2182
|
-
n.ctrlKey && (n.preventDefault(),
|
|
2220
|
+
n.ctrlKey && (n.preventDefault(), hs = !hs);
|
|
2183
2221
|
}), this.dataProvider && (window[this.dataProvider] = this.publisher), this.addEventListener("mouseover", () => {
|
|
2184
|
-
|
|
2222
|
+
hs || this.removeDebugger(), document.body.appendChild(this.debug), qs.add(this.debug);
|
|
2185
2223
|
}), this.addEventListener("mouseout", () => {
|
|
2186
|
-
|
|
2224
|
+
hs || this.removeDebugger();
|
|
2187
2225
|
}), this.publisher?.onInternalMutation(() => {
|
|
2188
2226
|
this.debug.innerHTML = `🤖 DataProvider : "<b style="font-weight:bold;color:#fff;">${this.dataProvider}</b>"<br>
|
|
2189
2227
|
<div style="font-size:10px;border-top:1px dashed;margin-top:5px;padding-left:23px;opacity:.6;padding-top:5px;">
|
|
@@ -2220,8 +2258,8 @@ const G = (r, t) => {
|
|
|
2220
2258
|
async initWording() {
|
|
2221
2259
|
const n = Object.getOwnPropertyNames(this.constructor.prototype);
|
|
2222
2260
|
for (const l of n)
|
|
2223
|
-
l.indexOf("wording_") == 0 &&
|
|
2224
|
-
|
|
2261
|
+
l.indexOf("wording_") == 0 && xe.callApi(this, l.substring(8));
|
|
2262
|
+
xe.publisher.startTemplateFilling(this);
|
|
2225
2263
|
}
|
|
2226
2264
|
/**
|
|
2227
2265
|
*
|
|
@@ -2287,7 +2325,7 @@ var jo = Object.defineProperty, Fo = (r, t, i, s) => {
|
|
|
2287
2325
|
(n = r[o]) && (e = n(t, i, e) || e);
|
|
2288
2326
|
return e && jo(t, i, e), e;
|
|
2289
2327
|
};
|
|
2290
|
-
const
|
|
2328
|
+
const ts = (r) => {
|
|
2291
2329
|
class t extends r {
|
|
2292
2330
|
constructor() {
|
|
2293
2331
|
super(...arguments), this.templates = null, this.templateValueAttribute = "data-value", this.templateList = [], this.templateParts = {}, this.templatePartsList = [];
|
|
@@ -2312,7 +2350,7 @@ var zo = Object.defineProperty, Ro = Object.getOwnPropertyDescriptor, K = (r, t,
|
|
|
2312
2350
|
};
|
|
2313
2351
|
const Uo = "sonic-date";
|
|
2314
2352
|
mi(() => R.updateComponentsLanguage());
|
|
2315
|
-
let R = class extends G(
|
|
2353
|
+
let R = class extends G(ts(_)) {
|
|
2316
2354
|
constructor() {
|
|
2317
2355
|
super(...arguments), this.pageLanguage = "fr", this.duAu = [], this._wording_billet_periode_validite = "", this.designMode = null, this.time_zone = null, this.date = null, this.date_string = null, this.start_date_string = null, this.end_date_string = null, this.start_date = 0, this.computedStartDate = 0, this.end_date = 0, this.computedEndDate = 0, this.hide_hours = !1, this.era = "", this.year = "numeric", this.month = "short", this.day = "2-digit", this.weekday = "short", this.hour = "2-digit", this.hour12 = !1, this.minute = "2-digit", this.language = "", this.renderIf = !0, this.now = !1, this.startDateObject = /* @__PURE__ */ new Date(), this.endDateObject = /* @__PURE__ */ new Date();
|
|
2318
2356
|
}
|
|
@@ -2362,7 +2400,7 @@ let R = class extends G(Je(_)) {
|
|
|
2362
2400
|
this.language || this.pageLanguage,
|
|
2363
2401
|
i
|
|
2364
2402
|
).formatToParts(s);
|
|
2365
|
-
return this.designMode && e.forEach((o) => o.value = o.value.replace(/,/g, " ")), e[0].value =
|
|
2403
|
+
return this.designMode && e.forEach((o) => o.value = o.value.replace(/,/g, " ")), e[0].value = bs.ucFirst(e[0].value), e.filter((o) => o.hidden !== !0);
|
|
2366
2404
|
}
|
|
2367
2405
|
dateStringToSeconds(r) {
|
|
2368
2406
|
return new Date(r).getTime() / 1e3;
|
|
@@ -2549,9 +2587,9 @@ let tt = (H = class {
|
|
|
2549
2587
|
* Copyright 2018 Google LLC
|
|
2550
2588
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2551
2589
|
*/
|
|
2552
|
-
const Cr = "important", Vo = " !" + Cr, pt =
|
|
2590
|
+
const Cr = "important", Vo = " !" + Cr, pt = se(class extends De {
|
|
2553
2591
|
constructor(r) {
|
|
2554
|
-
if (super(r), r.type !==
|
|
2592
|
+
if (super(r), r.type !== ge.ATTRIBUTE || r.name !== "style" || r.strings?.length > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
|
|
2555
2593
|
}
|
|
2556
2594
|
render(r) {
|
|
2557
2595
|
return Object.keys(r).reduce(((t, i) => {
|
|
@@ -2579,7 +2617,7 @@ var Bo = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, Ot = (r, t
|
|
|
2579
2617
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
2580
2618
|
return s && e && Bo(t, i, e), e;
|
|
2581
2619
|
};
|
|
2582
|
-
const
|
|
2620
|
+
const ds = /* @__PURE__ */ new Map(), Le = (r) => {
|
|
2583
2621
|
class t extends r {
|
|
2584
2622
|
constructor(...s) {
|
|
2585
2623
|
super(), this.touched = !1, this.error = !1, this.autofocus = !1, this.required = !1, this.forceAutoFill = !1, this.disabled = !1, this.formDataProvider = "", this._name = "", this._value = "", this.onValueAssign = (e) => {
|
|
@@ -2677,11 +2715,11 @@ const hs = /* @__PURE__ */ new Map(), De = (r) => {
|
|
|
2677
2715
|
const e = s.split(" "), o = e[0];
|
|
2678
2716
|
if (!o) return;
|
|
2679
2717
|
for (const l of e) {
|
|
2680
|
-
|
|
2681
|
-
const c =
|
|
2718
|
+
ds.has(l) || ds.set(l, []);
|
|
2719
|
+
const c = ds.get(l);
|
|
2682
2720
|
c?.indexOf(this) == -1 && c.push(this);
|
|
2683
2721
|
}
|
|
2684
|
-
const n =
|
|
2722
|
+
const n = ds.get(o);
|
|
2685
2723
|
this.addEventListener("keydown", (l) => {
|
|
2686
2724
|
const c = l;
|
|
2687
2725
|
if (!["ArrowDown", "ArrowUp"].includes(c.key)) return;
|
|
@@ -2750,7 +2788,7 @@ const hs = /* @__PURE__ */ new Map(), De = (r) => {
|
|
|
2750
2788
|
a()
|
|
2751
2789
|
], t.prototype, "value", 1), t;
|
|
2752
2790
|
};
|
|
2753
|
-
let Ho = class
|
|
2791
|
+
let Ho = class ce {
|
|
2754
2792
|
/**
|
|
2755
2793
|
* Vérifie si les deux tableaux ont le même contenu
|
|
2756
2794
|
*/
|
|
@@ -2797,7 +2835,7 @@ let Ho = class le {
|
|
|
2797
2835
|
})
|
|
2798
2836
|
}),
|
|
2799
2837
|
value: () => ({
|
|
2800
|
-
forKey: (i) =>
|
|
2838
|
+
forKey: (i) => ce.from(t.map((s) => s[i]))
|
|
2801
2839
|
}),
|
|
2802
2840
|
copy: () => ({
|
|
2803
2841
|
fromKey: (i) => ({
|
|
@@ -2809,8 +2847,8 @@ let Ho = class le {
|
|
|
2809
2847
|
})
|
|
2810
2848
|
})
|
|
2811
2849
|
}),
|
|
2812
|
-
map: (i) =>
|
|
2813
|
-
filter: (i) =>
|
|
2850
|
+
map: (i) => ce.from(t.map(i)),
|
|
2851
|
+
filter: (i) => ce.from(t.filter(i)),
|
|
2814
2852
|
find: (i) => t.find(i),
|
|
2815
2853
|
some: (i) => t.some(i),
|
|
2816
2854
|
every: (i) => t.every(i),
|
|
@@ -2827,14 +2865,14 @@ let Ho = class le {
|
|
|
2827
2865
|
}
|
|
2828
2866
|
s[e.get(n)].items.push(o);
|
|
2829
2867
|
}
|
|
2830
|
-
return
|
|
2868
|
+
return ce.from(s);
|
|
2831
2869
|
}
|
|
2832
2870
|
}),
|
|
2833
2871
|
without: () => ({
|
|
2834
2872
|
duplicates: () => ({
|
|
2835
2873
|
forKey: (i) => {
|
|
2836
2874
|
const s = [...new Set(t.map((e) => e[i]))];
|
|
2837
|
-
return
|
|
2875
|
+
return ce.from(
|
|
2838
2876
|
s.map(
|
|
2839
2877
|
(e) => t.find((o) => o[i] == e)
|
|
2840
2878
|
)
|
|
@@ -2845,7 +2883,7 @@ let Ho = class le {
|
|
|
2845
2883
|
havingSameValue: () => ({
|
|
2846
2884
|
forKey: (s) => {
|
|
2847
2885
|
const e = (o, n) => (l) => o[n] != l[n];
|
|
2848
|
-
return
|
|
2886
|
+
return ce.from(
|
|
2849
2887
|
t.filter(
|
|
2850
2888
|
(o) => i.every(
|
|
2851
2889
|
e(o, s)
|
|
@@ -2863,7 +2901,7 @@ let Ho = class le {
|
|
|
2863
2901
|
function Wo(r) {
|
|
2864
2902
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
2865
2903
|
}
|
|
2866
|
-
var
|
|
2904
|
+
var Ve = { exports: {} }, Ko = Ve.exports, Gi;
|
|
2867
2905
|
function Yo() {
|
|
2868
2906
|
return Gi || (Gi = 1, (function(r, t) {
|
|
2869
2907
|
var i = [].slice;
|
|
@@ -2936,11 +2974,11 @@ function Yo() {
|
|
|
2936
2974
|
return f == null && (f = p()), f(w);
|
|
2937
2975
|
};
|
|
2938
2976
|
}, s.baseMany = function(p, f, w, A, O) {
|
|
2939
|
-
var q, Z, ot,
|
|
2940
|
-
for (ot = O,
|
|
2941
|
-
w ?
|
|
2942
|
-
if (!(A &&
|
|
2943
|
-
return new s.Result(
|
|
2977
|
+
var q, Z, ot, je;
|
|
2978
|
+
for (ot = O, je = w ? "" : []; !(f != null && (q = f(ot), q != null) || (Z = p(ot), Z == null)); )
|
|
2979
|
+
w ? je += Z.value : je.push(Z.value), ot = Z.rest;
|
|
2980
|
+
if (!(A && je.length === 0))
|
|
2981
|
+
return new s.Result(je, ot);
|
|
2944
2982
|
}, s.many1 = function(p) {
|
|
2945
2983
|
return function(f) {
|
|
2946
2984
|
return s.baseMany(p, null, !1, !0, f);
|
|
@@ -3100,24 +3138,24 @@ function Yo() {
|
|
|
3100
3138
|
return L(this.ast, p, {});
|
|
3101
3139
|
}, e.escapeForRegex = d, e.concatMap = h, e.stringConcatMap = P, e.regexGroupCount = y, e.keysAndValuesToObject = m, e.P = s, e.newParser = v, e.defaultOptions = u, e.astNodeToRegexString = l, e.astNodeToNames = n, e.getParam = g, e.astNodeContainsSegmentsForProvidedParams = o, e.stringify = L, e;
|
|
3102
3140
|
});
|
|
3103
|
-
})(
|
|
3141
|
+
})(Ve, Ve.exports)), Ve.exports;
|
|
3104
3142
|
}
|
|
3105
3143
|
var Zo = Yo();
|
|
3106
|
-
const Vt = /* @__PURE__ */ Wo(Zo), Xo = Hr, Go = Ho, Qo = Ds, Jo =
|
|
3144
|
+
const Vt = /* @__PURE__ */ Wo(Zo), Xo = Hr, Go = Ho, Qo = Ds, Jo = bs, Zt = Q, tn = tt, Ee = st, en = Ce, sn = Vt;
|
|
3107
3145
|
window["concorde-utils"] = window["concorde-utils"] || {};
|
|
3108
3146
|
window["concorde-utils"] = {
|
|
3109
3147
|
Utils: Xo,
|
|
3110
3148
|
Arrays: Go,
|
|
3111
3149
|
DataBindObserver: Qo,
|
|
3112
3150
|
Format: Jo,
|
|
3113
|
-
HTML:
|
|
3151
|
+
HTML: Zt,
|
|
3114
3152
|
LocationHandler: tn,
|
|
3115
|
-
Objects:
|
|
3153
|
+
Objects: Ee,
|
|
3116
3154
|
PublisherManager: k,
|
|
3117
3155
|
api: en,
|
|
3118
3156
|
URLPattern: sn
|
|
3119
3157
|
};
|
|
3120
|
-
var rn = Object.defineProperty, on = Object.getOwnPropertyDescriptor,
|
|
3158
|
+
var rn = Object.defineProperty, on = Object.getOwnPropertyDescriptor, Re = (r, t, i, s) => {
|
|
3121
3159
|
for (var e = s > 1 ? void 0 : s ? on(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
3122
3160
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
3123
3161
|
return s && e && rn(t, i, e), e;
|
|
@@ -3250,15 +3288,15 @@ const $i = (r) => {
|
|
|
3250
3288
|
])), this.hasAttribute("checked") && (!this.publisher || this.publisher.get().checked !== !1) && setTimeout(() => this.checked = !0, 1);
|
|
3251
3289
|
}
|
|
3252
3290
|
}
|
|
3253
|
-
return
|
|
3291
|
+
return Re([
|
|
3254
3292
|
a()
|
|
3255
|
-
], t.prototype, "value", 1),
|
|
3293
|
+
], t.prototype, "value", 1), Re([
|
|
3256
3294
|
a()
|
|
3257
|
-
], t.prototype, "forceAutoFill", 2),
|
|
3295
|
+
], t.prototype, "forceAutoFill", 2), Re([
|
|
3258
3296
|
a({ type: Boolean })
|
|
3259
|
-
], t.prototype, "unique", 2),
|
|
3297
|
+
], t.prototype, "unique", 2), Re([
|
|
3260
3298
|
a({ type: Boolean })
|
|
3261
|
-
], t.prototype, "radio", 2),
|
|
3299
|
+
], t.prototype, "radio", 2), Re([
|
|
3262
3300
|
a()
|
|
3263
3301
|
], t.prototype, "checked", 1), t;
|
|
3264
3302
|
};
|
|
@@ -3267,7 +3305,7 @@ const $i = (r) => {
|
|
|
3267
3305
|
* Copyright 2018 Google LLC
|
|
3268
3306
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3269
3307
|
*/
|
|
3270
|
-
const C = (r) => r ?? S,
|
|
3308
|
+
const C = (r) => r ?? S, Tt = $`
|
|
3271
3309
|
/*SIZES*/
|
|
3272
3310
|
:host {
|
|
3273
3311
|
--sc-_fs: 1rem;
|
|
@@ -3307,7 +3345,7 @@ var nn = Object.defineProperty, an = Object.getOwnPropertyDescriptor, B = (r, t,
|
|
|
3307
3345
|
return s && e && nn(t, i, e), e;
|
|
3308
3346
|
};
|
|
3309
3347
|
const ln = "sonic-button";
|
|
3310
|
-
let M = class extends $i(
|
|
3348
|
+
let M = class extends $i(Le(G(_))) {
|
|
3311
3349
|
constructor() {
|
|
3312
3350
|
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 = () => {
|
|
3313
3351
|
window.removeEventListener("pointerup", this.handleRepeatend), window.removeEventListener("blur", this.handleRepeatend), this.autoRepeat && (this.isRepeating = !1);
|
|
@@ -3406,7 +3444,7 @@ let M = class extends $i(De(G(_))) {
|
|
|
3406
3444
|
}
|
|
3407
3445
|
};
|
|
3408
3446
|
M.styles = [
|
|
3409
|
-
|
|
3447
|
+
Tt,
|
|
3410
3448
|
$`
|
|
3411
3449
|
* {
|
|
3412
3450
|
box-sizing: border-box;
|
|
@@ -3821,10 +3859,10 @@ B([
|
|
|
3821
3859
|
E()
|
|
3822
3860
|
], M.prototype, "hasSuffix", 2);
|
|
3823
3861
|
B([
|
|
3824
|
-
|
|
3862
|
+
ke({ flatten: !0, slot: "prefix" })
|
|
3825
3863
|
], M.prototype, "prefixes", 2);
|
|
3826
3864
|
B([
|
|
3827
|
-
|
|
3865
|
+
ke({ flatten: !0, slot: "suffix" })
|
|
3828
3866
|
], M.prototype, "suffixes", 2);
|
|
3829
3867
|
B([
|
|
3830
3868
|
a({ type: String })
|
|
@@ -3865,9 +3903,9 @@ const Qi = (r, t, i) => {
|
|
|
3865
3903
|
const s = /* @__PURE__ */ new Map();
|
|
3866
3904
|
for (let e = t; e <= i; e++) s.set(r[e], e);
|
|
3867
3905
|
return s;
|
|
3868
|
-
},
|
|
3906
|
+
}, Ns = se(class extends De {
|
|
3869
3907
|
constructor(r) {
|
|
3870
|
-
if (super(r), r.type !==
|
|
3908
|
+
if (super(r), r.type !== ge.CHILD) throw Error("repeat() can only be used in text expressions");
|
|
3871
3909
|
}
|
|
3872
3910
|
dt(r, t, i) {
|
|
3873
3911
|
let s;
|
|
@@ -3887,22 +3925,22 @@ const Qi = (r, t, i) => {
|
|
|
3887
3925
|
let h, u, d = 0, g = e.length - 1, m = 0, v = o.length - 1;
|
|
3888
3926
|
for (; d <= g && m <= v; ) if (e[d] === null) d++;
|
|
3889
3927
|
else if (e[g] === null) g--;
|
|
3890
|
-
else if (l[d] === n[m]) c[m] =
|
|
3891
|
-
else if (l[g] === n[v]) c[v] =
|
|
3892
|
-
else if (l[d] === n[v]) c[v] =
|
|
3893
|
-
else if (l[g] === n[m]) c[m] =
|
|
3928
|
+
else if (l[d] === n[m]) c[m] = ae(e[d], o[m]), d++, m++;
|
|
3929
|
+
else if (l[g] === n[v]) c[v] = ae(e[g], o[v]), g--, v--;
|
|
3930
|
+
else if (l[d] === n[v]) c[v] = ae(e[d], o[v]), ze(r, c[v + 1], e[d]), d++, v--;
|
|
3931
|
+
else if (l[g] === n[m]) c[m] = ae(e[g], o[m]), ze(r, e[d], e[g]), g--, m++;
|
|
3894
3932
|
else if (h === void 0 && (h = Qi(n, m, v), u = Qi(l, d, g)), h.has(l[d])) if (h.has(l[g])) {
|
|
3895
3933
|
const y = u.get(n[m]), P = y !== void 0 ? e[y] : null;
|
|
3896
3934
|
if (P === null) {
|
|
3897
|
-
const L =
|
|
3898
|
-
|
|
3899
|
-
} else c[m] =
|
|
3935
|
+
const L = ze(r, e[d]);
|
|
3936
|
+
ae(L, o[m]), c[m] = L;
|
|
3937
|
+
} else c[m] = ae(P, o[m]), ze(r, e[d], P), e[y] = null;
|
|
3900
3938
|
m++;
|
|
3901
3939
|
} else Bs(e[g]), g--;
|
|
3902
3940
|
else Bs(e[d]), d++;
|
|
3903
3941
|
for (; m <= v; ) {
|
|
3904
|
-
const y =
|
|
3905
|
-
|
|
3942
|
+
const y = ze(r, c[v + 1]);
|
|
3943
|
+
ae(y, o[m]), c[m++] = y;
|
|
3906
3944
|
}
|
|
3907
3945
|
for (; d <= g; ) {
|
|
3908
3946
|
const y = e[d++];
|
|
@@ -3937,7 +3975,7 @@ const Hs = /* @__PURE__ */ new Map(), tr = /* @__PURE__ */ new WeakSet(), er = (
|
|
|
3937
3975
|
} }, hn = { duration: 333, easing: "ease-in-out" }, dn = ["left", "top", "width", "height", "opacity", "color", "background"], rr = /* @__PURE__ */ new WeakMap();
|
|
3938
3976
|
class un extends xi {
|
|
3939
3977
|
constructor(t) {
|
|
3940
|
-
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type ===
|
|
3978
|
+
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === ge.CHILD) throw Error("The `animate` directive must be used in attribute position.");
|
|
3941
3979
|
this.createFinished();
|
|
3942
3980
|
}
|
|
3943
3981
|
createFinished() {
|
|
@@ -4097,7 +4135,7 @@ class un extends xi {
|
|
|
4097
4135
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, i);
|
|
4098
4136
|
}
|
|
4099
4137
|
}
|
|
4100
|
-
const pn =
|
|
4138
|
+
const pn = se(un), fn = { cancel: `<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4101
4139
|
<path d="M6.75827 17.2426L12.0009 12M17.2435 6.75736L12.0009 12M12.0009 12L6.75827 6.75736M12.0009 12L17.2435 17.2426" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4102
4140
|
</svg>
|
|
4103
4141
|
`, "check-circled-outline": `<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -4135,7 +4173,7 @@ const pn = ee(un), fn = { cancel: `<svg width="24" height="24" stroke-width="1.5
|
|
|
4135
4173
|
</svg>
|
|
4136
4174
|
` }, mn = {
|
|
4137
4175
|
core: fn
|
|
4138
|
-
},
|
|
4176
|
+
}, us = /* @__PURE__ */ new Map(), He = {
|
|
4139
4177
|
heroicons: {
|
|
4140
4178
|
url: "https://cdn.jsdelivr.net/npm/heroicons@2.0.4/24/$prefix/$name.svg",
|
|
4141
4179
|
defaultPrefix: "outline"
|
|
@@ -4161,7 +4199,7 @@ const pn = ee(un), fn = { cancel: `<svg width="24" height="24" stroke-width="1.5
|
|
|
4161
4199
|
};
|
|
4162
4200
|
let or = !1;
|
|
4163
4201
|
function bn() {
|
|
4164
|
-
or || (
|
|
4202
|
+
or || (He.custom.url = document.querySelector("[customIconLibraryPath]")?.getAttribute("customIconLibraryPath") || "", He.custom.defaultPrefix = document.querySelector("[customIconDefaultPrefix]")?.getAttribute("customIconDefaultPrefix") || "", He.custom.url && (or = !0));
|
|
4165
4203
|
}
|
|
4166
4204
|
const nr = sessionStorage.getItem("sonicIconsCache"), Rt = nr ? JSON.parse(nr) : { icons: {}, names: [] }, gn = 100, Mi = class Mi {
|
|
4167
4205
|
};
|
|
@@ -4170,8 +4208,8 @@ Mi.default = {
|
|
|
4170
4208
|
const i = t.library;
|
|
4171
4209
|
if (!t.name) return "";
|
|
4172
4210
|
const s = t.name, e = mn;
|
|
4173
|
-
if (i == "custom" && bn(), i && i in
|
|
4174
|
-
const o =
|
|
4211
|
+
if (i == "custom" && bn(), i && i in He) {
|
|
4212
|
+
const o = He[i], n = t.prefix || o.defaultPrefix || "", l = e[i] || {};
|
|
4175
4213
|
e[i] = l;
|
|
4176
4214
|
const c = n + "-" + s;
|
|
4177
4215
|
if (l[c]) return z(l[c]);
|
|
@@ -4182,7 +4220,7 @@ Mi.default = {
|
|
|
4182
4220
|
return l[c] = d, z(d);
|
|
4183
4221
|
delete Rt.icons[h];
|
|
4184
4222
|
}
|
|
4185
|
-
if (!
|
|
4223
|
+
if (!us.has(h)) {
|
|
4186
4224
|
const d = new Promise(async (g) => {
|
|
4187
4225
|
try {
|
|
4188
4226
|
const m = await fetch(h);
|
|
@@ -4205,10 +4243,10 @@ Mi.default = {
|
|
|
4205
4243
|
Eo(), g("");
|
|
4206
4244
|
}
|
|
4207
4245
|
});
|
|
4208
|
-
|
|
4246
|
+
us.set(h, d);
|
|
4209
4247
|
}
|
|
4210
|
-
const u = await
|
|
4211
|
-
if (
|
|
4248
|
+
const u = await us.get(h);
|
|
4249
|
+
if (us.delete(h), l[c] = u || "", u && /^\s*<svg[\s>]/i.test(u) && (Rt.icons[h] = u, Rt.names.push(h)), Rt.names.length > gn) {
|
|
4212
4250
|
const d = Rt.names.shift();
|
|
4213
4251
|
delete Rt.icons[d];
|
|
4214
4252
|
}
|
|
@@ -4218,13 +4256,13 @@ Mi.default = {
|
|
|
4218
4256
|
}
|
|
4219
4257
|
};
|
|
4220
4258
|
let Qs = Mi;
|
|
4221
|
-
var vn = Object.defineProperty, yn = Object.getOwnPropertyDescriptor,
|
|
4259
|
+
var vn = Object.defineProperty, yn = Object.getOwnPropertyDescriptor, es = (r, t, i, s) => {
|
|
4222
4260
|
for (var e = s > 1 ? void 0 : s ? yn(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
4223
4261
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
4224
4262
|
return s && e && vn(t, i, e), e;
|
|
4225
4263
|
};
|
|
4226
4264
|
const wn = "sonic-icon";
|
|
4227
|
-
let
|
|
4265
|
+
let ue = class extends _ {
|
|
4228
4266
|
constructor() {
|
|
4229
4267
|
super(...arguments), this.iconText = "", this.name = "", this.prefix = "", this.library = "";
|
|
4230
4268
|
}
|
|
@@ -4245,7 +4283,7 @@ let de = class extends _ {
|
|
|
4245
4283
|
return this.iconText ? this.iconText : S;
|
|
4246
4284
|
}
|
|
4247
4285
|
};
|
|
4248
|
-
|
|
4286
|
+
ue.styles = $`
|
|
4249
4287
|
:host {
|
|
4250
4288
|
line-height: 0.1em;
|
|
4251
4289
|
width: fit-content;
|
|
@@ -4296,22 +4334,22 @@ de.styles = $`
|
|
|
4296
4334
|
--_sc-icon-size: 2.8em;
|
|
4297
4335
|
}
|
|
4298
4336
|
`;
|
|
4299
|
-
|
|
4337
|
+
es([
|
|
4300
4338
|
E()
|
|
4301
|
-
],
|
|
4302
|
-
|
|
4339
|
+
], ue.prototype, "iconText", 2);
|
|
4340
|
+
es([
|
|
4303
4341
|
a({ type: String })
|
|
4304
|
-
],
|
|
4305
|
-
|
|
4342
|
+
], ue.prototype, "name", 2);
|
|
4343
|
+
es([
|
|
4306
4344
|
a({ type: String })
|
|
4307
|
-
],
|
|
4308
|
-
|
|
4345
|
+
], ue.prototype, "prefix", 2);
|
|
4346
|
+
es([
|
|
4309
4347
|
a({ type: String })
|
|
4310
|
-
],
|
|
4311
|
-
|
|
4348
|
+
], ue.prototype, "library", 2);
|
|
4349
|
+
ue = es([
|
|
4312
4350
|
x(wn)
|
|
4313
|
-
],
|
|
4314
|
-
const
|
|
4351
|
+
], ue);
|
|
4352
|
+
const ss = $`
|
|
4315
4353
|
.custom-scroll {
|
|
4316
4354
|
overflow: auto !important;
|
|
4317
4355
|
overflow-y: overlay !important;
|
|
@@ -4432,7 +4470,7 @@ let wt = class extends _ {
|
|
|
4432
4470
|
</div>`;
|
|
4433
4471
|
}
|
|
4434
4472
|
hide() {
|
|
4435
|
-
if (
|
|
4473
|
+
if (Zt.getClosestElement(this, "sonic-toast") || (this.visible = !1), this.dismissForever) {
|
|
4436
4474
|
const r = localStorage.getItem("sonic-toast-dismissed") || "{}", t = JSON.parse(r);
|
|
4437
4475
|
t[this.id] = !0, localStorage.setItem(
|
|
4438
4476
|
"sonic-toast-dismissed",
|
|
@@ -4451,7 +4489,7 @@ let wt = class extends _ {
|
|
|
4451
4489
|
}
|
|
4452
4490
|
};
|
|
4453
4491
|
wt.styles = [
|
|
4454
|
-
|
|
4492
|
+
ss,
|
|
4455
4493
|
$`
|
|
4456
4494
|
* {
|
|
4457
4495
|
box-sizing: border-box;
|
|
@@ -4803,7 +4841,7 @@ const Cn = $`
|
|
|
4803
4841
|
}
|
|
4804
4842
|
}
|
|
4805
4843
|
`;
|
|
4806
|
-
var kn = Object.defineProperty, On = Object.getOwnPropertyDescriptor,
|
|
4844
|
+
var kn = Object.defineProperty, On = Object.getOwnPropertyDescriptor, is = (r, t, i, s) => {
|
|
4807
4845
|
for (var e = s > 1 ? void 0 : s ? On(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
4808
4846
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
4809
4847
|
return s && e && kn(t, i, e), e;
|
|
@@ -4909,19 +4947,19 @@ vt.styles = [
|
|
|
4909
4947
|
}
|
|
4910
4948
|
`
|
|
4911
4949
|
];
|
|
4912
|
-
|
|
4950
|
+
is([
|
|
4913
4951
|
a({ type: String, reflect: !0 })
|
|
4914
4952
|
], vt.prototype, "theme", 2);
|
|
4915
|
-
|
|
4953
|
+
is([
|
|
4916
4954
|
a({ type: Boolean, reflect: !0 })
|
|
4917
4955
|
], vt.prototype, "background", 2);
|
|
4918
|
-
|
|
4956
|
+
is([
|
|
4919
4957
|
a({ type: Boolean, reflect: !0 })
|
|
4920
4958
|
], vt.prototype, "color", 2);
|
|
4921
|
-
|
|
4959
|
+
is([
|
|
4922
4960
|
a({ type: Boolean, reflect: !0 })
|
|
4923
4961
|
], vt.prototype, "font", 2);
|
|
4924
|
-
vt =
|
|
4962
|
+
vt = is([
|
|
4925
4963
|
x(Dn)
|
|
4926
4964
|
], vt);
|
|
4927
4965
|
var Ln = Object.defineProperty, En = Object.getOwnPropertyDescriptor, Sr = (r, t, i, s) => {
|
|
@@ -4929,7 +4967,7 @@ var Ln = Object.defineProperty, En = Object.getOwnPropertyDescriptor, Sr = (r, t
|
|
|
4929
4967
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
4930
4968
|
return s && e && Ln(t, i, e), e;
|
|
4931
4969
|
};
|
|
4932
|
-
const
|
|
4970
|
+
const Nn = "sonic-toast";
|
|
4933
4971
|
let D = class extends _ {
|
|
4934
4972
|
constructor() {
|
|
4935
4973
|
super(...arguments), this.toasts = [];
|
|
@@ -4956,7 +4994,7 @@ let D = class extends _ {
|
|
|
4956
4994
|
maxWidth: "64ch",
|
|
4957
4995
|
flexDirection: "column-reverse"
|
|
4958
4996
|
}), D.handleExistingToastDelegation(), this.toasts ? b`<div style=${pt(i)}>
|
|
4959
|
-
${
|
|
4997
|
+
${Ns(
|
|
4960
4998
|
this.toasts,
|
|
4961
4999
|
(s) => s.id,
|
|
4962
5000
|
(s) => b`
|
|
@@ -5092,10 +5130,10 @@ Sr([
|
|
|
5092
5130
|
a({ type: Array })
|
|
5093
5131
|
], D.prototype, "toasts", 2);
|
|
5094
5132
|
D = Sr([
|
|
5095
|
-
x(
|
|
5133
|
+
x(Nn)
|
|
5096
5134
|
], D);
|
|
5097
|
-
typeof window < "u" && (window[
|
|
5098
|
-
function
|
|
5135
|
+
typeof window < "u" && (window[gs + "Toast"] = window[gs + "Toast"] || D);
|
|
5136
|
+
function Tn() {
|
|
5099
5137
|
const r = (i) => {
|
|
5100
5138
|
i.data.type == "querySonicToastAvailability" && i.source.postMessage({ type: "sonicToastAvailable" }, "*"), i.data.type == "removeItemsByStatus" && D.removeItemsByStatus(i.data.status), i.data.type == "removeTemporaryItems" && D.removeTemporaryItems(), i.data.type == "sonicToastAvailable" && (D.delegateToasts = !0, D.handleExistingToastDelegation()), i.data.type == "addToasts" && (D.getInstance().toasts = [
|
|
5101
5139
|
...D.getInstance().toasts,
|
|
@@ -5106,8 +5144,8 @@ function Nn() {
|
|
|
5106
5144
|
for (const i of document.querySelectorAll("iframe"))
|
|
5107
5145
|
i.contentWindow?.postMessage({ type: "sonicToastAvailable" }, "*");
|
|
5108
5146
|
}
|
|
5109
|
-
|
|
5110
|
-
var In = Object.defineProperty, Mn = Object.getOwnPropertyDescriptor,
|
|
5147
|
+
Tn();
|
|
5148
|
+
var In = Object.defineProperty, Mn = Object.getOwnPropertyDescriptor, Ue = (r, t, i, s) => {
|
|
5111
5149
|
for (var e = s > 1 ? void 0 : s ? Mn(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
5112
5150
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
5113
5151
|
return s && e && In(t, i, e), e;
|
|
@@ -5156,7 +5194,7 @@ const Ci = (r, t) => {
|
|
|
5156
5194
|
* Un Toast est affiché si le chargement échoue
|
|
5157
5195
|
*/
|
|
5158
5196
|
async _fetchData() {
|
|
5159
|
-
if (this.requestUpdate(), !this.isFetchEnabled || (this.api = new
|
|
5197
|
+
if (this.requestUpdate(), !this.isFetchEnabled || (this.api = new Ce(this.getApiConfiguration()), !this.api) || (this.dispatchEvent(new CustomEvent("loading", { detail: this })), this.getAttribute("localStorage") === "enabled" && await k.getInstance().isLocalStrorageReady, !this.isConnected)) return;
|
|
5160
5198
|
const e = k.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();
|
|
5161
5199
|
if (this.isLoading = !0, st.isObject(this.props) && Object.keys(this.props || {}).length > 0 && this.isFirstLoad && window.requestAnimationFrame(() => {
|
|
5162
5200
|
this.dispatchEvent(new CustomEvent("load", { detail: this })), this.isFirstLoad = !1, this.isLoading = !1;
|
|
@@ -5237,24 +5275,24 @@ const Ci = (r, t) => {
|
|
|
5237
5275
|
}
|
|
5238
5276
|
}
|
|
5239
5277
|
}
|
|
5240
|
-
return
|
|
5278
|
+
return Ue([
|
|
5241
5279
|
a()
|
|
5242
|
-
], i.prototype, "noErrorsRecordings", 2),
|
|
5280
|
+
], i.prototype, "noErrorsRecordings", 2), Ue([
|
|
5243
5281
|
a()
|
|
5244
|
-
], i.prototype, "props", 1),
|
|
5282
|
+
], i.prototype, "props", 1), Ue([
|
|
5245
5283
|
a({ type: String })
|
|
5246
|
-
], i.prototype, "endPoint", 1),
|
|
5284
|
+
], i.prototype, "endPoint", 1), Ue([
|
|
5247
5285
|
a()
|
|
5248
|
-
], i.prototype, "requestId", 2),
|
|
5286
|
+
], i.prototype, "requestId", 2), Ue([
|
|
5249
5287
|
a({ type: Number })
|
|
5250
5288
|
], i.prototype, "refetchEveryMs", 2), i;
|
|
5251
5289
|
};
|
|
5252
|
-
var Rn = Object.defineProperty, Un = Object.getOwnPropertyDescriptor,
|
|
5290
|
+
var Rn = Object.defineProperty, Un = Object.getOwnPropertyDescriptor, le = (r, t, i, s) => {
|
|
5253
5291
|
for (var e = s > 1 ? void 0 : s ? Un(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
5254
5292
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
5255
5293
|
return s && e && Rn(t, i, e), e;
|
|
5256
5294
|
};
|
|
5257
|
-
const
|
|
5295
|
+
const Ts = (r) => {
|
|
5258
5296
|
class t extends r {
|
|
5259
5297
|
constructor(...s) {
|
|
5260
5298
|
super(), this.forceAutoFill = !1, this._type = "text", this.status = "default";
|
|
@@ -5284,29 +5322,29 @@ const Ns = (r) => {
|
|
|
5284
5322
|
this.hasAttribute("label") && !this.forceAutoFill && (s = this.getAttribute("label")), this._label = s, this.requestUpdate();
|
|
5285
5323
|
}
|
|
5286
5324
|
}
|
|
5287
|
-
return
|
|
5325
|
+
return le([
|
|
5288
5326
|
a()
|
|
5289
|
-
], t.prototype, "forceAutoFill", 2),
|
|
5327
|
+
], t.prototype, "forceAutoFill", 2), le([
|
|
5290
5328
|
a({ type: String })
|
|
5291
|
-
], t.prototype, "type", 1),
|
|
5329
|
+
], t.prototype, "type", 1), le([
|
|
5292
5330
|
a()
|
|
5293
|
-
], t.prototype, "description", 1),
|
|
5331
|
+
], t.prototype, "description", 1), le([
|
|
5294
5332
|
a()
|
|
5295
|
-
], t.prototype, "label", 1),
|
|
5333
|
+
], t.prototype, "label", 1), le([
|
|
5296
5334
|
a({ type: String, reflect: !0 })
|
|
5297
|
-
], t.prototype, "status", 2),
|
|
5335
|
+
], t.prototype, "status", 2), le([
|
|
5298
5336
|
a({ type: Number })
|
|
5299
|
-
], t.prototype, "tabindex", 2),
|
|
5337
|
+
], t.prototype, "tabindex", 2), le([
|
|
5300
5338
|
a({ type: String })
|
|
5301
5339
|
], t.prototype, "autocomplete", 2), t;
|
|
5302
|
-
}, Ar = Ci, Vn = $i, kr =
|
|
5340
|
+
}, Ar = Ci, Vn = $i, kr = Le, Or = Ts, ie = G, Si = ts;
|
|
5303
5341
|
window["concorde-mixins"] = window["concorde-mixins"] || {};
|
|
5304
5342
|
window["concorde-mixins"] = {
|
|
5305
5343
|
Fetcher: Ar,
|
|
5306
5344
|
FormCheckable: Vn,
|
|
5307
5345
|
FormElement: kr,
|
|
5308
5346
|
FormInput: Or,
|
|
5309
|
-
Subscriber:
|
|
5347
|
+
Subscriber: ie,
|
|
5310
5348
|
TemplatesContainer: Si
|
|
5311
5349
|
};
|
|
5312
5350
|
/**
|
|
@@ -5314,9 +5352,9 @@ window["concorde-mixins"] = {
|
|
|
5314
5352
|
* Copyright 2020 Google LLC
|
|
5315
5353
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5316
5354
|
*/
|
|
5317
|
-
const Lt =
|
|
5355
|
+
const Lt = se(class extends De {
|
|
5318
5356
|
constructor(r) {
|
|
5319
|
-
if (super(r), r.type !==
|
|
5357
|
+
if (super(r), r.type !== ge.CHILD) throw Error("templateContent can only be used in child bindings");
|
|
5320
5358
|
}
|
|
5321
5359
|
render(r) {
|
|
5322
5360
|
return this.vt === r ? yt : (this.vt = r, document.importNode(r.content, !0));
|
|
@@ -5605,7 +5643,7 @@ var ia = Object.defineProperty, ra = Object.getOwnPropertyDescriptor, At = (r, t
|
|
|
5605
5643
|
return s && e && ia(t, i, e), e;
|
|
5606
5644
|
};
|
|
5607
5645
|
const oa = "sonic-list";
|
|
5608
|
-
let _t = class extends Ci(G(
|
|
5646
|
+
let _t = class extends Ci(G(ts(_))) {
|
|
5609
5647
|
constructor() {
|
|
5610
5648
|
super(...arguments), this.templateKey = "template", this.idKey = "id", this.limit = Number.POSITIVE_INFINITY, this.offset = 0, this.loadingSize = { width: 0, height: 0 };
|
|
5611
5649
|
}
|
|
@@ -5849,7 +5887,7 @@ let X = class extends G(_) {
|
|
|
5849
5887
|
async connectedCallback() {
|
|
5850
5888
|
this.instanceId = X.instanceCounter++, this.localStorage = this.getAttribute("localStorage") || this.localStorage, this.filterTimeoutMs = parseInt(
|
|
5851
5889
|
this.getAttribute("filterTimeoutMs") || "400"
|
|
5852
|
-
), this.removeAttribute("localStorage"), this.noShadowDom = "", this.defferedDebug = this.hasAttribute("debug") || null, this.dataProvider || (this.dataProvider = this.dataProviderExpression || "sonic-queue-" + this.instanceId + "-" + Math.random().toString(36).substring(7)), this.dataProviderExpression || (this.dataProviderExpression =
|
|
5890
|
+
), this.removeAttribute("localStorage"), this.noShadowDom = "", this.defferedDebug = this.hasAttribute("debug") || null, this.dataProvider || (this.dataProvider = this.dataProviderExpression || "sonic-queue-" + this.instanceId + "-" + Math.random().toString(36).substring(7)), this.dataProviderExpression || (this.dataProviderExpression = Zt.getAncestorAttributeValue(this.parentElement, "dataProvider") || ""), this.storeScrollPosition(), super.connectedCallback(), this.publisher.set({}), this.key = this.getAttribute("key"), await k.getInstance().isLocalStrorageReady, this.templates || (this.templates = Array.from(
|
|
5853
5891
|
this.querySelectorAll("template")
|
|
5854
5892
|
)), this.lastRequestTime = (/* @__PURE__ */ new Date()).getTime(), this.configFilter();
|
|
5855
5893
|
}
|
|
@@ -6008,13 +6046,13 @@ rt([
|
|
|
6008
6046
|
X = rt([
|
|
6009
6047
|
x(la)
|
|
6010
6048
|
], X);
|
|
6011
|
-
var ca = Object.defineProperty, ha = Object.getOwnPropertyDescriptor,
|
|
6049
|
+
var ca = Object.defineProperty, ha = Object.getOwnPropertyDescriptor, Ne = (r, t, i, s) => {
|
|
6012
6050
|
for (var e = s > 1 ? void 0 : s ? ha(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
6013
6051
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
6014
6052
|
return s && e && ca(t, i, e), e;
|
|
6015
6053
|
};
|
|
6016
6054
|
const da = "sonic-submit";
|
|
6017
|
-
let
|
|
6055
|
+
let Xt = class extends G(_) {
|
|
6018
6056
|
constructor() {
|
|
6019
6057
|
super(...arguments), this.submitResultKey = null, this.disabled = !1, this.endPoint = null, this.name = "", this.value = "", this.api = null, this.clickTimeStamp = 0, this.submit = async (r) => {
|
|
6020
6058
|
if (this.disabled || r instanceof KeyboardEvent && r.key !== "Enter") return;
|
|
@@ -6110,10 +6148,10 @@ let Zt = class extends G(_) {
|
|
|
6110
6148
|
};
|
|
6111
6149
|
}
|
|
6112
6150
|
connectedCallback() {
|
|
6113
|
-
this.hasAttribute("onClick") && this.addEventListener("click", this.submit), this.hasAttribute("onEnterKey") && this.addEventListener("keydown", this.submit), super.connectedCallback(), this.api = new
|
|
6151
|
+
this.hasAttribute("onClick") && this.addEventListener("click", this.submit), this.hasAttribute("onEnterKey") && this.addEventListener("keydown", this.submit), super.connectedCallback(), this.api = new Ce(this.getApiConfiguration());
|
|
6114
6152
|
}
|
|
6115
6153
|
submitNativeForm() {
|
|
6116
|
-
const r =
|
|
6154
|
+
const r = Zt.getClosestForm(this);
|
|
6117
6155
|
if (!r) return;
|
|
6118
6156
|
const t = this.getAncestorAttributeValue("formDataProvider"), i = { ...k.get(t).get() };
|
|
6119
6157
|
delete i.needsCaptchaValidation;
|
|
@@ -6143,38 +6181,38 @@ let Zt = class extends G(_) {
|
|
|
6143
6181
|
return b`<div ?data-disabled=${this.disabled}><slot></slot></div>`;
|
|
6144
6182
|
}
|
|
6145
6183
|
};
|
|
6146
|
-
|
|
6184
|
+
Xt.styles = $`
|
|
6147
6185
|
[data-disabled] {
|
|
6148
6186
|
opacity: 0.3;
|
|
6149
6187
|
pointer-events: none;
|
|
6150
6188
|
user-select: none;
|
|
6151
6189
|
}
|
|
6152
6190
|
`;
|
|
6153
|
-
|
|
6191
|
+
Ne([
|
|
6154
6192
|
a({ type: String })
|
|
6155
|
-
],
|
|
6156
|
-
|
|
6193
|
+
], Xt.prototype, "submitResultKey", 2);
|
|
6194
|
+
Ne([
|
|
6157
6195
|
a({ type: Boolean })
|
|
6158
|
-
],
|
|
6159
|
-
|
|
6196
|
+
], Xt.prototype, "disabled", 2);
|
|
6197
|
+
Ne([
|
|
6160
6198
|
a({ type: String })
|
|
6161
|
-
],
|
|
6162
|
-
|
|
6199
|
+
], Xt.prototype, "endPoint", 2);
|
|
6200
|
+
Ne([
|
|
6163
6201
|
a()
|
|
6164
|
-
],
|
|
6165
|
-
|
|
6202
|
+
], Xt.prototype, "name", 2);
|
|
6203
|
+
Ne([
|
|
6166
6204
|
a()
|
|
6167
|
-
],
|
|
6168
|
-
|
|
6205
|
+
], Xt.prototype, "value", 2);
|
|
6206
|
+
Xt = Ne([
|
|
6169
6207
|
x(da)
|
|
6170
|
-
],
|
|
6171
|
-
var ua = Object.defineProperty, pa = Object.getOwnPropertyDescriptor,
|
|
6208
|
+
], Xt);
|
|
6209
|
+
var ua = Object.defineProperty, pa = Object.getOwnPropertyDescriptor, rs = (r, t, i, s) => {
|
|
6172
6210
|
for (var e = s > 1 ? void 0 : s ? pa(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
6173
6211
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
6174
6212
|
return s && e && ua(t, i, e), e;
|
|
6175
6213
|
};
|
|
6176
6214
|
const fa = "sonic-router";
|
|
6177
|
-
let
|
|
6215
|
+
let Se = class extends ts(_) {
|
|
6178
6216
|
constructor() {
|
|
6179
6217
|
super(...arguments), this.templateValueAttribute = "data-route", this._location = document.location.href.replace(
|
|
6180
6218
|
document.location.origin,
|
|
@@ -6257,7 +6295,7 @@ let Ce = class extends Je(_) {
|
|
|
6257
6295
|
);
|
|
6258
6296
|
i && t.push(i);
|
|
6259
6297
|
}
|
|
6260
|
-
return b`${
|
|
6298
|
+
return b`${Ns(
|
|
6261
6299
|
t,
|
|
6262
6300
|
(i, s) => s + (/* @__PURE__ */ new Date()).getTime(),
|
|
6263
6301
|
(i) => {
|
|
@@ -6287,21 +6325,21 @@ let Ce = class extends Je(_) {
|
|
|
6287
6325
|
)}`;
|
|
6288
6326
|
}
|
|
6289
6327
|
};
|
|
6290
|
-
|
|
6328
|
+
rs([
|
|
6291
6329
|
a({ type: String })
|
|
6292
|
-
],
|
|
6293
|
-
|
|
6330
|
+
], Se.prototype, "fallBackRoute", 2);
|
|
6331
|
+
rs([
|
|
6294
6332
|
a({ type: Object })
|
|
6295
|
-
],
|
|
6296
|
-
|
|
6333
|
+
], Se.prototype, "routes", 2);
|
|
6334
|
+
rs([
|
|
6297
6335
|
a({ type: String })
|
|
6298
|
-
],
|
|
6299
|
-
|
|
6336
|
+
], Se.prototype, "basePath", 2);
|
|
6337
|
+
rs([
|
|
6300
6338
|
a()
|
|
6301
|
-
],
|
|
6302
|
-
|
|
6339
|
+
], Se.prototype, "location", 1);
|
|
6340
|
+
Se = rs([
|
|
6303
6341
|
x(fa)
|
|
6304
|
-
],
|
|
6342
|
+
], Se);
|
|
6305
6343
|
var ma = Object.getOwnPropertyDescriptor, ba = (r, t, i, s) => {
|
|
6306
6344
|
for (var e = s > 1 ? void 0 : s ? ma(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
6307
6345
|
(n = r[o]) && (e = n(e) || e);
|
|
@@ -6334,7 +6372,7 @@ var va = Object.defineProperty, ya = Object.getOwnPropertyDescriptor, Is = (r, t
|
|
|
6334
6372
|
return s && e && va(t, i, e), e;
|
|
6335
6373
|
};
|
|
6336
6374
|
const wa = "sonic-states";
|
|
6337
|
-
let
|
|
6375
|
+
let Ze = class extends G(ts(_)) {
|
|
6338
6376
|
constructor() {
|
|
6339
6377
|
super(...arguments), this.state = "", this.inverted = !1, this.statePath = "", this.onStateAssign = (r) => {
|
|
6340
6378
|
this.state = r, this.requestUpdate();
|
|
@@ -6392,7 +6430,7 @@ let Ye = class extends G(Je(_)) {
|
|
|
6392
6430
|
l.names.length > 0 && l.match(o) && (s.setAttribute("mode", "patternMatching"), i.push(s));
|
|
6393
6431
|
}
|
|
6394
6432
|
}
|
|
6395
|
-
return b`${
|
|
6433
|
+
return b`${Ns(
|
|
6396
6434
|
i,
|
|
6397
6435
|
(s, e) => e + (/* @__PURE__ */ new Date()).getTime(),
|
|
6398
6436
|
(s) => {
|
|
@@ -6424,16 +6462,16 @@ let Ye = class extends G(Je(_)) {
|
|
|
6424
6462
|
};
|
|
6425
6463
|
Is([
|
|
6426
6464
|
a()
|
|
6427
|
-
],
|
|
6465
|
+
], Ze.prototype, "state", 2);
|
|
6428
6466
|
Is([
|
|
6429
6467
|
a({ type: Boolean, reflect: !0 })
|
|
6430
|
-
],
|
|
6468
|
+
], Ze.prototype, "inverted", 2);
|
|
6431
6469
|
Is([
|
|
6432
6470
|
a({ type: Object })
|
|
6433
|
-
],
|
|
6434
|
-
|
|
6471
|
+
], Ze.prototype, "states", 2);
|
|
6472
|
+
Ze = Is([
|
|
6435
6473
|
x(wa)
|
|
6436
|
-
],
|
|
6474
|
+
], Ze);
|
|
6437
6475
|
var _a = Object.getOwnPropertyDescriptor, xa = (r, t, i, s) => {
|
|
6438
6476
|
for (var e = s > 1 ? void 0 : s ? _a(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
6439
6477
|
(n = r[o]) && (e = n(e) || e);
|
|
@@ -6451,7 +6489,7 @@ let hr = class extends _ {
|
|
|
6451
6489
|
hr = xa([
|
|
6452
6490
|
x(Pa)
|
|
6453
6491
|
], hr);
|
|
6454
|
-
var $a = Object.defineProperty, Ca = Object.getOwnPropertyDescriptor,
|
|
6492
|
+
var $a = Object.defineProperty, Ca = Object.getOwnPropertyDescriptor, Nr = (r, t, i, s) => {
|
|
6455
6493
|
for (var e = s > 1 ? void 0 : s ? Ca(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
6456
6494
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
6457
6495
|
return s && e && $a(t, i, e), e;
|
|
@@ -6465,21 +6503,21 @@ let ti = class extends G(_) {
|
|
|
6465
6503
|
return b`<div>${this.text}</div>`;
|
|
6466
6504
|
}
|
|
6467
6505
|
};
|
|
6468
|
-
|
|
6506
|
+
Nr([
|
|
6469
6507
|
a()
|
|
6470
6508
|
], ti.prototype, "text", 2);
|
|
6471
|
-
ti =
|
|
6509
|
+
ti = Nr([
|
|
6472
6510
|
x(Sa)
|
|
6473
6511
|
], ti);
|
|
6474
|
-
const Aa = { tagName: "sonic-checkbox" }, ka = { tagName: "sonic-input", attributes: { type: "date" } }, Oa = { tagName: "sonic-fieldset", nodes: [{ libraryKey: "formLayout" }], contentElementSelector: "sonic-form-layout" }, Da = { tagName: "sonic-input", attributes: { variant: "ghost", type: "file" } }, La = { tagName: "sonic-input", attributes: { type: "password" } }, Ea = { tagName: "sonic-radio" },
|
|
6512
|
+
const Aa = { tagName: "sonic-checkbox" }, ka = { tagName: "sonic-input", attributes: { type: "date" } }, Oa = { tagName: "sonic-fieldset", nodes: [{ libraryKey: "formLayout" }], contentElementSelector: "sonic-form-layout" }, Da = { tagName: "sonic-input", attributes: { variant: "ghost", type: "file" } }, La = { tagName: "sonic-input", attributes: { type: "password" } }, Ea = { tagName: "sonic-radio" }, Na = { tagName: "sonic-select" }, Ta = { tagName: "sonic-textarea" }, Ia = { tagName: "sonic-input", attributes: { type: "text" } }, Ma = { tagName: "sonic-input", attributes: { type: "hidden" } }, ja = { tagName: "sonic-button" }, Fa = { tagName: "sonic-submit", attributes: { onEnterKey: !0 } }, za = { tagName: "sonic-submit", attributes: { onClick: !0 }, contentElementSelector: "sonic-button", nodes: [{ libraryKey: "button", attributes: { type: "success" }, nodes: [{ tagName: "sonic-icon", attributes: { name: "check", slot: "prefix" } }] }] }, Ra = { tagName: "sonic-input", attributes: { type: "email" } }, Ua = { tagName: "div", attributes: { class: "form-item-container" } }, Va = { tagName: "sonic-form-layout" }, Ba = { tagName: "sonic-form-actions" }, qa = { tagName: "sonic-password-helper" }, Ha = { tagName: "sonic-same-value-helper" }, Wa = { tagName: "sonic-divider" }, Ka = {
|
|
6475
6513
|
checkbox: Aa,
|
|
6476
6514
|
date: ka,
|
|
6477
6515
|
fieldset: Oa,
|
|
6478
6516
|
managed_file: Da,
|
|
6479
6517
|
password: La,
|
|
6480
6518
|
radio: Ea,
|
|
6481
|
-
select:
|
|
6482
|
-
textarea:
|
|
6519
|
+
select: Na,
|
|
6520
|
+
textarea: Ta,
|
|
6483
6521
|
textfield: Ia,
|
|
6484
6522
|
hidden: Ma,
|
|
6485
6523
|
button: ja,
|
|
@@ -6644,7 +6682,7 @@ var Za = Object.defineProperty, Xa = Object.getOwnPropertyDescriptor, ki = (r, t
|
|
|
6644
6682
|
return s && e && Za(t, i, e), e;
|
|
6645
6683
|
};
|
|
6646
6684
|
const Ga = "sonic-sdui";
|
|
6647
|
-
let Ps = class extends Ar(
|
|
6685
|
+
let Ps = class extends Ar(ie(_)) {
|
|
6648
6686
|
constructor() {
|
|
6649
6687
|
super(...arguments), this.sduiDescriptor = {};
|
|
6650
6688
|
}
|
|
@@ -6685,9 +6723,9 @@ let Ps = class extends Ar(se(_)) {
|
|
|
6685
6723
|
loadAssets() {
|
|
6686
6724
|
if (this.sduiDescriptor) {
|
|
6687
6725
|
if (this.sduiDescriptor.js)
|
|
6688
|
-
for (const r of this.sduiDescriptor.js)
|
|
6726
|
+
for (const r of this.sduiDescriptor.js) Zt.loadJS(r);
|
|
6689
6727
|
if (this.sduiDescriptor.css)
|
|
6690
|
-
for (const r of this.sduiDescriptor.css)
|
|
6728
|
+
for (const r of this.sduiDescriptor.css) Zt.loadCSS(r);
|
|
6691
6729
|
}
|
|
6692
6730
|
}
|
|
6693
6731
|
/**
|
|
@@ -6773,7 +6811,7 @@ let Ps = class extends Ar(se(_)) {
|
|
|
6773
6811
|
handleAttributes(r, t) {
|
|
6774
6812
|
const i = r.attributes;
|
|
6775
6813
|
for (const s in i) {
|
|
6776
|
-
const e = i[s], o =
|
|
6814
|
+
const e = i[s], o = Ee.isObject(e) ? JSON.stringify(e) : e;
|
|
6777
6815
|
t.setAttribute(s, o);
|
|
6778
6816
|
}
|
|
6779
6817
|
}
|
|
@@ -6805,12 +6843,12 @@ ki([
|
|
|
6805
6843
|
Ps = ki([
|
|
6806
6844
|
x(Ga)
|
|
6807
6845
|
], Ps);
|
|
6808
|
-
var Qa = Object.defineProperty, Ja = Object.getOwnPropertyDescriptor,
|
|
6846
|
+
var Qa = Object.defineProperty, Ja = Object.getOwnPropertyDescriptor, Tr = (r, t, i, s) => {
|
|
6809
6847
|
for (var e = s > 1 ? void 0 : s ? Ja(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
6810
6848
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
6811
6849
|
return s && e && Qa(t, i, e), e;
|
|
6812
6850
|
};
|
|
6813
|
-
let $s = class extends
|
|
6851
|
+
let $s = class extends ie(_) {
|
|
6814
6852
|
constructor() {
|
|
6815
6853
|
super(...arguments), this._composition = {}, this.listeners = [];
|
|
6816
6854
|
}
|
|
@@ -6843,7 +6881,7 @@ let $s = class extends se(_) {
|
|
|
6843
6881
|
const e = s.split("."), o = e.shift();
|
|
6844
6882
|
if (!o) continue;
|
|
6845
6883
|
let n = k.get(o);
|
|
6846
|
-
n =
|
|
6884
|
+
n = Ee.traverse(n, e);
|
|
6847
6885
|
const l = {
|
|
6848
6886
|
publisher: n,
|
|
6849
6887
|
subscriber: (c) => {
|
|
@@ -6853,7 +6891,7 @@ let $s = class extends se(_) {
|
|
|
6853
6891
|
this.listeners.push(l), n.onAssign(l.subscriber), t._proxies_.set(i, n);
|
|
6854
6892
|
} else {
|
|
6855
6893
|
this.publisher[i] = {};
|
|
6856
|
-
const e = new
|
|
6894
|
+
const e = new We({}, t);
|
|
6857
6895
|
t._proxies_.set(i, e);
|
|
6858
6896
|
const o = {
|
|
6859
6897
|
publisher: e,
|
|
@@ -6876,10 +6914,10 @@ $s.styles = [
|
|
|
6876
6914
|
}
|
|
6877
6915
|
`
|
|
6878
6916
|
];
|
|
6879
|
-
|
|
6917
|
+
Tr([
|
|
6880
6918
|
a({ type: Object })
|
|
6881
6919
|
], $s.prototype, "composition", 1);
|
|
6882
|
-
$s =
|
|
6920
|
+
$s = Tr([
|
|
6883
6921
|
x("sonic-mix")
|
|
6884
6922
|
], $s);
|
|
6885
6923
|
var tl = Object.getOwnPropertyDescriptor, el = (r, t, i, s) => {
|
|
@@ -6888,7 +6926,7 @@ var tl = Object.getOwnPropertyDescriptor, el = (r, t, i, s) => {
|
|
|
6888
6926
|
return e;
|
|
6889
6927
|
};
|
|
6890
6928
|
const sl = "sonic-value";
|
|
6891
|
-
let dr = class extends
|
|
6929
|
+
let dr = class extends ie(_) {
|
|
6892
6930
|
connectedCallback() {
|
|
6893
6931
|
this.setAttribute("subDataProvider", this.getAttribute("key")), super.connectedCallback();
|
|
6894
6932
|
}
|
|
@@ -6908,7 +6946,7 @@ var il = Object.defineProperty, rl = Object.getOwnPropertyDescriptor, Oi = (r, t
|
|
|
6908
6946
|
const ol = "sonic-t";
|
|
6909
6947
|
let Cs = class extends _ {
|
|
6910
6948
|
render() {
|
|
6911
|
-
return this.key ? b`${
|
|
6949
|
+
return this.key ? b`${To(this.key, this.unsafeHTML)}` : S;
|
|
6912
6950
|
}
|
|
6913
6951
|
};
|
|
6914
6952
|
Oi([
|
|
@@ -6920,13 +6958,13 @@ Oi([
|
|
|
6920
6958
|
Cs = Oi([
|
|
6921
6959
|
x(ol)
|
|
6922
6960
|
], Cs);
|
|
6923
|
-
var nl = Object.defineProperty, al = Object.getOwnPropertyDescriptor,
|
|
6961
|
+
var nl = Object.defineProperty, al = Object.getOwnPropertyDescriptor, os = (r, t, i, s) => {
|
|
6924
6962
|
for (var e = s > 1 ? void 0 : s ? al(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
6925
6963
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
6926
6964
|
return s && e && nl(t, i, e), e;
|
|
6927
6965
|
};
|
|
6928
6966
|
const ll = "sonic-badge";
|
|
6929
|
-
let
|
|
6967
|
+
let pe = class extends _ {
|
|
6930
6968
|
constructor() {
|
|
6931
6969
|
super(...arguments), this.type = "default", this.variant = "default", this.ellipsis = !1;
|
|
6932
6970
|
}
|
|
@@ -6938,8 +6976,8 @@ let ue = class extends _ {
|
|
|
6938
6976
|
`;
|
|
6939
6977
|
}
|
|
6940
6978
|
};
|
|
6941
|
-
|
|
6942
|
-
|
|
6979
|
+
pe.styles = [
|
|
6980
|
+
Tt,
|
|
6943
6981
|
$`
|
|
6944
6982
|
:host {
|
|
6945
6983
|
--sc-badge-gap: 0.3em;
|
|
@@ -7082,21 +7120,21 @@ ue.styles = [
|
|
|
7082
7120
|
}
|
|
7083
7121
|
`
|
|
7084
7122
|
];
|
|
7085
|
-
|
|
7123
|
+
os([
|
|
7086
7124
|
a({ type: String, reflect: !0 })
|
|
7087
|
-
],
|
|
7088
|
-
|
|
7125
|
+
], pe.prototype, "type", 2);
|
|
7126
|
+
os([
|
|
7089
7127
|
a({ type: String, reflect: !0 })
|
|
7090
|
-
],
|
|
7091
|
-
|
|
7128
|
+
], pe.prototype, "variant", 2);
|
|
7129
|
+
os([
|
|
7092
7130
|
a({ type: String, reflect: !0 })
|
|
7093
|
-
],
|
|
7094
|
-
|
|
7131
|
+
], pe.prototype, "size", 2);
|
|
7132
|
+
os([
|
|
7095
7133
|
a({ type: Boolean, reflect: !0 })
|
|
7096
|
-
],
|
|
7097
|
-
|
|
7134
|
+
], pe.prototype, "ellipsis", 2);
|
|
7135
|
+
pe = os([
|
|
7098
7136
|
x(ll)
|
|
7099
|
-
],
|
|
7137
|
+
], pe);
|
|
7100
7138
|
class cl {
|
|
7101
7139
|
static fixBlankLink(t) {
|
|
7102
7140
|
const s = typeof require > "u" || typeof process != "object" ? null : require("electron");
|
|
@@ -7111,7 +7149,7 @@ var hl = Object.defineProperty, dl = Object.getOwnPropertyDescriptor, Te = (r, t
|
|
|
7111
7149
|
return s && e && hl(t, i, e), e;
|
|
7112
7150
|
};
|
|
7113
7151
|
const ul = "sonic-link";
|
|
7114
|
-
let
|
|
7152
|
+
let Gt = class extends _ {
|
|
7115
7153
|
constructor() {
|
|
7116
7154
|
super(...arguments), this.href = "", this._location = "", this.ariaLabel = null, this.autoActive = "partial", this._target = null, this.pushState = null;
|
|
7117
7155
|
}
|
|
@@ -7157,7 +7195,7 @@ let Xt = class extends _ {
|
|
|
7157
7195
|
` : b`<slot></slot>`;
|
|
7158
7196
|
}
|
|
7159
7197
|
};
|
|
7160
|
-
|
|
7198
|
+
Gt.styles = [
|
|
7161
7199
|
$`
|
|
7162
7200
|
a {
|
|
7163
7201
|
color: inherit;
|
|
@@ -7168,29 +7206,29 @@ Xt.styles = [
|
|
|
7168
7206
|
];
|
|
7169
7207
|
Te([
|
|
7170
7208
|
a({ type: String })
|
|
7171
|
-
],
|
|
7209
|
+
], Gt.prototype, "href", 2);
|
|
7172
7210
|
Te([
|
|
7173
7211
|
a({ type: String, attribute: "data-aria-label" })
|
|
7174
|
-
],
|
|
7212
|
+
], Gt.prototype, "ariaLabel", 2);
|
|
7175
7213
|
Te([
|
|
7176
7214
|
a({ type: String })
|
|
7177
|
-
],
|
|
7215
|
+
], Gt.prototype, "autoActive", 2);
|
|
7178
7216
|
Te([
|
|
7179
7217
|
a({ type: String })
|
|
7180
|
-
],
|
|
7218
|
+
], Gt.prototype, "target", 1);
|
|
7181
7219
|
Te([
|
|
7182
7220
|
a({ type: Boolean })
|
|
7183
|
-
],
|
|
7184
|
-
|
|
7221
|
+
], Gt.prototype, "pushState", 2);
|
|
7222
|
+
Gt = Te([
|
|
7185
7223
|
x(ul)
|
|
7186
|
-
],
|
|
7187
|
-
var pl = Object.defineProperty, fl = Object.getOwnPropertyDescriptor,
|
|
7224
|
+
], Gt);
|
|
7225
|
+
var pl = Object.defineProperty, fl = Object.getOwnPropertyDescriptor, Ie = (r, t, i, s) => {
|
|
7188
7226
|
for (var e = s > 1 ? void 0 : s ? fl(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
7189
7227
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
7190
7228
|
return s && e && pl(t, i, e), e;
|
|
7191
7229
|
};
|
|
7192
7230
|
const ml = "sonic-progress";
|
|
7193
|
-
let
|
|
7231
|
+
let Qt = class extends _ {
|
|
7194
7232
|
constructor() {
|
|
7195
7233
|
super(...arguments), this.max = 100, this.invert = !1, this.type = "default";
|
|
7196
7234
|
}
|
|
@@ -7204,8 +7242,8 @@ let Gt = class extends _ {
|
|
|
7204
7242
|
`;
|
|
7205
7243
|
}
|
|
7206
7244
|
};
|
|
7207
|
-
|
|
7208
|
-
|
|
7245
|
+
Qt.styles = [
|
|
7246
|
+
Tt,
|
|
7209
7247
|
$`
|
|
7210
7248
|
:host {
|
|
7211
7249
|
--sc-progress-bg: var(
|
|
@@ -7320,24 +7358,24 @@ Gt.styles = [
|
|
|
7320
7358
|
}
|
|
7321
7359
|
`
|
|
7322
7360
|
];
|
|
7323
|
-
|
|
7361
|
+
Ie([
|
|
7324
7362
|
a({ type: Number })
|
|
7325
|
-
],
|
|
7326
|
-
|
|
7363
|
+
], Qt.prototype, "value", 2);
|
|
7364
|
+
Ie([
|
|
7327
7365
|
a({ type: Number })
|
|
7328
|
-
],
|
|
7329
|
-
|
|
7366
|
+
], Qt.prototype, "max", 2);
|
|
7367
|
+
Ie([
|
|
7330
7368
|
a({ type: Boolean })
|
|
7331
|
-
],
|
|
7332
|
-
|
|
7369
|
+
], Qt.prototype, "invert", 2);
|
|
7370
|
+
Ie([
|
|
7333
7371
|
a({ type: String, reflect: !0 })
|
|
7334
|
-
],
|
|
7335
|
-
|
|
7372
|
+
], Qt.prototype, "type", 2);
|
|
7373
|
+
Ie([
|
|
7336
7374
|
a({ type: String, reflect: !0 })
|
|
7337
|
-
],
|
|
7338
|
-
|
|
7375
|
+
], Qt.prototype, "size", 2);
|
|
7376
|
+
Qt = Ie([
|
|
7339
7377
|
x(ml)
|
|
7340
|
-
],
|
|
7378
|
+
], Qt);
|
|
7341
7379
|
const bl = $`
|
|
7342
7380
|
.password-toggle {
|
|
7343
7381
|
color: var(--sc-input-c);
|
|
@@ -7731,9 +7769,9 @@ const bl = $`
|
|
|
7731
7769
|
* Copyright 2018 Google LLC
|
|
7732
7770
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7733
7771
|
*/
|
|
7734
|
-
const Li =
|
|
7772
|
+
const Li = se(class extends De {
|
|
7735
7773
|
constructor(r) {
|
|
7736
|
-
if (super(r), r.type !==
|
|
7774
|
+
if (super(r), r.type !== ge.ATTRIBUTE || r.name !== "class" || r.strings?.length > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
7737
7775
|
}
|
|
7738
7776
|
render(r) {
|
|
7739
7777
|
return " " + Object.keys(r).filter(((t) => r[t])).join(" ") + " ";
|
|
@@ -7759,7 +7797,7 @@ var gl = Object.defineProperty, vl = Object.getOwnPropertyDescriptor, U = (r, t,
|
|
|
7759
7797
|
return s && e && gl(t, i, e), e;
|
|
7760
7798
|
};
|
|
7761
7799
|
const yl = "sonic-input";
|
|
7762
|
-
let j = class extends
|
|
7800
|
+
let j = class extends Ts(Le(G(_))) {
|
|
7763
7801
|
constructor() {
|
|
7764
7802
|
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;
|
|
7765
7803
|
}
|
|
@@ -7914,7 +7952,7 @@ let j = class extends Ns(De(G(_))) {
|
|
|
7914
7952
|
}
|
|
7915
7953
|
};
|
|
7916
7954
|
j.styles = [
|
|
7917
|
-
|
|
7955
|
+
Tt,
|
|
7918
7956
|
Di,
|
|
7919
7957
|
Ms,
|
|
7920
7958
|
js,
|
|
@@ -7993,7 +8031,7 @@ U([
|
|
|
7993
8031
|
ht({ slot: "prefix", flatten: !0 })
|
|
7994
8032
|
], j.prototype, "slotPrefixNodes", 2);
|
|
7995
8033
|
U([
|
|
7996
|
-
|
|
8034
|
+
ee("input")
|
|
7997
8035
|
], j.prototype, "input", 2);
|
|
7998
8036
|
U([
|
|
7999
8037
|
E()
|
|
@@ -8206,10 +8244,10 @@ It([
|
|
|
8206
8244
|
E()
|
|
8207
8245
|
], et.prototype, "open", 2);
|
|
8208
8246
|
It([
|
|
8209
|
-
|
|
8247
|
+
ee("slot:not([name=content])")
|
|
8210
8248
|
], et.prototype, "popBtn", 2);
|
|
8211
8249
|
It([
|
|
8212
|
-
|
|
8250
|
+
ee("slot[name=content]")
|
|
8213
8251
|
], et.prototype, "popContent", 2);
|
|
8214
8252
|
It([
|
|
8215
8253
|
a({ type: Boolean })
|
|
@@ -8290,7 +8328,7 @@ var Sl = Object.defineProperty, Al = Object.getOwnPropertyDescriptor, dt = (r, t
|
|
|
8290
8328
|
return s && e && Sl(t, i, e), e;
|
|
8291
8329
|
};
|
|
8292
8330
|
let it = class extends Si(
|
|
8293
|
-
Or(kr(
|
|
8331
|
+
Or(kr(ie(_)))
|
|
8294
8332
|
) {
|
|
8295
8333
|
constructor() {
|
|
8296
8334
|
super(...arguments), this.size = "md", this.placeholder = "", this.filteredFields = "", this.readonly = null, this.dataProviderExpression = "", this.minSearchLength = 0, this.key = "", this.searchParameter = "", this.propertyName = "", this.hasInputPrefix = !1, this._resizeController = new Mr(this, {}), this.isPopVisible = !1, this.searchDataProvider = "", this.initSearchDataProvider = "", this.queueDataProvider = "", this.initQueueDataProvider = "", this.lastValidSearch = "", this.updateSearchParameter = (r) => {
|
|
@@ -8469,7 +8507,7 @@ let it = class extends Si(
|
|
|
8469
8507
|
}
|
|
8470
8508
|
};
|
|
8471
8509
|
it.styles = [
|
|
8472
|
-
|
|
8510
|
+
ss,
|
|
8473
8511
|
$`
|
|
8474
8512
|
:host {
|
|
8475
8513
|
display: block;
|
|
@@ -8530,7 +8568,7 @@ dt([
|
|
|
8530
8568
|
E()
|
|
8531
8569
|
], it.prototype, "hasInputPrefix", 2);
|
|
8532
8570
|
dt([
|
|
8533
|
-
|
|
8571
|
+
ee("sonic-pop")
|
|
8534
8572
|
], it.prototype, "popElement", 2);
|
|
8535
8573
|
dt([
|
|
8536
8574
|
E()
|
|
@@ -8547,7 +8585,7 @@ var kl = Object.defineProperty, Ol = Object.getOwnPropertyDescriptor, mt = (r, t
|
|
|
8547
8585
|
return s && e && kl(t, i, e), e;
|
|
8548
8586
|
};
|
|
8549
8587
|
const Dl = "sonic-password-helper";
|
|
8550
|
-
let at = class extends
|
|
8588
|
+
let at = class extends ie(_) {
|
|
8551
8589
|
constructor() {
|
|
8552
8590
|
super(...arguments), this.minChars = 8, this.hasNoChar = !0, this.hasEnoughChars = !1, this.hasMinuscule = !1, this.hasMajuscule = !1, this.hasNumber = !1, this.hasSpecialChar = !1, this.wording_password_helper_decription = "Le mot de passe doit contenir au moins :", this.wording_password_helper_min_length = "8 caractères", this.wording_password_helper_lower_case = "1 minuscule", this.wording_password_helper_upper_case = "1 majuscule", this.wording_password_helper_number = "1 chiffre", this.wording_password_helper_special_char = "1 caractère spécial";
|
|
8553
8591
|
}
|
|
@@ -8632,13 +8670,13 @@ mt([
|
|
|
8632
8670
|
at = mt([
|
|
8633
8671
|
x(Dl)
|
|
8634
8672
|
], at);
|
|
8635
|
-
var Ll = Object.defineProperty, El = Object.getOwnPropertyDescriptor,
|
|
8673
|
+
var Ll = Object.defineProperty, El = Object.getOwnPropertyDescriptor, ve = (r, t, i, s) => {
|
|
8636
8674
|
for (var e = s > 1 ? void 0 : s ? El(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
8637
8675
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
8638
8676
|
return s && e && Ll(t, i, e), e;
|
|
8639
8677
|
};
|
|
8640
|
-
const
|
|
8641
|
-
let
|
|
8678
|
+
const Nl = "sonic-same-value-helper";
|
|
8679
|
+
let Jt = class extends ie(_) {
|
|
8642
8680
|
constructor() {
|
|
8643
8681
|
super(...arguments), this.descriptionWhenEqual = "Correspondance : oui", this.descriptionWhenNotEqual = "Correspondance : non", this.areEqual = !1, this.hasNoChar = !0;
|
|
8644
8682
|
}
|
|
@@ -8677,35 +8715,35 @@ let Qt = class extends se(_) {
|
|
|
8677
8715
|
`;
|
|
8678
8716
|
}
|
|
8679
8717
|
};
|
|
8680
|
-
|
|
8718
|
+
ve([
|
|
8681
8719
|
a()
|
|
8682
|
-
],
|
|
8683
|
-
|
|
8720
|
+
], Jt.prototype, "name", 2);
|
|
8721
|
+
ve([
|
|
8684
8722
|
a()
|
|
8685
|
-
],
|
|
8686
|
-
|
|
8723
|
+
], Jt.prototype, "sameValueAs", 2);
|
|
8724
|
+
ve([
|
|
8687
8725
|
a()
|
|
8688
|
-
],
|
|
8689
|
-
|
|
8726
|
+
], Jt.prototype, "descriptionWhenEqual", 2);
|
|
8727
|
+
ve([
|
|
8690
8728
|
a()
|
|
8691
|
-
],
|
|
8692
|
-
|
|
8729
|
+
], Jt.prototype, "descriptionWhenNotEqual", 2);
|
|
8730
|
+
ve([
|
|
8693
8731
|
E()
|
|
8694
|
-
],
|
|
8695
|
-
|
|
8732
|
+
], Jt.prototype, "areEqual", 2);
|
|
8733
|
+
ve([
|
|
8696
8734
|
E()
|
|
8697
|
-
],
|
|
8698
|
-
|
|
8699
|
-
x(
|
|
8700
|
-
],
|
|
8701
|
-
var
|
|
8735
|
+
], Jt.prototype, "hasNoChar", 2);
|
|
8736
|
+
Jt = ve([
|
|
8737
|
+
x(Nl)
|
|
8738
|
+
], Jt);
|
|
8739
|
+
var Tl = Object.defineProperty, Il = Object.getOwnPropertyDescriptor, Ht = (r, t, i, s) => {
|
|
8702
8740
|
for (var e = s > 1 ? void 0 : s ? Il(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
8703
8741
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
8704
|
-
return s && e &&
|
|
8742
|
+
return s && e && Tl(t, i, e), e;
|
|
8705
8743
|
};
|
|
8706
8744
|
const Ml = "sonic-checkbox";
|
|
8707
8745
|
let ft = class extends $i(
|
|
8708
|
-
|
|
8746
|
+
Ts(Le(G(_)))
|
|
8709
8747
|
) {
|
|
8710
8748
|
constructor() {
|
|
8711
8749
|
super(...arguments), this.touched = !1, this.iconName = "check", this.indeterminateIconName = "minus-small", this.showAsIndeterminate = !1, this.hasDescription = !1, this.hasLabel = !1;
|
|
@@ -8755,7 +8793,7 @@ let ft = class extends $i(
|
|
|
8755
8793
|
}
|
|
8756
8794
|
};
|
|
8757
8795
|
ft.styles = [
|
|
8758
|
-
|
|
8796
|
+
Tt,
|
|
8759
8797
|
$`
|
|
8760
8798
|
:host {
|
|
8761
8799
|
--sc-checkbox-border-width: var(--sc-form-border-width);
|
|
@@ -9037,7 +9075,7 @@ var Bl = Object.defineProperty, ql = Object.getOwnPropertyDescriptor, J = (r, t,
|
|
|
9037
9075
|
return s && e && Bl(t, i, e), e;
|
|
9038
9076
|
};
|
|
9039
9077
|
const Hl = "sonic-select";
|
|
9040
|
-
let W = class extends
|
|
9078
|
+
let W = class extends Le(G(_)) {
|
|
9041
9079
|
constructor() {
|
|
9042
9080
|
super(...arguments), this.valueKey = "value", this.wordingKey = "wording", this.multiple = !1, this.status = "default", this._options = [], this.hasDoneFirstUpdate = !1, this._value = "", this.updateOptions = () => {
|
|
9043
9081
|
const r = this.querySelectorAll(
|
|
@@ -9136,7 +9174,7 @@ let W = class extends De(G(_)) {
|
|
|
9136
9174
|
aria-label=${C(this.ariaLabel)}
|
|
9137
9175
|
aria-labelledby=${C(this.ariaLabelledby)}
|
|
9138
9176
|
>
|
|
9139
|
-
${
|
|
9177
|
+
${Ns(
|
|
9140
9178
|
this.options,
|
|
9141
9179
|
(t) => t[this.valueKey],
|
|
9142
9180
|
(t) => {
|
|
@@ -9170,7 +9208,7 @@ let W = class extends De(G(_)) {
|
|
|
9170
9208
|
}
|
|
9171
9209
|
};
|
|
9172
9210
|
W.styles = [
|
|
9173
|
-
|
|
9211
|
+
Tt,
|
|
9174
9212
|
Di,
|
|
9175
9213
|
Ms,
|
|
9176
9214
|
js,
|
|
@@ -9295,7 +9333,7 @@ var Wl = Object.defineProperty, Kl = Object.getOwnPropertyDescriptor, bt = (r, t
|
|
|
9295
9333
|
return s && e && Wl(t, i, e), e;
|
|
9296
9334
|
};
|
|
9297
9335
|
const Yl = "sonic-textarea";
|
|
9298
|
-
let lt = class extends
|
|
9336
|
+
let lt = class extends Ts(Le(G(_))) {
|
|
9299
9337
|
constructor() {
|
|
9300
9338
|
super(...arguments), this.size = "md", this.readonly = !1, this.resize = "vertical", this.hasDescription = !1, this.hasLabel = !1;
|
|
9301
9339
|
}
|
|
@@ -9371,11 +9409,11 @@ ${this.value}</textarea
|
|
|
9371
9409
|
}
|
|
9372
9410
|
};
|
|
9373
9411
|
lt.styles = [
|
|
9374
|
-
|
|
9412
|
+
Tt,
|
|
9375
9413
|
Di,
|
|
9376
9414
|
Ms,
|
|
9377
9415
|
js,
|
|
9378
|
-
|
|
9416
|
+
ss,
|
|
9379
9417
|
$`
|
|
9380
9418
|
textarea {
|
|
9381
9419
|
overflow-y: auto !important;
|
|
@@ -9458,7 +9496,7 @@ ii.styles = [
|
|
|
9458
9496
|
ii = Xl([
|
|
9459
9497
|
x("sonic-legend-description")
|
|
9460
9498
|
], ii);
|
|
9461
|
-
var Gl = Object.defineProperty, Ql = Object.getOwnPropertyDescriptor,
|
|
9499
|
+
var Gl = Object.defineProperty, Ql = Object.getOwnPropertyDescriptor, ye = (r, t, i, s) => {
|
|
9462
9500
|
for (var e = s > 1 ? void 0 : s ? Ql(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
9463
9501
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
9464
9502
|
return s && e && Gl(t, i, e), e;
|
|
@@ -9548,25 +9586,25 @@ Bt.styles = [
|
|
|
9548
9586
|
}
|
|
9549
9587
|
`
|
|
9550
9588
|
];
|
|
9551
|
-
|
|
9589
|
+
ye([
|
|
9552
9590
|
a({ type: Boolean })
|
|
9553
9591
|
], Bt.prototype, "forceAutoFill", 2);
|
|
9554
|
-
|
|
9592
|
+
ye([
|
|
9555
9593
|
a()
|
|
9556
9594
|
], Bt.prototype, "description", 1);
|
|
9557
|
-
|
|
9595
|
+
ye([
|
|
9558
9596
|
a()
|
|
9559
9597
|
], Bt.prototype, "label", 1);
|
|
9560
|
-
|
|
9598
|
+
ye([
|
|
9561
9599
|
a({ type: String })
|
|
9562
9600
|
], Bt.prototype, "iconName", 2);
|
|
9563
|
-
|
|
9601
|
+
ye([
|
|
9564
9602
|
a({ type: String })
|
|
9565
9603
|
], Bt.prototype, "iconLibrary", 2);
|
|
9566
|
-
|
|
9604
|
+
ye([
|
|
9567
9605
|
a({ type: String })
|
|
9568
9606
|
], Bt.prototype, "iconPrefix", 2);
|
|
9569
|
-
Bt =
|
|
9607
|
+
Bt = ye([
|
|
9570
9608
|
x(Jl)
|
|
9571
9609
|
], Bt);
|
|
9572
9610
|
var tc = Object.defineProperty, ec = Object.getOwnPropertyDescriptor, Mt = (r, t, i, s) => {
|
|
@@ -9683,7 +9721,7 @@ var ic = Object.defineProperty, rc = Object.getOwnPropertyDescriptor, Ei = (r, t
|
|
|
9683
9721
|
return s && e && ic(t, i, e), e;
|
|
9684
9722
|
};
|
|
9685
9723
|
const oc = "sonic-form-layout";
|
|
9686
|
-
let
|
|
9724
|
+
let Xe = class extends G(_) {
|
|
9687
9725
|
constructor() {
|
|
9688
9726
|
super(...arguments), this._resizeController = new Mr(this, {}), this.oneFormElement = !1;
|
|
9689
9727
|
}
|
|
@@ -9702,7 +9740,7 @@ let Ze = class extends G(_) {
|
|
|
9702
9740
|
</div>`;
|
|
9703
9741
|
}
|
|
9704
9742
|
};
|
|
9705
|
-
|
|
9743
|
+
Xe.styles = [
|
|
9706
9744
|
$`
|
|
9707
9745
|
:host {
|
|
9708
9746
|
display: block;
|
|
@@ -9741,21 +9779,21 @@ Ze.styles = [
|
|
|
9741
9779
|
`
|
|
9742
9780
|
];
|
|
9743
9781
|
Ei([
|
|
9744
|
-
|
|
9745
|
-
],
|
|
9782
|
+
ke({ flatten: !0 })
|
|
9783
|
+
], Xe.prototype, "slottedElements", 2);
|
|
9746
9784
|
Ei([
|
|
9747
9785
|
a({ type: Boolean })
|
|
9748
|
-
],
|
|
9749
|
-
|
|
9786
|
+
], Xe.prototype, "oneFormElement", 2);
|
|
9787
|
+
Xe = Ei([
|
|
9750
9788
|
x(oc)
|
|
9751
|
-
],
|
|
9752
|
-
var nc = Object.defineProperty, ac = Object.getOwnPropertyDescriptor,
|
|
9789
|
+
], Xe);
|
|
9790
|
+
var nc = Object.defineProperty, ac = Object.getOwnPropertyDescriptor, Ni = (r, t, i, s) => {
|
|
9753
9791
|
for (var e = s > 1 ? void 0 : s ? ac(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
9754
9792
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
9755
9793
|
return s && e && nc(t, i, e), e;
|
|
9756
9794
|
};
|
|
9757
9795
|
const lc = "sonic-form-actions";
|
|
9758
|
-
let
|
|
9796
|
+
let Ge = class extends _ {
|
|
9759
9797
|
constructor() {
|
|
9760
9798
|
super(...arguments), this.direction = "row", this.justify = "flex-start";
|
|
9761
9799
|
}
|
|
@@ -9767,7 +9805,7 @@ let Xe = class extends _ {
|
|
|
9767
9805
|
return b`<slot style=${pt(r)}></slot>`;
|
|
9768
9806
|
}
|
|
9769
9807
|
};
|
|
9770
|
-
|
|
9808
|
+
Ge.styles = [
|
|
9771
9809
|
$`
|
|
9772
9810
|
:host {
|
|
9773
9811
|
display: block;
|
|
@@ -9779,16 +9817,16 @@ Xe.styles = [
|
|
|
9779
9817
|
}
|
|
9780
9818
|
`
|
|
9781
9819
|
];
|
|
9782
|
-
|
|
9820
|
+
Ni([
|
|
9783
9821
|
a({ type: String })
|
|
9784
|
-
],
|
|
9785
|
-
|
|
9822
|
+
], Ge.prototype, "direction", 2);
|
|
9823
|
+
Ni([
|
|
9786
9824
|
a({ type: String })
|
|
9787
|
-
],
|
|
9788
|
-
|
|
9825
|
+
], Ge.prototype, "justify", 2);
|
|
9826
|
+
Ge = Ni([
|
|
9789
9827
|
x(lc)
|
|
9790
|
-
],
|
|
9791
|
-
var cc = Object.defineProperty, hc = Object.getOwnPropertyDescriptor,
|
|
9828
|
+
], Ge);
|
|
9829
|
+
var cc = Object.defineProperty, hc = Object.getOwnPropertyDescriptor, re = (r, t, i, s) => {
|
|
9792
9830
|
for (var e = s > 1 ? void 0 : s ? hc(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
9793
9831
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
9794
9832
|
return s && e && cc(t, i, e), e;
|
|
@@ -9840,7 +9878,7 @@ let Et = class extends _ {
|
|
|
9840
9878
|
}
|
|
9841
9879
|
};
|
|
9842
9880
|
Et.styles = [
|
|
9843
|
-
|
|
9881
|
+
Tt,
|
|
9844
9882
|
Ms,
|
|
9845
9883
|
js,
|
|
9846
9884
|
$`
|
|
@@ -9865,28 +9903,28 @@ Et.styles = [
|
|
|
9865
9903
|
}
|
|
9866
9904
|
`
|
|
9867
9905
|
];
|
|
9868
|
-
|
|
9906
|
+
re([
|
|
9869
9907
|
a({ type: String })
|
|
9870
9908
|
], Et.prototype, "alignItems", 2);
|
|
9871
|
-
|
|
9909
|
+
re([
|
|
9872
9910
|
a({ type: String })
|
|
9873
9911
|
], Et.prototype, "label", 2);
|
|
9874
|
-
|
|
9912
|
+
re([
|
|
9875
9913
|
a({ type: String })
|
|
9876
9914
|
], Et.prototype, "description", 2);
|
|
9877
|
-
|
|
9915
|
+
re([
|
|
9878
9916
|
ht({ slot: "label", flatten: !0 })
|
|
9879
9917
|
], Et.prototype, "slotLabelNodes", 2);
|
|
9880
|
-
|
|
9918
|
+
re([
|
|
9881
9919
|
ht({ slot: "description", flatten: !0 })
|
|
9882
9920
|
], Et.prototype, "slotDescriptionNodes", 2);
|
|
9883
|
-
|
|
9921
|
+
re([
|
|
9884
9922
|
E()
|
|
9885
9923
|
], Et.prototype, "hasDescription", 2);
|
|
9886
|
-
|
|
9924
|
+
re([
|
|
9887
9925
|
E()
|
|
9888
9926
|
], Et.prototype, "hasLabel", 2);
|
|
9889
|
-
Et =
|
|
9927
|
+
Et = re([
|
|
9890
9928
|
x(dc)
|
|
9891
9929
|
], Et);
|
|
9892
9930
|
var uc = Object.defineProperty, pc = Object.getOwnPropertyDescriptor, jt = (r, t, i, s) => {
|
|
@@ -10330,16 +10368,16 @@ gt([
|
|
|
10330
10368
|
a({ type: String })
|
|
10331
10369
|
], ct.prototype, "minWidth", 2);
|
|
10332
10370
|
gt([
|
|
10333
|
-
|
|
10371
|
+
ee("menu")
|
|
10334
10372
|
], ct.prototype, "menu", 2);
|
|
10335
10373
|
gt([
|
|
10336
|
-
|
|
10374
|
+
ee("#menu-content")
|
|
10337
10375
|
], ct.prototype, "menuContent", 2);
|
|
10338
10376
|
gt([
|
|
10339
|
-
|
|
10377
|
+
ke({ selector: "*" })
|
|
10340
10378
|
], ct.prototype, "menuChildren", 2);
|
|
10341
10379
|
gt([
|
|
10342
|
-
|
|
10380
|
+
ke({ slot: "more", selector: "*" })
|
|
10343
10381
|
], ct.prototype, "moreElements", 2);
|
|
10344
10382
|
gt([
|
|
10345
10383
|
E()
|
|
@@ -10357,7 +10395,7 @@ let Ss = class extends _ {
|
|
|
10357
10395
|
firstUpdated(r) {
|
|
10358
10396
|
this.buttons?.forEach((t) => {
|
|
10359
10397
|
t.hasAttribute("hideModal") && t.addEventListener("click", () => {
|
|
10360
|
-
|
|
10398
|
+
Zt.getClosestElement(
|
|
10361
10399
|
this,
|
|
10362
10400
|
"sonic-modal"
|
|
10363
10401
|
)?.hide();
|
|
@@ -10379,7 +10417,7 @@ Ss.styles = [
|
|
|
10379
10417
|
`
|
|
10380
10418
|
];
|
|
10381
10419
|
jr([
|
|
10382
|
-
|
|
10420
|
+
ke({ selector: "sonic-button" })
|
|
10383
10421
|
], Ss.prototype, "buttons", 2);
|
|
10384
10422
|
Ss = jr([
|
|
10385
10423
|
x(wc)
|
|
@@ -10390,7 +10428,7 @@ var _c = Object.defineProperty, xc = Object.getOwnPropertyDescriptor, Fs = (r, t
|
|
|
10390
10428
|
return s && e && _c(t, i, e), e;
|
|
10391
10429
|
};
|
|
10392
10430
|
const Pc = "sonic-modal-close";
|
|
10393
|
-
let
|
|
10431
|
+
let Qe = class extends _ {
|
|
10394
10432
|
constructor() {
|
|
10395
10433
|
super(...arguments), this.translation = {
|
|
10396
10434
|
fr: "Fermer la fenêtre",
|
|
@@ -10420,16 +10458,16 @@ let Ge = class extends _ {
|
|
|
10420
10458
|
};
|
|
10421
10459
|
Fs([
|
|
10422
10460
|
a()
|
|
10423
|
-
],
|
|
10461
|
+
], Qe.prototype, "translation", 2);
|
|
10424
10462
|
Fs([
|
|
10425
10463
|
a()
|
|
10426
|
-
],
|
|
10464
|
+
], Qe.prototype, "reset", 2);
|
|
10427
10465
|
Fs([
|
|
10428
10466
|
a()
|
|
10429
|
-
],
|
|
10430
|
-
|
|
10467
|
+
], Qe.prototype, "type", 2);
|
|
10468
|
+
Qe = Fs([
|
|
10431
10469
|
x(Pc)
|
|
10432
|
-
],
|
|
10470
|
+
], Qe);
|
|
10433
10471
|
var $c = Object.getOwnPropertyDescriptor, Cc = (r, t, i, s) => {
|
|
10434
10472
|
for (var e = s > 1 ? void 0 : s ? $c(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
10435
10473
|
(n = r[o]) && (e = n(e) || e);
|
|
@@ -10511,10 +10549,10 @@ ni.styles = [
|
|
|
10511
10549
|
ni = Lc([
|
|
10512
10550
|
x(Ec)
|
|
10513
10551
|
], ni);
|
|
10514
|
-
var
|
|
10515
|
-
for (var e = s > 1 ? void 0 : s ?
|
|
10552
|
+
var Nc = Object.defineProperty, Tc = Object.getOwnPropertyDescriptor, Y = (r, t, i, s) => {
|
|
10553
|
+
for (var e = s > 1 ? void 0 : s ? Tc(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
10516
10554
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
10517
|
-
return s && e &&
|
|
10555
|
+
return s && e && Nc(t, i, e), e;
|
|
10518
10556
|
};
|
|
10519
10557
|
const Fr = "sonic-modal";
|
|
10520
10558
|
let I = class extends G(_) {
|
|
@@ -10695,7 +10733,7 @@ let I = class extends G(_) {
|
|
|
10695
10733
|
}
|
|
10696
10734
|
};
|
|
10697
10735
|
I.styles = [
|
|
10698
|
-
|
|
10736
|
+
ss,
|
|
10699
10737
|
$`
|
|
10700
10738
|
:host {
|
|
10701
10739
|
--sc-modal-py: 2.5rem;
|
|
@@ -10901,7 +10939,7 @@ Y([
|
|
|
10901
10939
|
a({ type: String })
|
|
10902
10940
|
], I.prototype, "closeButtonType", 2);
|
|
10903
10941
|
Y([
|
|
10904
|
-
|
|
10942
|
+
ee("#modal")
|
|
10905
10943
|
], I.prototype, "_modalElement", 2);
|
|
10906
10944
|
Y([
|
|
10907
10945
|
a({ type: Boolean })
|
|
@@ -10972,7 +11010,7 @@ let $t = class extends _ {
|
|
|
10972
11010
|
}
|
|
10973
11011
|
};
|
|
10974
11012
|
$t.styles = [
|
|
10975
|
-
|
|
11013
|
+
Tt,
|
|
10976
11014
|
$`
|
|
10977
11015
|
:host {
|
|
10978
11016
|
--sc_color: var(--sc-base-content, #000);
|
|
@@ -11092,13 +11130,13 @@ Ft([
|
|
|
11092
11130
|
$t = Ft([
|
|
11093
11131
|
x(Fc)
|
|
11094
11132
|
], $t);
|
|
11095
|
-
var zc = Object.defineProperty, Rc = Object.getOwnPropertyDescriptor,
|
|
11133
|
+
var zc = Object.defineProperty, Rc = Object.getOwnPropertyDescriptor, ns = (r, t, i, s) => {
|
|
11096
11134
|
for (var e = s > 1 ? void 0 : s ? Rc(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11097
11135
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
11098
11136
|
return s && e && zc(t, i, e), e;
|
|
11099
11137
|
};
|
|
11100
11138
|
const Uc = "sonic-alert-messages";
|
|
11101
|
-
let
|
|
11139
|
+
let fe = class extends G(_) {
|
|
11102
11140
|
constructor() {
|
|
11103
11141
|
super(...arguments), this.size = "md", this.background = !1, this.noIcon = !1, this.messages = [];
|
|
11104
11142
|
}
|
|
@@ -11114,7 +11152,7 @@ let pe = class extends G(_) {
|
|
|
11114
11152
|
</div>` : S;
|
|
11115
11153
|
}
|
|
11116
11154
|
};
|
|
11117
|
-
|
|
11155
|
+
fe.styles = [
|
|
11118
11156
|
$`
|
|
11119
11157
|
.container {
|
|
11120
11158
|
display: grid;
|
|
@@ -11124,21 +11162,21 @@ pe.styles = [
|
|
|
11124
11162
|
}
|
|
11125
11163
|
`
|
|
11126
11164
|
];
|
|
11127
|
-
|
|
11165
|
+
ns([
|
|
11128
11166
|
a({ type: String })
|
|
11129
|
-
],
|
|
11130
|
-
|
|
11167
|
+
], fe.prototype, "size", 2);
|
|
11168
|
+
ns([
|
|
11131
11169
|
a({ type: Boolean })
|
|
11132
|
-
],
|
|
11133
|
-
|
|
11170
|
+
], fe.prototype, "background", 2);
|
|
11171
|
+
ns([
|
|
11134
11172
|
a({ type: Boolean })
|
|
11135
|
-
],
|
|
11136
|
-
|
|
11173
|
+
], fe.prototype, "noIcon", 2);
|
|
11174
|
+
ns([
|
|
11137
11175
|
a({ type: Array })
|
|
11138
|
-
],
|
|
11139
|
-
|
|
11176
|
+
], fe.prototype, "messages", 2);
|
|
11177
|
+
fe = ns([
|
|
11140
11178
|
x(Uc)
|
|
11141
|
-
],
|
|
11179
|
+
], fe);
|
|
11142
11180
|
var Vc = Object.defineProperty, Bc = Object.getOwnPropertyDescriptor, zr = (r, t, i, s) => {
|
|
11143
11181
|
for (var e = s > 1 ? void 0 : s ? Bc(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11144
11182
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
@@ -11167,13 +11205,13 @@ zr([
|
|
|
11167
11205
|
ai = zr([
|
|
11168
11206
|
x(qc)
|
|
11169
11207
|
], ai);
|
|
11170
|
-
var Hc = Object.defineProperty, Wc = Object.getOwnPropertyDescriptor,
|
|
11208
|
+
var Hc = Object.defineProperty, Wc = Object.getOwnPropertyDescriptor, as = (r, t, i, s) => {
|
|
11171
11209
|
for (var e = s > 1 ? void 0 : s ? Wc(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11172
11210
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
11173
11211
|
return s && e && Hc(t, i, e), e;
|
|
11174
11212
|
};
|
|
11175
11213
|
const Kc = "sonic-tooltip";
|
|
11176
|
-
let
|
|
11214
|
+
let me = class extends _ {
|
|
11177
11215
|
constructor() {
|
|
11178
11216
|
super(), this.label = "", this.disabled = !1, this.focusable = !1, this.lastKeyWasTab = !1, this.handleKeyDown = (r) => {
|
|
11179
11217
|
r.key === "Tab" && (this.lastKeyWasTab = !0);
|
|
@@ -11208,7 +11246,7 @@ let fe = class extends _ {
|
|
|
11208
11246
|
</div>`;
|
|
11209
11247
|
}
|
|
11210
11248
|
};
|
|
11211
|
-
|
|
11249
|
+
me.styles = [
|
|
11212
11250
|
$`
|
|
11213
11251
|
:host {
|
|
11214
11252
|
position: relative;
|
|
@@ -11317,21 +11355,21 @@ fe.styles = [
|
|
|
11317
11355
|
}
|
|
11318
11356
|
`
|
|
11319
11357
|
];
|
|
11320
|
-
|
|
11358
|
+
as([
|
|
11321
11359
|
a({ type: String })
|
|
11322
|
-
],
|
|
11323
|
-
|
|
11360
|
+
], me.prototype, "label", 2);
|
|
11361
|
+
as([
|
|
11324
11362
|
a({ type: String, reflect: !0 })
|
|
11325
|
-
],
|
|
11326
|
-
|
|
11363
|
+
], me.prototype, "placement", 2);
|
|
11364
|
+
as([
|
|
11327
11365
|
a({ type: Boolean })
|
|
11328
|
-
],
|
|
11329
|
-
|
|
11366
|
+
], me.prototype, "disabled", 2);
|
|
11367
|
+
as([
|
|
11330
11368
|
a({ type: Boolean })
|
|
11331
|
-
],
|
|
11332
|
-
|
|
11369
|
+
], me.prototype, "focusable", 2);
|
|
11370
|
+
me = as([
|
|
11333
11371
|
x(Kc)
|
|
11334
|
-
],
|
|
11372
|
+
], me);
|
|
11335
11373
|
var Yc = Object.defineProperty, Zc = Object.getOwnPropertyDescriptor, zt = (r, t, i, s) => {
|
|
11336
11374
|
for (var e = s > 1 ? void 0 : s ? Zc(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11337
11375
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
@@ -11491,7 +11529,7 @@ zt([
|
|
|
11491
11529
|
ht({ flatten: !0 })
|
|
11492
11530
|
], Ct.prototype, "slotNodes", 2);
|
|
11493
11531
|
zt([
|
|
11494
|
-
|
|
11532
|
+
ee("div")
|
|
11495
11533
|
], Ct.prototype, "divider", 2);
|
|
11496
11534
|
zt([
|
|
11497
11535
|
a({ type: String })
|
|
@@ -11542,13 +11580,13 @@ li.styles = [
|
|
|
11542
11580
|
li = Qc([
|
|
11543
11581
|
x(Jc)
|
|
11544
11582
|
], li);
|
|
11545
|
-
var th = Object.defineProperty, eh = Object.getOwnPropertyDescriptor,
|
|
11583
|
+
var th = Object.defineProperty, eh = Object.getOwnPropertyDescriptor, Ti = (r, t, i, s) => {
|
|
11546
11584
|
for (var e = s > 1 ? void 0 : s ? eh(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11547
11585
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
11548
11586
|
return s && e && th(t, i, e), e;
|
|
11549
11587
|
};
|
|
11550
11588
|
const sh = "sonic-card-header";
|
|
11551
|
-
let
|
|
11589
|
+
let Je = class extends _ {
|
|
11552
11590
|
render() {
|
|
11553
11591
|
return b`
|
|
11554
11592
|
<div class="header-content">
|
|
@@ -11562,7 +11600,7 @@ let Qe = class extends _ {
|
|
|
11562
11600
|
`;
|
|
11563
11601
|
}
|
|
11564
11602
|
};
|
|
11565
|
-
|
|
11603
|
+
Je.styles = [
|
|
11566
11604
|
$`
|
|
11567
11605
|
:host {
|
|
11568
11606
|
--sc-card-header-mb: 1.35rem;
|
|
@@ -11603,15 +11641,15 @@ Qe.styles = [
|
|
|
11603
11641
|
}
|
|
11604
11642
|
`
|
|
11605
11643
|
];
|
|
11606
|
-
|
|
11644
|
+
Ti([
|
|
11607
11645
|
a()
|
|
11608
|
-
],
|
|
11609
|
-
|
|
11646
|
+
], Je.prototype, "label", 2);
|
|
11647
|
+
Ti([
|
|
11610
11648
|
a()
|
|
11611
|
-
],
|
|
11612
|
-
|
|
11649
|
+
], Je.prototype, "description", 2);
|
|
11650
|
+
Je = Ti([
|
|
11613
11651
|
x(sh)
|
|
11614
|
-
],
|
|
11652
|
+
], Je);
|
|
11615
11653
|
var ih = Object.getOwnPropertyDescriptor, rh = (r, t, i, s) => {
|
|
11616
11654
|
for (var e = s > 1 ? void 0 : s ? ih(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11617
11655
|
(n = r[o]) && (e = n(e) || e);
|
|
@@ -11797,13 +11835,13 @@ Rr([
|
|
|
11797
11835
|
As = Rr([
|
|
11798
11836
|
x(uh)
|
|
11799
11837
|
], As);
|
|
11800
|
-
var ph = Object.defineProperty, fh = Object.getOwnPropertyDescriptor,
|
|
11838
|
+
var ph = Object.defineProperty, fh = Object.getOwnPropertyDescriptor, ls = (r, t, i, s) => {
|
|
11801
11839
|
for (var e = s > 1 ? void 0 : s ? fh(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11802
11840
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
11803
11841
|
return s && e && ph(t, i, e), e;
|
|
11804
11842
|
};
|
|
11805
11843
|
const mh = "sonic-tr";
|
|
11806
|
-
let
|
|
11844
|
+
let be = class extends G(_) {
|
|
11807
11845
|
constructor() {
|
|
11808
11846
|
super(...arguments), this._metadata_ = {};
|
|
11809
11847
|
}
|
|
@@ -11814,7 +11852,7 @@ let me = class extends G(_) {
|
|
|
11814
11852
|
return b`<slot></slot>`;
|
|
11815
11853
|
}
|
|
11816
11854
|
};
|
|
11817
|
-
|
|
11855
|
+
be.styles = [
|
|
11818
11856
|
Ii,
|
|
11819
11857
|
$`
|
|
11820
11858
|
:host {
|
|
@@ -11836,22 +11874,22 @@ me.styles = [
|
|
|
11836
11874
|
}
|
|
11837
11875
|
`
|
|
11838
11876
|
];
|
|
11839
|
-
|
|
11877
|
+
ls([
|
|
11840
11878
|
a({ type: Object })
|
|
11841
|
-
],
|
|
11842
|
-
|
|
11879
|
+
], be.prototype, "_metadata_", 2);
|
|
11880
|
+
ls([
|
|
11843
11881
|
a({ type: Boolean, reflect: !0 })
|
|
11844
|
-
],
|
|
11845
|
-
|
|
11882
|
+
], be.prototype, "even", 2);
|
|
11883
|
+
ls([
|
|
11846
11884
|
a({ type: Boolean, reflect: !0 })
|
|
11847
|
-
],
|
|
11848
|
-
|
|
11885
|
+
], be.prototype, "odd", 2);
|
|
11886
|
+
ls([
|
|
11849
11887
|
a({ type: Boolean, reflect: !0 })
|
|
11850
|
-
],
|
|
11851
|
-
|
|
11888
|
+
], be.prototype, "last", 2);
|
|
11889
|
+
be = ls([
|
|
11852
11890
|
x(mh)
|
|
11853
|
-
],
|
|
11854
|
-
var bh = Object.defineProperty, gh = Object.getOwnPropertyDescriptor,
|
|
11891
|
+
], be);
|
|
11892
|
+
var bh = Object.defineProperty, gh = Object.getOwnPropertyDescriptor, we = (r, t, i, s) => {
|
|
11855
11893
|
for (var e = s > 1 ? void 0 : s ? gh(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11856
11894
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
11857
11895
|
return s && e && bh(t, i, e), e;
|
|
@@ -11902,34 +11940,34 @@ qt.styles = [
|
|
|
11902
11940
|
}
|
|
11903
11941
|
`
|
|
11904
11942
|
];
|
|
11905
|
-
|
|
11943
|
+
we([
|
|
11906
11944
|
a({ type: Number })
|
|
11907
11945
|
], qt.prototype, "colSpan", 2);
|
|
11908
|
-
|
|
11946
|
+
we([
|
|
11909
11947
|
a({ type: Number })
|
|
11910
11948
|
], qt.prototype, "rowSpan", 2);
|
|
11911
|
-
|
|
11949
|
+
we([
|
|
11912
11950
|
a({ type: String })
|
|
11913
11951
|
], qt.prototype, "align", 2);
|
|
11914
|
-
|
|
11952
|
+
we([
|
|
11915
11953
|
a({ type: String })
|
|
11916
11954
|
], qt.prototype, "minWidth", 2);
|
|
11917
|
-
|
|
11955
|
+
we([
|
|
11918
11956
|
a({ type: String })
|
|
11919
11957
|
], qt.prototype, "maxWidth", 2);
|
|
11920
|
-
|
|
11958
|
+
we([
|
|
11921
11959
|
a({ type: String })
|
|
11922
11960
|
], qt.prototype, "width", 2);
|
|
11923
|
-
qt =
|
|
11961
|
+
qt = we([
|
|
11924
11962
|
x(vh)
|
|
11925
11963
|
], qt);
|
|
11926
|
-
var yh = Object.defineProperty, wh = Object.getOwnPropertyDescriptor,
|
|
11964
|
+
var yh = Object.defineProperty, wh = Object.getOwnPropertyDescriptor, oe = (r, t, i, s) => {
|
|
11927
11965
|
for (var e = s > 1 ? void 0 : s ? wh(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11928
11966
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
11929
11967
|
return s && e && yh(t, i, e), e;
|
|
11930
11968
|
};
|
|
11931
11969
|
const _h = "sonic-td";
|
|
11932
|
-
let
|
|
11970
|
+
let Nt = class extends _ {
|
|
11933
11971
|
render() {
|
|
11934
11972
|
const r = {
|
|
11935
11973
|
textAlign: this.align,
|
|
@@ -11943,7 +11981,7 @@ let Tt = class extends _ {
|
|
|
11943
11981
|
</td>`;
|
|
11944
11982
|
}
|
|
11945
11983
|
};
|
|
11946
|
-
|
|
11984
|
+
Nt.styles = [
|
|
11947
11985
|
Ii,
|
|
11948
11986
|
$`
|
|
11949
11987
|
:host {
|
|
@@ -11960,30 +11998,30 @@ Tt.styles = [
|
|
|
11960
11998
|
}
|
|
11961
11999
|
`
|
|
11962
12000
|
];
|
|
11963
|
-
|
|
12001
|
+
oe([
|
|
11964
12002
|
a({ type: Number })
|
|
11965
|
-
],
|
|
11966
|
-
|
|
12003
|
+
], Nt.prototype, "colSpan", 2);
|
|
12004
|
+
oe([
|
|
11967
12005
|
a({ type: Number })
|
|
11968
|
-
],
|
|
11969
|
-
|
|
12006
|
+
], Nt.prototype, "rowSpan", 2);
|
|
12007
|
+
oe([
|
|
11970
12008
|
a({ type: String })
|
|
11971
|
-
],
|
|
11972
|
-
|
|
12009
|
+
], Nt.prototype, "align", 2);
|
|
12010
|
+
oe([
|
|
11973
12011
|
a({ type: String })
|
|
11974
|
-
],
|
|
11975
|
-
|
|
12012
|
+
], Nt.prototype, "vAlign", 2);
|
|
12013
|
+
oe([
|
|
11976
12014
|
a({ type: String })
|
|
11977
|
-
],
|
|
11978
|
-
|
|
12015
|
+
], Nt.prototype, "minWidth", 2);
|
|
12016
|
+
oe([
|
|
11979
12017
|
a({ type: String })
|
|
11980
|
-
],
|
|
11981
|
-
|
|
12018
|
+
], Nt.prototype, "maxWidth", 2);
|
|
12019
|
+
oe([
|
|
11982
12020
|
a({ type: String })
|
|
11983
|
-
],
|
|
11984
|
-
|
|
12021
|
+
], Nt.prototype, "width", 2);
|
|
12022
|
+
Nt = oe([
|
|
11985
12023
|
x(_h)
|
|
11986
|
-
],
|
|
12024
|
+
], Nt);
|
|
11987
12025
|
var xh = Object.getOwnPropertyDescriptor, Ph = (r, t, i, s) => {
|
|
11988
12026
|
for (var e = s > 1 ? void 0 : s ? xh(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11989
12027
|
(n = r[o]) && (e = n(e) || e);
|
|
@@ -12069,7 +12107,7 @@ var Lh = Object.getOwnPropertyDescriptor, Eh = (r, t, i, s) => {
|
|
|
12069
12107
|
(n = r[o]) && (e = n(e) || e);
|
|
12070
12108
|
return e;
|
|
12071
12109
|
};
|
|
12072
|
-
const
|
|
12110
|
+
const Nh = "sonic-caption";
|
|
12073
12111
|
let fi = class extends _ {
|
|
12074
12112
|
render() {
|
|
12075
12113
|
return b`<slot></slot>`;
|
|
@@ -12086,15 +12124,15 @@ fi.styles = [
|
|
|
12086
12124
|
`
|
|
12087
12125
|
];
|
|
12088
12126
|
fi = Eh([
|
|
12089
|
-
x(
|
|
12127
|
+
x(Nh)
|
|
12090
12128
|
], fi);
|
|
12091
|
-
var
|
|
12129
|
+
var Th = Object.defineProperty, Ih = Object.getOwnPropertyDescriptor, Me = (r, t, i, s) => {
|
|
12092
12130
|
for (var e = s > 1 ? void 0 : s ? Ih(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
12093
12131
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
12094
|
-
return s && e &&
|
|
12132
|
+
return s && e && Th(t, i, e), e;
|
|
12095
12133
|
};
|
|
12096
12134
|
const Mh = "sonic-table";
|
|
12097
|
-
let
|
|
12135
|
+
let te = class extends _ {
|
|
12098
12136
|
render() {
|
|
12099
12137
|
const r = {
|
|
12100
12138
|
maxHeight: this.maxHeight
|
|
@@ -12111,9 +12149,9 @@ let Jt = class extends _ {
|
|
|
12111
12149
|
`;
|
|
12112
12150
|
}
|
|
12113
12151
|
};
|
|
12114
|
-
|
|
12115
|
-
|
|
12116
|
-
|
|
12152
|
+
te.styles = [
|
|
12153
|
+
ss,
|
|
12154
|
+
Tt,
|
|
12117
12155
|
$`
|
|
12118
12156
|
:host {
|
|
12119
12157
|
--sc-table-fw: var(--sc-font-weight-base, 400);
|
|
@@ -12161,24 +12199,24 @@ Jt.styles = [
|
|
|
12161
12199
|
}
|
|
12162
12200
|
`
|
|
12163
12201
|
];
|
|
12164
|
-
|
|
12202
|
+
Me([
|
|
12165
12203
|
a({ type: String, reflect: !0 })
|
|
12166
|
-
],
|
|
12167
|
-
|
|
12204
|
+
], te.prototype, "size", 2);
|
|
12205
|
+
Me([
|
|
12168
12206
|
a({ type: Boolean, reflect: !0 })
|
|
12169
|
-
],
|
|
12170
|
-
|
|
12207
|
+
], te.prototype, "bordered", 2);
|
|
12208
|
+
Me([
|
|
12171
12209
|
a({ type: Boolean, reflect: !0 })
|
|
12172
|
-
],
|
|
12173
|
-
|
|
12210
|
+
], te.prototype, "rounded", 2);
|
|
12211
|
+
Me([
|
|
12174
12212
|
a({ type: Boolean, reflect: !0 })
|
|
12175
|
-
],
|
|
12176
|
-
|
|
12213
|
+
], te.prototype, "noCustomScroll", 2);
|
|
12214
|
+
Me([
|
|
12177
12215
|
a({ type: String })
|
|
12178
|
-
],
|
|
12179
|
-
|
|
12216
|
+
], te.prototype, "maxHeight", 2);
|
|
12217
|
+
te = Me([
|
|
12180
12218
|
x(Mh)
|
|
12181
|
-
],
|
|
12219
|
+
], te);
|
|
12182
12220
|
const Ur = "AES-CBC", jh = 256;
|
|
12183
12221
|
async function Fh() {
|
|
12184
12222
|
return crypto.subtle.generateKey(
|
|
@@ -12437,7 +12475,7 @@ var Vh = Object.defineProperty, Bh = Object.getOwnPropertyDescriptor, zs = (r, t
|
|
|
12437
12475
|
const qh = "supersoniks_altcha", Hh = "Si2\\]X8M4!n9DCLd";
|
|
12438
12476
|
let pr = !1;
|
|
12439
12477
|
const Wh = "sonic-captcha";
|
|
12440
|
-
let
|
|
12478
|
+
let Ae = class extends ie(_) {
|
|
12441
12479
|
constructor() {
|
|
12442
12480
|
super(...arguments), this.key = "", this.action = null, this.zIndex = 9999, this.onCaptchaTokenChanged = (r) => {
|
|
12443
12481
|
r == "request_token" && (this.formPublisher && this.formPublisher.captchaToken.set(""), this.requestToken());
|
|
@@ -12476,7 +12514,7 @@ let Se = class extends se(_) {
|
|
|
12476
12514
|
render() {
|
|
12477
12515
|
if (!this.key)
|
|
12478
12516
|
return S;
|
|
12479
|
-
const t =
|
|
12517
|
+
const t = Zt.getLanguage().match("^fr\\b") ? {
|
|
12480
12518
|
aria: "Visitez altcha.org",
|
|
12481
12519
|
error: "La vérification a échoué, réessayez plus tard.",
|
|
12482
12520
|
expired: "La vérification a expiré, réessayez.",
|
|
@@ -12510,7 +12548,7 @@ let Se = class extends se(_) {
|
|
|
12510
12548
|
`;
|
|
12511
12549
|
}
|
|
12512
12550
|
};
|
|
12513
|
-
|
|
12551
|
+
Ae.styles = [
|
|
12514
12552
|
Uh,
|
|
12515
12553
|
$`
|
|
12516
12554
|
:host {
|
|
@@ -12535,16 +12573,16 @@ Se.styles = [
|
|
|
12535
12573
|
];
|
|
12536
12574
|
zs([
|
|
12537
12575
|
a()
|
|
12538
|
-
],
|
|
12576
|
+
], Ae.prototype, "key", 2);
|
|
12539
12577
|
zs([
|
|
12540
12578
|
a()
|
|
12541
|
-
],
|
|
12579
|
+
], Ae.prototype, "action", 2);
|
|
12542
12580
|
zs([
|
|
12543
12581
|
a({ type: Number })
|
|
12544
|
-
],
|
|
12545
|
-
|
|
12582
|
+
], Ae.prototype, "zIndex", 2);
|
|
12583
|
+
Ae = zs([
|
|
12546
12584
|
x(Wh)
|
|
12547
|
-
],
|
|
12585
|
+
], Ae);
|
|
12548
12586
|
window.queueMicrotask = window.queueMicrotask || function(r) {
|
|
12549
12587
|
Promise.resolve().then(r).catch(
|
|
12550
12588
|
(t) => setTimeout(() => {
|
|
@@ -12574,16 +12612,16 @@ function Rs(r) {
|
|
|
12574
12612
|
);
|
|
12575
12613
|
};
|
|
12576
12614
|
}
|
|
12577
|
-
const
|
|
12615
|
+
const fs = Symbol("__bindDynamicWatcherStore__"), fr = Symbol("__bindDynamicWillUpdateHooked__");
|
|
12578
12616
|
function Zh(r, t, i) {
|
|
12579
12617
|
const s = String(t);
|
|
12580
|
-
Xh(r), r[
|
|
12618
|
+
Xh(r), r[fs] || Object.defineProperty(r, fs, {
|
|
12581
12619
|
value: /* @__PURE__ */ new Map(),
|
|
12582
12620
|
enumerable: !1,
|
|
12583
12621
|
configurable: !1,
|
|
12584
12622
|
writable: !1
|
|
12585
12623
|
});
|
|
12586
|
-
const e = r[
|
|
12624
|
+
const e = r[fs];
|
|
12587
12625
|
e.has(s) || e.set(s, /* @__PURE__ */ new Set());
|
|
12588
12626
|
const o = e.get(s);
|
|
12589
12627
|
return o.add(i), () => {
|
|
@@ -12598,7 +12636,7 @@ function Xh(r) {
|
|
|
12598
12636
|
"willUpdate"
|
|
12599
12637
|
) ? t.willUpdate : Object.getPrototypeOf(t)?.willUpdate;
|
|
12600
12638
|
t.willUpdate = function(s) {
|
|
12601
|
-
const e = this[
|
|
12639
|
+
const e = this[fs];
|
|
12602
12640
|
e && e.size > 0 && (s && s.size > 0 ? s.forEach((o, n) => {
|
|
12603
12641
|
const l = e.get(String(n));
|
|
12604
12642
|
l && l.forEach((c) => c());
|
|
@@ -12650,7 +12688,7 @@ function td(r) {
|
|
|
12650
12688
|
const i = t.shift() || "";
|
|
12651
12689
|
if (!i) return null;
|
|
12652
12690
|
let s = k.get(i);
|
|
12653
|
-
return s ? (s =
|
|
12691
|
+
return s ? (s = Ee.traverse(s, t), s) : null;
|
|
12654
12692
|
}
|
|
12655
12693
|
function ed(r, t) {
|
|
12656
12694
|
const i = t?.reflect ?? !1, s = Gh(r), e = s.length > 0;
|
|
@@ -12728,18 +12766,18 @@ function ed(r, t) {
|
|
|
12728
12766
|
});
|
|
12729
12767
|
};
|
|
12730
12768
|
}
|
|
12731
|
-
const
|
|
12769
|
+
const ms = Symbol("__onAssignDynamicWatcherStore__"), mr = Symbol(
|
|
12732
12770
|
"__onAssignDynamicWillUpdateHooked__"
|
|
12733
12771
|
);
|
|
12734
12772
|
function sd(r, t, i) {
|
|
12735
12773
|
const s = String(t);
|
|
12736
|
-
id(r), r[
|
|
12774
|
+
id(r), r[ms] || Object.defineProperty(r, ms, {
|
|
12737
12775
|
value: /* @__PURE__ */ new Map(),
|
|
12738
12776
|
enumerable: !1,
|
|
12739
12777
|
configurable: !1,
|
|
12740
12778
|
writable: !1
|
|
12741
12779
|
});
|
|
12742
|
-
const e = r[
|
|
12780
|
+
const e = r[ms];
|
|
12743
12781
|
e.has(s) || e.set(s, /* @__PURE__ */ new Set());
|
|
12744
12782
|
const o = e.get(s);
|
|
12745
12783
|
return o.add(i), () => {
|
|
@@ -12754,7 +12792,7 @@ function id(r) {
|
|
|
12754
12792
|
"willUpdate"
|
|
12755
12793
|
) ? t.willUpdate : Object.getPrototypeOf(t)?.willUpdate;
|
|
12756
12794
|
t.willUpdate = function(s) {
|
|
12757
|
-
const e = this[
|
|
12795
|
+
const e = this[ms];
|
|
12758
12796
|
e && e.size > 0 && (s && s.size > 0 ? s.forEach((o, n) => {
|
|
12759
12797
|
const l = e.get(String(n));
|
|
12760
12798
|
l && l.forEach((c) => c());
|
|
@@ -12806,7 +12844,7 @@ function ad(r) {
|
|
|
12806
12844
|
const i = t.shift() || "";
|
|
12807
12845
|
if (!i) return null;
|
|
12808
12846
|
let s = k.get(i);
|
|
12809
|
-
return s ? (s =
|
|
12847
|
+
return s ? (s = Ee.traverse(s, t), s) : null;
|
|
12810
12848
|
}
|
|
12811
12849
|
function ld(...r) {
|
|
12812
12850
|
const t = r.map((i) => {
|
|
@@ -12929,7 +12967,7 @@ function hd(r) {
|
|
|
12929
12967
|
continue;
|
|
12930
12968
|
const e = s.shift() || "";
|
|
12931
12969
|
let o = k.get(e);
|
|
12932
|
-
o =
|
|
12970
|
+
o = Ee.traverse(o, s), t.__onConnected__((n) => {
|
|
12933
12971
|
o.startTemplateFilling(n);
|
|
12934
12972
|
}), t.__onDisconnected__(() => {
|
|
12935
12973
|
});
|
|
@@ -12991,7 +13029,7 @@ class ud extends xi {
|
|
|
12991
13029
|
this.observable && this.subscribe(this.observable);
|
|
12992
13030
|
}
|
|
12993
13031
|
}
|
|
12994
|
-
const qr =
|
|
13032
|
+
const qr = se(ud), pd = qr, fd = qr;
|
|
12995
13033
|
window["concorde-directives-data-provider"] = window["concorde-directives-data-provider"] || {};
|
|
12996
13034
|
window["concorde-directives-data-provider"] = {
|
|
12997
13035
|
dp: Os,
|