@supersoniks/concorde 3.0.12 → 3.1.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 +129 -124
- package/concorde-core.es.js +1117 -1101
- package/dist/concorde-core.bundle.js +129 -124
- package/dist/concorde-core.es.js +1117 -1101
- package/dist/fonts/ClashGrotesk-Bold.eot +0 -0
- package/dist/fonts/ClashGrotesk-Bold.ttf +0 -0
- package/dist/fonts/ClashGrotesk-Bold.woff +0 -0
- package/dist/fonts/ClashGrotesk-Bold.woff2 +0 -0
- package/dist/fonts/ClashGrotesk-Extralight.eot +0 -0
- package/dist/fonts/ClashGrotesk-Extralight.ttf +0 -0
- package/dist/fonts/ClashGrotesk-Extralight.woff +0 -0
- package/dist/fonts/ClashGrotesk-Extralight.woff2 +0 -0
- package/dist/fonts/ClashGrotesk-Light.eot +0 -0
- package/dist/fonts/ClashGrotesk-Light.ttf +0 -0
- package/dist/fonts/ClashGrotesk-Light.woff +0 -0
- package/dist/fonts/ClashGrotesk-Light.woff2 +0 -0
- package/dist/fonts/ClashGrotesk-Medium.eot +0 -0
- package/dist/fonts/ClashGrotesk-Medium.ttf +0 -0
- package/dist/fonts/ClashGrotesk-Medium.woff +0 -0
- package/dist/fonts/ClashGrotesk-Medium.woff2 +0 -0
- package/dist/fonts/ClashGrotesk-Regular.eot +0 -0
- package/dist/fonts/ClashGrotesk-Regular.ttf +0 -0
- package/dist/fonts/ClashGrotesk-Regular.woff +0 -0
- package/dist/fonts/ClashGrotesk-Regular.woff2 +0 -0
- package/dist/fonts/ClashGrotesk-Semibold.eot +0 -0
- package/dist/fonts/ClashGrotesk-Semibold.ttf +0 -0
- package/dist/fonts/ClashGrotesk-Semibold.woff +0 -0
- package/dist/fonts/ClashGrotesk-Semibold.woff2 +0 -0
- package/dist/fonts/ClashGrotesk-Variable.eot +0 -0
- package/dist/fonts/ClashGrotesk-Variable.ttf +0 -0
- package/dist/fonts/ClashGrotesk-Variable.woff +0 -0
- package/dist/fonts/ClashGrotesk-Variable.woff2 +0 -0
- package/dist/img/concorde-icon.svg +5 -0
- package/dist/img/concorde_seuil.png.webp +0 -0
- package/dist/img/concorde_seuil_invert.png +0 -0
- package/index.html +67 -108
- package/package.json +2 -2
- package/public/fonts/ClashGrotesk-Bold.eot +0 -0
- package/public/fonts/ClashGrotesk-Bold.ttf +0 -0
- package/public/fonts/ClashGrotesk-Bold.woff +0 -0
- package/public/fonts/ClashGrotesk-Bold.woff2 +0 -0
- package/public/fonts/ClashGrotesk-Extralight.eot +0 -0
- package/public/fonts/ClashGrotesk-Extralight.ttf +0 -0
- package/public/fonts/ClashGrotesk-Extralight.woff +0 -0
- package/public/fonts/ClashGrotesk-Extralight.woff2 +0 -0
- package/public/fonts/ClashGrotesk-Light.eot +0 -0
- package/public/fonts/ClashGrotesk-Light.ttf +0 -0
- package/public/fonts/ClashGrotesk-Light.woff +0 -0
- package/public/fonts/ClashGrotesk-Light.woff2 +0 -0
- package/public/fonts/ClashGrotesk-Medium.eot +0 -0
- package/public/fonts/ClashGrotesk-Medium.ttf +0 -0
- package/public/fonts/ClashGrotesk-Medium.woff +0 -0
- package/public/fonts/ClashGrotesk-Medium.woff2 +0 -0
- package/public/fonts/ClashGrotesk-Regular.eot +0 -0
- package/public/fonts/ClashGrotesk-Regular.ttf +0 -0
- package/public/fonts/ClashGrotesk-Regular.woff +0 -0
- package/public/fonts/ClashGrotesk-Regular.woff2 +0 -0
- package/public/fonts/ClashGrotesk-Semibold.eot +0 -0
- package/public/fonts/ClashGrotesk-Semibold.ttf +0 -0
- package/public/fonts/ClashGrotesk-Semibold.woff +0 -0
- package/public/fonts/ClashGrotesk-Semibold.woff2 +0 -0
- package/public/fonts/ClashGrotesk-Variable.eot +0 -0
- package/public/fonts/ClashGrotesk-Variable.ttf +0 -0
- package/public/fonts/ClashGrotesk-Variable.woff +0 -0
- package/public/fonts/ClashGrotesk-Variable.woff2 +0 -0
- package/public/img/concorde-icon.svg +5 -0
- package/public/img/concorde_seuil.png.webp +0 -0
- package/public/img/concorde_seuil_invert.png +0 -0
- package/src/core/components/ui/menu/menu-item.ts +3 -3
- package/src/core/components/ui/pop/pop.ts +54 -19
- package/src/core/components/ui/theme/theme.ts +28 -22
- package/src/core/components/ui/toast/toast.ts +1 -3
- package/src/core/utils/PublisherProxy.ts +15 -11
- package/src/docs/_core-concept/subscriber.md +1 -1
- package/src/docs/_getting-started/concorde-outside.md +12 -10
- package/src/docs/_getting-started/create-a-component.md +1 -1
- package/src/docs/_getting-started/pubsub.md +1 -1
- package/src/docs/_getting-started/start.md +19 -17
- package/src/docs/docs.ts +1 -0
- package/src/docs/header/header.ts +217 -0
- package/src/docs/navigation/navigation.ts +123 -51
- package/src/docs/search/docs-search.json +85 -100
- package/src/docs/search/page.ts +4 -5
- package/src/docs/search/search.ts +18 -3
- package/src/docs/tailwind/css/tailwind.css +146 -0
- package/tailwind.config.js +19 -24
- package/vite/config.js +19 -1
package/concorde-core.es.js
CHANGED
|
@@ -79,7 +79,7 @@ let rt = class At {
|
|
|
79
79
|
e.type = "text/css", e.rel = "stylesheet", e.href = t, e.onload = () => i(!0), e.onerror = () => i(!0), document.head.appendChild(e);
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
|
-
},
|
|
82
|
+
}, hs = class {
|
|
83
83
|
/**
|
|
84
84
|
* Passe le premier caractère de la chaine en majuscule
|
|
85
85
|
*/
|
|
@@ -109,16 +109,17 @@ let rt = class At {
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
};
|
|
112
|
-
function
|
|
112
|
+
function Me(r) {
|
|
113
113
|
return typeof r == "object" && r != null;
|
|
114
114
|
}
|
|
115
|
-
const
|
|
115
|
+
const Tr = async () => new Promise((r) => {
|
|
116
116
|
window.queueMicrotask(() => r(null));
|
|
117
117
|
});
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
let $e = "sonic";
|
|
119
|
+
typeof __SONIC_PREFIX__ > "u" && ($e = "sonic" + Math.floor(Math.random() * 1e6));
|
|
120
|
+
const Es = $e == "sonic" ? "publisher-proxies-data" : $e + "-publisher-proxies-data";
|
|
120
121
|
var St;
|
|
121
|
-
let
|
|
122
|
+
let ri = (St = class {
|
|
122
123
|
constructor(t, s) {
|
|
123
124
|
for (this._proxies_ = /* @__PURE__ */ new Map(), this._is_savable_ = !1, this._invalidateListeners_ = /* @__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 = s || null, this.root = this, this._instanceCounter_ = 0; this.root.parent; )
|
|
124
125
|
this.root = this.root.parent;
|
|
@@ -154,7 +155,7 @@ let ii = (St = class {
|
|
|
154
155
|
async _publishAssignement_(t = !1) {
|
|
155
156
|
this._assignmentId_++;
|
|
156
157
|
const s = this._assignmentId_;
|
|
157
|
-
if (await
|
|
158
|
+
if (await Tr(), s !== this._assignmentId_)
|
|
158
159
|
return;
|
|
159
160
|
const i = this.get();
|
|
160
161
|
this._assignListeners_.forEach(
|
|
@@ -262,7 +263,7 @@ let ii = (St = class {
|
|
|
262
263
|
if (this._value_ === t || this._value_ && t && Object.prototype.hasOwnProperty.call(this._value_, "__value") && Object.prototype.hasOwnProperty.call(t, "__value") && this._value_.__value === t.__value)
|
|
263
264
|
return !0;
|
|
264
265
|
const i = this._value_;
|
|
265
|
-
if (this._value_ =
|
|
266
|
+
if (this._value_ = Me(t) ? t : { __value: t }, this._cachedGet_ = void 0, Object.prototype.hasOwnProperty.call(
|
|
266
267
|
this._value_,
|
|
267
268
|
"__value"
|
|
268
269
|
))
|
|
@@ -271,9 +272,9 @@ let ii = (St = class {
|
|
|
271
272
|
this._value_[n] === void 0 && delete this._value_[n];
|
|
272
273
|
if (this._proxies_.forEach((n, l) => {
|
|
273
274
|
this._value_[l] === void 0 && l != "_parent_" && i[l] && (this._value_[l] = null);
|
|
274
|
-
}), await this._publishAssignement_(),
|
|
275
|
+
}), await this._publishAssignement_(), Me(this._value_))
|
|
275
276
|
for (const n in this._value_) {
|
|
276
|
-
const l = t[n], h =
|
|
277
|
+
const l = t[n], h = Me(l) ? l : { __value: l };
|
|
277
278
|
if (!this._proxies_.has(n)) {
|
|
278
279
|
this._publishDynamicFilling_(n, l);
|
|
279
280
|
continue;
|
|
@@ -295,7 +296,7 @@ let ii = (St = class {
|
|
|
295
296
|
* retourner le webcomponent auquel le proxy est associé
|
|
296
297
|
*/
|
|
297
298
|
get $tag() {
|
|
298
|
-
return this._instanceCounter_ || (St.instancesCounter++, this._instanceCounter_ = St.instancesCounter), St.instances.set(this._instanceCounter_, this), "<" +
|
|
299
|
+
return this._instanceCounter_ || (St.instancesCounter++, this._instanceCounter_ = St.instancesCounter), St.instances.set(this._instanceCounter_, this), "<" + $e + '-publisher-proxy publisher="' + this._instanceCounter_ + '"></' + $e + "-publisher-proxy>";
|
|
299
300
|
}
|
|
300
301
|
}, St.instances = /* @__PURE__ */ new Map(), St.instancesCounter = 0, St);
|
|
301
302
|
var k;
|
|
@@ -309,7 +310,7 @@ let N = (k = class {
|
|
|
309
310
|
return new Promise((t) => {
|
|
310
311
|
(async () => {
|
|
311
312
|
try {
|
|
312
|
-
let i = localStorage.getItem(
|
|
313
|
+
let i = localStorage.getItem(Es), e = null;
|
|
313
314
|
if (i && (e = await this.decompress(i, "gzip")), e)
|
|
314
315
|
try {
|
|
315
316
|
this.localStorageData = JSON.parse(e);
|
|
@@ -317,7 +318,7 @@ let N = (k = class {
|
|
|
317
318
|
this.localStorageData = {};
|
|
318
319
|
}
|
|
319
320
|
else
|
|
320
|
-
i = await this.compress("{}", "gzip"), localStorage.setItem(
|
|
321
|
+
i = await this.compress("{}", "gzip"), localStorage.setItem(Es, i), this.localStorageData = {};
|
|
321
322
|
const o = (/* @__PURE__ */ new Date()).getTime() - 1e3 * 60 * 60 * 12;
|
|
322
323
|
for (const n in this.localStorageData)
|
|
323
324
|
this.localStorageData[n].lastModifiationMS < o && delete this.localStorageData[n];
|
|
@@ -382,7 +383,7 @@ let N = (k = class {
|
|
|
382
383
|
get(t, s) {
|
|
383
384
|
const i = (s == null ? void 0 : s.localStorageMode) === "enabled";
|
|
384
385
|
if (!this.publishers.has(t)) {
|
|
385
|
-
const o = {}, n = new
|
|
386
|
+
const o = {}, n = new Ue(o);
|
|
386
387
|
this.set(t, n);
|
|
387
388
|
}
|
|
388
389
|
const e = this.publishers.get(t);
|
|
@@ -432,7 +433,7 @@ let N = (k = class {
|
|
|
432
433
|
JSON.stringify(this.localStorageData),
|
|
433
434
|
"gzip"
|
|
434
435
|
);
|
|
435
|
-
localStorage.setItem(
|
|
436
|
+
localStorage.setItem(Es, e);
|
|
436
437
|
}
|
|
437
438
|
if (k.saving = !1, k.changed) {
|
|
438
439
|
k.saveId++;
|
|
@@ -461,13 +462,13 @@ let N = (k = class {
|
|
|
461
462
|
const h = await new Response(l.readable).arrayBuffer();
|
|
462
463
|
return new TextDecoder().decode(h);
|
|
463
464
|
}
|
|
464
|
-
}, k.buildDate = "Tue
|
|
465
|
-
const
|
|
466
|
-
|
|
467
|
-
|
|
465
|
+
}, k.buildDate = "Tue May 07 2024 12:17:38 GMT+0200 (Central European Summer Time)", k.changed = !1, k.saving = !1, k.saveId = 0, k.instance = null, k.instances = /* @__PURE__ */ new Map(), k.modifiedCollectore = [], k);
|
|
466
|
+
const Us = window;
|
|
467
|
+
Us.SonicPublisherManager || (Us.SonicPublisherManager = N);
|
|
468
|
+
Us.SonicPublisherManager.registerInstance(
|
|
468
469
|
N.getInstance()
|
|
469
470
|
);
|
|
470
|
-
const
|
|
471
|
+
const jr = /* @__PURE__ */ new Set([
|
|
471
472
|
"invalidate",
|
|
472
473
|
"onInvalidate",
|
|
473
474
|
"offInvalidate",
|
|
@@ -503,7 +504,7 @@ const Tr = /* @__PURE__ */ new Set([
|
|
|
503
504
|
"_instanceCounter_",
|
|
504
505
|
"_assignmentId_"
|
|
505
506
|
]);
|
|
506
|
-
class
|
|
507
|
+
class Ue extends ri {
|
|
507
508
|
constructor(t, s = null) {
|
|
508
509
|
super(t, s);
|
|
509
510
|
const i = new Proxy(this, {
|
|
@@ -515,11 +516,11 @@ class ze extends ii {
|
|
|
515
516
|
get: function(e, o) {
|
|
516
517
|
if (o == Symbol.toPrimitive)
|
|
517
518
|
return () => i.get();
|
|
518
|
-
if (
|
|
519
|
+
if (jr.has(o))
|
|
519
520
|
return e[o];
|
|
520
521
|
if (!e._proxies_.has(o)) {
|
|
521
|
-
const n = e._value_[o], l = new
|
|
522
|
-
|
|
522
|
+
const n = e._value_[o], l = new Ue(
|
|
523
|
+
Me(n) ? n : { __value: n },
|
|
523
524
|
e
|
|
524
525
|
);
|
|
525
526
|
l._proxies_.set("_parent_", i), e._proxies_.set(o, l);
|
|
@@ -543,10 +544,10 @@ class ze extends ii {
|
|
|
543
544
|
if (o == "_instanceCounter_")
|
|
544
545
|
return e._instanceCounter_ = n, !0;
|
|
545
546
|
if (!e._proxies_.has(o)) {
|
|
546
|
-
const h = new
|
|
547
|
+
const h = new Ue({}, e);
|
|
547
548
|
h._proxies_.set("_parent_", i), e._proxies_.set(o, h);
|
|
548
549
|
}
|
|
549
|
-
return e._value_[o] !== n && (e._value_[o] = n, e._publishDynamicFilling_(o, n), (c = e._proxies_.get(o)) == null || c.set(
|
|
550
|
+
return e._value_[o] !== n && (e._value_[o] = n, e._publishDynamicFilling_(o, n), (c = e._proxies_.get(o)) == null || c.set(Me(n) ? n : { __value: n })), !0;
|
|
550
551
|
},
|
|
551
552
|
/**
|
|
552
553
|
* Autres propriétés classiques d'un objet implémentées par le proxy
|
|
@@ -586,7 +587,7 @@ class ze extends ii {
|
|
|
586
587
|
return t[s];
|
|
587
588
|
}
|
|
588
589
|
}
|
|
589
|
-
class
|
|
590
|
+
class Mr extends HTMLElement {
|
|
590
591
|
constructor() {
|
|
591
592
|
super(), this.publisherId = "", this.onAssign = (t) => {
|
|
592
593
|
this.innerHTML = t.toString();
|
|
@@ -594,19 +595,22 @@ class jr extends HTMLElement {
|
|
|
594
595
|
}
|
|
595
596
|
connectedCallback() {
|
|
596
597
|
var t;
|
|
597
|
-
this.publisherId = this.getAttribute("publisher") || "", this.publisher =
|
|
598
|
+
this.publisherId = this.getAttribute("publisher") || "", this.publisher = ri.instances.get(parseInt(this.publisherId)), (t = this.publisher) == null || t.onAssign(this.onAssign);
|
|
598
599
|
}
|
|
599
600
|
disconnectedCallback() {
|
|
600
601
|
var t;
|
|
601
602
|
(t = this.publisher) == null || t.offAssign(this.onAssign);
|
|
602
603
|
}
|
|
603
604
|
}
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
605
|
+
try {
|
|
606
|
+
customElements.define(
|
|
607
|
+
$e + "-publisher-proxy",
|
|
608
|
+
Mr
|
|
609
|
+
);
|
|
610
|
+
} catch {
|
|
611
|
+
}
|
|
608
612
|
var L;
|
|
609
|
-
let
|
|
613
|
+
let Cs = (L = class {
|
|
610
614
|
static disable() {
|
|
611
615
|
this.enabled && (this.enabled = !1, Array.from(L.observedElements.keys()).forEach(
|
|
612
616
|
(t) => L.unObserve(t)
|
|
@@ -750,9 +754,9 @@ let $s = (L = class {
|
|
|
750
754
|
if (C.indexOf("|") != -1) {
|
|
751
755
|
const D = C.indexOf("|");
|
|
752
756
|
if (D == 0)
|
|
753
|
-
C =
|
|
757
|
+
C = hs.js(C.substring(1));
|
|
754
758
|
else {
|
|
755
|
-
const p = C.substring(0, D), u = C.substring(D + 1), v =
|
|
759
|
+
const p = C.substring(0, D), u = C.substring(D + 1), v = hs[p];
|
|
756
760
|
C = O ? "" : v ? v(u) : C;
|
|
757
761
|
}
|
|
758
762
|
} else
|
|
@@ -765,9 +769,9 @@ let $s = (L = class {
|
|
|
765
769
|
}), L.publisherListeners.set(t, o);
|
|
766
770
|
}
|
|
767
771
|
}, L.observedElements = /* @__PURE__ */ new Map(), L.enabled = !0, L.publisherListeners = /* @__PURE__ */ new Map(), L);
|
|
768
|
-
|
|
769
|
-
window.SonicDataBindObserver || (window.SonicDataBindObserver =
|
|
770
|
-
let
|
|
772
|
+
Cs.observe(document.documentElement);
|
|
773
|
+
window.SonicDataBindObserver || (window.SonicDataBindObserver = Cs);
|
|
774
|
+
let X = class Bt {
|
|
771
775
|
/**
|
|
772
776
|
* Effectue une comparaison d'égalité non profonde entre deux objets.
|
|
773
777
|
*/
|
|
@@ -857,19 +861,19 @@ const _ = (r) => (t, s) => {
|
|
|
857
861
|
* Copyright 2019 Google LLC
|
|
858
862
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
859
863
|
*/
|
|
860
|
-
const
|
|
861
|
-
let
|
|
864
|
+
const ls = globalThis, oi = ls.ShadowRoot && (ls.ShadyCSS === void 0 || ls.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ni = Symbol(), Ai = /* @__PURE__ */ new WeakMap();
|
|
865
|
+
let ir = class {
|
|
862
866
|
constructor(t, s, i) {
|
|
863
|
-
if (this._$cssResult$ = !0, i !==
|
|
867
|
+
if (this._$cssResult$ = !0, i !== ni)
|
|
864
868
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
865
869
|
this.cssText = t, this.t = s;
|
|
866
870
|
}
|
|
867
871
|
get styleSheet() {
|
|
868
872
|
let t = this.o;
|
|
869
873
|
const s = this.t;
|
|
870
|
-
if (
|
|
874
|
+
if (oi && t === void 0) {
|
|
871
875
|
const i = s !== void 0 && s.length === 1;
|
|
872
|
-
i && (t =
|
|
876
|
+
i && (t = Ai.get(s)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Ai.set(s, t));
|
|
873
877
|
}
|
|
874
878
|
return t;
|
|
875
879
|
}
|
|
@@ -877,7 +881,7 @@ let sr = class {
|
|
|
877
881
|
return this.cssText;
|
|
878
882
|
}
|
|
879
883
|
};
|
|
880
|
-
const
|
|
884
|
+
const Ir = (r) => new ir(typeof r == "string" ? r : r + "", void 0, ni), P = (r, ...t) => {
|
|
881
885
|
const s = r.length === 1 ? r[0] : t.reduce((i, e, o) => i + ((n) => {
|
|
882
886
|
if (n._$cssResult$ === !0)
|
|
883
887
|
return n.cssText;
|
|
@@ -885,30 +889,30 @@ const Mr = (r) => new sr(typeof r == "string" ? r : r + "", void 0, oi), P = (r,
|
|
|
885
889
|
return n;
|
|
886
890
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
887
891
|
})(e) + r[o + 1], r[0]);
|
|
888
|
-
return new
|
|
889
|
-
},
|
|
890
|
-
if (
|
|
892
|
+
return new ir(s, r, ni);
|
|
893
|
+
}, zr = (r, t) => {
|
|
894
|
+
if (oi)
|
|
891
895
|
r.adoptedStyleSheets = t.map((s) => s instanceof CSSStyleSheet ? s : s.styleSheet);
|
|
892
896
|
else
|
|
893
897
|
for (const s of t) {
|
|
894
|
-
const i = document.createElement("style"), e =
|
|
898
|
+
const i = document.createElement("style"), e = ls.litNonce;
|
|
895
899
|
e !== void 0 && i.setAttribute("nonce", e), i.textContent = s.cssText, r.appendChild(i);
|
|
896
900
|
}
|
|
897
|
-
},
|
|
901
|
+
}, Si = oi ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
|
898
902
|
let s = "";
|
|
899
903
|
for (const i of t.cssRules)
|
|
900
904
|
s += i.cssText;
|
|
901
|
-
return
|
|
905
|
+
return Ir(s);
|
|
902
906
|
})(r) : r;
|
|
903
907
|
/**
|
|
904
908
|
* @license
|
|
905
909
|
* Copyright 2017 Google LLC
|
|
906
910
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
907
911
|
*/
|
|
908
|
-
const { is: Rr, defineProperty: Fr, getOwnPropertyDescriptor:
|
|
912
|
+
const { is: Rr, defineProperty: Fr, getOwnPropertyDescriptor: Ur, getOwnPropertyNames: Vr, getOwnPropertySymbols: Br, getPrototypeOf: Hr } = Object, Ht = globalThis, Oi = Ht.trustedTypes, qr = Oi ? Oi.emptyScript : "", Ns = Ht.reactiveElementPolyfillSupport, Ie = (r, t) => r, ds = { toAttribute(r, t) {
|
|
909
913
|
switch (t) {
|
|
910
914
|
case Boolean:
|
|
911
|
-
r = r ?
|
|
915
|
+
r = r ? qr : null;
|
|
912
916
|
break;
|
|
913
917
|
case Object:
|
|
914
918
|
case Array:
|
|
@@ -933,7 +937,7 @@ const { is: Rr, defineProperty: Fr, getOwnPropertyDescriptor: zr, getOwnProperty
|
|
|
933
937
|
}
|
|
934
938
|
}
|
|
935
939
|
return s;
|
|
936
|
-
} },
|
|
940
|
+
} }, ai = (r, t) => !Rr(r, t), Di = { attribute: !0, type: String, converter: ds, reflect: !1, hasChanged: ai };
|
|
937
941
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Ht.litPropertyMetadata ?? (Ht.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
938
942
|
let Pe = class extends HTMLElement {
|
|
939
943
|
static addInitializer(t) {
|
|
@@ -942,14 +946,14 @@ let Pe = class extends HTMLElement {
|
|
|
942
946
|
static get observedAttributes() {
|
|
943
947
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
944
948
|
}
|
|
945
|
-
static createProperty(t, s =
|
|
949
|
+
static createProperty(t, s = Di) {
|
|
946
950
|
if (s.state && (s.attribute = !1), this._$Ei(), this.elementProperties.set(t, s), !s.noAccessor) {
|
|
947
951
|
const i = Symbol(), e = this.getPropertyDescriptor(t, i, s);
|
|
948
952
|
e !== void 0 && Fr(this.prototype, t, e);
|
|
949
953
|
}
|
|
950
954
|
}
|
|
951
955
|
static getPropertyDescriptor(t, s, i) {
|
|
952
|
-
const { get: e, set: o } =
|
|
956
|
+
const { get: e, set: o } = Ur(this.prototype, t) ?? { get() {
|
|
953
957
|
return this[s];
|
|
954
958
|
}, set(n) {
|
|
955
959
|
this[s] = n;
|
|
@@ -962,19 +966,19 @@ let Pe = class extends HTMLElement {
|
|
|
962
966
|
}, configurable: !0, enumerable: !0 };
|
|
963
967
|
}
|
|
964
968
|
static getPropertyOptions(t) {
|
|
965
|
-
return this.elementProperties.get(t) ??
|
|
969
|
+
return this.elementProperties.get(t) ?? Di;
|
|
966
970
|
}
|
|
967
971
|
static _$Ei() {
|
|
968
|
-
if (this.hasOwnProperty(
|
|
972
|
+
if (this.hasOwnProperty(Ie("elementProperties")))
|
|
969
973
|
return;
|
|
970
|
-
const t =
|
|
974
|
+
const t = Hr(this);
|
|
971
975
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
972
976
|
}
|
|
973
977
|
static finalize() {
|
|
974
|
-
if (this.hasOwnProperty(
|
|
978
|
+
if (this.hasOwnProperty(Ie("finalized")))
|
|
975
979
|
return;
|
|
976
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
977
|
-
const s = this.properties, i = [...
|
|
980
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Ie("properties"))) {
|
|
981
|
+
const s = this.properties, i = [...Vr(s), ...Br(s)];
|
|
978
982
|
for (const e of i)
|
|
979
983
|
this.createProperty(e, s[e]);
|
|
980
984
|
}
|
|
@@ -997,9 +1001,9 @@ let Pe = class extends HTMLElement {
|
|
|
997
1001
|
if (Array.isArray(t)) {
|
|
998
1002
|
const i = new Set(t.flat(1 / 0).reverse());
|
|
999
1003
|
for (const e of i)
|
|
1000
|
-
s.unshift(
|
|
1004
|
+
s.unshift(Si(e));
|
|
1001
1005
|
} else
|
|
1002
|
-
t !== void 0 && s.push(
|
|
1006
|
+
t !== void 0 && s.push(Si(t));
|
|
1003
1007
|
return s;
|
|
1004
1008
|
}
|
|
1005
1009
|
static _$Eu(t, s) {
|
|
@@ -1029,7 +1033,7 @@ let Pe = class extends HTMLElement {
|
|
|
1029
1033
|
}
|
|
1030
1034
|
createRenderRoot() {
|
|
1031
1035
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
1032
|
-
return
|
|
1036
|
+
return zr(t, this.constructor.elementStyles), t;
|
|
1033
1037
|
}
|
|
1034
1038
|
connectedCallback() {
|
|
1035
1039
|
var t;
|
|
@@ -1054,7 +1058,7 @@ let Pe = class extends HTMLElement {
|
|
|
1054
1058
|
var o;
|
|
1055
1059
|
const i = this.constructor.elementProperties.get(t), e = this.constructor._$Eu(t, i);
|
|
1056
1060
|
if (e !== void 0 && i.reflect === !0) {
|
|
1057
|
-
const n = (((o = i.converter) == null ? void 0 : o.toAttribute) !== void 0 ? i.converter :
|
|
1061
|
+
const n = (((o = i.converter) == null ? void 0 : o.toAttribute) !== void 0 ? i.converter : ds).toAttribute(s, i.type);
|
|
1058
1062
|
this._$Em = t, n == null ? this.removeAttribute(e) : this.setAttribute(e, n), this._$Em = null;
|
|
1059
1063
|
}
|
|
1060
1064
|
}
|
|
@@ -1062,13 +1066,13 @@ let Pe = class extends HTMLElement {
|
|
|
1062
1066
|
var o;
|
|
1063
1067
|
const i = this.constructor, e = i._$Eh.get(t);
|
|
1064
1068
|
if (e !== void 0 && this._$Em !== e) {
|
|
1065
|
-
const n = i.getPropertyOptions(e), l = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((o = n.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? n.converter :
|
|
1069
|
+
const n = i.getPropertyOptions(e), l = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((o = n.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? n.converter : ds;
|
|
1066
1070
|
this._$Em = e, this[e] = l.fromAttribute(s, n.type), this._$Em = null;
|
|
1067
1071
|
}
|
|
1068
1072
|
}
|
|
1069
1073
|
requestUpdate(t, s, i) {
|
|
1070
1074
|
if (t !== void 0) {
|
|
1071
|
-
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ??
|
|
1075
|
+
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? ai)(this[t], s))
|
|
1072
1076
|
return;
|
|
1073
1077
|
this.P(t, s, i);
|
|
1074
1078
|
}
|
|
@@ -1146,13 +1150,13 @@ let Pe = class extends HTMLElement {
|
|
|
1146
1150
|
firstUpdated(t) {
|
|
1147
1151
|
}
|
|
1148
1152
|
};
|
|
1149
|
-
Pe.elementStyles = [], Pe.shadowRootOptions = { mode: "open" }, Pe[
|
|
1153
|
+
Pe.elementStyles = [], Pe.shadowRootOptions = { mode: "open" }, Pe[Ie("elementProperties")] = /* @__PURE__ */ new Map(), Pe[Ie("finalized")] = /* @__PURE__ */ new Map(), Ns == null || Ns({ ReactiveElement: Pe }), (Ht.reactiveElementVersions ?? (Ht.reactiveElementVersions = [])).push("2.0.4");
|
|
1150
1154
|
/**
|
|
1151
1155
|
* @license
|
|
1152
1156
|
* Copyright 2017 Google LLC
|
|
1153
1157
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1154
1158
|
*/
|
|
1155
|
-
const
|
|
1159
|
+
const Wr = { attribute: !0, type: String, converter: ds, reflect: !1, hasChanged: ai }, Kr = (r = Wr, t, s) => {
|
|
1156
1160
|
const { kind: i, metadata: e } = s;
|
|
1157
1161
|
let o = globalThis.litPropertyMetadata.get(e);
|
|
1158
1162
|
if (o === void 0 && globalThis.litPropertyMetadata.set(e, o = /* @__PURE__ */ new Map()), o.set(s.name, r), i === "accessor") {
|
|
@@ -1174,7 +1178,7 @@ const qr = { attribute: !0, type: String, converter: hs, reflect: !1, hasChanged
|
|
|
1174
1178
|
throw Error("Unsupported decorator location: " + i);
|
|
1175
1179
|
};
|
|
1176
1180
|
function a(r) {
|
|
1177
|
-
return (t, s) => typeof s == "object" ?
|
|
1181
|
+
return (t, s) => typeof s == "object" ? Kr(r, t, s) : ((i, e, o) => {
|
|
1178
1182
|
const n = e.hasOwnProperty(o);
|
|
1179
1183
|
return e.constructor.createProperty(o, n ? { ...i, wrapped: !0 } : i), n ? Object.getOwnPropertyDescriptor(e, o) : void 0;
|
|
1180
1184
|
})(r, t, s);
|
|
@@ -1192,7 +1196,7 @@ function M(r) {
|
|
|
1192
1196
|
* Copyright 2017 Google LLC
|
|
1193
1197
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1194
1198
|
*/
|
|
1195
|
-
const
|
|
1199
|
+
const ps = (r, t, s) => (s.configurable = !0, s.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(r, t, s), s);
|
|
1196
1200
|
/**
|
|
1197
1201
|
* @license
|
|
1198
1202
|
* Copyright 2017 Google LLC
|
|
@@ -1213,12 +1217,12 @@ function fe(r, t) {
|
|
|
1213
1217
|
this[c] = h;
|
|
1214
1218
|
} };
|
|
1215
1219
|
})();
|
|
1216
|
-
return
|
|
1220
|
+
return ps(s, i, { get() {
|
|
1217
1221
|
let c = n.call(this);
|
|
1218
1222
|
return c === void 0 && (c = o(this), (c !== null || this.hasUpdated) && l.call(this, c)), c;
|
|
1219
1223
|
} });
|
|
1220
1224
|
}
|
|
1221
|
-
return
|
|
1225
|
+
return ps(s, i, { get() {
|
|
1222
1226
|
return o(this);
|
|
1223
1227
|
} });
|
|
1224
1228
|
};
|
|
@@ -1231,7 +1235,7 @@ function fe(r, t) {
|
|
|
1231
1235
|
function ge(r) {
|
|
1232
1236
|
return (t, s) => {
|
|
1233
1237
|
const { slot: i, selector: e } = r ?? {}, o = "slot" + (i ? `[name=${i}]` : ":not([name])");
|
|
1234
|
-
return
|
|
1238
|
+
return ps(t, s, { get() {
|
|
1235
1239
|
var c;
|
|
1236
1240
|
const n = (c = this.renderRoot) == null ? void 0 : c.querySelector(o), l = (n == null ? void 0 : n.assignedElements(r)) ?? [];
|
|
1237
1241
|
return e === void 0 ? l : l.filter((h) => h.matches(e));
|
|
@@ -1246,7 +1250,7 @@ function ge(r) {
|
|
|
1246
1250
|
function lt(r) {
|
|
1247
1251
|
return (t, s) => {
|
|
1248
1252
|
const { slot: i } = r ?? {}, e = "slot" + (i ? `[name=${i}]` : ":not([name])");
|
|
1249
|
-
return
|
|
1253
|
+
return ps(t, s, { get() {
|
|
1250
1254
|
var n;
|
|
1251
1255
|
const o = (n = this.renderRoot) == null ? void 0 : n.querySelector(e);
|
|
1252
1256
|
return (o == null ? void 0 : o.assignedNodes(r)) ?? [];
|
|
@@ -1258,34 +1262,34 @@ function lt(r) {
|
|
|
1258
1262
|
* Copyright 2017 Google LLC
|
|
1259
1263
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1260
1264
|
*/
|
|
1261
|
-
const
|
|
1262
|
-
\f\r]`,
|
|
1263
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
1264
|
-
function
|
|
1265
|
+
const ze = globalThis, us = ze.trustedTypes, ki = us ? us.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, li = "$lit$", zt = `lit$${(Math.random() + "").slice(9)}$`, ci = "?" + zt, Zr = `<${ci}>`, le = document, Ve = () => le.createComment(""), Be = (r) => r === null || typeof r != "object" && typeof r != "function", rr = Array.isArray, or = (r) => rr(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", Ts = `[
|
|
1266
|
+
\f\r]`, Ne = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Li = /-->/g, Ei = />/g, se = RegExp(`>|${Ts}(?:([^\\s"'>=/]+)(${Ts}*=${Ts}*(?:[^
|
|
1267
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ni = /'/g, Ti = /"/g, nr = /^(?:script|style|textarea|title)$/i, Gr = (r) => (t, ...s) => ({ _$litType$: r, strings: t, values: s }), g = Gr(1), gt = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), ji = /* @__PURE__ */ new WeakMap(), ne = le.createTreeWalker(le, 129);
|
|
1268
|
+
function ar(r, t) {
|
|
1265
1269
|
if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
|
|
1266
1270
|
throw Error("invalid template strings array");
|
|
1267
|
-
return
|
|
1271
|
+
return ki !== void 0 ? ki.createHTML(t) : t;
|
|
1268
1272
|
}
|
|
1269
|
-
const
|
|
1273
|
+
const lr = (r, t) => {
|
|
1270
1274
|
const s = r.length - 1, i = [];
|
|
1271
|
-
let e, o = t === 2 ? "<svg>" : "", n =
|
|
1275
|
+
let e, o = t === 2 ? "<svg>" : "", n = Ne;
|
|
1272
1276
|
for (let l = 0; l < s; l++) {
|
|
1273
1277
|
const c = r[l];
|
|
1274
1278
|
let h, d, f = -1, m = 0;
|
|
1275
1279
|
for (; m < c.length && (n.lastIndex = m, d = n.exec(c), d !== null); )
|
|
1276
|
-
m = n.lastIndex, n ===
|
|
1280
|
+
m = n.lastIndex, n === Ne ? d[1] === "!--" ? n = Li : d[1] !== void 0 ? n = Ei : d[2] !== void 0 ? (nr.test(d[2]) && (e = RegExp("</" + d[2], "g")), n = se) : d[3] !== void 0 && (n = se) : n === se ? d[0] === ">" ? (n = e ?? Ne, f = -1) : d[1] === void 0 ? f = -2 : (f = n.lastIndex - d[2].length, h = d[1], n = d[3] === void 0 ? se : d[3] === '"' ? Ti : Ni) : n === Ti || n === Ni ? n = se : n === Li || n === Ei ? n = Ne : (n = se, e = void 0);
|
|
1277
1281
|
const b = n === se && r[l + 1].startsWith("/>") ? " " : "";
|
|
1278
|
-
o += n ===
|
|
1282
|
+
o += n === Ne ? c + Zr : f >= 0 ? (i.push(h), c.slice(0, f) + li + c.slice(f) + zt + b) : c + zt + (f === -2 ? l : b);
|
|
1279
1283
|
}
|
|
1280
|
-
return [
|
|
1284
|
+
return [ar(r, o + (r[s] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
|
1281
1285
|
};
|
|
1282
|
-
class
|
|
1286
|
+
class He {
|
|
1283
1287
|
constructor({ strings: t, _$litType$: s }, i) {
|
|
1284
1288
|
let e;
|
|
1285
1289
|
this.parts = [];
|
|
1286
1290
|
let o = 0, n = 0;
|
|
1287
|
-
const l = t.length - 1, c = this.parts, [h, d] =
|
|
1288
|
-
if (this.el =
|
|
1291
|
+
const l = t.length - 1, c = this.parts, [h, d] = lr(t, s);
|
|
1292
|
+
if (this.el = He.createElement(h, i), ne.currentNode = this.el.content, s === 2) {
|
|
1289
1293
|
const f = this.el.content.firstChild;
|
|
1290
1294
|
f.replaceWith(...f.childNodes);
|
|
1291
1295
|
}
|
|
@@ -1293,27 +1297,27 @@ class Be {
|
|
|
1293
1297
|
if (e.nodeType === 1) {
|
|
1294
1298
|
if (e.hasAttributes())
|
|
1295
1299
|
for (const f of e.getAttributeNames())
|
|
1296
|
-
if (f.endsWith(
|
|
1297
|
-
const m = d[n++], b = e.getAttribute(f).split(
|
|
1298
|
-
c.push({ type: 1, index: o, name: w[2], strings: b, ctor: w[1] === "." ?
|
|
1300
|
+
if (f.endsWith(li)) {
|
|
1301
|
+
const m = d[n++], b = e.getAttribute(f).split(zt), w = /([.?@])?(.*)/.exec(m);
|
|
1302
|
+
c.push({ type: 1, index: o, name: w[2], strings: b, ctor: w[1] === "." ? hr : w[1] === "?" ? dr : w[1] === "@" ? pr : Ye }), e.removeAttribute(f);
|
|
1299
1303
|
} else
|
|
1300
|
-
f.startsWith(
|
|
1301
|
-
if (
|
|
1302
|
-
const f = e.textContent.split(
|
|
1304
|
+
f.startsWith(zt) && (c.push({ type: 6, index: o }), e.removeAttribute(f));
|
|
1305
|
+
if (nr.test(e.tagName)) {
|
|
1306
|
+
const f = e.textContent.split(zt), m = f.length - 1;
|
|
1303
1307
|
if (m > 0) {
|
|
1304
|
-
e.textContent =
|
|
1308
|
+
e.textContent = us ? us.emptyScript : "";
|
|
1305
1309
|
for (let b = 0; b < m; b++)
|
|
1306
|
-
e.append(f[b],
|
|
1307
|
-
e.append(f[m],
|
|
1310
|
+
e.append(f[b], Ve()), ne.nextNode(), c.push({ type: 2, index: ++o });
|
|
1311
|
+
e.append(f[m], Ve());
|
|
1308
1312
|
}
|
|
1309
1313
|
}
|
|
1310
1314
|
} else if (e.nodeType === 8)
|
|
1311
|
-
if (e.data ===
|
|
1315
|
+
if (e.data === ci)
|
|
1312
1316
|
c.push({ type: 2, index: o });
|
|
1313
1317
|
else {
|
|
1314
1318
|
let f = -1;
|
|
1315
|
-
for (; (f = e.data.indexOf(
|
|
1316
|
-
c.push({ type: 7, index: o }), f +=
|
|
1319
|
+
for (; (f = e.data.indexOf(zt, f + 1)) !== -1; )
|
|
1320
|
+
c.push({ type: 7, index: o }), f += zt.length - 1;
|
|
1317
1321
|
}
|
|
1318
1322
|
o++;
|
|
1319
1323
|
}
|
|
@@ -1328,10 +1332,10 @@ function ce(r, t, s = r, i) {
|
|
|
1328
1332
|
if (t === gt)
|
|
1329
1333
|
return t;
|
|
1330
1334
|
let e = i !== void 0 ? (n = s._$Co) == null ? void 0 : n[i] : s._$Cl;
|
|
1331
|
-
const o =
|
|
1335
|
+
const o = Be(t) ? void 0 : t._$litDirective$;
|
|
1332
1336
|
return (e == null ? void 0 : e.constructor) !== o && ((l = e == null ? void 0 : e._$AO) == null || l.call(e, !1), o === void 0 ? e = void 0 : (e = new o(r), e._$AT(r, s, i)), i !== void 0 ? (s._$Co ?? (s._$Co = []))[i] = e : s._$Cl = e), e !== void 0 && (t = ce(r, e._$AS(r, t.values), e, i)), t;
|
|
1333
1337
|
}
|
|
1334
|
-
class
|
|
1338
|
+
class cr {
|
|
1335
1339
|
constructor(t, s) {
|
|
1336
1340
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = s;
|
|
1337
1341
|
}
|
|
@@ -1348,7 +1352,7 @@ class lr {
|
|
|
1348
1352
|
for (; c !== void 0; ) {
|
|
1349
1353
|
if (n === c.index) {
|
|
1350
1354
|
let h;
|
|
1351
|
-
c.type === 2 ? h = new
|
|
1355
|
+
c.type === 2 ? h = new Ae(o, o.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(o, c.name, c.strings, this, t) : c.type === 6 && (h = new ur(o, this, t)), this._$AV.push(h), c = i[++l];
|
|
1352
1356
|
}
|
|
1353
1357
|
n !== (c == null ? void 0 : c.index) && (o = ne.nextNode(), n++);
|
|
1354
1358
|
}
|
|
@@ -1360,7 +1364,7 @@ class lr {
|
|
|
1360
1364
|
i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, s), s += i.strings.length - 2) : i._$AI(t[s])), s++;
|
|
1361
1365
|
}
|
|
1362
1366
|
}
|
|
1363
|
-
class
|
|
1367
|
+
class Ae {
|
|
1364
1368
|
get _$AU() {
|
|
1365
1369
|
var t;
|
|
1366
1370
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
@@ -1380,7 +1384,7 @@ class Ce {
|
|
|
1380
1384
|
return this._$AB;
|
|
1381
1385
|
}
|
|
1382
1386
|
_$AI(t, s = this) {
|
|
1383
|
-
t = ce(this, t, s),
|
|
1387
|
+
t = ce(this, t, s), Be(t) ? t === $ || t == null || t === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : t !== this._$AH && t !== gt && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : or(t) ? this.k(t) : this._(t);
|
|
1384
1388
|
}
|
|
1385
1389
|
S(t) {
|
|
1386
1390
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -1389,28 +1393,28 @@ class Ce {
|
|
|
1389
1393
|
this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
|
|
1390
1394
|
}
|
|
1391
1395
|
_(t) {
|
|
1392
|
-
this._$AH !== $ &&
|
|
1396
|
+
this._$AH !== $ && Be(this._$AH) ? this._$AA.nextSibling.data = t : this.T(le.createTextNode(t)), this._$AH = t;
|
|
1393
1397
|
}
|
|
1394
1398
|
$(t) {
|
|
1395
1399
|
var o;
|
|
1396
|
-
const { values: s, _$litType$: i } = t, e = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el =
|
|
1400
|
+
const { values: s, _$litType$: i } = t, e = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = He.createElement(ar(i.h, i.h[0]), this.options)), i);
|
|
1397
1401
|
if (((o = this._$AH) == null ? void 0 : o._$AD) === e)
|
|
1398
1402
|
this._$AH.p(s);
|
|
1399
1403
|
else {
|
|
1400
|
-
const n = new
|
|
1404
|
+
const n = new cr(e, this), l = n.u(this.options);
|
|
1401
1405
|
n.p(s), this.T(l), this._$AH = n;
|
|
1402
1406
|
}
|
|
1403
1407
|
}
|
|
1404
1408
|
_$AC(t) {
|
|
1405
|
-
let s =
|
|
1406
|
-
return s === void 0 &&
|
|
1409
|
+
let s = ji.get(t.strings);
|
|
1410
|
+
return s === void 0 && ji.set(t.strings, s = new He(t)), s;
|
|
1407
1411
|
}
|
|
1408
1412
|
k(t) {
|
|
1409
|
-
|
|
1413
|
+
rr(this._$AH) || (this._$AH = [], this._$AR());
|
|
1410
1414
|
const s = this._$AH;
|
|
1411
1415
|
let i, e = 0;
|
|
1412
1416
|
for (const o of t)
|
|
1413
|
-
e === s.length ? s.push(i = new
|
|
1417
|
+
e === s.length ? s.push(i = new Ae(this.S(Ve()), this.S(Ve()), this, this.options)) : i = s[e], i._$AI(o), e++;
|
|
1414
1418
|
e < s.length && (this._$AR(i && i._$AB.nextSibling, e), s.length = e);
|
|
1415
1419
|
}
|
|
1416
1420
|
_$AR(t = this._$AA.nextSibling, s) {
|
|
@@ -1425,7 +1429,7 @@ class Ce {
|
|
|
1425
1429
|
this._$AM === void 0 && (this._$Cv = t, (s = this._$AP) == null || s.call(this, t));
|
|
1426
1430
|
}
|
|
1427
1431
|
}
|
|
1428
|
-
class
|
|
1432
|
+
class Ye {
|
|
1429
1433
|
get tagName() {
|
|
1430
1434
|
return this.element.tagName;
|
|
1431
1435
|
}
|
|
@@ -1439,12 +1443,12 @@ class Ge {
|
|
|
1439
1443
|
const o = this.strings;
|
|
1440
1444
|
let n = !1;
|
|
1441
1445
|
if (o === void 0)
|
|
1442
|
-
t = ce(this, t, s, 0), n = !
|
|
1446
|
+
t = ce(this, t, s, 0), n = !Be(t) || t !== this._$AH && t !== gt, n && (this._$AH = t);
|
|
1443
1447
|
else {
|
|
1444
1448
|
const l = t;
|
|
1445
1449
|
let c, h;
|
|
1446
1450
|
for (t = o[0], c = 0; c < o.length - 1; c++)
|
|
1447
|
-
h = ce(this, l[i + c], s, c), h === gt && (h = this._$AH[c]), n || (n = !
|
|
1451
|
+
h = ce(this, l[i + c], s, c), h === gt && (h = this._$AH[c]), n || (n = !Be(h) || h !== this._$AH[c]), h === $ ? t = $ : t !== $ && (t += (h ?? "") + o[c + 1]), this._$AH[c] = h;
|
|
1448
1452
|
}
|
|
1449
1453
|
n && !e && this.j(t);
|
|
1450
1454
|
}
|
|
@@ -1452,7 +1456,7 @@ class Ge {
|
|
|
1452
1456
|
t === $ ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
1453
1457
|
}
|
|
1454
1458
|
}
|
|
1455
|
-
class
|
|
1459
|
+
class hr extends Ye {
|
|
1456
1460
|
constructor() {
|
|
1457
1461
|
super(...arguments), this.type = 3;
|
|
1458
1462
|
}
|
|
@@ -1460,7 +1464,7 @@ class cr extends Ge {
|
|
|
1460
1464
|
this.element[this.name] = t === $ ? void 0 : t;
|
|
1461
1465
|
}
|
|
1462
1466
|
}
|
|
1463
|
-
class
|
|
1467
|
+
class dr extends Ye {
|
|
1464
1468
|
constructor() {
|
|
1465
1469
|
super(...arguments), this.type = 4;
|
|
1466
1470
|
}
|
|
@@ -1468,7 +1472,7 @@ class hr extends Ge {
|
|
|
1468
1472
|
this.element.toggleAttribute(this.name, !!t && t !== $);
|
|
1469
1473
|
}
|
|
1470
1474
|
}
|
|
1471
|
-
class
|
|
1475
|
+
class pr extends Ye {
|
|
1472
1476
|
constructor(t, s, i, e, o) {
|
|
1473
1477
|
super(t, s, i, e, o), this.type = 5;
|
|
1474
1478
|
}
|
|
@@ -1483,7 +1487,7 @@ class dr extends Ge {
|
|
|
1483
1487
|
typeof this._$AH == "function" ? this._$AH.call(((s = this.options) == null ? void 0 : s.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
1484
1488
|
}
|
|
1485
1489
|
}
|
|
1486
|
-
class
|
|
1490
|
+
class ur {
|
|
1487
1491
|
constructor(t, s, i) {
|
|
1488
1492
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = s, this.options = i;
|
|
1489
1493
|
}
|
|
@@ -1494,14 +1498,14 @@ class pr {
|
|
|
1494
1498
|
ce(this, t);
|
|
1495
1499
|
}
|
|
1496
1500
|
}
|
|
1497
|
-
const
|
|
1498
|
-
|
|
1499
|
-
const
|
|
1501
|
+
const Yr = { P: li, A: zt, C: ci, M: 1, L: lr, R: cr, D: or, V: ce, I: Ae, H: Ye, N: dr, U: pr, B: hr, F: ur }, js = ze.litHtmlPolyfillSupport;
|
|
1502
|
+
js == null || js(He, Ae), (ze.litHtmlVersions ?? (ze.litHtmlVersions = [])).push("3.1.2");
|
|
1503
|
+
const Qr = (r, t, s) => {
|
|
1500
1504
|
const i = (s == null ? void 0 : s.renderBefore) ?? t;
|
|
1501
1505
|
let e = i._$litPart$;
|
|
1502
1506
|
if (e === void 0) {
|
|
1503
1507
|
const o = (s == null ? void 0 : s.renderBefore) ?? null;
|
|
1504
|
-
i._$litPart$ = e = new
|
|
1508
|
+
i._$litPart$ = e = new Ae(t.insertBefore(Ve(), o), o, void 0, s ?? {});
|
|
1505
1509
|
}
|
|
1506
1510
|
return e._$AI(r), e;
|
|
1507
1511
|
};
|
|
@@ -1510,12 +1514,12 @@ const Yr = (r, t, s) => {
|
|
|
1510
1514
|
* Copyright 2020 Google LLC
|
|
1511
1515
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1512
1516
|
*/
|
|
1513
|
-
const { I:
|
|
1517
|
+
const { I: Jr } = Yr, Xr = (r) => r.strings === void 0, Mi = () => document.createComment(""), Te = (r, t, s) => {
|
|
1514
1518
|
var o;
|
|
1515
1519
|
const i = r._$AA.parentNode, e = t === void 0 ? r._$AB : t._$AA;
|
|
1516
1520
|
if (s === void 0) {
|
|
1517
|
-
const n = i.insertBefore(
|
|
1518
|
-
s = new
|
|
1521
|
+
const n = i.insertBefore(Mi(), e), l = i.insertBefore(Mi(), e);
|
|
1522
|
+
s = new Jr(n, l, r, r.options);
|
|
1519
1523
|
} else {
|
|
1520
1524
|
const n = s._$AB.nextSibling, l = s._$AM, c = l !== r;
|
|
1521
1525
|
if (c) {
|
|
@@ -1531,7 +1535,7 @@ const { I: Qr } = Gr, Xr = (r) => r.strings === void 0, ji = () => document.crea
|
|
|
1531
1535
|
}
|
|
1532
1536
|
}
|
|
1533
1537
|
return s;
|
|
1534
|
-
}, ie = (r, t, s = r) => (r._$AI(t, s), r),
|
|
1538
|
+
}, ie = (r, t, s = r) => (r._$AI(t, s), r), to = {}, eo = (r, t = to) => r._$AH = t, so = (r) => r._$AH, Ms = (r) => {
|
|
1535
1539
|
var i;
|
|
1536
1540
|
(i = r._$AP) == null || i.call(r, !1, !0);
|
|
1537
1541
|
let t = r._$AA;
|
|
@@ -1547,7 +1551,7 @@ const { I: Qr } = Gr, Xr = (r) => r.strings === void 0, ji = () => document.crea
|
|
|
1547
1551
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1548
1552
|
*/
|
|
1549
1553
|
const me = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, be = (r) => (...t) => ({ _$litDirective$: r, values: t });
|
|
1550
|
-
let
|
|
1554
|
+
let Se = class {
|
|
1551
1555
|
constructor(t) {
|
|
1552
1556
|
}
|
|
1553
1557
|
get _$AU() {
|
|
@@ -1576,51 +1580,51 @@ const Re = (r, t) => {
|
|
|
1576
1580
|
for (const e of s)
|
|
1577
1581
|
(i = e._$AO) == null || i.call(e, t, !1), Re(e, t);
|
|
1578
1582
|
return !0;
|
|
1579
|
-
},
|
|
1583
|
+
}, fs = (r) => {
|
|
1580
1584
|
let t, s;
|
|
1581
1585
|
do {
|
|
1582
1586
|
if ((t = r._$AM) === void 0)
|
|
1583
1587
|
break;
|
|
1584
1588
|
s = t._$AN, s.delete(r), r = t;
|
|
1585
1589
|
} while ((s == null ? void 0 : s.size) === 0);
|
|
1586
|
-
},
|
|
1590
|
+
}, fr = (r) => {
|
|
1587
1591
|
for (let t; t = r._$AM; r = t) {
|
|
1588
1592
|
let s = t._$AN;
|
|
1589
1593
|
if (s === void 0)
|
|
1590
1594
|
t._$AN = s = /* @__PURE__ */ new Set();
|
|
1591
1595
|
else if (s.has(r))
|
|
1592
1596
|
break;
|
|
1593
|
-
s.add(r),
|
|
1597
|
+
s.add(r), oo(t);
|
|
1594
1598
|
}
|
|
1595
1599
|
};
|
|
1596
|
-
function
|
|
1597
|
-
this._$AN !== void 0 ? (
|
|
1600
|
+
function io(r) {
|
|
1601
|
+
this._$AN !== void 0 ? (fs(this), this._$AM = r, fr(this)) : this._$AM = r;
|
|
1598
1602
|
}
|
|
1599
|
-
function
|
|
1603
|
+
function ro(r, t = !1, s = 0) {
|
|
1600
1604
|
const i = this._$AH, e = this._$AN;
|
|
1601
1605
|
if (e !== void 0 && e.size !== 0)
|
|
1602
1606
|
if (t)
|
|
1603
1607
|
if (Array.isArray(i))
|
|
1604
1608
|
for (let o = s; o < i.length; o++)
|
|
1605
|
-
Re(i[o], !1),
|
|
1609
|
+
Re(i[o], !1), fs(i[o]);
|
|
1606
1610
|
else
|
|
1607
|
-
i != null && (Re(i, !1),
|
|
1611
|
+
i != null && (Re(i, !1), fs(i));
|
|
1608
1612
|
else
|
|
1609
1613
|
Re(this, r);
|
|
1610
1614
|
}
|
|
1611
|
-
const
|
|
1612
|
-
r.type == me.CHILD && (r._$AP ?? (r._$AP =
|
|
1615
|
+
const oo = (r) => {
|
|
1616
|
+
r.type == me.CHILD && (r._$AP ?? (r._$AP = ro), r._$AQ ?? (r._$AQ = io));
|
|
1613
1617
|
};
|
|
1614
|
-
let
|
|
1618
|
+
let hi = class extends Se {
|
|
1615
1619
|
constructor() {
|
|
1616
1620
|
super(...arguments), this._$AN = void 0;
|
|
1617
1621
|
}
|
|
1618
1622
|
_$AT(t, s, i) {
|
|
1619
|
-
super._$AT(t, s, i),
|
|
1623
|
+
super._$AT(t, s, i), fr(this), this.isConnected = t._$AU;
|
|
1620
1624
|
}
|
|
1621
1625
|
_$AO(t, s = !0) {
|
|
1622
1626
|
var i, e;
|
|
1623
|
-
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (e = this.disconnected) == null || e.call(this)), s && (Re(this, t),
|
|
1627
|
+
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (e = this.disconnected) == null || e.call(this)), s && (Re(this, t), fs(this));
|
|
1624
1628
|
}
|
|
1625
1629
|
setValue(t) {
|
|
1626
1630
|
if (Xr(this._$Ct))
|
|
@@ -1651,7 +1655,7 @@ let y = class extends Pe {
|
|
|
1651
1655
|
}
|
|
1652
1656
|
update(t) {
|
|
1653
1657
|
const s = this.render();
|
|
1654
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
1658
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Qr(s, this.renderRoot, this.renderOptions);
|
|
1655
1659
|
}
|
|
1656
1660
|
connectedCallback() {
|
|
1657
1661
|
var t;
|
|
@@ -1665,12 +1669,12 @@ let y = class extends Pe {
|
|
|
1665
1669
|
return gt;
|
|
1666
1670
|
}
|
|
1667
1671
|
};
|
|
1668
|
-
var
|
|
1669
|
-
y._$litElement$ = !0, y.finalized = !0, (
|
|
1670
|
-
const
|
|
1671
|
-
|
|
1672
|
+
var sr;
|
|
1673
|
+
y._$litElement$ = !0, y.finalized = !0, (sr = globalThis.litElementHydrateSupport) == null || sr.call(globalThis, { LitElement: y });
|
|
1674
|
+
const Is = globalThis.litElementPolyfillSupport;
|
|
1675
|
+
Is == null || Is({ LitElement: y });
|
|
1672
1676
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.4");
|
|
1673
|
-
function
|
|
1677
|
+
function As(r) {
|
|
1674
1678
|
if (typeof r == "function") {
|
|
1675
1679
|
const t = r;
|
|
1676
1680
|
return N.collectModifiedPublisher(), t(), N.getModifiedPublishers() || /* @__PURE__ */ new Set();
|
|
@@ -1678,13 +1682,13 @@ function Cs(r) {
|
|
|
1678
1682
|
if (typeof r == "string") {
|
|
1679
1683
|
const t = r.split("."), s = t.shift() || "";
|
|
1680
1684
|
let i = N.get(s);
|
|
1681
|
-
i =
|
|
1685
|
+
i = X.traverse(i, t);
|
|
1682
1686
|
const e = /* @__PURE__ */ new Set();
|
|
1683
1687
|
return e.add(i), e;
|
|
1684
1688
|
}
|
|
1685
1689
|
return /* @__PURE__ */ new Set([r]);
|
|
1686
1690
|
}
|
|
1687
|
-
class
|
|
1691
|
+
class no extends hi {
|
|
1688
1692
|
/* eslint-disable @typescript-eslint/no-explicit-any*/
|
|
1689
1693
|
constructor(t) {
|
|
1690
1694
|
var s;
|
|
@@ -1706,7 +1710,7 @@ class oo extends ci {
|
|
|
1706
1710
|
this.setValue(t());
|
|
1707
1711
|
} : this.onAssign = (s) => {
|
|
1708
1712
|
this.setValue(s);
|
|
1709
|
-
}, this.observables =
|
|
1713
|
+
}, this.observables = As(t), this.observables.forEach((s) => {
|
|
1710
1714
|
s.onAssign(this.onAssign);
|
|
1711
1715
|
});
|
|
1712
1716
|
}
|
|
@@ -1721,15 +1725,15 @@ class oo extends ci {
|
|
|
1721
1725
|
this.observable && this.subscribe(this.observable);
|
|
1722
1726
|
}
|
|
1723
1727
|
}
|
|
1724
|
-
const
|
|
1725
|
-
const s =
|
|
1728
|
+
const gr = be(no), ao = gr, lo = gr, co = (r) => As(r).values().next().value.get(), mr = (r, t) => {
|
|
1729
|
+
const s = As(r).values().next().value;
|
|
1726
1730
|
if (t !== void 0) {
|
|
1727
1731
|
const i = s.get();
|
|
1728
|
-
|
|
1732
|
+
X.isEmpty(i) && s.set(t);
|
|
1729
1733
|
}
|
|
1730
1734
|
return s;
|
|
1731
|
-
},
|
|
1732
|
-
|
|
1735
|
+
}, ho = mr, br = mr, po = (r, t) => {
|
|
1736
|
+
As(r).values().next().value.set(t);
|
|
1733
1737
|
}, I = class I {
|
|
1734
1738
|
constructor(t) {
|
|
1735
1739
|
this.addHTTPResponse = !1, this.cache = "default", this.isServiceSimulated = !1, this.blockUntilDone = !1, this.serviceURL = t.serviceURL, this.blockUntilDone = t.blockUntilDone || !1, this.serviceURL == "publisher://" && (this.isServiceSimulated = !0), this.serviceURL || (this.serviceURL = document.location.origin), this.userName = t.userName, this.password = t.password, t.token && (this.token = t.token), this.tokenProvider = t.tokenProvider, this.authToken = t.authToken, this.addHTTPResponse = t.addHTTPResponse || !1, this.credentials = t.credentials, this.cache = t.cache || "default";
|
|
@@ -1760,7 +1764,7 @@ const fr = be(oo), no = fr, ao = fr, lo = (r) => Cs(r).values().next().value.get
|
|
|
1760
1764
|
} catch {
|
|
1761
1765
|
o = {};
|
|
1762
1766
|
}
|
|
1763
|
-
return this.addHTTPResponse &&
|
|
1767
|
+
return this.addHTTPResponse && X.isObject(o) && (o._sonic_http_response_ = t), e === 498 && !I.failledTokenUpdates.has(this.serviceURL) && (this.handleInvalidToken(this.token), s.apiMethod === "get" ? o = await this[s.apiMethod](s.path, s.additionalHeaders) : o = await this[s.apiMethod](s.path, s.data, s.method, s.additionalHeaders)), o;
|
|
1764
1768
|
}
|
|
1765
1769
|
/**
|
|
1766
1770
|
* Basic auth
|
|
@@ -1960,13 +1964,13 @@ const fr = be(oo), no = fr, ao = fr, lo = (r) => Cs(r).values().next().value.get
|
|
|
1960
1964
|
}
|
|
1961
1965
|
};
|
|
1962
1966
|
I.loadingGetPromises = /* @__PURE__ */ new Map(), I.tokens = /* @__PURE__ */ new Map(), I.invalidTokens = [], I.failledTokenUpdates = /* @__PURE__ */ new Map(), I.firstCallDoneFlags = /* @__PURE__ */ new Map();
|
|
1963
|
-
let
|
|
1967
|
+
let Ce = I;
|
|
1964
1968
|
/**
|
|
1965
1969
|
* @license
|
|
1966
1970
|
* Copyright 2017 Google LLC
|
|
1967
1971
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1968
1972
|
*/
|
|
1969
|
-
let
|
|
1973
|
+
let Vs = class extends Se {
|
|
1970
1974
|
constructor(t) {
|
|
1971
1975
|
if (super(t), this.it = $, t.type !== me.CHILD)
|
|
1972
1976
|
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
@@ -1985,8 +1989,8 @@ let Us = class extends Ae {
|
|
|
1985
1989
|
return s.raw = s, this._t = { _$litType$: this.constructor.resultType, strings: s, values: [] };
|
|
1986
1990
|
}
|
|
1987
1991
|
};
|
|
1988
|
-
|
|
1989
|
-
const
|
|
1992
|
+
Vs.directiveName = "unsafeHTML", Vs.resultType = 1;
|
|
1993
|
+
const z = be(Vs), Bs = /* @__PURE__ */ new Map(), Ii = (r) => {
|
|
1990
1994
|
if (!r)
|
|
1991
1995
|
return null;
|
|
1992
1996
|
const t = rt.getApiConfiguration(r), s = rt.getAncestorAttributeValue(
|
|
@@ -2001,25 +2005,25 @@ const R = be(Us), Vs = /* @__PURE__ */ new Map(), Mi = (r) => {
|
|
|
2001
2005
|
wordingVersionProvider: i
|
|
2002
2006
|
};
|
|
2003
2007
|
let o = null;
|
|
2004
|
-
for (const [n, l] of
|
|
2005
|
-
if (
|
|
2008
|
+
for (const [n, l] of Bs)
|
|
2009
|
+
if (X.deepEqual(n, e)) {
|
|
2006
2010
|
o = l;
|
|
2007
2011
|
break;
|
|
2008
2012
|
}
|
|
2009
2013
|
return o || (o = {
|
|
2010
|
-
api: new
|
|
2014
|
+
api: new Ce(t),
|
|
2011
2015
|
keysToTranslate: /* @__PURE__ */ new Set(),
|
|
2012
2016
|
translatedKeys: /* @__PURE__ */ new Set(),
|
|
2013
2017
|
wordingProvider: s,
|
|
2014
2018
|
callIndex: 0,
|
|
2015
2019
|
wordingVersionProvider: i,
|
|
2016
2020
|
apiCallKey: e
|
|
2017
|
-
},
|
|
2018
|
-
},
|
|
2021
|
+
}, Bs.set(e, o)), o;
|
|
2022
|
+
}, zi = "", V = class V extends hi {
|
|
2019
2023
|
/* eslint-disable @typescript-eslint/no-explicit-any*/
|
|
2020
2024
|
constructor(t) {
|
|
2021
2025
|
super(t), this.useUnsafeHTML = !1, this.onAssign = (s) => {
|
|
2022
|
-
const i = this.useUnsafeHTML ?
|
|
2026
|
+
const i = this.useUnsafeHTML ? z(s) : s;
|
|
2023
2027
|
this.setValue(i);
|
|
2024
2028
|
}, this.node = t.options.host;
|
|
2025
2029
|
}
|
|
@@ -2035,19 +2039,19 @@ const R = be(Us), Vs = /* @__PURE__ */ new Map(), Mi = (r) => {
|
|
|
2035
2039
|
V.firstCall = !1;
|
|
2036
2040
|
const d = Object.keys(V.publisher.get());
|
|
2037
2041
|
for (const f of d)
|
|
2038
|
-
V.publisher.get()[f] ===
|
|
2042
|
+
V.publisher.get()[f] === zi && delete V.publisher[f];
|
|
2039
2043
|
}
|
|
2040
2044
|
if (t) {
|
|
2041
2045
|
const d = rt.getAncestorAttributeValue(
|
|
2042
2046
|
t,
|
|
2043
2047
|
"wordingVersionProvider"
|
|
2044
2048
|
);
|
|
2045
|
-
d &&
|
|
2049
|
+
d && br(d).onAssign(
|
|
2046
2050
|
V.handleVersionProvider(t)
|
|
2047
2051
|
);
|
|
2048
2052
|
}
|
|
2049
2053
|
let o = V.publisher.get()["wording_" + s] != null;
|
|
2050
|
-
const n = e ||
|
|
2054
|
+
const n = e || Ii(t);
|
|
2051
2055
|
if (!n)
|
|
2052
2056
|
return;
|
|
2053
2057
|
if (o && s !== "") {
|
|
@@ -2064,7 +2068,7 @@ const R = be(Us), Vs = /* @__PURE__ */ new Map(), Mi = (r) => {
|
|
|
2064
2068
|
}
|
|
2065
2069
|
const h = n.api;
|
|
2066
2070
|
window.queueMicrotask(async () => {
|
|
2067
|
-
if (o = V.publisher["wording_" + s].get() != null, !o && s !== "" && (n.keysToTranslate.add(s), V.publisher["wording_" + s] =
|
|
2071
|
+
if (o = V.publisher["wording_" + s].get() != null, !o && s !== "" && (n.keysToTranslate.add(s), V.publisher["wording_" + s] = zi), l !== n.callIndex)
|
|
2068
2072
|
return;
|
|
2069
2073
|
const d = Array.from(n.keysToTranslate);
|
|
2070
2074
|
if (!d.length)
|
|
@@ -2081,7 +2085,7 @@ const R = be(Us), Vs = /* @__PURE__ */ new Map(), Mi = (r) => {
|
|
|
2081
2085
|
}
|
|
2082
2086
|
//check if the wording version has changed
|
|
2083
2087
|
static handleVersionProvider(t) {
|
|
2084
|
-
const s =
|
|
2088
|
+
const s = Ii(t);
|
|
2085
2089
|
if (!s)
|
|
2086
2090
|
return;
|
|
2087
2091
|
if (V.versionProviderHandlers.has(s))
|
|
@@ -2100,7 +2104,7 @@ const R = be(Us), Vs = /* @__PURE__ */ new Map(), Mi = (r) => {
|
|
|
2100
2104
|
};
|
|
2101
2105
|
if (n.includes(l) || n.push(l), e !== l.version) {
|
|
2102
2106
|
l.version = e, V.publisher.set({ __wording_versions__: n });
|
|
2103
|
-
for (const c of
|
|
2107
|
+
for (const c of Bs.values())
|
|
2104
2108
|
c.keysToTranslate = new Set(c.translatedKeys), c.keysToTranslate.size > 0 && V.callApi(null, "", !1, c);
|
|
2105
2109
|
}
|
|
2106
2110
|
};
|
|
@@ -2129,12 +2133,12 @@ V.publisher = N.get("sonic-wording", {
|
|
|
2129
2133
|
localStorageMode: "enabled"
|
|
2130
2134
|
}), V.firstCall = !0, V.versionProviderHandlers = /* @__PURE__ */ new Map();
|
|
2131
2135
|
let Fe = V;
|
|
2132
|
-
var
|
|
2133
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
2136
|
+
var uo = Object.defineProperty, fo = Object.getOwnPropertyDescriptor, It = (r, t, s, i) => {
|
|
2137
|
+
for (var e = i > 1 ? void 0 : i ? fo(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
2134
2138
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
2135
|
-
return i && e &&
|
|
2139
|
+
return i && e && uo(t, s, e), e;
|
|
2136
2140
|
};
|
|
2137
|
-
let
|
|
2141
|
+
let os = !1, zs = /* @__PURE__ */ new Set();
|
|
2138
2142
|
const Y = (r, t) => {
|
|
2139
2143
|
var e;
|
|
2140
2144
|
const s = (e = class extends r {
|
|
@@ -2205,11 +2209,11 @@ const Y = (r, t) => {
|
|
|
2205
2209
|
l.position = "fixed", l.top = "0", l.right = "0", l.margin = "auto", l.borderRadius = ".7rem", l.backgroundColor = "#0f1729", l.color = "#c5d4f9", l.padding = "16px 16px", l.margin = "16px 16px", l.boxShadow = "0 10px 30px -18px rgba(0,0,0,.3)", l.overflowY = "auto", l.zIndex = "99999999", l.maxHeight = "calc(100vh - 32px)", l.fontFamily = "Consolas, monospace", l.maxWidth = "min(50vw,25rem)", l.fontSize = "12px", l.minWidth = "300px", l.overflowWrap = "break-word", l.resize = "vertical";
|
|
2206
2210
|
}
|
|
2207
2211
|
this.addEventListener("click", (l) => {
|
|
2208
|
-
l.ctrlKey && (l.preventDefault(),
|
|
2212
|
+
l.ctrlKey && (l.preventDefault(), os = !os);
|
|
2209
2213
|
}), this.dataProvider && (window[this.dataProvider] = this.publisher), this.addEventListener("mouseover", () => {
|
|
2210
|
-
|
|
2214
|
+
os || this.removeDebugger(), document.body.appendChild(this.debug), zs.add(this.debug);
|
|
2211
2215
|
}), this.addEventListener("mouseout", () => {
|
|
2212
|
-
|
|
2216
|
+
os || this.removeDebugger();
|
|
2213
2217
|
}), (n = this.publisher) == null || n.onInternalMutation(() => {
|
|
2214
2218
|
var l;
|
|
2215
2219
|
this.debug.innerHTML = `🤖 DataProvider : "<b style="font-weight:bold;color:#fff;">${this.dataProvider}</b>"<br>
|
|
@@ -2226,9 +2230,9 @@ const Y = (r, t) => {
|
|
|
2226
2230
|
}
|
|
2227
2231
|
}
|
|
2228
2232
|
removeDebugger() {
|
|
2229
|
-
|
|
2233
|
+
zs.forEach((n) => {
|
|
2230
2234
|
document.body.contains(n) && document.body.removeChild(n);
|
|
2231
|
-
}),
|
|
2235
|
+
}), zs = /* @__PURE__ */ new Set();
|
|
2232
2236
|
}
|
|
2233
2237
|
/**
|
|
2234
2238
|
* Petite fonction utilitaire pour retourner la configuration a passer à l'utilitaire API
|
|
@@ -2259,7 +2263,7 @@ const Y = (r, t) => {
|
|
|
2259
2263
|
if (this.noShadowDom === "" || this.getAttribute("noShadowDom") === "")
|
|
2260
2264
|
return this;
|
|
2261
2265
|
const n = super.createRenderRoot();
|
|
2262
|
-
return
|
|
2266
|
+
return Cs.observe(n), n;
|
|
2263
2267
|
}
|
|
2264
2268
|
initPublisher() {
|
|
2265
2269
|
if (!document)
|
|
@@ -2277,7 +2281,7 @@ const Y = (r, t) => {
|
|
|
2277
2281
|
const h = this.getAttribute(
|
|
2278
2282
|
"subDataProvider"
|
|
2279
2283
|
);
|
|
2280
|
-
this.dataProvider = l + "/" + h, c =
|
|
2284
|
+
this.dataProvider = l + "/" + h, c = X.traverse(c, h.split(".")), n.set(this.dataProvider, c), this.publisher = c;
|
|
2281
2285
|
}
|
|
2282
2286
|
this.publisher = c;
|
|
2283
2287
|
}
|
|
@@ -2304,12 +2308,12 @@ const Y = (r, t) => {
|
|
|
2304
2308
|
a()
|
|
2305
2309
|
], s.prototype, "props", 1), s;
|
|
2306
2310
|
};
|
|
2307
|
-
var
|
|
2308
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
2311
|
+
var go = Object.defineProperty, mo = Object.getOwnPropertyDescriptor, bo = (r, t, s, i) => {
|
|
2312
|
+
for (var e = i > 1 ? void 0 : i ? mo(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
2309
2313
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
2310
|
-
return i && e &&
|
|
2314
|
+
return i && e && go(t, s, e), e;
|
|
2311
2315
|
};
|
|
2312
|
-
const
|
|
2316
|
+
const Qe = (r) => {
|
|
2313
2317
|
class t extends r {
|
|
2314
2318
|
constructor() {
|
|
2315
2319
|
super(...arguments), this.templates = null, this.templateValueAttribute = "data-value", this.templateList = [], this.templateParts = {}, this.templatePartsList = [];
|
|
@@ -2321,17 +2325,17 @@ const Ye = (r) => {
|
|
|
2321
2325
|
this.templateList = i.filter((e) => !e.getAttribute("data-value")), this.templateList.length == 0 && (this.templateList = i), super.connectedCallback();
|
|
2322
2326
|
}
|
|
2323
2327
|
}
|
|
2324
|
-
return
|
|
2328
|
+
return bo([
|
|
2325
2329
|
a({ type: Array })
|
|
2326
2330
|
], t.prototype, "templates", 2), t;
|
|
2327
2331
|
};
|
|
2328
|
-
var
|
|
2329
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
2332
|
+
var vo = Object.defineProperty, yo = Object.getOwnPropertyDescriptor, Z = (r, t, s, i) => {
|
|
2333
|
+
for (var e = i > 1 ? void 0 : i ? yo(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
2330
2334
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
2331
|
-
return i && e &&
|
|
2335
|
+
return i && e && vo(t, s, e), e;
|
|
2332
2336
|
};
|
|
2333
|
-
const
|
|
2334
|
-
let q = class extends Y(
|
|
2337
|
+
const wo = "sonic-date";
|
|
2338
|
+
let q = class extends Y(Qe(y)) {
|
|
2335
2339
|
constructor() {
|
|
2336
2340
|
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.hide_hours = !1, this.end_date = 0, 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();
|
|
2337
2341
|
}
|
|
@@ -2374,7 +2378,7 @@ let q = class extends Y(Ye(y)) {
|
|
|
2374
2378
|
this.language || this.pageLanguage,
|
|
2375
2379
|
s
|
|
2376
2380
|
).formatToParts(i);
|
|
2377
|
-
return this.designMode && e.forEach((o) => o.value = o.value.replace(/,/g, " ")), e[0].value =
|
|
2381
|
+
return this.designMode && e.forEach((o) => o.value = o.value.replace(/,/g, " ")), e[0].value = hs.ucFirst(e[0].value), e.filter((o) => o.hidden !== !0);
|
|
2378
2382
|
}
|
|
2379
2383
|
dateStringToSeconds(r) {
|
|
2380
2384
|
return new Date(r).getTime() / 1e3;
|
|
@@ -2394,7 +2398,7 @@ let q = class extends Y(Ye(y)) {
|
|
|
2394
2398
|
};
|
|
2395
2399
|
this.weekday !== "hidden" && (r.weekday = this.weekday), this.hour !== "hidden" && (r.hour = this.hour), this.minute !== "hidden" && (r.minute = this.minute), this.era && (r.era = this.era), this.time_zone && (r.timeZone = this.time_zone);
|
|
2396
2400
|
const t = this.getDatesParts(this.start_date, this.end_date, r);
|
|
2397
|
-
return
|
|
2401
|
+
return z(
|
|
2398
2402
|
`${t.map((s) => {
|
|
2399
2403
|
const i = this.templateParts[s.type];
|
|
2400
2404
|
if (i) {
|
|
@@ -2471,7 +2475,7 @@ Z([
|
|
|
2471
2475
|
a({ type: Boolean })
|
|
2472
2476
|
], q.prototype, "now", 2);
|
|
2473
2477
|
q = Z([
|
|
2474
|
-
_(
|
|
2478
|
+
_(wo)
|
|
2475
2479
|
], q);
|
|
2476
2480
|
var t, G;
|
|
2477
2481
|
let st = (G = class {
|
|
@@ -2547,7 +2551,7 @@ let st = (G = class {
|
|
|
2547
2551
|
* Copyright 2018 Google LLC
|
|
2548
2552
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2549
2553
|
*/
|
|
2550
|
-
const
|
|
2554
|
+
const vr = "important", _o = " !" + vr, dt = be(class extends Se {
|
|
2551
2555
|
constructor(r) {
|
|
2552
2556
|
var t;
|
|
2553
2557
|
if (super(r), r.type !== me.ATTRIBUTE || r.name !== "style" || ((t = r.strings) == null ? void 0 : t.length) > 2)
|
|
@@ -2569,19 +2573,19 @@ const br = "important", wo = " !" + br, dt = be(class extends Ae {
|
|
|
2569
2573
|
const e = t[i];
|
|
2570
2574
|
if (e != null) {
|
|
2571
2575
|
this.ft.add(i);
|
|
2572
|
-
const o = typeof e == "string" && e.endsWith(
|
|
2573
|
-
i.includes("-") || o ? s.setProperty(i, o ? e.slice(0, -11) : e, o ?
|
|
2576
|
+
const o = typeof e == "string" && e.endsWith(_o);
|
|
2577
|
+
i.includes("-") || o ? s.setProperty(i, o ? e.slice(0, -11) : e, o ? vr : "") : s[i] = e;
|
|
2574
2578
|
}
|
|
2575
2579
|
}
|
|
2576
2580
|
return gt;
|
|
2577
2581
|
}
|
|
2578
2582
|
});
|
|
2579
|
-
var
|
|
2580
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
2583
|
+
var xo = Object.defineProperty, Po = Object.getOwnPropertyDescriptor, Ct = (r, t, s, i) => {
|
|
2584
|
+
for (var e = i > 1 ? void 0 : i ? Po(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
2581
2585
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
2582
|
-
return i && e &&
|
|
2586
|
+
return i && e && xo(t, s, e), e;
|
|
2583
2587
|
};
|
|
2584
|
-
const
|
|
2588
|
+
const ns = /* @__PURE__ */ new Map(), Oe = (r) => {
|
|
2585
2589
|
class t extends r {
|
|
2586
2590
|
constructor(...i) {
|
|
2587
2591
|
super(), this.touched = !1, this.error = !1, this.autofocus = !1, this.required = !1, this.forceAutoFill = !1, this.disabled = null, this.formDataProvider = "", this._name = "", this._value = "", this.onValueAssign = (e) => {
|
|
@@ -2636,7 +2640,7 @@ const os = /* @__PURE__ */ new Map(), Se = (r) => {
|
|
|
2636
2640
|
return this._value;
|
|
2637
2641
|
}
|
|
2638
2642
|
set value(i) {
|
|
2639
|
-
i == null && (i = ""),
|
|
2643
|
+
i == null && (i = ""), X.isObject(i) && Object.prototype.hasOwnProperty.call(i, "__value") && i._value == null && (i = ""), this._value != i && (this._value = i, this.updateDataValue(), this.requestUpdate());
|
|
2640
2644
|
}
|
|
2641
2645
|
initPublisher() {
|
|
2642
2646
|
let i = this.getFormPublisher();
|
|
@@ -2666,11 +2670,11 @@ const os = /* @__PURE__ */ new Map(), Se = (r) => {
|
|
|
2666
2670
|
if (!o)
|
|
2667
2671
|
return;
|
|
2668
2672
|
for (const l of e) {
|
|
2669
|
-
|
|
2670
|
-
const c =
|
|
2673
|
+
ns.has(l) || ns.set(l, []);
|
|
2674
|
+
const c = ns.get(l);
|
|
2671
2675
|
(c == null ? void 0 : c.indexOf(this)) == -1 && c.push(this);
|
|
2672
2676
|
}
|
|
2673
|
-
const n =
|
|
2677
|
+
const n = ns.get(o);
|
|
2674
2678
|
this.addEventListener("keydown", (l) => {
|
|
2675
2679
|
var b;
|
|
2676
2680
|
const c = l;
|
|
@@ -2727,7 +2731,7 @@ const os = /* @__PURE__ */ new Map(), Se = (r) => {
|
|
|
2727
2731
|
a()
|
|
2728
2732
|
], t.prototype, "value", 1), t;
|
|
2729
2733
|
};
|
|
2730
|
-
let
|
|
2734
|
+
let $o = class {
|
|
2731
2735
|
static async queueTaskPromise() {
|
|
2732
2736
|
return new Promise((t) => {
|
|
2733
2737
|
window.queueMicrotask(() => t(null));
|
|
@@ -2738,7 +2742,7 @@ let Po = class {
|
|
|
2738
2742
|
setTimeout(s, t);
|
|
2739
2743
|
});
|
|
2740
2744
|
}
|
|
2741
|
-
},
|
|
2745
|
+
}, Co = class oe {
|
|
2742
2746
|
/**
|
|
2743
2747
|
* Vérifie si les deux tableaux ont le même contenu
|
|
2744
2748
|
*/
|
|
@@ -2849,16 +2853,16 @@ let Po = class {
|
|
|
2849
2853
|
}
|
|
2850
2854
|
/*eslint-enable @typescript-eslint/no-explicit-any*/
|
|
2851
2855
|
};
|
|
2852
|
-
var
|
|
2853
|
-
function
|
|
2856
|
+
var Ao = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2857
|
+
function So(r) {
|
|
2854
2858
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
2855
2859
|
}
|
|
2856
|
-
var
|
|
2860
|
+
var Hs = { exports: {} };
|
|
2857
2861
|
(function(r, t) {
|
|
2858
2862
|
var s = [].slice;
|
|
2859
2863
|
(function(i, e) {
|
|
2860
2864
|
return t !== null ? r.exports = e() : i.UrlPattern = e();
|
|
2861
|
-
})(
|
|
2865
|
+
})(Ao, function() {
|
|
2862
2866
|
var i, e, o, n, l, c, h, d, f, m, b, w, C, O, D;
|
|
2863
2867
|
return f = function(p) {
|
|
2864
2868
|
return p.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
@@ -3089,29 +3093,29 @@ var Bs = { exports: {} };
|
|
|
3089
3093
|
return D(this.ast, p, {});
|
|
3090
3094
|
}, e.escapeForRegex = f, e.concatMap = h, e.stringConcatMap = O, e.regexGroupCount = C, e.keysAndValuesToObject = b, e.P = i, e.newParser = w, e.defaultOptions = d, e.astNodeToRegexString = l, e.astNodeToNames = n, e.getParam = m, e.astNodeContainsSegmentsForProvidedParams = o, e.stringify = D, e;
|
|
3091
3095
|
});
|
|
3092
|
-
})(
|
|
3093
|
-
var
|
|
3094
|
-
const ae = /* @__PURE__ */
|
|
3096
|
+
})(Hs, Hs.exports);
|
|
3097
|
+
var Oo = Hs.exports;
|
|
3098
|
+
const ae = /* @__PURE__ */ So(Oo), Do = $o, ko = Co, Lo = Cs, Eo = hs, qe = rt, No = st, Je = X, To = Ue, J = N, jo = Ce, Mo = ae;
|
|
3095
3099
|
window["concorde-utils"] = window["concorde-utils"] || {};
|
|
3096
3100
|
window["concorde-utils"] = {
|
|
3097
|
-
Utils:
|
|
3098
|
-
Arrays:
|
|
3099
|
-
DataBindObserver:
|
|
3100
|
-
Format:
|
|
3101
|
-
HTML:
|
|
3102
|
-
LocationHandler:
|
|
3103
|
-
Objects:
|
|
3104
|
-
PublisherProxy:
|
|
3105
|
-
PublisherManager:
|
|
3106
|
-
api:
|
|
3107
|
-
URLPattern:
|
|
3108
|
-
};
|
|
3109
|
-
var
|
|
3110
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
3101
|
+
Utils: Do,
|
|
3102
|
+
Arrays: ko,
|
|
3103
|
+
DataBindObserver: Lo,
|
|
3104
|
+
Format: Eo,
|
|
3105
|
+
HTML: qe,
|
|
3106
|
+
LocationHandler: No,
|
|
3107
|
+
Objects: Je,
|
|
3108
|
+
PublisherProxy: To,
|
|
3109
|
+
PublisherManager: J,
|
|
3110
|
+
api: jo,
|
|
3111
|
+
URLPattern: Mo
|
|
3112
|
+
};
|
|
3113
|
+
var Io = Object.defineProperty, zo = Object.getOwnPropertyDescriptor, xe = (r, t, s, i) => {
|
|
3114
|
+
for (var e = i > 1 ? void 0 : i ? zo(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
3111
3115
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
3112
|
-
return i && e &&
|
|
3116
|
+
return i && e && Io(t, s, e), e;
|
|
3113
3117
|
};
|
|
3114
|
-
const
|
|
3118
|
+
const di = (r) => {
|
|
3115
3119
|
class t extends r {
|
|
3116
3120
|
constructor() {
|
|
3117
3121
|
super(...arguments), this._value = "", this.forceAutoFill = !1, this.unique = null, this.radio = null, this.unCheckOnDisconnect = !1, this._checked = null, this.updateAllChecked = () => {
|
|
@@ -3224,7 +3228,7 @@ const hi = (r) => {
|
|
|
3224
3228
|
getCheckAllPublisher() {
|
|
3225
3229
|
this.formDataProvider || (this.formDataProvider = this.getAncestorAttributeValue("formDataProvider"));
|
|
3226
3230
|
const i = this.formDataProvider, e = this.getAttribute("name");
|
|
3227
|
-
return !i || !e ? null :
|
|
3231
|
+
return !i || !e ? null : J.get(i + "/" + e + "/_available_values_");
|
|
3228
3232
|
}
|
|
3229
3233
|
disconnectedCallback() {
|
|
3230
3234
|
super.disconnectedCallback();
|
|
@@ -3297,8 +3301,8 @@ var Ro = Object.defineProperty, Fo = Object.getOwnPropertyDescriptor, U = (r, t,
|
|
|
3297
3301
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
3298
3302
|
return i && e && Ro(t, s, e), e;
|
|
3299
3303
|
};
|
|
3300
|
-
const
|
|
3301
|
-
let T = class extends
|
|
3304
|
+
const Uo = "sonic-button";
|
|
3305
|
+
let T = class extends di(Oe(Y(y))) {
|
|
3302
3306
|
constructor() {
|
|
3303
3307
|
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 = () => {
|
|
3304
3308
|
window.removeEventListener("pointerup", this.handleRepeatend), window.removeEventListener("blur", this.handleRepeatend), this.autoRepeat && (this.isRepeating = !1);
|
|
@@ -3315,7 +3319,7 @@ let T = class extends hi(Se(Y(y))) {
|
|
|
3315
3319
|
}
|
|
3316
3320
|
handleChange(r) {
|
|
3317
3321
|
if (!((r == null ? void 0 : r.type) == "click" && this.autoRepeat) && (super.handleChange(), (this.pushState || this.goBack !== null) && (r == null || r.preventDefault(), r == null || r.stopPropagation(), st.changeFromComponent(this)), this.hasAttribute("reset"))) {
|
|
3318
|
-
const t = this.getAttribute("reset"), s = t ?
|
|
3322
|
+
const t = this.getAttribute("reset"), s = t ? J.get(t) : this.getFormPublisher();
|
|
3319
3323
|
s && s.set({});
|
|
3320
3324
|
}
|
|
3321
3325
|
}
|
|
@@ -3813,7 +3817,7 @@ U([
|
|
|
3813
3817
|
M()
|
|
3814
3818
|
], T.prototype, "location", 2);
|
|
3815
3819
|
T = U([
|
|
3816
|
-
_(
|
|
3820
|
+
_(Uo)
|
|
3817
3821
|
], T);
|
|
3818
3822
|
/**
|
|
3819
3823
|
* @license
|
|
@@ -3825,7 +3829,7 @@ const Ri = (r, t, s) => {
|
|
|
3825
3829
|
for (let e = t; e <= s; e++)
|
|
3826
3830
|
i.set(r[e], e);
|
|
3827
3831
|
return i;
|
|
3828
|
-
},
|
|
3832
|
+
}, Ss = be(class extends Se {
|
|
3829
3833
|
constructor(r) {
|
|
3830
3834
|
if (super(r), r.type !== me.CHILD)
|
|
3831
3835
|
throw Error("repeat() can only be used in text expressions");
|
|
@@ -3843,7 +3847,7 @@ const Ri = (r, t, s) => {
|
|
|
3843
3847
|
return this.dt(r, t, s).values;
|
|
3844
3848
|
}
|
|
3845
3849
|
update(r, [t, s, i]) {
|
|
3846
|
-
const e =
|
|
3850
|
+
const e = so(r), { values: o, keys: n } = this.dt(t, s, i);
|
|
3847
3851
|
if (!Array.isArray(e))
|
|
3848
3852
|
return this.ut = n, o;
|
|
3849
3853
|
const l = this.ut ?? (this.ut = []), c = [];
|
|
@@ -3858,58 +3862,58 @@ const Ri = (r, t, s) => {
|
|
|
3858
3862
|
else if (l[m] === n[w])
|
|
3859
3863
|
c[w] = ie(e[m], o[w]), m--, w--;
|
|
3860
3864
|
else if (l[f] === n[w])
|
|
3861
|
-
c[w] = ie(e[f], o[w]),
|
|
3865
|
+
c[w] = ie(e[f], o[w]), Te(r, c[w + 1], e[f]), f++, w--;
|
|
3862
3866
|
else if (l[m] === n[b])
|
|
3863
|
-
c[b] = ie(e[m], o[b]),
|
|
3867
|
+
c[b] = ie(e[m], o[b]), Te(r, e[f], e[m]), m--, b++;
|
|
3864
3868
|
else if (h === void 0 && (h = Ri(n, b, w), d = Ri(l, f, m)), h.has(l[f]))
|
|
3865
3869
|
if (h.has(l[m])) {
|
|
3866
3870
|
const C = d.get(n[b]), O = C !== void 0 ? e[C] : null;
|
|
3867
3871
|
if (O === null) {
|
|
3868
|
-
const D =
|
|
3872
|
+
const D = Te(r, e[f]);
|
|
3869
3873
|
ie(D, o[b]), c[b] = D;
|
|
3870
3874
|
} else
|
|
3871
|
-
c[b] = ie(O, o[b]),
|
|
3875
|
+
c[b] = ie(O, o[b]), Te(r, e[f], O), e[C] = null;
|
|
3872
3876
|
b++;
|
|
3873
3877
|
} else
|
|
3874
|
-
|
|
3878
|
+
Ms(e[m]), m--;
|
|
3875
3879
|
else
|
|
3876
|
-
|
|
3880
|
+
Ms(e[f]), f++;
|
|
3877
3881
|
for (; b <= w; ) {
|
|
3878
|
-
const C =
|
|
3882
|
+
const C = Te(r, c[w + 1]);
|
|
3879
3883
|
ie(C, o[b]), c[b++] = C;
|
|
3880
3884
|
}
|
|
3881
3885
|
for (; f <= m; ) {
|
|
3882
3886
|
const C = e[f++];
|
|
3883
|
-
C !== null &&
|
|
3887
|
+
C !== null && Ms(C);
|
|
3884
3888
|
}
|
|
3885
|
-
return this.ut = n,
|
|
3889
|
+
return this.ut = n, eo(r, c), gt;
|
|
3886
3890
|
}
|
|
3887
|
-
}),
|
|
3891
|
+
}), Vo = /* @__PURE__ */ new WeakMap();
|
|
3888
3892
|
let Fi = 0;
|
|
3889
|
-
const Rs = /* @__PURE__ */ new Map(),
|
|
3893
|
+
const Rs = /* @__PURE__ */ new Map(), Ui = /* @__PURE__ */ new WeakSet(), Vi = () => new Promise((r) => requestAnimationFrame(r)), Bo = [{ opacity: 0 }], Ho = [{ opacity: 0 }, { opacity: 1 }], Bi = (r, t) => {
|
|
3890
3894
|
const s = r - t;
|
|
3891
3895
|
return s === 0 ? void 0 : s;
|
|
3892
|
-
},
|
|
3896
|
+
}, Hi = (r, t) => {
|
|
3893
3897
|
const s = r / t;
|
|
3894
3898
|
return s === 1 ? void 0 : s;
|
|
3895
3899
|
}, Fs = { left: (r, t) => {
|
|
3896
|
-
const s =
|
|
3900
|
+
const s = Bi(r, t);
|
|
3897
3901
|
return { value: s, transform: s == null || isNaN(s) ? void 0 : `translateX(${s}px)` };
|
|
3898
3902
|
}, top: (r, t) => {
|
|
3899
|
-
const s =
|
|
3903
|
+
const s = Bi(r, t);
|
|
3900
3904
|
return { value: s, transform: s == null || isNaN(s) ? void 0 : `translateY(${s}px)` };
|
|
3901
3905
|
}, width: (r, t) => {
|
|
3902
3906
|
let s;
|
|
3903
3907
|
t === 0 && (t = 1, s = { width: "1px" });
|
|
3904
|
-
const i =
|
|
3908
|
+
const i = Hi(r, t);
|
|
3905
3909
|
return { value: i, overrideFrom: s, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
|
|
3906
3910
|
}, height: (r, t) => {
|
|
3907
3911
|
let s;
|
|
3908
3912
|
t === 0 && (t = 1, s = { height: "1px" });
|
|
3909
|
-
const i =
|
|
3913
|
+
const i = Hi(r, t);
|
|
3910
3914
|
return { value: i, overrideFrom: s, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
|
3911
|
-
} },
|
|
3912
|
-
class
|
|
3915
|
+
} }, qo = { duration: 333, easing: "ease-in-out" }, Wo = ["left", "top", "width", "height", "opacity", "color", "background"], qi = /* @__PURE__ */ new WeakMap();
|
|
3916
|
+
class Ko extends hi {
|
|
3913
3917
|
constructor(t) {
|
|
3914
3918
|
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === me.CHILD)
|
|
3915
3919
|
throw Error("The `animate` directive must be used in attribute position.");
|
|
@@ -3929,7 +3933,7 @@ class Wo extends ci {
|
|
|
3929
3933
|
return $;
|
|
3930
3934
|
}
|
|
3931
3935
|
getController() {
|
|
3932
|
-
return
|
|
3936
|
+
return Vo.get(this.u);
|
|
3933
3937
|
}
|
|
3934
3938
|
isDisabled() {
|
|
3935
3939
|
var t;
|
|
@@ -3938,12 +3942,12 @@ class Wo extends ci {
|
|
|
3938
3942
|
update(t, [s]) {
|
|
3939
3943
|
var e;
|
|
3940
3944
|
const i = this.u === void 0;
|
|
3941
|
-
return i && (this.u = (e = t.options) == null ? void 0 : e.host, this.u.addController(this), this.u.updateComplete.then((o) => this.t = !0), this.element = t.element,
|
|
3945
|
+
return i && (this.u = (e = t.options) == null ? void 0 : e.host, this.u.addController(this), this.u.updateComplete.then((o) => this.t = !0), this.element = t.element, qi.set(this.element, this)), this.optionsOrCallback = s, (i || typeof s != "function") && this.p(s), this.render(s);
|
|
3942
3946
|
}
|
|
3943
3947
|
p(t) {
|
|
3944
3948
|
t = t ?? {};
|
|
3945
3949
|
const s = this.getController();
|
|
3946
|
-
s !== void 0 && ((t = { ...s.defaultOptions, ...t }).keyframeOptions = { ...s.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties =
|
|
3950
|
+
s !== void 0 && ((t = { ...s.defaultOptions, ...t }).keyframeOptions = { ...s.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = Wo), this.options = t;
|
|
3947
3951
|
}
|
|
3948
3952
|
m() {
|
|
3949
3953
|
const t = {}, s = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
|
@@ -3970,7 +3974,7 @@ class Wo extends ci {
|
|
|
3970
3974
|
if (!this.h || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered)
|
|
3971
3975
|
return;
|
|
3972
3976
|
let t;
|
|
3973
|
-
this.prepare(), await
|
|
3977
|
+
this.prepare(), await Vi;
|
|
3974
3978
|
const s = this.O(), i = this.j(this.options.keyframeOptions, s), e = this.m();
|
|
3975
3979
|
if (this.A !== void 0) {
|
|
3976
3980
|
const { from: o, to: n } = this.N(this.A, e, s);
|
|
@@ -3999,7 +4003,7 @@ class Wo extends ci {
|
|
|
3999
4003
|
var s;
|
|
4000
4004
|
if (!this.h || (this.options.id !== void 0 && Rs.set(this.options.id, this.A), this.options.out === void 0))
|
|
4001
4005
|
return;
|
|
4002
|
-
if (this.prepare(), await
|
|
4006
|
+
if (this.prepare(), await Vi(), (s = this.i) == null ? void 0 : s.isConnected) {
|
|
4003
4007
|
const i = this.o && this.o.parentNode === this.i ? this.o : null;
|
|
4004
4008
|
if (this.i.insertBefore(this.element, i), this.options.stabilizeOut) {
|
|
4005
4009
|
const e = this.m();
|
|
@@ -4025,19 +4029,19 @@ class Wo extends ci {
|
|
|
4025
4029
|
O() {
|
|
4026
4030
|
const t = [];
|
|
4027
4031
|
for (let s = this.element.parentNode; s; s = s == null ? void 0 : s.parentNode) {
|
|
4028
|
-
const i =
|
|
4032
|
+
const i = qi.get(s);
|
|
4029
4033
|
i && !i.isDisabled() && i && t.push(i);
|
|
4030
4034
|
}
|
|
4031
4035
|
return t;
|
|
4032
4036
|
}
|
|
4033
4037
|
get isHostRendered() {
|
|
4034
|
-
const t =
|
|
4038
|
+
const t = Ui.has(this.u);
|
|
4035
4039
|
return t || this.u.updateComplete.then(() => {
|
|
4036
|
-
|
|
4040
|
+
Ui.add(this.u);
|
|
4037
4041
|
}), t;
|
|
4038
4042
|
}
|
|
4039
4043
|
j(t, s = this.O()) {
|
|
4040
|
-
const i = { ...
|
|
4044
|
+
const i = { ...qo };
|
|
4041
4045
|
return s.forEach((e) => Object.assign(i, e.options.keyframeOptions)), Object.assign(i, t), i;
|
|
4042
4046
|
}
|
|
4043
4047
|
N(t, s, i) {
|
|
@@ -4088,7 +4092,7 @@ class Wo extends ci {
|
|
|
4088
4092
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, s);
|
|
4089
4093
|
}
|
|
4090
4094
|
}
|
|
4091
|
-
const
|
|
4095
|
+
const cs = be(Ko), Zo = {
|
|
4092
4096
|
cancel: `<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4093
4097
|
<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"/>
|
|
4094
4098
|
</svg>
|
|
@@ -4136,9 +4140,9 @@ const ls = be(Wo), Ko = {
|
|
|
4136
4140
|
<path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4137
4141
|
</svg>
|
|
4138
4142
|
`
|
|
4139
|
-
},
|
|
4140
|
-
core:
|
|
4141
|
-
},
|
|
4143
|
+
}, Go = {
|
|
4144
|
+
core: Zo
|
|
4145
|
+
}, as = /* @__PURE__ */ new Map(), gs = {
|
|
4142
4146
|
heroicons: {
|
|
4143
4147
|
url: "https://cdn.jsdelivr.net/npm/heroicons@2.0.4/24/$prefix/$name.svg",
|
|
4144
4148
|
defaultPrefix: "outline"
|
|
@@ -4162,29 +4166,29 @@ const ls = be(Wo), Ko = {
|
|
|
4162
4166
|
},
|
|
4163
4167
|
custom: { url: "", defaultPrefix: "" }
|
|
4164
4168
|
};
|
|
4165
|
-
let
|
|
4166
|
-
function
|
|
4169
|
+
let Wi = !1;
|
|
4170
|
+
function Yo() {
|
|
4167
4171
|
var r, t;
|
|
4168
|
-
|
|
4172
|
+
Wi || (Wi = !0, gs.custom.url = ((r = document.querySelector("[customIconLibraryPath]")) == null ? void 0 : r.getAttribute("customIconLibraryPath")) || "", gs.custom.defaultPrefix = ((t = document.querySelector("[customIconDefaultPrefix]")) == null ? void 0 : t.getAttribute("customIconDefaultPrefix")) || "");
|
|
4169
4173
|
}
|
|
4170
|
-
const
|
|
4174
|
+
const Ki = sessionStorage.getItem("sonicIconsCache"), Vt = Ki ? JSON.parse(Ki) : { icons: {}, names: [] }, Qo = 100, $i = class $i {
|
|
4171
4175
|
};
|
|
4172
|
-
|
|
4176
|
+
$i.default = {
|
|
4173
4177
|
get: async (t) => {
|
|
4174
4178
|
const s = t.library;
|
|
4175
4179
|
if (!t.name)
|
|
4176
4180
|
return "";
|
|
4177
|
-
const i = t.name, e =
|
|
4178
|
-
if (s == "custom" &&
|
|
4179
|
-
const o =
|
|
4181
|
+
const i = t.name, e = Go;
|
|
4182
|
+
if (s == "custom" && Yo(), s && s in gs) {
|
|
4183
|
+
const o = gs[s], n = t.prefix || o.defaultPrefix || "", l = e[s] || {};
|
|
4180
4184
|
e[s] = l;
|
|
4181
4185
|
const c = n + "-" + i;
|
|
4182
4186
|
if (l[c])
|
|
4183
|
-
return
|
|
4187
|
+
return z(l[c]);
|
|
4184
4188
|
const h = (o.url || "").replace("$prefix", n).replace("$name", i);
|
|
4185
4189
|
if (Vt.icons[h])
|
|
4186
|
-
return l[c] = Vt.icons[h],
|
|
4187
|
-
if (!
|
|
4190
|
+
return l[c] = Vt.icons[h], z(Vt.icons[h]);
|
|
4191
|
+
if (!as.has(h)) {
|
|
4188
4192
|
const f = new Promise(async (m) => {
|
|
4189
4193
|
const b = await fetch(h);
|
|
4190
4194
|
if (!b.ok) {
|
|
@@ -4198,31 +4202,31 @@ Pi.default = {
|
|
|
4198
4202
|
m(null);
|
|
4199
4203
|
}
|
|
4200
4204
|
});
|
|
4201
|
-
|
|
4205
|
+
as.set(h, f);
|
|
4202
4206
|
}
|
|
4203
|
-
const d = await
|
|
4204
|
-
if (
|
|
4207
|
+
const d = await as.get(h);
|
|
4208
|
+
if (as.delete(h), l[c] = d || "", Vt.icons[h] = d || "", Vt.names.length > Qo) {
|
|
4205
4209
|
const f = Vt.names.shift();
|
|
4206
4210
|
delete Vt.icons[f];
|
|
4207
4211
|
}
|
|
4208
|
-
return sessionStorage.setItem("sonicIconsCache", JSON.stringify(Vt)),
|
|
4212
|
+
return sessionStorage.setItem("sonicIconsCache", JSON.stringify(Vt)), z(d);
|
|
4209
4213
|
}
|
|
4210
|
-
return
|
|
4214
|
+
return z(e.core[t.name] || "");
|
|
4211
4215
|
}
|
|
4212
4216
|
};
|
|
4213
|
-
let
|
|
4214
|
-
var
|
|
4217
|
+
let qs = $i;
|
|
4218
|
+
var Jo = Object.defineProperty, Xo = Object.getOwnPropertyDescriptor, Xe = (r, t, s, i) => {
|
|
4215
4219
|
for (var e = i > 1 ? void 0 : i ? Xo(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
4216
4220
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
4217
|
-
return i && e &&
|
|
4221
|
+
return i && e && Jo(t, s, e), e;
|
|
4218
4222
|
};
|
|
4219
|
-
const
|
|
4223
|
+
const tn = "sonic-icon";
|
|
4220
4224
|
let he = class extends y {
|
|
4221
4225
|
constructor() {
|
|
4222
4226
|
super(...arguments), this.iconText = "", this.name = "", this.prefix = "", this.library = "";
|
|
4223
4227
|
}
|
|
4224
4228
|
async updateIcon() {
|
|
4225
|
-
this.iconText = await
|
|
4229
|
+
this.iconText = await qs.default.get({
|
|
4226
4230
|
name: this.name,
|
|
4227
4231
|
prefix: this.prefix,
|
|
4228
4232
|
library: this.library
|
|
@@ -4298,9 +4302,9 @@ Xe([
|
|
|
4298
4302
|
a({ type: String })
|
|
4299
4303
|
], he.prototype, "library", 2);
|
|
4300
4304
|
he = Xe([
|
|
4301
|
-
_(
|
|
4305
|
+
_(tn)
|
|
4302
4306
|
], he);
|
|
4303
|
-
const
|
|
4307
|
+
const ts = P`
|
|
4304
4308
|
.custom-scroll {
|
|
4305
4309
|
overflow: auto !important;
|
|
4306
4310
|
overflow-y: overlay !important;
|
|
@@ -4322,17 +4326,17 @@ const Je = P`
|
|
|
4322
4326
|
}
|
|
4323
4327
|
}
|
|
4324
4328
|
`;
|
|
4325
|
-
var
|
|
4326
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
4329
|
+
var en = Object.defineProperty, sn = Object.getOwnPropertyDescriptor, Et = (r, t, s, i) => {
|
|
4330
|
+
for (var e = i > 1 ? void 0 : i ? sn(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
4327
4331
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
4328
|
-
return i && e &&
|
|
4332
|
+
return i && e && en(t, s, e), e;
|
|
4329
4333
|
};
|
|
4330
|
-
const
|
|
4334
|
+
const rn = {
|
|
4331
4335
|
warning: "warning-circled-outline",
|
|
4332
4336
|
success: "check-circled-outline",
|
|
4333
4337
|
error: "warning-circled-outline",
|
|
4334
4338
|
info: "info-empty"
|
|
4335
|
-
},
|
|
4339
|
+
}, on = "sonic-toast-item";
|
|
4336
4340
|
let yt = class extends y {
|
|
4337
4341
|
constructor() {
|
|
4338
4342
|
super(...arguments), this.title = "", this.id = "", this.text = "", this.status = "", this.ghost = !1, this.preserve = !1, this.dismissForever = !1, this.maxHeight = "10rem", this.visible = !0;
|
|
@@ -4350,10 +4354,10 @@ let yt = class extends y {
|
|
|
4350
4354
|
<sonic-icon name="cancel" size="lg"></sonic-icon>
|
|
4351
4355
|
</button>
|
|
4352
4356
|
<div class="sonic-toast-content custom-scroll" style="max-height: ${this.maxHeight} ;">
|
|
4353
|
-
${this.status && g`<sonic-icon name=${
|
|
4357
|
+
${this.status && g`<sonic-icon name=${rn[this.status]} class="sonic-toast-icon" size="2xl"></sonic-icon>`}
|
|
4354
4358
|
|
|
4355
4359
|
<div class="sonic-toast-text">
|
|
4356
|
-
${this.title ? g`<div class="sonic-toast-title">${this.title}</div>` : ""} ${this.text ?
|
|
4360
|
+
${this.title ? g`<div class="sonic-toast-title">${this.title}</div>` : ""} ${this.text ? z(this.text) : ""}
|
|
4357
4361
|
<slot></slot>
|
|
4358
4362
|
</div>
|
|
4359
4363
|
|
|
@@ -4378,7 +4382,7 @@ let yt = class extends y {
|
|
|
4378
4382
|
}
|
|
4379
4383
|
};
|
|
4380
4384
|
yt.styles = [
|
|
4381
|
-
|
|
4385
|
+
ts,
|
|
4382
4386
|
P`
|
|
4383
4387
|
* {
|
|
4384
4388
|
box-sizing: border-box;
|
|
@@ -4586,9 +4590,9 @@ Et([
|
|
|
4586
4590
|
M()
|
|
4587
4591
|
], yt.prototype, "visible", 2);
|
|
4588
4592
|
yt = Et([
|
|
4589
|
-
_(
|
|
4593
|
+
_(on)
|
|
4590
4594
|
], yt);
|
|
4591
|
-
const
|
|
4595
|
+
const nn = P`
|
|
4592
4596
|
:host {
|
|
4593
4597
|
/* polices*/
|
|
4594
4598
|
--sc-font-family-base: "Inter var", "Inter", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
|
|
@@ -4651,7 +4655,7 @@ const on = P`
|
|
|
4651
4655
|
/*Body*/
|
|
4652
4656
|
--sc-body-bg: var(--sc-base);
|
|
4653
4657
|
}
|
|
4654
|
-
`,
|
|
4658
|
+
`, an = P`
|
|
4655
4659
|
:host {
|
|
4656
4660
|
/*Boutons*/
|
|
4657
4661
|
--sc-primary: var(--sc-base-800);
|
|
@@ -4684,7 +4688,7 @@ const on = P`
|
|
|
4684
4688
|
--sc-input-bg: var(--sc-base-100);
|
|
4685
4689
|
--sc-input-color: var(--sc-base-content);
|
|
4686
4690
|
}
|
|
4687
|
-
`,
|
|
4691
|
+
`, Zi = P`
|
|
4688
4692
|
--sc-primary: var(--sc-dark-primary, var(--sc-base-700));
|
|
4689
4693
|
--sc-info: var(--sc-dark-info, #3abff8);
|
|
4690
4694
|
--sc-danger: var(--sc-dark-danger, #f87272);
|
|
@@ -4709,23 +4713,23 @@ const on = P`
|
|
|
4709
4713
|
--sc-base-800: var(--sc-dark-base-800, #d9dce0);
|
|
4710
4714
|
--sc-base-900: var(--sc-dark-base-900, #e5e7eb);
|
|
4711
4715
|
--sc-base-content: var(--sc-dark-base-content, #e5e7eb);
|
|
4712
|
-
`,
|
|
4716
|
+
`, ln = P`
|
|
4713
4717
|
:host([theme="dark"]) {
|
|
4714
|
-
${
|
|
4718
|
+
${Zi}
|
|
4715
4719
|
}
|
|
4716
4720
|
|
|
4717
4721
|
@media (prefers-color-scheme: dark) {
|
|
4718
4722
|
:host([theme="auto"]) {
|
|
4719
|
-
${
|
|
4723
|
+
${Zi}
|
|
4720
4724
|
}
|
|
4721
4725
|
}
|
|
4722
4726
|
`;
|
|
4723
|
-
var
|
|
4724
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
4727
|
+
var cn = Object.defineProperty, hn = Object.getOwnPropertyDescriptor, es = (r, t, s, i) => {
|
|
4728
|
+
for (var e = i > 1 ? void 0 : i ? hn(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
4725
4729
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
4726
|
-
return i && e &&
|
|
4730
|
+
return i && e && cn(t, s, e), e;
|
|
4727
4731
|
};
|
|
4728
|
-
const
|
|
4732
|
+
const dn = "sonic-theme";
|
|
4729
4733
|
let ft = class extends y {
|
|
4730
4734
|
constructor() {
|
|
4731
4735
|
super(), this.theme = "light", this.background = !1, this.color = !1, this.font = !1, ft.instance = this;
|
|
@@ -4750,7 +4754,7 @@ let ft = class extends y {
|
|
|
4750
4754
|
variables: this.getCssVariables(),
|
|
4751
4755
|
fonts: s
|
|
4752
4756
|
};
|
|
4753
|
-
(e =
|
|
4757
|
+
(e = J.get("sonic-theme")) == null || e.set(i), document.querySelectorAll("iframe").forEach(
|
|
4754
4758
|
(o) => {
|
|
4755
4759
|
var n;
|
|
4756
4760
|
return (n = o.contentWindow) == null ? void 0 : n.postMessage(
|
|
@@ -4768,7 +4772,10 @@ let ft = class extends y {
|
|
|
4768
4772
|
!t.type || t.type != "GetSonicTheme" || this.postCSSVars();
|
|
4769
4773
|
}
|
|
4770
4774
|
getCssVariables() {
|
|
4771
|
-
const r = [], t = [
|
|
4775
|
+
const r = [], t = [
|
|
4776
|
+
...ft.styles.map((e) => e.styleSheet),
|
|
4777
|
+
...Array.from(document.styleSheets)
|
|
4778
|
+
];
|
|
4772
4779
|
for (const e of t)
|
|
4773
4780
|
try {
|
|
4774
4781
|
if (!e)
|
|
@@ -4792,9 +4799,9 @@ let ft = class extends y {
|
|
|
4792
4799
|
}
|
|
4793
4800
|
};
|
|
4794
4801
|
ft.styles = [
|
|
4795
|
-
nn,
|
|
4796
4802
|
an,
|
|
4797
|
-
|
|
4803
|
+
ln,
|
|
4804
|
+
nn,
|
|
4798
4805
|
P`
|
|
4799
4806
|
:host([color]) {
|
|
4800
4807
|
color: var(--sc-base-content);
|
|
@@ -4807,27 +4814,27 @@ ft.styles = [
|
|
|
4807
4814
|
}
|
|
4808
4815
|
`
|
|
4809
4816
|
];
|
|
4810
|
-
|
|
4817
|
+
es([
|
|
4811
4818
|
a({ type: String, reflect: !0 })
|
|
4812
4819
|
], ft.prototype, "theme", 2);
|
|
4813
|
-
|
|
4820
|
+
es([
|
|
4814
4821
|
a({ type: Boolean, reflect: !0 })
|
|
4815
4822
|
], ft.prototype, "background", 2);
|
|
4816
|
-
|
|
4823
|
+
es([
|
|
4817
4824
|
a({ type: Boolean, reflect: !0 })
|
|
4818
4825
|
], ft.prototype, "color", 2);
|
|
4819
|
-
|
|
4826
|
+
es([
|
|
4820
4827
|
a({ type: Boolean, reflect: !0 })
|
|
4821
4828
|
], ft.prototype, "font", 2);
|
|
4822
|
-
ft =
|
|
4823
|
-
_(
|
|
4829
|
+
ft = es([
|
|
4830
|
+
_(dn)
|
|
4824
4831
|
], ft);
|
|
4825
|
-
var
|
|
4826
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
4832
|
+
var pn = Object.defineProperty, un = Object.getOwnPropertyDescriptor, yr = (r, t, s, i) => {
|
|
4833
|
+
for (var e = i > 1 ? void 0 : i ? un(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
4827
4834
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
4828
|
-
return i && e &&
|
|
4835
|
+
return i && e && pn(t, s, e), e;
|
|
4829
4836
|
};
|
|
4830
|
-
const
|
|
4837
|
+
const fn = "sonic-toast";
|
|
4831
4838
|
let E = class extends y {
|
|
4832
4839
|
constructor() {
|
|
4833
4840
|
super(...arguments), this.toasts = [];
|
|
@@ -4854,7 +4861,7 @@ let E = class extends y {
|
|
|
4854
4861
|
maxWidth: "64ch",
|
|
4855
4862
|
flexDirection: "column-reverse"
|
|
4856
4863
|
}), E.handleExistingToastDelegation(), this.toasts ? g`<div aria-live="polite" style=${dt(s)}>
|
|
4857
|
-
${
|
|
4864
|
+
${Ss(
|
|
4858
4865
|
this.toasts,
|
|
4859
4866
|
(i) => i.id,
|
|
4860
4867
|
(i) => g`
|
|
@@ -4867,7 +4874,7 @@ let E = class extends y {
|
|
|
4867
4874
|
?preserve=${i.preserve}
|
|
4868
4875
|
id=${x(i.id)}
|
|
4869
4876
|
@hide=${() => this.removeItem(i)}
|
|
4870
|
-
${
|
|
4877
|
+
${cs({
|
|
4871
4878
|
keyframeOptions: {
|
|
4872
4879
|
duration: 250,
|
|
4873
4880
|
easing: "cubic-bezier(0.250, 0.250, 0.420, 1.225)"
|
|
@@ -4891,7 +4898,7 @@ let E = class extends y {
|
|
|
4891
4898
|
})}
|
|
4892
4899
|
>
|
|
4893
4900
|
<!-- Le texte est passé dans le slot et non pas en propriété pour contrer des problèmatiques de shadow-dom et d'appel exterieur (exemple: fancybox) -->
|
|
4894
|
-
${i.text ?
|
|
4901
|
+
${i.text ? z(i.text) : ""}
|
|
4895
4902
|
</sonic-toast-item>
|
|
4896
4903
|
`
|
|
4897
4904
|
)}
|
|
@@ -4934,7 +4941,7 @@ let E = class extends y {
|
|
|
4934
4941
|
for (const c of s.toasts) {
|
|
4935
4942
|
const h = { ...c };
|
|
4936
4943
|
if (l.id = h.id = 0, /*!currentToast.preserve && */
|
|
4937
|
-
|
|
4944
|
+
X.shallowEqual(l, h))
|
|
4938
4945
|
return null;
|
|
4939
4946
|
}
|
|
4940
4947
|
}
|
|
@@ -4962,18 +4969,18 @@ let E = class extends y {
|
|
|
4962
4969
|
}
|
|
4963
4970
|
// Remove Toast
|
|
4964
4971
|
removeItem(t) {
|
|
4965
|
-
t && (this.toasts = this.toasts.filter((s) => (s = { ...s }, delete s.id, !
|
|
4972
|
+
t && (this.toasts = this.toasts.filter((s) => (s = { ...s }, delete s.id, !X.shallowEqual(s, t, !1))));
|
|
4966
4973
|
}
|
|
4967
4974
|
};
|
|
4968
4975
|
E.delegateToasts = !1;
|
|
4969
|
-
|
|
4976
|
+
yr([
|
|
4970
4977
|
a({ type: Array })
|
|
4971
4978
|
], E.prototype, "toasts", 2);
|
|
4972
|
-
E =
|
|
4973
|
-
_(
|
|
4979
|
+
E = yr([
|
|
4980
|
+
_(fn)
|
|
4974
4981
|
], E);
|
|
4975
|
-
typeof window < "u" &&
|
|
4976
|
-
function
|
|
4982
|
+
typeof window < "u" && (window.SonicToast = window.SonicToast || E);
|
|
4983
|
+
function gn() {
|
|
4977
4984
|
var s;
|
|
4978
4985
|
const r = (i) => {
|
|
4979
4986
|
i.data.type == "querySonicToastAvailability" && i.source.postMessage({ type: "sonicToastAvailable" }, "*"), i.data.type == "sonicToastAvailable" && (E.delegateToasts = !0, E.handleExistingToastDelegation()), i.data.type == "addToasts" && (E.getInstance().toasts = [
|
|
@@ -4985,16 +4992,16 @@ function fn() {
|
|
|
4985
4992
|
for (const i of document.querySelectorAll("iframe"))
|
|
4986
4993
|
(s = i.contentWindow) == null || s.postMessage({ type: "sonicToastAvailable" }, "*");
|
|
4987
4994
|
}
|
|
4988
|
-
|
|
4989
|
-
var
|
|
4990
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
4995
|
+
gn();
|
|
4996
|
+
var mn = Object.defineProperty, bn = Object.getOwnPropertyDescriptor, je = (r, t, s, i) => {
|
|
4997
|
+
for (var e = i > 1 ? void 0 : i ? bn(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
4991
4998
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
4992
|
-
return i && e &&
|
|
4999
|
+
return i && e && mn(t, s, e), e;
|
|
4993
5000
|
};
|
|
4994
|
-
const
|
|
4995
|
-
for (const t of
|
|
5001
|
+
const vn = /* @__PURE__ */ new Set(), yn = /* @__PURE__ */ new Set(), wn = (r) => {
|
|
5002
|
+
for (const t of yn)
|
|
4996
5003
|
t(r);
|
|
4997
|
-
},
|
|
5004
|
+
}, pi = (r, t) => {
|
|
4998
5005
|
class s extends r {
|
|
4999
5006
|
constructor(...e) {
|
|
5000
5007
|
super(), this.api = null, this.key = "", this.isFirstLoad = !0, this.isLoading = !1, this.iObserver = null, this.isFetchEnabled = !0, this.fetchedData = null, this._endPoint = "", this.noErrorsRecordings = !1, this.requestId = 0, this.refetchEveryMs = 0, this.dataProvider = "";
|
|
@@ -5018,17 +5025,17 @@ const bn = /* @__PURE__ */ new Set(), vn = /* @__PURE__ */ new Set(), yn = (r) =
|
|
|
5018
5025
|
* Un Toast est affiché si le chargement échoue
|
|
5019
5026
|
*/
|
|
5020
5027
|
async _fetchData() {
|
|
5021
|
-
if (this.requestUpdate(), !this.isFetchEnabled || (this.api = new
|
|
5028
|
+
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 J.getInstance().isLocalStrorageReady, !this.isConnected))
|
|
5022
5029
|
return;
|
|
5023
|
-
const e =
|
|
5024
|
-
this.isLoading = !0,
|
|
5030
|
+
const e = J.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();
|
|
5031
|
+
this.isLoading = !0, X.isObject(this.props) && Object.keys(this.props || {}).length > 0 && this.isFirstLoad && window.requestAnimationFrame(() => {
|
|
5025
5032
|
this.dispatchEvent(new CustomEvent("load", { detail: this })), this.isFirstLoad = !1, this.isLoading = !1;
|
|
5026
5033
|
});
|
|
5027
5034
|
let o = await this.api.get(
|
|
5028
5035
|
this.endPoint || this.dataProvider || "",
|
|
5029
5036
|
e
|
|
5030
5037
|
);
|
|
5031
|
-
if (this.fetchedData = o, this.api.lastResult && !this.api.lastResult.ok && (this.noErrorsRecordings ||
|
|
5038
|
+
if (this.fetchedData = o, this.api.lastResult && !this.api.lastResult.ok && (this.noErrorsRecordings || vn.add(this), wn(this.api.lastResult)), !!this.isConnected) {
|
|
5032
5039
|
if (o)
|
|
5033
5040
|
o._sonic_http_response_ && !o._sonic_http_response_.ok && Object.keys(o).length === 1 && E.add({ text: "Network Error", status: "error" });
|
|
5034
5041
|
else {
|
|
@@ -5040,11 +5047,11 @@ const bn = /* @__PURE__ */ new Set(), vn = /* @__PURE__ */ new Set(), yn = (r) =
|
|
|
5040
5047
|
}
|
|
5041
5048
|
if (this.key) {
|
|
5042
5049
|
const n = o._sonic_http_response_, l = this.key.split(".");
|
|
5043
|
-
o =
|
|
5050
|
+
o = X.traverse(
|
|
5044
5051
|
o,
|
|
5045
5052
|
l,
|
|
5046
5053
|
this.hasAttribute("preserveOtherKeys")
|
|
5047
|
-
), o &&
|
|
5054
|
+
), o && X.isObject(o) && n && (o._sonic_http_response_ = n);
|
|
5048
5055
|
}
|
|
5049
5056
|
this.props = o, this.dispatchEvent(new CustomEvent("load", { detail: this })), this.isFirstLoad = !1, this.isLoading = !1, this.refetchEveryMs && this.isConnected && (this.refetchTimeOutId = setTimeout(
|
|
5050
5057
|
() => this._fetchData(),
|
|
@@ -5103,24 +5110,24 @@ const bn = /* @__PURE__ */ new Set(), vn = /* @__PURE__ */ new Set(), yn = (r) =
|
|
|
5103
5110
|
}
|
|
5104
5111
|
}
|
|
5105
5112
|
}
|
|
5106
|
-
return
|
|
5113
|
+
return je([
|
|
5107
5114
|
a()
|
|
5108
|
-
], s.prototype, "noErrorsRecordings", 2),
|
|
5115
|
+
], s.prototype, "noErrorsRecordings", 2), je([
|
|
5109
5116
|
a()
|
|
5110
|
-
], s.prototype, "props", 1),
|
|
5117
|
+
], s.prototype, "props", 1), je([
|
|
5111
5118
|
a({ type: String })
|
|
5112
|
-
], s.prototype, "endPoint", 1),
|
|
5119
|
+
], s.prototype, "endPoint", 1), je([
|
|
5113
5120
|
a()
|
|
5114
|
-
], s.prototype, "requestId", 2),
|
|
5121
|
+
], s.prototype, "requestId", 2), je([
|
|
5115
5122
|
a({ type: Number })
|
|
5116
5123
|
], s.prototype, "refetchEveryMs", 2), s;
|
|
5117
5124
|
};
|
|
5118
|
-
var
|
|
5119
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
5125
|
+
var _n = Object.defineProperty, xn = Object.getOwnPropertyDescriptor, re = (r, t, s, i) => {
|
|
5126
|
+
for (var e = i > 1 ? void 0 : i ? xn(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
5120
5127
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
5121
|
-
return i && e &&
|
|
5128
|
+
return i && e && _n(t, s, e), e;
|
|
5122
5129
|
};
|
|
5123
|
-
const
|
|
5130
|
+
const Os = (r) => {
|
|
5124
5131
|
class t extends r {
|
|
5125
5132
|
constructor(...i) {
|
|
5126
5133
|
super(), this.forceAutoFill = !1, this._type = "text", this.status = "default";
|
|
@@ -5167,22 +5174,22 @@ const Ss = (r) => {
|
|
|
5167
5174
|
], t.prototype, "tabindex", 2), re([
|
|
5168
5175
|
a({ type: String })
|
|
5169
5176
|
], t.prototype, "autocomplete", 2), t;
|
|
5170
|
-
},
|
|
5177
|
+
}, wr = pi, Pn = di, _r = Oe, xr = Os, Qt = Y, ui = Qe;
|
|
5171
5178
|
window["concorde-mixins"] = window["concorde-mixins"] || {};
|
|
5172
5179
|
window["concorde-mixins"] = {
|
|
5173
|
-
Fetcher:
|
|
5174
|
-
FormCheckable:
|
|
5175
|
-
FormElement:
|
|
5176
|
-
FormInput:
|
|
5180
|
+
Fetcher: wr,
|
|
5181
|
+
FormCheckable: Pn,
|
|
5182
|
+
FormElement: _r,
|
|
5183
|
+
FormInput: xr,
|
|
5177
5184
|
Subscriber: Qt,
|
|
5178
|
-
TemplatesContainer:
|
|
5185
|
+
TemplatesContainer: ui
|
|
5179
5186
|
};
|
|
5180
5187
|
/**
|
|
5181
5188
|
* @license
|
|
5182
5189
|
* Copyright 2020 Google LLC
|
|
5183
5190
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5184
5191
|
*/
|
|
5185
|
-
const Ot = be(class extends
|
|
5192
|
+
const Ot = be(class extends Se {
|
|
5186
5193
|
constructor(r) {
|
|
5187
5194
|
if (super(r), r.type !== me.CHILD)
|
|
5188
5195
|
throw Error("templateContent can only be used in child bindings");
|
|
@@ -5191,13 +5198,13 @@ const Ot = be(class extends Ae {
|
|
|
5191
5198
|
return this.vt === r ? gt : (this.vt = r, document.importNode(r.content, !0));
|
|
5192
5199
|
}
|
|
5193
5200
|
});
|
|
5194
|
-
var
|
|
5195
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
5201
|
+
var $n = Object.defineProperty, Cn = Object.getOwnPropertyDescriptor, Pr = (r, t, s, i) => {
|
|
5202
|
+
for (var e = i > 1 ? void 0 : i ? Cn(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
5196
5203
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
5197
|
-
return i && e &&
|
|
5204
|
+
return i && e && $n(t, s, e), e;
|
|
5198
5205
|
};
|
|
5199
|
-
const
|
|
5200
|
-
let
|
|
5206
|
+
const An = "sonic-fetch";
|
|
5207
|
+
let ms = class extends pi(Y(ui(y))) {
|
|
5201
5208
|
renderLoader() {
|
|
5202
5209
|
if (!(this.isLoading && this.loader !== void 0))
|
|
5203
5210
|
return $;
|
|
@@ -5215,26 +5222,26 @@ let gs = class extends di(Y(pi(y))) {
|
|
|
5215
5222
|
`;
|
|
5216
5223
|
}
|
|
5217
5224
|
};
|
|
5218
|
-
|
|
5225
|
+
ms.styles = [
|
|
5219
5226
|
P`
|
|
5220
5227
|
:host {
|
|
5221
5228
|
display: contents;
|
|
5222
5229
|
}
|
|
5223
5230
|
`
|
|
5224
5231
|
];
|
|
5225
|
-
|
|
5232
|
+
Pr([
|
|
5226
5233
|
a()
|
|
5227
|
-
],
|
|
5228
|
-
|
|
5229
|
-
_(
|
|
5230
|
-
],
|
|
5231
|
-
var
|
|
5232
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
5234
|
+
], ms.prototype, "loader", 2);
|
|
5235
|
+
ms = Pr([
|
|
5236
|
+
_(An)
|
|
5237
|
+
], ms);
|
|
5238
|
+
var Sn = Object.defineProperty, On = Object.getOwnPropertyDescriptor, $r = (r, t, s, i) => {
|
|
5239
|
+
for (var e = i > 1 ? void 0 : i ? On(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
5233
5240
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
5234
|
-
return i && e &&
|
|
5241
|
+
return i && e && Sn(t, s, e), e;
|
|
5235
5242
|
};
|
|
5236
|
-
const
|
|
5237
|
-
let
|
|
5243
|
+
const Dn = "sonic-if";
|
|
5244
|
+
let bs = class extends y {
|
|
5238
5245
|
constructor() {
|
|
5239
5246
|
super(...arguments), this.condition = !1;
|
|
5240
5247
|
}
|
|
@@ -5242,18 +5249,18 @@ let ms = class extends y {
|
|
|
5242
5249
|
return this.condition ? g` <slot></slot> ` : $;
|
|
5243
5250
|
}
|
|
5244
5251
|
};
|
|
5245
|
-
|
|
5252
|
+
bs.styles = P`
|
|
5246
5253
|
:host {
|
|
5247
5254
|
display: contents;
|
|
5248
5255
|
}
|
|
5249
5256
|
`;
|
|
5250
|
-
|
|
5257
|
+
$r([
|
|
5251
5258
|
a({ type: Boolean })
|
|
5252
|
-
],
|
|
5253
|
-
|
|
5254
|
-
_(
|
|
5255
|
-
],
|
|
5256
|
-
const
|
|
5259
|
+
], bs.prototype, "condition", 2);
|
|
5260
|
+
bs = $r([
|
|
5261
|
+
_(Dn)
|
|
5262
|
+
], bs);
|
|
5263
|
+
const kn = P`
|
|
5257
5264
|
:host([align="left"]) .sonic-loader--inline {
|
|
5258
5265
|
margin-left: 0;
|
|
5259
5266
|
}
|
|
@@ -5320,7 +5327,7 @@ const Dn = P`
|
|
|
5320
5327
|
transform: translate(24px, 0);
|
|
5321
5328
|
}
|
|
5322
5329
|
}
|
|
5323
|
-
`,
|
|
5330
|
+
`, Ln = P`
|
|
5324
5331
|
|
|
5325
5332
|
@keyframes sonic-loader--fixed {
|
|
5326
5333
|
0% {
|
|
@@ -5376,12 +5383,12 @@ const Dn = P`
|
|
|
5376
5383
|
}
|
|
5377
5384
|
|
|
5378
5385
|
`;
|
|
5379
|
-
var
|
|
5380
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
5386
|
+
var En = Object.defineProperty, Nn = Object.getOwnPropertyDescriptor, fi = (r, t, s, i) => {
|
|
5387
|
+
for (var e = i > 1 ? void 0 : i ? Nn(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
5381
5388
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
5382
|
-
return i && e &&
|
|
5389
|
+
return i && e && En(t, s, e), e;
|
|
5383
5390
|
};
|
|
5384
|
-
const
|
|
5391
|
+
const Tn = "sonic-loader";
|
|
5385
5392
|
let et = class extends y {
|
|
5386
5393
|
constructor() {
|
|
5387
5394
|
super(...arguments), this.mode = "fixed", this.noDelay = !1;
|
|
@@ -5404,8 +5411,8 @@ let et = class extends y {
|
|
|
5404
5411
|
}
|
|
5405
5412
|
};
|
|
5406
5413
|
et.styles = [
|
|
5407
|
-
Dn,
|
|
5408
5414
|
kn,
|
|
5415
|
+
Ln,
|
|
5409
5416
|
P`
|
|
5410
5417
|
:host {
|
|
5411
5418
|
--sc-loader-bg: var(--sc-primary, currentColor);
|
|
@@ -5433,22 +5440,22 @@ et.styles = [
|
|
|
5433
5440
|
`
|
|
5434
5441
|
];
|
|
5435
5442
|
et.callCounter = 0;
|
|
5436
|
-
|
|
5443
|
+
fi([
|
|
5437
5444
|
a({ type: String })
|
|
5438
5445
|
], et.prototype, "mode", 2);
|
|
5439
|
-
|
|
5446
|
+
fi([
|
|
5440
5447
|
a({ type: Boolean })
|
|
5441
5448
|
], et.prototype, "noDelay", 2);
|
|
5442
|
-
et =
|
|
5443
|
-
_(
|
|
5449
|
+
et = fi([
|
|
5450
|
+
_(Tn)
|
|
5444
5451
|
], et);
|
|
5445
|
-
var
|
|
5446
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
5452
|
+
var jn = Object.defineProperty, Mn = Object.getOwnPropertyDescriptor, In = (r, t, s, i) => {
|
|
5453
|
+
for (var e = i > 1 ? void 0 : i ? Mn(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
5447
5454
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
5448
|
-
return i && e &&
|
|
5455
|
+
return i && e && jn(t, s, e), e;
|
|
5449
5456
|
};
|
|
5450
|
-
const
|
|
5451
|
-
let
|
|
5457
|
+
const zn = "sonic-subscriber";
|
|
5458
|
+
let Gi = class extends Y(y) {
|
|
5452
5459
|
constructor() {
|
|
5453
5460
|
super(...arguments), this.noAutofill = !0;
|
|
5454
5461
|
}
|
|
@@ -5462,16 +5469,16 @@ let Zi = class extends Y(y) {
|
|
|
5462
5469
|
return g`<slot></slot> `;
|
|
5463
5470
|
}
|
|
5464
5471
|
};
|
|
5465
|
-
|
|
5466
|
-
_(
|
|
5467
|
-
],
|
|
5472
|
+
Gi = In([
|
|
5473
|
+
_(zn)
|
|
5474
|
+
], Gi);
|
|
5468
5475
|
var Rn = Object.defineProperty, Fn = Object.getOwnPropertyDescriptor, ve = (r, t, s, i) => {
|
|
5469
5476
|
for (var e = i > 1 ? void 0 : i ? Fn(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
5470
5477
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
5471
5478
|
return i && e && Rn(t, s, e), e;
|
|
5472
5479
|
};
|
|
5473
|
-
const
|
|
5474
|
-
let qt = class extends
|
|
5480
|
+
const Un = "sonic-list";
|
|
5481
|
+
let qt = class extends pi(Y(Qe(y))) {
|
|
5475
5482
|
constructor() {
|
|
5476
5483
|
super(...arguments), this.templateKey = "template", this.idKey = "id", this.limit = Number.POSITIVE_INFINITY, this.offset = 0;
|
|
5477
5484
|
}
|
|
@@ -5513,14 +5520,14 @@ let qt = class extends di(Y(Ye(y))) {
|
|
|
5513
5520
|
if (r == null)
|
|
5514
5521
|
return null;
|
|
5515
5522
|
const t = r._sonic_http_response_, s = this.hasAttribute("extractValues");
|
|
5516
|
-
return Array.isArray(r) || (s ? r = Object.entries(r).map(([i, e]) => ({ key: i, value: e })) :
|
|
5523
|
+
return Array.isArray(r) || (s ? r = Object.entries(r).map(([i, e]) => ({ key: i, value: e })) : X.isObject(r) && Object.keys(r).length > 0 && (!t || t.ok) ? r = [r] : r = []), r = r.filter((i) => i != null), t && (r._sonic_http_response_ = t), r;
|
|
5517
5524
|
}
|
|
5518
5525
|
render() {
|
|
5519
5526
|
if (this.isLoading && !Array.isArray(this.props))
|
|
5520
5527
|
return this.renderLoadingState();
|
|
5521
5528
|
if (typeof this.props == "string")
|
|
5522
5529
|
return this.renderNoResultState();
|
|
5523
|
-
if (!
|
|
5530
|
+
if (!X.isObject(this.props))
|
|
5524
5531
|
return g`<div></div>`;
|
|
5525
5532
|
const i = this.formatProps();
|
|
5526
5533
|
if (((i == null ? void 0 : i.length) || 0) == 0 && this.templateParts["no-item"])
|
|
@@ -5585,26 +5592,26 @@ ve([
|
|
|
5585
5592
|
a()
|
|
5586
5593
|
], qt.prototype, "offset", 2);
|
|
5587
5594
|
qt = ve([
|
|
5588
|
-
_(
|
|
5595
|
+
_(Un)
|
|
5589
5596
|
], qt);
|
|
5590
5597
|
/**
|
|
5591
5598
|
* @license
|
|
5592
5599
|
* Copyright 2021 Google LLC
|
|
5593
5600
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5594
5601
|
*/
|
|
5595
|
-
function*
|
|
5602
|
+
function* Vn(r, t) {
|
|
5596
5603
|
if (r !== void 0) {
|
|
5597
5604
|
let s = 0;
|
|
5598
5605
|
for (const i of r)
|
|
5599
5606
|
yield t(i, s++);
|
|
5600
5607
|
}
|
|
5601
5608
|
}
|
|
5602
|
-
var
|
|
5603
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
5609
|
+
var Bn = Object.defineProperty, Hn = Object.getOwnPropertyDescriptor, bt = (r, t, s, i) => {
|
|
5610
|
+
for (var e = i > 1 ? void 0 : i ? Hn(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
5604
5611
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
5605
|
-
return i && e &&
|
|
5612
|
+
return i && e && Bn(t, s, e), e;
|
|
5606
5613
|
};
|
|
5607
|
-
const
|
|
5614
|
+
const qn = "sonic-queue";
|
|
5608
5615
|
let ot = class extends Y(y) {
|
|
5609
5616
|
constructor() {
|
|
5610
5617
|
super(...arguments), this.templates = null, this.lastRequestTime = 0, this.key = "", this.itemPropertyMap = null, this.cache = "default", this.targetRequestDuration = 500, this.limit = 5, this.lazyBoundsRatio = 1, this.offset = 0, this.resultCount = 0, this.noLazyload = !1, this.filteredFields = "", this.instanceId = 0, this.localStorage = "disabled", this.filterPublisher = null, this.filterTimeoutMs = 400, this.searchHash = "", this.requestId = 0, this.isFirstRequest = !0, this.updateFilteredContent = () => {
|
|
@@ -5640,7 +5647,7 @@ let ot = class extends Y(y) {
|
|
|
5640
5647
|
async connectedCallback() {
|
|
5641
5648
|
this.instanceId = ot.instanceCounter++, this.localStorage = this.getAttribute("localStorage") || this.localStorage, this.filterTimeoutMs = parseInt(
|
|
5642
5649
|
this.getAttribute("filterTimeoutMs") || "400"
|
|
5643
|
-
), 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 =
|
|
5650
|
+
), 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 = qe.getAncestorAttributeValue(this.parentElement, "dataProvider") || ""), super.connectedCallback(), this.publisher.set({}), this.key = this.getAttribute("key"), await N.getInstance().isLocalStrorageReady, this.templates || (this.templates = Array.from(
|
|
5644
5651
|
this.querySelectorAll("template")
|
|
5645
5652
|
)), this.lastRequestTime = (/* @__PURE__ */ new Date()).getTime(), this.configFilter();
|
|
5646
5653
|
}
|
|
@@ -5702,7 +5709,7 @@ let ot = class extends Y(y) {
|
|
|
5702
5709
|
return $;
|
|
5703
5710
|
let r = !this.noLazyload;
|
|
5704
5711
|
return this.props.length == 1 && (r = !1), g`
|
|
5705
|
-
${
|
|
5712
|
+
${Vn(this.props, (t, s) => {
|
|
5706
5713
|
var e;
|
|
5707
5714
|
const i = s == 0 ? this.templates : (e = this.templates) == null ? void 0 : e.filter(
|
|
5708
5715
|
(o) => o.getAttribute("data-value") != "no-item"
|
|
@@ -5771,14 +5778,14 @@ bt([
|
|
|
5771
5778
|
a({ type: String })
|
|
5772
5779
|
], ot.prototype, "idKey", 2);
|
|
5773
5780
|
ot = bt([
|
|
5774
|
-
_(
|
|
5781
|
+
_(qn)
|
|
5775
5782
|
], ot);
|
|
5776
|
-
var
|
|
5777
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
5783
|
+
var Wn = Object.defineProperty, Kn = Object.getOwnPropertyDescriptor, De = (r, t, s, i) => {
|
|
5784
|
+
for (var e = i > 1 ? void 0 : i ? Kn(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
5778
5785
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
5779
|
-
return i && e &&
|
|
5786
|
+
return i && e && Wn(t, s, e), e;
|
|
5780
5787
|
};
|
|
5781
|
-
const
|
|
5788
|
+
const Zn = "sonic-submit";
|
|
5782
5789
|
let Wt = class extends Y(y) {
|
|
5783
5790
|
constructor() {
|
|
5784
5791
|
super(...arguments), this.submitResultKey = null, this.disabled = !1, this.endPoint = null, this.name = "", this.value = "", this.api = null;
|
|
@@ -5786,10 +5793,10 @@ let Wt = class extends Y(y) {
|
|
|
5786
5793
|
connectedCallback() {
|
|
5787
5794
|
this.hasAttribute("onClick") && this.addEventListener("click", () => this.submit()), this.hasAttribute("onEnterKey") && this.addEventListener("keydown", (r) => {
|
|
5788
5795
|
r.key === "Enter" && this.submit();
|
|
5789
|
-
}), super.connectedCallback(), this.api = new
|
|
5796
|
+
}), super.connectedCallback(), this.api = new Ce(this.getApiConfiguration());
|
|
5790
5797
|
}
|
|
5791
5798
|
submitNativeForm() {
|
|
5792
|
-
const r =
|
|
5799
|
+
const r = qe.getClosestForm(this);
|
|
5793
5800
|
if (!r)
|
|
5794
5801
|
return;
|
|
5795
5802
|
const t = this.getAncestorAttributeValue("formDataProvider"), s = N.get(t).get();
|
|
@@ -5847,8 +5854,8 @@ let Wt = class extends Y(y) {
|
|
|
5847
5854
|
case "get":
|
|
5848
5855
|
const W = new URLSearchParams();
|
|
5849
5856
|
if (e)
|
|
5850
|
-
for (const
|
|
5851
|
-
W.append(
|
|
5857
|
+
for (const Ci in e)
|
|
5858
|
+
W.append(Ci, e[Ci]);
|
|
5852
5859
|
const ee = "?" + W.toString();
|
|
5853
5860
|
c = await ((A = this.api) == null ? void 0 : A.get(d + ee, l));
|
|
5854
5861
|
break;
|
|
@@ -5864,7 +5871,7 @@ let Wt = class extends Y(y) {
|
|
|
5864
5871
|
(W) => N.get(W).set({})
|
|
5865
5872
|
);
|
|
5866
5873
|
const C = this.hasAttribute("usernameKey") ? this.getAttribute("usernameKey") : "username", O = this.hasAttribute("passwordKey") ? this.getAttribute("passwordKey") : "password";
|
|
5867
|
-
(H = (j = this.api) == null ? void 0 : j.lastResult) != null && H.ok && e[C] && e[O] && this.saveCredentials(e[C], e[O]), this.submitResultKey && (c =
|
|
5874
|
+
(H = (j = this.api) == null ? void 0 : j.lastResult) != null && H.ok && e[C] && e[O] && this.saveCredentials(e[C], e[O]), this.submitResultKey && (c = X.traverse(
|
|
5868
5875
|
c,
|
|
5869
5876
|
this.submitResultKey.split("."),
|
|
5870
5877
|
!0
|
|
@@ -5904,31 +5911,31 @@ Wt.styles = P`
|
|
|
5904
5911
|
user-select: none;
|
|
5905
5912
|
}
|
|
5906
5913
|
`;
|
|
5907
|
-
|
|
5914
|
+
De([
|
|
5908
5915
|
a({ type: String })
|
|
5909
5916
|
], Wt.prototype, "submitResultKey", 2);
|
|
5910
|
-
|
|
5917
|
+
De([
|
|
5911
5918
|
a({ type: Boolean })
|
|
5912
5919
|
], Wt.prototype, "disabled", 2);
|
|
5913
|
-
|
|
5920
|
+
De([
|
|
5914
5921
|
a({ type: String })
|
|
5915
5922
|
], Wt.prototype, "endPoint", 2);
|
|
5916
|
-
|
|
5923
|
+
De([
|
|
5917
5924
|
a()
|
|
5918
5925
|
], Wt.prototype, "name", 2);
|
|
5919
|
-
|
|
5926
|
+
De([
|
|
5920
5927
|
a()
|
|
5921
5928
|
], Wt.prototype, "value", 2);
|
|
5922
|
-
Wt =
|
|
5923
|
-
_(
|
|
5929
|
+
Wt = De([
|
|
5930
|
+
_(Zn)
|
|
5924
5931
|
], Wt);
|
|
5925
|
-
var
|
|
5926
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
5932
|
+
var Gn = Object.defineProperty, Yn = Object.getOwnPropertyDescriptor, gi = (r, t, s, i) => {
|
|
5933
|
+
for (var e = i > 1 ? void 0 : i ? Yn(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
5927
5934
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
5928
|
-
return i && e &&
|
|
5935
|
+
return i && e && Gn(t, s, e), e;
|
|
5929
5936
|
};
|
|
5930
|
-
const
|
|
5931
|
-
let
|
|
5937
|
+
const Qn = "sonic-router";
|
|
5938
|
+
let vs = class extends Y(Qe(y)) {
|
|
5932
5939
|
constructor() {
|
|
5933
5940
|
super(...arguments), this.templateValueAttribute = "data-route", this._location = document.location.href.replace(
|
|
5934
5941
|
document.location.origin,
|
|
@@ -5967,7 +5974,7 @@ let bs = class extends Y(Ye(y)) {
|
|
|
5967
5974
|
);
|
|
5968
5975
|
t && r.push(t);
|
|
5969
5976
|
}
|
|
5970
|
-
return g`${
|
|
5977
|
+
return g`${Ss(
|
|
5971
5978
|
r,
|
|
5972
5979
|
(t, s) => s + (/* @__PURE__ */ new Date()).getTime(),
|
|
5973
5980
|
(t) => {
|
|
@@ -5998,22 +6005,22 @@ let bs = class extends Y(Ye(y)) {
|
|
|
5998
6005
|
)}`;
|
|
5999
6006
|
}
|
|
6000
6007
|
};
|
|
6001
|
-
|
|
6008
|
+
gi([
|
|
6002
6009
|
a({ type: String })
|
|
6003
|
-
],
|
|
6004
|
-
|
|
6010
|
+
], vs.prototype, "fallBackRoute", 2);
|
|
6011
|
+
gi([
|
|
6005
6012
|
a()
|
|
6006
|
-
],
|
|
6007
|
-
|
|
6008
|
-
_(
|
|
6009
|
-
],
|
|
6010
|
-
var
|
|
6013
|
+
], vs.prototype, "location", 1);
|
|
6014
|
+
vs = gi([
|
|
6015
|
+
_(Qn)
|
|
6016
|
+
], vs);
|
|
6017
|
+
var Jn = Object.defineProperty, Xn = Object.getOwnPropertyDescriptor, ta = (r, t, s, i) => {
|
|
6011
6018
|
for (var e = i > 1 ? void 0 : i ? Xn(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
6012
6019
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
6013
|
-
return i && e &&
|
|
6020
|
+
return i && e && Jn(t, s, e), e;
|
|
6014
6021
|
};
|
|
6015
|
-
const
|
|
6016
|
-
let
|
|
6022
|
+
const ea = "sonic-redirect";
|
|
6023
|
+
let Yi = class extends Y(y) {
|
|
6017
6024
|
connectedCallback() {
|
|
6018
6025
|
this.noShadowDom = "", this.style.display = "none", super.connectedCallback(), this.udpateCallBack = () => this.update(), this.publisher && this.publisher.onInternalMutation(this.udpateCallBack);
|
|
6019
6026
|
}
|
|
@@ -6027,20 +6034,20 @@ let Gi = class extends Y(y) {
|
|
|
6027
6034
|
}
|
|
6028
6035
|
if (!this.props)
|
|
6029
6036
|
return;
|
|
6030
|
-
const r = this.getAttribute("onData").split("."), t =
|
|
6031
|
-
t && !(
|
|
6037
|
+
const r = this.getAttribute("onData").split("."), t = X.traverse(this.props, r);
|
|
6038
|
+
t && !(X.isObject(t) && t) && st.changeFromComponent(this);
|
|
6032
6039
|
}
|
|
6033
6040
|
};
|
|
6034
|
-
|
|
6035
|
-
_(
|
|
6036
|
-
],
|
|
6037
|
-
var
|
|
6038
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
6041
|
+
Yi = ta([
|
|
6042
|
+
_(ea)
|
|
6043
|
+
], Yi);
|
|
6044
|
+
var sa = Object.defineProperty, ia = Object.getOwnPropertyDescriptor, mi = (r, t, s, i) => {
|
|
6045
|
+
for (var e = i > 1 ? void 0 : i ? ia(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
6039
6046
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
6040
|
-
return i && e &&
|
|
6047
|
+
return i && e && sa(t, s, e), e;
|
|
6041
6048
|
};
|
|
6042
|
-
const
|
|
6043
|
-
let
|
|
6049
|
+
const ra = "sonic-states";
|
|
6050
|
+
let ys = class extends Y(Qe(y)) {
|
|
6044
6051
|
constructor() {
|
|
6045
6052
|
super(...arguments), this.state = "", this.inverted = !1, this.statePath = "", this.onAssign = (r) => {
|
|
6046
6053
|
this.state = r, this.requestUpdate();
|
|
@@ -6062,7 +6069,7 @@ let vs = class extends Y(Ye(y)) {
|
|
|
6062
6069
|
render() {
|
|
6063
6070
|
const r = [];
|
|
6064
6071
|
let t = this.state;
|
|
6065
|
-
(!Array.isArray(t) &&
|
|
6072
|
+
(!Array.isArray(t) && X.isObject(t) || t === void 0) && (t = "");
|
|
6066
6073
|
for (const s of this.templatePartsList) {
|
|
6067
6074
|
let i = s.getAttribute(this.templateValueAttribute), e = t;
|
|
6068
6075
|
if (this.inverted && (e = i, i = t), i == "" && (i = this.inverted ? ".*?" : "^$"), new RegExp(i).test(e))
|
|
@@ -6072,7 +6079,7 @@ let vs = class extends Y(Ye(y)) {
|
|
|
6072
6079
|
n.names.length > 0 && n.match(e) && (s.setAttribute("mode", "patternMatching"), r.push(s));
|
|
6073
6080
|
}
|
|
6074
6081
|
}
|
|
6075
|
-
return g`${
|
|
6082
|
+
return g`${Ss(
|
|
6076
6083
|
r,
|
|
6077
6084
|
(s, i) => i + (/* @__PURE__ */ new Date()).getTime(),
|
|
6078
6085
|
(s) => {
|
|
@@ -6103,22 +6110,22 @@ let vs = class extends Y(Ye(y)) {
|
|
|
6103
6110
|
)}`;
|
|
6104
6111
|
}
|
|
6105
6112
|
};
|
|
6106
|
-
|
|
6113
|
+
mi([
|
|
6107
6114
|
a()
|
|
6108
|
-
],
|
|
6109
|
-
|
|
6115
|
+
], ys.prototype, "state", 2);
|
|
6116
|
+
mi([
|
|
6110
6117
|
a({ type: Boolean, reflect: !0 })
|
|
6111
|
-
],
|
|
6112
|
-
|
|
6113
|
-
_(
|
|
6114
|
-
],
|
|
6115
|
-
var
|
|
6116
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
6118
|
+
], ys.prototype, "inverted", 2);
|
|
6119
|
+
ys = mi([
|
|
6120
|
+
_(ra)
|
|
6121
|
+
], ys);
|
|
6122
|
+
var oa = Object.defineProperty, na = Object.getOwnPropertyDescriptor, aa = (r, t, s, i) => {
|
|
6123
|
+
for (var e = i > 1 ? void 0 : i ? na(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
6117
6124
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
6118
|
-
return i && e &&
|
|
6125
|
+
return i && e && oa(t, s, e), e;
|
|
6119
6126
|
};
|
|
6120
|
-
const
|
|
6121
|
-
let
|
|
6127
|
+
const la = "sonic-scope";
|
|
6128
|
+
let Qi = class extends y {
|
|
6122
6129
|
createRenderRoot() {
|
|
6123
6130
|
return this;
|
|
6124
6131
|
}
|
|
@@ -6126,16 +6133,16 @@ let Yi = class extends y {
|
|
|
6126
6133
|
return g`<slot></slot>`;
|
|
6127
6134
|
}
|
|
6128
6135
|
};
|
|
6129
|
-
|
|
6130
|
-
_(
|
|
6131
|
-
],
|
|
6132
|
-
var
|
|
6133
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
6136
|
+
Qi = aa([
|
|
6137
|
+
_(la)
|
|
6138
|
+
], Qi);
|
|
6139
|
+
var ca = Object.defineProperty, ha = Object.getOwnPropertyDescriptor, Cr = (r, t, s, i) => {
|
|
6140
|
+
for (var e = i > 1 ? void 0 : i ? ha(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
6134
6141
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
6135
|
-
return i && e &&
|
|
6142
|
+
return i && e && ca(t, s, e), e;
|
|
6136
6143
|
};
|
|
6137
|
-
const
|
|
6138
|
-
let
|
|
6144
|
+
const da = "sonic-example";
|
|
6145
|
+
let Ws = class extends Y(y) {
|
|
6139
6146
|
constructor() {
|
|
6140
6147
|
super(...arguments), this.text = "Example";
|
|
6141
6148
|
}
|
|
@@ -6143,20 +6150,20 @@ let qs = class extends Y(y) {
|
|
|
6143
6150
|
return g`<div>${this.text}</div>`;
|
|
6144
6151
|
}
|
|
6145
6152
|
};
|
|
6146
|
-
|
|
6153
|
+
Cr([
|
|
6147
6154
|
a()
|
|
6148
|
-
],
|
|
6149
|
-
|
|
6150
|
-
_(
|
|
6151
|
-
],
|
|
6152
|
-
const
|
|
6155
|
+
], Ws.prototype, "text", 2);
|
|
6156
|
+
Ws = Cr([
|
|
6157
|
+
_(da)
|
|
6158
|
+
], Ws);
|
|
6159
|
+
const pa = {
|
|
6153
6160
|
tagName: "sonic-checkbox"
|
|
6154
|
-
},
|
|
6161
|
+
}, ua = {
|
|
6155
6162
|
tagName: "sonic-input",
|
|
6156
6163
|
attributes: {
|
|
6157
6164
|
type: "date"
|
|
6158
6165
|
}
|
|
6159
|
-
},
|
|
6166
|
+
}, fa = {
|
|
6160
6167
|
tagName: "sonic-fieldset",
|
|
6161
6168
|
nodes: [
|
|
6162
6169
|
{
|
|
@@ -6164,41 +6171,41 @@ const da = {
|
|
|
6164
6171
|
}
|
|
6165
6172
|
],
|
|
6166
6173
|
contentElementSelector: "sonic-form-layout"
|
|
6167
|
-
},
|
|
6174
|
+
}, ga = {
|
|
6168
6175
|
tagName: "sonic-input",
|
|
6169
6176
|
attributes: {
|
|
6170
6177
|
variant: "ghost",
|
|
6171
6178
|
type: "file"
|
|
6172
6179
|
}
|
|
6173
|
-
},
|
|
6180
|
+
}, ma = {
|
|
6174
6181
|
tagName: "sonic-input",
|
|
6175
6182
|
attributes: {
|
|
6176
6183
|
type: "password"
|
|
6177
6184
|
}
|
|
6178
|
-
}, ma = {
|
|
6179
|
-
tagName: "sonic-radio"
|
|
6180
6185
|
}, ba = {
|
|
6181
|
-
tagName: "sonic-
|
|
6186
|
+
tagName: "sonic-radio"
|
|
6182
6187
|
}, va = {
|
|
6183
|
-
tagName: "sonic-
|
|
6188
|
+
tagName: "sonic-select"
|
|
6184
6189
|
}, ya = {
|
|
6190
|
+
tagName: "sonic-textarea"
|
|
6191
|
+
}, wa = {
|
|
6185
6192
|
tagName: "sonic-input",
|
|
6186
6193
|
attributes: {
|
|
6187
6194
|
type: "text"
|
|
6188
6195
|
}
|
|
6189
|
-
},
|
|
6196
|
+
}, _a = {
|
|
6190
6197
|
tagName: "sonic-input",
|
|
6191
6198
|
attributes: {
|
|
6192
6199
|
type: "hidden"
|
|
6193
6200
|
}
|
|
6194
|
-
}, _a = {
|
|
6195
|
-
tagName: "sonic-button"
|
|
6196
6201
|
}, xa = {
|
|
6202
|
+
tagName: "sonic-button"
|
|
6203
|
+
}, Pa = {
|
|
6197
6204
|
tagName: "sonic-submit",
|
|
6198
6205
|
attributes: {
|
|
6199
6206
|
onEnterKey: !0
|
|
6200
6207
|
}
|
|
6201
|
-
},
|
|
6208
|
+
}, $a = {
|
|
6202
6209
|
tagName: "sonic-submit",
|
|
6203
6210
|
attributes: {
|
|
6204
6211
|
onClick: !0
|
|
@@ -6221,49 +6228,49 @@ const da = {
|
|
|
6221
6228
|
]
|
|
6222
6229
|
}
|
|
6223
6230
|
]
|
|
6224
|
-
},
|
|
6231
|
+
}, Ca = {
|
|
6225
6232
|
tagName: "sonic-input",
|
|
6226
6233
|
attributes: {
|
|
6227
6234
|
type: "email"
|
|
6228
6235
|
}
|
|
6229
|
-
},
|
|
6236
|
+
}, Aa = {
|
|
6230
6237
|
tagName: "div",
|
|
6231
6238
|
attributes: {
|
|
6232
6239
|
class: "form-item-container"
|
|
6233
6240
|
}
|
|
6234
|
-
}, Aa = {
|
|
6235
|
-
tagName: "sonic-form-layout"
|
|
6236
6241
|
}, Sa = {
|
|
6237
|
-
tagName: "sonic-form-
|
|
6242
|
+
tagName: "sonic-form-layout"
|
|
6238
6243
|
}, Oa = {
|
|
6239
|
-
tagName: "sonic-
|
|
6244
|
+
tagName: "sonic-form-actions"
|
|
6240
6245
|
}, Da = {
|
|
6241
|
-
tagName: "sonic-
|
|
6246
|
+
tagName: "sonic-password-helper"
|
|
6242
6247
|
}, ka = {
|
|
6243
|
-
tagName: "sonic-
|
|
6248
|
+
tagName: "sonic-same-value-helper"
|
|
6244
6249
|
}, La = {
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6250
|
+
tagName: "sonic-divider"
|
|
6251
|
+
}, Ea = {
|
|
6252
|
+
checkbox: pa,
|
|
6253
|
+
date: ua,
|
|
6254
|
+
fieldset: fa,
|
|
6255
|
+
managed_file: ga,
|
|
6256
|
+
password: ma,
|
|
6257
|
+
radio: ba,
|
|
6258
|
+
select: va,
|
|
6259
|
+
textarea: ya,
|
|
6260
|
+
textfield: wa,
|
|
6261
|
+
hidden: _a,
|
|
6262
|
+
button: xa,
|
|
6263
|
+
form: Pa,
|
|
6264
|
+
submit: $a,
|
|
6265
|
+
email: Ca,
|
|
6266
|
+
formItemContainer: Aa,
|
|
6267
|
+
formLayout: Sa,
|
|
6268
|
+
formActions: Oa,
|
|
6269
|
+
passwordHelper: Da,
|
|
6270
|
+
sameValueHelper: ka,
|
|
6271
|
+
divider: La
|
|
6272
|
+
};
|
|
6273
|
+
class Na {
|
|
6267
6274
|
/**
|
|
6268
6275
|
* Tranform un SDUIDescriptor via une SDUITransformDescription
|
|
6269
6276
|
* Attention fonction non pure : la sduiDescriptor est modifiée en place.
|
|
@@ -6418,13 +6425,13 @@ class Ea {
|
|
|
6418
6425
|
}));
|
|
6419
6426
|
}
|
|
6420
6427
|
}
|
|
6421
|
-
var
|
|
6422
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
6428
|
+
var Ta = Object.defineProperty, ja = Object.getOwnPropertyDescriptor, bi = (r, t, s, i) => {
|
|
6429
|
+
for (var e = i > 1 ? void 0 : i ? ja(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
6423
6430
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
6424
|
-
return i && e &&
|
|
6431
|
+
return i && e && Ta(t, s, e), e;
|
|
6425
6432
|
};
|
|
6426
|
-
const
|
|
6427
|
-
let
|
|
6433
|
+
const Ma = "sonic-sdui";
|
|
6434
|
+
let ws = class extends wr(Qt(y)) {
|
|
6428
6435
|
constructor() {
|
|
6429
6436
|
super(...arguments), this.sduiDescriptor = {};
|
|
6430
6437
|
}
|
|
@@ -6452,7 +6459,7 @@ let ys = class extends yr(Qt(y)) {
|
|
|
6452
6459
|
if (!this.sduiDescriptor)
|
|
6453
6460
|
return;
|
|
6454
6461
|
const r = {};
|
|
6455
|
-
Object.assign(r,
|
|
6462
|
+
Object.assign(r, Ea, this.sduiDescriptor.library), this.sduiDescriptor.library = r, this.loadAssets(), await this.loadLibrary(), await this.transformSDUIDescriptor(), this.parseRootNodes();
|
|
6456
6463
|
}
|
|
6457
6464
|
/**
|
|
6458
6465
|
* Suppressiond du contenu du composant avant le génération de la nouvelle ui
|
|
@@ -6468,10 +6475,10 @@ let ys = class extends yr(Qt(y)) {
|
|
|
6468
6475
|
if (this.sduiDescriptor) {
|
|
6469
6476
|
if (this.sduiDescriptor.js)
|
|
6470
6477
|
for (const r of this.sduiDescriptor.js)
|
|
6471
|
-
|
|
6478
|
+
qe.loadJS(r);
|
|
6472
6479
|
if (this.sduiDescriptor.css)
|
|
6473
6480
|
for (const r of this.sduiDescriptor.css)
|
|
6474
|
-
|
|
6481
|
+
qe.loadCSS(r);
|
|
6475
6482
|
}
|
|
6476
6483
|
}
|
|
6477
6484
|
/**
|
|
@@ -6481,7 +6488,7 @@ let ys = class extends yr(Qt(y)) {
|
|
|
6481
6488
|
if (!this.hasAttribute("transformation"))
|
|
6482
6489
|
return;
|
|
6483
6490
|
const t = await (await fetch(this.getAttribute("transformation"))).json();
|
|
6484
|
-
await new
|
|
6491
|
+
await new Na().transform(this.sduiDescriptor, t);
|
|
6485
6492
|
}
|
|
6486
6493
|
/**
|
|
6487
6494
|
* Charge la library à utiliser
|
|
@@ -6556,7 +6563,7 @@ let ys = class extends yr(Qt(y)) {
|
|
|
6556
6563
|
handleAttributes(r, t) {
|
|
6557
6564
|
const s = r.attributes;
|
|
6558
6565
|
for (const i in s) {
|
|
6559
|
-
const e = s[i], o =
|
|
6566
|
+
const e = s[i], o = Je.isObject(e) ? JSON.stringify(e) : e;
|
|
6560
6567
|
t.setAttribute(i, o);
|
|
6561
6568
|
}
|
|
6562
6569
|
}
|
|
@@ -6581,21 +6588,21 @@ let ys = class extends yr(Qt(y)) {
|
|
|
6581
6588
|
t && (t.innerHTML += r.innerHTML);
|
|
6582
6589
|
}
|
|
6583
6590
|
};
|
|
6584
|
-
|
|
6591
|
+
bi([
|
|
6585
6592
|
a()
|
|
6586
|
-
],
|
|
6587
|
-
|
|
6593
|
+
], ws.prototype, "sduiKey", 2);
|
|
6594
|
+
bi([
|
|
6588
6595
|
a()
|
|
6589
|
-
],
|
|
6590
|
-
|
|
6591
|
-
_(
|
|
6592
|
-
],
|
|
6593
|
-
var
|
|
6594
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
6596
|
+
], ws.prototype, "messagesKey", 2);
|
|
6597
|
+
ws = bi([
|
|
6598
|
+
_(Ma)
|
|
6599
|
+
], ws);
|
|
6600
|
+
var Ia = Object.defineProperty, za = Object.getOwnPropertyDescriptor, Ar = (r, t, s, i) => {
|
|
6601
|
+
for (var e = i > 1 ? void 0 : i ? za(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
6595
6602
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
6596
|
-
return i && e &&
|
|
6603
|
+
return i && e && Ia(t, s, e), e;
|
|
6597
6604
|
};
|
|
6598
|
-
let
|
|
6605
|
+
let _s = class extends Qt(y) {
|
|
6599
6606
|
constructor() {
|
|
6600
6607
|
super(...arguments), this._composition = {}, this.listeners = [];
|
|
6601
6608
|
}
|
|
@@ -6628,8 +6635,8 @@ let ws = class extends Qt(y) {
|
|
|
6628
6635
|
const e = i.split("."), o = e.shift();
|
|
6629
6636
|
if (!o)
|
|
6630
6637
|
continue;
|
|
6631
|
-
let n =
|
|
6632
|
-
n =
|
|
6638
|
+
let n = J.get(o);
|
|
6639
|
+
n = Je.traverse(n, e);
|
|
6633
6640
|
const l = {
|
|
6634
6641
|
publisher: n,
|
|
6635
6642
|
subscriber: (c) => {
|
|
@@ -6639,7 +6646,7 @@ let ws = class extends Qt(y) {
|
|
|
6639
6646
|
this.listeners.push(l), n.onAssign(l.subscriber), t._proxies_.set(s, n);
|
|
6640
6647
|
} else {
|
|
6641
6648
|
this.publisher[s] = {};
|
|
6642
|
-
const e = new
|
|
6649
|
+
const e = new ri({}, t);
|
|
6643
6650
|
t._proxies_.set(s, e);
|
|
6644
6651
|
const o = {
|
|
6645
6652
|
publisher: e,
|
|
@@ -6655,43 +6662,43 @@ let ws = class extends Qt(y) {
|
|
|
6655
6662
|
return g`<slot></slot>`;
|
|
6656
6663
|
}
|
|
6657
6664
|
};
|
|
6658
|
-
|
|
6665
|
+
_s.styles = [
|
|
6659
6666
|
P`
|
|
6660
6667
|
:host {
|
|
6661
6668
|
display: contents;
|
|
6662
6669
|
}
|
|
6663
6670
|
`
|
|
6664
6671
|
];
|
|
6665
|
-
|
|
6672
|
+
Ar([
|
|
6666
6673
|
a({ type: Object })
|
|
6667
|
-
],
|
|
6668
|
-
|
|
6674
|
+
], _s.prototype, "composition", 1);
|
|
6675
|
+
_s = Ar([
|
|
6669
6676
|
_("sonic-mix")
|
|
6670
|
-
],
|
|
6671
|
-
var Ra = Object.defineProperty, Fa = Object.getOwnPropertyDescriptor,
|
|
6677
|
+
], _s);
|
|
6678
|
+
var Ra = Object.defineProperty, Fa = Object.getOwnPropertyDescriptor, Ua = (r, t, s, i) => {
|
|
6672
6679
|
for (var e = i > 1 ? void 0 : i ? Fa(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
6673
6680
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
6674
6681
|
return i && e && Ra(t, s, e), e;
|
|
6675
6682
|
};
|
|
6676
|
-
const
|
|
6677
|
-
let
|
|
6683
|
+
const Va = "sonic-value";
|
|
6684
|
+
let Ji = class extends Qt(y) {
|
|
6678
6685
|
connectedCallback() {
|
|
6679
6686
|
this.setAttribute("subDataProvider", this.getAttribute("key")), super.connectedCallback();
|
|
6680
6687
|
}
|
|
6681
6688
|
render() {
|
|
6682
|
-
return typeof this.props == "object" || this.props === void 0 ? g`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>` : g`${
|
|
6689
|
+
return typeof this.props == "object" || this.props === void 0 ? g`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>` : g`${z(this.props.toString())}<slot name="prefix"></slot><slot></slot
|
|
6683
6690
|
><slot name="suffix"></slot>`;
|
|
6684
6691
|
}
|
|
6685
6692
|
};
|
|
6686
|
-
|
|
6687
|
-
_(
|
|
6688
|
-
],
|
|
6689
|
-
var
|
|
6690
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
6693
|
+
Ji = Ua([
|
|
6694
|
+
_(Va)
|
|
6695
|
+
], Ji);
|
|
6696
|
+
var Ba = Object.defineProperty, Ha = Object.getOwnPropertyDescriptor, ss = (r, t, s, i) => {
|
|
6697
|
+
for (var e = i > 1 ? void 0 : i ? Ha(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
6691
6698
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
6692
|
-
return i && e &&
|
|
6699
|
+
return i && e && Ba(t, s, e), e;
|
|
6693
6700
|
};
|
|
6694
|
-
const
|
|
6701
|
+
const qa = "sonic-badge";
|
|
6695
6702
|
let de = class extends y {
|
|
6696
6703
|
constructor() {
|
|
6697
6704
|
super(...arguments), this.type = "default", this.variant = "default", this.ellipsis = !1;
|
|
@@ -6854,22 +6861,22 @@ de.styles = [
|
|
|
6854
6861
|
}
|
|
6855
6862
|
`
|
|
6856
6863
|
];
|
|
6857
|
-
|
|
6864
|
+
ss([
|
|
6858
6865
|
a({ type: String, reflect: !0 })
|
|
6859
6866
|
], de.prototype, "type", 2);
|
|
6860
|
-
|
|
6867
|
+
ss([
|
|
6861
6868
|
a({ type: String, reflect: !0 })
|
|
6862
6869
|
], de.prototype, "variant", 2);
|
|
6863
|
-
|
|
6870
|
+
ss([
|
|
6864
6871
|
a({ type: String, reflect: !0 })
|
|
6865
6872
|
], de.prototype, "size", 2);
|
|
6866
|
-
|
|
6873
|
+
ss([
|
|
6867
6874
|
a({ type: Boolean, reflect: !0 })
|
|
6868
6875
|
], de.prototype, "ellipsis", 2);
|
|
6869
|
-
de =
|
|
6870
|
-
_(
|
|
6876
|
+
de = ss([
|
|
6877
|
+
_(qa)
|
|
6871
6878
|
], de);
|
|
6872
|
-
class
|
|
6879
|
+
class Wa {
|
|
6873
6880
|
static fixBlankLink(t) {
|
|
6874
6881
|
const i = typeof require > "u" || typeof process != "object" ? null : require("electron");
|
|
6875
6882
|
t.target == "_blank" && t.addEventListener("click", () => {
|
|
@@ -6877,12 +6884,12 @@ class qa {
|
|
|
6877
6884
|
});
|
|
6878
6885
|
}
|
|
6879
6886
|
}
|
|
6880
|
-
var
|
|
6881
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
6887
|
+
var Ka = Object.defineProperty, Za = Object.getOwnPropertyDescriptor, ke = (r, t, s, i) => {
|
|
6888
|
+
for (var e = i > 1 ? void 0 : i ? Za(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
6882
6889
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
6883
|
-
return i && e &&
|
|
6890
|
+
return i && e && Ka(t, s, e), e;
|
|
6884
6891
|
};
|
|
6885
|
-
const
|
|
6892
|
+
const Ga = "sonic-link";
|
|
6886
6893
|
let Kt = class extends y {
|
|
6887
6894
|
constructor() {
|
|
6888
6895
|
super(...arguments), this.href = "", this._location = "", this.ariaLabel = null, this.autoActive = "partial", this._target = null, this.pushState = null;
|
|
@@ -6906,7 +6913,7 @@ let Kt = class extends y {
|
|
|
6906
6913
|
st.offChange(this), super.disconnectedCallback();
|
|
6907
6914
|
}
|
|
6908
6915
|
set target(r) {
|
|
6909
|
-
this._target = r,
|
|
6916
|
+
this._target = r, Wa.fixBlankLink(this), this.requestUpdate();
|
|
6910
6917
|
}
|
|
6911
6918
|
get target() {
|
|
6912
6919
|
return this._target;
|
|
@@ -6939,30 +6946,30 @@ Kt.styles = [
|
|
|
6939
6946
|
}
|
|
6940
6947
|
`
|
|
6941
6948
|
];
|
|
6942
|
-
|
|
6949
|
+
ke([
|
|
6943
6950
|
a({ type: String })
|
|
6944
6951
|
], Kt.prototype, "href", 2);
|
|
6945
|
-
|
|
6952
|
+
ke([
|
|
6946
6953
|
a({ type: String, attribute: "data-aria-label" })
|
|
6947
6954
|
], Kt.prototype, "ariaLabel", 2);
|
|
6948
|
-
|
|
6955
|
+
ke([
|
|
6949
6956
|
a({ type: String })
|
|
6950
6957
|
], Kt.prototype, "autoActive", 2);
|
|
6951
|
-
|
|
6958
|
+
ke([
|
|
6952
6959
|
a({ type: String })
|
|
6953
6960
|
], Kt.prototype, "target", 1);
|
|
6954
|
-
|
|
6961
|
+
ke([
|
|
6955
6962
|
a({ type: Boolean })
|
|
6956
6963
|
], Kt.prototype, "pushState", 2);
|
|
6957
|
-
Kt =
|
|
6958
|
-
_(
|
|
6964
|
+
Kt = ke([
|
|
6965
|
+
_(Ga)
|
|
6959
6966
|
], Kt);
|
|
6960
|
-
var
|
|
6961
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
6967
|
+
var Ya = Object.defineProperty, Qa = Object.getOwnPropertyDescriptor, Le = (r, t, s, i) => {
|
|
6968
|
+
for (var e = i > 1 ? void 0 : i ? Qa(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
6962
6969
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
6963
|
-
return i && e &&
|
|
6970
|
+
return i && e && Ya(t, s, e), e;
|
|
6964
6971
|
};
|
|
6965
|
-
const
|
|
6972
|
+
const Ja = "sonic-progress";
|
|
6966
6973
|
let Zt = class extends y {
|
|
6967
6974
|
constructor() {
|
|
6968
6975
|
super(...arguments), this.max = 100, this.invert = !1, this.type = "default", this.size = "md";
|
|
@@ -7084,23 +7091,23 @@ Zt.styles = [
|
|
|
7084
7091
|
}
|
|
7085
7092
|
`
|
|
7086
7093
|
];
|
|
7087
|
-
|
|
7094
|
+
Le([
|
|
7088
7095
|
a({ type: Number })
|
|
7089
7096
|
], Zt.prototype, "value", 2);
|
|
7090
|
-
|
|
7097
|
+
Le([
|
|
7091
7098
|
a({ type: Number })
|
|
7092
7099
|
], Zt.prototype, "max", 2);
|
|
7093
|
-
|
|
7100
|
+
Le([
|
|
7094
7101
|
a({ type: Boolean })
|
|
7095
7102
|
], Zt.prototype, "invert", 2);
|
|
7096
|
-
|
|
7103
|
+
Le([
|
|
7097
7104
|
a({ type: String, reflect: !0 })
|
|
7098
7105
|
], Zt.prototype, "type", 2);
|
|
7099
|
-
|
|
7106
|
+
Le([
|
|
7100
7107
|
a({ type: String, reflect: !0 })
|
|
7101
7108
|
], Zt.prototype, "size", 2);
|
|
7102
|
-
Zt =
|
|
7103
|
-
_(
|
|
7109
|
+
Zt = Le([
|
|
7110
|
+
_(Ja)
|
|
7104
7111
|
], Zt);
|
|
7105
7112
|
const Xa = P`
|
|
7106
7113
|
.password-toggle {
|
|
@@ -7113,7 +7120,7 @@ const Xa = P`
|
|
|
7113
7120
|
:host([inlineContent]) .has-suffix .password-toggle {
|
|
7114
7121
|
margin-right: 0;
|
|
7115
7122
|
}
|
|
7116
|
-
`,
|
|
7123
|
+
`, Ds = P`
|
|
7117
7124
|
:host {
|
|
7118
7125
|
--sc-label-fs: var(--sc-fs, 1rem);
|
|
7119
7126
|
--sc-label-fw: var(--sc-label-font-weight);
|
|
@@ -7127,14 +7134,14 @@ const Xa = P`
|
|
|
7127
7134
|
margin-bottom: 0.22em;
|
|
7128
7135
|
display: block;
|
|
7129
7136
|
}
|
|
7130
|
-
`,
|
|
7137
|
+
`, ks = P`
|
|
7131
7138
|
.form-description {
|
|
7132
7139
|
color: var(--sc-base-400);
|
|
7133
7140
|
font-size: 0.85em;
|
|
7134
7141
|
margin-top: 0.2em;
|
|
7135
7142
|
display: block;
|
|
7136
7143
|
}
|
|
7137
|
-
`,
|
|
7144
|
+
`, vi = P`
|
|
7138
7145
|
* {
|
|
7139
7146
|
box-sizing: border-box;
|
|
7140
7147
|
}
|
|
@@ -7482,7 +7489,7 @@ const Xa = P`
|
|
|
7482
7489
|
* Copyright 2018 Google LLC
|
|
7483
7490
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7484
7491
|
*/
|
|
7485
|
-
const
|
|
7492
|
+
const yi = be(class extends Se {
|
|
7486
7493
|
constructor(r) {
|
|
7487
7494
|
var t;
|
|
7488
7495
|
if (super(r), r.type !== me.ATTRIBUTE || r.name !== "class" || ((t = r.strings) == null ? void 0 : t.length) > 2)
|
|
@@ -7509,13 +7516,13 @@ const vi = be(class extends Ae {
|
|
|
7509
7516
|
return gt;
|
|
7510
7517
|
}
|
|
7511
7518
|
});
|
|
7512
|
-
var
|
|
7513
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
7519
|
+
var tl = Object.defineProperty, el = Object.getOwnPropertyDescriptor, B = (r, t, s, i) => {
|
|
7520
|
+
for (var e = i > 1 ? void 0 : i ? el(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
7514
7521
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
7515
|
-
return i && e &&
|
|
7522
|
+
return i && e && tl(t, s, e), e;
|
|
7516
7523
|
};
|
|
7517
|
-
const
|
|
7518
|
-
let
|
|
7524
|
+
const sl = "sonic-input";
|
|
7525
|
+
let F = class extends Os(Oe(Y(y))) {
|
|
7519
7526
|
constructor() {
|
|
7520
7527
|
super(...arguments), this.readonly = !1, this.inlineContent = !1, this.disableInlineContentFocus = !1, this.showPasswordToggle = !1, this.hasDescription = !1, this.hasLabel = !1, this.hasSuffix = !1, this.hasPrefix = !1, this.isPassword = !1;
|
|
7521
7528
|
}
|
|
@@ -7574,7 +7581,7 @@ let z = class extends Ss(Se(Y(y))) {
|
|
|
7574
7581
|
};
|
|
7575
7582
|
return g`
|
|
7576
7583
|
<label for="${this.id || "form-element"}" class="${this.hasLabel ? "form-label" : "hidden"}"
|
|
7577
|
-
>${this.label ?
|
|
7584
|
+
>${this.label ? z(
|
|
7578
7585
|
this.label
|
|
7579
7586
|
/*+ labelStarSuffix*/
|
|
7580
7587
|
) : ""}<slot
|
|
@@ -7583,7 +7590,7 @@ let z = class extends Ss(Se(Y(y))) {
|
|
|
7583
7590
|
></slot
|
|
7584
7591
|
></label>
|
|
7585
7592
|
|
|
7586
|
-
<div @click=${this.inlineContentFocus} class="form-control ${
|
|
7593
|
+
<div @click=${this.inlineContentFocus} class="form-control ${yi(r)}">
|
|
7587
7594
|
<div part="content" class="${this.inlineContent ? "form-element form-element-wrapper" : "contents"}">
|
|
7588
7595
|
<slot name="prefix" @slotchange=${this.hasSlotOrProps}></slot>
|
|
7589
7596
|
<input
|
|
@@ -7632,17 +7639,17 @@ let z = class extends Ss(Se(Y(y))) {
|
|
|
7632
7639
|
name="description"
|
|
7633
7640
|
@slotchange=${this.hasSlotOrProps}
|
|
7634
7641
|
class="${this.hasDescription ? "form-description" : "hidden"}"
|
|
7635
|
-
>${this.description ? g`${
|
|
7642
|
+
>${this.description ? g`${z(this.description)}` : $}</slot>
|
|
7636
7643
|
<slot name="list"></slot>
|
|
7637
7644
|
</div>
|
|
7638
7645
|
`;
|
|
7639
7646
|
}
|
|
7640
7647
|
};
|
|
7641
|
-
|
|
7648
|
+
F.styles = [
|
|
7642
7649
|
Lt,
|
|
7643
|
-
|
|
7644
|
-
Os,
|
|
7650
|
+
vi,
|
|
7645
7651
|
Ds,
|
|
7652
|
+
ks,
|
|
7646
7653
|
Xa,
|
|
7647
7654
|
P`
|
|
7648
7655
|
:host([type="hidden"]) {
|
|
@@ -7656,88 +7663,90 @@ z.styles = [
|
|
|
7656
7663
|
];
|
|
7657
7664
|
B([
|
|
7658
7665
|
a({ type: String, reflect: !0 })
|
|
7659
|
-
],
|
|
7666
|
+
], F.prototype, "size", 2);
|
|
7660
7667
|
B([
|
|
7661
7668
|
a({ type: String })
|
|
7662
|
-
],
|
|
7669
|
+
], F.prototype, "list", 2);
|
|
7663
7670
|
B([
|
|
7664
7671
|
a({ type: String })
|
|
7665
|
-
],
|
|
7672
|
+
], F.prototype, "placeholder", 2);
|
|
7666
7673
|
B([
|
|
7667
7674
|
a({ type: String })
|
|
7668
|
-
],
|
|
7675
|
+
], F.prototype, "pattern", 2);
|
|
7669
7676
|
B([
|
|
7670
7677
|
a({ type: String })
|
|
7671
|
-
],
|
|
7678
|
+
], F.prototype, "min", 2);
|
|
7672
7679
|
B([
|
|
7673
7680
|
a({ type: String })
|
|
7674
|
-
],
|
|
7681
|
+
], F.prototype, "max", 2);
|
|
7675
7682
|
B([
|
|
7676
7683
|
a({ type: Boolean })
|
|
7677
|
-
],
|
|
7684
|
+
], F.prototype, "readonly", 2);
|
|
7678
7685
|
B([
|
|
7679
7686
|
a({ type: Number })
|
|
7680
|
-
],
|
|
7687
|
+
], F.prototype, "step", 2);
|
|
7681
7688
|
B([
|
|
7682
7689
|
a({ type: Number })
|
|
7683
|
-
],
|
|
7690
|
+
], F.prototype, "minlength", 2);
|
|
7684
7691
|
B([
|
|
7685
7692
|
a({ type: Number })
|
|
7686
|
-
],
|
|
7693
|
+
], F.prototype, "maxlength", 2);
|
|
7687
7694
|
B([
|
|
7688
7695
|
a({ type: String })
|
|
7689
|
-
],
|
|
7696
|
+
], F.prototype, "src", 2);
|
|
7690
7697
|
B([
|
|
7691
7698
|
a({ type: Boolean, reflect: !0 })
|
|
7692
|
-
],
|
|
7699
|
+
], F.prototype, "inlineContent", 2);
|
|
7693
7700
|
B([
|
|
7694
7701
|
a({ type: Boolean })
|
|
7695
|
-
],
|
|
7702
|
+
], F.prototype, "disableInlineContentFocus", 2);
|
|
7696
7703
|
B([
|
|
7697
7704
|
a({ type: Boolean })
|
|
7698
|
-
],
|
|
7705
|
+
], F.prototype, "showPasswordToggle", 2);
|
|
7699
7706
|
B([
|
|
7700
7707
|
lt({ slot: "label", flatten: !0 })
|
|
7701
|
-
],
|
|
7708
|
+
], F.prototype, "slotLabelNodes", 2);
|
|
7702
7709
|
B([
|
|
7703
7710
|
lt({ slot: "description", flatten: !0 })
|
|
7704
|
-
],
|
|
7711
|
+
], F.prototype, "slotDescriptionNodes", 2);
|
|
7705
7712
|
B([
|
|
7706
7713
|
lt({ slot: "suffix", flatten: !0 })
|
|
7707
|
-
],
|
|
7714
|
+
], F.prototype, "slotSuffixNodes", 2);
|
|
7708
7715
|
B([
|
|
7709
7716
|
lt({ slot: "prefix", flatten: !0 })
|
|
7710
|
-
],
|
|
7717
|
+
], F.prototype, "slotPrefixNodes", 2);
|
|
7711
7718
|
B([
|
|
7712
7719
|
fe("input")
|
|
7713
|
-
],
|
|
7720
|
+
], F.prototype, "input", 2);
|
|
7714
7721
|
B([
|
|
7715
7722
|
M()
|
|
7716
|
-
],
|
|
7723
|
+
], F.prototype, "hasDescription", 2);
|
|
7717
7724
|
B([
|
|
7718
7725
|
M()
|
|
7719
|
-
],
|
|
7726
|
+
], F.prototype, "hasLabel", 2);
|
|
7720
7727
|
B([
|
|
7721
7728
|
M()
|
|
7722
|
-
],
|
|
7729
|
+
], F.prototype, "hasSuffix", 2);
|
|
7723
7730
|
B([
|
|
7724
7731
|
M()
|
|
7725
|
-
],
|
|
7732
|
+
], F.prototype, "hasPrefix", 2);
|
|
7726
7733
|
B([
|
|
7727
7734
|
M()
|
|
7728
|
-
],
|
|
7729
|
-
|
|
7730
|
-
_(
|
|
7731
|
-
],
|
|
7732
|
-
var
|
|
7733
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
7735
|
+
], F.prototype, "isPassword", 2);
|
|
7736
|
+
F = B([
|
|
7737
|
+
_(sl)
|
|
7738
|
+
], F);
|
|
7739
|
+
var il = Object.defineProperty, rl = Object.getOwnPropertyDescriptor, Jt = (r, t, s, i) => {
|
|
7740
|
+
for (var e = i > 1 ? void 0 : i ? rl(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
7734
7741
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
7735
|
-
return i && e &&
|
|
7742
|
+
return i && e && il(t, s, e), e;
|
|
7736
7743
|
};
|
|
7737
|
-
const
|
|
7744
|
+
const ol = "sonic-pop";
|
|
7738
7745
|
let it = class extends y {
|
|
7739
7746
|
constructor() {
|
|
7740
|
-
super(...arguments), this.open = !1, this.noToggle = !1, this.inline = !1, this.shadow = "lg", this.placement = "bottom", this.positioningRuns = !1, this.lastContentX = 0, this.lastContentY = 0, this.resizeObserver = new ResizeObserver(
|
|
7747
|
+
super(...arguments), this.open = !1, this.noToggle = !1, this.inline = !1, this.shadow = "lg", this.placement = "bottom", this.positioningRuns = !1, this.lastContentX = 0, this.lastContentY = 0, this.resizeObserver = new ResizeObserver(
|
|
7748
|
+
() => this.computePosition(this.placement)
|
|
7749
|
+
), this.ancestorsHavingZIndex = /* @__PURE__ */ new Set();
|
|
7741
7750
|
}
|
|
7742
7751
|
runPositioningLoop() {
|
|
7743
7752
|
this.positioningRuns && (this.positioningRuns = !0, this.computePosition(this.placement), window.requestAnimationFrame(() => this.runPositioningLoop()));
|
|
@@ -7776,7 +7785,9 @@ let it = class extends y {
|
|
|
7776
7785
|
_handleClosePop(r) {
|
|
7777
7786
|
const t = r.composedPath(), s = t[0];
|
|
7778
7787
|
it.pops.forEach((i) => {
|
|
7779
|
-
const e = t.includes(i), o = t.includes(
|
|
7788
|
+
const e = t.includes(i), o = t.includes(
|
|
7789
|
+
i.querySelector('[slot="content"]')
|
|
7790
|
+
), n = rt.getAncestorAttributeValue(s, "data-on-select") === "keep";
|
|
7780
7791
|
r.type == "pointerdown" && e || r.type == "click" && (e && n || !o) || i.hide();
|
|
7781
7792
|
});
|
|
7782
7793
|
}
|
|
@@ -7825,7 +7836,11 @@ let it = class extends y {
|
|
|
7825
7836
|
}
|
|
7826
7837
|
render() {
|
|
7827
7838
|
return g`
|
|
7828
|
-
<slot
|
|
7839
|
+
<slot
|
|
7840
|
+
@click=${this.toggle}
|
|
7841
|
+
@keydown=${this.toggle}
|
|
7842
|
+
class="contents"
|
|
7843
|
+
></slot>
|
|
7829
7844
|
<slot
|
|
7830
7845
|
name="content"
|
|
7831
7846
|
tabindex="-1"
|
|
@@ -7844,6 +7859,7 @@ it.styles = [
|
|
|
7844
7859
|
display: inline-block;
|
|
7845
7860
|
vertical-align: middle;
|
|
7846
7861
|
}
|
|
7862
|
+
|
|
7847
7863
|
slot[name="content"] {
|
|
7848
7864
|
max-width: 80vw;
|
|
7849
7865
|
background-color: var(--sc-base);
|
|
@@ -7891,50 +7907,50 @@ it.styles = [
|
|
|
7891
7907
|
}
|
|
7892
7908
|
`
|
|
7893
7909
|
];
|
|
7894
|
-
|
|
7910
|
+
Jt([
|
|
7895
7911
|
M()
|
|
7896
7912
|
], it.prototype, "open", 2);
|
|
7897
|
-
|
|
7913
|
+
Jt([
|
|
7898
7914
|
fe("slot:not([name=content])")
|
|
7899
7915
|
], it.prototype, "popBtn", 2);
|
|
7900
|
-
|
|
7916
|
+
Jt([
|
|
7901
7917
|
fe("slot[name=content]")
|
|
7902
7918
|
], it.prototype, "popContent", 2);
|
|
7903
|
-
|
|
7919
|
+
Jt([
|
|
7904
7920
|
a({ type: Boolean })
|
|
7905
7921
|
], it.prototype, "noToggle", 2);
|
|
7906
|
-
|
|
7922
|
+
Jt([
|
|
7907
7923
|
a({ type: Boolean, reflect: !0 })
|
|
7908
7924
|
], it.prototype, "inline", 2);
|
|
7909
|
-
|
|
7925
|
+
Jt([
|
|
7910
7926
|
a({ type: String, reflect: !0 })
|
|
7911
7927
|
], it.prototype, "shadow", 2);
|
|
7912
|
-
|
|
7928
|
+
Jt([
|
|
7913
7929
|
a({ type: String })
|
|
7914
7930
|
], it.prototype, "placement", 2);
|
|
7915
|
-
it =
|
|
7916
|
-
_(
|
|
7931
|
+
it = Jt([
|
|
7932
|
+
_(ol)
|
|
7917
7933
|
], it);
|
|
7918
|
-
var
|
|
7919
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
7934
|
+
var nl = Object.defineProperty, al = Object.getOwnPropertyDescriptor, ll = (r, t, s, i) => {
|
|
7935
|
+
for (var e = i > 1 ? void 0 : i ? al(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
7920
7936
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
7921
|
-
return i && e &&
|
|
7937
|
+
return i && e && nl(t, s, e), e;
|
|
7922
7938
|
};
|
|
7923
|
-
const
|
|
7939
|
+
const cl = "sonic-menu-item";
|
|
7924
7940
|
let Xi = class extends T {
|
|
7925
7941
|
constructor() {
|
|
7926
7942
|
super();
|
|
7927
7943
|
}
|
|
7928
7944
|
connectedCallback() {
|
|
7929
|
-
this.hasAttribute("variant") || (this.variant = "ghost"), this.hasAttribute("type") || (this.type = "
|
|
7945
|
+
this.hasAttribute("variant") || (this.variant = "ghost"), this.hasAttribute("type") || (this.type = "default"), this.hasAttribute("shape") || (this.shape = "block");
|
|
7930
7946
|
const r = this.shape === "square" || this.shape === "circle";
|
|
7931
7947
|
!this.hasAttribute("align") && !r && (this.align = "left"), super.connectedCallback();
|
|
7932
7948
|
}
|
|
7933
7949
|
};
|
|
7934
|
-
Xi =
|
|
7935
|
-
_(
|
|
7950
|
+
Xi = ll([
|
|
7951
|
+
_(cl)
|
|
7936
7952
|
], Xi);
|
|
7937
|
-
class
|
|
7953
|
+
class Sr {
|
|
7938
7954
|
constructor(t, { target: s, config: i, callback: e, skipInitial: o }) {
|
|
7939
7955
|
this.t = /* @__PURE__ */ new Set(), this.o = !1, this.i = !1, this.h = t, s !== null && this.t.add(s ?? t), this.l = i, this.o = o ?? this.o, this.callback = e, window.ResizeObserver ? (this.u = new ResizeObserver((n) => {
|
|
7940
7956
|
this.handleChanges(n), this.h.requestUpdate();
|
|
@@ -7964,14 +7980,14 @@ class Ar {
|
|
|
7964
7980
|
this.u.disconnect();
|
|
7965
7981
|
}
|
|
7966
7982
|
}
|
|
7967
|
-
var
|
|
7968
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
7983
|
+
var hl = Object.defineProperty, dl = Object.getOwnPropertyDescriptor, $t = (r, t, s, i) => {
|
|
7984
|
+
for (var e = i > 1 ? void 0 : i ? dl(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
7969
7985
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
7970
|
-
return i && e &&
|
|
7986
|
+
return i && e && hl(t, s, e), e;
|
|
7971
7987
|
};
|
|
7972
|
-
let pt = class extends
|
|
7988
|
+
let pt = class extends ui(xr(_r(Qt(y)))) {
|
|
7973
7989
|
constructor() {
|
|
7974
|
-
super(...arguments), this.size = "md", this.placeholder = "", this.filteredFields = "", this.readonly = null, this.dataProviderExpression = "", this.key = "", this.searchParameter = "", this.propertyName = "", this.hasInputPrefix = !1, this._resizeController = new
|
|
7990
|
+
super(...arguments), this.size = "md", this.placeholder = "", this.filteredFields = "", this.readonly = null, this.dataProviderExpression = "", this.key = "", this.searchParameter = "", this.propertyName = "", this.hasInputPrefix = !1, this._resizeController = new Sr(this, {}), this.searchDataProvider = "", this.initSearchDataProvider = "", this.queueDataProvider = "", this.initQueueDataProvider = "", this.lastValidSearch = "", this.updateSearchParameter = (r) => {
|
|
7975
7991
|
var s;
|
|
7976
7992
|
if (r == "") {
|
|
7977
7993
|
this.lastValidSearch = "";
|
|
@@ -8007,13 +8023,13 @@ let pt = class extends pi(_r(wr(Qt(y)))) {
|
|
|
8007
8023
|
super.connectedCallback();
|
|
8008
8024
|
const r = this.searchParameter || this.name, t = this.getAncestorAttributeValue("formDataProvider"), s = t + "__" + this.name + "__autocomplete";
|
|
8009
8025
|
this.initSearchDataProvider = `${s}_init_search__`, this.initQueueDataProvider = `${s}_init_queue__`, this.searchDataProvider = `${s}_search__`, this.queueDataProvider = `${s}_queue__`;
|
|
8010
|
-
const i =
|
|
8011
|
-
this.searchPublisher = i(this.searchDataProvider)[r], this.formValuePublisher = i(t)[this.name], this.countPublisher = i(this.queueDataProvider).resultCount, this.initCountPublisher = i(this.initQueueDataProvider).resultCount, this.value && (
|
|
8026
|
+
const i = J.get;
|
|
8027
|
+
this.searchPublisher = i(this.searchDataProvider)[r], this.formValuePublisher = i(t)[this.name], this.countPublisher = i(this.queueDataProvider).resultCount, this.initCountPublisher = i(this.initQueueDataProvider).resultCount, this.value && (J.get(this.initSearchDataProvider)[this.name] = this.value), (e = this.initCountPublisher) == null || e.onAssign(this.initSearchParameter), (o = this.formValuePublisher) == null || o.onAssign(this.updateSearchParameter), (n = this.countPublisher) == null || n.onAssign(this.updateActiveSelection);
|
|
8012
8028
|
}
|
|
8013
8029
|
disconnectedCallback() {
|
|
8014
8030
|
var t, s, i;
|
|
8015
8031
|
super.disconnectedCallback(), (t = this.initCountPublisher) == null || t.offAssign(this.initSearchParameter), (s = this.formValuePublisher) == null || s.offAssign(this.updateSearchParameter), (i = this.countPublisher) == null || i.offAssign(this.updateActiveSelection);
|
|
8016
|
-
const r =
|
|
8032
|
+
const r = J.get;
|
|
8017
8033
|
r(this.initSearchDataProvider).delete(), r(this.initQueueDataProvider).delete(), r(this.searchDataProvider).delete(), r(this.queueDataProvider).delete();
|
|
8018
8034
|
}
|
|
8019
8035
|
/**
|
|
@@ -8024,12 +8040,12 @@ let pt = class extends pi(_r(wr(Qt(y)))) {
|
|
|
8024
8040
|
* @return bool|undefined True if item found, false otherwise, undefined if result is not a list
|
|
8025
8041
|
*/
|
|
8026
8042
|
queryQueueListItem(r, t, s) {
|
|
8027
|
-
const i =
|
|
8043
|
+
const i = J.get(r);
|
|
8028
8044
|
let e;
|
|
8029
8045
|
const o = i.get();
|
|
8030
8046
|
if (Array.isArray(o)) {
|
|
8031
8047
|
for (const n of o) {
|
|
8032
|
-
const l =
|
|
8048
|
+
const l = J.get(n.dataProvider).get();
|
|
8033
8049
|
if (Array.isArray(l) && (e = l.find(t), e))
|
|
8034
8050
|
break;
|
|
8035
8051
|
}
|
|
@@ -8100,7 +8116,7 @@ let pt = class extends pi(_r(wr(Qt(y)))) {
|
|
|
8100
8116
|
}
|
|
8101
8117
|
};
|
|
8102
8118
|
pt.styles = [
|
|
8103
|
-
|
|
8119
|
+
ts,
|
|
8104
8120
|
P`
|
|
8105
8121
|
:host {
|
|
8106
8122
|
display: block;
|
|
@@ -8150,12 +8166,12 @@ $t([
|
|
|
8150
8166
|
pt = $t([
|
|
8151
8167
|
_("sonic-input-autocomplete")
|
|
8152
8168
|
], pt);
|
|
8153
|
-
var
|
|
8154
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
8169
|
+
var pl = Object.defineProperty, ul = Object.getOwnPropertyDescriptor, ht = (r, t, s, i) => {
|
|
8170
|
+
for (var e = i > 1 ? void 0 : i ? ul(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
8155
8171
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
8156
|
-
return i && e &&
|
|
8172
|
+
return i && e && pl(t, s, e), e;
|
|
8157
8173
|
};
|
|
8158
|
-
const
|
|
8174
|
+
const fl = "sonic-password-helper";
|
|
8159
8175
|
let nt = class extends Qt(y) {
|
|
8160
8176
|
constructor() {
|
|
8161
8177
|
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";
|
|
@@ -8163,10 +8179,10 @@ let nt = class extends Qt(y) {
|
|
|
8163
8179
|
connectedCallback() {
|
|
8164
8180
|
super.connectedCallback(), this.name && (this.checkValue = (t) => {
|
|
8165
8181
|
t ? (this.hasNoChar = t.length == 0, this.hasEnoughChars = t.length > this.minChars) : (this.hasNoChar = !0, this.hasEnoughChars = !1), this.hasMinuscule = /[a-z]/.test(t), this.hasMajuscule = /[A-Z]/.test(t), this.hasNumber = /[0-9]/.test(t), this.hasSpecialChar = /[!"#$%&'()*+,\-./:;<=>?@[\]^_`{|}~]/.test(t);
|
|
8166
|
-
},
|
|
8182
|
+
}, J.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue));
|
|
8167
8183
|
}
|
|
8168
8184
|
disconnectedCallback() {
|
|
8169
|
-
this.checkValue && this.name &&
|
|
8185
|
+
this.checkValue && this.name && J.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue), super.disconnectedCallback();
|
|
8170
8186
|
}
|
|
8171
8187
|
getIcon(t) {
|
|
8172
8188
|
return t ? g`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>` : g`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`;
|
|
@@ -8225,28 +8241,28 @@ ht([
|
|
|
8225
8241
|
a()
|
|
8226
8242
|
], nt.prototype, "wording_password_helper_special_char", 2);
|
|
8227
8243
|
nt = ht([
|
|
8228
|
-
_(
|
|
8244
|
+
_(fl)
|
|
8229
8245
|
], nt);
|
|
8230
|
-
var
|
|
8231
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
8246
|
+
var gl = Object.defineProperty, ml = Object.getOwnPropertyDescriptor, ye = (r, t, s, i) => {
|
|
8247
|
+
for (var e = i > 1 ? void 0 : i ? ml(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
8232
8248
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
8233
|
-
return i && e &&
|
|
8249
|
+
return i && e && gl(t, s, e), e;
|
|
8234
8250
|
};
|
|
8235
|
-
const
|
|
8251
|
+
const bl = "sonic-same-value-helper";
|
|
8236
8252
|
let Gt = class extends Qt(y) {
|
|
8237
8253
|
constructor() {
|
|
8238
8254
|
super(...arguments), this.descriptionWhenEqual = "Correspondance : oui", this.descriptionWhenNotEqual = "Correspondance : non", this.areEqual = !1, this.hasNoChar = !0;
|
|
8239
8255
|
}
|
|
8240
8256
|
connectedCallback() {
|
|
8241
8257
|
super.connectedCallback();
|
|
8242
|
-
const r =
|
|
8258
|
+
const r = J.get(this.getAncestorAttributeValue("formDataProvider"));
|
|
8243
8259
|
this.name && this.sameValueAs && (this.checkValue = (t) => {
|
|
8244
8260
|
t ? this.hasNoChar = t.length == 0 : this.hasNoChar = !0, this.name && this.sameValueAs && (this.areEqual = r[this.name].get() == r[this.sameValueAs].get());
|
|
8245
8261
|
}, r[this.name].onAssign(this.checkValue), r[this.sameValueAs].onAssign(this.checkValue));
|
|
8246
8262
|
}
|
|
8247
8263
|
disconnectedCallback() {
|
|
8248
8264
|
if (this.checkValue && this.name && this.sameValueAs) {
|
|
8249
|
-
const r =
|
|
8265
|
+
const r = J.get(this.getAncestorAttributeValue("formDataProvider"));
|
|
8250
8266
|
r[this.name].offAssign(this.checkValue), r[this.sameValueAs].offAssign(this.checkValue);
|
|
8251
8267
|
}
|
|
8252
8268
|
super.disconnectedCallback();
|
|
@@ -8254,7 +8270,7 @@ let Gt = class extends Qt(y) {
|
|
|
8254
8270
|
//TODO Multilangue
|
|
8255
8271
|
render() {
|
|
8256
8272
|
return this.hasNoChar ? $ : g`
|
|
8257
|
-
<span> ${this.areEqual ?
|
|
8273
|
+
<span> ${this.areEqual ? z(this.descriptionWhenEqual) : z(this.descriptionWhenNotEqual)} </span>
|
|
8258
8274
|
`;
|
|
8259
8275
|
}
|
|
8260
8276
|
};
|
|
@@ -8277,15 +8293,15 @@ ye([
|
|
|
8277
8293
|
M()
|
|
8278
8294
|
], Gt.prototype, "hasNoChar", 2);
|
|
8279
8295
|
Gt = ye([
|
|
8280
|
-
_(
|
|
8296
|
+
_(bl)
|
|
8281
8297
|
], Gt);
|
|
8282
|
-
var
|
|
8283
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
8298
|
+
var vl = Object.defineProperty, yl = Object.getOwnPropertyDescriptor, Ut = (r, t, s, i) => {
|
|
8299
|
+
for (var e = i > 1 ? void 0 : i ? yl(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
8284
8300
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
8285
|
-
return i && e &&
|
|
8301
|
+
return i && e && vl(t, s, e), e;
|
|
8286
8302
|
};
|
|
8287
|
-
const
|
|
8288
|
-
let mt = class extends
|
|
8303
|
+
const wl = "sonic-checkbox";
|
|
8304
|
+
let mt = class extends di(Os(Oe(Y(y)))) {
|
|
8289
8305
|
constructor() {
|
|
8290
8306
|
super(...arguments), this.touched = !1, this.iconName = "check", this.indeterminateIconName = "minus-small", this.showAsIndeterminate = !1, this.hasDescription = !1, this.hasLabel = !1;
|
|
8291
8307
|
}
|
|
@@ -8322,12 +8338,12 @@ let mt = class extends hi(Ss(Se(Y(y)))) {
|
|
|
8322
8338
|
</span>
|
|
8323
8339
|
|
|
8324
8340
|
<div class="checkbox-text ${!this.hasDescription && !this.hasLabel ? "hidden" : "checkbox-text"}">
|
|
8325
|
-
${this.label ?
|
|
8341
|
+
${this.label ? z(
|
|
8326
8342
|
this.label
|
|
8327
8343
|
/*+ labelStarSuffix*/
|
|
8328
8344
|
) : ""}
|
|
8329
8345
|
<slot @slotchange=${this.hasSlotOrProps}></slot>
|
|
8330
|
-
<slot @slotchange=${this.hasSlotOrProps} name="description" class="${this.hasDescription ? "description" : "hidden"} ">${this.description ? g`${
|
|
8346
|
+
<slot @slotchange=${this.hasSlotOrProps} name="description" class="${this.hasDescription ? "description" : "hidden"} ">${this.description ? g`${z(this.description)}` : ""}</slot>
|
|
8331
8347
|
</div>
|
|
8332
8348
|
</label>
|
|
8333
8349
|
</label>
|
|
@@ -8488,15 +8504,15 @@ Ut([
|
|
|
8488
8504
|
lt({ slot: "description", flatten: !0 })
|
|
8489
8505
|
], mt.prototype, "slotDescriptionNodes", 2);
|
|
8490
8506
|
mt = Ut([
|
|
8491
|
-
_(
|
|
8507
|
+
_(wl)
|
|
8492
8508
|
], mt);
|
|
8493
|
-
var
|
|
8494
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
8509
|
+
var _l = Object.defineProperty, xl = Object.getOwnPropertyDescriptor, Pl = (r, t, s, i) => {
|
|
8510
|
+
for (var e = i > 1 ? void 0 : i ? xl(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
8495
8511
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
8496
|
-
return i && e &&
|
|
8512
|
+
return i && e && _l(t, s, e), e;
|
|
8497
8513
|
};
|
|
8498
|
-
const
|
|
8499
|
-
let
|
|
8514
|
+
const $l = "sonic-radio";
|
|
8515
|
+
let Ks = class extends mt {
|
|
8500
8516
|
constructor() {
|
|
8501
8517
|
super(), this.radio = !0;
|
|
8502
8518
|
}
|
|
@@ -8504,7 +8520,7 @@ let Ws = class extends mt {
|
|
|
8504
8520
|
super.connectedCallback(), this.type = "radio";
|
|
8505
8521
|
}
|
|
8506
8522
|
};
|
|
8507
|
-
|
|
8523
|
+
Ks.styles = [
|
|
8508
8524
|
mt.styles,
|
|
8509
8525
|
P`
|
|
8510
8526
|
:host input {
|
|
@@ -8522,16 +8538,16 @@ Ws.styles = [
|
|
|
8522
8538
|
}
|
|
8523
8539
|
`
|
|
8524
8540
|
];
|
|
8525
|
-
|
|
8526
|
-
_(
|
|
8527
|
-
],
|
|
8528
|
-
var
|
|
8529
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
8541
|
+
Ks = Pl([
|
|
8542
|
+
_($l)
|
|
8543
|
+
], Ks);
|
|
8544
|
+
var Cl = Object.defineProperty, Al = Object.getOwnPropertyDescriptor, Q = (r, t, s, i) => {
|
|
8545
|
+
for (var e = i > 1 ? void 0 : i ? Al(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
8530
8546
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
8531
|
-
return i && e &&
|
|
8547
|
+
return i && e && Cl(t, s, e), e;
|
|
8532
8548
|
};
|
|
8533
|
-
const
|
|
8534
|
-
let K = class extends
|
|
8549
|
+
const Sl = "sonic-select";
|
|
8550
|
+
let K = class extends Oe(Y(y)) {
|
|
8535
8551
|
constructor() {
|
|
8536
8552
|
super(...arguments), this.valueKey = "value", this.wordingKey = "wording", this.multiple = !1, this.status = "default", this._options = [], this.hasDoneFirstUpdate = !1, this._value = "", this.updateOptions = () => {
|
|
8537
8553
|
const r = this.querySelectorAll(
|
|
@@ -8607,7 +8623,7 @@ let K = class extends Se(Y(y)) {
|
|
|
8607
8623
|
<label
|
|
8608
8624
|
for="form-element"
|
|
8609
8625
|
class="${this.hasLabel ? "form-label" : "hidden"}"
|
|
8610
|
-
>${this.label ?
|
|
8626
|
+
>${this.label ? z(
|
|
8611
8627
|
this.label
|
|
8612
8628
|
/*+ labelStarSuffix*/
|
|
8613
8629
|
) : ""}<slot
|
|
@@ -8616,7 +8632,7 @@ let K = class extends Se(Y(y)) {
|
|
|
8616
8632
|
></slot
|
|
8617
8633
|
></label>
|
|
8618
8634
|
|
|
8619
|
-
<div class="form-control ${
|
|
8635
|
+
<div class="form-control ${yi(r)}">
|
|
8620
8636
|
<slot name="prefix" @slotchange=${this.hasSlotOrProps}></slot>
|
|
8621
8637
|
<div class="form-select-wrapper">
|
|
8622
8638
|
<select
|
|
@@ -8633,7 +8649,7 @@ let K = class extends Se(Y(y)) {
|
|
|
8633
8649
|
aria-label=${x(this.ariaLabel)}
|
|
8634
8650
|
aria-labelledby=${x(this.ariaLabelledby)}
|
|
8635
8651
|
>
|
|
8636
|
-
${
|
|
8652
|
+
${Ss(
|
|
8637
8653
|
this.options,
|
|
8638
8654
|
(t) => t[this.valueKey],
|
|
8639
8655
|
(t) => {
|
|
@@ -8661,16 +8677,16 @@ let K = class extends Se(Y(y)) {
|
|
|
8661
8677
|
name="description"
|
|
8662
8678
|
@slotchange=${this.hasSlotOrProps}
|
|
8663
8679
|
class="${this.hasDescription ? "form-description" : "hidden"}"
|
|
8664
|
-
>${this.description ? g`${
|
|
8680
|
+
>${this.description ? g`${z(this.description)}` : ""}</slot
|
|
8665
8681
|
>
|
|
8666
8682
|
`;
|
|
8667
8683
|
}
|
|
8668
8684
|
};
|
|
8669
8685
|
K.styles = [
|
|
8670
8686
|
Lt,
|
|
8671
|
-
|
|
8672
|
-
Os,
|
|
8687
|
+
vi,
|
|
8673
8688
|
Ds,
|
|
8689
|
+
ks,
|
|
8674
8690
|
P`
|
|
8675
8691
|
.form-element {
|
|
8676
8692
|
appearance: none;
|
|
@@ -8776,15 +8792,15 @@ Q([
|
|
|
8776
8792
|
M()
|
|
8777
8793
|
], K.prototype, "hasPrefix", 2);
|
|
8778
8794
|
K = Q([
|
|
8779
|
-
_(
|
|
8795
|
+
_(Sl)
|
|
8780
8796
|
], K);
|
|
8781
|
-
var
|
|
8782
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
8797
|
+
var Ol = Object.defineProperty, Dl = Object.getOwnPropertyDescriptor, ut = (r, t, s, i) => {
|
|
8798
|
+
for (var e = i > 1 ? void 0 : i ? Dl(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
8783
8799
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
8784
|
-
return i && e &&
|
|
8800
|
+
return i && e && Ol(t, s, e), e;
|
|
8785
8801
|
};
|
|
8786
|
-
const
|
|
8787
|
-
let at = class extends
|
|
8802
|
+
const kl = "sonic-textarea";
|
|
8803
|
+
let at = class extends Os(Oe(Y(y))) {
|
|
8788
8804
|
constructor() {
|
|
8789
8805
|
super(...arguments), this.size = "", this.readonly = !1, this.hasDescription = !1, this.hasLabel = !1;
|
|
8790
8806
|
}
|
|
@@ -8812,7 +8828,7 @@ let at = class extends Ss(Se(Y(y))) {
|
|
|
8812
8828
|
};
|
|
8813
8829
|
return g`
|
|
8814
8830
|
<label for="${this.id || "form-element"}" class="${this.hasLabel ? "form-label" : "hidden"}"
|
|
8815
|
-
>${this.label ?
|
|
8831
|
+
>${this.label ? z(
|
|
8816
8832
|
this.label
|
|
8817
8833
|
/*+ labelStarSuffix*/
|
|
8818
8834
|
) : ""}<slot name="label" @slotchange=${this.hasSlotOrProps}></slot
|
|
@@ -8846,17 +8862,17 @@ ${this.value}</textarea
|
|
|
8846
8862
|
</div>
|
|
8847
8863
|
|
|
8848
8864
|
<slot name="description" @slotchange=${this.hasSlotOrProps} class="${this.hasDescription ? "form-description" : "hidden"}"
|
|
8849
|
-
>${this.description ? g`${
|
|
8865
|
+
>${this.description ? g`${z(this.description)}` : ""}</slot
|
|
8850
8866
|
>
|
|
8851
8867
|
`;
|
|
8852
8868
|
}
|
|
8853
8869
|
};
|
|
8854
8870
|
at.styles = [
|
|
8855
8871
|
Lt,
|
|
8856
|
-
|
|
8857
|
-
Os,
|
|
8872
|
+
vi,
|
|
8858
8873
|
Ds,
|
|
8859
|
-
|
|
8874
|
+
ks,
|
|
8875
|
+
ts,
|
|
8860
8876
|
P`
|
|
8861
8877
|
textarea {
|
|
8862
8878
|
overflow-y: auto !important;
|
|
@@ -8904,19 +8920,19 @@ ut([
|
|
|
8904
8920
|
M()
|
|
8905
8921
|
], at.prototype, "hasLabel", 2);
|
|
8906
8922
|
at = ut([
|
|
8907
|
-
_(
|
|
8923
|
+
_(kl)
|
|
8908
8924
|
], at);
|
|
8909
|
-
var
|
|
8910
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
8925
|
+
var Ll = Object.defineProperty, El = Object.getOwnPropertyDescriptor, Nl = (r, t, s, i) => {
|
|
8926
|
+
for (var e = i > 1 ? void 0 : i ? El(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
8911
8927
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
8912
|
-
return i && e &&
|
|
8928
|
+
return i && e && Ll(t, s, e), e;
|
|
8913
8929
|
};
|
|
8914
|
-
let
|
|
8930
|
+
let Zs = class extends y {
|
|
8915
8931
|
render() {
|
|
8916
8932
|
return g`<slot></slot>`;
|
|
8917
8933
|
}
|
|
8918
8934
|
};
|
|
8919
|
-
|
|
8935
|
+
Zs.styles = [
|
|
8920
8936
|
P`
|
|
8921
8937
|
:host {
|
|
8922
8938
|
font-size: 1.15rem;
|
|
@@ -8929,16 +8945,16 @@ Ks.styles = [
|
|
|
8929
8945
|
}
|
|
8930
8946
|
`
|
|
8931
8947
|
];
|
|
8932
|
-
|
|
8948
|
+
Zs = Nl([
|
|
8933
8949
|
_("sonic-legend-description")
|
|
8934
|
-
],
|
|
8935
|
-
var
|
|
8936
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
8950
|
+
], Zs);
|
|
8951
|
+
var Tl = Object.defineProperty, jl = Object.getOwnPropertyDescriptor, we = (r, t, s, i) => {
|
|
8952
|
+
for (var e = i > 1 ? void 0 : i ? jl(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
8937
8953
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
8938
|
-
return i && e &&
|
|
8954
|
+
return i && e && Tl(t, s, e), e;
|
|
8939
8955
|
};
|
|
8940
|
-
const
|
|
8941
|
-
let
|
|
8956
|
+
const Ml = "sonic-legend";
|
|
8957
|
+
let Rt = class extends y {
|
|
8942
8958
|
constructor() {
|
|
8943
8959
|
super(...arguments), this.forceAutoFill = !1;
|
|
8944
8960
|
}
|
|
@@ -8961,15 +8977,15 @@ let Ft = class extends y {
|
|
|
8961
8977
|
</div>` : ""}
|
|
8962
8978
|
|
|
8963
8979
|
<div class="legend-content">
|
|
8964
|
-
${
|
|
8965
|
-
${this.description ? g`<sonic-legend-description>${
|
|
8980
|
+
${z(this.label ? this.label : "")}
|
|
8981
|
+
${this.description ? g`<sonic-legend-description>${z(this.description)}</sonic-legend-description>` : ""}
|
|
8966
8982
|
<slot></slot>
|
|
8967
8983
|
</div>
|
|
8968
8984
|
<slot name="suffix"></slot>
|
|
8969
8985
|
</legend>`;
|
|
8970
8986
|
}
|
|
8971
8987
|
};
|
|
8972
|
-
|
|
8988
|
+
Rt.styles = [
|
|
8973
8989
|
P`
|
|
8974
8990
|
:host {
|
|
8975
8991
|
--sc-legend-font-size: 1.5rem;
|
|
@@ -9009,29 +9025,29 @@ Ft.styles = [
|
|
|
9009
9025
|
];
|
|
9010
9026
|
we([
|
|
9011
9027
|
a({ type: Boolean })
|
|
9012
|
-
],
|
|
9028
|
+
], Rt.prototype, "forceAutoFill", 2);
|
|
9013
9029
|
we([
|
|
9014
9030
|
a()
|
|
9015
|
-
],
|
|
9031
|
+
], Rt.prototype, "description", 1);
|
|
9016
9032
|
we([
|
|
9017
9033
|
a()
|
|
9018
|
-
],
|
|
9034
|
+
], Rt.prototype, "label", 1);
|
|
9019
9035
|
we([
|
|
9020
9036
|
a({ type: String })
|
|
9021
|
-
],
|
|
9037
|
+
], Rt.prototype, "iconName", 2);
|
|
9022
9038
|
we([
|
|
9023
9039
|
a({ type: String })
|
|
9024
|
-
],
|
|
9040
|
+
], Rt.prototype, "iconLibrary", 2);
|
|
9025
9041
|
we([
|
|
9026
9042
|
a({ type: String })
|
|
9027
|
-
],
|
|
9028
|
-
|
|
9029
|
-
_(
|
|
9030
|
-
],
|
|
9031
|
-
var
|
|
9032
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
9043
|
+
], Rt.prototype, "iconPrefix", 2);
|
|
9044
|
+
Rt = we([
|
|
9045
|
+
_(Ml)
|
|
9046
|
+
], Rt);
|
|
9047
|
+
var Il = Object.defineProperty, zl = Object.getOwnPropertyDescriptor, Nt = (r, t, s, i) => {
|
|
9048
|
+
for (var e = i > 1 ? void 0 : i ? zl(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
9033
9049
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
9034
|
-
return i && e &&
|
|
9050
|
+
return i && e && Il(t, s, e), e;
|
|
9035
9051
|
};
|
|
9036
9052
|
const Rl = "sonic-fieldset";
|
|
9037
9053
|
let wt = class extends Y(y) {
|
|
@@ -9131,15 +9147,15 @@ Nt([
|
|
|
9131
9147
|
wt = Nt([
|
|
9132
9148
|
_(Rl)
|
|
9133
9149
|
], wt);
|
|
9134
|
-
var Fl = Object.defineProperty,
|
|
9135
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
9150
|
+
var Fl = Object.defineProperty, Ul = Object.getOwnPropertyDescriptor, wi = (r, t, s, i) => {
|
|
9151
|
+
for (var e = i > 1 ? void 0 : i ? Ul(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
9136
9152
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
9137
9153
|
return i && e && Fl(t, s, e), e;
|
|
9138
9154
|
};
|
|
9139
|
-
const
|
|
9140
|
-
let
|
|
9155
|
+
const Vl = "sonic-form-layout";
|
|
9156
|
+
let We = class extends Y(y) {
|
|
9141
9157
|
constructor() {
|
|
9142
|
-
super(...arguments), this._resizeController = new
|
|
9158
|
+
super(...arguments), this._resizeController = new Sr(this, {}), this.oneFormElement = !1;
|
|
9143
9159
|
}
|
|
9144
9160
|
onSlotChange() {
|
|
9145
9161
|
let r = this.slottedElements;
|
|
@@ -9151,12 +9167,12 @@ let qe = class extends Y(y) {
|
|
|
9151
9167
|
"cq--md": this.offsetWidth > 440,
|
|
9152
9168
|
"one-form-element": this.oneFormElement
|
|
9153
9169
|
};
|
|
9154
|
-
return g`<div class=${
|
|
9170
|
+
return g`<div class=${yi(r)}>
|
|
9155
9171
|
<slot @slotchange=${this.onSlotChange}></slot>
|
|
9156
9172
|
</div>`;
|
|
9157
9173
|
}
|
|
9158
9174
|
};
|
|
9159
|
-
|
|
9175
|
+
We.styles = [
|
|
9160
9176
|
P`
|
|
9161
9177
|
:host {
|
|
9162
9178
|
display: block;
|
|
@@ -9194,22 +9210,22 @@ qe.styles = [
|
|
|
9194
9210
|
}
|
|
9195
9211
|
`
|
|
9196
9212
|
];
|
|
9197
|
-
|
|
9213
|
+
wi([
|
|
9198
9214
|
ge({ flatten: !0 })
|
|
9199
|
-
],
|
|
9200
|
-
|
|
9215
|
+
], We.prototype, "slottedElements", 2);
|
|
9216
|
+
wi([
|
|
9201
9217
|
a({ type: Boolean })
|
|
9202
|
-
],
|
|
9203
|
-
|
|
9204
|
-
_(
|
|
9205
|
-
],
|
|
9206
|
-
var
|
|
9207
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
9218
|
+
], We.prototype, "oneFormElement", 2);
|
|
9219
|
+
We = wi([
|
|
9220
|
+
_(Vl)
|
|
9221
|
+
], We);
|
|
9222
|
+
var Bl = Object.defineProperty, Hl = Object.getOwnPropertyDescriptor, _i = (r, t, s, i) => {
|
|
9223
|
+
for (var e = i > 1 ? void 0 : i ? Hl(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
9208
9224
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
9209
|
-
return i && e &&
|
|
9225
|
+
return i && e && Bl(t, s, e), e;
|
|
9210
9226
|
};
|
|
9211
|
-
const
|
|
9212
|
-
let
|
|
9227
|
+
const ql = "sonic-form-actions";
|
|
9228
|
+
let Ke = class extends y {
|
|
9213
9229
|
constructor() {
|
|
9214
9230
|
super(...arguments), this.direction = "row", this.justify = "flex-start";
|
|
9215
9231
|
}
|
|
@@ -9221,7 +9237,7 @@ let We = class extends y {
|
|
|
9221
9237
|
return g`<slot style=${dt(r)}></slot>`;
|
|
9222
9238
|
}
|
|
9223
9239
|
};
|
|
9224
|
-
|
|
9240
|
+
Ke.styles = [
|
|
9225
9241
|
P`
|
|
9226
9242
|
:host {
|
|
9227
9243
|
display: block;
|
|
@@ -9233,21 +9249,21 @@ We.styles = [
|
|
|
9233
9249
|
}
|
|
9234
9250
|
`
|
|
9235
9251
|
];
|
|
9236
|
-
|
|
9252
|
+
_i([
|
|
9237
9253
|
a({ type: String })
|
|
9238
|
-
],
|
|
9239
|
-
|
|
9254
|
+
], Ke.prototype, "direction", 2);
|
|
9255
|
+
_i([
|
|
9240
9256
|
a({ type: String })
|
|
9241
|
-
],
|
|
9242
|
-
|
|
9243
|
-
_(
|
|
9244
|
-
],
|
|
9245
|
-
var
|
|
9246
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
9257
|
+
], Ke.prototype, "justify", 2);
|
|
9258
|
+
Ke = _i([
|
|
9259
|
+
_(ql)
|
|
9260
|
+
], Ke);
|
|
9261
|
+
var Wl = Object.defineProperty, Kl = Object.getOwnPropertyDescriptor, Xt = (r, t, s, i) => {
|
|
9262
|
+
for (var e = i > 1 ? void 0 : i ? Kl(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
9247
9263
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
9248
|
-
return i && e &&
|
|
9264
|
+
return i && e && Wl(t, s, e), e;
|
|
9249
9265
|
};
|
|
9250
|
-
const
|
|
9266
|
+
const Zl = "sonic-group";
|
|
9251
9267
|
let Dt = class extends y {
|
|
9252
9268
|
constructor() {
|
|
9253
9269
|
super(...arguments), this.alignItems = "center", this.hasDescription = !1, this.hasLabel = !1;
|
|
@@ -9274,21 +9290,21 @@ let Dt = class extends y {
|
|
|
9274
9290
|
alignItems: this.alignItems
|
|
9275
9291
|
};
|
|
9276
9292
|
return g`<span class="${this.hasLabel ? "form-label" : "hidden"}"
|
|
9277
|
-
>${this.label ?
|
|
9293
|
+
>${this.label ? z(
|
|
9278
9294
|
this.label
|
|
9279
9295
|
/*+ labelStarSuffix*/
|
|
9280
9296
|
) : ""}<slot name="label" @slotchange=${this.hasSlotOrProps}></slot
|
|
9281
9297
|
></span>
|
|
9282
9298
|
<slot class="main-slot" style=${dt(r)}></slot>
|
|
9283
9299
|
<slot name="description" @slotchange=${this.hasSlotOrProps} class="${this.hasDescription ? "form-description" : "hidden"}">
|
|
9284
|
-
${this.description ? g`${
|
|
9300
|
+
${this.description ? g`${z(this.description)}` : ""}
|
|
9285
9301
|
</slot>`;
|
|
9286
9302
|
}
|
|
9287
9303
|
};
|
|
9288
9304
|
Dt.styles = [
|
|
9289
9305
|
Lt,
|
|
9290
|
-
Os,
|
|
9291
9306
|
Ds,
|
|
9307
|
+
ks,
|
|
9292
9308
|
P`
|
|
9293
9309
|
:host {
|
|
9294
9310
|
display: inline-block;
|
|
@@ -9310,36 +9326,36 @@ Dt.styles = [
|
|
|
9310
9326
|
}
|
|
9311
9327
|
`
|
|
9312
9328
|
];
|
|
9313
|
-
|
|
9329
|
+
Xt([
|
|
9314
9330
|
a({ type: String })
|
|
9315
9331
|
], Dt.prototype, "alignItems", 2);
|
|
9316
|
-
|
|
9332
|
+
Xt([
|
|
9317
9333
|
a({ type: String })
|
|
9318
9334
|
], Dt.prototype, "label", 2);
|
|
9319
|
-
|
|
9335
|
+
Xt([
|
|
9320
9336
|
a({ type: String })
|
|
9321
9337
|
], Dt.prototype, "description", 2);
|
|
9322
|
-
|
|
9338
|
+
Xt([
|
|
9323
9339
|
lt({ slot: "label", flatten: !0 })
|
|
9324
9340
|
], Dt.prototype, "slotLabelNodes", 2);
|
|
9325
|
-
|
|
9341
|
+
Xt([
|
|
9326
9342
|
lt({ slot: "description", flatten: !0 })
|
|
9327
9343
|
], Dt.prototype, "slotDescriptionNodes", 2);
|
|
9328
|
-
|
|
9344
|
+
Xt([
|
|
9329
9345
|
M()
|
|
9330
9346
|
], Dt.prototype, "hasDescription", 2);
|
|
9331
|
-
|
|
9347
|
+
Xt([
|
|
9332
9348
|
M()
|
|
9333
9349
|
], Dt.prototype, "hasLabel", 2);
|
|
9334
|
-
Dt =
|
|
9335
|
-
_(
|
|
9350
|
+
Dt = Xt([
|
|
9351
|
+
_(Zl)
|
|
9336
9352
|
], Dt);
|
|
9337
|
-
var
|
|
9338
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
9353
|
+
var Gl = Object.defineProperty, Yl = Object.getOwnPropertyDescriptor, Tt = (r, t, s, i) => {
|
|
9354
|
+
for (var e = i > 1 ? void 0 : i ? Yl(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
9339
9355
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
9340
|
-
return i && e &&
|
|
9356
|
+
return i && e && Gl(t, s, e), e;
|
|
9341
9357
|
};
|
|
9342
|
-
const
|
|
9358
|
+
const Ql = "sonic-image";
|
|
9343
9359
|
let _t = class extends y {
|
|
9344
9360
|
constructor() {
|
|
9345
9361
|
super(...arguments), this.rounded = "none", this.src = "", this.alt = "", this.loading = "lazy", this.ratio = "auto", this.objectPosition = "center center", this.imageRendering = "auto", this.cover = !1;
|
|
@@ -9473,14 +9489,14 @@ Tt([
|
|
|
9473
9489
|
a({ type: Boolean, reflect: !0 })
|
|
9474
9490
|
], _t.prototype, "cover", 2);
|
|
9475
9491
|
_t = Tt([
|
|
9476
|
-
_(
|
|
9492
|
+
_(Ql)
|
|
9477
9493
|
], _t);
|
|
9478
|
-
var
|
|
9494
|
+
var Jl = Object.defineProperty, Xl = Object.getOwnPropertyDescriptor, vt = (r, t, s, i) => {
|
|
9479
9495
|
for (var e = i > 1 ? void 0 : i ? Xl(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
9480
9496
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
9481
|
-
return i && e &&
|
|
9497
|
+
return i && e && Jl(t, s, e), e;
|
|
9482
9498
|
};
|
|
9483
|
-
const
|
|
9499
|
+
const tc = "sonic-menu";
|
|
9484
9500
|
let ct = class extends y {
|
|
9485
9501
|
constructor() {
|
|
9486
9502
|
super(...arguments), this.size = "", this.direction = "column", this.gap = "var(--sc-menu-gap)", this.align = "left", this.shadow = null, this.moreShape = "circle", this.scrollable = !1, this.observer = null, this.minWidth = "0", this.hasMoreElements = !1, this.updateIsScollable = () => {
|
|
@@ -9683,15 +9699,15 @@ vt([
|
|
|
9683
9699
|
M()
|
|
9684
9700
|
], ct.prototype, "hasMoreElements", 2);
|
|
9685
9701
|
ct = vt([
|
|
9686
|
-
_(
|
|
9702
|
+
_(tc)
|
|
9687
9703
|
], ct);
|
|
9688
|
-
var
|
|
9689
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
9704
|
+
var ec = Object.defineProperty, sc = Object.getOwnPropertyDescriptor, Or = (r, t, s, i) => {
|
|
9705
|
+
for (var e = i > 1 ? void 0 : i ? sc(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
9690
9706
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
9691
|
-
return i && e &&
|
|
9707
|
+
return i && e && ec(t, s, e), e;
|
|
9692
9708
|
};
|
|
9693
|
-
const
|
|
9694
|
-
let
|
|
9709
|
+
const ic = "sonic-modal-actions";
|
|
9710
|
+
let xs = class extends y {
|
|
9695
9711
|
firstUpdated(r) {
|
|
9696
9712
|
var t;
|
|
9697
9713
|
(t = this.buttons) == null || t.forEach((s) => {
|
|
@@ -9707,7 +9723,7 @@ let _s = class extends y {
|
|
|
9707
9723
|
return g`<slot></slot>`;
|
|
9708
9724
|
}
|
|
9709
9725
|
};
|
|
9710
|
-
|
|
9726
|
+
xs.styles = [
|
|
9711
9727
|
P`
|
|
9712
9728
|
:host {
|
|
9713
9729
|
display: flex;
|
|
@@ -9717,19 +9733,19 @@ _s.styles = [
|
|
|
9717
9733
|
}
|
|
9718
9734
|
`
|
|
9719
9735
|
];
|
|
9720
|
-
|
|
9736
|
+
Or([
|
|
9721
9737
|
ge({ selector: "sonic-button" })
|
|
9722
|
-
],
|
|
9723
|
-
|
|
9724
|
-
_(
|
|
9725
|
-
],
|
|
9726
|
-
var
|
|
9727
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
9738
|
+
], xs.prototype, "buttons", 2);
|
|
9739
|
+
xs = Or([
|
|
9740
|
+
_(ic)
|
|
9741
|
+
], xs);
|
|
9742
|
+
var rc = Object.defineProperty, oc = Object.getOwnPropertyDescriptor, Dr = (r, t, s, i) => {
|
|
9743
|
+
for (var e = i > 1 ? void 0 : i ? oc(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
9728
9744
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
9729
|
-
return i && e &&
|
|
9745
|
+
return i && e && rc(t, s, e), e;
|
|
9730
9746
|
};
|
|
9731
|
-
const
|
|
9732
|
-
let
|
|
9747
|
+
const nc = "sonic-modal-close";
|
|
9748
|
+
let Ps = class extends y {
|
|
9733
9749
|
render() {
|
|
9734
9750
|
return g`<sonic-button reset=${x(this.reset)} shape="circle" @click=${this.handleClick}
|
|
9735
9751
|
><sonic-icon name="cancel" size="lg"></sonic-icon
|
|
@@ -9739,7 +9755,7 @@ let xs = class extends y {
|
|
|
9739
9755
|
rt.getClosestElement(this, "sonic-modal").hide();
|
|
9740
9756
|
}
|
|
9741
9757
|
};
|
|
9742
|
-
|
|
9758
|
+
Ps.styles = [
|
|
9743
9759
|
P`
|
|
9744
9760
|
:host {
|
|
9745
9761
|
position: sticky;
|
|
@@ -9753,24 +9769,24 @@ xs.styles = [
|
|
|
9753
9769
|
}
|
|
9754
9770
|
`
|
|
9755
9771
|
];
|
|
9756
|
-
|
|
9772
|
+
Dr([
|
|
9757
9773
|
a()
|
|
9758
|
-
],
|
|
9759
|
-
|
|
9760
|
-
_(
|
|
9761
|
-
],
|
|
9762
|
-
var
|
|
9763
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
9774
|
+
], Ps.prototype, "reset", 2);
|
|
9775
|
+
Ps = Dr([
|
|
9776
|
+
_(nc)
|
|
9777
|
+
], Ps);
|
|
9778
|
+
var ac = Object.defineProperty, lc = Object.getOwnPropertyDescriptor, cc = (r, t, s, i) => {
|
|
9779
|
+
for (var e = i > 1 ? void 0 : i ? lc(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
9764
9780
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
9765
|
-
return i && e &&
|
|
9781
|
+
return i && e && ac(t, s, e), e;
|
|
9766
9782
|
};
|
|
9767
|
-
const
|
|
9768
|
-
let
|
|
9783
|
+
const hc = "sonic-modal-content";
|
|
9784
|
+
let Gs = class extends y {
|
|
9769
9785
|
render() {
|
|
9770
9786
|
return g`<slot></slot>`;
|
|
9771
9787
|
}
|
|
9772
9788
|
};
|
|
9773
|
-
|
|
9789
|
+
Gs.styles = [
|
|
9774
9790
|
P`
|
|
9775
9791
|
:host {
|
|
9776
9792
|
display: block;
|
|
@@ -9778,21 +9794,21 @@ Zs.styles = [
|
|
|
9778
9794
|
}
|
|
9779
9795
|
`
|
|
9780
9796
|
];
|
|
9781
|
-
|
|
9782
|
-
_(
|
|
9783
|
-
],
|
|
9784
|
-
var
|
|
9785
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
9797
|
+
Gs = cc([
|
|
9798
|
+
_(hc)
|
|
9799
|
+
], Gs);
|
|
9800
|
+
var dc = Object.defineProperty, pc = Object.getOwnPropertyDescriptor, uc = (r, t, s, i) => {
|
|
9801
|
+
for (var e = i > 1 ? void 0 : i ? pc(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
9786
9802
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
9787
|
-
return i && e &&
|
|
9803
|
+
return i && e && dc(t, s, e), e;
|
|
9788
9804
|
};
|
|
9789
|
-
const
|
|
9790
|
-
let
|
|
9805
|
+
const fc = "sonic-modal-subtitle";
|
|
9806
|
+
let Ys = class extends y {
|
|
9791
9807
|
render() {
|
|
9792
9808
|
return g`<slot></slot>`;
|
|
9793
9809
|
}
|
|
9794
9810
|
};
|
|
9795
|
-
|
|
9811
|
+
Ys.styles = [
|
|
9796
9812
|
P`
|
|
9797
9813
|
:host {
|
|
9798
9814
|
font-size: 1.1rem;
|
|
@@ -9804,21 +9820,21 @@ Gs.styles = [
|
|
|
9804
9820
|
}
|
|
9805
9821
|
`
|
|
9806
9822
|
];
|
|
9807
|
-
|
|
9808
|
-
_(
|
|
9809
|
-
],
|
|
9810
|
-
var
|
|
9811
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
9823
|
+
Ys = uc([
|
|
9824
|
+
_(fc)
|
|
9825
|
+
], Ys);
|
|
9826
|
+
var gc = Object.defineProperty, mc = Object.getOwnPropertyDescriptor, bc = (r, t, s, i) => {
|
|
9827
|
+
for (var e = i > 1 ? void 0 : i ? mc(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
9812
9828
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
9813
|
-
return i && e &&
|
|
9829
|
+
return i && e && gc(t, s, e), e;
|
|
9814
9830
|
};
|
|
9815
|
-
const
|
|
9816
|
-
let
|
|
9831
|
+
const vc = "sonic-modal-title";
|
|
9832
|
+
let Qs = class extends y {
|
|
9817
9833
|
render() {
|
|
9818
9834
|
return g`<slot></slot>`;
|
|
9819
9835
|
}
|
|
9820
9836
|
};
|
|
9821
|
-
|
|
9837
|
+
Qs.styles = [
|
|
9822
9838
|
P`
|
|
9823
9839
|
:host {
|
|
9824
9840
|
font-weight: bold;
|
|
@@ -9829,28 +9845,28 @@ Ys.styles = [
|
|
|
9829
9845
|
}
|
|
9830
9846
|
`
|
|
9831
9847
|
];
|
|
9832
|
-
|
|
9833
|
-
_(
|
|
9834
|
-
],
|
|
9835
|
-
var
|
|
9836
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
9848
|
+
Qs = bc([
|
|
9849
|
+
_(vc)
|
|
9850
|
+
], Qs);
|
|
9851
|
+
var yc = Object.defineProperty, wc = Object.getOwnPropertyDescriptor, tt = (r, t, s, i) => {
|
|
9852
|
+
for (var e = i > 1 ? void 0 : i ? wc(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
9837
9853
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
9838
|
-
return i && e &&
|
|
9854
|
+
return i && e && yc(t, s, e), e;
|
|
9839
9855
|
};
|
|
9840
|
-
const
|
|
9841
|
-
let
|
|
9856
|
+
const kr = "sonic-modal";
|
|
9857
|
+
let R = class extends Y(y) {
|
|
9842
9858
|
constructor() {
|
|
9843
9859
|
super(...arguments), this.forceAction = !1, this.removeOnHide = !1, this.removeHashOnHide = !1, this.align = "left", this.padding = "var(--sc-modal-py) var(--sc-modal-px)", this.maxWidth = "var(--sc-modal-max-w) ", this.maxHeight = "var(--sc-modal-max-h) ", this.width = "100%", this.height = "auto", this.zIndex = "var(--sc-modal-z-index)", this.fullScreen = !1, this.visible = !1;
|
|
9844
9860
|
}
|
|
9845
9861
|
static create(r) {
|
|
9846
|
-
const t = document.createElement(
|
|
9862
|
+
const t = document.createElement(kr);
|
|
9847
9863
|
return t.options = r, r.removeHashOnHide === !0 && t.setAttribute("removeHashOnHide", "true"), r.removeOnHide === !0 && t.setAttribute("removeOnHide", "true"), r.maxWidth && (t.maxWidth = r == null ? void 0 : r.maxWidth), r.width && (t.width = r == null ? void 0 : r.width), r.maxHeight && (t.maxHeight = r == null ? void 0 : r.maxHeight), r.height && (t.height = r == null ? void 0 : r.height), r.forceAction && (t.forceAction = !0), r.paddingX && t.style.setProperty("--sc-modal-px", r == null ? void 0 : r.paddingX), r.paddingY && t.style.setProperty("--sc-modal-py", r == null ? void 0 : r.paddingY), r.zIndex && t.style.setProperty("--sc-modal-z-index", r == null ? void 0 : r.zIndex), ft.getPopContainer().appendChild(t), t.show(), t;
|
|
9848
9864
|
}
|
|
9849
9865
|
connectedCallback() {
|
|
9850
|
-
|
|
9866
|
+
R.modals.push(this), super.connectedCallback(), this.handleFullsceen();
|
|
9851
9867
|
}
|
|
9852
9868
|
disconnectedCallback() {
|
|
9853
|
-
|
|
9869
|
+
R.modals.splice(R.modals.indexOf(this), 1), super.disconnectedCallback();
|
|
9854
9870
|
}
|
|
9855
9871
|
updated() {
|
|
9856
9872
|
const r = this;
|
|
@@ -9889,8 +9905,8 @@ let F = class extends Y(y) {
|
|
|
9889
9905
|
return g`<div
|
|
9890
9906
|
class="modal-wrapper"
|
|
9891
9907
|
style=${dt(t)}
|
|
9892
|
-
${
|
|
9893
|
-
out:
|
|
9908
|
+
${cs({
|
|
9909
|
+
out: Bo
|
|
9894
9910
|
})}
|
|
9895
9911
|
tabindex="0"
|
|
9896
9912
|
>
|
|
@@ -9898,7 +9914,7 @@ let F = class extends Y(y) {
|
|
|
9898
9914
|
part="modal"
|
|
9899
9915
|
class="modal custom-scroll"
|
|
9900
9916
|
style=${dt(r)}
|
|
9901
|
-
${
|
|
9917
|
+
${cs({
|
|
9902
9918
|
keyframeOptions: {
|
|
9903
9919
|
duration: 400,
|
|
9904
9920
|
easing: "cubic-bezier(0.250, 0.250, 0.420, 1.225)"
|
|
@@ -9918,11 +9934,11 @@ let F = class extends Y(y) {
|
|
|
9918
9934
|
<div
|
|
9919
9935
|
class="overlay"
|
|
9920
9936
|
@click="${this.forceAction ? null : this.hide}"
|
|
9921
|
-
${
|
|
9937
|
+
${cs({
|
|
9922
9938
|
keyframeOptions: {
|
|
9923
9939
|
duration: 500
|
|
9924
9940
|
},
|
|
9925
|
-
in:
|
|
9941
|
+
in: Ho,
|
|
9926
9942
|
out: [{ opacity: 0, pointerEvents: "none" }]
|
|
9927
9943
|
})}
|
|
9928
9944
|
></div>`;
|
|
@@ -9933,7 +9949,7 @@ let F = class extends Y(y) {
|
|
|
9933
9949
|
if (!t)
|
|
9934
9950
|
return $;
|
|
9935
9951
|
let s;
|
|
9936
|
-
switch (t instanceof Object ? s = t : s =
|
|
9952
|
+
switch (t instanceof Object ? s = t : s = z(t), r) {
|
|
9937
9953
|
case "title":
|
|
9938
9954
|
return g`<sonic-modal-title>${s}</sonic-modal-title>`;
|
|
9939
9955
|
case "subtitle":
|
|
@@ -9952,7 +9968,7 @@ let F = class extends Y(y) {
|
|
|
9952
9968
|
}
|
|
9953
9969
|
hide() {
|
|
9954
9970
|
var r;
|
|
9955
|
-
this.visible = !1, (r = this.modalElement) == null || r.setAttribute("tabindex", "-1"), this.dispatchEvent(new CustomEvent("hide")), this.hasAttribute("resetDataProviderOnHide") &&
|
|
9971
|
+
this.visible = !1, (r = this.modalElement) == null || r.setAttribute("tabindex", "-1"), this.dispatchEvent(new CustomEvent("hide")), this.hasAttribute("resetDataProviderOnHide") && J.get(this.getAttribute("resetDataProviderOnHide")).set({}), this.removeOnHide && this.remove(), setTimeout(() => {
|
|
9956
9972
|
this.dispatchEvent(new CustomEvent("hidden")), this.removeHashOnHide && window.history.replaceState({}, "", window.location.pathname);
|
|
9957
9973
|
}, 480);
|
|
9958
9974
|
}
|
|
@@ -9960,12 +9976,12 @@ let F = class extends Y(y) {
|
|
|
9960
9976
|
this.hide(), this.remove();
|
|
9961
9977
|
}
|
|
9962
9978
|
static disposeAll() {
|
|
9963
|
-
|
|
9979
|
+
R.modals.forEach((r) => {
|
|
9964
9980
|
r.dispose();
|
|
9965
9981
|
});
|
|
9966
9982
|
}
|
|
9967
9983
|
handleEscape(r) {
|
|
9968
|
-
r.key === "Escape" &&
|
|
9984
|
+
r.key === "Escape" && R.modals.forEach((t) => {
|
|
9969
9985
|
t.forceAction || t.hide();
|
|
9970
9986
|
});
|
|
9971
9987
|
}
|
|
@@ -9973,8 +9989,8 @@ let F = class extends Y(y) {
|
|
|
9973
9989
|
this.fullScreen && (this.width = "100%", this.height = "100%", this.maxWidth = "none", this.maxHeight = "none");
|
|
9974
9990
|
}
|
|
9975
9991
|
};
|
|
9976
|
-
|
|
9977
|
-
|
|
9992
|
+
R.styles = [
|
|
9993
|
+
ts,
|
|
9978
9994
|
P`
|
|
9979
9995
|
:host {
|
|
9980
9996
|
--sc-modal-py: 2.5rem;
|
|
@@ -10090,71 +10106,71 @@ F.styles = [
|
|
|
10090
10106
|
}
|
|
10091
10107
|
`
|
|
10092
10108
|
];
|
|
10093
|
-
|
|
10109
|
+
R.modals = [];
|
|
10094
10110
|
tt([
|
|
10095
10111
|
a({ type: Boolean })
|
|
10096
|
-
],
|
|
10112
|
+
], R.prototype, "forceAction", 2);
|
|
10097
10113
|
tt([
|
|
10098
10114
|
a({ type: Boolean })
|
|
10099
|
-
],
|
|
10115
|
+
], R.prototype, "removeOnHide", 2);
|
|
10100
10116
|
tt([
|
|
10101
10117
|
a({ type: Boolean })
|
|
10102
|
-
],
|
|
10118
|
+
], R.prototype, "removeHashOnHide", 2);
|
|
10103
10119
|
tt([
|
|
10104
10120
|
a({ type: String, reflect: !0 })
|
|
10105
|
-
],
|
|
10121
|
+
], R.prototype, "align", 2);
|
|
10106
10122
|
tt([
|
|
10107
10123
|
a({ type: String })
|
|
10108
|
-
],
|
|
10124
|
+
], R.prototype, "padding", 2);
|
|
10109
10125
|
tt([
|
|
10110
10126
|
a({ type: String })
|
|
10111
|
-
],
|
|
10127
|
+
], R.prototype, "maxWidth", 2);
|
|
10112
10128
|
tt([
|
|
10113
10129
|
a({ type: String })
|
|
10114
|
-
],
|
|
10130
|
+
], R.prototype, "maxHeight", 2);
|
|
10115
10131
|
tt([
|
|
10116
10132
|
a({ type: String })
|
|
10117
|
-
],
|
|
10133
|
+
], R.prototype, "width", 2);
|
|
10118
10134
|
tt([
|
|
10119
10135
|
a({ type: String })
|
|
10120
|
-
],
|
|
10136
|
+
], R.prototype, "height", 2);
|
|
10121
10137
|
tt([
|
|
10122
10138
|
a({ type: String })
|
|
10123
|
-
],
|
|
10139
|
+
], R.prototype, "zIndex", 2);
|
|
10124
10140
|
tt([
|
|
10125
10141
|
a({ type: Object })
|
|
10126
|
-
],
|
|
10142
|
+
], R.prototype, "options", 2);
|
|
10127
10143
|
tt([
|
|
10128
10144
|
a({ type: Boolean, reflect: !0 })
|
|
10129
|
-
],
|
|
10145
|
+
], R.prototype, "fullScreen", 2);
|
|
10130
10146
|
tt([
|
|
10131
10147
|
a({ type: Boolean, reflect: !0 })
|
|
10132
|
-
],
|
|
10148
|
+
], R.prototype, "visible", 2);
|
|
10133
10149
|
tt([
|
|
10134
10150
|
fe(".modal-wrapper")
|
|
10135
|
-
],
|
|
10151
|
+
], R.prototype, "modalWrapper", 2);
|
|
10136
10152
|
tt([
|
|
10137
10153
|
fe(".modal")
|
|
10138
|
-
],
|
|
10154
|
+
], R.prototype, "modalElement", 2);
|
|
10139
10155
|
tt([
|
|
10140
10156
|
ge({ selector: "sonic-modal-close" })
|
|
10141
|
-
],
|
|
10142
|
-
|
|
10143
|
-
_(
|
|
10144
|
-
],
|
|
10145
|
-
typeof window < "u" && (window.SonicModal =
|
|
10146
|
-
var
|
|
10147
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
10157
|
+
], R.prototype, "closeBtn", 2);
|
|
10158
|
+
R = tt([
|
|
10159
|
+
_(kr)
|
|
10160
|
+
], R);
|
|
10161
|
+
typeof window < "u" && (window.SonicModal = R);
|
|
10162
|
+
var _c = Object.defineProperty, xc = Object.getOwnPropertyDescriptor, jt = (r, t, s, i) => {
|
|
10163
|
+
for (var e = i > 1 ? void 0 : i ? xc(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
10148
10164
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
10149
|
-
return i && e &&
|
|
10165
|
+
return i && e && _c(t, s, e), e;
|
|
10150
10166
|
};
|
|
10151
|
-
const
|
|
10167
|
+
const Pc = {
|
|
10152
10168
|
warning: "warning-circled-outline",
|
|
10153
10169
|
success: "check-circled-outline",
|
|
10154
10170
|
error: "warning-circled-outline",
|
|
10155
10171
|
info: "info-empty",
|
|
10156
10172
|
default: "info-empty"
|
|
10157
|
-
},
|
|
10173
|
+
}, $c = "sonic-alert";
|
|
10158
10174
|
let xt = class extends y {
|
|
10159
10175
|
constructor() {
|
|
10160
10176
|
super(...arguments), this.label = "", this.noIcon = !1, this.text = "", this.id = (/* @__PURE__ */ new Date()).getTime().toString(), this.dismissible = !1, this.background = !1, this.status = "default", this.dismissForever = !1;
|
|
@@ -10167,10 +10183,10 @@ let xt = class extends y {
|
|
|
10167
10183
|
}
|
|
10168
10184
|
return g`<div part="alert" class="alert">
|
|
10169
10185
|
<slot name="icon" class="${this.noIcon ? "hidden" : $}"
|
|
10170
|
-
>${this.noIcon ? $ : g`<div>${this.status && g`<sonic-icon name=${
|
|
10186
|
+
>${this.noIcon ? $ : g`<div>${this.status && g`<sonic-icon name=${Pc[this.status]}></sonic-icon>`}</div>`}</slot
|
|
10171
10187
|
>
|
|
10172
10188
|
<div>
|
|
10173
|
-
${this.label ? g`<span class="label">${
|
|
10189
|
+
${this.label ? g`<span class="label">${z(this.label)}</span>` : $}
|
|
10174
10190
|
<div>${this.text}<slot></slot></div>
|
|
10175
10191
|
</div>
|
|
10176
10192
|
${this.dismissible ? g`<sonic-button @click=${this.close} class="close-btn" variant="unstyled" shape="circle">
|
|
@@ -10309,15 +10325,15 @@ jt([
|
|
|
10309
10325
|
a({ type: Boolean, reflect: !0 })
|
|
10310
10326
|
], xt.prototype, "dismissForever", 2);
|
|
10311
10327
|
xt = jt([
|
|
10312
|
-
_(
|
|
10328
|
+
_($c)
|
|
10313
10329
|
], xt);
|
|
10314
|
-
var
|
|
10315
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
10330
|
+
var Cc = Object.defineProperty, Ac = Object.getOwnPropertyDescriptor, Lr = (r, t, s, i) => {
|
|
10331
|
+
for (var e = i > 1 ? void 0 : i ? Ac(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
10316
10332
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
10317
|
-
return i && e &&
|
|
10333
|
+
return i && e && Cc(t, s, e), e;
|
|
10318
10334
|
};
|
|
10319
|
-
const
|
|
10320
|
-
let
|
|
10335
|
+
const Sc = "sonic-toast-message-subscriber";
|
|
10336
|
+
let Js = class extends Y(y) {
|
|
10321
10337
|
constructor() {
|
|
10322
10338
|
super(...arguments), this._messages = [];
|
|
10323
10339
|
}
|
|
@@ -10333,18 +10349,18 @@ let Qs = class extends Y(y) {
|
|
|
10333
10349
|
return $;
|
|
10334
10350
|
}
|
|
10335
10351
|
};
|
|
10336
|
-
|
|
10352
|
+
Lr([
|
|
10337
10353
|
a({ type: Array })
|
|
10338
|
-
],
|
|
10339
|
-
|
|
10340
|
-
_(
|
|
10341
|
-
],
|
|
10342
|
-
var
|
|
10343
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
10354
|
+
], Js.prototype, "messages", 1);
|
|
10355
|
+
Js = Lr([
|
|
10356
|
+
_(Sc)
|
|
10357
|
+
], Js);
|
|
10358
|
+
var Oc = Object.defineProperty, Dc = Object.getOwnPropertyDescriptor, is = (r, t, s, i) => {
|
|
10359
|
+
for (var e = i > 1 ? void 0 : i ? Dc(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
10344
10360
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
10345
|
-
return i && e &&
|
|
10361
|
+
return i && e && Oc(t, s, e), e;
|
|
10346
10362
|
};
|
|
10347
|
-
const
|
|
10363
|
+
const kc = "sonic-tooltip";
|
|
10348
10364
|
let pe = class extends y {
|
|
10349
10365
|
constructor() {
|
|
10350
10366
|
super(...arguments), this.label = "", this.disabled = !1, this.focusable = !1;
|
|
@@ -10431,27 +10447,27 @@ pe.styles = [
|
|
|
10431
10447
|
}
|
|
10432
10448
|
`
|
|
10433
10449
|
];
|
|
10434
|
-
|
|
10450
|
+
is([
|
|
10435
10451
|
a({ type: String })
|
|
10436
10452
|
], pe.prototype, "label", 2);
|
|
10437
|
-
|
|
10453
|
+
is([
|
|
10438
10454
|
a({ type: String, reflect: !0 })
|
|
10439
10455
|
], pe.prototype, "placement", 2);
|
|
10440
|
-
|
|
10456
|
+
is([
|
|
10441
10457
|
a({ type: Boolean })
|
|
10442
10458
|
], pe.prototype, "disabled", 2);
|
|
10443
|
-
|
|
10459
|
+
is([
|
|
10444
10460
|
a({ type: Boolean })
|
|
10445
10461
|
], pe.prototype, "focusable", 2);
|
|
10446
|
-
pe =
|
|
10447
|
-
_(
|
|
10462
|
+
pe = is([
|
|
10463
|
+
_(kc)
|
|
10448
10464
|
], pe);
|
|
10449
|
-
var
|
|
10450
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
10465
|
+
var Lc = Object.defineProperty, Ec = Object.getOwnPropertyDescriptor, Mt = (r, t, s, i) => {
|
|
10466
|
+
for (var e = i > 1 ? void 0 : i ? Ec(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
10451
10467
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
10452
|
-
return i && e &&
|
|
10468
|
+
return i && e && Lc(t, s, e), e;
|
|
10453
10469
|
};
|
|
10454
|
-
const
|
|
10470
|
+
const Nc = "sonic-divider";
|
|
10455
10471
|
let Pt = class extends y {
|
|
10456
10472
|
constructor() {
|
|
10457
10473
|
super(...arguments), this.label = "", this.align = "center", this.vertical = !1, this.noMargin = !1, this.dashed = !1, this.dotted = !1;
|
|
@@ -10462,7 +10478,7 @@ let Pt = class extends y {
|
|
|
10462
10478
|
}
|
|
10463
10479
|
render() {
|
|
10464
10480
|
return g`<div part="divider">
|
|
10465
|
-
<span class="text">${
|
|
10481
|
+
<span class="text">${z(this.label ? this.label : "")}<slot></slot></span>
|
|
10466
10482
|
</div>`;
|
|
10467
10483
|
}
|
|
10468
10484
|
};
|
|
@@ -10623,14 +10639,14 @@ Mt([
|
|
|
10623
10639
|
a({ type: Boolean, reflect: !0 })
|
|
10624
10640
|
], Pt.prototype, "dotted", 2);
|
|
10625
10641
|
Pt = Mt([
|
|
10626
|
-
_(
|
|
10642
|
+
_(Nc)
|
|
10627
10643
|
], Pt);
|
|
10628
|
-
var
|
|
10629
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
10644
|
+
var Tc = Object.defineProperty, jc = Object.getOwnPropertyDescriptor, Mc = (r, t, s, i) => {
|
|
10645
|
+
for (var e = i > 1 ? void 0 : i ? jc(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
10630
10646
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
10631
|
-
return i && e &&
|
|
10647
|
+
return i && e && Tc(t, s, e), e;
|
|
10632
10648
|
};
|
|
10633
|
-
const
|
|
10649
|
+
const Ic = "sonic-card-header-description";
|
|
10634
10650
|
let Xs = class extends y {
|
|
10635
10651
|
render() {
|
|
10636
10652
|
return g`
|
|
@@ -10650,22 +10666,22 @@ Xs.styles = [
|
|
|
10650
10666
|
}
|
|
10651
10667
|
`
|
|
10652
10668
|
];
|
|
10653
|
-
Xs =
|
|
10654
|
-
_(
|
|
10669
|
+
Xs = Mc([
|
|
10670
|
+
_(Ic)
|
|
10655
10671
|
], Xs);
|
|
10656
|
-
var
|
|
10672
|
+
var zc = Object.defineProperty, Rc = Object.getOwnPropertyDescriptor, xi = (r, t, s, i) => {
|
|
10657
10673
|
for (var e = i > 1 ? void 0 : i ? Rc(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
10658
10674
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
10659
|
-
return i && e &&
|
|
10675
|
+
return i && e && zc(t, s, e), e;
|
|
10660
10676
|
};
|
|
10661
10677
|
const Fc = "sonic-card-header";
|
|
10662
|
-
let
|
|
10678
|
+
let Ze = class extends y {
|
|
10663
10679
|
render() {
|
|
10664
10680
|
return g`
|
|
10665
10681
|
<div class="header">
|
|
10666
10682
|
<div class="header-content">
|
|
10667
|
-
${
|
|
10668
|
-
${this.description ? g`<sonic-card-header-description>${
|
|
10683
|
+
${z(this.label)}
|
|
10684
|
+
${this.description ? g`<sonic-card-header-description>${z(this.description)}</sonic-card-header-description>` : ""}
|
|
10669
10685
|
<slot></slot>
|
|
10670
10686
|
</div>
|
|
10671
10687
|
<slot name="suffix"></slot>
|
|
@@ -10673,7 +10689,7 @@ let Ke = class extends y {
|
|
|
10673
10689
|
`;
|
|
10674
10690
|
}
|
|
10675
10691
|
};
|
|
10676
|
-
|
|
10692
|
+
Ze.styles = [
|
|
10677
10693
|
P`
|
|
10678
10694
|
:host {
|
|
10679
10695
|
--sc-card-header-mb: 1.35rem;
|
|
@@ -10709,22 +10725,22 @@ Ke.styles = [
|
|
|
10709
10725
|
}
|
|
10710
10726
|
`
|
|
10711
10727
|
];
|
|
10712
|
-
|
|
10728
|
+
xi([
|
|
10713
10729
|
a()
|
|
10714
|
-
],
|
|
10715
|
-
|
|
10730
|
+
], Ze.prototype, "label", 2);
|
|
10731
|
+
xi([
|
|
10716
10732
|
a()
|
|
10717
|
-
],
|
|
10718
|
-
|
|
10733
|
+
], Ze.prototype, "description", 2);
|
|
10734
|
+
Ze = xi([
|
|
10719
10735
|
_(Fc)
|
|
10720
|
-
],
|
|
10721
|
-
var
|
|
10722
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
10736
|
+
], Ze);
|
|
10737
|
+
var Uc = Object.defineProperty, Vc = Object.getOwnPropertyDescriptor, Bc = (r, t, s, i) => {
|
|
10738
|
+
for (var e = i > 1 ? void 0 : i ? Vc(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
10723
10739
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
10724
|
-
return i && e &&
|
|
10740
|
+
return i && e && Uc(t, s, e), e;
|
|
10725
10741
|
};
|
|
10726
|
-
const
|
|
10727
|
-
let
|
|
10742
|
+
const Hc = "sonic-card-main";
|
|
10743
|
+
let tr = class extends y {
|
|
10728
10744
|
// static styles = [
|
|
10729
10745
|
// css`
|
|
10730
10746
|
// :host {
|
|
@@ -10739,16 +10755,16 @@ let Ji = class extends y {
|
|
|
10739
10755
|
`;
|
|
10740
10756
|
}
|
|
10741
10757
|
};
|
|
10742
|
-
|
|
10743
|
-
_(
|
|
10744
|
-
],
|
|
10745
|
-
var
|
|
10746
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
10758
|
+
tr = Bc([
|
|
10759
|
+
_(Hc)
|
|
10760
|
+
], tr);
|
|
10761
|
+
var qc = Object.defineProperty, Wc = Object.getOwnPropertyDescriptor, Kc = (r, t, s, i) => {
|
|
10762
|
+
for (var e = i > 1 ? void 0 : i ? Wc(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
10747
10763
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
10748
|
-
return i && e &&
|
|
10764
|
+
return i && e && qc(t, s, e), e;
|
|
10749
10765
|
};
|
|
10750
|
-
const
|
|
10751
|
-
let
|
|
10766
|
+
const Zc = "sonic-card-footer";
|
|
10767
|
+
let er = class extends y {
|
|
10752
10768
|
// static styles = [
|
|
10753
10769
|
// css`
|
|
10754
10770
|
// :host {
|
|
@@ -10759,16 +10775,16 @@ let tr = class extends y {
|
|
|
10759
10775
|
return g` <slot></slot> `;
|
|
10760
10776
|
}
|
|
10761
10777
|
};
|
|
10762
|
-
|
|
10763
|
-
_(
|
|
10764
|
-
],
|
|
10765
|
-
var
|
|
10766
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
10778
|
+
er = Kc([
|
|
10779
|
+
_(Zc)
|
|
10780
|
+
], er);
|
|
10781
|
+
var Gc = Object.defineProperty, Yc = Object.getOwnPropertyDescriptor, Er = (r, t, s, i) => {
|
|
10782
|
+
for (var e = i > 1 ? void 0 : i ? Yc(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
10767
10783
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
10768
|
-
return i && e &&
|
|
10784
|
+
return i && e && Gc(t, s, e), e;
|
|
10769
10785
|
};
|
|
10770
|
-
const
|
|
10771
|
-
let
|
|
10786
|
+
const Qc = "sonic-card";
|
|
10787
|
+
let $s = class extends y {
|
|
10772
10788
|
constructor() {
|
|
10773
10789
|
super(...arguments), this.type = "default";
|
|
10774
10790
|
}
|
|
@@ -10780,7 +10796,7 @@ let Ps = class extends y {
|
|
|
10780
10796
|
`;
|
|
10781
10797
|
}
|
|
10782
10798
|
};
|
|
10783
|
-
|
|
10799
|
+
$s.styles = [
|
|
10784
10800
|
P`
|
|
10785
10801
|
* {
|
|
10786
10802
|
box-sizing: border-box;
|
|
@@ -10859,13 +10875,13 @@ Ps.styles = [
|
|
|
10859
10875
|
}
|
|
10860
10876
|
`
|
|
10861
10877
|
];
|
|
10862
|
-
|
|
10878
|
+
Er([
|
|
10863
10879
|
a({ type: String, reflect: !0 })
|
|
10864
|
-
],
|
|
10865
|
-
|
|
10866
|
-
_(
|
|
10867
|
-
],
|
|
10868
|
-
const
|
|
10880
|
+
], $s.prototype, "type", 2);
|
|
10881
|
+
$s = Er([
|
|
10882
|
+
_(Qc)
|
|
10883
|
+
], $s);
|
|
10884
|
+
const Pi = P`
|
|
10869
10885
|
:host {
|
|
10870
10886
|
--sc-color: inherit;
|
|
10871
10887
|
color: var(--sc-color);
|
|
@@ -10924,12 +10940,12 @@ P`
|
|
|
10924
10940
|
color: inherit;
|
|
10925
10941
|
}
|
|
10926
10942
|
`;
|
|
10927
|
-
var
|
|
10943
|
+
var Jc = Object.defineProperty, Xc = Object.getOwnPropertyDescriptor, rs = (r, t, s, i) => {
|
|
10928
10944
|
for (var e = i > 1 ? void 0 : i ? Xc(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
10929
10945
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
10930
|
-
return i && e &&
|
|
10946
|
+
return i && e && Jc(t, s, e), e;
|
|
10931
10947
|
};
|
|
10932
|
-
const
|
|
10948
|
+
const th = "sonic-tr";
|
|
10933
10949
|
let ue = class extends Y(y) {
|
|
10934
10950
|
constructor() {
|
|
10935
10951
|
super(...arguments), this._metadata_ = {};
|
|
@@ -10942,7 +10958,7 @@ let ue = class extends Y(y) {
|
|
|
10942
10958
|
}
|
|
10943
10959
|
};
|
|
10944
10960
|
ue.styles = [
|
|
10945
|
-
|
|
10961
|
+
Pi,
|
|
10946
10962
|
P`
|
|
10947
10963
|
:host {
|
|
10948
10964
|
display: table-row;
|
|
@@ -10963,28 +10979,28 @@ ue.styles = [
|
|
|
10963
10979
|
}
|
|
10964
10980
|
`
|
|
10965
10981
|
];
|
|
10966
|
-
|
|
10982
|
+
rs([
|
|
10967
10983
|
a({ type: Object })
|
|
10968
10984
|
], ue.prototype, "_metadata_", 2);
|
|
10969
|
-
|
|
10985
|
+
rs([
|
|
10970
10986
|
a({ type: Boolean, reflect: !0 })
|
|
10971
10987
|
], ue.prototype, "even", 2);
|
|
10972
|
-
|
|
10988
|
+
rs([
|
|
10973
10989
|
a({ type: Boolean, reflect: !0 })
|
|
10974
10990
|
], ue.prototype, "odd", 2);
|
|
10975
|
-
|
|
10991
|
+
rs([
|
|
10976
10992
|
a({ type: Boolean, reflect: !0 })
|
|
10977
10993
|
], ue.prototype, "last", 2);
|
|
10978
|
-
ue =
|
|
10979
|
-
_(
|
|
10994
|
+
ue = rs([
|
|
10995
|
+
_(th)
|
|
10980
10996
|
], ue);
|
|
10981
|
-
var
|
|
10982
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
10997
|
+
var eh = Object.defineProperty, sh = Object.getOwnPropertyDescriptor, _e = (r, t, s, i) => {
|
|
10998
|
+
for (var e = i > 1 ? void 0 : i ? sh(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
10983
10999
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
10984
|
-
return i && e &&
|
|
11000
|
+
return i && e && eh(t, s, e), e;
|
|
10985
11001
|
};
|
|
10986
|
-
const
|
|
10987
|
-
let
|
|
11002
|
+
const ih = "sonic-th";
|
|
11003
|
+
let Ft = class extends y {
|
|
10988
11004
|
render() {
|
|
10989
11005
|
const r = {
|
|
10990
11006
|
textAlign: this.align,
|
|
@@ -10997,8 +11013,8 @@ let zt = class extends y {
|
|
|
10997
11013
|
</th> `;
|
|
10998
11014
|
}
|
|
10999
11015
|
};
|
|
11000
|
-
|
|
11001
|
-
|
|
11016
|
+
Ft.styles = [
|
|
11017
|
+
Pi,
|
|
11002
11018
|
P`
|
|
11003
11019
|
:host {
|
|
11004
11020
|
display: contents;
|
|
@@ -11025,31 +11041,31 @@ zt.styles = [
|
|
|
11025
11041
|
];
|
|
11026
11042
|
_e([
|
|
11027
11043
|
a({ type: Number })
|
|
11028
|
-
],
|
|
11044
|
+
], Ft.prototype, "colSpan", 2);
|
|
11029
11045
|
_e([
|
|
11030
11046
|
a({ type: Number })
|
|
11031
|
-
],
|
|
11047
|
+
], Ft.prototype, "rowSpan", 2);
|
|
11032
11048
|
_e([
|
|
11033
11049
|
a({ type: String })
|
|
11034
|
-
],
|
|
11050
|
+
], Ft.prototype, "align", 2);
|
|
11035
11051
|
_e([
|
|
11036
11052
|
a({ type: String })
|
|
11037
|
-
],
|
|
11053
|
+
], Ft.prototype, "minWidth", 2);
|
|
11038
11054
|
_e([
|
|
11039
11055
|
a({ type: String })
|
|
11040
|
-
],
|
|
11056
|
+
], Ft.prototype, "maxWidth", 2);
|
|
11041
11057
|
_e([
|
|
11042
11058
|
a({ type: String })
|
|
11043
|
-
],
|
|
11044
|
-
|
|
11045
|
-
_(
|
|
11046
|
-
],
|
|
11047
|
-
var
|
|
11048
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
11059
|
+
], Ft.prototype, "width", 2);
|
|
11060
|
+
Ft = _e([
|
|
11061
|
+
_(ih)
|
|
11062
|
+
], Ft);
|
|
11063
|
+
var rh = Object.defineProperty, oh = Object.getOwnPropertyDescriptor, te = (r, t, s, i) => {
|
|
11064
|
+
for (var e = i > 1 ? void 0 : i ? oh(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11049
11065
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
11050
|
-
return i && e &&
|
|
11066
|
+
return i && e && rh(t, s, e), e;
|
|
11051
11067
|
};
|
|
11052
|
-
const
|
|
11068
|
+
const nh = "sonic-td";
|
|
11053
11069
|
let kt = class extends y {
|
|
11054
11070
|
render() {
|
|
11055
11071
|
const r = {
|
|
@@ -11065,7 +11081,7 @@ let kt = class extends y {
|
|
|
11065
11081
|
}
|
|
11066
11082
|
};
|
|
11067
11083
|
kt.styles = [
|
|
11068
|
-
|
|
11084
|
+
Pi,
|
|
11069
11085
|
P`
|
|
11070
11086
|
:host {
|
|
11071
11087
|
display: contents;
|
|
@@ -11103,43 +11119,43 @@ te([
|
|
|
11103
11119
|
a({ type: String })
|
|
11104
11120
|
], kt.prototype, "width", 2);
|
|
11105
11121
|
kt = te([
|
|
11106
|
-
_(
|
|
11122
|
+
_(nh)
|
|
11107
11123
|
], kt);
|
|
11108
|
-
var
|
|
11109
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
11124
|
+
var ah = Object.defineProperty, lh = Object.getOwnPropertyDescriptor, ch = (r, t, s, i) => {
|
|
11125
|
+
for (var e = i > 1 ? void 0 : i ? lh(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11110
11126
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
11111
|
-
return i && e &&
|
|
11127
|
+
return i && e && ah(t, s, e), e;
|
|
11112
11128
|
};
|
|
11113
|
-
const
|
|
11114
|
-
let
|
|
11129
|
+
const hh = "sonic-thead";
|
|
11130
|
+
let ti = class extends y {
|
|
11115
11131
|
render() {
|
|
11116
11132
|
return g`<slot></slot>`;
|
|
11117
11133
|
}
|
|
11118
11134
|
};
|
|
11119
|
-
|
|
11135
|
+
ti.styles = [
|
|
11120
11136
|
P`
|
|
11121
11137
|
:host {
|
|
11122
11138
|
display: table-header-group;
|
|
11123
11139
|
}
|
|
11124
11140
|
`
|
|
11125
11141
|
];
|
|
11126
|
-
|
|
11127
|
-
_(
|
|
11128
|
-
],
|
|
11129
|
-
var
|
|
11130
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
11142
|
+
ti = ch([
|
|
11143
|
+
_(hh)
|
|
11144
|
+
], ti);
|
|
11145
|
+
var dh = Object.defineProperty, ph = Object.getOwnPropertyDescriptor, uh = (r, t, s, i) => {
|
|
11146
|
+
for (var e = i > 1 ? void 0 : i ? ph(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11131
11147
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
11132
|
-
return i && e &&
|
|
11148
|
+
return i && e && dh(t, s, e), e;
|
|
11133
11149
|
};
|
|
11134
|
-
const
|
|
11135
|
-
let
|
|
11150
|
+
const fh = "sonic-tbody";
|
|
11151
|
+
let ei = class extends y {
|
|
11136
11152
|
render() {
|
|
11137
11153
|
return g`<tbody part="tbody">
|
|
11138
11154
|
<slot></slot>
|
|
11139
11155
|
</tbody>`;
|
|
11140
11156
|
}
|
|
11141
11157
|
};
|
|
11142
|
-
|
|
11158
|
+
ei.styles = [
|
|
11143
11159
|
P`
|
|
11144
11160
|
:host {
|
|
11145
11161
|
display: table-row-group;
|
|
@@ -11158,44 +11174,44 @@ ti.styles = [
|
|
|
11158
11174
|
}
|
|
11159
11175
|
`
|
|
11160
11176
|
];
|
|
11161
|
-
|
|
11162
|
-
_(
|
|
11163
|
-
],
|
|
11164
|
-
var
|
|
11165
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
11177
|
+
ei = uh([
|
|
11178
|
+
_(fh)
|
|
11179
|
+
], ei);
|
|
11180
|
+
var gh = Object.defineProperty, mh = Object.getOwnPropertyDescriptor, bh = (r, t, s, i) => {
|
|
11181
|
+
for (var e = i > 1 ? void 0 : i ? mh(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11166
11182
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
11167
|
-
return i && e &&
|
|
11183
|
+
return i && e && gh(t, s, e), e;
|
|
11168
11184
|
};
|
|
11169
|
-
const
|
|
11170
|
-
let
|
|
11185
|
+
const vh = "sonic-tfoot";
|
|
11186
|
+
let si = class extends y {
|
|
11171
11187
|
render() {
|
|
11172
11188
|
return g`<tfoot>
|
|
11173
11189
|
<slot></slot>
|
|
11174
11190
|
</tfoot>`;
|
|
11175
11191
|
}
|
|
11176
11192
|
};
|
|
11177
|
-
|
|
11193
|
+
si.styles = [
|
|
11178
11194
|
P`
|
|
11179
11195
|
:host {
|
|
11180
11196
|
display: contents;
|
|
11181
11197
|
}
|
|
11182
11198
|
`
|
|
11183
11199
|
];
|
|
11184
|
-
|
|
11185
|
-
_(
|
|
11186
|
-
],
|
|
11187
|
-
var
|
|
11188
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
11200
|
+
si = bh([
|
|
11201
|
+
_(vh)
|
|
11202
|
+
], si);
|
|
11203
|
+
var yh = Object.defineProperty, wh = Object.getOwnPropertyDescriptor, _h = (r, t, s, i) => {
|
|
11204
|
+
for (var e = i > 1 ? void 0 : i ? wh(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11189
11205
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
11190
|
-
return i && e &&
|
|
11206
|
+
return i && e && yh(t, s, e), e;
|
|
11191
11207
|
};
|
|
11192
|
-
const
|
|
11193
|
-
let
|
|
11208
|
+
const xh = "sonic-caption";
|
|
11209
|
+
let ii = class extends y {
|
|
11194
11210
|
render() {
|
|
11195
11211
|
return g`<slot></slot>`;
|
|
11196
11212
|
}
|
|
11197
11213
|
};
|
|
11198
|
-
|
|
11214
|
+
ii.styles = [
|
|
11199
11215
|
P`
|
|
11200
11216
|
:host {
|
|
11201
11217
|
display: table-caption;
|
|
@@ -11205,15 +11221,15 @@ si.styles = [
|
|
|
11205
11221
|
}
|
|
11206
11222
|
`
|
|
11207
11223
|
];
|
|
11208
|
-
|
|
11209
|
-
_(
|
|
11210
|
-
],
|
|
11211
|
-
var
|
|
11212
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
11224
|
+
ii = _h([
|
|
11225
|
+
_(xh)
|
|
11226
|
+
], ii);
|
|
11227
|
+
var Ph = Object.defineProperty, $h = Object.getOwnPropertyDescriptor, Ee = (r, t, s, i) => {
|
|
11228
|
+
for (var e = i > 1 ? void 0 : i ? $h(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11213
11229
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
11214
|
-
return i && e &&
|
|
11230
|
+
return i && e && Ph(t, s, e), e;
|
|
11215
11231
|
};
|
|
11216
|
-
const
|
|
11232
|
+
const Ch = "sonic-table";
|
|
11217
11233
|
let Yt = class extends y {
|
|
11218
11234
|
constructor() {
|
|
11219
11235
|
super(...arguments), this.bordered = !1, this.rounded = !1, this.noCustomScroll = !1;
|
|
@@ -11232,7 +11248,7 @@ let Yt = class extends y {
|
|
|
11232
11248
|
}
|
|
11233
11249
|
};
|
|
11234
11250
|
Yt.styles = [
|
|
11235
|
-
|
|
11251
|
+
ts,
|
|
11236
11252
|
Lt,
|
|
11237
11253
|
P`
|
|
11238
11254
|
:host {
|
|
@@ -11276,31 +11292,31 @@ Yt.styles = [
|
|
|
11276
11292
|
}
|
|
11277
11293
|
`
|
|
11278
11294
|
];
|
|
11279
|
-
|
|
11295
|
+
Ee([
|
|
11280
11296
|
a({ type: String, reflect: !0 })
|
|
11281
11297
|
], Yt.prototype, "size", 2);
|
|
11282
|
-
|
|
11298
|
+
Ee([
|
|
11283
11299
|
a({ type: Boolean, reflect: !0 })
|
|
11284
11300
|
], Yt.prototype, "bordered", 2);
|
|
11285
|
-
|
|
11301
|
+
Ee([
|
|
11286
11302
|
a({ type: Boolean, reflect: !0 })
|
|
11287
11303
|
], Yt.prototype, "rounded", 2);
|
|
11288
|
-
|
|
11304
|
+
Ee([
|
|
11289
11305
|
a({ type: Boolean, reflect: !0 })
|
|
11290
11306
|
], Yt.prototype, "noCustomScroll", 2);
|
|
11291
|
-
|
|
11307
|
+
Ee([
|
|
11292
11308
|
a({ type: String })
|
|
11293
11309
|
], Yt.prototype, "maxHeight", 2);
|
|
11294
|
-
Yt =
|
|
11295
|
-
_(
|
|
11310
|
+
Yt = Ee([
|
|
11311
|
+
_(Ch)
|
|
11296
11312
|
], Yt);
|
|
11297
|
-
var
|
|
11298
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
11313
|
+
var Ah = Object.defineProperty, Sh = Object.getOwnPropertyDescriptor, Ls = (r, t, s, i) => {
|
|
11314
|
+
for (var e = i > 1 ? void 0 : i ? Sh(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11299
11315
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
11300
|
-
return i && e &&
|
|
11316
|
+
return i && e && Ah(t, s, e), e;
|
|
11301
11317
|
};
|
|
11302
|
-
const
|
|
11303
|
-
let
|
|
11318
|
+
const Oh = "sonic-captcha";
|
|
11319
|
+
let Ge = class extends Qt(y) {
|
|
11304
11320
|
constructor() {
|
|
11305
11321
|
super(...arguments), this.key = "", this.action = null, this.zIndex = 9999, this.onCaptchaTokenChanged = (r) => {
|
|
11306
11322
|
r == "request_token" && (this.formPublisher && (this.formPublisher.captchaToken = ""), this.requestToken());
|
|
@@ -11311,7 +11327,7 @@ let Ze = class extends Qt(y) {
|
|
|
11311
11327
|
const r = document.createElement("script");
|
|
11312
11328
|
r.src = "https://www.google.com/recaptcha/api.js?render=" + this.key, r.id = "captcha-" + this.key, document.head.appendChild(r);
|
|
11313
11329
|
}
|
|
11314
|
-
if (super.connectedCallback(), this.formPublisher =
|
|
11330
|
+
if (super.connectedCallback(), this.formPublisher = J.get(
|
|
11315
11331
|
this.getAncestorAttributeValue("headersDataProvider") ?? this.getAncestorAttributeValue("formDataProvider")
|
|
11316
11332
|
), !document.getElementById("concorde-recaptcha-css")) {
|
|
11317
11333
|
const r = document.createElement("style");
|
|
@@ -11337,18 +11353,18 @@ let Ze = class extends Qt(y) {
|
|
|
11337
11353
|
return g` <slot></slot> `;
|
|
11338
11354
|
}
|
|
11339
11355
|
};
|
|
11340
|
-
|
|
11356
|
+
Ls([
|
|
11341
11357
|
a()
|
|
11342
|
-
],
|
|
11343
|
-
|
|
11358
|
+
], Ge.prototype, "key", 2);
|
|
11359
|
+
Ls([
|
|
11344
11360
|
a()
|
|
11345
|
-
],
|
|
11346
|
-
|
|
11361
|
+
], Ge.prototype, "action", 2);
|
|
11362
|
+
Ls([
|
|
11347
11363
|
a({ type: Number })
|
|
11348
|
-
],
|
|
11349
|
-
|
|
11350
|
-
_(
|
|
11351
|
-
],
|
|
11364
|
+
], Ge.prototype, "zIndex", 2);
|
|
11365
|
+
Ge = Ls([
|
|
11366
|
+
_(Oh)
|
|
11367
|
+
], Ge);
|
|
11352
11368
|
window.queueMicrotask = window.queueMicrotask || function(r) {
|
|
11353
11369
|
Promise.resolve().then(r).catch(
|
|
11354
11370
|
(t) => setTimeout(() => {
|
|
@@ -11356,16 +11372,16 @@ window.queueMicrotask = window.queueMicrotask || function(r) {
|
|
|
11356
11372
|
})
|
|
11357
11373
|
);
|
|
11358
11374
|
};
|
|
11359
|
-
function
|
|
11375
|
+
function Dh(r) {
|
|
11360
11376
|
this.__connectedCallbackCalls__ || (this.__connectedCallbackCalls__ = /* @__PURE__ */ new Set()), this.__connectedCallbackCalls__.add(r);
|
|
11361
11377
|
}
|
|
11362
|
-
function
|
|
11378
|
+
function kh(r) {
|
|
11363
11379
|
this.__disconnectedCallbackCalls__ || (this.__disconnectedCallbackCalls__ = /* @__PURE__ */ new Set()), this.__disconnectedCallbackCalls__.add(r);
|
|
11364
11380
|
}
|
|
11365
|
-
function
|
|
11381
|
+
function Nr(r) {
|
|
11366
11382
|
if (r.__is__setSubscribable__)
|
|
11367
11383
|
return;
|
|
11368
|
-
r.__is__setSubscribable__ = !0, r.__onConnected__ =
|
|
11384
|
+
r.__is__setSubscribable__ = !0, r.__onConnected__ = Dh, r.__onDisconnected__ = kh;
|
|
11369
11385
|
const t = r.connectedCallback;
|
|
11370
11386
|
r.connectedCallback = function() {
|
|
11371
11387
|
t.call(this), this.__connectedCallbackCalls__ && this.__connectedCallbackCalls__.forEach((i) => i(this));
|
|
@@ -11375,18 +11391,18 @@ function Er(r) {
|
|
|
11375
11391
|
s.call(this), this.__disconnectedCallbackCalls__ && this.__disconnectedCallbackCalls__.forEach((i) => i(this));
|
|
11376
11392
|
};
|
|
11377
11393
|
}
|
|
11378
|
-
function
|
|
11394
|
+
function Lh(r) {
|
|
11379
11395
|
const t = r.split(".");
|
|
11380
11396
|
if (t.length == 0)
|
|
11381
11397
|
return function() {
|
|
11382
11398
|
};
|
|
11383
11399
|
const s = t.shift() || "";
|
|
11384
11400
|
let i = N.get(s);
|
|
11385
|
-
return i =
|
|
11401
|
+
return i = Je.traverse(i, t), function(e, o) {
|
|
11386
11402
|
if (!e)
|
|
11387
11403
|
return;
|
|
11388
11404
|
let n;
|
|
11389
|
-
|
|
11405
|
+
Nr(e), e.__onConnected__((l) => {
|
|
11390
11406
|
n = (c) => {
|
|
11391
11407
|
l[o] = c;
|
|
11392
11408
|
}, i.onAssign(n);
|
|
@@ -11395,7 +11411,7 @@ function kh(r) {
|
|
|
11395
11411
|
});
|
|
11396
11412
|
};
|
|
11397
11413
|
}
|
|
11398
|
-
function
|
|
11414
|
+
function Eh(...r) {
|
|
11399
11415
|
const t = [], s = [];
|
|
11400
11416
|
for (let i = 0; i < r.length; i++) {
|
|
11401
11417
|
const o = r[i].split(".");
|
|
@@ -11403,14 +11419,14 @@ function Lh(...r) {
|
|
|
11403
11419
|
continue;
|
|
11404
11420
|
const n = o.shift() || "";
|
|
11405
11421
|
let l = N.get(n);
|
|
11406
|
-
l =
|
|
11422
|
+
l = Je.traverse(l, o);
|
|
11407
11423
|
const c = /* @__PURE__ */ new Set(), h = (d) => {
|
|
11408
11424
|
t[i] = d, t.filter((f) => f !== null).length == r.length && c.forEach((f) => f(...t));
|
|
11409
11425
|
};
|
|
11410
11426
|
s.push({ publisher: l, onAssign: h, callbacks: c });
|
|
11411
11427
|
}
|
|
11412
11428
|
return function(i, e, o) {
|
|
11413
|
-
|
|
11429
|
+
Nr(i);
|
|
11414
11430
|
let n;
|
|
11415
11431
|
i.__onConnected__((l) => {
|
|
11416
11432
|
for (const c of s)
|
|
@@ -11423,24 +11439,24 @@ function Lh(...r) {
|
|
|
11423
11439
|
}
|
|
11424
11440
|
window["concorde-decorator-subscriber"] = window["concorde-decorator-subscriber"] || {};
|
|
11425
11441
|
window["concorde-decorator-subscriber"] = {
|
|
11426
|
-
bind:
|
|
11427
|
-
onAssing:
|
|
11442
|
+
bind: Lh,
|
|
11443
|
+
onAssing: Eh
|
|
11428
11444
|
};
|
|
11429
11445
|
window["concorde-directives-data-provider"] = window["concorde-directives-data-provider"] || {};
|
|
11430
11446
|
window["concorde-directives-data-provider"] = {
|
|
11431
|
-
dp:
|
|
11432
|
-
dataProvider:
|
|
11433
|
-
sub:
|
|
11434
|
-
subscribe:
|
|
11435
|
-
get:
|
|
11436
|
-
set:
|
|
11437
|
-
};
|
|
11438
|
-
const
|
|
11447
|
+
dp: br,
|
|
11448
|
+
dataProvider: ho,
|
|
11449
|
+
sub: lo,
|
|
11450
|
+
subscribe: ao,
|
|
11451
|
+
get: co,
|
|
11452
|
+
set: po
|
|
11453
|
+
};
|
|
11454
|
+
const Nh = E, Th = R;
|
|
11439
11455
|
window["concorde-components"] = window["concorde-components"] || {};
|
|
11440
11456
|
window["concorde-components"] = {
|
|
11441
|
-
SonicToast:
|
|
11442
|
-
SonicModal:
|
|
11457
|
+
SonicToast: Nh,
|
|
11458
|
+
SonicModal: Th
|
|
11443
11459
|
};
|
|
11444
|
-
const
|
|
11445
|
-
|
|
11460
|
+
const jh = window;
|
|
11461
|
+
jh.concordeIsLoaded = !0;
|
|
11446
11462
|
window.dispatchEvent(new CustomEvent("concorde-loaded"));
|