@supersoniks/concorde 3.1.21 → 3.1.23
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 +75 -75
- package/concorde-core.es.js +419 -412
- package/dist/concorde-core.bundle.js +75 -75
- package/dist/concorde-core.es.js +419 -412
- package/package.json +1 -1
- package/scripts/pre-build.mjs +0 -0
- package/src/core/_types/types.ts +0 -0
- package/src/core/components/ui/form/input/input.ts +0 -0
- package/src/core/components/ui/modal/modal.ts +46 -21
- package/src/core/components/ui/toast/message-subscriber.ts +0 -0
- package/src/core/components/ui/toast/toast.ts +0 -0
- package/src/core/components/ui/ui.ts +0 -0
- package/src/core/core.ts +0 -0
- package/src/core/mixins/FormCheckable.ts +0 -2
- package/src/core/utils/PublisherProxy.ts +4 -14
- package/src/core/utils/route.ts +0 -0
- package/src/tsconfig-model.json +0 -0
- package/src/tsconfig.json +0 -0
package/concorde-core.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
let
|
|
1
|
+
let et = class Ot {
|
|
2
2
|
/**
|
|
3
3
|
* retourne la langue de la page courante telle que défini via l'attribut lang de la balise html
|
|
4
4
|
*/
|
|
@@ -119,7 +119,7 @@ let tt = class Ot {
|
|
|
119
119
|
return typeof t != "string" ? t : t.charAt(0).toUpperCase() + t.substring(1);
|
|
120
120
|
}
|
|
121
121
|
static minutesDuration(t, s = "", i = "long") {
|
|
122
|
-
s || (s =
|
|
122
|
+
s || (s = et.getLanguage());
|
|
123
123
|
const e = (h, d) => [Math.floor(h / d), h % d];
|
|
124
124
|
function o(h, d, f) {
|
|
125
125
|
return new Intl.NumberFormat(h, { style: "unit", unit: d, unitDisplay: f }).format;
|
|
@@ -144,7 +144,7 @@ let tt = class Ot {
|
|
|
144
144
|
function Fe(r) {
|
|
145
145
|
return typeof r == "object" && r != null;
|
|
146
146
|
}
|
|
147
|
-
const
|
|
147
|
+
const Vr = async () => new Promise((r) => {
|
|
148
148
|
window.queueMicrotask(() => r(null));
|
|
149
149
|
});
|
|
150
150
|
let Se = "sonic";
|
|
@@ -188,7 +188,7 @@ let ni = (Dt = class {
|
|
|
188
188
|
async _publishAssignement_(t = !1) {
|
|
189
189
|
this._assignmentId_++;
|
|
190
190
|
const s = this._assignmentId_;
|
|
191
|
-
if (await
|
|
191
|
+
if (await Vr(), s !== this._assignmentId_)
|
|
192
192
|
return;
|
|
193
193
|
const i = this.get();
|
|
194
194
|
this._assignListeners_.forEach((e) => {
|
|
@@ -312,44 +312,41 @@ let ni = (Dt = class {
|
|
|
312
312
|
* Assigne une nouvelle valeur au proxy ce qui déclenche la transmission de la donnée en fonction des "écouteurs" associés
|
|
313
313
|
*/
|
|
314
314
|
async set(t, s = !1) {
|
|
315
|
-
var o, n
|
|
316
|
-
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)
|
|
315
|
+
var e, o, n;
|
|
316
|
+
if (Array.isArray(t) && t.indexOf(null) != -1 && console.log(t), this._value_ === t || this._value_ && t && Object.prototype.hasOwnProperty.call(this._value_, "__value") && Object.prototype.hasOwnProperty.call(t, "__value") && this._value_.__value === t.__value)
|
|
317
317
|
return !0;
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
const e = Object.prototype.hasOwnProperty.call(
|
|
318
|
+
this._value_, this._value_ = Fe(t) ? t : { __value: t }, this._cachedGet_ = void 0;
|
|
319
|
+
const i = Object.prototype.hasOwnProperty.call(
|
|
321
320
|
this._value_,
|
|
322
321
|
"__value"
|
|
323
322
|
);
|
|
324
323
|
if (this._parentKey_ && this.parent) {
|
|
325
|
-
const
|
|
326
|
-
if (((
|
|
324
|
+
const l = i ? this._value_.__value : this._value_;
|
|
325
|
+
if (((e = this.parent) == null ? void 0 : e.get()) == null && ((o = this.parent) == null ? void 0 : o.get()) == null)
|
|
327
326
|
if (isNaN(Number(this._parentKey_)))
|
|
328
|
-
this.parent.set({ [this._parentKey_]:
|
|
327
|
+
this.parent.set({ [this._parentKey_]: l });
|
|
329
328
|
else {
|
|
330
|
-
const
|
|
331
|
-
|
|
329
|
+
const c = [];
|
|
330
|
+
c[Number(this._parentKey_)] = l, this.parent.set(c);
|
|
332
331
|
}
|
|
333
332
|
else
|
|
334
|
-
this.parent._value_[this._parentKey_] =
|
|
333
|
+
this.parent._value_[this._parentKey_] = l;
|
|
335
334
|
}
|
|
336
|
-
if (
|
|
335
|
+
if (i)
|
|
337
336
|
return this._publishAssignement_(s), this.parent && this._parentKey_ && this.parent._publishDynamicFilling_(
|
|
338
337
|
this._parentKey_,
|
|
339
338
|
this._value_.__value
|
|
340
339
|
), !0;
|
|
341
|
-
for (const
|
|
342
|
-
this._value_[
|
|
343
|
-
if (this.
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
if (!this._proxies_.has(c)) {
|
|
349
|
-
this._publishDynamicFilling_(c, h);
|
|
340
|
+
for (const l in this._value_)
|
|
341
|
+
this._value_[l] === void 0 && delete this._value_[l];
|
|
342
|
+
if (this._publishAssignement_(), Fe(this._value_))
|
|
343
|
+
for (const l in this._value_) {
|
|
344
|
+
const c = t[l], d = Fe(c) ? c : { __value: c };
|
|
345
|
+
if (!this._proxies_.has(l)) {
|
|
346
|
+
this._publishDynamicFilling_(l, c);
|
|
350
347
|
continue;
|
|
351
348
|
}
|
|
352
|
-
(
|
|
349
|
+
(n = this._proxies_.get(l)) == null || n.set(d, !0), this._publishDynamicFilling_(l, c);
|
|
353
350
|
}
|
|
354
351
|
return !0;
|
|
355
352
|
}
|
|
@@ -447,7 +444,7 @@ let T = (k = class {
|
|
|
447
444
|
async setLocalData(t, s) {
|
|
448
445
|
var i;
|
|
449
446
|
await this.isLocalStrorageReady, t.set(
|
|
450
|
-
((i = this.localStorageData[s + "¤lang_" +
|
|
447
|
+
((i = this.localStorageData[s + "¤lang_" + et.getLanguage()]) == null ? void 0 : i.data) || t.get()
|
|
451
448
|
);
|
|
452
449
|
}
|
|
453
450
|
get(t, s) {
|
|
@@ -493,7 +490,7 @@ let T = (k = class {
|
|
|
493
490
|
if (!(o != null && o._is_savable_))
|
|
494
491
|
continue;
|
|
495
492
|
const n = o == null ? void 0 : o.get();
|
|
496
|
-
n && (this.localStorageData[e + "¤lang_" +
|
|
493
|
+
n && (this.localStorageData[e + "¤lang_" + et.getLanguage()] = {
|
|
497
494
|
lastModifiationMS: (/* @__PURE__ */ new Date()).getTime(),
|
|
498
495
|
data: n
|
|
499
496
|
}, i = !0);
|
|
@@ -532,13 +529,13 @@ let T = (k = class {
|
|
|
532
529
|
const h = await new Response(l.readable).arrayBuffer();
|
|
533
530
|
return new TextDecoder().decode(h);
|
|
534
531
|
}
|
|
535
|
-
}, k.buildDate = "
|
|
532
|
+
}, k.buildDate = "Wed Sep 04 2024 15:47:15 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);
|
|
536
533
|
const Bs = window;
|
|
537
534
|
Bs.SonicPublisherManager || (Bs.SonicPublisherManager = T);
|
|
538
535
|
Bs.SonicPublisherManager.registerInstance(
|
|
539
536
|
T.getInstance()
|
|
540
537
|
);
|
|
541
|
-
const
|
|
538
|
+
const Br = /* @__PURE__ */ new Set([
|
|
542
539
|
"invalidate",
|
|
543
540
|
"onInvalidate",
|
|
544
541
|
"offInvalidate",
|
|
@@ -590,7 +587,7 @@ class Be extends ni {
|
|
|
590
587
|
* Sinon un autre proxy qui a comme valeur interne la valeur corespondante à la clef dans l'objet.
|
|
591
588
|
*/
|
|
592
589
|
get: function(o, n) {
|
|
593
|
-
if (
|
|
590
|
+
if (Br.has(n))
|
|
594
591
|
return o[n];
|
|
595
592
|
if (n == Symbol.toPrimitive)
|
|
596
593
|
return () => e.get();
|
|
@@ -658,7 +655,7 @@ class Be extends ni {
|
|
|
658
655
|
return t[s];
|
|
659
656
|
}
|
|
660
657
|
}
|
|
661
|
-
class
|
|
658
|
+
class qr extends HTMLElement {
|
|
662
659
|
constructor() {
|
|
663
660
|
super(), this.publisherId = "", this.onAssign = (t) => {
|
|
664
661
|
this.innerHTML = t.toString();
|
|
@@ -676,7 +673,7 @@ class Vr extends HTMLElement {
|
|
|
676
673
|
try {
|
|
677
674
|
customElements.define(
|
|
678
675
|
Se + "-publisher-proxy",
|
|
679
|
-
|
|
676
|
+
qr
|
|
680
677
|
);
|
|
681
678
|
} catch {
|
|
682
679
|
}
|
|
@@ -791,7 +788,7 @@ let As = (E = class {
|
|
|
791
788
|
*/
|
|
792
789
|
static addPublisherListeners(t) {
|
|
793
790
|
E.removePublisherListeners(t);
|
|
794
|
-
const s =
|
|
791
|
+
const s = et.getAncestorAttributeValue(
|
|
795
792
|
t.parentNode || t.host || t,
|
|
796
793
|
"dataProvider"
|
|
797
794
|
);
|
|
@@ -940,7 +937,7 @@ const _ = (r) => (t, s) => {
|
|
|
940
937
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
941
938
|
*/
|
|
942
939
|
const hs = globalThis, ai = hs.ShadowRoot && (hs.ShadyCSS === void 0 || hs.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, li = Symbol(), ki = /* @__PURE__ */ new WeakMap();
|
|
943
|
-
let
|
|
940
|
+
let cr = class {
|
|
944
941
|
constructor(t, s, i) {
|
|
945
942
|
if (this._$cssResult$ = !0, i !== li)
|
|
946
943
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -959,7 +956,7 @@ let ar = class {
|
|
|
959
956
|
return this.cssText;
|
|
960
957
|
}
|
|
961
958
|
};
|
|
962
|
-
const
|
|
959
|
+
const Hr = (r) => new cr(typeof r == "string" ? r : r + "", void 0, li), $ = (r, ...t) => {
|
|
963
960
|
const s = r.length === 1 ? r[0] : t.reduce((i, e, o) => i + ((n) => {
|
|
964
961
|
if (n._$cssResult$ === !0)
|
|
965
962
|
return n.cssText;
|
|
@@ -967,8 +964,8 @@ const Br = (r) => new ar(typeof r == "string" ? r : r + "", void 0, li), $ = (r,
|
|
|
967
964
|
return n;
|
|
968
965
|
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.");
|
|
969
966
|
})(e) + r[o + 1], r[0]);
|
|
970
|
-
return new
|
|
971
|
-
},
|
|
967
|
+
return new cr(s, r, li);
|
|
968
|
+
}, Wr = (r, t) => {
|
|
972
969
|
if (ai)
|
|
973
970
|
r.adoptedStyleSheets = t.map((s) => s instanceof CSSStyleSheet ? s : s.styleSheet);
|
|
974
971
|
else
|
|
@@ -980,17 +977,17 @@ const Br = (r) => new ar(typeof r == "string" ? r : r + "", void 0, li), $ = (r,
|
|
|
980
977
|
let s = "";
|
|
981
978
|
for (const i of t.cssRules)
|
|
982
979
|
s += i.cssText;
|
|
983
|
-
return
|
|
980
|
+
return Hr(s);
|
|
984
981
|
})(r) : r;
|
|
985
982
|
/**
|
|
986
983
|
* @license
|
|
987
984
|
* Copyright 2017 Google LLC
|
|
988
985
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
989
986
|
*/
|
|
990
|
-
const { is:
|
|
987
|
+
const { is: Kr, defineProperty: Zr, getOwnPropertyDescriptor: Yr, getOwnPropertyNames: Gr, getOwnPropertySymbols: Qr, getPrototypeOf: Jr } = Object, Wt = globalThis, Ei = Wt.trustedTypes, Xr = Ei ? Ei.emptyScript : "", Ms = Wt.reactiveElementPolyfillSupport, ze = (r, t) => r, us = { toAttribute(r, t) {
|
|
991
988
|
switch (t) {
|
|
992
989
|
case Boolean:
|
|
993
|
-
r = r ?
|
|
990
|
+
r = r ? Xr : null;
|
|
994
991
|
break;
|
|
995
992
|
case Object:
|
|
996
993
|
case Array:
|
|
@@ -1015,7 +1012,7 @@ const { is: Hr, defineProperty: Wr, getOwnPropertyDescriptor: Kr, getOwnProperty
|
|
|
1015
1012
|
}
|
|
1016
1013
|
}
|
|
1017
1014
|
return s;
|
|
1018
|
-
} }, ci = (r, t) => !
|
|
1015
|
+
} }, ci = (r, t) => !Kr(r, t), Ni = { attribute: !0, type: String, converter: us, reflect: !1, hasChanged: ci };
|
|
1019
1016
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Wt.litPropertyMetadata ?? (Wt.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
1020
1017
|
let Ae = class extends HTMLElement {
|
|
1021
1018
|
static addInitializer(t) {
|
|
@@ -1027,11 +1024,11 @@ let Ae = class extends HTMLElement {
|
|
|
1027
1024
|
static createProperty(t, s = Ni) {
|
|
1028
1025
|
if (s.state && (s.attribute = !1), this._$Ei(), this.elementProperties.set(t, s), !s.noAccessor) {
|
|
1029
1026
|
const i = Symbol(), e = this.getPropertyDescriptor(t, i, s);
|
|
1030
|
-
e !== void 0 &&
|
|
1027
|
+
e !== void 0 && Zr(this.prototype, t, e);
|
|
1031
1028
|
}
|
|
1032
1029
|
}
|
|
1033
1030
|
static getPropertyDescriptor(t, s, i) {
|
|
1034
|
-
const { get: e, set: o } =
|
|
1031
|
+
const { get: e, set: o } = Yr(this.prototype, t) ?? { get() {
|
|
1035
1032
|
return this[s];
|
|
1036
1033
|
}, set(n) {
|
|
1037
1034
|
this[s] = n;
|
|
@@ -1049,14 +1046,14 @@ let Ae = class extends HTMLElement {
|
|
|
1049
1046
|
static _$Ei() {
|
|
1050
1047
|
if (this.hasOwnProperty(ze("elementProperties")))
|
|
1051
1048
|
return;
|
|
1052
|
-
const t =
|
|
1049
|
+
const t = Jr(this);
|
|
1053
1050
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
1054
1051
|
}
|
|
1055
1052
|
static finalize() {
|
|
1056
1053
|
if (this.hasOwnProperty(ze("finalized")))
|
|
1057
1054
|
return;
|
|
1058
1055
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(ze("properties"))) {
|
|
1059
|
-
const s = this.properties, i = [...
|
|
1056
|
+
const s = this.properties, i = [...Gr(s), ...Qr(s)];
|
|
1060
1057
|
for (const e of i)
|
|
1061
1058
|
this.createProperty(e, s[e]);
|
|
1062
1059
|
}
|
|
@@ -1111,7 +1108,7 @@ let Ae = class extends HTMLElement {
|
|
|
1111
1108
|
}
|
|
1112
1109
|
createRenderRoot() {
|
|
1113
1110
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
1114
|
-
return
|
|
1111
|
+
return Wr(t, this.constructor.elementStyles), t;
|
|
1115
1112
|
}
|
|
1116
1113
|
connectedCallback() {
|
|
1117
1114
|
var t;
|
|
@@ -1234,7 +1231,7 @@ Ae.elementStyles = [], Ae.shadowRootOptions = { mode: "open" }, Ae[ze("elementPr
|
|
|
1234
1231
|
* Copyright 2017 Google LLC
|
|
1235
1232
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1236
1233
|
*/
|
|
1237
|
-
const
|
|
1234
|
+
const to = { attribute: !0, type: String, converter: us, reflect: !1, hasChanged: ci }, eo = (r = to, t, s) => {
|
|
1238
1235
|
const { kind: i, metadata: e } = s;
|
|
1239
1236
|
let o = globalThis.litPropertyMetadata.get(e);
|
|
1240
1237
|
if (o === void 0 && globalThis.litPropertyMetadata.set(e, o = /* @__PURE__ */ new Map()), o.set(s.name, r), i === "accessor") {
|
|
@@ -1256,7 +1253,7 @@ const Jr = { attribute: !0, type: String, converter: us, reflect: !1, hasChanged
|
|
|
1256
1253
|
throw Error("Unsupported decorator location: " + i);
|
|
1257
1254
|
};
|
|
1258
1255
|
function a(r) {
|
|
1259
|
-
return (t, s) => typeof s == "object" ?
|
|
1256
|
+
return (t, s) => typeof s == "object" ? eo(r, t, s) : ((i, e, o) => {
|
|
1260
1257
|
const n = e.hasOwnProperty(o);
|
|
1261
1258
|
return e.constructor.createProperty(o, n ? { ...i, wrapped: !0 } : i), n ? Object.getOwnPropertyDescriptor(e, o) : void 0;
|
|
1262
1259
|
})(r, t, s);
|
|
@@ -1326,33 +1323,33 @@ function ct(r) {
|
|
|
1326
1323
|
* Copyright 2017 Google LLC
|
|
1327
1324
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1328
1325
|
*/
|
|
1329
|
-
const Re = globalThis, fs = Re.trustedTypes, Ti = fs ? fs.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, di = "$lit$", Ut = `lit$${Math.random().toFixed(9).slice(2)}$`, pi = "?" + Ut,
|
|
1326
|
+
const Re = globalThis, fs = Re.trustedTypes, Ti = fs ? fs.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, di = "$lit$", Ut = `lit$${Math.random().toFixed(9).slice(2)}$`, pi = "?" + Ut, so = `<${pi}>`, ce = document, qe = () => ce.createComment(""), He = (r) => r === null || typeof r != "object" && typeof r != "function", ui = Array.isArray, hr = (r) => ui(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", js = `[
|
|
1330
1327
|
\f\r]`, Me = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Mi = /-->/g, ji = />/g, ie = RegExp(`>|${js}(?:([^\\s"'>=/]+)(${js}*=${js}*(?:[^
|
|
1331
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ii = /'/g, Fi = /"/g,
|
|
1332
|
-
function
|
|
1328
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ii = /'/g, Fi = /"/g, dr = /^(?:script|style|textarea|title)$/i, io = (r) => (t, ...s) => ({ _$litType$: r, strings: t, values: s }), g = io(1), yt = Symbol.for("lit-noChange"), C = Symbol.for("lit-nothing"), zi = /* @__PURE__ */ new WeakMap(), ae = ce.createTreeWalker(ce, 129);
|
|
1329
|
+
function pr(r, t) {
|
|
1333
1330
|
if (!ui(r) || !r.hasOwnProperty("raw"))
|
|
1334
1331
|
throw Error("invalid template strings array");
|
|
1335
1332
|
return Ti !== void 0 ? Ti.createHTML(t) : t;
|
|
1336
1333
|
}
|
|
1337
|
-
const
|
|
1334
|
+
const ur = (r, t) => {
|
|
1338
1335
|
const s = r.length - 1, i = [];
|
|
1339
1336
|
let e, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = Me;
|
|
1340
1337
|
for (let l = 0; l < s; l++) {
|
|
1341
1338
|
const c = r[l];
|
|
1342
1339
|
let h, d, f = -1, m = 0;
|
|
1343
1340
|
for (; m < c.length && (n.lastIndex = m, d = n.exec(c), d !== null); )
|
|
1344
|
-
m = n.lastIndex, n === Me ? d[1] === "!--" ? n = Mi : d[1] !== void 0 ? n = ji : d[2] !== void 0 ? (
|
|
1341
|
+
m = n.lastIndex, n === Me ? d[1] === "!--" ? n = Mi : d[1] !== void 0 ? n = ji : d[2] !== void 0 ? (dr.test(d[2]) && (e = RegExp("</" + d[2], "g")), n = ie) : d[3] !== void 0 && (n = ie) : n === ie ? d[0] === ">" ? (n = e ?? Me, f = -1) : d[1] === void 0 ? f = -2 : (f = n.lastIndex - d[2].length, h = d[1], n = d[3] === void 0 ? ie : d[3] === '"' ? Fi : Ii) : n === Fi || n === Ii ? n = ie : n === Mi || n === ji ? n = Me : (n = ie, e = void 0);
|
|
1345
1342
|
const v = n === ie && r[l + 1].startsWith("/>") ? " " : "";
|
|
1346
|
-
o += n === Me ? c +
|
|
1343
|
+
o += n === Me ? c + so : f >= 0 ? (i.push(h), c.slice(0, f) + di + c.slice(f) + Ut + v) : c + Ut + (f === -2 ? l : v);
|
|
1347
1344
|
}
|
|
1348
|
-
return [
|
|
1345
|
+
return [pr(r, o + (r[s] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
|
1349
1346
|
};
|
|
1350
1347
|
class We {
|
|
1351
1348
|
constructor({ strings: t, _$litType$: s }, i) {
|
|
1352
1349
|
let e;
|
|
1353
1350
|
this.parts = [];
|
|
1354
1351
|
let o = 0, n = 0;
|
|
1355
|
-
const l = t.length - 1, c = this.parts, [h, d] =
|
|
1352
|
+
const l = t.length - 1, c = this.parts, [h, d] = ur(t, s);
|
|
1356
1353
|
if (this.el = We.createElement(h, i), ae.currentNode = this.el.content, s === 2 || s === 3) {
|
|
1357
1354
|
const f = this.el.content.firstChild;
|
|
1358
1355
|
f.replaceWith(...f.childNodes);
|
|
@@ -1363,10 +1360,10 @@ class We {
|
|
|
1363
1360
|
for (const f of e.getAttributeNames())
|
|
1364
1361
|
if (f.endsWith(di)) {
|
|
1365
1362
|
const m = d[n++], v = e.getAttribute(f).split(Ut), b = /([.?@])?(.*)/.exec(m);
|
|
1366
|
-
c.push({ type: 1, index: o, name: b[2], strings: v, ctor: b[1] === "." ?
|
|
1363
|
+
c.push({ type: 1, index: o, name: b[2], strings: v, ctor: b[1] === "." ? mr : b[1] === "?" ? br : b[1] === "@" ? vr : Qe }), e.removeAttribute(f);
|
|
1367
1364
|
} else
|
|
1368
1365
|
f.startsWith(Ut) && (c.push({ type: 6, index: o }), e.removeAttribute(f));
|
|
1369
|
-
if (
|
|
1366
|
+
if (dr.test(e.tagName)) {
|
|
1370
1367
|
const f = e.textContent.split(Ut), m = f.length - 1;
|
|
1371
1368
|
if (m > 0) {
|
|
1372
1369
|
e.textContent = fs ? fs.emptyScript : "";
|
|
@@ -1399,7 +1396,7 @@ function he(r, t, s = r, i) {
|
|
|
1399
1396
|
const o = He(t) ? void 0 : t._$litDirective$;
|
|
1400
1397
|
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.o ?? (s.o = []))[i] = e : s.l = e), e !== void 0 && (t = he(r, e._$AS(r, t.values), e, i)), t;
|
|
1401
1398
|
}
|
|
1402
|
-
let
|
|
1399
|
+
let fr = class {
|
|
1403
1400
|
constructor(t, s) {
|
|
1404
1401
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = s;
|
|
1405
1402
|
}
|
|
@@ -1416,7 +1413,7 @@ let pr = class {
|
|
|
1416
1413
|
for (; c !== void 0; ) {
|
|
1417
1414
|
if (n === c.index) {
|
|
1418
1415
|
let h;
|
|
1419
|
-
c.type === 2 ? h = new Ss(o, o.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(o, c.name, c.strings, this, t) : c.type === 6 && (h = new
|
|
1416
|
+
c.type === 2 ? h = new Ss(o, o.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(o, c.name, c.strings, this, t) : c.type === 6 && (h = new yr(o, this, t)), this._$AV.push(h), c = i[++l];
|
|
1420
1417
|
}
|
|
1421
1418
|
n !== (c == null ? void 0 : c.index) && (o = ae.nextNode(), n++);
|
|
1422
1419
|
}
|
|
@@ -1427,7 +1424,7 @@ let pr = class {
|
|
|
1427
1424
|
for (const i of this._$AV)
|
|
1428
1425
|
i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, s), s += i.strings.length - 2) : i._$AI(t[s])), s++;
|
|
1429
1426
|
}
|
|
1430
|
-
}, Ss = class
|
|
1427
|
+
}, Ss = class gr {
|
|
1431
1428
|
get _$AU() {
|
|
1432
1429
|
var t;
|
|
1433
1430
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this.v;
|
|
@@ -1447,7 +1444,7 @@ let pr = class {
|
|
|
1447
1444
|
return this._$AB;
|
|
1448
1445
|
}
|
|
1449
1446
|
_$AI(t, s = this) {
|
|
1450
|
-
t = he(this, t, s), He(t) ? t === C || t == null || t === "" ? (this._$AH !== C && this._$AR(), this._$AH = C) : t !== this._$AH && t !== yt && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) :
|
|
1447
|
+
t = he(this, t, s), He(t) ? t === C || t == null || t === "" ? (this._$AH !== C && this._$AR(), this._$AH = C) : t !== this._$AH && t !== yt && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : hr(t) ? this.k(t) : this._(t);
|
|
1451
1448
|
}
|
|
1452
1449
|
O(t) {
|
|
1453
1450
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -1460,11 +1457,11 @@ let pr = class {
|
|
|
1460
1457
|
}
|
|
1461
1458
|
$(t) {
|
|
1462
1459
|
var o;
|
|
1463
|
-
const { values: s, _$litType$: i } = t, e = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = We.createElement(
|
|
1460
|
+
const { values: s, _$litType$: i } = t, e = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = We.createElement(pr(i.h, i.h[0]), this.options)), i);
|
|
1464
1461
|
if (((o = this._$AH) == null ? void 0 : o._$AD) === e)
|
|
1465
1462
|
this._$AH.p(s);
|
|
1466
1463
|
else {
|
|
1467
|
-
const n = new
|
|
1464
|
+
const n = new fr(e, this), l = n.u(this.options);
|
|
1468
1465
|
n.p(s), this.T(l), this._$AH = n;
|
|
1469
1466
|
}
|
|
1470
1467
|
}
|
|
@@ -1477,7 +1474,7 @@ let pr = class {
|
|
|
1477
1474
|
const s = this._$AH;
|
|
1478
1475
|
let i, e = 0;
|
|
1479
1476
|
for (const o of t)
|
|
1480
|
-
e === s.length ? s.push(i = new
|
|
1477
|
+
e === s.length ? s.push(i = new gr(this.O(qe()), this.O(qe()), this, this.options)) : i = s[e], i._$AI(o), e++;
|
|
1481
1478
|
e < s.length && (this._$AR(i && i._$AB.nextSibling, e), s.length = e);
|
|
1482
1479
|
}
|
|
1483
1480
|
_$AR(t = this._$AA.nextSibling, s) {
|
|
@@ -1519,7 +1516,7 @@ class Qe {
|
|
|
1519
1516
|
t === C ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
1520
1517
|
}
|
|
1521
1518
|
}
|
|
1522
|
-
class
|
|
1519
|
+
class mr extends Qe {
|
|
1523
1520
|
constructor() {
|
|
1524
1521
|
super(...arguments), this.type = 3;
|
|
1525
1522
|
}
|
|
@@ -1527,7 +1524,7 @@ class fr extends Qe {
|
|
|
1527
1524
|
this.element[this.name] = t === C ? void 0 : t;
|
|
1528
1525
|
}
|
|
1529
1526
|
}
|
|
1530
|
-
class
|
|
1527
|
+
class br extends Qe {
|
|
1531
1528
|
constructor() {
|
|
1532
1529
|
super(...arguments), this.type = 4;
|
|
1533
1530
|
}
|
|
@@ -1535,7 +1532,7 @@ class gr extends Qe {
|
|
|
1535
1532
|
this.element.toggleAttribute(this.name, !!t && t !== C);
|
|
1536
1533
|
}
|
|
1537
1534
|
}
|
|
1538
|
-
class
|
|
1535
|
+
class vr extends Qe {
|
|
1539
1536
|
constructor(t, s, i, e, o) {
|
|
1540
1537
|
super(t, s, i, e, o), this.type = 5;
|
|
1541
1538
|
}
|
|
@@ -1550,7 +1547,7 @@ class mr extends Qe {
|
|
|
1550
1547
|
typeof this._$AH == "function" ? this._$AH.call(((s = this.options) == null ? void 0 : s.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
1551
1548
|
}
|
|
1552
1549
|
}
|
|
1553
|
-
class
|
|
1550
|
+
class yr {
|
|
1554
1551
|
constructor(t, s, i) {
|
|
1555
1552
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = s, this.options = i;
|
|
1556
1553
|
}
|
|
@@ -1561,9 +1558,9 @@ class br {
|
|
|
1561
1558
|
he(this, t);
|
|
1562
1559
|
}
|
|
1563
1560
|
}
|
|
1564
|
-
const
|
|
1561
|
+
const ro = { M: di, P: Ut, A: pi, C: 1, L: ur, R: fr, D: hr, V: he, I: Ss, H: Qe, N: br, U: vr, B: mr, F: yr }, Is = Re.litHtmlPolyfillSupport;
|
|
1565
1562
|
Is == null || Is(We, Ss), (Re.litHtmlVersions ?? (Re.litHtmlVersions = [])).push("3.2.0");
|
|
1566
|
-
const
|
|
1563
|
+
const oo = (r, t, s) => {
|
|
1567
1564
|
const i = (s == null ? void 0 : s.renderBefore) ?? t;
|
|
1568
1565
|
let e = i._$litPart$;
|
|
1569
1566
|
if (e === void 0) {
|
|
@@ -1577,12 +1574,12 @@ const io = (r, t, s) => {
|
|
|
1577
1574
|
* Copyright 2020 Google LLC
|
|
1578
1575
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1579
1576
|
*/
|
|
1580
|
-
const { I:
|
|
1577
|
+
const { I: no } = ro, ao = (r) => r.strings === void 0, Ri = () => document.createComment(""), je = (r, t, s) => {
|
|
1581
1578
|
var o;
|
|
1582
1579
|
const i = r._$AA.parentNode, e = t === void 0 ? r._$AB : t._$AA;
|
|
1583
1580
|
if (s === void 0) {
|
|
1584
1581
|
const n = i.insertBefore(Ri(), e), l = i.insertBefore(Ri(), e);
|
|
1585
|
-
s = new
|
|
1582
|
+
s = new no(n, l, r, r.options);
|
|
1586
1583
|
} else {
|
|
1587
1584
|
const n = s._$AB.nextSibling, l = s._$AM, c = l !== r;
|
|
1588
1585
|
if (c) {
|
|
@@ -1598,7 +1595,7 @@ const { I: ro } = so, oo = (r) => r.strings === void 0, Ri = () => document.crea
|
|
|
1598
1595
|
}
|
|
1599
1596
|
}
|
|
1600
1597
|
return s;
|
|
1601
|
-
}, re = (r, t, s = r) => (r._$AI(t, s), r),
|
|
1598
|
+
}, re = (r, t, s = r) => (r._$AI(t, s), r), lo = {}, co = (r, t = lo) => r._$AH = t, ho = (r) => r._$AH, Fs = (r) => {
|
|
1602
1599
|
var i;
|
|
1603
1600
|
(i = r._$AP) == null || i.call(r, !1, !0);
|
|
1604
1601
|
let t = r._$AA;
|
|
@@ -1650,20 +1647,20 @@ const Ue = (r, t) => {
|
|
|
1650
1647
|
break;
|
|
1651
1648
|
s = t._$AN, s.delete(r), r = t;
|
|
1652
1649
|
} while ((s == null ? void 0 : s.size) === 0);
|
|
1653
|
-
},
|
|
1650
|
+
}, wr = (r) => {
|
|
1654
1651
|
for (let t; t = r._$AM; r = t) {
|
|
1655
1652
|
let s = t._$AN;
|
|
1656
1653
|
if (s === void 0)
|
|
1657
1654
|
t._$AN = s = /* @__PURE__ */ new Set();
|
|
1658
1655
|
else if (s.has(r))
|
|
1659
1656
|
break;
|
|
1660
|
-
s.add(r),
|
|
1657
|
+
s.add(r), fo(t);
|
|
1661
1658
|
}
|
|
1662
1659
|
};
|
|
1663
|
-
function
|
|
1664
|
-
this._$AN !== void 0 ? (gs(this), this._$AM = r,
|
|
1660
|
+
function po(r) {
|
|
1661
|
+
this._$AN !== void 0 ? (gs(this), this._$AM = r, wr(this)) : this._$AM = r;
|
|
1665
1662
|
}
|
|
1666
|
-
function
|
|
1663
|
+
function uo(r, t = !1, s = 0) {
|
|
1667
1664
|
const i = this._$AH, e = this._$AN;
|
|
1668
1665
|
if (e !== void 0 && e.size !== 0)
|
|
1669
1666
|
if (t)
|
|
@@ -1675,22 +1672,22 @@ function ho(r, t = !1, s = 0) {
|
|
|
1675
1672
|
else
|
|
1676
1673
|
Ue(this, r);
|
|
1677
1674
|
}
|
|
1678
|
-
const
|
|
1679
|
-
r.type == ye.CHILD && (r._$AP ?? (r._$AP =
|
|
1675
|
+
const fo = (r) => {
|
|
1676
|
+
r.type == ye.CHILD && (r._$AP ?? (r._$AP = uo), r._$AQ ?? (r._$AQ = po));
|
|
1680
1677
|
};
|
|
1681
1678
|
class fi extends De {
|
|
1682
1679
|
constructor() {
|
|
1683
1680
|
super(...arguments), this._$AN = void 0;
|
|
1684
1681
|
}
|
|
1685
1682
|
_$AT(t, s, i) {
|
|
1686
|
-
super._$AT(t, s, i),
|
|
1683
|
+
super._$AT(t, s, i), wr(this), this.isConnected = t._$AU;
|
|
1687
1684
|
}
|
|
1688
1685
|
_$AO(t, s = !0) {
|
|
1689
1686
|
var i, e;
|
|
1690
1687
|
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (e = this.disconnected) == null || e.call(this)), s && (Ue(this, t), gs(this));
|
|
1691
1688
|
}
|
|
1692
1689
|
setValue(t) {
|
|
1693
|
-
if (
|
|
1690
|
+
if (ao(this.t))
|
|
1694
1691
|
this.t._$AI(t, this);
|
|
1695
1692
|
else {
|
|
1696
1693
|
const s = [...this.t._$AH];
|
|
@@ -1718,7 +1715,7 @@ let w = class extends Ae {
|
|
|
1718
1715
|
}
|
|
1719
1716
|
update(t) {
|
|
1720
1717
|
const s = this.render();
|
|
1721
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this.o =
|
|
1718
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this.o = oo(s, this.renderRoot, this.renderOptions);
|
|
1722
1719
|
}
|
|
1723
1720
|
connectedCallback() {
|
|
1724
1721
|
var t;
|
|
@@ -1732,8 +1729,8 @@ let w = class extends Ae {
|
|
|
1732
1729
|
return yt;
|
|
1733
1730
|
}
|
|
1734
1731
|
};
|
|
1735
|
-
var
|
|
1736
|
-
w._$litElement$ = !0, w.finalized = !0, (
|
|
1732
|
+
var lr;
|
|
1733
|
+
w._$litElement$ = !0, w.finalized = !0, (lr = globalThis.litElementHydrateSupport) == null || lr.call(globalThis, { LitElement: w });
|
|
1737
1734
|
const zs = globalThis.litElementPolyfillSupport;
|
|
1738
1735
|
zs == null || zs({ LitElement: w });
|
|
1739
1736
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.0");
|
|
@@ -1751,7 +1748,7 @@ function Os(r) {
|
|
|
1751
1748
|
}
|
|
1752
1749
|
return /* @__PURE__ */ new Set([r]);
|
|
1753
1750
|
}
|
|
1754
|
-
class
|
|
1751
|
+
class go extends fi {
|
|
1755
1752
|
/* eslint-disable @typescript-eslint/no-explicit-any*/
|
|
1756
1753
|
constructor(t) {
|
|
1757
1754
|
var s;
|
|
@@ -1790,35 +1787,35 @@ class uo extends fi {
|
|
|
1790
1787
|
this.observable && this.subscribe(this.observable);
|
|
1791
1788
|
}
|
|
1792
1789
|
}
|
|
1793
|
-
const
|
|
1790
|
+
const _r = we(go), mo = _r, bo = _r, vo = (r) => Os(r).values().next().value.get(), xr = (r, t) => {
|
|
1794
1791
|
const s = Os(r).values().next().value;
|
|
1795
1792
|
if (t !== void 0) {
|
|
1796
1793
|
const i = s.get();
|
|
1797
1794
|
J.isEmpty(i) && s.set(t);
|
|
1798
1795
|
}
|
|
1799
1796
|
return s;
|
|
1800
|
-
},
|
|
1797
|
+
}, yo = xr, Pr = xr, wo = (r, t) => {
|
|
1801
1798
|
Os(r).values().next().value.set(t);
|
|
1802
|
-
},
|
|
1799
|
+
}, F = class F {
|
|
1803
1800
|
constructor(t) {
|
|
1804
1801
|
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";
|
|
1805
1802
|
}
|
|
1806
1803
|
set token(t) {
|
|
1807
1804
|
if (this._token = t, !t) {
|
|
1808
|
-
|
|
1805
|
+
F.tokens.delete(this.serviceURL);
|
|
1809
1806
|
return;
|
|
1810
1807
|
}
|
|
1811
|
-
|
|
1808
|
+
F.invalidTokens.includes(t) || F.tokens.set(this.serviceURL, t);
|
|
1812
1809
|
}
|
|
1813
1810
|
get token() {
|
|
1814
|
-
return
|
|
1811
|
+
return F.invalidTokens.includes(this._token) ? F.tokens.get(this.serviceURL) : this._token;
|
|
1815
1812
|
}
|
|
1816
1813
|
handleInvalidToken(t) {
|
|
1817
|
-
t && (
|
|
1814
|
+
t && (F.invalidTokens.includes(t) || (F.invalidTokens.push(t), this.token = null));
|
|
1818
1815
|
}
|
|
1819
1816
|
async handleResult(t, s) {
|
|
1820
1817
|
var n;
|
|
1821
|
-
|
|
1818
|
+
F.firstCallDoneFlags.set(this.serviceURL, "done"), this.lastResult = t;
|
|
1822
1819
|
const i = (n = t.headers.get("content-type")) == null ? void 0 : n.toLowerCase(), e = t.status;
|
|
1823
1820
|
let o = {};
|
|
1824
1821
|
if (!i || i.indexOf("text/") == 0)
|
|
@@ -1829,7 +1826,7 @@ const yr = we(uo), fo = yr, go = yr, mo = (r) => Os(r).values().next().value.get
|
|
|
1829
1826
|
} catch {
|
|
1830
1827
|
o = {};
|
|
1831
1828
|
}
|
|
1832
|
-
return this.addHTTPResponse && J.isObject(o) && (o._sonic_http_response_ = t), e === 498 && !
|
|
1829
|
+
return this.addHTTPResponse && J.isObject(o) && (o._sonic_http_response_ = t), e === 498 && !F.failledTokenUpdates.has(this.serviceURL) && (this.handleInvalidToken(this.token), s.apiMethod === "get" ? o = await this[s.apiMethod](
|
|
1833
1830
|
s.path,
|
|
1834
1831
|
s.additionalHeaders
|
|
1835
1832
|
) : o = await this[s.apiMethod](
|
|
@@ -1845,8 +1842,8 @@ const yr = we(uo), fo = yr, go = yr, mo = (r) => Os(r).values().next().value.get
|
|
|
1845
1842
|
async auth() {
|
|
1846
1843
|
if (this.token)
|
|
1847
1844
|
return;
|
|
1848
|
-
if (
|
|
1849
|
-
this.token =
|
|
1845
|
+
if (F.tokens.has(this.serviceURL)) {
|
|
1846
|
+
this.token = F.tokens.get(this.serviceURL);
|
|
1850
1847
|
return;
|
|
1851
1848
|
}
|
|
1852
1849
|
if (!this.tokenProvider)
|
|
@@ -1870,9 +1867,9 @@ const yr = we(uo), fo = yr, go = yr, mo = (r) => Os(r).values().next().value.get
|
|
|
1870
1867
|
);
|
|
1871
1868
|
try {
|
|
1872
1869
|
const o = await e.json();
|
|
1873
|
-
o.token ? this.token = o.token :
|
|
1870
|
+
o.token ? this.token = o.token : F.failledTokenUpdates.set(this.serviceURL, !0);
|
|
1874
1871
|
} catch {
|
|
1875
|
-
|
|
1872
|
+
F.failledTokenUpdates.set(this.serviceURL, !0);
|
|
1876
1873
|
}
|
|
1877
1874
|
}
|
|
1878
1875
|
/**
|
|
@@ -1912,12 +1909,12 @@ const yr = we(uo), fo = yr, go = yr, mo = (r) => Os(r).values().next().value.get
|
|
|
1912
1909
|
*/
|
|
1913
1910
|
firstCallDone() {
|
|
1914
1911
|
return new Promise((t) => {
|
|
1915
|
-
if (!
|
|
1916
|
-
|
|
1912
|
+
if (!F.firstCallDoneFlags.has(this.serviceURL))
|
|
1913
|
+
F.firstCallDoneFlags.set(this.serviceURL, "loading"), t(!0);
|
|
1917
1914
|
else {
|
|
1918
1915
|
const s = () => {
|
|
1919
1916
|
[void 0, "loading"].includes(
|
|
1920
|
-
|
|
1917
|
+
F.firstCallDoneFlags.get(this.serviceURL)
|
|
1921
1918
|
) ? window.requestAnimationFrame(s) : t(!0);
|
|
1922
1919
|
};
|
|
1923
1920
|
s();
|
|
@@ -1925,7 +1922,7 @@ const yr = we(uo), fo = yr, go = yr, mo = (r) => Os(r).values().next().value.get
|
|
|
1925
1922
|
});
|
|
1926
1923
|
}
|
|
1927
1924
|
async get(t, s) {
|
|
1928
|
-
await this.firstCallDone(), this.blockUntilDone &&
|
|
1925
|
+
await this.firstCallDone(), this.blockUntilDone && F.firstCallDoneFlags.set(this.serviceURL, "loading");
|
|
1929
1926
|
const i = /dataProvider\((.*?)\)(.*?)$/;
|
|
1930
1927
|
if (i.test(t)) {
|
|
1931
1928
|
const h = t.match(i);
|
|
@@ -1941,7 +1938,7 @@ const yr = we(uo), fo = yr, go = yr, mo = (r) => Os(r).values().next().value.get
|
|
|
1941
1938
|
url: n,
|
|
1942
1939
|
headers: o
|
|
1943
1940
|
});
|
|
1944
|
-
if (!
|
|
1941
|
+
if (!F.loadingGetPromises.has(l)) {
|
|
1945
1942
|
const h = new Promise(async (d) => {
|
|
1946
1943
|
try {
|
|
1947
1944
|
const f = await fetch(n, {
|
|
@@ -1954,10 +1951,10 @@ const yr = we(uo), fo = yr, go = yr, mo = (r) => Os(r).values().next().value.get
|
|
|
1954
1951
|
d(null);
|
|
1955
1952
|
}
|
|
1956
1953
|
});
|
|
1957
|
-
|
|
1954
|
+
F.loadingGetPromises.set(l, h);
|
|
1958
1955
|
}
|
|
1959
|
-
const c = await
|
|
1960
|
-
return
|
|
1956
|
+
const c = await F.loadingGetPromises.get(l);
|
|
1957
|
+
return F.loadingGetPromises.delete(l), c;
|
|
1961
1958
|
}
|
|
1962
1959
|
/**
|
|
1963
1960
|
* Création du header, avec authentification si besoin
|
|
@@ -1966,7 +1963,7 @@ const yr = we(uo), fo = yr, go = yr, mo = (r) => Os(r).values().next().value.get
|
|
|
1966
1963
|
async createHeaders(t) {
|
|
1967
1964
|
await this.auth();
|
|
1968
1965
|
const s = {};
|
|
1969
|
-
return this.token && (s.Authorization = "Bearer " + this.token), s["Accept-Language"] =
|
|
1966
|
+
return this.token && (s.Authorization = "Bearer " + this.token), s["Accept-Language"] = et.getLanguage(), t && Object.assign(s, t), s;
|
|
1970
1967
|
}
|
|
1971
1968
|
/**
|
|
1972
1969
|
* Concatène le serviceURL et le endpoint donné en paramètre
|
|
@@ -2047,8 +2044,8 @@ const yr = we(uo), fo = yr, go = yr, mo = (r) => Os(r).values().next().value.get
|
|
|
2047
2044
|
return this.send(t, s, "delete", i);
|
|
2048
2045
|
}
|
|
2049
2046
|
};
|
|
2050
|
-
|
|
2051
|
-
let Oe =
|
|
2047
|
+
F.loadingGetPromises = /* @__PURE__ */ new Map(), F.tokens = /* @__PURE__ */ new Map(), F.invalidTokens = [], F.failledTokenUpdates = /* @__PURE__ */ new Map(), F.firstCallDoneFlags = /* @__PURE__ */ new Map();
|
|
2048
|
+
let Oe = F;
|
|
2052
2049
|
/**
|
|
2053
2050
|
* @license
|
|
2054
2051
|
* Copyright 2017 Google LLC
|
|
@@ -2074,13 +2071,13 @@ class qs extends De {
|
|
|
2074
2071
|
}
|
|
2075
2072
|
}
|
|
2076
2073
|
qs.directiveName = "unsafeHTML", qs.resultType = 1;
|
|
2077
|
-
const
|
|
2074
|
+
const z = we(qs), Hs = /* @__PURE__ */ new Map(), Ui = (r) => {
|
|
2078
2075
|
if (!r)
|
|
2079
2076
|
return null;
|
|
2080
|
-
const t =
|
|
2077
|
+
const t = et.getApiConfiguration(r), s = et.getAncestorAttributeValue(
|
|
2081
2078
|
r,
|
|
2082
2079
|
"wordingProvider"
|
|
2083
|
-
), i =
|
|
2080
|
+
), i = et.getAncestorAttributeValue(
|
|
2084
2081
|
r,
|
|
2085
2082
|
"wordingVersionProvider"
|
|
2086
2083
|
), e = {
|
|
@@ -2107,7 +2104,7 @@ const F = we(qs), Hs = /* @__PURE__ */ new Map(), Ui = (r) => {
|
|
|
2107
2104
|
/* eslint-disable @typescript-eslint/no-explicit-any*/
|
|
2108
2105
|
constructor(t) {
|
|
2109
2106
|
super(t), this.useUnsafeHTML = !1, this.onAssign = (s) => {
|
|
2110
|
-
const i = this.useUnsafeHTML ?
|
|
2107
|
+
const i = this.useUnsafeHTML ? z(s) : s;
|
|
2111
2108
|
this.setValue(i);
|
|
2112
2109
|
}, this.node = t.options.host;
|
|
2113
2110
|
}
|
|
@@ -2126,11 +2123,11 @@ const F = we(qs), Hs = /* @__PURE__ */ new Map(), Ui = (r) => {
|
|
|
2126
2123
|
B.publisher.get()[f] === Vi && delete B.publisher[f];
|
|
2127
2124
|
}
|
|
2128
2125
|
if (t) {
|
|
2129
|
-
const d =
|
|
2126
|
+
const d = et.getAncestorAttributeValue(
|
|
2130
2127
|
t,
|
|
2131
2128
|
"wordingVersionProvider"
|
|
2132
2129
|
);
|
|
2133
|
-
d &&
|
|
2130
|
+
d && Pr(d).onAssign(
|
|
2134
2131
|
B.handleVersionProvider(t)
|
|
2135
2132
|
);
|
|
2136
2133
|
}
|
|
@@ -2217,10 +2214,10 @@ B.publisher = T.get("sonic-wording", {
|
|
|
2217
2214
|
localStorageMode: "enabled"
|
|
2218
2215
|
}), B.firstCall = !0, B.versionProviderHandlers = /* @__PURE__ */ new Map();
|
|
2219
2216
|
let Ve = B;
|
|
2220
|
-
var
|
|
2221
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
2217
|
+
var _o = Object.defineProperty, xo = Object.getOwnPropertyDescriptor, zt = (r, t, s, i) => {
|
|
2218
|
+
for (var e = i > 1 ? void 0 : i ? xo(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
2222
2219
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
2223
|
-
return i && e &&
|
|
2220
|
+
return i && e && _o(t, s, e), e;
|
|
2224
2221
|
};
|
|
2225
2222
|
let as = !1, Rs = /* @__PURE__ */ new Set();
|
|
2226
2223
|
const Z = (r, t) => {
|
|
@@ -2245,7 +2242,7 @@ const Z = (r, t) => {
|
|
|
2245
2242
|
* @returns valeur de l'attribut ou null si l'attribut n'est pas trouvé
|
|
2246
2243
|
*/
|
|
2247
2244
|
getAncestorAttributeValue(n) {
|
|
2248
|
-
return
|
|
2245
|
+
return et.getAncestorAttributeValue(this, n);
|
|
2249
2246
|
}
|
|
2250
2247
|
get props() {
|
|
2251
2248
|
return this._props !== null || !this.publisher ? this._props : this.publisher.get();
|
|
@@ -2324,7 +2321,7 @@ const Z = (r, t) => {
|
|
|
2324
2321
|
* A voir si on le bouge dans un utilitaire
|
|
2325
2322
|
*/
|
|
2326
2323
|
getApiConfiguration() {
|
|
2327
|
-
return
|
|
2324
|
+
return et.getApiConfiguration(this);
|
|
2328
2325
|
}
|
|
2329
2326
|
/**
|
|
2330
2327
|
* Initialise le remplisage automatique des traductions / du wording
|
|
@@ -2392,10 +2389,10 @@ const Z = (r, t) => {
|
|
|
2392
2389
|
a()
|
|
2393
2390
|
], s.prototype, "props", 1), s;
|
|
2394
2391
|
};
|
|
2395
|
-
var
|
|
2392
|
+
var Po = Object.defineProperty, $o = (r, t, s, i) => {
|
|
2396
2393
|
for (var e = void 0, o = r.length - 1, n; o >= 0; o--)
|
|
2397
2394
|
(n = r[o]) && (e = n(t, s, e) || e);
|
|
2398
|
-
return e &&
|
|
2395
|
+
return e && Po(t, s, e), e;
|
|
2399
2396
|
};
|
|
2400
2397
|
const Je = (r) => {
|
|
2401
2398
|
class t extends r {
|
|
@@ -2409,16 +2406,16 @@ const Je = (r) => {
|
|
|
2409
2406
|
this.templateList = i.filter((e) => !e.getAttribute("data-value")), this.templateList.length == 0 && (this.templateList = i), super.connectedCallback();
|
|
2410
2407
|
}
|
|
2411
2408
|
}
|
|
2412
|
-
return
|
|
2409
|
+
return $o([
|
|
2413
2410
|
a({ type: Array })
|
|
2414
2411
|
], t.prototype, "templates"), t;
|
|
2415
2412
|
};
|
|
2416
|
-
var
|
|
2417
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
2413
|
+
var Co = Object.defineProperty, Ao = Object.getOwnPropertyDescriptor, Y = (r, t, s, i) => {
|
|
2414
|
+
for (var e = i > 1 ? void 0 : i ? Ao(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
2418
2415
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
2419
|
-
return i && e &&
|
|
2416
|
+
return i && e && Co(t, s, e), e;
|
|
2420
2417
|
};
|
|
2421
|
-
const
|
|
2418
|
+
const So = "sonic-date";
|
|
2422
2419
|
let W = class extends Z(Je(w)) {
|
|
2423
2420
|
constructor() {
|
|
2424
2421
|
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();
|
|
@@ -2431,7 +2428,7 @@ let W = class extends Z(Je(w)) {
|
|
|
2431
2428
|
r || (r = "Du %s au %s"), this._wording_billet_periode_validite = r, this.duAu = (t = this.wording_billet_periode_validite) == null ? void 0 : t.split("%s").map((s) => s.trim()), this.duAu.pop(), this.requestUpdate();
|
|
2432
2429
|
}
|
|
2433
2430
|
connectedCallback() {
|
|
2434
|
-
this.hasAttribute("wording_billet_periode_validite") || (this.wording_billet_periode_validite = "Du %s au %s"), this.pageLanguage =
|
|
2431
|
+
this.hasAttribute("wording_billet_periode_validite") || (this.wording_billet_periode_validite = "Du %s au %s"), this.pageLanguage = et.getLanguage(), super.connectedCallback();
|
|
2435
2432
|
}
|
|
2436
2433
|
/**
|
|
2437
2434
|
* Retourne un tableau des différentes parties de la date en fonction des options données, de la date de début et de fin.
|
|
@@ -2482,7 +2479,7 @@ let W = class extends Z(Je(w)) {
|
|
|
2482
2479
|
};
|
|
2483
2480
|
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);
|
|
2484
2481
|
const t = this.getDatesParts(this.start_date, this.end_date, r);
|
|
2485
|
-
return
|
|
2482
|
+
return z(
|
|
2486
2483
|
`${t.map((s) => {
|
|
2487
2484
|
const i = this.templateParts[s.type];
|
|
2488
2485
|
if (i) {
|
|
@@ -2559,7 +2556,7 @@ Y([
|
|
|
2559
2556
|
a({ type: Boolean })
|
|
2560
2557
|
], W.prototype, "now", 2);
|
|
2561
2558
|
W = Y([
|
|
2562
|
-
_(
|
|
2559
|
+
_(So)
|
|
2563
2560
|
], W);
|
|
2564
2561
|
var t, G;
|
|
2565
2562
|
let rt = (G = class {
|
|
@@ -2646,7 +2643,7 @@ let rt = (G = class {
|
|
|
2646
2643
|
* Copyright 2018 Google LLC
|
|
2647
2644
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2648
2645
|
*/
|
|
2649
|
-
const
|
|
2646
|
+
const $r = "important", Oo = " !" + $r, ut = we(class extends De {
|
|
2650
2647
|
constructor(r) {
|
|
2651
2648
|
var t;
|
|
2652
2649
|
if (super(r), r.type !== ye.ATTRIBUTE || r.name !== "style" || ((t = r.strings) == null ? void 0 : t.length) > 2)
|
|
@@ -2668,17 +2665,17 @@ const xr = "important", Ao = " !" + xr, ut = we(class extends De {
|
|
|
2668
2665
|
const e = t[i];
|
|
2669
2666
|
if (e != null) {
|
|
2670
2667
|
this.ft.add(i);
|
|
2671
|
-
const o = typeof e == "string" && e.endsWith(
|
|
2672
|
-
i.includes("-") || o ? s.setProperty(i, o ? e.slice(0, -11) : e, o ?
|
|
2668
|
+
const o = typeof e == "string" && e.endsWith(Oo);
|
|
2669
|
+
i.includes("-") || o ? s.setProperty(i, o ? e.slice(0, -11) : e, o ? $r : "") : s[i] = e;
|
|
2673
2670
|
}
|
|
2674
2671
|
}
|
|
2675
2672
|
return yt;
|
|
2676
2673
|
}
|
|
2677
2674
|
});
|
|
2678
|
-
var
|
|
2679
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
2675
|
+
var Do = Object.defineProperty, ko = Object.getOwnPropertyDescriptor, St = (r, t, s, i) => {
|
|
2676
|
+
for (var e = i > 1 ? void 0 : i ? ko(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
2680
2677
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
2681
|
-
return i && e &&
|
|
2678
|
+
return i && e && Do(t, s, e), e;
|
|
2682
2679
|
};
|
|
2683
2680
|
const ls = /* @__PURE__ */ new Map(), ke = (r) => {
|
|
2684
2681
|
class t extends r {
|
|
@@ -2853,7 +2850,7 @@ const ls = /* @__PURE__ */ new Map(), ke = (r) => {
|
|
|
2853
2850
|
a()
|
|
2854
2851
|
], t.prototype, "value", 1), t;
|
|
2855
2852
|
};
|
|
2856
|
-
let
|
|
2853
|
+
let Lo = class {
|
|
2857
2854
|
static async queueTaskPromise() {
|
|
2858
2855
|
return new Promise((t) => {
|
|
2859
2856
|
window.queueMicrotask(() => t(null));
|
|
@@ -2864,7 +2861,7 @@ let Do = class {
|
|
|
2864
2861
|
setTimeout(s, t);
|
|
2865
2862
|
});
|
|
2866
2863
|
}
|
|
2867
|
-
},
|
|
2864
|
+
}, Eo = class ne {
|
|
2868
2865
|
/**
|
|
2869
2866
|
* Vérifie si les deux tableaux ont le même contenu
|
|
2870
2867
|
*/
|
|
@@ -2975,8 +2972,8 @@ let Do = class {
|
|
|
2975
2972
|
}
|
|
2976
2973
|
/*eslint-enable @typescript-eslint/no-explicit-any*/
|
|
2977
2974
|
};
|
|
2978
|
-
var
|
|
2979
|
-
function
|
|
2975
|
+
var No = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2976
|
+
function To(r) {
|
|
2980
2977
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
2981
2978
|
}
|
|
2982
2979
|
var Ws = { exports: {} };
|
|
@@ -2984,7 +2981,7 @@ var Ws = { exports: {} };
|
|
|
2984
2981
|
var s = [].slice;
|
|
2985
2982
|
(function(i, e) {
|
|
2986
2983
|
return t !== null ? r.exports = e() : i.UrlPattern = e();
|
|
2987
|
-
})(
|
|
2984
|
+
})(No, function() {
|
|
2988
2985
|
var i, e, o, n, l, c, h, d, f, m, v, b, P, S, D;
|
|
2989
2986
|
return f = function(p) {
|
|
2990
2987
|
return p.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
@@ -3001,9 +2998,9 @@ var Ws = { exports: {} };
|
|
|
3001
2998
|
}, P = function(p) {
|
|
3002
2999
|
return new RegExp(p.toString() + "|").exec("").length - 1;
|
|
3003
3000
|
}, v = function(p, u) {
|
|
3004
|
-
var y, A, O, L,
|
|
3001
|
+
var y, A, O, L, R;
|
|
3005
3002
|
for (L = {}, y = -1, O = p.length; ++y < O; )
|
|
3006
|
-
A = p[y],
|
|
3003
|
+
A = p[y], R = u[y], R != null && (L[A] != null ? (Array.isArray(L[A]) || (L[A] = [L[A]]), L[A].push(R)) : L[A] = R);
|
|
3007
3004
|
return L;
|
|
3008
3005
|
}, i = {}, i.Result = function(p, u) {
|
|
3009
3006
|
this.value = p, this.rest = u;
|
|
@@ -3024,11 +3021,11 @@ var Ws = { exports: {} };
|
|
|
3024
3021
|
}, i.sequence = function() {
|
|
3025
3022
|
var p;
|
|
3026
3023
|
return p = 1 <= arguments.length ? s.call(arguments, 0) : [], function(u) {
|
|
3027
|
-
var y, A, O, L,
|
|
3024
|
+
var y, A, O, L, R, H;
|
|
3028
3025
|
for (y = -1, A = p.length, H = [], L = u; ++y < A; ) {
|
|
3029
|
-
if (O = p[y],
|
|
3026
|
+
if (O = p[y], R = O(L), R == null)
|
|
3030
3027
|
return;
|
|
3031
|
-
H.push(
|
|
3028
|
+
H.push(R.value), L = R.rest;
|
|
3032
3029
|
}
|
|
3033
3030
|
return new i.Result(H, L);
|
|
3034
3031
|
};
|
|
@@ -3051,9 +3048,9 @@ var Ws = { exports: {} };
|
|
|
3051
3048
|
return u == null && (u = p()), u(y);
|
|
3052
3049
|
};
|
|
3053
3050
|
}, i.baseMany = function(p, u, y, A, O) {
|
|
3054
|
-
var L,
|
|
3055
|
-
for (H = O, bt = y ? "" : []; !(u != null && (L = u(H), L != null) || (
|
|
3056
|
-
y ? bt +=
|
|
3051
|
+
var L, R, H, bt;
|
|
3052
|
+
for (H = O, bt = y ? "" : []; !(u != null && (L = u(H), L != null) || (R = p(H), R == null)); )
|
|
3053
|
+
y ? bt += R.value : bt.push(R.value), H = R.rest;
|
|
3057
3054
|
if (!(A && bt.length === 0))
|
|
3058
3055
|
return new i.Result(bt, H);
|
|
3059
3056
|
}, i.many1 = function(p) {
|
|
@@ -3124,7 +3121,7 @@ var Ws = { exports: {} };
|
|
|
3124
3121
|
return n(p.value);
|
|
3125
3122
|
}
|
|
3126
3123
|
}, m = function(p, u, y, A) {
|
|
3127
|
-
var O, L,
|
|
3124
|
+
var O, L, R, H;
|
|
3128
3125
|
if (A == null && (A = !1), H = p[u], H == null) {
|
|
3129
3126
|
if (A)
|
|
3130
3127
|
throw new Error("no values provided for key `" + u + "`");
|
|
@@ -3135,7 +3132,7 @@ var Ws = { exports: {} };
|
|
|
3135
3132
|
throw new Error("too few values provided for key `" + u + "`");
|
|
3136
3133
|
return;
|
|
3137
3134
|
}
|
|
3138
|
-
return
|
|
3135
|
+
return R = Array.isArray(H) ? H[O] : H, A && (y[u] = O + 1), R;
|
|
3139
3136
|
}, o = function(p, u, y) {
|
|
3140
3137
|
var A, O;
|
|
3141
3138
|
if (Array.isArray(p)) {
|
|
@@ -3170,7 +3167,7 @@ var Ws = { exports: {} };
|
|
|
3170
3167
|
return o(p.value, u, y) ? D(p.value, u, y) : "";
|
|
3171
3168
|
}
|
|
3172
3169
|
}, e = function(p, u) {
|
|
3173
|
-
var y, A, O, L,
|
|
3170
|
+
var y, A, O, L, R;
|
|
3174
3171
|
if (p instanceof e) {
|
|
3175
3172
|
this.isRegex = p.isRegex, this.regex = p.regex, this.ast = p.ast, this.names = p.names;
|
|
3176
3173
|
return;
|
|
@@ -3189,7 +3186,7 @@ var Ws = { exports: {} };
|
|
|
3189
3186
|
}
|
|
3190
3187
|
if (p === "")
|
|
3191
3188
|
throw new Error("argument must not be the empty string");
|
|
3192
|
-
if (
|
|
3189
|
+
if (R = p.replace(/\s+/g, ""), R !== p)
|
|
3193
3190
|
throw new Error("argument must not contain whitespace");
|
|
3194
3191
|
if (A = {
|
|
3195
3192
|
escapeChar: (u != null ? u.escapeChar : void 0) || d.escapeChar,
|
|
@@ -3216,26 +3213,26 @@ var Ws = { exports: {} };
|
|
|
3216
3213
|
}, e.escapeForRegex = f, e.concatMap = h, e.stringConcatMap = S, e.regexGroupCount = P, e.keysAndValuesToObject = v, e.P = i, e.newParser = b, e.defaultOptions = d, e.astNodeToRegexString = l, e.astNodeToNames = n, e.getParam = m, e.astNodeContainsSegmentsForProvidedParams = o, e.stringify = D, e;
|
|
3217
3214
|
});
|
|
3218
3215
|
})(Ws, Ws.exports);
|
|
3219
|
-
var
|
|
3220
|
-
const le = /* @__PURE__ */
|
|
3216
|
+
var Mo = Ws.exports;
|
|
3217
|
+
const le = /* @__PURE__ */ To(Mo), jo = Lo, Io = Eo, Fo = As, zo = ps, de = et, Ro = rt, Xe = J, Uo = Be, tt = T, Vo = Oe, Bo = le;
|
|
3221
3218
|
window["concorde-utils"] = window["concorde-utils"] || {};
|
|
3222
3219
|
window["concorde-utils"] = {
|
|
3223
|
-
Utils:
|
|
3224
|
-
Arrays:
|
|
3225
|
-
DataBindObserver:
|
|
3226
|
-
Format:
|
|
3220
|
+
Utils: jo,
|
|
3221
|
+
Arrays: Io,
|
|
3222
|
+
DataBindObserver: Fo,
|
|
3223
|
+
Format: zo,
|
|
3227
3224
|
HTML: de,
|
|
3228
|
-
LocationHandler:
|
|
3225
|
+
LocationHandler: Ro,
|
|
3229
3226
|
Objects: Xe,
|
|
3230
|
-
PublisherProxy:
|
|
3231
|
-
PublisherManager:
|
|
3232
|
-
api:
|
|
3233
|
-
URLPattern:
|
|
3227
|
+
PublisherProxy: Uo,
|
|
3228
|
+
PublisherManager: tt,
|
|
3229
|
+
api: Vo,
|
|
3230
|
+
URLPattern: Bo
|
|
3234
3231
|
};
|
|
3235
|
-
var
|
|
3236
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
3232
|
+
var qo = Object.defineProperty, Ho = Object.getOwnPropertyDescriptor, Ce = (r, t, s, i) => {
|
|
3233
|
+
for (var e = i > 1 ? void 0 : i ? Ho(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
3237
3234
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
3238
|
-
return i && e &&
|
|
3235
|
+
return i && e && qo(t, s, e), e;
|
|
3239
3236
|
};
|
|
3240
3237
|
const gi = (r) => {
|
|
3241
3238
|
class t extends r {
|
|
@@ -3317,16 +3314,14 @@ const gi = (r) => {
|
|
|
3317
3314
|
* Le comportement est ici modifié fonction de son mode (checkbox, radio, unique)
|
|
3318
3315
|
*/
|
|
3319
3316
|
getValueForFormPublisher() {
|
|
3320
|
-
|
|
3321
|
-
return null;
|
|
3322
|
-
let e = this.getFormPublisherValue();
|
|
3317
|
+
let i = this.getFormPublisherValue();
|
|
3323
3318
|
if (this.radio)
|
|
3324
|
-
return this.checked === !0 && this.value != null ? this.value :
|
|
3319
|
+
return this.checked === !0 && this.value != null ? this.value : i;
|
|
3325
3320
|
if (this.unique)
|
|
3326
3321
|
return this.checked === !0 && this.value != null ? this.value : null;
|
|
3327
|
-
Array.isArray(
|
|
3328
|
-
const
|
|
3329
|
-
return this.checked === !0 &&
|
|
3322
|
+
Array.isArray(i) || (i = []);
|
|
3323
|
+
const e = i.slice(0), o = e.indexOf(this.value);
|
|
3324
|
+
return this.checked === !0 && o === -1 && !this.checksAll() && e.push(this.value), this.checked === null && o !== -1 && e.splice(o, 1), e;
|
|
3330
3325
|
}
|
|
3331
3326
|
/**
|
|
3332
3327
|
* Voir la mixin FormElement
|
|
@@ -3343,7 +3338,7 @@ const gi = (r) => {
|
|
|
3343
3338
|
getCheckAllPublisher() {
|
|
3344
3339
|
this.formDataProvider || (this.formDataProvider = this.getAncestorAttributeValue("formDataProvider"));
|
|
3345
3340
|
const i = this.formDataProvider, e = this.getAttribute("name");
|
|
3346
|
-
return !i || !e ? null :
|
|
3341
|
+
return !i || !e ? null : tt.get(
|
|
3347
3342
|
i + "/" + e + "/_available_values_"
|
|
3348
3343
|
);
|
|
3349
3344
|
}
|
|
@@ -3421,12 +3416,12 @@ const x = (r) => r ?? C, Nt = $`
|
|
|
3421
3416
|
--sc-fs: 1em;
|
|
3422
3417
|
}
|
|
3423
3418
|
`;
|
|
3424
|
-
var
|
|
3425
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
3419
|
+
var Wo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor, V = (r, t, s, i) => {
|
|
3420
|
+
for (var e = i > 1 ? void 0 : i ? Ko(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
3426
3421
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
3427
|
-
return i && e &&
|
|
3422
|
+
return i && e && Wo(t, s, e), e;
|
|
3428
3423
|
};
|
|
3429
|
-
const
|
|
3424
|
+
const Zo = "sonic-button";
|
|
3430
3425
|
let M = class extends gi(ke(Z(w))) {
|
|
3431
3426
|
constructor() {
|
|
3432
3427
|
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 = () => {
|
|
@@ -3446,7 +3441,7 @@ let M = class extends gi(ke(Z(w))) {
|
|
|
3446
3441
|
}
|
|
3447
3442
|
handleChange(r) {
|
|
3448
3443
|
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(), rt.changeFromComponent(this)), this.hasAttribute("reset"))) {
|
|
3449
|
-
const t = this.getAttribute("reset"), s = t ?
|
|
3444
|
+
const t = this.getAttribute("reset"), s = t ? tt.get(t) : this.getFormPublisher();
|
|
3450
3445
|
s && s.set({});
|
|
3451
3446
|
}
|
|
3452
3447
|
}
|
|
@@ -3957,7 +3952,7 @@ V([
|
|
|
3957
3952
|
j()
|
|
3958
3953
|
], M.prototype, "location", 2);
|
|
3959
3954
|
M = V([
|
|
3960
|
-
_(
|
|
3955
|
+
_(Zo)
|
|
3961
3956
|
], M);
|
|
3962
3957
|
/**
|
|
3963
3958
|
* @license
|
|
@@ -3987,7 +3982,7 @@ const Bi = (r, t, s) => {
|
|
|
3987
3982
|
return this.dt(r, t, s).values;
|
|
3988
3983
|
}
|
|
3989
3984
|
update(r, [t, s, i]) {
|
|
3990
|
-
const e =
|
|
3985
|
+
const e = ho(r), { values: o, keys: n } = this.dt(t, s, i);
|
|
3991
3986
|
if (!Array.isArray(e))
|
|
3992
3987
|
return this.ut = n, o;
|
|
3993
3988
|
const l = this.ut ?? (this.ut = []), c = [];
|
|
@@ -4026,33 +4021,33 @@ const Bi = (r, t, s) => {
|
|
|
4026
4021
|
const P = e[f++];
|
|
4027
4022
|
P !== null && Fs(P);
|
|
4028
4023
|
}
|
|
4029
|
-
return this.ut = n,
|
|
4024
|
+
return this.ut = n, co(r, c), yt;
|
|
4030
4025
|
}
|
|
4031
|
-
}),
|
|
4026
|
+
}), Yo = /* @__PURE__ */ new WeakMap();
|
|
4032
4027
|
let qi = 0;
|
|
4033
|
-
const Us = /* @__PURE__ */ new Map(), Hi = /* @__PURE__ */ new WeakSet(), Wi = () => new Promise((r) => requestAnimationFrame(r)),
|
|
4028
|
+
const Us = /* @__PURE__ */ new Map(), Hi = /* @__PURE__ */ new WeakSet(), Wi = () => new Promise((r) => requestAnimationFrame(r)), Ki = [{ opacity: 0 }], Zi = [{ opacity: 0 }, { opacity: 1 }], Yi = (r, t) => {
|
|
4034
4029
|
const s = r - t;
|
|
4035
4030
|
return s === 0 ? void 0 : s;
|
|
4036
|
-
},
|
|
4031
|
+
}, Gi = (r, t) => {
|
|
4037
4032
|
const s = r / t;
|
|
4038
4033
|
return s === 1 ? void 0 : s;
|
|
4039
4034
|
}, Vs = { left: (r, t) => {
|
|
4040
|
-
const s =
|
|
4035
|
+
const s = Yi(r, t);
|
|
4041
4036
|
return { value: s, transform: s == null || isNaN(s) ? void 0 : `translateX(${s}px)` };
|
|
4042
4037
|
}, top: (r, t) => {
|
|
4043
|
-
const s =
|
|
4038
|
+
const s = Yi(r, t);
|
|
4044
4039
|
return { value: s, transform: s == null || isNaN(s) ? void 0 : `translateY(${s}px)` };
|
|
4045
4040
|
}, width: (r, t) => {
|
|
4046
4041
|
let s;
|
|
4047
4042
|
t === 0 && (t = 1, s = { width: "1px" });
|
|
4048
|
-
const i =
|
|
4043
|
+
const i = Gi(r, t);
|
|
4049
4044
|
return { value: i, overrideFrom: s, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
|
|
4050
4045
|
}, height: (r, t) => {
|
|
4051
4046
|
let s;
|
|
4052
4047
|
t === 0 && (t = 1, s = { height: "1px" });
|
|
4053
|
-
const i =
|
|
4048
|
+
const i = Gi(r, t);
|
|
4054
4049
|
return { value: i, overrideFrom: s, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
|
4055
|
-
} }, Go = { duration: 333, easing: "ease-in-out" }, Qo = ["left", "top", "width", "height", "opacity", "color", "background"],
|
|
4050
|
+
} }, Go = { duration: 333, easing: "ease-in-out" }, Qo = ["left", "top", "width", "height", "opacity", "color", "background"], Qi = /* @__PURE__ */ new WeakMap();
|
|
4056
4051
|
class Jo extends fi {
|
|
4057
4052
|
constructor(t) {
|
|
4058
4053
|
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === ye.CHILD)
|
|
@@ -4073,7 +4068,7 @@ class Jo extends fi {
|
|
|
4073
4068
|
return C;
|
|
4074
4069
|
}
|
|
4075
4070
|
getController() {
|
|
4076
|
-
return
|
|
4071
|
+
return Yo.get(this.u);
|
|
4077
4072
|
}
|
|
4078
4073
|
isDisabled() {
|
|
4079
4074
|
var t;
|
|
@@ -4082,7 +4077,7 @@ class Jo extends fi {
|
|
|
4082
4077
|
update(t, [s]) {
|
|
4083
4078
|
var e;
|
|
4084
4079
|
const i = this.u === void 0;
|
|
4085
|
-
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,
|
|
4080
|
+
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);
|
|
4086
4081
|
}
|
|
4087
4082
|
p(t) {
|
|
4088
4083
|
t = t ?? {};
|
|
@@ -4169,7 +4164,7 @@ class Jo extends fi {
|
|
|
4169
4164
|
O() {
|
|
4170
4165
|
const t = [];
|
|
4171
4166
|
for (let s = this.element.parentNode; s; s = s == null ? void 0 : s.parentNode) {
|
|
4172
|
-
const i =
|
|
4167
|
+
const i = Qi.get(s);
|
|
4173
4168
|
i && !i.isDisabled() && i && t.push(i);
|
|
4174
4169
|
}
|
|
4175
4170
|
return t;
|
|
@@ -4306,12 +4301,12 @@ const ds = we(Jo), Xo = {
|
|
|
4306
4301
|
},
|
|
4307
4302
|
custom: { url: "", defaultPrefix: "" }
|
|
4308
4303
|
};
|
|
4309
|
-
let
|
|
4304
|
+
let Ji = !1;
|
|
4310
4305
|
function en() {
|
|
4311
4306
|
var r, t;
|
|
4312
|
-
|
|
4307
|
+
Ji || (Ji = !0, ms.custom.url = ((r = document.querySelector("[customIconLibraryPath]")) == null ? void 0 : r.getAttribute("customIconLibraryPath")) || "", ms.custom.defaultPrefix = ((t = document.querySelector("[customIconDefaultPrefix]")) == null ? void 0 : t.getAttribute("customIconDefaultPrefix")) || "");
|
|
4313
4308
|
}
|
|
4314
|
-
const
|
|
4309
|
+
const Xi = sessionStorage.getItem("sonicIconsCache"), Ht = Xi ? JSON.parse(Xi) : { icons: {}, names: [] }, sn = 100, Oi = class Oi {
|
|
4315
4310
|
};
|
|
4316
4311
|
Oi.default = {
|
|
4317
4312
|
get: async (t) => {
|
|
@@ -4324,10 +4319,10 @@ Oi.default = {
|
|
|
4324
4319
|
e[s] = l;
|
|
4325
4320
|
const c = n + "-" + i;
|
|
4326
4321
|
if (l[c])
|
|
4327
|
-
return
|
|
4322
|
+
return z(l[c]);
|
|
4328
4323
|
const h = (o.url || "").replace("$prefix", n).replace("$name", i);
|
|
4329
4324
|
if (Ht.icons[h])
|
|
4330
|
-
return l[c] = Ht.icons[h],
|
|
4325
|
+
return l[c] = Ht.icons[h], z(Ht.icons[h]);
|
|
4331
4326
|
if (!cs.has(h)) {
|
|
4332
4327
|
const f = new Promise(async (m) => {
|
|
4333
4328
|
const v = await fetch(h);
|
|
@@ -4349,9 +4344,9 @@ Oi.default = {
|
|
|
4349
4344
|
const f = Ht.names.shift();
|
|
4350
4345
|
delete Ht.icons[f];
|
|
4351
4346
|
}
|
|
4352
|
-
return sessionStorage.setItem("sonicIconsCache", JSON.stringify(Ht)),
|
|
4347
|
+
return sessionStorage.setItem("sonicIconsCache", JSON.stringify(Ht)), z(d);
|
|
4353
4348
|
}
|
|
4354
|
-
return
|
|
4349
|
+
return z(e.core[t.name] || "");
|
|
4355
4350
|
}
|
|
4356
4351
|
};
|
|
4357
4352
|
let Ks = Oi;
|
|
@@ -4512,7 +4507,7 @@ let xt = class extends w {
|
|
|
4512
4507
|
|
|
4513
4508
|
<div class="sonic-toast-text">
|
|
4514
4509
|
${this.title ? g`<div class="sonic-toast-title">${this.title}</div>` : ""}
|
|
4515
|
-
${this.text ?
|
|
4510
|
+
${this.text ? z(this.text) : ""}
|
|
4516
4511
|
<slot></slot>
|
|
4517
4512
|
</div>
|
|
4518
4513
|
|
|
@@ -4855,7 +4850,7 @@ const dn = $`
|
|
|
4855
4850
|
--sc-input-bg: var(--sc-base-100);
|
|
4856
4851
|
--sc-input-color: var(--sc-base-content);
|
|
4857
4852
|
}
|
|
4858
|
-
`,
|
|
4853
|
+
`, tr = $`
|
|
4859
4854
|
--sc-primary: var(--sc-dark-primary, var(--sc-base-700));
|
|
4860
4855
|
--sc-info: var(--sc-dark-info, #3abff8);
|
|
4861
4856
|
--sc-danger: var(--sc-dark-danger, #f87272);
|
|
@@ -4882,12 +4877,12 @@ const dn = $`
|
|
|
4882
4877
|
--sc-base-content: var(--sc-dark-base-content, #e5e7eb);
|
|
4883
4878
|
`, un = $`
|
|
4884
4879
|
:host([theme="dark"]) {
|
|
4885
|
-
${
|
|
4880
|
+
${tr}
|
|
4886
4881
|
}
|
|
4887
4882
|
|
|
4888
4883
|
@media (prefers-color-scheme: dark) {
|
|
4889
4884
|
:host([theme="auto"]) {
|
|
4890
|
-
${
|
|
4885
|
+
${tr}
|
|
4891
4886
|
}
|
|
4892
4887
|
}
|
|
4893
4888
|
`;
|
|
@@ -4921,7 +4916,7 @@ let vt = class extends w {
|
|
|
4921
4916
|
variables: this.getCssVariables(),
|
|
4922
4917
|
fonts: s
|
|
4923
4918
|
};
|
|
4924
|
-
(e =
|
|
4919
|
+
(e = tt.get("sonic-theme")) == null || e.set(i), document.querySelectorAll("iframe").forEach(
|
|
4925
4920
|
(o) => {
|
|
4926
4921
|
var n;
|
|
4927
4922
|
return (n = o.contentWindow) == null ? void 0 : n.postMessage(
|
|
@@ -5018,7 +5013,7 @@ ss([
|
|
|
5018
5013
|
vt = ss([
|
|
5019
5014
|
_(mn)
|
|
5020
5015
|
], vt);
|
|
5021
|
-
var bn = Object.defineProperty, vn = Object.getOwnPropertyDescriptor,
|
|
5016
|
+
var bn = Object.defineProperty, vn = Object.getOwnPropertyDescriptor, Cr = (r, t, s, i) => {
|
|
5022
5017
|
for (var e = i > 1 ? void 0 : i ? vn(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
5023
5018
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
5024
5019
|
return i && e && bn(t, s, e), e;
|
|
@@ -5087,7 +5082,7 @@ let N = class extends w {
|
|
|
5087
5082
|
})}
|
|
5088
5083
|
>
|
|
5089
5084
|
<!-- 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) -->
|
|
5090
|
-
${i.text ?
|
|
5085
|
+
${i.text ? z(i.text) : ""}
|
|
5091
5086
|
</sonic-toast-item>
|
|
5092
5087
|
`
|
|
5093
5088
|
)}
|
|
@@ -5162,10 +5157,10 @@ let N = class extends w {
|
|
|
5162
5157
|
}
|
|
5163
5158
|
};
|
|
5164
5159
|
N.delegateToasts = !1;
|
|
5165
|
-
|
|
5160
|
+
Cr([
|
|
5166
5161
|
a({ type: Array })
|
|
5167
5162
|
], N.prototype, "toasts", 2);
|
|
5168
|
-
N =
|
|
5163
|
+
N = Cr([
|
|
5169
5164
|
_(yn)
|
|
5170
5165
|
], N);
|
|
5171
5166
|
typeof window < "u" && (window.SonicToast = window.SonicToast || N);
|
|
@@ -5214,9 +5209,9 @@ const Pn = /* @__PURE__ */ new Set(), $n = /* @__PURE__ */ new Set(), Cn = (r) =
|
|
|
5214
5209
|
* Un Toast est affiché si le chargement échoue
|
|
5215
5210
|
*/
|
|
5216
5211
|
async _fetchData() {
|
|
5217
|
-
if (this.requestUpdate(), !this.isFetchEnabled || (this.api = new Oe(this.getApiConfiguration()), !this.api) || (this.dispatchEvent(new CustomEvent("loading", { detail: this })), this.getAttribute("localStorage") === "enabled" && await
|
|
5212
|
+
if (this.requestUpdate(), !this.isFetchEnabled || (this.api = new Oe(this.getApiConfiguration()), !this.api) || (this.dispatchEvent(new CustomEvent("loading", { detail: this })), this.getAttribute("localStorage") === "enabled" && await tt.getInstance().isLocalStrorageReady, !this.isConnected))
|
|
5218
5213
|
return;
|
|
5219
|
-
const e =
|
|
5214
|
+
const e = tt.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();
|
|
5220
5215
|
this.isLoading = !0, J.isObject(this.props) && Object.keys(this.props || {}).length > 0 && this.isFirstLoad && window.requestAnimationFrame(() => {
|
|
5221
5216
|
this.dispatchEvent(new CustomEvent("load", { detail: this })), this.isFirstLoad = !1, this.isLoading = !1;
|
|
5222
5217
|
});
|
|
@@ -5363,13 +5358,13 @@ const ks = (r) => {
|
|
|
5363
5358
|
], t.prototype, "tabindex", 2), oe([
|
|
5364
5359
|
a({ type: String })
|
|
5365
5360
|
], t.prototype, "autocomplete", 2), t;
|
|
5366
|
-
},
|
|
5361
|
+
}, Ar = mi, On = gi, Sr = ke, Or = ks, Xt = Z, bi = Je;
|
|
5367
5362
|
window["concorde-mixins"] = window["concorde-mixins"] || {};
|
|
5368
5363
|
window["concorde-mixins"] = {
|
|
5369
|
-
Fetcher:
|
|
5364
|
+
Fetcher: Ar,
|
|
5370
5365
|
FormCheckable: On,
|
|
5371
|
-
FormElement:
|
|
5372
|
-
FormInput:
|
|
5366
|
+
FormElement: Sr,
|
|
5367
|
+
FormInput: Or,
|
|
5373
5368
|
Subscriber: Xt,
|
|
5374
5369
|
TemplatesContainer: bi
|
|
5375
5370
|
};
|
|
@@ -5387,7 +5382,7 @@ const kt = we(class extends De {
|
|
|
5387
5382
|
return this.vt === r ? yt : (this.vt = r, document.importNode(r.content, !0));
|
|
5388
5383
|
}
|
|
5389
5384
|
});
|
|
5390
|
-
var Dn = Object.defineProperty, kn = Object.getOwnPropertyDescriptor,
|
|
5385
|
+
var Dn = Object.defineProperty, kn = Object.getOwnPropertyDescriptor, Dr = (r, t, s, i) => {
|
|
5391
5386
|
for (var e = i > 1 ? void 0 : i ? kn(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
5392
5387
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
5393
5388
|
return i && e && Dn(t, s, e), e;
|
|
@@ -5418,13 +5413,13 @@ bs.styles = [
|
|
|
5418
5413
|
}
|
|
5419
5414
|
`
|
|
5420
5415
|
];
|
|
5421
|
-
|
|
5416
|
+
Dr([
|
|
5422
5417
|
a()
|
|
5423
5418
|
], bs.prototype, "loader", 2);
|
|
5424
|
-
bs =
|
|
5419
|
+
bs = Dr([
|
|
5425
5420
|
_(Ln)
|
|
5426
5421
|
], bs);
|
|
5427
|
-
var En = Object.defineProperty, Nn = Object.getOwnPropertyDescriptor,
|
|
5422
|
+
var En = Object.defineProperty, Nn = Object.getOwnPropertyDescriptor, kr = (r, t, s, i) => {
|
|
5428
5423
|
for (var e = i > 1 ? void 0 : i ? Nn(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
5429
5424
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
5430
5425
|
return i && e && En(t, s, e), e;
|
|
@@ -5443,10 +5438,10 @@ vs.styles = $`
|
|
|
5443
5438
|
display: contents;
|
|
5444
5439
|
}
|
|
5445
5440
|
`;
|
|
5446
|
-
|
|
5441
|
+
kr([
|
|
5447
5442
|
a({ type: Boolean })
|
|
5448
5443
|
], vs.prototype, "condition", 2);
|
|
5449
|
-
vs =
|
|
5444
|
+
vs = kr([
|
|
5450
5445
|
_(Tn)
|
|
5451
5446
|
], vs);
|
|
5452
5447
|
const Mn = $`
|
|
@@ -5644,7 +5639,7 @@ var Rn = Object.defineProperty, Un = Object.getOwnPropertyDescriptor, Vn = (r, t
|
|
|
5644
5639
|
return i && e && Rn(t, s, e), e;
|
|
5645
5640
|
};
|
|
5646
5641
|
const Bn = "sonic-subscriber";
|
|
5647
|
-
let
|
|
5642
|
+
let er = class extends Z(w) {
|
|
5648
5643
|
constructor() {
|
|
5649
5644
|
super(...arguments), this.noAutofill = !0;
|
|
5650
5645
|
}
|
|
@@ -5658,9 +5653,9 @@ let Xi = class extends Z(w) {
|
|
|
5658
5653
|
return g`<slot></slot> `;
|
|
5659
5654
|
}
|
|
5660
5655
|
};
|
|
5661
|
-
|
|
5656
|
+
er = Vn([
|
|
5662
5657
|
_(Bn)
|
|
5663
|
-
],
|
|
5658
|
+
], er);
|
|
5664
5659
|
var qn = Object.defineProperty, Hn = Object.getOwnPropertyDescriptor, _e = (r, t, s, i) => {
|
|
5665
5660
|
for (var e = i > 1 ? void 0 : i ? Hn(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
5666
5661
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
@@ -5788,7 +5783,7 @@ Kt = _e([
|
|
|
5788
5783
|
* Copyright 2021 Google LLC
|
|
5789
5784
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5790
5785
|
*/
|
|
5791
|
-
function*
|
|
5786
|
+
function* Lr(r, t) {
|
|
5792
5787
|
if (r !== void 0) {
|
|
5793
5788
|
let s = 0;
|
|
5794
5789
|
for (const i of r)
|
|
@@ -5801,7 +5796,7 @@ var Kn = Object.defineProperty, Zn = Object.getOwnPropertyDescriptor, ft = (r, t
|
|
|
5801
5796
|
return i && e && Kn(t, s, e), e;
|
|
5802
5797
|
};
|
|
5803
5798
|
const Yn = "sonic-queue";
|
|
5804
|
-
let
|
|
5799
|
+
let st = class extends Z(w) {
|
|
5805
5800
|
constructor() {
|
|
5806
5801
|
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.loader = "inline", this.filteredFields = "", this.instanceId = 0, this.localStorage = "disabled", this.filterPublisher = null, this.filterTimeoutMs = 400, this.searchHash = "", this.requestId = 0, this.isFirstRequest = !0, this.updateFilteredContent = () => {
|
|
5807
5802
|
var n;
|
|
@@ -5834,7 +5829,7 @@ let et = class extends Z(w) {
|
|
|
5834
5829
|
(r = this.filterPublisher) == null || r.offInternalMutation(this.updateFilteredContent), this.props = null, this.limit = 5, this.offset = 0, this.resultCount = 0, this.searchHash = "", this.requestId = 0, this.isFirstRequest = !0, this.nextHadEvent = !1, this.publisher.set({}), super.disconnectedCallback();
|
|
5835
5830
|
}
|
|
5836
5831
|
async connectedCallback() {
|
|
5837
|
-
this.instanceId =
|
|
5832
|
+
this.instanceId = st.instanceCounter++, this.localStorage = this.getAttribute("localStorage") || this.localStorage, this.filterTimeoutMs = parseInt(
|
|
5838
5833
|
this.getAttribute("filterTimeoutMs") || "400"
|
|
5839
5834
|
), 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 = de.getAncestorAttributeValue(this.parentElement, "dataProvider") || ""), super.connectedCallback(), this.publisher.set({}), this.key = this.getAttribute("key"), await T.getInstance().isLocalStrorageReady, this.templates || (this.templates = Array.from(
|
|
5840
5835
|
this.querySelectorAll("template")
|
|
@@ -5898,7 +5893,7 @@ let et = class extends Z(w) {
|
|
|
5898
5893
|
return C;
|
|
5899
5894
|
let r = !this.noLazyload;
|
|
5900
5895
|
return this.props.length == 1 && (r = !1), g`
|
|
5901
|
-
${
|
|
5896
|
+
${Lr(this.props, (t, s) => {
|
|
5902
5897
|
var e;
|
|
5903
5898
|
const i = s == 0 ? this.templates : (e = this.templates) == null ? void 0 : e.filter(
|
|
5904
5899
|
(o) => o.getAttribute("data-value") != "no-item"
|
|
@@ -5929,49 +5924,49 @@ let et = class extends Z(w) {
|
|
|
5929
5924
|
`;
|
|
5930
5925
|
}
|
|
5931
5926
|
};
|
|
5932
|
-
|
|
5927
|
+
st.instanceCounter = 0;
|
|
5933
5928
|
ft([
|
|
5934
5929
|
a({ type: Array })
|
|
5935
|
-
],
|
|
5930
|
+
], st.prototype, "templates", 2);
|
|
5936
5931
|
ft([
|
|
5937
5932
|
a({ type: Object })
|
|
5938
|
-
],
|
|
5933
|
+
], st.prototype, "itemPropertyMap", 2);
|
|
5939
5934
|
ft([
|
|
5940
5935
|
a()
|
|
5941
|
-
],
|
|
5936
|
+
], st.prototype, "cache", 2);
|
|
5942
5937
|
ft([
|
|
5943
5938
|
a()
|
|
5944
|
-
],
|
|
5939
|
+
], st.prototype, "targetRequestDuration", 2);
|
|
5945
5940
|
ft([
|
|
5946
5941
|
a()
|
|
5947
|
-
],
|
|
5942
|
+
], st.prototype, "limit", 2);
|
|
5948
5943
|
ft([
|
|
5949
5944
|
a()
|
|
5950
|
-
],
|
|
5945
|
+
], st.prototype, "lazyBoundsRatio", 2);
|
|
5951
5946
|
ft([
|
|
5952
5947
|
a()
|
|
5953
|
-
],
|
|
5948
|
+
], st.prototype, "offset", 2);
|
|
5954
5949
|
ft([
|
|
5955
5950
|
a()
|
|
5956
|
-
],
|
|
5951
|
+
], st.prototype, "resultCount", 2);
|
|
5957
5952
|
ft([
|
|
5958
5953
|
a({ type: Boolean })
|
|
5959
|
-
],
|
|
5954
|
+
], st.prototype, "noLazyload", 2);
|
|
5960
5955
|
ft([
|
|
5961
5956
|
a({ type: String })
|
|
5962
|
-
],
|
|
5957
|
+
], st.prototype, "loader", 2);
|
|
5963
5958
|
ft([
|
|
5964
5959
|
a()
|
|
5965
|
-
],
|
|
5960
|
+
], st.prototype, "filteredFields", 2);
|
|
5966
5961
|
ft([
|
|
5967
5962
|
a({ type: String })
|
|
5968
|
-
],
|
|
5963
|
+
], st.prototype, "dataProviderExpression", 2);
|
|
5969
5964
|
ft([
|
|
5970
5965
|
a({ type: String })
|
|
5971
|
-
],
|
|
5972
|
-
|
|
5966
|
+
], st.prototype, "idKey", 2);
|
|
5967
|
+
st = ft([
|
|
5973
5968
|
_(Yn)
|
|
5974
|
-
],
|
|
5969
|
+
], st);
|
|
5975
5970
|
var Gn = Object.defineProperty, Qn = Object.getOwnPropertyDescriptor, Le = (r, t, s, i) => {
|
|
5976
5971
|
for (var e = i > 1 ? void 0 : i ? Qn(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
5977
5972
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
@@ -6027,7 +6022,7 @@ let Zt = class extends Z(w) {
|
|
|
6027
6022
|
const h = this.getAncestorAttributeValue("dataProvider"), d = this.endPoint || h;
|
|
6028
6023
|
it.show();
|
|
6029
6024
|
const f = async () => {
|
|
6030
|
-
var p, u, y, A, O, L,
|
|
6025
|
+
var p, u, y, A, O, L, R, H;
|
|
6031
6026
|
if (i)
|
|
6032
6027
|
c = await ((p = this.api) == null ? void 0 : p.submitFormData(
|
|
6033
6028
|
d,
|
|
@@ -6051,8 +6046,8 @@ let Zt = class extends Z(w) {
|
|
|
6051
6046
|
if (e)
|
|
6052
6047
|
for (const Di in e)
|
|
6053
6048
|
bt.append(Di, e[Di]);
|
|
6054
|
-
const
|
|
6055
|
-
c = await ((O = this.api) == null ? void 0 : O.get(d +
|
|
6049
|
+
const Ur = "?" + bt.toString();
|
|
6050
|
+
c = await ((O = this.api) == null ? void 0 : O.get(d + Ur, l));
|
|
6056
6051
|
break;
|
|
6057
6052
|
default:
|
|
6058
6053
|
c = await ((L = this.api) == null ? void 0 : L.post(d, e, l));
|
|
@@ -6066,7 +6061,7 @@ let Zt = class extends Z(w) {
|
|
|
6066
6061
|
(bt) => T.get(bt).set({})
|
|
6067
6062
|
);
|
|
6068
6063
|
const P = this.hasAttribute("usernameKey") ? this.getAttribute("usernameKey") : "username", S = this.hasAttribute("passwordKey") ? this.getAttribute("passwordKey") : "password";
|
|
6069
|
-
(H = (
|
|
6064
|
+
(H = (R = this.api) == null ? void 0 : R.lastResult) != null && H.ok && e[P] && e[S] && this.saveCredentials(e[P], e[S]), this.submitResultKey && (c = J.traverse(
|
|
6070
6065
|
c,
|
|
6071
6066
|
this.submitResultKey.split("."),
|
|
6072
6067
|
!0
|
|
@@ -6221,7 +6216,7 @@ var sa = Object.defineProperty, ia = Object.getOwnPropertyDescriptor, ra = (r, t
|
|
|
6221
6216
|
return i && e && sa(t, s, e), e;
|
|
6222
6217
|
};
|
|
6223
6218
|
const oa = "sonic-redirect";
|
|
6224
|
-
let
|
|
6219
|
+
let sr = class extends Z(w) {
|
|
6225
6220
|
connectedCallback() {
|
|
6226
6221
|
this.noShadowDom = "", this.style.display = "none", super.connectedCallback(), this.udpateCallBack = () => this.update(), this.publisher && this.publisher.onInternalMutation(this.udpateCallBack);
|
|
6227
6222
|
}
|
|
@@ -6239,9 +6234,9 @@ let tr = class extends Z(w) {
|
|
|
6239
6234
|
t && !(J.isObject(t) && t) && rt.changeFromComponent(this);
|
|
6240
6235
|
}
|
|
6241
6236
|
};
|
|
6242
|
-
|
|
6237
|
+
sr = ra([
|
|
6243
6238
|
_(oa)
|
|
6244
|
-
],
|
|
6239
|
+
], sr);
|
|
6245
6240
|
var na = Object.defineProperty, aa = Object.getOwnPropertyDescriptor, wi = (r, t, s, i) => {
|
|
6246
6241
|
for (var e = i > 1 ? void 0 : i ? aa(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
6247
6242
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
@@ -6326,7 +6321,7 @@ var ca = Object.defineProperty, ha = Object.getOwnPropertyDescriptor, da = (r, t
|
|
|
6326
6321
|
return i && e && ca(t, s, e), e;
|
|
6327
6322
|
};
|
|
6328
6323
|
const pa = "sonic-scope";
|
|
6329
|
-
let
|
|
6324
|
+
let ir = class extends w {
|
|
6330
6325
|
createRenderRoot() {
|
|
6331
6326
|
return this;
|
|
6332
6327
|
}
|
|
@@ -6334,10 +6329,10 @@ let er = class extends w {
|
|
|
6334
6329
|
return g`<slot></slot>`;
|
|
6335
6330
|
}
|
|
6336
6331
|
};
|
|
6337
|
-
|
|
6332
|
+
ir = da([
|
|
6338
6333
|
_(pa)
|
|
6339
|
-
],
|
|
6340
|
-
var ua = Object.defineProperty, fa = Object.getOwnPropertyDescriptor,
|
|
6334
|
+
], ir);
|
|
6335
|
+
var ua = Object.defineProperty, fa = Object.getOwnPropertyDescriptor, Er = (r, t, s, i) => {
|
|
6341
6336
|
for (var e = i > 1 ? void 0 : i ? fa(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
6342
6337
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
6343
6338
|
return i && e && ua(t, s, e), e;
|
|
@@ -6351,10 +6346,10 @@ let Zs = class extends Z(w) {
|
|
|
6351
6346
|
return g`<div>${this.text}</div>`;
|
|
6352
6347
|
}
|
|
6353
6348
|
};
|
|
6354
|
-
|
|
6349
|
+
Er([
|
|
6355
6350
|
a()
|
|
6356
6351
|
], Zs.prototype, "text", 2);
|
|
6357
|
-
Zs =
|
|
6352
|
+
Zs = Er([
|
|
6358
6353
|
_(ga)
|
|
6359
6354
|
], Zs);
|
|
6360
6355
|
const ma = {
|
|
@@ -6632,7 +6627,7 @@ var Fa = Object.defineProperty, za = Object.getOwnPropertyDescriptor, _i = (r, t
|
|
|
6632
6627
|
return i && e && Fa(t, s, e), e;
|
|
6633
6628
|
};
|
|
6634
6629
|
const Ra = "sonic-sdui";
|
|
6635
|
-
let _s = class extends
|
|
6630
|
+
let _s = class extends Ar(Xt(w)) {
|
|
6636
6631
|
constructor() {
|
|
6637
6632
|
super(...arguments), this.sduiDescriptor = {};
|
|
6638
6633
|
}
|
|
@@ -6798,7 +6793,7 @@ _i([
|
|
|
6798
6793
|
_s = _i([
|
|
6799
6794
|
_(Ra)
|
|
6800
6795
|
], _s);
|
|
6801
|
-
var Ua = Object.defineProperty, Va = Object.getOwnPropertyDescriptor,
|
|
6796
|
+
var Ua = Object.defineProperty, Va = Object.getOwnPropertyDescriptor, Nr = (r, t, s, i) => {
|
|
6802
6797
|
for (var e = i > 1 ? void 0 : i ? Va(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
6803
6798
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
6804
6799
|
return i && e && Ua(t, s, e), e;
|
|
@@ -6836,7 +6831,7 @@ let xs = class extends Xt(w) {
|
|
|
6836
6831
|
const e = i.split("."), o = e.shift();
|
|
6837
6832
|
if (!o)
|
|
6838
6833
|
continue;
|
|
6839
|
-
let n =
|
|
6834
|
+
let n = tt.get(o);
|
|
6840
6835
|
n = Xe.traverse(n, e);
|
|
6841
6836
|
const l = {
|
|
6842
6837
|
publisher: n,
|
|
@@ -6870,10 +6865,10 @@ xs.styles = [
|
|
|
6870
6865
|
}
|
|
6871
6866
|
`
|
|
6872
6867
|
];
|
|
6873
|
-
|
|
6868
|
+
Nr([
|
|
6874
6869
|
a({ type: Object })
|
|
6875
6870
|
], xs.prototype, "composition", 1);
|
|
6876
|
-
xs =
|
|
6871
|
+
xs = Nr([
|
|
6877
6872
|
_("sonic-mix")
|
|
6878
6873
|
], xs);
|
|
6879
6874
|
var Ba = Object.defineProperty, qa = Object.getOwnPropertyDescriptor, Ha = (r, t, s, i) => {
|
|
@@ -6882,18 +6877,18 @@ var Ba = Object.defineProperty, qa = Object.getOwnPropertyDescriptor, Ha = (r, t
|
|
|
6882
6877
|
return i && e && Ba(t, s, e), e;
|
|
6883
6878
|
};
|
|
6884
6879
|
const Wa = "sonic-value";
|
|
6885
|
-
let
|
|
6880
|
+
let rr = class extends Xt(w) {
|
|
6886
6881
|
connectedCallback() {
|
|
6887
6882
|
this.setAttribute("subDataProvider", this.getAttribute("key")), super.connectedCallback();
|
|
6888
6883
|
}
|
|
6889
6884
|
render() {
|
|
6890
|
-
return typeof this.props == "object" || this.props === void 0 ? g`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>` : g`${
|
|
6885
|
+
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
|
|
6891
6886
|
><slot name="suffix"></slot>`;
|
|
6892
6887
|
}
|
|
6893
6888
|
};
|
|
6894
|
-
|
|
6889
|
+
rr = Ha([
|
|
6895
6890
|
_(Wa)
|
|
6896
|
-
],
|
|
6891
|
+
], rr);
|
|
6897
6892
|
var Ka = Object.defineProperty, Za = Object.getOwnPropertyDescriptor, is = (r, t, s, i) => {
|
|
6898
6893
|
for (var e = i > 1 ? void 0 : i ? Za(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
6899
6894
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
@@ -7797,7 +7792,7 @@ let U = class extends ks(ke(Z(w))) {
|
|
|
7797
7792
|
};
|
|
7798
7793
|
return g`
|
|
7799
7794
|
<label for="${this.id || "form-element"}" class="${this.hasLabel ? "form-label" : "hidden"}"
|
|
7800
|
-
>${this.label ?
|
|
7795
|
+
>${this.label ? z(
|
|
7801
7796
|
this.label
|
|
7802
7797
|
/*+ labelStarSuffix*/
|
|
7803
7798
|
) : ""}<slot
|
|
@@ -7861,7 +7856,7 @@ let U = class extends ks(ke(Z(w))) {
|
|
|
7861
7856
|
name="description"
|
|
7862
7857
|
@slotchange=${this.hasSlotOrProps}
|
|
7863
7858
|
class="${this.hasDescription ? "form-description" : "hidden"}"
|
|
7864
|
-
>${this.description ? g`${
|
|
7859
|
+
>${this.description ? g`${z(this.description)}` : C}</slot>
|
|
7865
7860
|
<slot name="list"></slot>
|
|
7866
7861
|
</div>
|
|
7867
7862
|
`;
|
|
@@ -7986,7 +7981,7 @@ let ot = class extends w {
|
|
|
7986
7981
|
this.resetZindexes(), this.open = !1, this.popContent.setAttribute("tabindex", "-1"), this.positioningRuns = !1, this.dispatchEvent(new CustomEvent("hide"));
|
|
7987
7982
|
}
|
|
7988
7983
|
setMaxZindex() {
|
|
7989
|
-
|
|
7984
|
+
et.everyAncestors(this, (r) => {
|
|
7990
7985
|
const t = r;
|
|
7991
7986
|
if (!t.className)
|
|
7992
7987
|
return !0;
|
|
@@ -8009,7 +8004,7 @@ let ot = class extends w {
|
|
|
8009
8004
|
ot.pops.forEach((i) => {
|
|
8010
8005
|
const e = t.includes(i), o = t.includes(
|
|
8011
8006
|
i.querySelector('[slot="content"]')
|
|
8012
|
-
), n =
|
|
8007
|
+
), n = et.getAncestorAttributeValue(s, "data-on-select") === "keep";
|
|
8013
8008
|
r.type == "pointerdown" && e || r.type == "click" && (e && n || !o) || i.hide();
|
|
8014
8009
|
});
|
|
8015
8010
|
}
|
|
@@ -8026,10 +8021,10 @@ let ot = class extends w {
|
|
|
8026
8021
|
this.popContent && this.resizeObserver.unobserve(this.popContent), super.disconnectedCallback(), ot.pops.delete(this), ot.pops.size == 0 && (document.removeEventListener("pointerdown", this._handleClosePop), document.removeEventListener("click", this._handleClosePop));
|
|
8027
8022
|
}
|
|
8028
8023
|
computePosition(r) {
|
|
8029
|
-
var L,
|
|
8024
|
+
var L, R, H, bt;
|
|
8030
8025
|
const t = r.split(" "), s = t[0];
|
|
8031
8026
|
let i = t[1], e = (L = this.popContent) == null ? void 0 : L.getBoundingClientRect();
|
|
8032
|
-
const o = 5, n = this.getBoundingClientRect(), l =
|
|
8027
|
+
const o = 5, n = this.getBoundingClientRect(), l = et.getScrollableAncestor(
|
|
8033
8028
|
this.popContent
|
|
8034
8029
|
), c = l == null ? void 0 : l.getBoundingClientRect(), h = Math.max(0, (c == null ? void 0 : c.left) || 0) + o, d = Math.max(0, (c == null ? void 0 : c.top) || 0) + o, f = Math.min(
|
|
8035
8030
|
window.innerWidth,
|
|
@@ -8057,7 +8052,7 @@ let ot = class extends w {
|
|
|
8057
8052
|
this.lastContentX += P - e.x, this.lastContentY += S - e.y, Object.assign(this.popContent.style, {
|
|
8058
8053
|
left: `${this.lastContentX}px`,
|
|
8059
8054
|
top: `${this.lastContentY}px`
|
|
8060
|
-
}), e = (
|
|
8055
|
+
}), e = (R = this.popContent) == null ? void 0 : R.getBoundingClientRect(), e.x < h && s == "left" && (P = u), e.y < d && s == "top" && (S = y), e.x + e.width > f && s == "right" && (P = p), e.y + e.height > m && s == "bottom" && (S = D), this.lastContentX += P - e.x, this.lastContentY += S - e.y, Object.assign(this.popContent.style, {
|
|
8061
8056
|
left: `${this.lastContentX}px`,
|
|
8062
8057
|
top: `${this.lastContentY}px`
|
|
8063
8058
|
}), e = (H = this.popContent) == null ? void 0 : H.getBoundingClientRect(), e.x < h && (this.lastContentX += h - e.x), e.y < d && (this.lastContentY += d - e.y), Object.assign(this.popContent.style, {
|
|
@@ -8171,7 +8166,7 @@ var hl = Object.defineProperty, dl = Object.getOwnPropertyDescriptor, pl = (r, t
|
|
|
8171
8166
|
return i && e && hl(t, s, e), e;
|
|
8172
8167
|
};
|
|
8173
8168
|
const ul = "sonic-menu-item";
|
|
8174
|
-
let
|
|
8169
|
+
let or = class extends M {
|
|
8175
8170
|
constructor() {
|
|
8176
8171
|
super();
|
|
8177
8172
|
}
|
|
@@ -8181,15 +8176,15 @@ let ir = class extends M {
|
|
|
8181
8176
|
!this.hasAttribute("align") && !r && (this.align = "left"), super.connectedCallback();
|
|
8182
8177
|
}
|
|
8183
8178
|
};
|
|
8184
|
-
|
|
8179
|
+
or = pl([
|
|
8185
8180
|
_(ul)
|
|
8186
|
-
],
|
|
8181
|
+
], or);
|
|
8187
8182
|
/**
|
|
8188
8183
|
* @license
|
|
8189
8184
|
* Copyright 2021 Google LLC
|
|
8190
8185
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8191
8186
|
*/
|
|
8192
|
-
class
|
|
8187
|
+
class Tr {
|
|
8193
8188
|
constructor(t, { target: s, config: i, callback: e, skipInitial: o }) {
|
|
8194
8189
|
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) => {
|
|
8195
8190
|
this.handleChanges(n), this.h.requestUpdate();
|
|
@@ -8225,10 +8220,10 @@ var fl = Object.defineProperty, gl = Object.getOwnPropertyDescriptor, gt = (r, t
|
|
|
8225
8220
|
return i && e && fl(t, s, e), e;
|
|
8226
8221
|
};
|
|
8227
8222
|
let nt = class extends bi(
|
|
8228
|
-
|
|
8223
|
+
Or(Sr(Xt(w)))
|
|
8229
8224
|
) {
|
|
8230
8225
|
constructor() {
|
|
8231
|
-
super(...arguments), this.size = "md", this.placeholder = "", this.filteredFields = "", this.readonly = null, this.dataProviderExpression = "", this.minSearchLength = 0, this.key = "", this.searchParameter = "", this.propertyName = "", this.hasInputPrefix = !1, this._resizeController = new
|
|
8226
|
+
super(...arguments), this.size = "md", this.placeholder = "", this.filteredFields = "", this.readonly = null, this.dataProviderExpression = "", this.minSearchLength = 0, this.key = "", this.searchParameter = "", this.propertyName = "", this.hasInputPrefix = !1, this._resizeController = new Tr(this, {}), this.isPopVisible = !1, this.searchDataProvider = "", this.initSearchDataProvider = "", this.queueDataProvider = "", this.initQueueDataProvider = "", this.lastValidSearch = "", this.updateSearchParameter = (r) => {
|
|
8232
8227
|
var s;
|
|
8233
8228
|
if (r == "") {
|
|
8234
8229
|
this.lastValidSearch = "";
|
|
@@ -8278,18 +8273,18 @@ let nt = class extends bi(
|
|
|
8278
8273
|
console.log(this.value, this.getAttribute("value")), super.connectedCallback(), console.log(this.value, this.getAttribute("value"));
|
|
8279
8274
|
const r = this.searchParameter || this.name, t = this.getAncestorAttributeValue("formDataProvider"), s = t + "__" + this.name + "__autocomplete";
|
|
8280
8275
|
this.initSearchDataProvider = `${s}_init_search__`, this.initQueueDataProvider = `${s}_init_queue__`, this.searchDataProvider = `${s}_search__`, this.queueDataProvider = `${s}_queue__`;
|
|
8281
|
-
const i =
|
|
8276
|
+
const i = tt.get;
|
|
8282
8277
|
this.searchPublisher = i(this.searchDataProvider)[r], this.formValuePublisher = ht(
|
|
8283
8278
|
i(t),
|
|
8284
8279
|
this.name
|
|
8285
8280
|
), this.countPublisher = i(this.queueDataProvider).resultCount, this.initCountPublisher = i(
|
|
8286
8281
|
this.initQueueDataProvider
|
|
8287
|
-
).resultCount, this.value && (
|
|
8282
|
+
).resultCount, this.value && (tt.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), (l = this.searchPublisher) == null || l.onAssign(this.updatePopContentVisibility);
|
|
8288
8283
|
}
|
|
8289
8284
|
disconnectedCallback() {
|
|
8290
8285
|
var t, s, i, e;
|
|
8291
8286
|
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);
|
|
8292
|
-
const r =
|
|
8287
|
+
const r = tt.get;
|
|
8293
8288
|
r(this.initSearchDataProvider).delete(), r(this.initQueueDataProvider).delete(), r(this.searchDataProvider).delete(), r(this.queueDataProvider).delete(), (e = this.searchPublisher) == null || e.offAssign(this.updatePopContentVisibility);
|
|
8294
8289
|
}
|
|
8295
8290
|
/**
|
|
@@ -8300,12 +8295,12 @@ let nt = class extends bi(
|
|
|
8300
8295
|
* @return bool|undefined True if item found, false otherwise, undefined if result is not a list
|
|
8301
8296
|
*/
|
|
8302
8297
|
queryQueueListItem(r, t, s) {
|
|
8303
|
-
const i =
|
|
8298
|
+
const i = tt.get(r);
|
|
8304
8299
|
let e;
|
|
8305
8300
|
const o = i.get();
|
|
8306
8301
|
if (Array.isArray(o)) {
|
|
8307
8302
|
for (const n of o) {
|
|
8308
|
-
const l =
|
|
8303
|
+
const l = tt.get(n.dataProvider).get();
|
|
8309
8304
|
if (Array.isArray(l) && (e = l.find(t), e))
|
|
8310
8305
|
break;
|
|
8311
8306
|
}
|
|
@@ -8462,10 +8457,10 @@ let at = class extends Xt(w) {
|
|
|
8462
8457
|
connectedCallback() {
|
|
8463
8458
|
super.connectedCallback(), this.name && (this.checkValue = (t) => {
|
|
8464
8459
|
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);
|
|
8465
|
-
},
|
|
8460
|
+
}, tt.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue));
|
|
8466
8461
|
}
|
|
8467
8462
|
disconnectedCallback() {
|
|
8468
|
-
this.checkValue && this.name &&
|
|
8463
|
+
this.checkValue && this.name && tt.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue), super.disconnectedCallback();
|
|
8469
8464
|
}
|
|
8470
8465
|
getIcon(t) {
|
|
8471
8466
|
return t ? g`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>` : g`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`;
|
|
@@ -8552,7 +8547,7 @@ let Qt = class extends Xt(w) {
|
|
|
8552
8547
|
}
|
|
8553
8548
|
connectedCallback() {
|
|
8554
8549
|
super.connectedCallback();
|
|
8555
|
-
const r =
|
|
8550
|
+
const r = tt.get(
|
|
8556
8551
|
this.getAncestorAttributeValue("formDataProvider")
|
|
8557
8552
|
);
|
|
8558
8553
|
this.name && this.sameValueAs && (this.checkValue = (t) => {
|
|
@@ -8565,7 +8560,7 @@ let Qt = class extends Xt(w) {
|
|
|
8565
8560
|
}
|
|
8566
8561
|
disconnectedCallback() {
|
|
8567
8562
|
if (this.checkValue && this.name && this.sameValueAs) {
|
|
8568
|
-
const r =
|
|
8563
|
+
const r = tt.get(
|
|
8569
8564
|
this.getAncestorAttributeValue("formDataProvider")
|
|
8570
8565
|
);
|
|
8571
8566
|
ht(r, this.name).offAssign(
|
|
@@ -8580,7 +8575,7 @@ let Qt = class extends Xt(w) {
|
|
|
8580
8575
|
render() {
|
|
8581
8576
|
return this.hasNoChar ? C : g`
|
|
8582
8577
|
<span>
|
|
8583
|
-
${this.areEqual ?
|
|
8578
|
+
${this.areEqual ? z(this.descriptionWhenEqual) : z(this.descriptionWhenNotEqual)}
|
|
8584
8579
|
</span>
|
|
8585
8580
|
`;
|
|
8586
8581
|
}
|
|
@@ -8651,12 +8646,12 @@ let wt = class extends gi(
|
|
|
8651
8646
|
</span>
|
|
8652
8647
|
|
|
8653
8648
|
<div class="checkbox-text ${!this.hasDescription && !this.hasLabel ? "hidden" : "checkbox-text"}">
|
|
8654
|
-
${this.label ?
|
|
8649
|
+
${this.label ? z(
|
|
8655
8650
|
this.label
|
|
8656
8651
|
/*+ labelStarSuffix*/
|
|
8657
8652
|
) : ""}
|
|
8658
8653
|
<slot @slotchange=${this.hasSlotOrProps}></slot>
|
|
8659
|
-
<slot @slotchange=${this.hasSlotOrProps} name="description" class="${this.hasDescription ? "description" : "hidden"} ">${this.description ? g`${
|
|
8654
|
+
<slot @slotchange=${this.hasSlotOrProps} name="description" class="${this.hasDescription ? "description" : "hidden"} ">${this.description ? g`${z(this.description)}` : ""}</slot>
|
|
8660
8655
|
</div>
|
|
8661
8656
|
</label>
|
|
8662
8657
|
</label>
|
|
@@ -8936,7 +8931,7 @@ let K = class extends ke(Z(w)) {
|
|
|
8936
8931
|
<label
|
|
8937
8932
|
for="form-element"
|
|
8938
8933
|
class="${this.hasLabel ? "form-label" : "hidden"}"
|
|
8939
|
-
>${this.label ?
|
|
8934
|
+
>${this.label ? z(
|
|
8940
8935
|
this.label
|
|
8941
8936
|
/*+ labelStarSuffix*/
|
|
8942
8937
|
) : ""}<slot
|
|
@@ -8991,7 +8986,7 @@ let K = class extends ke(Z(w)) {
|
|
|
8991
8986
|
name="description"
|
|
8992
8987
|
@slotchange=${this.hasSlotOrProps}
|
|
8993
8988
|
class="${this.hasDescription ? "form-description" : "hidden"}"
|
|
8994
|
-
>${this.description ? g`${
|
|
8989
|
+
>${this.description ? g`${z(this.description)}` : ""}</slot
|
|
8995
8990
|
>
|
|
8996
8991
|
`;
|
|
8997
8992
|
}
|
|
@@ -9146,7 +9141,7 @@ let lt = class extends ks(ke(Z(w))) {
|
|
|
9146
9141
|
<label
|
|
9147
9142
|
for="${this.id || "form-element"}"
|
|
9148
9143
|
class="${this.hasLabel ? "form-label" : "hidden"}"
|
|
9149
|
-
>${this.label ?
|
|
9144
|
+
>${this.label ? z(
|
|
9150
9145
|
this.label
|
|
9151
9146
|
/*+ labelStarSuffix*/
|
|
9152
9147
|
) : ""}<slot
|
|
@@ -9187,7 +9182,7 @@ ${this.value}</textarea
|
|
|
9187
9182
|
name="description"
|
|
9188
9183
|
@slotchange=${this.hasSlotOrProps}
|
|
9189
9184
|
class="${this.hasDescription ? "form-description" : "hidden"}"
|
|
9190
|
-
>${this.description ? g`${
|
|
9185
|
+
>${this.description ? g`${z(this.description)}` : ""}</slot
|
|
9191
9186
|
>
|
|
9192
9187
|
`;
|
|
9193
9188
|
}
|
|
@@ -9302,8 +9297,8 @@ let Vt = class extends w {
|
|
|
9302
9297
|
</div>` : ""}
|
|
9303
9298
|
|
|
9304
9299
|
<div class="legend-content">
|
|
9305
|
-
${
|
|
9306
|
-
${this.description ? g`<sonic-legend-description>${
|
|
9300
|
+
${z(this.label ? this.label : "")}
|
|
9301
|
+
${this.description ? g`<sonic-legend-description>${z(this.description)}</sonic-legend-description>` : ""}
|
|
9307
9302
|
<slot></slot>
|
|
9308
9303
|
</div>
|
|
9309
9304
|
<slot name="suffix"></slot>
|
|
@@ -9485,7 +9480,7 @@ var ql = Object.defineProperty, Hl = Object.getOwnPropertyDescriptor, $i = (r, t
|
|
|
9485
9480
|
const Wl = "sonic-form-layout";
|
|
9486
9481
|
let Ke = class extends Z(w) {
|
|
9487
9482
|
constructor() {
|
|
9488
|
-
super(...arguments), this._resizeController = new
|
|
9483
|
+
super(...arguments), this._resizeController = new Tr(this, {}), this.oneFormElement = !1;
|
|
9489
9484
|
}
|
|
9490
9485
|
onSlotChange() {
|
|
9491
9486
|
let r = this.slottedElements;
|
|
@@ -9620,14 +9615,14 @@ let Lt = class extends w {
|
|
|
9620
9615
|
alignItems: this.alignItems
|
|
9621
9616
|
};
|
|
9622
9617
|
return g`<span class="${this.hasLabel ? "form-label" : "hidden"}"
|
|
9623
|
-
>${this.label ?
|
|
9618
|
+
>${this.label ? z(
|
|
9624
9619
|
this.label
|
|
9625
9620
|
/*+ labelStarSuffix*/
|
|
9626
9621
|
) : ""}<slot name="label" @slotchange=${this.hasSlotOrProps}></slot
|
|
9627
9622
|
></span>
|
|
9628
9623
|
<slot class="main-slot" style=${ut(r)}></slot>
|
|
9629
9624
|
<slot name="description" @slotchange=${this.hasSlotOrProps} class="${this.hasDescription ? "form-description" : "hidden"}">
|
|
9630
|
-
${this.description ? g`${
|
|
9625
|
+
${this.description ? g`${z(this.description)}` : ""}
|
|
9631
9626
|
</slot>`;
|
|
9632
9627
|
}
|
|
9633
9628
|
};
|
|
@@ -10096,7 +10091,7 @@ _t([
|
|
|
10096
10091
|
dt = _t([
|
|
10097
10092
|
_(rc)
|
|
10098
10093
|
], dt);
|
|
10099
|
-
var oc = Object.defineProperty, nc = Object.getOwnPropertyDescriptor,
|
|
10094
|
+
var oc = Object.defineProperty, nc = Object.getOwnPropertyDescriptor, Mr = (r, t, s, i) => {
|
|
10100
10095
|
for (var e = i > 1 ? void 0 : i ? nc(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
10101
10096
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
10102
10097
|
return i && e && oc(t, s, e), e;
|
|
@@ -10131,13 +10126,13 @@ Ps.styles = [
|
|
|
10131
10126
|
}
|
|
10132
10127
|
`
|
|
10133
10128
|
];
|
|
10134
|
-
|
|
10129
|
+
Mr([
|
|
10135
10130
|
ve({ selector: "sonic-button" })
|
|
10136
10131
|
], Ps.prototype, "buttons", 2);
|
|
10137
|
-
Ps =
|
|
10132
|
+
Ps = Mr([
|
|
10138
10133
|
_(ac)
|
|
10139
10134
|
], Ps);
|
|
10140
|
-
var lc = Object.defineProperty, cc = Object.getOwnPropertyDescriptor,
|
|
10135
|
+
var lc = Object.defineProperty, cc = Object.getOwnPropertyDescriptor, jr = (r, t, s, i) => {
|
|
10141
10136
|
for (var e = i > 1 ? void 0 : i ? cc(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
10142
10137
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
10143
10138
|
return i && e && lc(t, s, e), e;
|
|
@@ -10150,7 +10145,7 @@ let $s = class extends w {
|
|
|
10150
10145
|
></sonic-button>`;
|
|
10151
10146
|
}
|
|
10152
10147
|
handleClick() {
|
|
10153
|
-
|
|
10148
|
+
et.getClosestElement(this, "sonic-modal").hide();
|
|
10154
10149
|
}
|
|
10155
10150
|
};
|
|
10156
10151
|
$s.styles = [
|
|
@@ -10167,10 +10162,10 @@ $s.styles = [
|
|
|
10167
10162
|
}
|
|
10168
10163
|
`
|
|
10169
10164
|
];
|
|
10170
|
-
|
|
10165
|
+
jr([
|
|
10171
10166
|
a()
|
|
10172
10167
|
], $s.prototype, "reset", 2);
|
|
10173
|
-
$s =
|
|
10168
|
+
$s = jr([
|
|
10174
10169
|
_(hc)
|
|
10175
10170
|
], $s);
|
|
10176
10171
|
var dc = Object.defineProperty, pc = Object.getOwnPropertyDescriptor, uc = (r, t, s, i) => {
|
|
@@ -10246,25 +10241,25 @@ Xs.styles = [
|
|
|
10246
10241
|
Xs = _c([
|
|
10247
10242
|
_(xc)
|
|
10248
10243
|
], Xs);
|
|
10249
|
-
var Pc = Object.defineProperty, $c = Object.getOwnPropertyDescriptor,
|
|
10244
|
+
var Pc = Object.defineProperty, $c = Object.getOwnPropertyDescriptor, X = (r, t, s, i) => {
|
|
10250
10245
|
for (var e = i > 1 ? void 0 : i ? $c(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
10251
10246
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
10252
10247
|
return i && e && Pc(t, s, e), e;
|
|
10253
10248
|
};
|
|
10254
|
-
const
|
|
10255
|
-
let
|
|
10249
|
+
const Ir = "sonic-modal";
|
|
10250
|
+
let I = class extends Z(w) {
|
|
10256
10251
|
constructor() {
|
|
10257
10252
|
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;
|
|
10258
10253
|
}
|
|
10259
10254
|
static create(r) {
|
|
10260
|
-
const t = document.createElement(
|
|
10261
|
-
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), vt.getPopContainer().appendChild(t), t.show(), t;
|
|
10255
|
+
const t = document.createElement(Ir);
|
|
10256
|
+
return t.options = r, r.removeHashOnHide === !0 && t.setAttribute("removeHashOnHide", "true"), r.removeOnHide === !0 && t.setAttribute("removeOnHide", "true"), r.maxWidth && (t.maxWidth = r == null ? void 0 : r.maxWidth), r.width && (t.width = r == null ? void 0 : r.width), r.maxHeight && (t.maxHeight = r == null ? void 0 : r.maxHeight), r.height && (t.height = r == null ? void 0 : r.height), r.forceAction && (t.forceAction = !0), r.fullScreen && (t.fullScreen = r == null ? void 0 : r.fullScreen), r.effect && (t.effect = r == null ? void 0 : r.effect), r.paddingX && t.style.setProperty("--sc-modal-px", r == null ? void 0 : r.paddingX), r.paddingY && t.style.setProperty("--sc-modal-py", r == null ? void 0 : r.paddingY), r.zIndex && t.style.setProperty("--sc-modal-z-index", r == null ? void 0 : r.zIndex), vt.getPopContainer().appendChild(t), t.show(), t;
|
|
10262
10257
|
}
|
|
10263
10258
|
connectedCallback() {
|
|
10264
|
-
|
|
10259
|
+
I.modals.push(this), super.connectedCallback(), this.handleFullsceen();
|
|
10265
10260
|
}
|
|
10266
10261
|
disconnectedCallback() {
|
|
10267
|
-
|
|
10262
|
+
I.modals.splice(I.modals.indexOf(this), 1), super.disconnectedCallback();
|
|
10268
10263
|
}
|
|
10269
10264
|
updated() {
|
|
10270
10265
|
const r = this;
|
|
@@ -10279,7 +10274,32 @@ let R = class extends Z(w) {
|
|
|
10279
10274
|
});
|
|
10280
10275
|
}
|
|
10281
10276
|
willUpdate(r) {
|
|
10282
|
-
r.has("fullScreen") && this.handleFullsceen(),
|
|
10277
|
+
r.has("fullScreen") && this.handleFullsceen(), r.has("effect") && (this.effect == "fade" ? this.animation = {
|
|
10278
|
+
keyframeOptions: {
|
|
10279
|
+
duration: 400
|
|
10280
|
+
},
|
|
10281
|
+
in: Zi,
|
|
10282
|
+
out: Ki
|
|
10283
|
+
} : this.effect == "none" ? this.animation = void 0 : this.animation = {
|
|
10284
|
+
keyframeOptions: {
|
|
10285
|
+
duration: 400,
|
|
10286
|
+
easing: "cubic-bezier(0.250, 0.250, 0.420, 1.225)"
|
|
10287
|
+
},
|
|
10288
|
+
in: [
|
|
10289
|
+
{
|
|
10290
|
+
transform: "translateY(25%) scale(1)",
|
|
10291
|
+
boxShadow: "0 0 0 rgba(0,0,0,0)",
|
|
10292
|
+
opacity: 0
|
|
10293
|
+
}
|
|
10294
|
+
],
|
|
10295
|
+
out: [
|
|
10296
|
+
{
|
|
10297
|
+
transform: "translateY(20%) scale(1)",
|
|
10298
|
+
boxShadow: "0 0 0 rgba(0,0,0,0)",
|
|
10299
|
+
opacity: 0
|
|
10300
|
+
}
|
|
10301
|
+
]
|
|
10302
|
+
}), super.willUpdate(r);
|
|
10283
10303
|
}
|
|
10284
10304
|
render() {
|
|
10285
10305
|
var s;
|
|
@@ -10304,7 +10324,7 @@ let R = class extends Z(w) {
|
|
|
10304
10324
|
class="modal-wrapper"
|
|
10305
10325
|
style=${ut(t)}
|
|
10306
10326
|
${ds({
|
|
10307
|
-
out:
|
|
10327
|
+
out: Ki
|
|
10308
10328
|
})}
|
|
10309
10329
|
tabindex="0"
|
|
10310
10330
|
>
|
|
@@ -10312,26 +10332,7 @@ let R = class extends Z(w) {
|
|
|
10312
10332
|
part="modal"
|
|
10313
10333
|
class="modal custom-scroll"
|
|
10314
10334
|
style=${ut(r)}
|
|
10315
|
-
${ds(
|
|
10316
|
-
keyframeOptions: {
|
|
10317
|
-
duration: 400,
|
|
10318
|
-
easing: "cubic-bezier(0.250, 0.250, 0.420, 1.225)"
|
|
10319
|
-
},
|
|
10320
|
-
in: [
|
|
10321
|
-
{
|
|
10322
|
-
transform: "translateY(25%) scale(1)",
|
|
10323
|
-
boxShadow: "0 0 0 rgba(0,0,0,0)",
|
|
10324
|
-
opacity: 0
|
|
10325
|
-
}
|
|
10326
|
-
],
|
|
10327
|
-
out: [
|
|
10328
|
-
{
|
|
10329
|
-
transform: "translateY(20%) scale(1)",
|
|
10330
|
-
boxShadow: "0 0 0 rgba(0,0,0,0)",
|
|
10331
|
-
opacity: 0
|
|
10332
|
-
}
|
|
10333
|
-
]
|
|
10334
|
-
})}
|
|
10335
|
+
${ds(this.animation)}
|
|
10335
10336
|
>
|
|
10336
10337
|
<div class="modal-content">
|
|
10337
10338
|
${(s = this.options) != null && s.forceAction ? C : g`<sonic-modal-close></sonic-modal-close>`}
|
|
@@ -10349,7 +10350,7 @@ let R = class extends Z(w) {
|
|
|
10349
10350
|
keyframeOptions: {
|
|
10350
10351
|
duration: 500
|
|
10351
10352
|
},
|
|
10352
|
-
in:
|
|
10353
|
+
in: Zi,
|
|
10353
10354
|
out: [{ opacity: 0, pointerEvents: "none" }]
|
|
10354
10355
|
})}
|
|
10355
10356
|
></div>`;
|
|
@@ -10360,7 +10361,7 @@ let R = class extends Z(w) {
|
|
|
10360
10361
|
if (!t)
|
|
10361
10362
|
return C;
|
|
10362
10363
|
let s;
|
|
10363
|
-
switch (t instanceof Object ? s = t : s =
|
|
10364
|
+
switch (t instanceof Object ? s = t : s = z(t), r) {
|
|
10364
10365
|
case "title":
|
|
10365
10366
|
return g`<sonic-modal-title>${s}</sonic-modal-title>`;
|
|
10366
10367
|
case "subtitle":
|
|
@@ -10379,7 +10380,7 @@ let R = class extends Z(w) {
|
|
|
10379
10380
|
}
|
|
10380
10381
|
hide() {
|
|
10381
10382
|
var r;
|
|
10382
|
-
this.visible = !1, (r = this.modalElement) == null || r.setAttribute("tabindex", "-1"), this.dispatchEvent(new CustomEvent("hide")), this.hasAttribute("resetDataProviderOnHide") &&
|
|
10383
|
+
this.visible = !1, (r = this.modalElement) == null || r.setAttribute("tabindex", "-1"), this.dispatchEvent(new CustomEvent("hide")), this.hasAttribute("resetDataProviderOnHide") && tt.get(this.getAttribute("resetDataProviderOnHide")).set(
|
|
10383
10384
|
{}
|
|
10384
10385
|
), this.removeOnHide && this.remove(), setTimeout(() => {
|
|
10385
10386
|
this.dispatchEvent(new CustomEvent("hidden")), this.removeHashOnHide && window.history.replaceState({}, "", window.location.pathname);
|
|
@@ -10389,12 +10390,12 @@ let R = class extends Z(w) {
|
|
|
10389
10390
|
this.hide(), this.remove();
|
|
10390
10391
|
}
|
|
10391
10392
|
static disposeAll() {
|
|
10392
|
-
|
|
10393
|
+
I.modals.forEach((r) => {
|
|
10393
10394
|
r.dispose();
|
|
10394
10395
|
});
|
|
10395
10396
|
}
|
|
10396
10397
|
handleEscape(r) {
|
|
10397
|
-
r.key === "Escape" &&
|
|
10398
|
+
r.key === "Escape" && I.modals.forEach((t) => {
|
|
10398
10399
|
t.forceAction || t.hide();
|
|
10399
10400
|
});
|
|
10400
10401
|
}
|
|
@@ -10402,7 +10403,7 @@ let R = class extends Z(w) {
|
|
|
10402
10403
|
this.fullScreen && (this.width = "100%", this.height = "100%", this.maxWidth = "none", this.maxHeight = "none");
|
|
10403
10404
|
}
|
|
10404
10405
|
};
|
|
10405
|
-
|
|
10406
|
+
I.styles = [
|
|
10406
10407
|
es,
|
|
10407
10408
|
$`
|
|
10408
10409
|
:host {
|
|
@@ -10522,59 +10523,65 @@ R.styles = [
|
|
|
10522
10523
|
}
|
|
10523
10524
|
`
|
|
10524
10525
|
];
|
|
10525
|
-
|
|
10526
|
-
|
|
10526
|
+
I.modals = [];
|
|
10527
|
+
X([
|
|
10527
10528
|
a({ type: Boolean })
|
|
10528
|
-
],
|
|
10529
|
-
|
|
10529
|
+
], I.prototype, "forceAction", 2);
|
|
10530
|
+
X([
|
|
10530
10531
|
a({ type: Boolean })
|
|
10531
|
-
],
|
|
10532
|
-
|
|
10532
|
+
], I.prototype, "removeOnHide", 2);
|
|
10533
|
+
X([
|
|
10533
10534
|
a({ type: Boolean })
|
|
10534
|
-
],
|
|
10535
|
-
|
|
10535
|
+
], I.prototype, "removeHashOnHide", 2);
|
|
10536
|
+
X([
|
|
10536
10537
|
a({ type: String, reflect: !0 })
|
|
10537
|
-
],
|
|
10538
|
-
|
|
10538
|
+
], I.prototype, "align", 2);
|
|
10539
|
+
X([
|
|
10540
|
+
a({ type: String })
|
|
10541
|
+
], I.prototype, "padding", 2);
|
|
10542
|
+
X([
|
|
10539
10543
|
a({ type: String })
|
|
10540
|
-
],
|
|
10541
|
-
|
|
10544
|
+
], I.prototype, "maxWidth", 2);
|
|
10545
|
+
X([
|
|
10542
10546
|
a({ type: String })
|
|
10543
|
-
],
|
|
10544
|
-
|
|
10547
|
+
], I.prototype, "maxHeight", 2);
|
|
10548
|
+
X([
|
|
10545
10549
|
a({ type: String })
|
|
10546
|
-
],
|
|
10547
|
-
|
|
10550
|
+
], I.prototype, "width", 2);
|
|
10551
|
+
X([
|
|
10548
10552
|
a({ type: String })
|
|
10549
|
-
],
|
|
10550
|
-
|
|
10553
|
+
], I.prototype, "height", 2);
|
|
10554
|
+
X([
|
|
10551
10555
|
a({ type: String })
|
|
10552
|
-
],
|
|
10553
|
-
|
|
10556
|
+
], I.prototype, "zIndex", 2);
|
|
10557
|
+
X([
|
|
10554
10558
|
a({ type: String })
|
|
10555
|
-
],
|
|
10556
|
-
|
|
10559
|
+
], I.prototype, "effect", 2);
|
|
10560
|
+
X([
|
|
10557
10561
|
a({ type: Object })
|
|
10558
|
-
],
|
|
10559
|
-
|
|
10562
|
+
], I.prototype, "options", 2);
|
|
10563
|
+
X([
|
|
10560
10564
|
a({ type: Boolean, reflect: !0 })
|
|
10561
|
-
],
|
|
10562
|
-
|
|
10565
|
+
], I.prototype, "fullScreen", 2);
|
|
10566
|
+
X([
|
|
10563
10567
|
a({ type: Boolean, reflect: !0 })
|
|
10564
|
-
],
|
|
10565
|
-
|
|
10568
|
+
], I.prototype, "visible", 2);
|
|
10569
|
+
X([
|
|
10570
|
+
a({ type: Object })
|
|
10571
|
+
], I.prototype, "animation", 2);
|
|
10572
|
+
X([
|
|
10566
10573
|
be(".modal-wrapper")
|
|
10567
|
-
],
|
|
10568
|
-
|
|
10574
|
+
], I.prototype, "modalWrapper", 2);
|
|
10575
|
+
X([
|
|
10569
10576
|
be(".modal")
|
|
10570
|
-
],
|
|
10571
|
-
|
|
10577
|
+
], I.prototype, "modalElement", 2);
|
|
10578
|
+
X([
|
|
10572
10579
|
ve({ selector: "sonic-modal-close" })
|
|
10573
|
-
],
|
|
10574
|
-
|
|
10575
|
-
_(
|
|
10576
|
-
],
|
|
10577
|
-
typeof window < "u" && (window.SonicModal =
|
|
10580
|
+
], I.prototype, "closeBtn", 2);
|
|
10581
|
+
I = X([
|
|
10582
|
+
_(Ir)
|
|
10583
|
+
], I);
|
|
10584
|
+
typeof window < "u" && (window.SonicModal = I);
|
|
10578
10585
|
var Cc = Object.defineProperty, Ac = Object.getOwnPropertyDescriptor, It = (r, t, s, i) => {
|
|
10579
10586
|
for (var e = i > 1 ? void 0 : i ? Ac(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
10580
10587
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
@@ -10602,7 +10609,7 @@ let Ct = class extends w {
|
|
|
10602
10609
|
>${this.noIcon ? C : g`<div>${this.status && g`<sonic-icon name=${Sc[this.status]}></sonic-icon>`}</div>`}</slot
|
|
10603
10610
|
>
|
|
10604
10611
|
<div>
|
|
10605
|
-
${this.label ? g`<span class="label">${
|
|
10612
|
+
${this.label ? g`<span class="label">${z(this.label)}</span>` : C}
|
|
10606
10613
|
<div>${this.text}<slot></slot></div>
|
|
10607
10614
|
</div>
|
|
10608
10615
|
${this.dismissible ? g`<sonic-button @click=${this.close} class="close-btn" variant="unstyled" shape="circle">
|
|
@@ -10756,7 +10763,7 @@ let fe = class extends Z(w) {
|
|
|
10756
10763
|
render() {
|
|
10757
10764
|
var r;
|
|
10758
10765
|
return (r = this.messages) != null && r.length ? g`<div class="container">
|
|
10759
|
-
${
|
|
10766
|
+
${Lr(this.messages, (t) => t.type == "public" ? g`<sonic-alert
|
|
10760
10767
|
status=${t.status || "default"}
|
|
10761
10768
|
text=${x(t.content)}
|
|
10762
10769
|
size=${this.size}
|
|
@@ -10791,7 +10798,7 @@ rs([
|
|
|
10791
10798
|
fe = rs([
|
|
10792
10799
|
_(Lc)
|
|
10793
10800
|
], fe);
|
|
10794
|
-
var Ec = Object.defineProperty, Nc = Object.getOwnPropertyDescriptor,
|
|
10801
|
+
var Ec = Object.defineProperty, Nc = Object.getOwnPropertyDescriptor, Fr = (r, t, s, i) => {
|
|
10795
10802
|
for (var e = i > 1 ? void 0 : i ? Nc(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
10796
10803
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
10797
10804
|
return i && e && Ec(t, s, e), e;
|
|
@@ -10813,10 +10820,10 @@ let ti = class extends Z(w) {
|
|
|
10813
10820
|
return C;
|
|
10814
10821
|
}
|
|
10815
10822
|
};
|
|
10816
|
-
|
|
10823
|
+
Fr([
|
|
10817
10824
|
a({ type: Array })
|
|
10818
10825
|
], ti.prototype, "messages", 1);
|
|
10819
|
-
ti =
|
|
10826
|
+
ti = Fr([
|
|
10820
10827
|
_(Tc)
|
|
10821
10828
|
], ti);
|
|
10822
10829
|
var Mc = Object.defineProperty, jc = Object.getOwnPropertyDescriptor, os = (r, t, s, i) => {
|
|
@@ -10975,7 +10982,7 @@ let At = class extends w {
|
|
|
10975
10982
|
}
|
|
10976
10983
|
render() {
|
|
10977
10984
|
return g`<div part="divider">
|
|
10978
|
-
<span class="text">${
|
|
10985
|
+
<span class="text">${z(this.label ? this.label : "")}<slot></slot></span>
|
|
10979
10986
|
</div>`;
|
|
10980
10987
|
}
|
|
10981
10988
|
};
|
|
@@ -11177,8 +11184,8 @@ let Ye = class extends w {
|
|
|
11177
11184
|
return g`
|
|
11178
11185
|
<div class="header">
|
|
11179
11186
|
<div class="header-content">
|
|
11180
|
-
${
|
|
11181
|
-
${this.description ? g`<sonic-card-header-description>${
|
|
11187
|
+
${z(this.label)}
|
|
11188
|
+
${this.description ? g`<sonic-card-header-description>${z(this.description)}</sonic-card-header-description>` : ""}
|
|
11182
11189
|
<slot></slot>
|
|
11183
11190
|
</div>
|
|
11184
11191
|
<slot name="suffix"></slot>
|
|
@@ -11237,7 +11244,7 @@ var Zc = Object.defineProperty, Yc = Object.getOwnPropertyDescriptor, Gc = (r, t
|
|
|
11237
11244
|
return i && e && Zc(t, s, e), e;
|
|
11238
11245
|
};
|
|
11239
11246
|
const Qc = "sonic-card-main";
|
|
11240
|
-
let
|
|
11247
|
+
let nr = class extends w {
|
|
11241
11248
|
// static styles = [
|
|
11242
11249
|
// css`
|
|
11243
11250
|
// :host {
|
|
@@ -11252,16 +11259,16 @@ let rr = class extends w {
|
|
|
11252
11259
|
`;
|
|
11253
11260
|
}
|
|
11254
11261
|
};
|
|
11255
|
-
|
|
11262
|
+
nr = Gc([
|
|
11256
11263
|
_(Qc)
|
|
11257
|
-
],
|
|
11264
|
+
], nr);
|
|
11258
11265
|
var Jc = Object.defineProperty, Xc = Object.getOwnPropertyDescriptor, th = (r, t, s, i) => {
|
|
11259
11266
|
for (var e = i > 1 ? void 0 : i ? Xc(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11260
11267
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
11261
11268
|
return i && e && Jc(t, s, e), e;
|
|
11262
11269
|
};
|
|
11263
11270
|
const eh = "sonic-card-footer";
|
|
11264
|
-
let
|
|
11271
|
+
let ar = class extends w {
|
|
11265
11272
|
// static styles = [
|
|
11266
11273
|
// css`
|
|
11267
11274
|
// :host {
|
|
@@ -11272,10 +11279,10 @@ let or = class extends w {
|
|
|
11272
11279
|
return g` <slot></slot> `;
|
|
11273
11280
|
}
|
|
11274
11281
|
};
|
|
11275
|
-
|
|
11282
|
+
ar = th([
|
|
11276
11283
|
_(eh)
|
|
11277
|
-
],
|
|
11278
|
-
var sh = Object.defineProperty, ih = Object.getOwnPropertyDescriptor,
|
|
11284
|
+
], ar);
|
|
11285
|
+
var sh = Object.defineProperty, ih = Object.getOwnPropertyDescriptor, zr = (r, t, s, i) => {
|
|
11279
11286
|
for (var e = i > 1 ? void 0 : i ? ih(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11280
11287
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
11281
11288
|
return i && e && sh(t, s, e), e;
|
|
@@ -11372,10 +11379,10 @@ Cs.styles = [
|
|
|
11372
11379
|
}
|
|
11373
11380
|
`
|
|
11374
11381
|
];
|
|
11375
|
-
|
|
11382
|
+
zr([
|
|
11376
11383
|
a({ type: String, reflect: !0 })
|
|
11377
11384
|
], Cs.prototype, "type", 2);
|
|
11378
|
-
Cs =
|
|
11385
|
+
Cs = zr([
|
|
11379
11386
|
_(rh)
|
|
11380
11387
|
], Cs);
|
|
11381
11388
|
const Si = $`
|
|
@@ -11825,7 +11832,7 @@ let Ge = class extends Xt(w) {
|
|
|
11825
11832
|
const r = document.createElement("script");
|
|
11826
11833
|
r.src = "https://www.google.com/recaptcha/api.js?render=" + this.key, r.id = "captcha-" + this.key, document.head.appendChild(r);
|
|
11827
11834
|
}
|
|
11828
|
-
if (super.connectedCallback(), this.formPublisher =
|
|
11835
|
+
if (super.connectedCallback(), this.formPublisher = tt.get(
|
|
11829
11836
|
this.getAncestorAttributeValue("headersDataProvider") ?? this.getAncestorAttributeValue("formDataProvider")
|
|
11830
11837
|
), !document.getElementById("concorde-recaptcha-css")) {
|
|
11831
11838
|
const r = document.createElement("style");
|
|
@@ -11880,7 +11887,7 @@ function jh(r) {
|
|
|
11880
11887
|
function Ih(r) {
|
|
11881
11888
|
this.__disconnectedCallbackCalls__ || (this.__disconnectedCallbackCalls__ = /* @__PURE__ */ new Set()), this.__disconnectedCallbackCalls__.add(r);
|
|
11882
11889
|
}
|
|
11883
|
-
function
|
|
11890
|
+
function Rr(r) {
|
|
11884
11891
|
if (r.__is__setSubscribable__)
|
|
11885
11892
|
return;
|
|
11886
11893
|
r.__is__setSubscribable__ = !0, r.__onConnected__ = jh, r.__onDisconnected__ = Ih;
|
|
@@ -11904,7 +11911,7 @@ function Fh(r) {
|
|
|
11904
11911
|
if (!e)
|
|
11905
11912
|
return;
|
|
11906
11913
|
let n;
|
|
11907
|
-
|
|
11914
|
+
Rr(e), e.__onConnected__((l) => {
|
|
11908
11915
|
n = (c) => {
|
|
11909
11916
|
l[o] = c;
|
|
11910
11917
|
}, i.onAssign(n);
|
|
@@ -11928,7 +11935,7 @@ function zh(...r) {
|
|
|
11928
11935
|
s.push({ publisher: l, onAssign: h, callbacks: c });
|
|
11929
11936
|
}
|
|
11930
11937
|
return function(i, e, o) {
|
|
11931
|
-
|
|
11938
|
+
Rr(i);
|
|
11932
11939
|
let n;
|
|
11933
11940
|
i.__onConnected__((l) => {
|
|
11934
11941
|
for (const c of s)
|
|
@@ -11946,14 +11953,14 @@ window["concorde-decorator-subscriber"] = {
|
|
|
11946
11953
|
};
|
|
11947
11954
|
window["concorde-directives-data-provider"] = window["concorde-directives-data-provider"] || {};
|
|
11948
11955
|
window["concorde-directives-data-provider"] = {
|
|
11949
|
-
dp:
|
|
11950
|
-
dataProvider:
|
|
11951
|
-
sub:
|
|
11952
|
-
subscribe:
|
|
11953
|
-
get:
|
|
11954
|
-
set:
|
|
11955
|
-
};
|
|
11956
|
-
const Rh = N, Uh =
|
|
11956
|
+
dp: Pr,
|
|
11957
|
+
dataProvider: yo,
|
|
11958
|
+
sub: bo,
|
|
11959
|
+
subscribe: mo,
|
|
11960
|
+
get: vo,
|
|
11961
|
+
set: wo
|
|
11962
|
+
};
|
|
11963
|
+
const Rh = N, Uh = I;
|
|
11957
11964
|
window["concorde-components"] = window["concorde-components"] || {};
|
|
11958
11965
|
window["concorde-components"] = {
|
|
11959
11966
|
SonicToast: Rh,
|