@supersoniks/concorde 3.2.5 → 3.2.6
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/README.md +163 -0
- package/build-infos.json +1 -1
- package/concorde-core.bundle.js +86 -79
- package/concorde-core.es.js +424 -362
- package/dist/concorde-core.bundle.js +86 -79
- package/dist/concorde-core.es.js +424 -362
- package/docs/assets/index-C0K6xugr.css +1 -0
- package/docs/assets/index-Dgl1lJQo.js +4861 -0
- package/docs/css/docs.css +0 -0
- package/docs/fonts/ClashGrotesk-Bold.eot +0 -0
- package/docs/fonts/ClashGrotesk-Bold.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Bold.woff +0 -0
- package/docs/fonts/ClashGrotesk-Bold.woff2 +0 -0
- package/docs/fonts/ClashGrotesk-Extralight.eot +0 -0
- package/docs/fonts/ClashGrotesk-Extralight.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Extralight.woff +0 -0
- package/docs/fonts/ClashGrotesk-Extralight.woff2 +0 -0
- package/docs/fonts/ClashGrotesk-Light.eot +0 -0
- package/docs/fonts/ClashGrotesk-Light.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Light.woff +0 -0
- package/docs/fonts/ClashGrotesk-Light.woff2 +0 -0
- package/docs/fonts/ClashGrotesk-Medium.eot +0 -0
- package/docs/fonts/ClashGrotesk-Medium.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Medium.woff +0 -0
- package/docs/fonts/ClashGrotesk-Medium.woff2 +0 -0
- package/docs/fonts/ClashGrotesk-Regular.eot +0 -0
- package/docs/fonts/ClashGrotesk-Regular.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Regular.woff +0 -0
- package/docs/fonts/ClashGrotesk-Regular.woff2 +0 -0
- package/docs/fonts/ClashGrotesk-Semibold.eot +0 -0
- package/docs/fonts/ClashGrotesk-Semibold.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Semibold.woff +0 -0
- package/docs/fonts/ClashGrotesk-Semibold.woff2 +0 -0
- package/docs/fonts/ClashGrotesk-Variable.eot +0 -0
- package/docs/fonts/ClashGrotesk-Variable.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Variable.woff +0 -0
- package/docs/fonts/ClashGrotesk-Variable.woff2 +0 -0
- package/docs/img/concorde-icon.svg +5 -0
- package/docs/img/concorde-logo.svg +1 -0
- package/docs/img/concorde.png +0 -0
- package/docs/img/concorde_def.png +0 -0
- package/docs/img/concorde_seuil.png.webp +0 -0
- package/docs/img/concorde_seuil_invert.png +0 -0
- package/docs/img/paul_metrand.jpg +0 -0
- package/docs/img/paul_metrand_xs.jpg +0 -0
- package/docs/index.html +93 -0
- package/docs/src/core/components/functional/date/date.md +290 -0
- package/docs/src/core/components/functional/fetch/fetch.md +117 -0
- package/docs/src/core/components/functional/if/if.md +16 -0
- package/docs/src/core/components/functional/list/list.md +199 -0
- package/docs/src/core/components/functional/mix/mix.md +41 -0
- package/docs/src/core/components/functional/queue/queue.md +87 -0
- package/docs/src/core/components/functional/router/router.md +129 -0
- package/docs/src/core/components/functional/sdui/default-library.json +108 -0
- package/docs/src/core/components/functional/sdui/example.json +99 -0
- package/docs/src/core/components/functional/sdui/sdui.md +356 -0
- package/docs/src/core/components/functional/states/states.md +87 -0
- package/docs/src/core/components/functional/submit/submit.md +83 -0
- package/docs/src/core/components/functional/subscriber/subscriber.md +91 -0
- package/docs/src/core/components/functional/value/value.md +35 -0
- package/docs/src/core/components/ui/alert/alert.md +121 -0
- package/docs/src/core/components/ui/alert-messages/alert-messages.md +0 -0
- package/docs/src/core/components/ui/badge/badge.md +127 -0
- package/docs/src/core/components/ui/button/button.md +182 -0
- package/docs/src/core/components/ui/captcha/captcha.md +24 -0
- package/docs/src/core/components/ui/card/card.md +97 -0
- package/docs/src/core/components/ui/divider/divider.md +35 -0
- package/docs/src/core/components/ui/form/checkbox/checkbox.md +104 -0
- package/docs/src/core/components/ui/form/fieldset/fieldset.md +129 -0
- package/docs/src/core/components/ui/form/form-actions/form-actions.md +77 -0
- package/docs/src/core/components/ui/form/form-layout/form-layout.md +44 -0
- package/docs/src/core/components/ui/form/input/input.md +167 -0
- package/docs/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +131 -0
- package/docs/src/core/components/ui/form/radio/radio.md +84 -0
- package/docs/src/core/components/ui/form/select/select.md +97 -0
- package/docs/src/core/components/ui/form/switch/switch.md +84 -0
- package/docs/src/core/components/ui/form/textarea/textarea.md +65 -0
- package/docs/src/core/components/ui/group/group.md +75 -0
- package/docs/src/core/components/ui/icon/icon.md +125 -0
- package/docs/src/core/components/ui/icon/icons.json +1 -0
- package/docs/src/core/components/ui/image/image.md +107 -0
- package/docs/src/core/components/ui/link/link.md +43 -0
- package/docs/src/core/components/ui/loader/loader.md +67 -0
- package/docs/src/core/components/ui/menu/menu.md +288 -0
- package/docs/src/core/components/ui/modal/modal.md +123 -0
- package/docs/src/core/components/ui/pop/pop.md +96 -0
- package/docs/src/core/components/ui/progress/progress.md +63 -0
- package/docs/src/core/components/ui/table/table.md +455 -0
- package/docs/src/core/components/ui/tooltip/tooltip.md +82 -0
- package/docs/src/docs/_core-concept/overview.md +57 -0
- package/docs/src/docs/_core-concept/subscriber.md +76 -0
- package/docs/src/docs/_getting-started/concorde-outside.md +143 -0
- package/docs/src/docs/_getting-started/create-a-component.md +137 -0
- package/docs/src/docs/_getting-started/my-first-subscriber.md +174 -0
- package/docs/src/docs/_getting-started/pubsub.md +150 -0
- package/docs/src/docs/_getting-started/start.md +39 -0
- package/docs/src/docs/_getting-started/theming.md +91 -0
- package/docs/src/docs/search/docs-search.json +3917 -0
- package/docs/src/tag-list.json +1 -0
- package/docs/src/tsconfig-model.json +23 -0
- package/docs/src/tsconfig.json +918 -0
- package/docs/svg/regular/plane.svg +1 -0
- package/docs/svg/solid/plane.svg +1 -0
- package/mcp-server/COMPARISON-MCP.md +176 -0
- package/mcp-server/README-MCP-NODEJS.md +284 -0
- package/mcp-server/README-MCP.md +114 -0
- package/mcp-server/README.md +127 -0
- package/mcp-server/TECHNICAL-DOCS.md +269 -0
- package/mcp-server/concorde-mcp-server.js +859 -0
- package/mcp-server/concorde-mcp-server.py +801 -0
- package/mcp-server/cursor-mcp-config-advanced.json +68 -0
- package/mcp-server/cursor-mcp-config-nodejs.json +74 -0
- package/mcp-server/cursor-mcp-config.json +11 -0
- package/mcp-server/install-mcp-nodejs.sh +104 -0
- package/mcp-server/install-mcp.sh +62 -0
- package/mcp-server/package-lock.json +147 -0
- package/mcp-server/package-mcp.json +40 -0
- package/mcp-server/package.json +40 -0
- package/mcp-server/test-mcp.js +107 -0
- package/mcp-server/test-mcp.py +73 -0
- package/package.json +2 -1
- package/php/get-challenge.php +34 -0
- package/php/some-service.php +42 -0
- package/src/core/components/functional/fetch/fetch.md +6 -0
- package/src/core/components/ui/form/checkbox/checkbox.ts +6 -0
- package/src/core/components/ui/form/radio/radio.ts +11 -1
- package/src/core/components/ui/icon/icons.ts +0 -0
- package/src/core/components/ui/menu/menu.md +0 -0
- package/src/core/components/ui/modal/modal-close.ts +0 -0
- package/src/core/components/ui/modal/modal.ts +0 -0
- package/src/core/components/ui/toast/toast-item.ts +68 -2
- package/src/core/components/ui/toast/toast.md +166 -0
- package/src/core/components/ui/toast/toast.ts +1 -1
- package/src/core/mixins/Fetcher.ts +31 -4
- package/src/docs/navigation/navigation.ts +1 -1
- package/src/docs/search/docs-search.json +135 -0
package/dist/concorde-core.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
let J = class
|
|
1
|
+
let J = class Et {
|
|
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
|
*/
|
|
@@ -48,11 +48,11 @@ let J = class Lt {
|
|
|
48
48
|
* Utilisée pour la configuration du wording / de la traduction ainsi que par le mixin fetcher par exemple
|
|
49
49
|
*/
|
|
50
50
|
static getApiConfiguration(t) {
|
|
51
|
-
const i =
|
|
51
|
+
const i = Et.getAncestorAttributeValue(t, "token"), s = Et.getAncestorAttributeValue(t, "addHTTPResponse") != null, e = Et.getAncestorAttributeValue(t, "serviceURL");
|
|
52
52
|
let o = null, n = null;
|
|
53
|
-
const l =
|
|
54
|
-
i || (o =
|
|
55
|
-
const h =
|
|
53
|
+
const l = Et.getAncestorAttributeValue(t, "tokenProvider"), c = Et.getAncestorAttributeValue(t, "eventsApiToken");
|
|
54
|
+
i || (o = Et.getAncestorAttributeValue(t, "userName"), n = Et.getAncestorAttributeValue(t, "password"));
|
|
55
|
+
const h = Et.getAncestorAttributeValue(
|
|
56
56
|
t,
|
|
57
57
|
"credentials"
|
|
58
58
|
) || void 0, u = t.getAttribute("cache"), d = t.hasAttribute("blockUntilDone");
|
|
@@ -85,7 +85,7 @@ let J = class Lt {
|
|
|
85
85
|
* @returns valeur de l'attribut ou null si l'attribut n'est pas trouvé
|
|
86
86
|
*/
|
|
87
87
|
static getClosestForm(t) {
|
|
88
|
-
return
|
|
88
|
+
return Et.getClosestElement(t, "form");
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
91
91
|
* Lance le chargement d'un js et retourne une promise qui resoud à true lorsque le chargement à réussi et à false, sinon.
|
|
@@ -389,11 +389,11 @@ let pi = (At = class {
|
|
|
389
389
|
return this._instanceCounter_ || (At.instancesCounter++, this._instanceCounter_ = At.instancesCounter), At.instances.set(this._instanceCounter_, this), "<" + Pe + '-publisher-proxy publisher="' + this._instanceCounter_ + '"></' + Pe + "-publisher-proxy>";
|
|
390
390
|
}
|
|
391
391
|
}, At.instances = /* @__PURE__ */ new Map(), At.instancesCounter = 0, At);
|
|
392
|
-
var
|
|
393
|
-
let T = (
|
|
392
|
+
var L;
|
|
393
|
+
let T = (L = class {
|
|
394
394
|
constructor() {
|
|
395
|
-
if (this.enabledLocaStorageProxies = [], this.publishers = /* @__PURE__ */ new Map(), this.localStorageData = {}, this.isLocalStrorageReady = null, this.initialisedData = [],
|
|
396
|
-
|
|
395
|
+
if (this.enabledLocaStorageProxies = [], this.publishers = /* @__PURE__ */ new Map(), this.localStorageData = {}, this.isLocalStrorageReady = null, this.initialisedData = [], L.instance != null) throw "Singleton / use getInstance";
|
|
396
|
+
L.instance = this, this.isLocalStrorageReady = this.cleanStorageData();
|
|
397
397
|
}
|
|
398
398
|
invalidateAll() {
|
|
399
399
|
this.publishers.forEach((t) => {
|
|
@@ -432,39 +432,39 @@ let T = (D = class {
|
|
|
432
432
|
*/
|
|
433
433
|
static getInstance(t) {
|
|
434
434
|
if (t) {
|
|
435
|
-
const i =
|
|
435
|
+
const i = L.instances.get(t);
|
|
436
436
|
return i || (console.warn(
|
|
437
437
|
"No PublisherManager instance registered with id:",
|
|
438
438
|
t,
|
|
439
439
|
"creating new one"
|
|
440
|
-
), new
|
|
440
|
+
), new L());
|
|
441
441
|
}
|
|
442
|
-
return
|
|
442
|
+
return L.instance == null ? new L() : L.instance;
|
|
443
443
|
}
|
|
444
444
|
static registerInstance(t, i) {
|
|
445
|
-
|
|
445
|
+
L.instances.has(t) && console.warn(
|
|
446
446
|
"PublisherManager instance already registered with id: ",
|
|
447
447
|
t
|
|
448
|
-
),
|
|
448
|
+
), L.instances.set(t, i);
|
|
449
449
|
}
|
|
450
450
|
/**
|
|
451
451
|
* shortcut static pour obtenir un publisher vias sont id/adresse sans taper getInstance.
|
|
452
452
|
* Si le publisher n'existe pas, il est créé.
|
|
453
453
|
*/
|
|
454
454
|
static get(t, i) {
|
|
455
|
-
return
|
|
455
|
+
return L.getInstance().get(t, i);
|
|
456
456
|
}
|
|
457
457
|
static collectModifiedPublisher() {
|
|
458
|
-
|
|
458
|
+
L.modifiedCollectore.unshift(/* @__PURE__ */ new Set());
|
|
459
459
|
}
|
|
460
460
|
static getModifiedPublishers() {
|
|
461
|
-
return
|
|
461
|
+
return L.modifiedCollectore.shift();
|
|
462
462
|
}
|
|
463
463
|
/**
|
|
464
464
|
* shortcut static pour supprimer un publisher de la liste et appel également delete sur le publisher ce qui le supprime, de même que ses sous publishers
|
|
465
465
|
*/
|
|
466
466
|
static delete(t) {
|
|
467
|
-
return t ?
|
|
467
|
+
return t ? L.getInstance().delete(t) : !1;
|
|
468
468
|
}
|
|
469
469
|
/**
|
|
470
470
|
* Obtenir un publisher vias sont id/adresse
|
|
@@ -506,10 +506,10 @@ let T = (D = class {
|
|
|
506
506
|
return this.publishers.has(t) ? (this.publishers.delete(t), !0) : !1;
|
|
507
507
|
}
|
|
508
508
|
async saveToLocalStorage(t = 0) {
|
|
509
|
-
if (!(t !==
|
|
509
|
+
if (!(t !== L.saveId && t % 10 != 0))
|
|
510
510
|
try {
|
|
511
|
-
if (!
|
|
512
|
-
|
|
511
|
+
if (!L.changed || L.saving) return;
|
|
512
|
+
L.saving = !0, L.changed = !1;
|
|
513
513
|
const i = Array.from(this.publishers.keys());
|
|
514
514
|
let s = !1;
|
|
515
515
|
for (const e of i) {
|
|
@@ -529,13 +529,13 @@ let T = (D = class {
|
|
|
529
529
|
);
|
|
530
530
|
localStorage.setItem(Fs, e);
|
|
531
531
|
}
|
|
532
|
-
if (
|
|
533
|
-
|
|
534
|
-
const e =
|
|
532
|
+
if (L.saving = !1, L.changed) {
|
|
533
|
+
L.saveId++;
|
|
534
|
+
const e = L.saveId;
|
|
535
535
|
setTimeout(() => this.saveToLocalStorage(e), 1e3);
|
|
536
536
|
}
|
|
537
537
|
} catch {
|
|
538
|
-
|
|
538
|
+
L.saving = !1;
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
async compress(t, i) {
|
|
@@ -556,7 +556,7 @@ let T = (D = class {
|
|
|
556
556
|
const h = await new Response(l.readable).arrayBuffer();
|
|
557
557
|
return new TextDecoder().decode(h);
|
|
558
558
|
}
|
|
559
|
-
},
|
|
559
|
+
}, L.buildDate = "Mon Nov 24 2025 15:50:47 GMT+0100 (Central European Standard Time)", L.changed = !1, L.saving = !1, L.saveId = 0, L.instance = null, L.instances = /* @__PURE__ */ new Map(), L.modifiedCollectore = [], L);
|
|
560
560
|
if (typeof window < "u") {
|
|
561
561
|
const r = window;
|
|
562
562
|
r[ms + "PublisherManager"] = r[ms + "PublisherManager"] || T;
|
|
@@ -829,7 +829,7 @@ let As = (N = class {
|
|
|
829
829
|
publisher: d,
|
|
830
830
|
onAssign: () => {
|
|
831
831
|
const b = l.variables.map((E) => N.getSubPublisher(s, E)?.get());
|
|
832
|
-
let x = l.expression,
|
|
832
|
+
let x = l.expression, S = !1;
|
|
833
833
|
if (b.length == 1 && l.variables[0].join(".") == x.substring(1)) {
|
|
834
834
|
let E = b[0];
|
|
835
835
|
E === null && (E = ""), g[c] = E;
|
|
@@ -838,7 +838,7 @@ let As = (N = class {
|
|
|
838
838
|
for (let E = 0; E < b.length; E++) {
|
|
839
839
|
let p = b[E];
|
|
840
840
|
const f = l.variables[E];
|
|
841
|
-
p === null && (
|
|
841
|
+
p === null && (S = !0, p = void 0), x = x.replace("$" + f.join("."), p);
|
|
842
842
|
}
|
|
843
843
|
if (x.indexOf("|") != -1) {
|
|
844
844
|
const E = x.indexOf("|");
|
|
@@ -846,10 +846,10 @@ let As = (N = class {
|
|
|
846
846
|
x = fs.js(x.substring(1));
|
|
847
847
|
else {
|
|
848
848
|
const p = x.substring(0, E), f = x.substring(E + 1), y = fs[p];
|
|
849
|
-
x =
|
|
849
|
+
x = S ? "" : y ? y(f) : x;
|
|
850
850
|
}
|
|
851
851
|
} else
|
|
852
|
-
x =
|
|
852
|
+
x = S ? "" : x;
|
|
853
853
|
g[c] = x;
|
|
854
854
|
}
|
|
855
855
|
};
|
|
@@ -957,7 +957,7 @@ const _ = (r) => (t, i) => {
|
|
|
957
957
|
* Copyright 2019 Google LLC
|
|
958
958
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
959
959
|
*/
|
|
960
|
-
const us = globalThis, ui = us.ShadowRoot && (us.ShadyCSS === void 0 || us.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, fi = Symbol(),
|
|
960
|
+
const us = globalThis, ui = us.ShadowRoot && (us.ShadyCSS === void 0 || us.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, fi = Symbol(), Ii = /* @__PURE__ */ new WeakMap();
|
|
961
961
|
let pr = class {
|
|
962
962
|
constructor(t, i, s) {
|
|
963
963
|
if (this._$cssResult$ = !0, s !== fi) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -968,7 +968,7 @@ let pr = class {
|
|
|
968
968
|
const i = this.t;
|
|
969
969
|
if (ui && t === void 0) {
|
|
970
970
|
const s = i !== void 0 && i.length === 1;
|
|
971
|
-
s && (t =
|
|
971
|
+
s && (t = Ii.get(i)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && Ii.set(i, t));
|
|
972
972
|
}
|
|
973
973
|
return t;
|
|
974
974
|
}
|
|
@@ -989,7 +989,7 @@ const Br = (r) => new pr(typeof r == "string" ? r : r + "", void 0, fi), P = (r,
|
|
|
989
989
|
const s = document.createElement("style"), e = us.litNonce;
|
|
990
990
|
e !== void 0 && s.setAttribute("nonce", e), s.textContent = i.cssText, r.appendChild(s);
|
|
991
991
|
}
|
|
992
|
-
},
|
|
992
|
+
}, Mi = ui ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
|
993
993
|
let i = "";
|
|
994
994
|
for (const s of t.cssRules) i += s.cssText;
|
|
995
995
|
return Br(i);
|
|
@@ -1083,8 +1083,8 @@ let _e = class extends HTMLElement {
|
|
|
1083
1083
|
const i = [];
|
|
1084
1084
|
if (Array.isArray(t)) {
|
|
1085
1085
|
const s = new Set(t.flat(1 / 0).reverse());
|
|
1086
|
-
for (const e of s) i.unshift(
|
|
1087
|
-
} else t !== void 0 && i.push(
|
|
1086
|
+
for (const e of s) i.unshift(Mi(e));
|
|
1087
|
+
} else t !== void 0 && i.push(Mi(t));
|
|
1088
1088
|
return i;
|
|
1089
1089
|
}
|
|
1090
1090
|
static _$Eu(t, i) {
|
|
@@ -1248,7 +1248,7 @@ function a(r) {
|
|
|
1248
1248
|
* Copyright 2017 Google LLC
|
|
1249
1249
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1250
1250
|
*/
|
|
1251
|
-
function
|
|
1251
|
+
function D(r) {
|
|
1252
1252
|
return a({ ...r, state: !0, attribute: !1 });
|
|
1253
1253
|
}
|
|
1254
1254
|
/**
|
|
@@ -1304,7 +1304,7 @@ function dt(r) {
|
|
|
1304
1304
|
*/
|
|
1305
1305
|
const bi = globalThis, bs = bi.trustedTypes, zi = bs ? bs.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, ur = "$lit$", Yt = `lit$${Math.random().toFixed(9).slice(2)}$`, fr = "?" + Yt, eo = `<${fr}>`, he = document, We = () => he.createComment(""), Ke = (r) => r === null || typeof r != "object" && typeof r != "function", vi = Array.isArray, so = (r) => vi(r) || typeof r?.[Symbol.iterator] == "function", zs = `[
|
|
1306
1306
|
\f\r]`, je = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ri = /-->/g, Ui = />/g, oe = RegExp(`>|${zs}(?:([^\\s"'>=/]+)(${zs}*=${zs}*(?:[^
|
|
1307
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Vi = /'/g, Bi = /"/g, mr = /^(?:script|style|textarea|title)$/i, io = (r) => (t, ...i) => ({ _$litType$: r, strings: t, values: i }), m = io(1), wt = Symbol.for("lit-noChange"),
|
|
1307
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Vi = /'/g, Bi = /"/g, mr = /^(?:script|style|textarea|title)$/i, io = (r) => (t, ...i) => ({ _$litType$: r, strings: t, values: i }), m = io(1), wt = Symbol.for("lit-noChange"), C = Symbol.for("lit-nothing"), qi = /* @__PURE__ */ new WeakMap(), ce = he.createTreeWalker(he, 129);
|
|
1308
1308
|
function gr(r, t) {
|
|
1309
1309
|
if (!vi(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
1310
1310
|
return zi !== void 0 ? zi.createHTML(t) : t;
|
|
@@ -1397,7 +1397,7 @@ class Oe {
|
|
|
1397
1397
|
return this._$AM?._$AU ?? this._$Cv;
|
|
1398
1398
|
}
|
|
1399
1399
|
constructor(t, i, s, e) {
|
|
1400
|
-
this.type = 2, this._$AH =
|
|
1400
|
+
this.type = 2, this._$AH = C, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = e?.isConnected ?? !0;
|
|
1401
1401
|
}
|
|
1402
1402
|
get parentNode() {
|
|
1403
1403
|
let t = this._$AA.parentNode;
|
|
@@ -1411,7 +1411,7 @@ class Oe {
|
|
|
1411
1411
|
return this._$AB;
|
|
1412
1412
|
}
|
|
1413
1413
|
_$AI(t, i = this) {
|
|
1414
|
-
t = $e(this, t, i), Ke(t) ? t ===
|
|
1414
|
+
t = $e(this, t, i), Ke(t) ? t === C || t == null || t === "" ? (this._$AH !== C && this._$AR(), this._$AH = C) : t !== this._$AH && t !== wt && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : so(t) ? this.k(t) : this._(t);
|
|
1415
1415
|
}
|
|
1416
1416
|
O(t) {
|
|
1417
1417
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -1420,7 +1420,7 @@ class Oe {
|
|
|
1420
1420
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
1421
1421
|
}
|
|
1422
1422
|
_(t) {
|
|
1423
|
-
this._$AH !==
|
|
1423
|
+
this._$AH !== C && Ke(this._$AH) ? this._$AA.nextSibling.data = t : this.T(he.createTextNode(t)), this._$AH = t;
|
|
1424
1424
|
}
|
|
1425
1425
|
$(t) {
|
|
1426
1426
|
const { values: i, _$litType$: s } = t, e = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = Hs.createElement(gr(s.h, s.h[0]), this.options)), s);
|
|
@@ -1459,7 +1459,7 @@ class Os {
|
|
|
1459
1459
|
return this._$AM._$AU;
|
|
1460
1460
|
}
|
|
1461
1461
|
constructor(t, i, s, e, o) {
|
|
1462
|
-
this.type = 1, this._$AH =
|
|
1462
|
+
this.type = 1, this._$AH = C, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = o, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = C;
|
|
1463
1463
|
}
|
|
1464
1464
|
_$AI(t, i = this, s, e) {
|
|
1465
1465
|
const o = this.strings;
|
|
@@ -1468,12 +1468,12 @@ class Os {
|
|
|
1468
1468
|
else {
|
|
1469
1469
|
const l = t;
|
|
1470
1470
|
let c, h;
|
|
1471
|
-
for (t = o[0], c = 0; c < o.length - 1; c++) h = $e(this, l[s + c], i, c), h === wt && (h = this._$AH[c]), n ||= !Ke(h) || h !== this._$AH[c], h ===
|
|
1471
|
+
for (t = o[0], c = 0; c < o.length - 1; c++) h = $e(this, l[s + c], i, c), h === wt && (h = this._$AH[c]), n ||= !Ke(h) || h !== this._$AH[c], h === C ? t = C : t !== C && (t += (h ?? "") + o[c + 1]), this._$AH[c] = h;
|
|
1472
1472
|
}
|
|
1473
1473
|
n && !e && this.j(t);
|
|
1474
1474
|
}
|
|
1475
1475
|
j(t) {
|
|
1476
|
-
t ===
|
|
1476
|
+
t === C ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
1477
1477
|
}
|
|
1478
1478
|
}
|
|
1479
1479
|
class no extends Os {
|
|
@@ -1481,7 +1481,7 @@ class no extends Os {
|
|
|
1481
1481
|
super(...arguments), this.type = 3;
|
|
1482
1482
|
}
|
|
1483
1483
|
j(t) {
|
|
1484
|
-
this.element[this.name] = t ===
|
|
1484
|
+
this.element[this.name] = t === C ? void 0 : t;
|
|
1485
1485
|
}
|
|
1486
1486
|
}
|
|
1487
1487
|
class ao extends Os {
|
|
@@ -1489,7 +1489,7 @@ class ao extends Os {
|
|
|
1489
1489
|
super(...arguments), this.type = 4;
|
|
1490
1490
|
}
|
|
1491
1491
|
j(t) {
|
|
1492
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
|
1492
|
+
this.element.toggleAttribute(this.name, !!t && t !== C);
|
|
1493
1493
|
}
|
|
1494
1494
|
}
|
|
1495
1495
|
class lo extends Os {
|
|
@@ -1497,8 +1497,8 @@ class lo extends Os {
|
|
|
1497
1497
|
super(t, i, s, e, o), this.type = 5;
|
|
1498
1498
|
}
|
|
1499
1499
|
_$AI(t, i = this) {
|
|
1500
|
-
if ((t = $e(this, t, i, 0) ??
|
|
1501
|
-
const s = this._$AH, e = t ===
|
|
1500
|
+
if ((t = $e(this, t, i, 0) ?? C) === wt) return;
|
|
1501
|
+
const s = this._$AH, e = t === C && s !== C || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== C && (s === C || e);
|
|
1502
1502
|
e && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
1503
1503
|
}
|
|
1504
1504
|
handleEvent(t) {
|
|
@@ -1829,9 +1829,9 @@ const yr = ee(Po), $o = yr, Co = yr, So = (r) => Ds(r).values().next().value?.ge
|
|
|
1829
1829
|
if (typeof x != "object")
|
|
1830
1830
|
isNaN(+x) ? x.toString().toLowerCase().includes(g.toLowerCase()) && l.push(x) : x === g && l.push(x);
|
|
1831
1831
|
else {
|
|
1832
|
-
const
|
|
1833
|
-
if (!
|
|
1834
|
-
isNaN(+
|
|
1832
|
+
const S = x;
|
|
1833
|
+
if (!S[d]) continue;
|
|
1834
|
+
isNaN(+S[d]) ? S[d]?.toString().toLowerCase().includes(b.toLowerCase()) && l.push(x) : S[d] === b && l.push(x);
|
|
1835
1835
|
}
|
|
1836
1836
|
}
|
|
1837
1837
|
return l.slice(h, h + c);
|
|
@@ -1988,10 +1988,10 @@ const Oo = async (r, t) => {
|
|
|
1988
1988
|
*/
|
|
1989
1989
|
let Ws = class extends De {
|
|
1990
1990
|
constructor(t) {
|
|
1991
|
-
if (super(t), this.it =
|
|
1991
|
+
if (super(t), this.it = C, t.type !== be.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
1992
1992
|
}
|
|
1993
1993
|
render(t) {
|
|
1994
|
-
if (t ===
|
|
1994
|
+
if (t === C || t == null) return this._t = void 0, this.it = t;
|
|
1995
1995
|
if (t === wt) return t;
|
|
1996
1996
|
if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
1997
1997
|
if (t === this.it) return this._t;
|
|
@@ -2086,8 +2086,8 @@ const z = ee(Ws), Ks = /* @__PURE__ */ new Map(), Wi = (r) => {
|
|
|
2086
2086
|
...n.keysToTranslate
|
|
2087
2087
|
]), n.keysToTranslate.clear();
|
|
2088
2088
|
const x = await h.get(b);
|
|
2089
|
-
for (const
|
|
2090
|
-
V.publisher["wording_" +
|
|
2089
|
+
for (const S in x)
|
|
2090
|
+
V.publisher["wording_" + S] = x[S];
|
|
2091
2091
|
});
|
|
2092
2092
|
}
|
|
2093
2093
|
static reloadWordings() {
|
|
@@ -2139,7 +2139,7 @@ V.publisher = T.get("sonic-wording", {
|
|
|
2139
2139
|
}), V.firstCall = !0, V.versionProviderHandlers = /* @__PURE__ */ new Map();
|
|
2140
2140
|
let xe = V;
|
|
2141
2141
|
const Do = ee(xe), Lo = Do;
|
|
2142
|
-
var Eo = Object.defineProperty, No = Object.getOwnPropertyDescriptor,
|
|
2142
|
+
var Eo = Object.defineProperty, No = Object.getOwnPropertyDescriptor, Dt = (r, t, i, s) => {
|
|
2143
2143
|
for (var e = s > 1 ? void 0 : s ? No(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
2144
2144
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
2145
2145
|
return s && e && Eo(t, i, e), e;
|
|
@@ -2294,29 +2294,29 @@ const G = (r, t) => {
|
|
|
2294
2294
|
this.publisher && (this._props && this.publisher.set(this._props), this.noAutoFill || this.publisher.startTemplateFilling(this), this.renderOnPropsInternalChange && this.publisher.onInternalMutation(this.requestUpdate), this.publisher.onAssign(this.onAssign));
|
|
2295
2295
|
}
|
|
2296
2296
|
}, e.instanceCounter = 0, e);
|
|
2297
|
-
return
|
|
2297
|
+
return Dt([
|
|
2298
2298
|
a({ type: Number })
|
|
2299
|
-
], i.prototype, "collectDependenciesVersion", 2),
|
|
2299
|
+
], i.prototype, "collectDependenciesVersion", 2), Dt([
|
|
2300
2300
|
a({ type: Boolean })
|
|
2301
|
-
], i.prototype, "displayContents", 2),
|
|
2301
|
+
], i.prototype, "displayContents", 2), Dt([
|
|
2302
2302
|
a({ type: Boolean })
|
|
2303
|
-
], i.prototype, "noAutoFill", 2),
|
|
2303
|
+
], i.prototype, "noAutoFill", 2), Dt([
|
|
2304
2304
|
a({ type: Boolean })
|
|
2305
|
-
], i.prototype, "forceAutoFill", 2),
|
|
2305
|
+
], i.prototype, "forceAutoFill", 2), Dt([
|
|
2306
2306
|
a({ type: Object })
|
|
2307
|
-
], i.prototype, "propertyMap", 2),
|
|
2307
|
+
], i.prototype, "propertyMap", 2), Dt([
|
|
2308
2308
|
a({ type: String, attribute: "data-title" })
|
|
2309
|
-
], i.prototype, "title", 2),
|
|
2309
|
+
], i.prototype, "title", 2), Dt([
|
|
2310
2310
|
a({ reflect: !0 })
|
|
2311
|
-
], i.prototype, "dataProvider", 2),
|
|
2311
|
+
], i.prototype, "dataProvider", 2), Dt([
|
|
2312
2312
|
a()
|
|
2313
|
-
], i.prototype, "bindPublisher", 2),
|
|
2313
|
+
], i.prototype, "bindPublisher", 2), Dt([
|
|
2314
2314
|
a()
|
|
2315
|
-
], i.prototype, "props", 1),
|
|
2316
|
-
|
|
2315
|
+
], i.prototype, "props", 1), Dt([
|
|
2316
|
+
D()
|
|
2317
2317
|
], i.prototype, "shouldRenderLazy", 2), i;
|
|
2318
2318
|
};
|
|
2319
|
-
var To = Object.defineProperty,
|
|
2319
|
+
var To = Object.defineProperty, Io = (r, t, i, s) => {
|
|
2320
2320
|
for (var e = void 0, o = r.length - 1, n; o >= 0; o--)
|
|
2321
2321
|
(n = r[o]) && (e = n(t, i, e) || e);
|
|
2322
2322
|
return e && To(t, i, e), e;
|
|
@@ -2335,14 +2335,14 @@ const Je = (r) => {
|
|
|
2335
2335
|
), this.templateList.length == 0 && (this.templateList = s), super.connectedCallback();
|
|
2336
2336
|
}
|
|
2337
2337
|
}
|
|
2338
|
-
return
|
|
2338
|
+
return Io([
|
|
2339
2339
|
a({ type: Array })
|
|
2340
2340
|
], t.prototype, "templates"), t;
|
|
2341
2341
|
};
|
|
2342
|
-
var
|
|
2342
|
+
var Mo = Object.defineProperty, jo = Object.getOwnPropertyDescriptor, K = (r, t, i, s) => {
|
|
2343
2343
|
for (var e = s > 1 ? void 0 : s ? jo(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
2344
2344
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
2345
|
-
return s && e &&
|
|
2345
|
+
return s && e && Mo(t, i, e), e;
|
|
2346
2346
|
};
|
|
2347
2347
|
const Fo = "sonic-date";
|
|
2348
2348
|
di(() => R.updateComponentsLanguage());
|
|
@@ -2409,7 +2409,7 @@ let R = class extends G(Je(w)) {
|
|
|
2409
2409
|
}
|
|
2410
2410
|
render() {
|
|
2411
2411
|
if (!this.renderIf || !this.computedStartDate && !this.now && !this.computedEndDate)
|
|
2412
|
-
return
|
|
2412
|
+
return C;
|
|
2413
2413
|
const r = {
|
|
2414
2414
|
year: this.year || "numeric",
|
|
2415
2415
|
month: this.month || "short",
|
|
@@ -2539,8 +2539,8 @@ let et = (H = class {
|
|
|
2539
2539
|
static changeFromComponent(t) {
|
|
2540
2540
|
const i = t.goBack, s = document.referrer;
|
|
2541
2541
|
if (i != null) {
|
|
2542
|
-
const h = document.location.origin, u = (i || h).toString(), g = s.indexOf("http") == 0 ? new URL(s).origin != h : !1, v = s == "", b = history.length < 3, x = v && b,
|
|
2543
|
-
if (g &&
|
|
2542
|
+
const h = document.location.origin, u = (i || h).toString(), g = s.indexOf("http") == 0 ? new URL(s).origin != h : !1, v = s == "", b = history.length < 3, x = v && b, S = u != document.location.href;
|
|
2543
|
+
if (g && S || x) {
|
|
2544
2544
|
const p = history.state || {};
|
|
2545
2545
|
p.concorde = p.concorde || {}, p.concorde.hasDoneHistoryBack = !0, history.pushState(p, document.title), history.back(), document.location.replace(u);
|
|
2546
2546
|
} else
|
|
@@ -2608,7 +2608,7 @@ const xr = "important", zo = " !" + xr, ut = ee(class extends De {
|
|
|
2608
2608
|
return wt;
|
|
2609
2609
|
}
|
|
2610
2610
|
});
|
|
2611
|
-
var Ro = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor,
|
|
2611
|
+
var Ro = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, Lt = (r, t, i, s) => {
|
|
2612
2612
|
for (var e = s > 1 ? void 0 : s ? Uo(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
2613
2613
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
2614
2614
|
return s && e && Ro(t, i, e), e;
|
|
@@ -2762,25 +2762,25 @@ const ds = /* @__PURE__ */ new Map(), Le = (r) => {
|
|
|
2762
2762
|
), s.offFormInvalidate(this.onFormDataInValidate));
|
|
2763
2763
|
}
|
|
2764
2764
|
}
|
|
2765
|
-
return
|
|
2765
|
+
return Lt([
|
|
2766
2766
|
a({ type: Boolean, reflect: !0 })
|
|
2767
|
-
], t.prototype, "touched", 2),
|
|
2767
|
+
], t.prototype, "touched", 2), Lt([
|
|
2768
2768
|
a({ type: Boolean })
|
|
2769
|
-
], t.prototype, "error", 2),
|
|
2769
|
+
], t.prototype, "error", 2), Lt([
|
|
2770
2770
|
a({ type: Boolean })
|
|
2771
|
-
], t.prototype, "autofocus", 2),
|
|
2771
|
+
], t.prototype, "autofocus", 2), Lt([
|
|
2772
2772
|
a({ type: Boolean })
|
|
2773
|
-
], t.prototype, "required", 2),
|
|
2773
|
+
], t.prototype, "required", 2), Lt([
|
|
2774
2774
|
a({ type: Boolean })
|
|
2775
|
-
], t.prototype, "forceAutoFill", 2),
|
|
2775
|
+
], t.prototype, "forceAutoFill", 2), Lt([
|
|
2776
2776
|
a({ type: Boolean, reflect: !0 })
|
|
2777
|
-
], t.prototype, "disabled", 2),
|
|
2777
|
+
], t.prototype, "disabled", 2), Lt([
|
|
2778
2778
|
a({ type: String, attribute: "data-aria-label" })
|
|
2779
|
-
], t.prototype, "ariaLabel", 2),
|
|
2779
|
+
], t.prototype, "ariaLabel", 2), Lt([
|
|
2780
2780
|
a({ type: String, attribute: "data-aria-labelledby" })
|
|
2781
|
-
], t.prototype, "ariaLabelledby", 2),
|
|
2781
|
+
], t.prototype, "ariaLabelledby", 2), Lt([
|
|
2782
2782
|
a()
|
|
2783
|
-
], t.prototype, "name", 1),
|
|
2783
|
+
], t.prototype, "name", 1), Lt([
|
|
2784
2784
|
a()
|
|
2785
2785
|
], t.prototype, "value", 1), t;
|
|
2786
2786
|
};
|
|
@@ -2904,7 +2904,7 @@ function Ho() {
|
|
|
2904
2904
|
(function(s, e) {
|
|
2905
2905
|
return t !== null ? r.exports = e() : s.UrlPattern = e();
|
|
2906
2906
|
})(qo, function() {
|
|
2907
|
-
var s, e, o, n, l, c, h, u, d, g, v, b, x,
|
|
2907
|
+
var s, e, o, n, l, c, h, u, d, g, v, b, x, S, E;
|
|
2908
2908
|
return d = function(p) {
|
|
2909
2909
|
return p.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
2910
2910
|
}, h = function(p, f) {
|
|
@@ -2912,7 +2912,7 @@ function Ho() {
|
|
|
2912
2912
|
for (k = [], y = -1, A = p.length; ++y < A; )
|
|
2913
2913
|
k = k.concat(f(p[y]));
|
|
2914
2914
|
return k;
|
|
2915
|
-
},
|
|
2915
|
+
}, S = function(p, f) {
|
|
2916
2916
|
var y, A, k;
|
|
2917
2917
|
for (k = "", y = -1, A = p.length; ++y < A; )
|
|
2918
2918
|
k += f(p[y]);
|
|
@@ -2970,11 +2970,11 @@ function Ho() {
|
|
|
2970
2970
|
return f == null && (f = p()), f(y);
|
|
2971
2971
|
};
|
|
2972
2972
|
}, s.baseMany = function(p, f, y, A, k) {
|
|
2973
|
-
var q, Z, ot,
|
|
2974
|
-
for (ot = k,
|
|
2975
|
-
y ?
|
|
2976
|
-
if (!(A &&
|
|
2977
|
-
return new s.Result(
|
|
2973
|
+
var q, Z, ot, Me;
|
|
2974
|
+
for (ot = k, Me = y ? "" : []; !(f != null && (q = f(ot), q != null) || (Z = p(ot), Z == null)); )
|
|
2975
|
+
y ? Me += Z.value : Me.push(Z.value), ot = Z.rest;
|
|
2976
|
+
if (!(A && Me.length === 0))
|
|
2977
|
+
return new s.Result(Me, ot);
|
|
2978
2978
|
}, s.many1 = function(p) {
|
|
2979
2979
|
return function(f) {
|
|
2980
2980
|
return s.baseMany(p, null, !1, !0, f);
|
|
@@ -3014,7 +3014,7 @@ function Ho() {
|
|
|
3014
3014
|
wildcardChar: "*"
|
|
3015
3015
|
}, c = function(p, f) {
|
|
3016
3016
|
if (Array.isArray(p))
|
|
3017
|
-
return
|
|
3017
|
+
return S(p, function(y) {
|
|
3018
3018
|
return c(y, f);
|
|
3019
3019
|
});
|
|
3020
3020
|
switch (p.tag) {
|
|
@@ -3075,7 +3075,7 @@ function Ho() {
|
|
|
3075
3075
|
}
|
|
3076
3076
|
}, E = function(p, f, y) {
|
|
3077
3077
|
if (Array.isArray(p))
|
|
3078
|
-
return
|
|
3078
|
+
return S(p, function(A) {
|
|
3079
3079
|
return E(A, f, y);
|
|
3080
3080
|
});
|
|
3081
3081
|
switch (p.tag) {
|
|
@@ -3132,7 +3132,7 @@ function Ho() {
|
|
|
3132
3132
|
if (p !== Object(p))
|
|
3133
3133
|
throw new Error("argument must be an object or undefined");
|
|
3134
3134
|
return E(this.ast, p, {});
|
|
3135
|
-
}, e.escapeForRegex = d, e.concatMap = h, e.stringConcatMap =
|
|
3135
|
+
}, e.escapeForRegex = d, e.concatMap = h, e.stringConcatMap = S, e.regexGroupCount = x, e.keysAndValuesToObject = v, e.P = s, e.newParser = b, e.defaultOptions = u, e.astNodeToRegexString = l, e.astNodeToNames = n, e.getParam = g, e.astNodeContainsSegmentsForProvidedParams = o, e.stringify = E, e;
|
|
3136
3136
|
});
|
|
3137
3137
|
})(Ue, Ue.exports)), Ue.exports;
|
|
3138
3138
|
}
|
|
@@ -3302,7 +3302,7 @@ const _i = (r) => {
|
|
|
3302
3302
|
* Copyright 2018 Google LLC
|
|
3303
3303
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3304
3304
|
*/
|
|
3305
|
-
const $ = (r) => r ??
|
|
3305
|
+
const $ = (r) => r ?? C, Mt = P`
|
|
3306
3306
|
/*SIZES*/
|
|
3307
3307
|
:host {
|
|
3308
3308
|
--sc-_fs: 1rem;
|
|
@@ -3342,7 +3342,7 @@ var rn = Object.defineProperty, on = Object.getOwnPropertyDescriptor, B = (r, t,
|
|
|
3342
3342
|
return s && e && rn(t, i, e), e;
|
|
3343
3343
|
};
|
|
3344
3344
|
const nn = "sonic-button";
|
|
3345
|
-
let
|
|
3345
|
+
let M = class extends _i(Le(G(w))) {
|
|
3346
3346
|
constructor() {
|
|
3347
3347
|
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 = () => {
|
|
3348
3348
|
window.removeEventListener("pointerup", this.handleRepeatend), window.removeEventListener("blur", this.handleRepeatend), this.autoRepeat && (this.isRepeating = !1);
|
|
@@ -3440,7 +3440,7 @@ let I = class extends _i(Le(G(w))) {
|
|
|
3440
3440
|
this.hasPrefix = !!this.prefixes?.length, this.hasSuffix = !!this.suffixes?.length;
|
|
3441
3441
|
}
|
|
3442
3442
|
};
|
|
3443
|
-
|
|
3443
|
+
M.styles = [
|
|
3444
3444
|
Mt,
|
|
3445
3445
|
P`
|
|
3446
3446
|
* {
|
|
@@ -3812,85 +3812,85 @@ I.styles = [
|
|
|
3812
3812
|
];
|
|
3813
3813
|
B([
|
|
3814
3814
|
a({ type: String, reflect: !0 })
|
|
3815
|
-
],
|
|
3815
|
+
], M.prototype, "type", 2);
|
|
3816
3816
|
B([
|
|
3817
3817
|
a({ type: String, reflect: !0 })
|
|
3818
|
-
],
|
|
3818
|
+
], M.prototype, "variant", 2);
|
|
3819
3819
|
B([
|
|
3820
3820
|
a({ type: String, reflect: !0 })
|
|
3821
|
-
],
|
|
3821
|
+
], M.prototype, "size", 2);
|
|
3822
3822
|
B([
|
|
3823
3823
|
a({ type: String, reflect: !0 })
|
|
3824
|
-
],
|
|
3824
|
+
], M.prototype, "shape", 2);
|
|
3825
3825
|
B([
|
|
3826
3826
|
a({ type: String })
|
|
3827
|
-
],
|
|
3827
|
+
], M.prototype, "direction", 2);
|
|
3828
3828
|
B([
|
|
3829
3829
|
a({ type: String, reflect: !0 })
|
|
3830
|
-
],
|
|
3830
|
+
], M.prototype, "alignItems", 2);
|
|
3831
3831
|
B([
|
|
3832
3832
|
a({ type: String })
|
|
3833
|
-
],
|
|
3833
|
+
], M.prototype, "justify", 2);
|
|
3834
3834
|
B([
|
|
3835
3835
|
a({ type: String, reflect: !0 })
|
|
3836
|
-
],
|
|
3836
|
+
], M.prototype, "align", 2);
|
|
3837
3837
|
B([
|
|
3838
3838
|
a({ type: String })
|
|
3839
|
-
],
|
|
3839
|
+
], M.prototype, "minWidth", 2);
|
|
3840
3840
|
B([
|
|
3841
3841
|
a({ type: Boolean, reflect: !0 })
|
|
3842
|
-
],
|
|
3842
|
+
], M.prototype, "icon", 2);
|
|
3843
3843
|
B([
|
|
3844
3844
|
a({ type: String })
|
|
3845
|
-
],
|
|
3845
|
+
], M.prototype, "download", 2);
|
|
3846
3846
|
B([
|
|
3847
3847
|
a({ type: String })
|
|
3848
|
-
],
|
|
3848
|
+
], M.prototype, "autoActive", 2);
|
|
3849
3849
|
B([
|
|
3850
3850
|
a({ type: Boolean, reflect: !0 })
|
|
3851
|
-
],
|
|
3851
|
+
], M.prototype, "loading", 2);
|
|
3852
3852
|
B([
|
|
3853
|
-
|
|
3854
|
-
],
|
|
3853
|
+
D()
|
|
3854
|
+
], M.prototype, "hasPrefix", 2);
|
|
3855
3855
|
B([
|
|
3856
|
-
|
|
3857
|
-
],
|
|
3856
|
+
D()
|
|
3857
|
+
], M.prototype, "hasSuffix", 2);
|
|
3858
3858
|
B([
|
|
3859
3859
|
ke({ flatten: !0, slot: "prefix" })
|
|
3860
|
-
],
|
|
3860
|
+
], M.prototype, "prefixes", 2);
|
|
3861
3861
|
B([
|
|
3862
3862
|
ke({ flatten: !0, slot: "suffix" })
|
|
3863
|
-
],
|
|
3863
|
+
], M.prototype, "suffixes", 2);
|
|
3864
3864
|
B([
|
|
3865
3865
|
a({ type: String })
|
|
3866
|
-
],
|
|
3866
|
+
], M.prototype, "target", 2);
|
|
3867
3867
|
B([
|
|
3868
3868
|
a({ type: String })
|
|
3869
|
-
],
|
|
3869
|
+
], M.prototype, "href", 1);
|
|
3870
3870
|
B([
|
|
3871
3871
|
a({ type: String })
|
|
3872
|
-
],
|
|
3872
|
+
], M.prototype, "goBack", 2);
|
|
3873
3873
|
B([
|
|
3874
3874
|
a({ type: Boolean })
|
|
3875
|
-
],
|
|
3875
|
+
], M.prototype, "pushState", 2);
|
|
3876
3876
|
B([
|
|
3877
3877
|
a({ type: Boolean, reflect: !0 })
|
|
3878
|
-
],
|
|
3878
|
+
], M.prototype, "active", 2);
|
|
3879
3879
|
B([
|
|
3880
3880
|
a({ type: Boolean, reflect: !0 })
|
|
3881
|
-
],
|
|
3881
|
+
], M.prototype, "autoRepeat", 2);
|
|
3882
3882
|
B([
|
|
3883
3883
|
a({ type: String, attribute: "data-aria-controls" })
|
|
3884
|
-
],
|
|
3884
|
+
], M.prototype, "ariaControls", 2);
|
|
3885
3885
|
B([
|
|
3886
3886
|
a({ type: Boolean, attribute: "data-aria-expanded" })
|
|
3887
|
-
],
|
|
3887
|
+
], M.prototype, "sonicAriaExpanded", 2);
|
|
3888
3888
|
B([
|
|
3889
|
-
|
|
3890
|
-
],
|
|
3891
|
-
|
|
3889
|
+
D()
|
|
3890
|
+
], M.prototype, "location", 2);
|
|
3891
|
+
M = B([
|
|
3892
3892
|
_(nn)
|
|
3893
|
-
],
|
|
3893
|
+
], M);
|
|
3894
3894
|
/**
|
|
3895
3895
|
* @license
|
|
3896
3896
|
* Copyright 2017 Google LLC
|
|
@@ -3927,11 +3927,11 @@ const Zi = (r, t, i) => {
|
|
|
3927
3927
|
else if (l[d] === n[b]) c[b] = ne(e[d], o[b]), Fe(r, c[b + 1], e[d]), d++, b--;
|
|
3928
3928
|
else if (l[g] === n[v]) c[v] = ne(e[g], o[v]), Fe(r, e[d], e[g]), g--, v++;
|
|
3929
3929
|
else if (h === void 0 && (h = Zi(n, v, b), u = Zi(l, d, g)), h.has(l[d])) if (h.has(l[g])) {
|
|
3930
|
-
const x = u.get(n[v]),
|
|
3931
|
-
if (
|
|
3930
|
+
const x = u.get(n[v]), S = x !== void 0 ? e[x] : null;
|
|
3931
|
+
if (S === null) {
|
|
3932
3932
|
const E = Fe(r, e[d]);
|
|
3933
3933
|
ne(E, o[v]), c[v] = E;
|
|
3934
|
-
} else c[v] = ne(
|
|
3934
|
+
} else c[v] = ne(S, o[v]), Fe(r, e[d], S), e[x] = null;
|
|
3935
3935
|
v++;
|
|
3936
3936
|
} else Rs(e[g]), g--;
|
|
3937
3937
|
else Rs(e[d]), d++;
|
|
@@ -3984,7 +3984,7 @@ class hn extends yi {
|
|
|
3984
3984
|
this.l?.(), this.l = void 0;
|
|
3985
3985
|
}
|
|
3986
3986
|
render(t) {
|
|
3987
|
-
return
|
|
3987
|
+
return C;
|
|
3988
3988
|
}
|
|
3989
3989
|
getController() {
|
|
3990
3990
|
return an.get(this.u);
|
|
@@ -4231,8 +4231,8 @@ Ni.default = {
|
|
|
4231
4231
|
g("");
|
|
4232
4232
|
return;
|
|
4233
4233
|
}
|
|
4234
|
-
const x = await v.text(),
|
|
4235
|
-
g(
|
|
4234
|
+
const x = await v.text(), S = /^\s*<svg[\s>]/i.test(x);
|
|
4235
|
+
g(S ? x : "");
|
|
4236
4236
|
} catch {
|
|
4237
4237
|
g("");
|
|
4238
4238
|
}
|
|
@@ -4277,7 +4277,7 @@ let de = class extends w {
|
|
|
4277
4277
|
(r.has("name") || r.has("prefix") || r.has("library")) && this.updateIcon(), super.willUpdate(r);
|
|
4278
4278
|
}
|
|
4279
4279
|
render() {
|
|
4280
|
-
return this.iconText ? this.iconText :
|
|
4280
|
+
return this.iconText ? this.iconText : C;
|
|
4281
4281
|
}
|
|
4282
4282
|
};
|
|
4283
4283
|
de.styles = P`
|
|
@@ -4332,7 +4332,7 @@ de.styles = P`
|
|
|
4332
4332
|
}
|
|
4333
4333
|
`;
|
|
4334
4334
|
es([
|
|
4335
|
-
|
|
4335
|
+
D()
|
|
4336
4336
|
], de.prototype, "iconText", 2);
|
|
4337
4337
|
es([
|
|
4338
4338
|
a({ type: String })
|
|
@@ -4369,7 +4369,7 @@ const ss = P`
|
|
|
4369
4369
|
}
|
|
4370
4370
|
}
|
|
4371
4371
|
`;
|
|
4372
|
-
var yn = Object.defineProperty, wn = Object.getOwnPropertyDescriptor,
|
|
4372
|
+
var yn = Object.defineProperty, wn = Object.getOwnPropertyDescriptor, kt = (r, t, i, s) => {
|
|
4373
4373
|
for (var e = s > 1 ? void 0 : s ? wn(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
4374
4374
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
4375
4375
|
return s && e && yn(t, i, e), e;
|
|
@@ -4382,21 +4382,62 @@ const _n = {
|
|
|
4382
4382
|
}, xn = "sonic-toast-item";
|
|
4383
4383
|
let _t = class extends w {
|
|
4384
4384
|
constructor() {
|
|
4385
|
-
super(...arguments), this.title = "", this.id = "", this.text = "", this.status = "", this.ghost = !1, this.preserve = !1, this.dismissForever = !1, this.maxHeight = "10rem", this.visible = !0;
|
|
4385
|
+
super(...arguments), this.title = "", this.id = "", this.text = "", this.status = "", this.ghost = !1, this.preserve = !1, this.dismissForever = !1, this.maxHeight = "10rem", this.visible = !0, this._titleId = "";
|
|
4386
4386
|
}
|
|
4387
4387
|
// @queryAssignedElements({flatten: true, slot: main"})
|
|
4388
4388
|
// textSlot!: HTMLElement[];
|
|
4389
|
+
/**
|
|
4390
|
+
* Retourne le rôle ARIA approprié selon le statut du toast
|
|
4391
|
+
* - "alert" pour les erreurs (messages critiques) - implique déjà aria-live="assertive"
|
|
4392
|
+
* - "status" pour les autres (messages informatifs)
|
|
4393
|
+
*/
|
|
4394
|
+
getAriaRole() {
|
|
4395
|
+
return this.status === "error" ? "alert" : "status";
|
|
4396
|
+
}
|
|
4397
|
+
/**
|
|
4398
|
+
* Retourne la valeur aria-live appropriée selon le statut
|
|
4399
|
+
* - null pour les erreurs car role="alert" implique déjà aria-live="assertive"
|
|
4400
|
+
* - "polite" pour les autres (peut attendre)
|
|
4401
|
+
*/
|
|
4402
|
+
getAriaLive() {
|
|
4403
|
+
return this.status === "error" ? null : "polite";
|
|
4404
|
+
}
|
|
4405
|
+
/**
|
|
4406
|
+
* Génère et mémorise un ID unique pour le titre du toast
|
|
4407
|
+
*/
|
|
4408
|
+
getTitleId() {
|
|
4409
|
+
return this._titleId ? this._titleId : (this._titleId = this.id ? `toast-title-${this.id}` : `toast-title-${Date.now()}-${Math.random().toString(36).slice(2, 11)}`, this._titleId);
|
|
4410
|
+
}
|
|
4411
|
+
/**
|
|
4412
|
+
* Génère un label ARIA descriptif pour le bouton de fermeture
|
|
4413
|
+
*/
|
|
4414
|
+
getCloseButtonLabel() {
|
|
4415
|
+
const r = {
|
|
4416
|
+
error: "Fermer le message d'erreur",
|
|
4417
|
+
warning: "Fermer l'avertissement",
|
|
4418
|
+
success: "Fermer le message de succès",
|
|
4419
|
+
info: "Fermer l'information"
|
|
4420
|
+
};
|
|
4421
|
+
return this.status && r[this.status] || "Fermer la notification";
|
|
4422
|
+
}
|
|
4389
4423
|
render() {
|
|
4390
4424
|
if (this.dismissForever) {
|
|
4391
|
-
const
|
|
4392
|
-
if (JSON.parse(
|
|
4393
|
-
return
|
|
4425
|
+
const s = localStorage.getItem("sonic-toast-dismissed") || "{}";
|
|
4426
|
+
if (JSON.parse(s)[this.id])
|
|
4427
|
+
return C;
|
|
4394
4428
|
}
|
|
4395
|
-
|
|
4429
|
+
if (!this.visible)
|
|
4430
|
+
return C;
|
|
4431
|
+
const r = this.title ? this.getTitleId() : void 0, t = !this.title && this.text ? this.text.length > 100 ? this.text.substring(0, 100).replace(/\s+\S*$/, "") + "..." : this.text : void 0, i = this.getAriaLive();
|
|
4432
|
+
return m`<div
|
|
4396
4433
|
class="sonic-toast ${this.status} ${this.ghost ? "ghost" : ""}"
|
|
4434
|
+
role=${this.getAriaRole()}
|
|
4435
|
+
aria-live=${i || C}
|
|
4436
|
+
aria-atomic="true"
|
|
4437
|
+
aria-label=${t || C}
|
|
4397
4438
|
>
|
|
4398
4439
|
<button
|
|
4399
|
-
aria-label
|
|
4440
|
+
aria-label=${this.getCloseButtonLabel()}
|
|
4400
4441
|
class="sonic-toast-close"
|
|
4401
4442
|
@click=${() => this.hide()}
|
|
4402
4443
|
>
|
|
@@ -4410,17 +4451,20 @@ let _t = class extends w {
|
|
|
4410
4451
|
name=${_n[this.status]}
|
|
4411
4452
|
class="sonic-toast-icon"
|
|
4412
4453
|
size="2xl"
|
|
4454
|
+
aria-hidden="true"
|
|
4413
4455
|
></sonic-icon>`}
|
|
4414
4456
|
|
|
4415
4457
|
<div class="sonic-toast-text">
|
|
4416
|
-
${this.title ? m`<div class="sonic-toast-title"
|
|
4458
|
+
${this.title ? m`<div class="sonic-toast-title" id=${r}>
|
|
4459
|
+
${this.title}
|
|
4460
|
+
</div>` : ""}
|
|
4417
4461
|
${this.text ? z(this.text) : ""}
|
|
4418
4462
|
<slot></slot>
|
|
4419
4463
|
</div>
|
|
4420
4464
|
|
|
4421
4465
|
${this.preserve ? "" : this.autoHide()}
|
|
4422
4466
|
</div>
|
|
4423
|
-
</div
|
|
4467
|
+
</div>`;
|
|
4424
4468
|
}
|
|
4425
4469
|
hide() {
|
|
4426
4470
|
if (Zt.getClosestElement(this, "sonic-toast") || (this.visible = !1), this.dismissForever) {
|
|
@@ -4625,34 +4669,37 @@ _t.styles = [
|
|
|
4625
4669
|
}
|
|
4626
4670
|
`
|
|
4627
4671
|
];
|
|
4628
|
-
|
|
4672
|
+
kt([
|
|
4629
4673
|
a({ type: String })
|
|
4630
4674
|
], _t.prototype, "title", 2);
|
|
4631
|
-
|
|
4675
|
+
kt([
|
|
4632
4676
|
a({ type: String })
|
|
4633
4677
|
], _t.prototype, "id", 2);
|
|
4634
|
-
|
|
4678
|
+
kt([
|
|
4635
4679
|
a({ type: String })
|
|
4636
4680
|
], _t.prototype, "text", 2);
|
|
4637
|
-
|
|
4681
|
+
kt([
|
|
4638
4682
|
a({ type: String })
|
|
4639
4683
|
], _t.prototype, "status", 2);
|
|
4640
|
-
|
|
4684
|
+
kt([
|
|
4641
4685
|
a({ type: Boolean })
|
|
4642
4686
|
], _t.prototype, "ghost", 2);
|
|
4643
|
-
|
|
4687
|
+
kt([
|
|
4644
4688
|
a({ type: Boolean })
|
|
4645
4689
|
], _t.prototype, "preserve", 2);
|
|
4646
|
-
|
|
4690
|
+
kt([
|
|
4647
4691
|
a({ type: Boolean })
|
|
4648
4692
|
], _t.prototype, "dismissForever", 2);
|
|
4649
|
-
|
|
4693
|
+
kt([
|
|
4650
4694
|
a({ type: String })
|
|
4651
4695
|
], _t.prototype, "maxHeight", 2);
|
|
4652
|
-
|
|
4653
|
-
|
|
4696
|
+
kt([
|
|
4697
|
+
D()
|
|
4654
4698
|
], _t.prototype, "visible", 2);
|
|
4655
|
-
|
|
4699
|
+
kt([
|
|
4700
|
+
D()
|
|
4701
|
+
], _t.prototype, "_titleId", 2);
|
|
4702
|
+
_t = kt([
|
|
4656
4703
|
_(xn)
|
|
4657
4704
|
], _t);
|
|
4658
4705
|
const Pn = P`
|
|
@@ -4943,7 +4990,7 @@ let O = class extends w {
|
|
|
4943
4990
|
zIndex: "10000",
|
|
4944
4991
|
maxWidth: "64ch",
|
|
4945
4992
|
flexDirection: "column-reverse"
|
|
4946
|
-
}), O.handleExistingToastDelegation(), this.toasts ? m`<div
|
|
4993
|
+
}), O.handleExistingToastDelegation(), this.toasts ? m`<div style=${ut(i)}>
|
|
4947
4994
|
${Ls(
|
|
4948
4995
|
this.toasts,
|
|
4949
4996
|
(s) => s.id,
|
|
@@ -4985,7 +5032,7 @@ let O = class extends w {
|
|
|
4985
5032
|
</sonic-toast-item>
|
|
4986
5033
|
`
|
|
4987
5034
|
)}
|
|
4988
|
-
</div>` :
|
|
5035
|
+
</div>` : C;
|
|
4989
5036
|
}
|
|
4990
5037
|
static removeAll() {
|
|
4991
5038
|
if (O.delegateToasts) {
|
|
@@ -5100,8 +5147,8 @@ var Nn = Object.defineProperty, Tn = Object.getOwnPropertyDescriptor, Re = (r, t
|
|
|
5100
5147
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
5101
5148
|
return s && e && Nn(t, i, e), e;
|
|
5102
5149
|
};
|
|
5103
|
-
const
|
|
5104
|
-
for (const t of
|
|
5150
|
+
const In = /* @__PURE__ */ new Set(), Mn = /* @__PURE__ */ new Set(), jn = (r) => {
|
|
5151
|
+
for (const t of Mn)
|
|
5105
5152
|
t(r);
|
|
5106
5153
|
}, Zs = /* @__PURE__ */ new Set();
|
|
5107
5154
|
let qs = 0;
|
|
@@ -5117,7 +5164,7 @@ di(async () => {
|
|
|
5117
5164
|
const xi = (r, t) => {
|
|
5118
5165
|
class i extends r {
|
|
5119
5166
|
constructor(...e) {
|
|
5120
|
-
super(), this.api = null, this.key = "", this.isFirstLoad = !0, this.isLoading = !1, this.iObserver = null, this.isFetchEnabled = !0, this.fetchedData = null, this._endPoint = "", this.noErrorsRecordings = !1, this.requestId = 0, this.refetchEveryMs = 0, this.dataProvider = "";
|
|
5167
|
+
super(), this.api = null, this.key = "", this.isFirstLoad = !0, this.isLoading = !1, this.iObserver = null, this.isFetchEnabled = !0, this.fetchedData = null, this._endPoint = "", this.noErrorsRecordings = !1, this.requestId = 0, this.refetchEveryMs = 0, this.isFetching = !1, this.mustRefetch = !1, this.dataProvider = "";
|
|
5121
5168
|
}
|
|
5122
5169
|
get props() {
|
|
5123
5170
|
return super.props;
|
|
@@ -5131,6 +5178,12 @@ const xi = (r, t) => {
|
|
|
5131
5178
|
get endPoint() {
|
|
5132
5179
|
return this._endPoint;
|
|
5133
5180
|
}
|
|
5181
|
+
handleStartFetching() {
|
|
5182
|
+
return this.isFetching ? (this.mustRefetch = !0, "fetching") : (this.isFetching = !0, "okToFetch");
|
|
5183
|
+
}
|
|
5184
|
+
handleEndFetching() {
|
|
5185
|
+
this.isFetching = !1, this.mustRefetch && (this.mustRefetch = !1, this._fetchData());
|
|
5186
|
+
}
|
|
5134
5187
|
/**
|
|
5135
5188
|
*
|
|
5136
5189
|
* C'est ici que les données sont chargées via l'utilitaire API
|
|
@@ -5140,16 +5193,21 @@ const xi = (r, t) => {
|
|
|
5140
5193
|
async _fetchData() {
|
|
5141
5194
|
if (this.requestUpdate(), !this.isFetchEnabled || (this.api = new Ce(this.getApiConfiguration()), !this.api) || (this.dispatchEvent(new CustomEvent("loading", { detail: this })), this.getAttribute("localStorage") === "enabled" && await st.getInstance().isLocalStrorageReady, !this.isConnected)) return;
|
|
5142
5195
|
const e = st.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();
|
|
5143
|
-
this.isLoading = !0, tt.isObject(this.props) && Object.keys(this.props || {}).length > 0 && this.isFirstLoad && window.requestAnimationFrame(() => {
|
|
5196
|
+
if (this.isLoading = !0, tt.isObject(this.props) && Object.keys(this.props || {}).length > 0 && this.isFirstLoad && window.requestAnimationFrame(() => {
|
|
5144
5197
|
this.dispatchEvent(new CustomEvent("load", { detail: this })), this.isFirstLoad = !1, this.isLoading = !1;
|
|
5145
|
-
})
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5198
|
+
}), this.handleStartFetching() === "fetching")
|
|
5199
|
+
return;
|
|
5200
|
+
let n = null;
|
|
5201
|
+
try {
|
|
5202
|
+
n = await this.api.get(
|
|
5203
|
+
this.endPoint || this.dataProvider || "",
|
|
5204
|
+
e
|
|
5205
|
+
);
|
|
5206
|
+
} catch {
|
|
5207
|
+
}
|
|
5208
|
+
if (this.handleEndFetching(), this.fetchedData = n, this.api.lastResult && !this.api.lastResult.ok && (this.noErrorsRecordings || In.add(this), jn(this.api.lastResult)), !!this.isConnected) {
|
|
5209
|
+
if (n)
|
|
5210
|
+
n._sonic_http_response_ && !n._sonic_http_response_.ok && Object.keys(n).length === 1 && O.add({ text: "Network Error", status: "error" });
|
|
5153
5211
|
else {
|
|
5154
5212
|
this.isLoading = !1, this.refetchEveryMs && this.isConnected && (this.refetchTimeOutId = setTimeout(
|
|
5155
5213
|
() => this._fetchData(),
|
|
@@ -5158,14 +5216,14 @@ const xi = (r, t) => {
|
|
|
5158
5216
|
return;
|
|
5159
5217
|
}
|
|
5160
5218
|
if (this.key) {
|
|
5161
|
-
const
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5219
|
+
const l = n._sonic_http_response_, c = this.key.split(".");
|
|
5220
|
+
n = tt.traverse(
|
|
5221
|
+
n,
|
|
5222
|
+
c,
|
|
5165
5223
|
this.hasAttribute("preserveOtherKeys")
|
|
5166
|
-
),
|
|
5224
|
+
), n && tt.isObject(n) && l && (n._sonic_http_response_ = l);
|
|
5167
5225
|
}
|
|
5168
|
-
this.props =
|
|
5226
|
+
this.props = n, this.dispatchEvent(new CustomEvent("load", { detail: this })), this.isFirstLoad = !1, this.isLoading = !1, this.refetchEveryMs && this.isConnected && (this.refetchTimeOutId = setTimeout(
|
|
5169
5227
|
() => this._fetchData(),
|
|
5170
5228
|
this.refetchEveryMs
|
|
5171
5229
|
));
|
|
@@ -5291,7 +5349,7 @@ window["concorde-mixins"] = {
|
|
|
5291
5349
|
* Copyright 2020 Google LLC
|
|
5292
5350
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5293
5351
|
*/
|
|
5294
|
-
const
|
|
5352
|
+
const Nt = ee(class extends De {
|
|
5295
5353
|
constructor(r) {
|
|
5296
5354
|
if (super(r), r.type !== be.CHILD) throw Error("templateContent can only be used in child bindings");
|
|
5297
5355
|
}
|
|
@@ -5307,18 +5365,18 @@ var Un = Object.defineProperty, Vn = Object.getOwnPropertyDescriptor, Ar = (r, t
|
|
|
5307
5365
|
const Bn = "sonic-fetch";
|
|
5308
5366
|
let ws = class extends xi(G(Pi(w))) {
|
|
5309
5367
|
renderLoader() {
|
|
5310
|
-
if (!(this.isLoading && this.loader !== void 0)) return
|
|
5368
|
+
if (!(this.isLoading && this.loader !== void 0)) return C;
|
|
5311
5369
|
const r = this.loader === !0 || this.loader === "" ? "fixed" : this.loader;
|
|
5312
5370
|
return m`<sonic-loader mode=${r}></sonic-loader>`;
|
|
5313
5371
|
}
|
|
5314
5372
|
renderSkeleton() {
|
|
5315
5373
|
const r = this.templateParts.skeleton;
|
|
5316
|
-
return this.isLoading && r ?
|
|
5374
|
+
return this.isLoading && r ? Nt(r) : C;
|
|
5317
5375
|
}
|
|
5318
5376
|
render() {
|
|
5319
5377
|
return m`
|
|
5320
5378
|
${this.renderSkeleton()} ${this.renderLoader()}
|
|
5321
|
-
${this.isLoading ?
|
|
5379
|
+
${this.isLoading ? C : m`<slot></slot>`}
|
|
5322
5380
|
`;
|
|
5323
5381
|
}
|
|
5324
5382
|
};
|
|
@@ -5346,7 +5404,7 @@ let _s = class extends w {
|
|
|
5346
5404
|
super(...arguments), this.condition = !1;
|
|
5347
5405
|
}
|
|
5348
5406
|
render() {
|
|
5349
|
-
return this.condition ? m` <slot></slot> ` :
|
|
5407
|
+
return this.condition ? m` <slot></slot> ` : C;
|
|
5350
5408
|
}
|
|
5351
5409
|
};
|
|
5352
5410
|
_s.styles = P`
|
|
@@ -5576,7 +5634,7 @@ let or = class extends G(w) {
|
|
|
5576
5634
|
or = Jn([
|
|
5577
5635
|
_(ta)
|
|
5578
5636
|
], or);
|
|
5579
|
-
var ea = Object.defineProperty, sa = Object.getOwnPropertyDescriptor,
|
|
5637
|
+
var ea = Object.defineProperty, sa = Object.getOwnPropertyDescriptor, Ot = (r, t, i, s) => {
|
|
5580
5638
|
for (var e = s > 1 ? void 0 : s ? sa(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
5581
5639
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
5582
5640
|
return s && e && ea(t, i, e), e;
|
|
@@ -5600,7 +5658,7 @@ let xt = class extends xi(G(Je(w))) {
|
|
|
5600
5658
|
super.disconnectedCallback();
|
|
5601
5659
|
}
|
|
5602
5660
|
renderLoader() {
|
|
5603
|
-
if (!(this.isLoading && this.loader !== void 0) || this.templateParts.skeleton) return
|
|
5661
|
+
if (!(this.isLoading && this.loader !== void 0) || this.templateParts.skeleton) return C;
|
|
5604
5662
|
const t = this.loader === !0 || this.loader === "" ? "fixed" : this.loader;
|
|
5605
5663
|
return m`<sonic-loader mode=${t}></sonic-loader>`;
|
|
5606
5664
|
}
|
|
@@ -5608,13 +5666,13 @@ let xt = class extends xi(G(Je(w))) {
|
|
|
5608
5666
|
if (this.skeleton)
|
|
5609
5667
|
return this.skeleton();
|
|
5610
5668
|
const r = this.templateParts.skeleton;
|
|
5611
|
-
return this.isLoading && r ?
|
|
5669
|
+
return this.isLoading && r ? Nt(r) : C;
|
|
5612
5670
|
}
|
|
5613
5671
|
renderSeparator() {
|
|
5614
5672
|
if (this.separator)
|
|
5615
5673
|
return this.separator();
|
|
5616
5674
|
const r = this.templateParts.separator;
|
|
5617
|
-
return r ?
|
|
5675
|
+
return r ? Nt(r) : C;
|
|
5618
5676
|
}
|
|
5619
5677
|
renderLoadingState() {
|
|
5620
5678
|
return m`${this.renderSkeleton()} ${this.renderLoader()} `;
|
|
@@ -5692,22 +5750,22 @@ let xt = class extends xi(G(Je(w))) {
|
|
|
5692
5750
|
if (this.noItems)
|
|
5693
5751
|
return this.noItems();
|
|
5694
5752
|
if (this.templateParts["no-items"] = this.templateParts["no-items"] || this.templateParts["no-item"], this.templateParts["no-items"])
|
|
5695
|
-
return
|
|
5753
|
+
return Nt(this.templateParts["no-items"]);
|
|
5696
5754
|
}
|
|
5697
5755
|
const e = this.templateList.length;
|
|
5698
5756
|
let o = -1;
|
|
5699
5757
|
const n = this.hasAttribute("extractValues"), l = this.renderSeparator(), c = s?.length || 0, h = s?.slice(this.offset, this.offset + this.limit);
|
|
5700
5758
|
return m`
|
|
5701
5759
|
${h?.map((u, d) => {
|
|
5702
|
-
if (u == null) return
|
|
5760
|
+
if (u == null) return C;
|
|
5703
5761
|
let g = d, v = null;
|
|
5704
5762
|
if (typeof u == "object" && !Array.isArray(u)) {
|
|
5705
5763
|
n && (g = u?.key);
|
|
5706
5764
|
const f = u[this.templateKey];
|
|
5707
5765
|
f && typeof f == "string" && (v = this.templateParts[f]);
|
|
5708
5766
|
}
|
|
5709
|
-
if (g == "_sonic_http_response_" || typeof g != "string" && typeof g != "number") return
|
|
5710
|
-
const b = d >= c - 1, x = d % 2,
|
|
5767
|
+
if (g == "_sonic_http_response_" || typeof g != "string" && typeof g != "number") return C;
|
|
5768
|
+
const b = d >= c - 1, x = d % 2, S = this.publisher[g], E = {
|
|
5711
5769
|
key: g,
|
|
5712
5770
|
even: x == 0,
|
|
5713
5771
|
odd: x == 1,
|
|
@@ -5715,8 +5773,8 @@ let xt = class extends xi(G(Je(w))) {
|
|
|
5715
5773
|
firstChild: d == 0,
|
|
5716
5774
|
lastChild: b
|
|
5717
5775
|
};
|
|
5718
|
-
|
|
5719
|
-
...
|
|
5776
|
+
S._key_ = g + "", S._metadata_ = {
|
|
5777
|
+
...S._metadata_.get(),
|
|
5720
5778
|
...E
|
|
5721
5779
|
};
|
|
5722
5780
|
const p = this.handleProgrammaticTemplates(
|
|
@@ -5724,56 +5782,56 @@ let xt = class extends xi(G(Je(w))) {
|
|
|
5724
5782
|
E,
|
|
5725
5783
|
g
|
|
5726
5784
|
);
|
|
5727
|
-
return p ? m`${p}${b ?
|
|
5785
|
+
return p ? m`${p}${b ? C : l}` : (o++, v && (o = -1), m`
|
|
5728
5786
|
<sonic-subscriber
|
|
5729
5787
|
?debug=${this.defferedDebug === !0}
|
|
5730
5788
|
.bindPublisher=${function() {
|
|
5731
|
-
return
|
|
5789
|
+
return S;
|
|
5732
5790
|
}}
|
|
5733
5791
|
.propertyMap?=${this.itemPropertyMap}
|
|
5734
5792
|
dataProvider="${this.dataProvider}/list-item/${g}"
|
|
5735
5793
|
>
|
|
5736
|
-
${
|
|
5794
|
+
${Nt(v || this.templateList[o % e])}
|
|
5737
5795
|
</sonic-subscriber>
|
|
5738
|
-
${b ?
|
|
5796
|
+
${b ? C : l}
|
|
5739
5797
|
`);
|
|
5740
5798
|
})}
|
|
5741
5799
|
`;
|
|
5742
5800
|
}
|
|
5743
5801
|
};
|
|
5744
|
-
|
|
5802
|
+
Ot([
|
|
5745
5803
|
a({ type: Object })
|
|
5746
5804
|
], xt.prototype, "itemPropertyMap", 2);
|
|
5747
|
-
|
|
5805
|
+
Ot([
|
|
5748
5806
|
a({ type: String })
|
|
5749
5807
|
], xt.prototype, "templateKey", 2);
|
|
5750
|
-
|
|
5808
|
+
Ot([
|
|
5751
5809
|
a({ type: String })
|
|
5752
5810
|
], xt.prototype, "idKey", 2);
|
|
5753
|
-
|
|
5811
|
+
Ot([
|
|
5754
5812
|
a()
|
|
5755
5813
|
], xt.prototype, "loader", 2);
|
|
5756
|
-
|
|
5814
|
+
Ot([
|
|
5757
5815
|
a()
|
|
5758
5816
|
], xt.prototype, "limit", 2);
|
|
5759
|
-
|
|
5817
|
+
Ot([
|
|
5760
5818
|
a()
|
|
5761
5819
|
], xt.prototype, "offset", 2);
|
|
5762
|
-
|
|
5820
|
+
Ot([
|
|
5763
5821
|
a({
|
|
5764
5822
|
type: Function
|
|
5765
5823
|
})
|
|
5766
5824
|
], xt.prototype, "items", 1);
|
|
5767
|
-
|
|
5825
|
+
Ot([
|
|
5768
5826
|
a({ type: Function })
|
|
5769
5827
|
], xt.prototype, "noItems", 2);
|
|
5770
|
-
|
|
5828
|
+
Ot([
|
|
5771
5829
|
a({ type: Function })
|
|
5772
5830
|
], xt.prototype, "skeleton", 2);
|
|
5773
|
-
|
|
5831
|
+
Ot([
|
|
5774
5832
|
a({ type: Function })
|
|
5775
5833
|
], xt.prototype, "separator", 2);
|
|
5776
|
-
xt =
|
|
5834
|
+
xt = Ot([
|
|
5777
5835
|
_(ia)
|
|
5778
5836
|
], xt);
|
|
5779
5837
|
/**
|
|
@@ -5893,7 +5951,7 @@ let X = class extends G(w) {
|
|
|
5893
5951
|
}
|
|
5894
5952
|
render() {
|
|
5895
5953
|
if (this.storeScrollPosition(), !Array.isArray(this.props))
|
|
5896
|
-
return
|
|
5954
|
+
return C;
|
|
5897
5955
|
let r = !this.noLazyload;
|
|
5898
5956
|
return this.props.length == 1 && (r = !1), this.style.display = "block", m`
|
|
5899
5957
|
${Or(this.props, (t, i) => {
|
|
@@ -6053,9 +6111,9 @@ let Xt = class extends G(w) {
|
|
|
6053
6111
|
x && x.split(" ").forEach(
|
|
6054
6112
|
(f) => T.get(f).set({})
|
|
6055
6113
|
);
|
|
6056
|
-
const
|
|
6057
|
-
this.api?.lastResult?.ok && b[
|
|
6058
|
-
b[
|
|
6114
|
+
const S = this.hasAttribute("usernameKey") ? this.getAttribute("usernameKey") : "username", E = this.hasAttribute("passwordKey") ? this.getAttribute("passwordKey") : "password";
|
|
6115
|
+
this.api?.lastResult?.ok && b[S] && b[E] && this.saveCredentials(
|
|
6116
|
+
b[S],
|
|
6059
6117
|
b[E]
|
|
6060
6118
|
), this.submitResultKey && (h = tt.traverse(
|
|
6061
6119
|
h,
|
|
@@ -6256,10 +6314,10 @@ let Se = class extends Je(w) {
|
|
|
6256
6314
|
style="display:contents"
|
|
6257
6315
|
dataProvider="${s}"
|
|
6258
6316
|
>
|
|
6259
|
-
${
|
|
6317
|
+
${Nt(i)}
|
|
6260
6318
|
</div>`;
|
|
6261
6319
|
}
|
|
6262
|
-
return
|
|
6320
|
+
return Nt(i);
|
|
6263
6321
|
}
|
|
6264
6322
|
)}`;
|
|
6265
6323
|
}
|
|
@@ -6391,10 +6449,10 @@ let Ye = class extends G(Je(w)) {
|
|
|
6391
6449
|
style="display:contents"
|
|
6392
6450
|
dataProvider="${o}"
|
|
6393
6451
|
>
|
|
6394
|
-
${
|
|
6452
|
+
${Nt(s)}
|
|
6395
6453
|
</div>`;
|
|
6396
6454
|
}
|
|
6397
|
-
return
|
|
6455
|
+
return Nt(s);
|
|
6398
6456
|
}
|
|
6399
6457
|
)}`;
|
|
6400
6458
|
}
|
|
@@ -6448,7 +6506,7 @@ Dr([
|
|
|
6448
6506
|
Xs = Dr([
|
|
6449
6507
|
_($a)
|
|
6450
6508
|
], Xs);
|
|
6451
|
-
const Ca = { tagName: "sonic-checkbox" }, Sa = { tagName: "sonic-input", attributes: { type: "date" } }, Aa = { tagName: "sonic-fieldset", nodes: [{ libraryKey: "formLayout" }], contentElementSelector: "sonic-form-layout" }, ka = { tagName: "sonic-input", attributes: { variant: "ghost", type: "file" } }, Oa = { tagName: "sonic-input", attributes: { type: "password" } }, Da = { tagName: "sonic-radio" }, La = { tagName: "sonic-select" }, Ea = { tagName: "sonic-textarea" }, Na = { tagName: "sonic-input", attributes: { type: "text" } }, Ta = { tagName: "sonic-input", attributes: { type: "hidden" } },
|
|
6509
|
+
const Ca = { tagName: "sonic-checkbox" }, Sa = { tagName: "sonic-input", attributes: { type: "date" } }, Aa = { tagName: "sonic-fieldset", nodes: [{ libraryKey: "formLayout" }], contentElementSelector: "sonic-form-layout" }, ka = { tagName: "sonic-input", attributes: { variant: "ghost", type: "file" } }, Oa = { tagName: "sonic-input", attributes: { type: "password" } }, Da = { tagName: "sonic-radio" }, La = { tagName: "sonic-select" }, Ea = { tagName: "sonic-textarea" }, Na = { tagName: "sonic-input", attributes: { type: "text" } }, Ta = { tagName: "sonic-input", attributes: { type: "hidden" } }, Ia = { tagName: "sonic-button" }, Ma = { tagName: "sonic-submit", attributes: { onEnterKey: !0 } }, ja = { tagName: "sonic-submit", attributes: { onClick: !0 }, contentElementSelector: "sonic-button", nodes: [{ libraryKey: "button", attributes: { type: "success" }, nodes: [{ tagName: "sonic-icon", attributes: { name: "check", slot: "prefix" } }] }] }, Fa = { tagName: "sonic-input", attributes: { type: "email" } }, za = { tagName: "div", attributes: { class: "form-item-container" } }, Ra = { tagName: "sonic-form-layout" }, Ua = { tagName: "sonic-form-actions" }, Va = { tagName: "sonic-password-helper" }, Ba = { tagName: "sonic-same-value-helper" }, qa = { tagName: "sonic-divider" }, Ha = {
|
|
6452
6510
|
checkbox: Ca,
|
|
6453
6511
|
date: Sa,
|
|
6454
6512
|
fieldset: Aa,
|
|
@@ -6459,8 +6517,8 @@ const Ca = { tagName: "sonic-checkbox" }, Sa = { tagName: "sonic-input", attribu
|
|
|
6459
6517
|
textarea: Ea,
|
|
6460
6518
|
textfield: Na,
|
|
6461
6519
|
hidden: Ta,
|
|
6462
|
-
button:
|
|
6463
|
-
form:
|
|
6520
|
+
button: Ia,
|
|
6521
|
+
form: Ma,
|
|
6464
6522
|
submit: ja,
|
|
6465
6523
|
email: Fa,
|
|
6466
6524
|
formItemContainer: za,
|
|
@@ -6880,7 +6938,7 @@ var el = Object.defineProperty, sl = Object.getOwnPropertyDescriptor, Si = (r, t
|
|
|
6880
6938
|
const il = "sonic-t";
|
|
6881
6939
|
let $s = class extends w {
|
|
6882
6940
|
render() {
|
|
6883
|
-
return this.key ? m`${Lo(this.key, this.unsafeHTML)}` :
|
|
6941
|
+
return this.key ? m`${Lo(this.key, this.unsafeHTML)}` : C;
|
|
6884
6942
|
}
|
|
6885
6943
|
};
|
|
6886
6944
|
Si([
|
|
@@ -7120,7 +7178,7 @@ let Gt = class extends w {
|
|
|
7120
7178
|
return this.href ? m`
|
|
7121
7179
|
<a
|
|
7122
7180
|
href="${this.href}"
|
|
7123
|
-
aria-label=${this.ariaLabel ||
|
|
7181
|
+
aria-label=${this.ariaLabel || C}
|
|
7124
7182
|
target=${$(this.target)}
|
|
7125
7183
|
@click=${this.pushState ? this.handlePushState : null}
|
|
7126
7184
|
>
|
|
@@ -7335,7 +7393,7 @@ const fl = P`
|
|
|
7335
7393
|
margin-bottom: 0.22em;
|
|
7336
7394
|
display: block;
|
|
7337
7395
|
}
|
|
7338
|
-
`,
|
|
7396
|
+
`, Is = P`
|
|
7339
7397
|
.form-description {
|
|
7340
7398
|
color: var(--sc-base-400, var(--sc-base-content, #000));
|
|
7341
7399
|
font-size: 0.85em;
|
|
@@ -7879,7 +7937,7 @@ let j = class extends Es(Le(G(w))) {
|
|
|
7879
7937
|
name="description"
|
|
7880
7938
|
@slotchange=${this.hasSlotOrProps}
|
|
7881
7939
|
class="${this.hasDescription ? "form-description" : "hidden"}"
|
|
7882
|
-
>${this.description ? m`${z(this.description)}` :
|
|
7940
|
+
>${this.description ? m`${z(this.description)}` : C}</slot>
|
|
7883
7941
|
<slot name="list"></slot>
|
|
7884
7942
|
</div>
|
|
7885
7943
|
`;
|
|
@@ -7889,7 +7947,7 @@ j.styles = [
|
|
|
7889
7947
|
Mt,
|
|
7890
7948
|
Ai,
|
|
7891
7949
|
Ts,
|
|
7892
|
-
|
|
7950
|
+
Is,
|
|
7893
7951
|
fl,
|
|
7894
7952
|
P`
|
|
7895
7953
|
:host([type="hidden"]) {
|
|
@@ -7968,19 +8026,19 @@ U([
|
|
|
7968
8026
|
ge("input")
|
|
7969
8027
|
], j.prototype, "input", 2);
|
|
7970
8028
|
U([
|
|
7971
|
-
|
|
8029
|
+
D()
|
|
7972
8030
|
], j.prototype, "hasDescription", 2);
|
|
7973
8031
|
U([
|
|
7974
|
-
|
|
8032
|
+
D()
|
|
7975
8033
|
], j.prototype, "hasLabel", 2);
|
|
7976
8034
|
U([
|
|
7977
|
-
|
|
8035
|
+
D()
|
|
7978
8036
|
], j.prototype, "hasSuffix", 2);
|
|
7979
8037
|
U([
|
|
7980
|
-
|
|
8038
|
+
D()
|
|
7981
8039
|
], j.prototype, "hasPrefix", 2);
|
|
7982
8040
|
U([
|
|
7983
|
-
|
|
8041
|
+
D()
|
|
7984
8042
|
], j.prototype, "isPassword", 2);
|
|
7985
8043
|
j = U([
|
|
7986
8044
|
_(bl)
|
|
@@ -8087,8 +8145,8 @@ let it = class extends w {
|
|
|
8087
8145
|
window.innerHeight,
|
|
8088
8146
|
l?.bottom || window.innerHeight
|
|
8089
8147
|
) - e, g = o.left, v = o.top;
|
|
8090
|
-
let b = g, x = v,
|
|
8091
|
-
const E = v -
|
|
8148
|
+
let b = g, x = v, S = this.popContent?.getBoundingClientRect();
|
|
8149
|
+
const E = v - S.height, p = g - S.width, f = g + o.width, y = v + o.height, A = g + (o.width - S.width) * 0.5, k = v + (o.height - S.height) * 0.5;
|
|
8092
8150
|
switch (i) {
|
|
8093
8151
|
case "bottom":
|
|
8094
8152
|
x = y, s == "center" && (b = A);
|
|
@@ -8103,16 +8161,16 @@ let it = class extends w {
|
|
|
8103
8161
|
b = f, s == "center" && (x = k);
|
|
8104
8162
|
break;
|
|
8105
8163
|
}
|
|
8106
|
-
this.lastContentX += b -
|
|
8164
|
+
this.lastContentX += b - S.x, this.lastContentY += x - S.y, Object.assign(this.popContent.style, {
|
|
8107
8165
|
left: `${this.lastContentX}px`,
|
|
8108
8166
|
top: `${this.lastContentY}px`
|
|
8109
|
-
}),
|
|
8167
|
+
}), S = this.popContent?.getBoundingClientRect(), S.x < c && i == "left" && (b = f), S.y < h && i == "top" && (x = y), S.x + S.width > u && i == "right" && (b = p), S.y + S.height > d && i == "bottom" && (x = E), this.lastContentX += b - S.x, this.lastContentY += x - S.y, Object.assign(this.popContent.style, {
|
|
8110
8168
|
left: `${this.lastContentX}px`,
|
|
8111
8169
|
top: `${this.lastContentY}px`
|
|
8112
|
-
}),
|
|
8170
|
+
}), S = this.popContent?.getBoundingClientRect(), S.x < c && (this.lastContentX += c - S.x), S.y < h && (this.lastContentY += h - S.y), Object.assign(this.popContent.style, {
|
|
8113
8171
|
left: `${this.lastContentX}px`,
|
|
8114
8172
|
top: `${this.lastContentY}px`
|
|
8115
|
-
}),
|
|
8173
|
+
}), S = this.popContent?.getBoundingClientRect(), S.x + S.width > u && (this.lastContentX += u - (S.x + S.width)), S.y + S.height > d && (this.lastContentY += d - (S.y + S.height)), Object.assign(this.popContent.style, {
|
|
8116
8174
|
left: `${this.lastContentX}px`,
|
|
8117
8175
|
top: `${this.lastContentY}px`
|
|
8118
8176
|
});
|
|
@@ -8175,7 +8233,7 @@ it.styles = [
|
|
|
8175
8233
|
Er
|
|
8176
8234
|
];
|
|
8177
8235
|
jt([
|
|
8178
|
-
|
|
8236
|
+
D()
|
|
8179
8237
|
], it.prototype, "open", 2);
|
|
8180
8238
|
jt([
|
|
8181
8239
|
ge("slot:not([name=content])")
|
|
@@ -8199,7 +8257,7 @@ jt([
|
|
|
8199
8257
|
a({ type: String })
|
|
8200
8258
|
], it.prototype, "placement", 2);
|
|
8201
8259
|
jt([
|
|
8202
|
-
|
|
8260
|
+
D()
|
|
8203
8261
|
], it.prototype, "triggerElement", 2);
|
|
8204
8262
|
it = jt([
|
|
8205
8263
|
_(wl)
|
|
@@ -8210,7 +8268,7 @@ var _l = Object.getOwnPropertyDescriptor, xl = (r, t, i, s) => {
|
|
|
8210
8268
|
return e;
|
|
8211
8269
|
};
|
|
8212
8270
|
const Pl = "sonic-menu-item";
|
|
8213
|
-
let cr = class extends
|
|
8271
|
+
let cr = class extends M {
|
|
8214
8272
|
constructor() {
|
|
8215
8273
|
super();
|
|
8216
8274
|
}
|
|
@@ -8390,7 +8448,7 @@ let at = class extends Pi(
|
|
|
8390
8448
|
name="nav-arrow-down"
|
|
8391
8449
|
.size=${this.size}
|
|
8392
8450
|
></sonic-icon>
|
|
8393
|
-
` :
|
|
8451
|
+
` : C}
|
|
8394
8452
|
</sonic-input>
|
|
8395
8453
|
<sonic-menu
|
|
8396
8454
|
slot="content"
|
|
@@ -8482,13 +8540,13 @@ mt([
|
|
|
8482
8540
|
dt({ slot: "prefix", flatten: !0 })
|
|
8483
8541
|
], at.prototype, "slotInputPrefixNodes", 2);
|
|
8484
8542
|
mt([
|
|
8485
|
-
|
|
8543
|
+
D()
|
|
8486
8544
|
], at.prototype, "hasInputPrefix", 2);
|
|
8487
8545
|
mt([
|
|
8488
|
-
|
|
8546
|
+
D()
|
|
8489
8547
|
], at.prototype, "isPopVisible", 2);
|
|
8490
8548
|
mt([
|
|
8491
|
-
|
|
8549
|
+
D()
|
|
8492
8550
|
], at.prototype, "lastValidSearch", 2);
|
|
8493
8551
|
at = mt([
|
|
8494
8552
|
_("sonic-input-autocomplete")
|
|
@@ -8515,7 +8573,7 @@ let lt = class extends se(w) {
|
|
|
8515
8573
|
return t ? m`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>` : m`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`;
|
|
8516
8574
|
}
|
|
8517
8575
|
render() {
|
|
8518
|
-
return this.hasNoChar ?
|
|
8576
|
+
return this.hasNoChar ? C : m`
|
|
8519
8577
|
<div>${this.wording_password_helper_decription}</div>
|
|
8520
8578
|
<div>
|
|
8521
8579
|
${this.getIcon(this.hasEnoughChars)}
|
|
@@ -8546,22 +8604,22 @@ gt([
|
|
|
8546
8604
|
a()
|
|
8547
8605
|
], lt.prototype, "minChars", 2);
|
|
8548
8606
|
gt([
|
|
8549
|
-
|
|
8607
|
+
D()
|
|
8550
8608
|
], lt.prototype, "hasNoChar", 2);
|
|
8551
8609
|
gt([
|
|
8552
|
-
|
|
8610
|
+
D()
|
|
8553
8611
|
], lt.prototype, "hasEnoughChars", 2);
|
|
8554
8612
|
gt([
|
|
8555
|
-
|
|
8613
|
+
D()
|
|
8556
8614
|
], lt.prototype, "hasMinuscule", 2);
|
|
8557
8615
|
gt([
|
|
8558
|
-
|
|
8616
|
+
D()
|
|
8559
8617
|
], lt.prototype, "hasMajuscule", 2);
|
|
8560
8618
|
gt([
|
|
8561
|
-
|
|
8619
|
+
D()
|
|
8562
8620
|
], lt.prototype, "hasNumber", 2);
|
|
8563
8621
|
gt([
|
|
8564
|
-
|
|
8622
|
+
D()
|
|
8565
8623
|
], lt.prototype, "hasSpecialChar", 2);
|
|
8566
8624
|
gt([
|
|
8567
8625
|
a()
|
|
@@ -8622,7 +8680,7 @@ let Jt = class extends se(w) {
|
|
|
8622
8680
|
}
|
|
8623
8681
|
//TODO Multilangue
|
|
8624
8682
|
render() {
|
|
8625
|
-
return this.hasNoChar ?
|
|
8683
|
+
return this.hasNoChar ? C : m`
|
|
8626
8684
|
<span>
|
|
8627
8685
|
${this.areEqual ? z(this.descriptionWhenEqual) : z(this.descriptionWhenNotEqual)}
|
|
8628
8686
|
</span>
|
|
@@ -8642,10 +8700,10 @@ ve([
|
|
|
8642
8700
|
a()
|
|
8643
8701
|
], Jt.prototype, "descriptionWhenNotEqual", 2);
|
|
8644
8702
|
ve([
|
|
8645
|
-
|
|
8703
|
+
D()
|
|
8646
8704
|
], Jt.prototype, "areEqual", 2);
|
|
8647
8705
|
ve([
|
|
8648
|
-
|
|
8706
|
+
D()
|
|
8649
8707
|
], Jt.prototype, "hasNoChar", 2);
|
|
8650
8708
|
Jt = ve([
|
|
8651
8709
|
_(Ll)
|
|
@@ -8666,7 +8724,7 @@ let ft = class extends _i(
|
|
|
8666
8724
|
this.type = "checkbox", this.hasSlotOrProps(), super.connectedCallback();
|
|
8667
8725
|
}
|
|
8668
8726
|
willUpdate(r) {
|
|
8669
|
-
this.hasSlotOrProps(), super.willUpdate(r);
|
|
8727
|
+
this.hasSlotOrProps(), super.willUpdate(r), r.has("type") && (this.type = "checkbox");
|
|
8670
8728
|
}
|
|
8671
8729
|
hasSlotOrProps() {
|
|
8672
8730
|
this.hasLabel = !!(this.label || this.slotLabelNodes?.length), this.hasDescription = !!(this.description || this.slotDescriptionNodes?.length);
|
|
@@ -8859,8 +8917,8 @@ Kt([
|
|
|
8859
8917
|
ft = Kt([
|
|
8860
8918
|
_(Tl)
|
|
8861
8919
|
], ft);
|
|
8862
|
-
var
|
|
8863
|
-
for (var e = s > 1 ? void 0 : s ?
|
|
8920
|
+
var Il = Object.getOwnPropertyDescriptor, Ml = (r, t, i, s) => {
|
|
8921
|
+
for (var e = s > 1 ? void 0 : s ? Il(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
8864
8922
|
(n = r[o]) && (e = n(e) || e);
|
|
8865
8923
|
return e;
|
|
8866
8924
|
};
|
|
@@ -8869,6 +8927,10 @@ let Gs = class extends ft {
|
|
|
8869
8927
|
constructor() {
|
|
8870
8928
|
super(), this.radio = !0;
|
|
8871
8929
|
}
|
|
8930
|
+
willUpdate(r) {
|
|
8931
|
+
const t = r.has("type");
|
|
8932
|
+
super.willUpdate(r), t && (this.type = "radio");
|
|
8933
|
+
}
|
|
8872
8934
|
connectedCallback() {
|
|
8873
8935
|
super.connectedCallback(), this.type = "radio";
|
|
8874
8936
|
}
|
|
@@ -8893,7 +8955,7 @@ Gs.styles = [
|
|
|
8893
8955
|
}
|
|
8894
8956
|
`
|
|
8895
8957
|
];
|
|
8896
|
-
Gs =
|
|
8958
|
+
Gs = Ml([
|
|
8897
8959
|
_(jl)
|
|
8898
8960
|
], Gs);
|
|
8899
8961
|
var Fl = Object.getOwnPropertyDescriptor, zl = (r, t, i, s) => {
|
|
@@ -9121,7 +9183,7 @@ W.styles = [
|
|
|
9121
9183
|
Mt,
|
|
9122
9184
|
Ai,
|
|
9123
9185
|
Ts,
|
|
9124
|
-
|
|
9186
|
+
Is,
|
|
9125
9187
|
P`
|
|
9126
9188
|
.form-element {
|
|
9127
9189
|
appearance: none;
|
|
@@ -9223,16 +9285,16 @@ Q([
|
|
|
9223
9285
|
dt({ slot: "prefix", flatten: !0 })
|
|
9224
9286
|
], W.prototype, "slotPrefixNodes", 2);
|
|
9225
9287
|
Q([
|
|
9226
|
-
|
|
9288
|
+
D()
|
|
9227
9289
|
], W.prototype, "hasDescription", 2);
|
|
9228
9290
|
Q([
|
|
9229
|
-
|
|
9291
|
+
D()
|
|
9230
9292
|
], W.prototype, "hasLabel", 2);
|
|
9231
9293
|
Q([
|
|
9232
|
-
|
|
9294
|
+
D()
|
|
9233
9295
|
], W.prototype, "hasSuffix", 2);
|
|
9234
9296
|
Q([
|
|
9235
|
-
|
|
9297
|
+
D()
|
|
9236
9298
|
], W.prototype, "hasPrefix", 2);
|
|
9237
9299
|
W = Q([
|
|
9238
9300
|
_(Bl)
|
|
@@ -9322,7 +9384,7 @@ ct.styles = [
|
|
|
9322
9384
|
Mt,
|
|
9323
9385
|
Ai,
|
|
9324
9386
|
Ts,
|
|
9325
|
-
|
|
9387
|
+
Is,
|
|
9326
9388
|
ss,
|
|
9327
9389
|
P`
|
|
9328
9390
|
textarea {
|
|
@@ -9365,10 +9427,10 @@ bt([
|
|
|
9365
9427
|
dt({ slot: "description", flatten: !0 })
|
|
9366
9428
|
], ct.prototype, "slotDescriptionNodes", 2);
|
|
9367
9429
|
bt([
|
|
9368
|
-
|
|
9430
|
+
D()
|
|
9369
9431
|
], ct.prototype, "hasDescription", 2);
|
|
9370
9432
|
bt([
|
|
9371
|
-
|
|
9433
|
+
D()
|
|
9372
9434
|
], ct.prototype, "hasLabel", 2);
|
|
9373
9435
|
ct = bt([
|
|
9374
9436
|
_(Wl)
|
|
@@ -9538,7 +9600,7 @@ let Pt = class extends G(w) {
|
|
|
9538
9600
|
iconName=${$(this.iconName)}
|
|
9539
9601
|
iconPrefix=${$(this.iconPrefix)}
|
|
9540
9602
|
iconLibrary=${$(this.iconLibrary)}
|
|
9541
|
-
></sonic-legend>` :
|
|
9603
|
+
></sonic-legend>` : C}
|
|
9542
9604
|
<slot></slot>
|
|
9543
9605
|
</fieldset>`;
|
|
9544
9606
|
}
|
|
@@ -9742,7 +9804,7 @@ var ac = Object.defineProperty, lc = Object.getOwnPropertyDescriptor, ie = (r, t
|
|
|
9742
9804
|
return s && e && ac(t, i, e), e;
|
|
9743
9805
|
};
|
|
9744
9806
|
const cc = "sonic-group";
|
|
9745
|
-
let
|
|
9807
|
+
let Tt = class extends w {
|
|
9746
9808
|
constructor() {
|
|
9747
9809
|
super(...arguments), this.alignItems = "center", this.hasDescription = !1, this.hasLabel = !1;
|
|
9748
9810
|
}
|
|
@@ -9787,10 +9849,10 @@ let Nt = class extends w {
|
|
|
9787
9849
|
</slot>`;
|
|
9788
9850
|
}
|
|
9789
9851
|
};
|
|
9790
|
-
|
|
9852
|
+
Tt.styles = [
|
|
9791
9853
|
Mt,
|
|
9792
9854
|
Ts,
|
|
9793
|
-
|
|
9855
|
+
Is,
|
|
9794
9856
|
P`
|
|
9795
9857
|
:host {
|
|
9796
9858
|
display: inline-block;
|
|
@@ -9815,28 +9877,28 @@ Nt.styles = [
|
|
|
9815
9877
|
];
|
|
9816
9878
|
ie([
|
|
9817
9879
|
a({ type: String })
|
|
9818
|
-
],
|
|
9880
|
+
], Tt.prototype, "alignItems", 2);
|
|
9819
9881
|
ie([
|
|
9820
9882
|
a({ type: String })
|
|
9821
|
-
],
|
|
9883
|
+
], Tt.prototype, "label", 2);
|
|
9822
9884
|
ie([
|
|
9823
9885
|
a({ type: String })
|
|
9824
|
-
],
|
|
9886
|
+
], Tt.prototype, "description", 2);
|
|
9825
9887
|
ie([
|
|
9826
9888
|
dt({ slot: "label", flatten: !0 })
|
|
9827
|
-
],
|
|
9889
|
+
], Tt.prototype, "slotLabelNodes", 2);
|
|
9828
9890
|
ie([
|
|
9829
9891
|
dt({ slot: "description", flatten: !0 })
|
|
9830
|
-
],
|
|
9892
|
+
], Tt.prototype, "slotDescriptionNodes", 2);
|
|
9831
9893
|
ie([
|
|
9832
|
-
|
|
9833
|
-
],
|
|
9894
|
+
D()
|
|
9895
|
+
], Tt.prototype, "hasDescription", 2);
|
|
9834
9896
|
ie([
|
|
9835
|
-
|
|
9836
|
-
],
|
|
9837
|
-
|
|
9897
|
+
D()
|
|
9898
|
+
], Tt.prototype, "hasLabel", 2);
|
|
9899
|
+
Tt = ie([
|
|
9838
9900
|
_(cc)
|
|
9839
|
-
],
|
|
9901
|
+
], Tt);
|
|
9840
9902
|
var hc = Object.defineProperty, dc = Object.getOwnPropertyDescriptor, zt = (r, t, i, s) => {
|
|
9841
9903
|
for (var e = s > 1 ? void 0 : s ? dc(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
9842
9904
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
@@ -10290,7 +10352,7 @@ vt([
|
|
|
10290
10352
|
ke({ slot: "more", selector: "*" })
|
|
10291
10353
|
], ht.prototype, "moreElements", 2);
|
|
10292
10354
|
vt([
|
|
10293
|
-
|
|
10355
|
+
D()
|
|
10294
10356
|
], ht.prototype, "hasMoreElements", 2);
|
|
10295
10357
|
ht = vt([
|
|
10296
10358
|
_(mc)
|
|
@@ -10332,7 +10394,7 @@ Tr([
|
|
|
10332
10394
|
Cs = Tr([
|
|
10333
10395
|
_(vc)
|
|
10334
10396
|
], Cs);
|
|
10335
|
-
var yc = Object.defineProperty, wc = Object.getOwnPropertyDescriptor,
|
|
10397
|
+
var yc = Object.defineProperty, wc = Object.getOwnPropertyDescriptor, Ms = (r, t, i, s) => {
|
|
10336
10398
|
for (var e = s > 1 ? void 0 : s ? wc(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
10337
10399
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
10338
10400
|
return s && e && yc(t, i, e), e;
|
|
@@ -10366,16 +10428,16 @@ let Ge = class extends w {
|
|
|
10366
10428
|
J.getClosestElement(this, "sonic-modal").hide();
|
|
10367
10429
|
}
|
|
10368
10430
|
};
|
|
10369
|
-
|
|
10431
|
+
Ms([
|
|
10370
10432
|
a()
|
|
10371
10433
|
], Ge.prototype, "translation", 2);
|
|
10372
|
-
|
|
10434
|
+
Ms([
|
|
10373
10435
|
a()
|
|
10374
10436
|
], Ge.prototype, "reset", 2);
|
|
10375
|
-
|
|
10437
|
+
Ms([
|
|
10376
10438
|
a()
|
|
10377
10439
|
], Ge.prototype, "type", 2);
|
|
10378
|
-
Ge =
|
|
10440
|
+
Ge = Ms([
|
|
10379
10441
|
_(_c)
|
|
10380
10442
|
], Ge);
|
|
10381
10443
|
var xc = Object.getOwnPropertyDescriptor, Pc = (r, t, i, s) => {
|
|
@@ -10464,8 +10526,8 @@ var Lc = Object.defineProperty, Ec = Object.getOwnPropertyDescriptor, Y = (r, t,
|
|
|
10464
10526
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
10465
10527
|
return s && e && Lc(t, i, e), e;
|
|
10466
10528
|
};
|
|
10467
|
-
const
|
|
10468
|
-
let
|
|
10529
|
+
const Ir = "sonic-modal";
|
|
10530
|
+
let I = class extends G(w) {
|
|
10469
10531
|
constructor() {
|
|
10470
10532
|
super(...arguments), this.forceAction = !1, this.noCloseButton = !1, this.removeOnHide = !1, this.removeHashOnHide = !1, this.align = "left", this.maxWidth = "min(100vw, 40rem)", this.maxHeight = "90vh", this.width = "100%", this.height = "fit-content", this.effect = "slide", this.fullScreen = !1, this.visible = !1, this.closeOnLocationChange = !1, this.location = "", this._animationState = "hidden", this._animationConfig = {
|
|
10471
10533
|
quartOut: "cubic-bezier(0.165, 0.84, 0.44, 1)",
|
|
@@ -10477,16 +10539,16 @@ let M = class extends G(w) {
|
|
|
10477
10539
|
};
|
|
10478
10540
|
}
|
|
10479
10541
|
static create(r) {
|
|
10480
|
-
const t = document.createElement(
|
|
10542
|
+
const t = document.createElement(Ir);
|
|
10481
10543
|
return t.options = r, r.removeHashOnHide === !0 && t.setAttribute("removeHashOnHide", "true"), r.removeOnHide === !0 && t.setAttribute("removeOnHide", "true"), r.closeOnLocationChange === !0 && t.setAttribute("closeOnLocationChange", "true"), r.maxWidth && (t.maxWidth = r?.maxWidth), r.width && (t.width = r?.width), r.maxHeight && (t.maxHeight = r?.maxHeight), r.height && (t.height = r?.height), r.forceAction && (t.forceAction = !0), r.fullScreen && (t.fullScreen = r?.fullScreen), r.effect && (t.effect = r?.effect), r.noCloseButton && (t.noCloseButton = !0), r.closeButtonType && (t.closeButtonType = r?.closeButtonType), r.paddingX && (t.paddingX = r?.paddingX), r.paddingY && (t.paddingY = r?.paddingY), r.zIndex && (t.zIndex = r?.zIndex), yt.getPopContainer().appendChild(t), t.updateComplete.then(() => {
|
|
10482
10544
|
t.show();
|
|
10483
10545
|
}), t;
|
|
10484
10546
|
}
|
|
10485
10547
|
connectedCallback() {
|
|
10486
|
-
|
|
10548
|
+
I.modals.push(this), et.onChange(this), super.connectedCallback();
|
|
10487
10549
|
}
|
|
10488
10550
|
disconnectedCallback() {
|
|
10489
|
-
et.offChange(this),
|
|
10551
|
+
et.offChange(this), I.modals.splice(I.modals.indexOf(this), 1), this.removeEventListener("keydown", this.handleEscape), super.disconnectedCallback();
|
|
10490
10552
|
}
|
|
10491
10553
|
firstUpdated() {
|
|
10492
10554
|
this.addEventListener("keydown", this.handleEscape);
|
|
@@ -10546,17 +10608,17 @@ let M = class extends G(w) {
|
|
|
10546
10608
|
${!this.forceAction && !this.noCloseButton ? m`<sonic-modal-close
|
|
10547
10609
|
class="${this._animationState == "visible" ? "animate-in" : "animate-out"}"
|
|
10548
10610
|
type=${$(this.closeButtonType)}
|
|
10549
|
-
></sonic-modal-close>` :
|
|
10611
|
+
></sonic-modal-close>` : C}
|
|
10550
10612
|
${this.modalFragment("title")} ${this.modalFragment("subtitle")}
|
|
10551
10613
|
${this.modalFragment("content")} ${this.modalFragment("actions")}
|
|
10552
10614
|
<slot></slot>
|
|
10553
|
-
</div>` :
|
|
10615
|
+
</div>` : C}
|
|
10554
10616
|
</dialog>
|
|
10555
10617
|
`;
|
|
10556
10618
|
}
|
|
10557
10619
|
modalFragment(r) {
|
|
10558
10620
|
const t = this.options?.[r];
|
|
10559
|
-
if (!t) return
|
|
10621
|
+
if (!t) return C;
|
|
10560
10622
|
let i;
|
|
10561
10623
|
switch (t instanceof Object ? i = t : i = z(t), r) {
|
|
10562
10624
|
case "title":
|
|
@@ -10568,7 +10630,7 @@ let M = class extends G(w) {
|
|
|
10568
10630
|
case "actions":
|
|
10569
10631
|
return m`<sonic-modal-actions>${i}</sonic-modal-actions>`;
|
|
10570
10632
|
default:
|
|
10571
|
-
return
|
|
10633
|
+
return C;
|
|
10572
10634
|
}
|
|
10573
10635
|
}
|
|
10574
10636
|
// Show the modal
|
|
@@ -10587,7 +10649,7 @@ let M = class extends G(w) {
|
|
|
10587
10649
|
}
|
|
10588
10650
|
// Hide and remove all modals
|
|
10589
10651
|
static disposeAll() {
|
|
10590
|
-
|
|
10652
|
+
I.modals.forEach((r) => {
|
|
10591
10653
|
r.dispose();
|
|
10592
10654
|
});
|
|
10593
10655
|
}
|
|
@@ -10595,7 +10657,7 @@ let M = class extends G(w) {
|
|
|
10595
10657
|
handleEscape(r) {
|
|
10596
10658
|
if (r.key === "Escape") {
|
|
10597
10659
|
r.preventDefault();
|
|
10598
|
-
const t =
|
|
10660
|
+
const t = I.modals.filter(
|
|
10599
10661
|
(i) => i._animationState !== "hidden" && !i.forceAction
|
|
10600
10662
|
);
|
|
10601
10663
|
t.length > 0 && t[t.length - 1].hide();
|
|
@@ -10642,7 +10704,7 @@ let M = class extends G(w) {
|
|
|
10642
10704
|
});
|
|
10643
10705
|
}
|
|
10644
10706
|
};
|
|
10645
|
-
|
|
10707
|
+
I.styles = [
|
|
10646
10708
|
ss,
|
|
10647
10709
|
P`
|
|
10648
10710
|
:host {
|
|
@@ -10796,86 +10858,86 @@ M.styles = [
|
|
|
10796
10858
|
}
|
|
10797
10859
|
`
|
|
10798
10860
|
];
|
|
10799
|
-
|
|
10861
|
+
I.modals = [];
|
|
10800
10862
|
Y([
|
|
10801
10863
|
a({ type: Boolean })
|
|
10802
|
-
],
|
|
10864
|
+
], I.prototype, "forceAction", 2);
|
|
10803
10865
|
Y([
|
|
10804
10866
|
a({ type: Boolean })
|
|
10805
|
-
],
|
|
10867
|
+
], I.prototype, "noCloseButton", 2);
|
|
10806
10868
|
Y([
|
|
10807
10869
|
a({ type: Boolean })
|
|
10808
|
-
],
|
|
10870
|
+
], I.prototype, "removeOnHide", 2);
|
|
10809
10871
|
Y([
|
|
10810
10872
|
a({ type: Boolean })
|
|
10811
|
-
],
|
|
10873
|
+
], I.prototype, "removeHashOnHide", 2);
|
|
10812
10874
|
Y([
|
|
10813
10875
|
a({ type: String, reflect: !0 })
|
|
10814
|
-
],
|
|
10876
|
+
], I.prototype, "align", 2);
|
|
10815
10877
|
Y([
|
|
10816
10878
|
a({ type: String })
|
|
10817
|
-
],
|
|
10879
|
+
], I.prototype, "paddingX", 2);
|
|
10818
10880
|
Y([
|
|
10819
10881
|
a({ type: String })
|
|
10820
|
-
],
|
|
10882
|
+
], I.prototype, "paddingY", 2);
|
|
10821
10883
|
Y([
|
|
10822
10884
|
a({ type: String })
|
|
10823
|
-
],
|
|
10885
|
+
], I.prototype, "maxWidth", 2);
|
|
10824
10886
|
Y([
|
|
10825
10887
|
a({ type: String })
|
|
10826
|
-
],
|
|
10888
|
+
], I.prototype, "maxHeight", 2);
|
|
10827
10889
|
Y([
|
|
10828
10890
|
a({ type: String })
|
|
10829
|
-
],
|
|
10891
|
+
], I.prototype, "zIndex", 2);
|
|
10830
10892
|
Y([
|
|
10831
10893
|
a({ type: String })
|
|
10832
|
-
],
|
|
10894
|
+
], I.prototype, "width", 2);
|
|
10833
10895
|
Y([
|
|
10834
10896
|
a({ type: String })
|
|
10835
|
-
],
|
|
10897
|
+
], I.prototype, "height", 2);
|
|
10836
10898
|
Y([
|
|
10837
10899
|
a({ type: String })
|
|
10838
|
-
],
|
|
10900
|
+
], I.prototype, "effect", 2);
|
|
10839
10901
|
Y([
|
|
10840
10902
|
a({ type: Object })
|
|
10841
|
-
],
|
|
10903
|
+
], I.prototype, "options", 2);
|
|
10842
10904
|
Y([
|
|
10843
10905
|
a({ type: Boolean, reflect: !0 })
|
|
10844
|
-
],
|
|
10906
|
+
], I.prototype, "fullScreen", 2);
|
|
10845
10907
|
Y([
|
|
10846
10908
|
a({ type: Boolean, reflect: !0 })
|
|
10847
|
-
],
|
|
10909
|
+
], I.prototype, "visible", 2);
|
|
10848
10910
|
Y([
|
|
10849
10911
|
a({ type: String })
|
|
10850
|
-
],
|
|
10912
|
+
], I.prototype, "closeButtonType", 2);
|
|
10851
10913
|
Y([
|
|
10852
10914
|
ge("#modal")
|
|
10853
|
-
],
|
|
10915
|
+
], I.prototype, "_modalElement", 2);
|
|
10854
10916
|
Y([
|
|
10855
10917
|
a({ type: Boolean })
|
|
10856
|
-
],
|
|
10918
|
+
], I.prototype, "closeOnLocationChange", 2);
|
|
10857
10919
|
Y([
|
|
10858
|
-
|
|
10859
|
-
],
|
|
10920
|
+
D()
|
|
10921
|
+
], I.prototype, "location", 2);
|
|
10860
10922
|
Y([
|
|
10861
|
-
|
|
10862
|
-
],
|
|
10863
|
-
|
|
10864
|
-
_(
|
|
10865
|
-
],
|
|
10866
|
-
typeof window < "u" && (window.SonicModal =
|
|
10923
|
+
D()
|
|
10924
|
+
], I.prototype, "_animationState", 2);
|
|
10925
|
+
I = Y([
|
|
10926
|
+
_(Ir)
|
|
10927
|
+
], I);
|
|
10928
|
+
typeof window < "u" && (window.SonicModal = I);
|
|
10867
10929
|
var Nc = Object.defineProperty, Tc = Object.getOwnPropertyDescriptor, Rt = (r, t, i, s) => {
|
|
10868
10930
|
for (var e = s > 1 ? void 0 : s ? Tc(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
10869
10931
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
10870
10932
|
return s && e && Nc(t, i, e), e;
|
|
10871
10933
|
};
|
|
10872
|
-
const
|
|
10934
|
+
const Ic = {
|
|
10873
10935
|
warning: "warning-circled-outline",
|
|
10874
10936
|
success: "check-circled-outline",
|
|
10875
10937
|
error: "warning-circled-outline",
|
|
10876
10938
|
info: "info-empty",
|
|
10877
10939
|
default: "info-empty"
|
|
10878
|
-
},
|
|
10940
|
+
}, Mc = "sonic-alert";
|
|
10879
10941
|
let Ct = class extends w {
|
|
10880
10942
|
constructor() {
|
|
10881
10943
|
super(...arguments), this.label = "", this.noIcon = !1, this.text = "", this.id = (/* @__PURE__ */ new Date()).getTime().toString(), this.dismissible = !1, this.background = !1, this.status = "default", this.dismissForever = !1;
|
|
@@ -10890,12 +10952,12 @@ let Ct = class extends w {
|
|
|
10890
10952
|
render() {
|
|
10891
10953
|
return m`
|
|
10892
10954
|
<slot name="icon" class="${this.noIcon ? "hidden" : ""}"
|
|
10893
|
-
>${this.noIcon ?
|
|
10894
|
-
${this.status && m`<sonic-icon name=${
|
|
10955
|
+
>${this.noIcon ? C : m`<div>
|
|
10956
|
+
${this.status && m`<sonic-icon name=${Ic[this.status]}></sonic-icon>`}
|
|
10895
10957
|
</div>`}</slot
|
|
10896
10958
|
>
|
|
10897
10959
|
<div class="content">
|
|
10898
|
-
${this.label ? m`<span class="label">${z(this.label)}</span>` :
|
|
10960
|
+
${this.label ? m`<span class="label">${z(this.label)}</span>` : C}
|
|
10899
10961
|
<div>${this.text}<slot></slot></div>
|
|
10900
10962
|
</div>
|
|
10901
10963
|
${this.dismissible ? m`<sonic-button
|
|
@@ -10906,7 +10968,7 @@ let Ct = class extends w {
|
|
|
10906
10968
|
icon
|
|
10907
10969
|
>
|
|
10908
10970
|
<sonic-icon name="cancel"></sonic-icon>
|
|
10909
|
-
</sonic-button>` :
|
|
10971
|
+
</sonic-button>` : C}
|
|
10910
10972
|
`;
|
|
10911
10973
|
}
|
|
10912
10974
|
close() {
|
|
@@ -11038,7 +11100,7 @@ Rt([
|
|
|
11038
11100
|
a({ type: Boolean, reflect: !0 })
|
|
11039
11101
|
], Ct.prototype, "dismissForever", 2);
|
|
11040
11102
|
Ct = Rt([
|
|
11041
|
-
_(
|
|
11103
|
+
_(Mc)
|
|
11042
11104
|
], Ct);
|
|
11043
11105
|
var jc = Object.defineProperty, Fc = Object.getOwnPropertyDescriptor, ns = (r, t, i, s) => {
|
|
11044
11106
|
for (var e = s > 1 ? void 0 : s ? Fc(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
@@ -11058,8 +11120,8 @@ let ue = class extends G(w) {
|
|
|
11058
11120
|
size=${this.size}
|
|
11059
11121
|
?noIcon=${this.noIcon}
|
|
11060
11122
|
?background=${this.background}
|
|
11061
|
-
></sonic-alert>` :
|
|
11062
|
-
</div>` :
|
|
11123
|
+
></sonic-alert>` : C)}
|
|
11124
|
+
</div>` : C;
|
|
11063
11125
|
}
|
|
11064
11126
|
};
|
|
11065
11127
|
ue.styles = [
|
|
@@ -11087,7 +11149,7 @@ ns([
|
|
|
11087
11149
|
ue = ns([
|
|
11088
11150
|
_(zc)
|
|
11089
11151
|
], ue);
|
|
11090
|
-
var Rc = Object.defineProperty, Uc = Object.getOwnPropertyDescriptor,
|
|
11152
|
+
var Rc = Object.defineProperty, Uc = Object.getOwnPropertyDescriptor, Mr = (r, t, i, s) => {
|
|
11091
11153
|
for (var e = s > 1 ? void 0 : s ? Uc(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11092
11154
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
11093
11155
|
return s && e && Rc(t, i, e), e;
|
|
@@ -11106,13 +11168,13 @@ let ii = class extends G(w) {
|
|
|
11106
11168
|
});
|
|
11107
11169
|
}
|
|
11108
11170
|
render() {
|
|
11109
|
-
return
|
|
11171
|
+
return C;
|
|
11110
11172
|
}
|
|
11111
11173
|
};
|
|
11112
|
-
|
|
11174
|
+
Mr([
|
|
11113
11175
|
a({ type: Array })
|
|
11114
11176
|
], ii.prototype, "messages", 1);
|
|
11115
|
-
ii =
|
|
11177
|
+
ii = Mr([
|
|
11116
11178
|
_(Vc)
|
|
11117
11179
|
], ii);
|
|
11118
11180
|
var Bc = Object.defineProperty, qc = Object.getOwnPropertyDescriptor, as = (r, t, i, s) => {
|
|
@@ -11490,7 +11552,7 @@ let Qe = class extends w {
|
|
|
11490
11552
|
${z(this.label)}
|
|
11491
11553
|
${this.description ? m`<sonic-card-header-description
|
|
11492
11554
|
>${z(this.description)}</sonic-card-header-description
|
|
11493
|
-
>` :
|
|
11555
|
+
>` : C}
|
|
11494
11556
|
<slot></slot>
|
|
11495
11557
|
</div>
|
|
11496
11558
|
<slot name="suffix"></slot>
|
|
@@ -11864,7 +11926,7 @@ var bh = Object.defineProperty, vh = Object.getOwnPropertyDescriptor, re = (r, t
|
|
|
11864
11926
|
return s && e && bh(t, i, e), e;
|
|
11865
11927
|
};
|
|
11866
11928
|
const yh = "sonic-td";
|
|
11867
|
-
let
|
|
11929
|
+
let It = class extends w {
|
|
11868
11930
|
render() {
|
|
11869
11931
|
const r = {
|
|
11870
11932
|
textAlign: this.align,
|
|
@@ -11878,7 +11940,7 @@ let Tt = class extends w {
|
|
|
11878
11940
|
</td>`;
|
|
11879
11941
|
}
|
|
11880
11942
|
};
|
|
11881
|
-
|
|
11943
|
+
It.styles = [
|
|
11882
11944
|
Ei,
|
|
11883
11945
|
P`
|
|
11884
11946
|
:host {
|
|
@@ -11897,28 +11959,28 @@ Tt.styles = [
|
|
|
11897
11959
|
];
|
|
11898
11960
|
re([
|
|
11899
11961
|
a({ type: Number })
|
|
11900
|
-
],
|
|
11962
|
+
], It.prototype, "colSpan", 2);
|
|
11901
11963
|
re([
|
|
11902
11964
|
a({ type: Number })
|
|
11903
|
-
],
|
|
11965
|
+
], It.prototype, "rowSpan", 2);
|
|
11904
11966
|
re([
|
|
11905
11967
|
a({ type: String })
|
|
11906
|
-
],
|
|
11968
|
+
], It.prototype, "align", 2);
|
|
11907
11969
|
re([
|
|
11908
11970
|
a({ type: String })
|
|
11909
|
-
],
|
|
11971
|
+
], It.prototype, "vAlign", 2);
|
|
11910
11972
|
re([
|
|
11911
11973
|
a({ type: String })
|
|
11912
|
-
],
|
|
11974
|
+
], It.prototype, "minWidth", 2);
|
|
11913
11975
|
re([
|
|
11914
11976
|
a({ type: String })
|
|
11915
|
-
],
|
|
11977
|
+
], It.prototype, "maxWidth", 2);
|
|
11916
11978
|
re([
|
|
11917
11979
|
a({ type: String })
|
|
11918
|
-
],
|
|
11919
|
-
|
|
11980
|
+
], It.prototype, "width", 2);
|
|
11981
|
+
It = re([
|
|
11920
11982
|
_(yh)
|
|
11921
|
-
],
|
|
11983
|
+
], It);
|
|
11922
11984
|
var wh = Object.getOwnPropertyDescriptor, _h = (r, t, i, s) => {
|
|
11923
11985
|
for (var e = s > 1 ? void 0 : s ? wh(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11924
11986
|
(n = r[o]) && (e = n(e) || e);
|
|
@@ -12023,7 +12085,7 @@ hi.styles = [
|
|
|
12023
12085
|
hi = Dh([
|
|
12024
12086
|
_(Lh)
|
|
12025
12087
|
], hi);
|
|
12026
|
-
var Eh = Object.defineProperty, Nh = Object.getOwnPropertyDescriptor,
|
|
12088
|
+
var Eh = Object.defineProperty, Nh = Object.getOwnPropertyDescriptor, Ie = (r, t, i, s) => {
|
|
12027
12089
|
for (var e = s > 1 ? void 0 : s ? Nh(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
12028
12090
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
12029
12091
|
return s && e && Eh(t, i, e), e;
|
|
@@ -12096,30 +12158,30 @@ te.styles = [
|
|
|
12096
12158
|
}
|
|
12097
12159
|
`
|
|
12098
12160
|
];
|
|
12099
|
-
|
|
12161
|
+
Ie([
|
|
12100
12162
|
a({ type: String, reflect: !0 })
|
|
12101
12163
|
], te.prototype, "size", 2);
|
|
12102
|
-
|
|
12164
|
+
Ie([
|
|
12103
12165
|
a({ type: Boolean, reflect: !0 })
|
|
12104
12166
|
], te.prototype, "bordered", 2);
|
|
12105
|
-
|
|
12167
|
+
Ie([
|
|
12106
12168
|
a({ type: Boolean, reflect: !0 })
|
|
12107
12169
|
], te.prototype, "rounded", 2);
|
|
12108
|
-
|
|
12170
|
+
Ie([
|
|
12109
12171
|
a({ type: Boolean, reflect: !0 })
|
|
12110
12172
|
], te.prototype, "noCustomScroll", 2);
|
|
12111
|
-
|
|
12173
|
+
Ie([
|
|
12112
12174
|
a({ type: String })
|
|
12113
12175
|
], te.prototype, "maxHeight", 2);
|
|
12114
|
-
te =
|
|
12176
|
+
te = Ie([
|
|
12115
12177
|
_(Th)
|
|
12116
12178
|
], te);
|
|
12117
|
-
const Fr = "AES-CBC",
|
|
12118
|
-
async function
|
|
12179
|
+
const Fr = "AES-CBC", Ih = 256;
|
|
12180
|
+
async function Mh() {
|
|
12119
12181
|
return crypto.subtle.generateKey(
|
|
12120
12182
|
{
|
|
12121
12183
|
name: Fr,
|
|
12122
|
-
length:
|
|
12184
|
+
length: Ih
|
|
12123
12185
|
},
|
|
12124
12186
|
!0,
|
|
12125
12187
|
// extractable
|
|
@@ -12405,12 +12467,12 @@ let Ae = class extends se(w) {
|
|
|
12405
12467
|
}
|
|
12406
12468
|
async generateEncryptedKey() {
|
|
12407
12469
|
if (this.key) return;
|
|
12408
|
-
const r = await
|
|
12470
|
+
const r = await Mh(), t = new TextEncoder().encode(Bh), i = await Fh(Vh, r, t);
|
|
12409
12471
|
this.key = i;
|
|
12410
12472
|
}
|
|
12411
12473
|
render() {
|
|
12412
12474
|
if (!this.key)
|
|
12413
|
-
return
|
|
12475
|
+
return C;
|
|
12414
12476
|
const t = Zt.getLanguage().match("^fr\\b") ? {
|
|
12415
12477
|
aria: "Visitez altcha.org",
|
|
12416
12478
|
error: "La vérification a échoué, réessayez plus tard.",
|
|
@@ -12564,7 +12626,7 @@ window["concorde-directives-data-provider"] = {
|
|
|
12564
12626
|
get: So,
|
|
12565
12627
|
set: ko
|
|
12566
12628
|
};
|
|
12567
|
-
const Zh = O, Xh =
|
|
12629
|
+
const Zh = O, Xh = I;
|
|
12568
12630
|
window["concorde-components"] = window["concorde-components"] || {};
|
|
12569
12631
|
window["concorde-components"] = {
|
|
12570
12632
|
SonicToast: Zh,
|