@supersoniks/concorde 3.2.5 → 3.2.8
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 +131 -124
- package/concorde-core.es.js +808 -716
- package/dist/concorde-core.bundle.js +131 -124
- package/dist/concorde-core.es.js +808 -716
- 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/functional/queue/queue.demo.ts +0 -0
- package/src/core/components/functional/sdui/sdui.ts +47 -22
- package/src/core/components/ui/form/checkbox/checkbox.ts +6 -0
- package/src/core/components/ui/form/input-autocomplete/input-autocomplete.ts +9 -1
- 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/components/ui/tooltip/tooltip.ts +67 -2
- package/src/core/decorators/Subscriber.ts +0 -0
- package/src/core/mixins/Fetcher.ts +40 -4
- package/src/core/utils/HTML.ts +2 -0
- package/src/core/utils/PublisherProxy.ts +0 -0
- package/src/core/utils/api.ts +7 -0
- package/src/decorators.ts +0 -0
- package/src/docs/navigation/navigation.ts +1 -1
- package/src/docs/search/docs-search.json +135 -0
- package/src/docs.ts +0 -0
- package/src/tsconfig-model.json +0 -0
- package/src/tsconfig.json +0 -0
- package/src/tsconfig.tsbuildinfo +0 -0
- package/templates-test.html +0 -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,14 +48,14 @@ 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
|
-
) || void 0, u = t.getAttribute("cache"), d = t.hasAttribute("blockUntilDone");
|
|
58
|
+
) || void 0, u = t.getAttribute("cache"), d = t.hasAttribute("blockUntilDone"), g = t.hasAttribute("keepAlive");
|
|
59
59
|
return {
|
|
60
60
|
serviceURL: e,
|
|
61
61
|
token: i,
|
|
@@ -66,7 +66,8 @@ let J = class Lt {
|
|
|
66
66
|
addHTTPResponse: s,
|
|
67
67
|
credentials: h,
|
|
68
68
|
cache: u,
|
|
69
|
-
blockUntilDone: d
|
|
69
|
+
blockUntilDone: d,
|
|
70
|
+
keepAlive: g
|
|
70
71
|
};
|
|
71
72
|
}
|
|
72
73
|
/**
|
|
@@ -85,7 +86,7 @@ let J = class Lt {
|
|
|
85
86
|
* @returns valeur de l'attribut ou null si l'attribut n'est pas trouvé
|
|
86
87
|
*/
|
|
87
88
|
static getClosestForm(t) {
|
|
88
|
-
return
|
|
89
|
+
return Et.getClosestElement(t, "form");
|
|
89
90
|
}
|
|
90
91
|
/**
|
|
91
92
|
* Lance le chargement d'un js et retourne une promise qui resoud à true lorsque le chargement à réussi et à false, sinon.
|
|
@@ -389,11 +390,11 @@ let pi = (At = class {
|
|
|
389
390
|
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
391
|
}
|
|
391
392
|
}, At.instances = /* @__PURE__ */ new Map(), At.instancesCounter = 0, At);
|
|
392
|
-
var
|
|
393
|
-
let T = (
|
|
393
|
+
var L;
|
|
394
|
+
let T = (L = class {
|
|
394
395
|
constructor() {
|
|
395
|
-
if (this.enabledLocaStorageProxies = [], this.publishers = /* @__PURE__ */ new Map(), this.localStorageData = {}, this.isLocalStrorageReady = null, this.initialisedData = [],
|
|
396
|
-
|
|
396
|
+
if (this.enabledLocaStorageProxies = [], this.publishers = /* @__PURE__ */ new Map(), this.localStorageData = {}, this.isLocalStrorageReady = null, this.initialisedData = [], L.instance != null) throw "Singleton / use getInstance";
|
|
397
|
+
L.instance = this, this.isLocalStrorageReady = this.cleanStorageData();
|
|
397
398
|
}
|
|
398
399
|
invalidateAll() {
|
|
399
400
|
this.publishers.forEach((t) => {
|
|
@@ -432,39 +433,39 @@ let T = (D = class {
|
|
|
432
433
|
*/
|
|
433
434
|
static getInstance(t) {
|
|
434
435
|
if (t) {
|
|
435
|
-
const i =
|
|
436
|
+
const i = L.instances.get(t);
|
|
436
437
|
return i || (console.warn(
|
|
437
438
|
"No PublisherManager instance registered with id:",
|
|
438
439
|
t,
|
|
439
440
|
"creating new one"
|
|
440
|
-
), new
|
|
441
|
+
), new L());
|
|
441
442
|
}
|
|
442
|
-
return
|
|
443
|
+
return L.instance == null ? new L() : L.instance;
|
|
443
444
|
}
|
|
444
445
|
static registerInstance(t, i) {
|
|
445
|
-
|
|
446
|
+
L.instances.has(t) && console.warn(
|
|
446
447
|
"PublisherManager instance already registered with id: ",
|
|
447
448
|
t
|
|
448
|
-
),
|
|
449
|
+
), L.instances.set(t, i);
|
|
449
450
|
}
|
|
450
451
|
/**
|
|
451
452
|
* shortcut static pour obtenir un publisher vias sont id/adresse sans taper getInstance.
|
|
452
453
|
* Si le publisher n'existe pas, il est créé.
|
|
453
454
|
*/
|
|
454
455
|
static get(t, i) {
|
|
455
|
-
return
|
|
456
|
+
return L.getInstance().get(t, i);
|
|
456
457
|
}
|
|
457
458
|
static collectModifiedPublisher() {
|
|
458
|
-
|
|
459
|
+
L.modifiedCollectore.unshift(/* @__PURE__ */ new Set());
|
|
459
460
|
}
|
|
460
461
|
static getModifiedPublishers() {
|
|
461
|
-
return
|
|
462
|
+
return L.modifiedCollectore.shift();
|
|
462
463
|
}
|
|
463
464
|
/**
|
|
464
465
|
* 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
466
|
*/
|
|
466
467
|
static delete(t) {
|
|
467
|
-
return t ?
|
|
468
|
+
return t ? L.getInstance().delete(t) : !1;
|
|
468
469
|
}
|
|
469
470
|
/**
|
|
470
471
|
* Obtenir un publisher vias sont id/adresse
|
|
@@ -506,10 +507,10 @@ let T = (D = class {
|
|
|
506
507
|
return this.publishers.has(t) ? (this.publishers.delete(t), !0) : !1;
|
|
507
508
|
}
|
|
508
509
|
async saveToLocalStorage(t = 0) {
|
|
509
|
-
if (!(t !==
|
|
510
|
+
if (!(t !== L.saveId && t % 10 != 0))
|
|
510
511
|
try {
|
|
511
|
-
if (!
|
|
512
|
-
|
|
512
|
+
if (!L.changed || L.saving) return;
|
|
513
|
+
L.saving = !0, L.changed = !1;
|
|
513
514
|
const i = Array.from(this.publishers.keys());
|
|
514
515
|
let s = !1;
|
|
515
516
|
for (const e of i) {
|
|
@@ -529,13 +530,13 @@ let T = (D = class {
|
|
|
529
530
|
);
|
|
530
531
|
localStorage.setItem(Fs, e);
|
|
531
532
|
}
|
|
532
|
-
if (
|
|
533
|
-
|
|
534
|
-
const e =
|
|
533
|
+
if (L.saving = !1, L.changed) {
|
|
534
|
+
L.saveId++;
|
|
535
|
+
const e = L.saveId;
|
|
535
536
|
setTimeout(() => this.saveToLocalStorage(e), 1e3);
|
|
536
537
|
}
|
|
537
538
|
} catch {
|
|
538
|
-
|
|
539
|
+
L.saving = !1;
|
|
539
540
|
}
|
|
540
541
|
}
|
|
541
542
|
async compress(t, i) {
|
|
@@ -556,7 +557,7 @@ let T = (D = class {
|
|
|
556
557
|
const h = await new Response(l.readable).arrayBuffer();
|
|
557
558
|
return new TextDecoder().decode(h);
|
|
558
559
|
}
|
|
559
|
-
},
|
|
560
|
+
}, L.buildDate = "Fri Dec 12 2025 10:15:38 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
561
|
if (typeof window < "u") {
|
|
561
562
|
const r = window;
|
|
562
563
|
r[ms + "PublisherManager"] = r[ms + "PublisherManager"] || T;
|
|
@@ -829,7 +830,7 @@ let As = (N = class {
|
|
|
829
830
|
publisher: d,
|
|
830
831
|
onAssign: () => {
|
|
831
832
|
const b = l.variables.map((E) => N.getSubPublisher(s, E)?.get());
|
|
832
|
-
let x = l.expression,
|
|
833
|
+
let x = l.expression, S = !1;
|
|
833
834
|
if (b.length == 1 && l.variables[0].join(".") == x.substring(1)) {
|
|
834
835
|
let E = b[0];
|
|
835
836
|
E === null && (E = ""), g[c] = E;
|
|
@@ -838,7 +839,7 @@ let As = (N = class {
|
|
|
838
839
|
for (let E = 0; E < b.length; E++) {
|
|
839
840
|
let p = b[E];
|
|
840
841
|
const f = l.variables[E];
|
|
841
|
-
p === null && (
|
|
842
|
+
p === null && (S = !0, p = void 0), x = x.replace("$" + f.join("."), p);
|
|
842
843
|
}
|
|
843
844
|
if (x.indexOf("|") != -1) {
|
|
844
845
|
const E = x.indexOf("|");
|
|
@@ -846,10 +847,10 @@ let As = (N = class {
|
|
|
846
847
|
x = fs.js(x.substring(1));
|
|
847
848
|
else {
|
|
848
849
|
const p = x.substring(0, E), f = x.substring(E + 1), y = fs[p];
|
|
849
|
-
x =
|
|
850
|
+
x = S ? "" : y ? y(f) : x;
|
|
850
851
|
}
|
|
851
852
|
} else
|
|
852
|
-
x =
|
|
853
|
+
x = S ? "" : x;
|
|
853
854
|
g[c] = x;
|
|
854
855
|
}
|
|
855
856
|
};
|
|
@@ -941,7 +942,7 @@ let tt = class Bt {
|
|
|
941
942
|
return Bt.getURLSearchArray(t, "").join("&");
|
|
942
943
|
}
|
|
943
944
|
};
|
|
944
|
-
const
|
|
945
|
+
const ut = tt.traverseDotNotation;
|
|
945
946
|
/**
|
|
946
947
|
* @license
|
|
947
948
|
* Copyright 2017 Google LLC
|
|
@@ -957,7 +958,7 @@ const _ = (r) => (t, i) => {
|
|
|
957
958
|
* Copyright 2019 Google LLC
|
|
958
959
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
959
960
|
*/
|
|
960
|
-
const us = globalThis, ui = us.ShadowRoot && (us.ShadyCSS === void 0 || us.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, fi = Symbol(),
|
|
961
|
+
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
962
|
let pr = class {
|
|
962
963
|
constructor(t, i, s) {
|
|
963
964
|
if (this._$cssResult$ = !0, s !== fi) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -968,7 +969,7 @@ let pr = class {
|
|
|
968
969
|
const i = this.t;
|
|
969
970
|
if (ui && t === void 0) {
|
|
970
971
|
const s = i !== void 0 && i.length === 1;
|
|
971
|
-
s && (t =
|
|
972
|
+
s && (t = Ii.get(i)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && Ii.set(i, t));
|
|
972
973
|
}
|
|
973
974
|
return t;
|
|
974
975
|
}
|
|
@@ -989,7 +990,7 @@ const Br = (r) => new pr(typeof r == "string" ? r : r + "", void 0, fi), P = (r,
|
|
|
989
990
|
const s = document.createElement("style"), e = us.litNonce;
|
|
990
991
|
e !== void 0 && s.setAttribute("nonce", e), s.textContent = i.cssText, r.appendChild(s);
|
|
991
992
|
}
|
|
992
|
-
},
|
|
993
|
+
}, Mi = ui ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
|
993
994
|
let i = "";
|
|
994
995
|
for (const s of t.cssRules) i += s.cssText;
|
|
995
996
|
return Br(i);
|
|
@@ -999,7 +1000,7 @@ const Br = (r) => new pr(typeof r == "string" ? r : r + "", void 0, fi), P = (r,
|
|
|
999
1000
|
* Copyright 2017 Google LLC
|
|
1000
1001
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1001
1002
|
*/
|
|
1002
|
-
const { is: Hr, defineProperty:
|
|
1003
|
+
const { is: Hr, defineProperty: Kr, getOwnPropertyDescriptor: Wr, getOwnPropertyNames: Yr, getOwnPropertySymbols: Zr, getPrototypeOf: Xr } = Object, ks = globalThis, ji = ks.trustedTypes, Gr = ji ? ji.emptyScript : "", Qr = ks.reactiveElementPolyfillSupport, Be = (r, t) => r, gs = { toAttribute(r, t) {
|
|
1003
1004
|
switch (t) {
|
|
1004
1005
|
case Boolean:
|
|
1005
1006
|
r = r ? Gr : null;
|
|
@@ -1039,11 +1040,11 @@ let _e = class extends HTMLElement {
|
|
|
1039
1040
|
static createProperty(t, i = Fi) {
|
|
1040
1041
|
if (i.state && (i.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((i = Object.create(i)).wrapped = !0), this.elementProperties.set(t, i), !i.noAccessor) {
|
|
1041
1042
|
const s = Symbol(), e = this.getPropertyDescriptor(t, s, i);
|
|
1042
|
-
e !== void 0 &&
|
|
1043
|
+
e !== void 0 && Kr(this.prototype, t, e);
|
|
1043
1044
|
}
|
|
1044
1045
|
}
|
|
1045
1046
|
static getPropertyDescriptor(t, i, s) {
|
|
1046
|
-
const { get: e, set: o } =
|
|
1047
|
+
const { get: e, set: o } = Wr(this.prototype, t) ?? { get() {
|
|
1047
1048
|
return this[i];
|
|
1048
1049
|
}, set(n) {
|
|
1049
1050
|
this[i] = n;
|
|
@@ -1083,8 +1084,8 @@ let _e = class extends HTMLElement {
|
|
|
1083
1084
|
const i = [];
|
|
1084
1085
|
if (Array.isArray(t)) {
|
|
1085
1086
|
const s = new Set(t.flat(1 / 0).reverse());
|
|
1086
|
-
for (const e of s) i.unshift(
|
|
1087
|
-
} else t !== void 0 && i.push(
|
|
1087
|
+
for (const e of s) i.unshift(Mi(e));
|
|
1088
|
+
} else t !== void 0 && i.push(Mi(t));
|
|
1088
1089
|
return i;
|
|
1089
1090
|
}
|
|
1090
1091
|
static _$Eu(t, i) {
|
|
@@ -1248,7 +1249,7 @@ function a(r) {
|
|
|
1248
1249
|
* Copyright 2017 Google LLC
|
|
1249
1250
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1250
1251
|
*/
|
|
1251
|
-
function
|
|
1252
|
+
function D(r) {
|
|
1252
1253
|
return a({ ...r, state: !0, attribute: !1 });
|
|
1253
1254
|
}
|
|
1254
1255
|
/**
|
|
@@ -1262,7 +1263,7 @@ const gi = (r, t, i) => (i.configurable = !0, i.enumerable = !0, Reflect.decorat
|
|
|
1262
1263
|
* Copyright 2017 Google LLC
|
|
1263
1264
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1264
1265
|
*/
|
|
1265
|
-
function
|
|
1266
|
+
function ee(r, t) {
|
|
1266
1267
|
return (i, s, e) => {
|
|
1267
1268
|
const o = (n) => n.renderRoot?.querySelector(r) ?? null;
|
|
1268
1269
|
return gi(i, s, { get() {
|
|
@@ -1302,9 +1303,9 @@ function dt(r) {
|
|
|
1302
1303
|
* Copyright 2017 Google LLC
|
|
1303
1304
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
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}>`,
|
|
1306
|
-
\f\r]`, je = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ri = /-->/g, Ui = />/g,
|
|
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"),
|
|
1306
|
+
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}>`, de = document, Ke = () => de.createComment(""), We = (r) => r === null || typeof r != "object" && typeof r != "function", vi = Array.isArray, so = (r) => vi(r) || typeof r?.[Symbol.iterator] == "function", zs = `[
|
|
1307
|
+
\f\r]`, je = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ri = /-->/g, Ui = />/g, ne = RegExp(`>|${zs}(?:([^\\s"'>=/]+)(${zs}*=${zs}*(?:[^
|
|
1308
|
+
\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(), he = de.createTreeWalker(de, 129);
|
|
1308
1309
|
function gr(r, t) {
|
|
1309
1310
|
if (!vi(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
1310
1311
|
return zi !== void 0 ? zi.createHTML(t) : t;
|
|
@@ -1315,8 +1316,8 @@ const ro = (r, t) => {
|
|
|
1315
1316
|
for (let l = 0; l < i; l++) {
|
|
1316
1317
|
const c = r[l];
|
|
1317
1318
|
let h, u, d = -1, g = 0;
|
|
1318
|
-
for (; g < c.length && (n.lastIndex = g, u = n.exec(c), u !== null); ) g = n.lastIndex, n === je ? u[1] === "!--" ? n = Ri : u[1] !== void 0 ? n = Ui : u[2] !== void 0 ? (mr.test(u[2]) && (e = RegExp("</" + u[2], "g")), n =
|
|
1319
|
-
const v = n ===
|
|
1319
|
+
for (; g < c.length && (n.lastIndex = g, u = n.exec(c), u !== null); ) g = n.lastIndex, n === je ? u[1] === "!--" ? n = Ri : u[1] !== void 0 ? n = Ui : u[2] !== void 0 ? (mr.test(u[2]) && (e = RegExp("</" + u[2], "g")), n = ne) : u[3] !== void 0 && (n = ne) : n === ne ? u[0] === ">" ? (n = e ?? je, d = -1) : u[1] === void 0 ? d = -2 : (d = n.lastIndex - u[2].length, h = u[1], n = u[3] === void 0 ? ne : u[3] === '"' ? Bi : Vi) : n === Bi || n === Vi ? n = ne : n === Ri || n === Ui ? n = je : (n = ne, e = void 0);
|
|
1320
|
+
const v = n === ne && r[l + 1].startsWith("/>") ? " " : "";
|
|
1320
1321
|
o += n === je ? c + eo : d >= 0 ? (s.push(h), c.slice(0, d) + ur + c.slice(d) + Yt + v) : c + Yt + (d === -2 ? l : v);
|
|
1321
1322
|
}
|
|
1322
1323
|
return [gr(r, o + (r[i] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
@@ -1327,11 +1328,11 @@ let Hs = class br {
|
|
|
1327
1328
|
this.parts = [];
|
|
1328
1329
|
let o = 0, n = 0;
|
|
1329
1330
|
const l = t.length - 1, c = this.parts, [h, u] = ro(t, i);
|
|
1330
|
-
if (this.el = br.createElement(h, s),
|
|
1331
|
+
if (this.el = br.createElement(h, s), he.currentNode = this.el.content, i === 2 || i === 3) {
|
|
1331
1332
|
const d = this.el.content.firstChild;
|
|
1332
1333
|
d.replaceWith(...d.childNodes);
|
|
1333
1334
|
}
|
|
1334
|
-
for (; (e =
|
|
1335
|
+
for (; (e = he.nextNode()) !== null && c.length < l; ) {
|
|
1335
1336
|
if (e.nodeType === 1) {
|
|
1336
1337
|
if (e.hasAttributes()) for (const d of e.getAttributeNames()) if (d.endsWith(ur)) {
|
|
1337
1338
|
const g = u[n++], v = e.getAttribute(d).split(Yt), b = /([.?@])?(.*)/.exec(g);
|
|
@@ -1341,8 +1342,8 @@ let Hs = class br {
|
|
|
1341
1342
|
const d = e.textContent.split(Yt), g = d.length - 1;
|
|
1342
1343
|
if (g > 0) {
|
|
1343
1344
|
e.textContent = bs ? bs.emptyScript : "";
|
|
1344
|
-
for (let v = 0; v < g; v++) e.append(d[v],
|
|
1345
|
-
e.append(d[g],
|
|
1345
|
+
for (let v = 0; v < g; v++) e.append(d[v], Ke()), he.nextNode(), c.push({ type: 2, index: ++o });
|
|
1346
|
+
e.append(d[g], Ke());
|
|
1346
1347
|
}
|
|
1347
1348
|
}
|
|
1348
1349
|
} else if (e.nodeType === 8) if (e.data === fr) c.push({ type: 2, index: o });
|
|
@@ -1354,14 +1355,14 @@ let Hs = class br {
|
|
|
1354
1355
|
}
|
|
1355
1356
|
}
|
|
1356
1357
|
static createElement(t, i) {
|
|
1357
|
-
const s =
|
|
1358
|
+
const s = de.createElement("template");
|
|
1358
1359
|
return s.innerHTML = t, s;
|
|
1359
1360
|
}
|
|
1360
1361
|
};
|
|
1361
1362
|
function $e(r, t, i = r, s) {
|
|
1362
1363
|
if (t === wt) return t;
|
|
1363
1364
|
let e = s !== void 0 ? i._$Co?.[s] : i._$Cl;
|
|
1364
|
-
const o =
|
|
1365
|
+
const o = We(t) ? void 0 : t._$litDirective$;
|
|
1365
1366
|
return e?.constructor !== o && (e?._$AO?.(!1), o === void 0 ? e = void 0 : (e = new o(r), e._$AT(r, i, s)), s !== void 0 ? (i._$Co ??= [])[s] = e : i._$Cl = e), e !== void 0 && (t = $e(r, e._$AS(r, t.values), e, s)), t;
|
|
1366
1367
|
}
|
|
1367
1368
|
let oo = class {
|
|
@@ -1375,17 +1376,17 @@ let oo = class {
|
|
|
1375
1376
|
return this._$AM._$AU;
|
|
1376
1377
|
}
|
|
1377
1378
|
u(t) {
|
|
1378
|
-
const { el: { content: i }, parts: s } = this._$AD, e = (t?.creationScope ??
|
|
1379
|
-
|
|
1380
|
-
let o =
|
|
1379
|
+
const { el: { content: i }, parts: s } = this._$AD, e = (t?.creationScope ?? de).importNode(i, !0);
|
|
1380
|
+
he.currentNode = e;
|
|
1381
|
+
let o = he.nextNode(), n = 0, l = 0, c = s[0];
|
|
1381
1382
|
for (; c !== void 0; ) {
|
|
1382
1383
|
if (n === c.index) {
|
|
1383
1384
|
let h;
|
|
1384
1385
|
c.type === 2 ? h = new Oe(o, o.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(o, c.name, c.strings, this, t) : c.type === 6 && (h = new co(o, this, t)), this._$AV.push(h), c = s[++l];
|
|
1385
1386
|
}
|
|
1386
|
-
n !== c?.index && (o =
|
|
1387
|
+
n !== c?.index && (o = he.nextNode(), n++);
|
|
1387
1388
|
}
|
|
1388
|
-
return
|
|
1389
|
+
return he.currentNode = de, e;
|
|
1389
1390
|
}
|
|
1390
1391
|
p(t) {
|
|
1391
1392
|
let i = 0;
|
|
@@ -1397,7 +1398,7 @@ class Oe {
|
|
|
1397
1398
|
return this._$AM?._$AU ?? this._$Cv;
|
|
1398
1399
|
}
|
|
1399
1400
|
constructor(t, i, s, e) {
|
|
1400
|
-
this.type = 2, this._$AH =
|
|
1401
|
+
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
1402
|
}
|
|
1402
1403
|
get parentNode() {
|
|
1403
1404
|
let t = this._$AA.parentNode;
|
|
@@ -1411,7 +1412,7 @@ class Oe {
|
|
|
1411
1412
|
return this._$AB;
|
|
1412
1413
|
}
|
|
1413
1414
|
_$AI(t, i = this) {
|
|
1414
|
-
t = $e(this, t, i),
|
|
1415
|
+
t = $e(this, t, i), We(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
1416
|
}
|
|
1416
1417
|
O(t) {
|
|
1417
1418
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -1420,7 +1421,7 @@ class Oe {
|
|
|
1420
1421
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
1421
1422
|
}
|
|
1422
1423
|
_(t) {
|
|
1423
|
-
this._$AH !==
|
|
1424
|
+
this._$AH !== C && We(this._$AH) ? this._$AA.nextSibling.data = t : this.T(de.createTextNode(t)), this._$AH = t;
|
|
1424
1425
|
}
|
|
1425
1426
|
$(t) {
|
|
1426
1427
|
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);
|
|
@@ -1438,7 +1439,7 @@ class Oe {
|
|
|
1438
1439
|
vi(this._$AH) || (this._$AH = [], this._$AR());
|
|
1439
1440
|
const i = this._$AH;
|
|
1440
1441
|
let s, e = 0;
|
|
1441
|
-
for (const o of t) e === i.length ? i.push(s = new Oe(this.O(
|
|
1442
|
+
for (const o of t) e === i.length ? i.push(s = new Oe(this.O(Ke()), this.O(Ke()), this, this.options)) : s = i[e], s._$AI(o), e++;
|
|
1442
1443
|
e < i.length && (this._$AR(s && s._$AB.nextSibling, e), i.length = e);
|
|
1443
1444
|
}
|
|
1444
1445
|
_$AR(t = this._$AA.nextSibling, i) {
|
|
@@ -1459,21 +1460,21 @@ class Os {
|
|
|
1459
1460
|
return this._$AM._$AU;
|
|
1460
1461
|
}
|
|
1461
1462
|
constructor(t, i, s, e, o) {
|
|
1462
|
-
this.type = 1, this._$AH =
|
|
1463
|
+
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
1464
|
}
|
|
1464
1465
|
_$AI(t, i = this, s, e) {
|
|
1465
1466
|
const o = this.strings;
|
|
1466
1467
|
let n = !1;
|
|
1467
|
-
if (o === void 0) t = $e(this, t, i, 0), n = !
|
|
1468
|
+
if (o === void 0) t = $e(this, t, i, 0), n = !We(t) || t !== this._$AH && t !== wt, n && (this._$AH = t);
|
|
1468
1469
|
else {
|
|
1469
1470
|
const l = t;
|
|
1470
1471
|
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 ||= !
|
|
1472
|
+
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 ||= !We(h) || h !== this._$AH[c], h === C ? t = C : t !== C && (t += (h ?? "") + o[c + 1]), this._$AH[c] = h;
|
|
1472
1473
|
}
|
|
1473
1474
|
n && !e && this.j(t);
|
|
1474
1475
|
}
|
|
1475
1476
|
j(t) {
|
|
1476
|
-
t ===
|
|
1477
|
+
t === C ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
1477
1478
|
}
|
|
1478
1479
|
}
|
|
1479
1480
|
class no extends Os {
|
|
@@ -1481,7 +1482,7 @@ class no extends Os {
|
|
|
1481
1482
|
super(...arguments), this.type = 3;
|
|
1482
1483
|
}
|
|
1483
1484
|
j(t) {
|
|
1484
|
-
this.element[this.name] = t ===
|
|
1485
|
+
this.element[this.name] = t === C ? void 0 : t;
|
|
1485
1486
|
}
|
|
1486
1487
|
}
|
|
1487
1488
|
class ao extends Os {
|
|
@@ -1489,7 +1490,7 @@ class ao extends Os {
|
|
|
1489
1490
|
super(...arguments), this.type = 4;
|
|
1490
1491
|
}
|
|
1491
1492
|
j(t) {
|
|
1492
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
|
1493
|
+
this.element.toggleAttribute(this.name, !!t && t !== C);
|
|
1493
1494
|
}
|
|
1494
1495
|
}
|
|
1495
1496
|
class lo extends Os {
|
|
@@ -1497,8 +1498,8 @@ class lo extends Os {
|
|
|
1497
1498
|
super(t, i, s, e, o), this.type = 5;
|
|
1498
1499
|
}
|
|
1499
1500
|
_$AI(t, i = this) {
|
|
1500
|
-
if ((t = $e(this, t, i, 0) ??
|
|
1501
|
-
const s = this._$AH, e = t ===
|
|
1501
|
+
if ((t = $e(this, t, i, 0) ?? C) === wt) return;
|
|
1502
|
+
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
1503
|
e && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
1503
1504
|
}
|
|
1504
1505
|
handleEvent(t) {
|
|
@@ -1523,7 +1524,7 @@ const uo = (r, t, i) => {
|
|
|
1523
1524
|
let e = s._$litPart$;
|
|
1524
1525
|
if (e === void 0) {
|
|
1525
1526
|
const o = i?.renderBefore ?? null;
|
|
1526
|
-
s._$litPart$ = e = new Oe(t.insertBefore(
|
|
1527
|
+
s._$litPart$ = e = new Oe(t.insertBefore(Ke(), o), o, void 0, i ?? {});
|
|
1527
1528
|
}
|
|
1528
1529
|
return e._$AI(r), e;
|
|
1529
1530
|
};
|
|
@@ -1552,7 +1553,7 @@ const { I: fo } = ho, mo = (r) => r.strings === void 0, Hi = () => document.crea
|
|
|
1552
1553
|
}
|
|
1553
1554
|
}
|
|
1554
1555
|
return i;
|
|
1555
|
-
},
|
|
1556
|
+
}, ae = (r, t, i = r) => (r._$AI(t, i), r), go = {}, bo = (r, t = go) => r._$AH = t, vo = (r) => r._$AH, Rs = (r) => {
|
|
1556
1557
|
r._$AR(), r._$AA.remove();
|
|
1557
1558
|
};
|
|
1558
1559
|
/**
|
|
@@ -1560,7 +1561,7 @@ const { I: fo } = ho, mo = (r) => r.strings === void 0, Hi = () => document.crea
|
|
|
1560
1561
|
* Copyright 2017 Google LLC
|
|
1561
1562
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1562
1563
|
*/
|
|
1563
|
-
const be = { ATTRIBUTE: 1, CHILD: 2 },
|
|
1564
|
+
const be = { ATTRIBUTE: 1, CHILD: 2 }, se = (r) => (...t) => ({ _$litDirective$: r, values: t });
|
|
1564
1565
|
let De = class {
|
|
1565
1566
|
constructor(t) {
|
|
1566
1567
|
}
|
|
@@ -1719,7 +1720,7 @@ class Po extends yi {
|
|
|
1719
1720
|
this.observable && this.subscribe(this.observable);
|
|
1720
1721
|
}
|
|
1721
1722
|
}
|
|
1722
|
-
const yr =
|
|
1723
|
+
const yr = se(Po), $o = yr, Co = yr, So = (r) => Ds(r).values().next().value?.get(), wr = (r, t) => {
|
|
1723
1724
|
const i = Ds(r).values().next().value;
|
|
1724
1725
|
if (t !== void 0 && i) {
|
|
1725
1726
|
const s = i.get();
|
|
@@ -1730,7 +1731,7 @@ const yr = ee(Po), $o = yr, Co = yr, So = (r) => Ds(r).values().next().value?.ge
|
|
|
1730
1731
|
Ds(r).values().next().value?.set(t);
|
|
1731
1732
|
}, F = class F {
|
|
1732
1733
|
constructor(t) {
|
|
1733
|
-
this.addHTTPResponse = !1, this.cache = "default", this.isServiceSimulated = !1, this.blockUntilDone = !1, this.serviceURL = t.serviceURL, this.blockUntilDone = t.blockUntilDone || !1, this.serviceURL == "publisher://" && (this.isServiceSimulated = !0), this.serviceURL || (this.serviceURL = document.location.origin), this.userName = t.userName, this.password = t.password, t.token && (this.token = t.token), this.tokenProvider = t.tokenProvider, this.authToken = t.authToken, this.addHTTPResponse = t.addHTTPResponse || !1, this.credentials = t.credentials, this.cache = t.cache || "default";
|
|
1734
|
+
this.addHTTPResponse = !1, this.cache = "default", this.isServiceSimulated = !1, this.blockUntilDone = !1, this.keepAlive = !1, this.serviceURL = t.serviceURL, this.blockUntilDone = t.blockUntilDone || !1, this.serviceURL == "publisher://" && (this.isServiceSimulated = !0), this.serviceURL || (this.serviceURL = document.location.origin), this.userName = t.userName, this.password = t.password, t.token && (this.token = t.token), this.tokenProvider = t.tokenProvider, this.authToken = t.authToken, this.addHTTPResponse = t.addHTTPResponse || !1, this.credentials = t.credentials, this.cache = t.cache || "default", this.keepAlive = t.keepAlive || !1;
|
|
1734
1735
|
}
|
|
1735
1736
|
set token(t) {
|
|
1736
1737
|
if (this._token = t, !t) {
|
|
@@ -1796,7 +1797,8 @@ const yr = ee(Po), $o = yr, Co = yr, So = (r) => Ds(r).values().next().value?.ge
|
|
|
1796
1797
|
}),
|
|
1797
1798
|
{
|
|
1798
1799
|
headers: t,
|
|
1799
|
-
credentials: this.credentials
|
|
1800
|
+
credentials: this.credentials,
|
|
1801
|
+
keepalive: this.keepAlive
|
|
1800
1802
|
}
|
|
1801
1803
|
);
|
|
1802
1804
|
try {
|
|
@@ -1829,9 +1831,9 @@ const yr = ee(Po), $o = yr, Co = yr, So = (r) => Ds(r).values().next().value?.ge
|
|
|
1829
1831
|
if (typeof x != "object")
|
|
1830
1832
|
isNaN(+x) ? x.toString().toLowerCase().includes(g.toLowerCase()) && l.push(x) : x === g && l.push(x);
|
|
1831
1833
|
else {
|
|
1832
|
-
const
|
|
1833
|
-
if (!
|
|
1834
|
-
isNaN(+
|
|
1834
|
+
const S = x;
|
|
1835
|
+
if (!S[d]) continue;
|
|
1836
|
+
isNaN(+S[d]) ? S[d]?.toString().toLowerCase().includes(b.toLowerCase()) && l.push(x) : S[d] === b && l.push(x);
|
|
1835
1837
|
}
|
|
1836
1838
|
}
|
|
1837
1839
|
return l.slice(h, h + c);
|
|
@@ -1875,7 +1877,8 @@ const yr = ee(Po), $o = yr, Co = yr, So = (r) => Ds(r).values().next().value?.ge
|
|
|
1875
1877
|
const d = await fetch(n, {
|
|
1876
1878
|
headers: o,
|
|
1877
1879
|
credentials: this.credentials,
|
|
1878
|
-
cache: this.cache
|
|
1880
|
+
cache: this.cache,
|
|
1881
|
+
keepalive: this.keepAlive
|
|
1879
1882
|
}), g = await this.handleResult(d, e);
|
|
1880
1883
|
u(g);
|
|
1881
1884
|
} catch {
|
|
@@ -1923,7 +1926,8 @@ const yr = ee(Po), $o = yr, Co = yr, So = (r) => Ds(r).values().next().value?.ge
|
|
|
1923
1926
|
headers: n,
|
|
1924
1927
|
credentials: this.credentials,
|
|
1925
1928
|
method: s,
|
|
1926
|
-
body: JSON.stringify(i)
|
|
1929
|
+
body: JSON.stringify(i),
|
|
1930
|
+
keepalive: this.keepAlive
|
|
1927
1931
|
});
|
|
1928
1932
|
return await this.handleResult(l, o);
|
|
1929
1933
|
}
|
|
@@ -1945,7 +1949,8 @@ const yr = ee(Po), $o = yr, Co = yr, So = (r) => Ds(r).values().next().value?.ge
|
|
|
1945
1949
|
headers: n,
|
|
1946
1950
|
credentials: this.credentials,
|
|
1947
1951
|
method: s,
|
|
1948
|
-
body: l
|
|
1952
|
+
body: l,
|
|
1953
|
+
keepalive: this.keepAlive
|
|
1949
1954
|
});
|
|
1950
1955
|
return await this.handleResult(h, o);
|
|
1951
1956
|
}
|
|
@@ -1986,12 +1991,12 @@ const Oo = async (r, t) => {
|
|
|
1986
1991
|
* Copyright 2017 Google LLC
|
|
1987
1992
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1988
1993
|
*/
|
|
1989
|
-
let
|
|
1994
|
+
let Ks = class extends De {
|
|
1990
1995
|
constructor(t) {
|
|
1991
|
-
if (super(t), this.it =
|
|
1996
|
+
if (super(t), this.it = C, t.type !== be.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
1992
1997
|
}
|
|
1993
1998
|
render(t) {
|
|
1994
|
-
if (t ===
|
|
1999
|
+
if (t === C || t == null) return this._t = void 0, this.it = t;
|
|
1995
2000
|
if (t === wt) return t;
|
|
1996
2001
|
if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
1997
2002
|
if (t === this.it) return this._t;
|
|
@@ -2000,8 +2005,8 @@ let Ws = class extends De {
|
|
|
2000
2005
|
return i.raw = i, this._t = { _$litType$: this.constructor.resultType, strings: i, values: [] };
|
|
2001
2006
|
}
|
|
2002
2007
|
};
|
|
2003
|
-
|
|
2004
|
-
const z =
|
|
2008
|
+
Ks.directiveName = "unsafeHTML", Ks.resultType = 1;
|
|
2009
|
+
const z = se(Ks), Ws = /* @__PURE__ */ new Map(), Ki = (r) => {
|
|
2005
2010
|
if (!r) return null;
|
|
2006
2011
|
const t = J.getApiConfiguration(r), i = J.getAncestorAttributeValue(
|
|
2007
2012
|
r,
|
|
@@ -2015,7 +2020,7 @@ const z = ee(Ws), Ks = /* @__PURE__ */ new Map(), Wi = (r) => {
|
|
|
2015
2020
|
wordingVersionProvider: s
|
|
2016
2021
|
};
|
|
2017
2022
|
let o = null;
|
|
2018
|
-
for (const [n, l] of
|
|
2023
|
+
for (const [n, l] of Ws)
|
|
2019
2024
|
if (tt.deepEqual(n, e)) {
|
|
2020
2025
|
o = l;
|
|
2021
2026
|
break;
|
|
@@ -2028,8 +2033,8 @@ const z = ee(Ws), Ks = /* @__PURE__ */ new Map(), Wi = (r) => {
|
|
|
2028
2033
|
callIndex: 0,
|
|
2029
2034
|
wordingVersionProvider: s,
|
|
2030
2035
|
apiCallKey: e
|
|
2031
|
-
},
|
|
2032
|
-
},
|
|
2036
|
+
}, Ws.set(e, o)), o;
|
|
2037
|
+
}, Wi = "", V = class V extends yi {
|
|
2033
2038
|
/* eslint-disable @typescript-eslint/no-explicit-any*/
|
|
2034
2039
|
constructor(t) {
|
|
2035
2040
|
super(t), this.useUnsafeHTML = !1, this.onAssign = (i) => {
|
|
@@ -2049,7 +2054,7 @@ const z = ee(Ws), Ks = /* @__PURE__ */ new Map(), Wi = (r) => {
|
|
|
2049
2054
|
V.firstCall = !1, di(V.reloadWordings);
|
|
2050
2055
|
const u = Object.keys(V.publisher.get());
|
|
2051
2056
|
for (const d of u)
|
|
2052
|
-
V.publisher.get()[d] ===
|
|
2057
|
+
V.publisher.get()[d] === Wi && delete V.publisher[d];
|
|
2053
2058
|
}
|
|
2054
2059
|
if (t) {
|
|
2055
2060
|
const u = J.getAncestorAttributeValue(
|
|
@@ -2061,7 +2066,7 @@ const z = ee(Ws), Ks = /* @__PURE__ */ new Map(), Wi = (r) => {
|
|
|
2061
2066
|
);
|
|
2062
2067
|
}
|
|
2063
2068
|
let o = V.publisher.get()["wording_" + i] != null;
|
|
2064
|
-
const n = e ||
|
|
2069
|
+
const n = e || Ki(t);
|
|
2065
2070
|
if (!n) return;
|
|
2066
2071
|
if (o && i !== "") {
|
|
2067
2072
|
n.translatedKeys.add(i);
|
|
@@ -2077,7 +2082,7 @@ const z = ee(Ws), Ks = /* @__PURE__ */ new Map(), Wi = (r) => {
|
|
|
2077
2082
|
}
|
|
2078
2083
|
const h = n.api;
|
|
2079
2084
|
window.queueMicrotask(async () => {
|
|
2080
|
-
if (o = V.publisher["wording_" + i].get() != null, !o && i !== "" && (n.keysToTranslate.add(i), V.publisher["wording_" + i] =
|
|
2085
|
+
if (o = V.publisher["wording_" + i].get() != null, !o && i !== "" && (n.keysToTranslate.add(i), V.publisher["wording_" + i] = Wi), l !== n.callIndex) return;
|
|
2081
2086
|
const u = Array.from(n.keysToTranslate);
|
|
2082
2087
|
if (!u.length) return;
|
|
2083
2088
|
const d = c.split("?"), g = d.shift(), v = (d.length > 0 ? d.join("?") + "&" : "") + "labels[]=" + u.join("&labels[]="), b = g + "?" + v;
|
|
@@ -2086,17 +2091,17 @@ const z = ee(Ws), Ks = /* @__PURE__ */ new Map(), Wi = (r) => {
|
|
|
2086
2091
|
...n.keysToTranslate
|
|
2087
2092
|
]), n.keysToTranslate.clear();
|
|
2088
2093
|
const x = await h.get(b);
|
|
2089
|
-
for (const
|
|
2090
|
-
V.publisher["wording_" +
|
|
2094
|
+
for (const S in x)
|
|
2095
|
+
V.publisher["wording_" + S] = x[S];
|
|
2091
2096
|
});
|
|
2092
2097
|
}
|
|
2093
2098
|
static reloadWordings() {
|
|
2094
|
-
for (const t of
|
|
2099
|
+
for (const t of Ws.values())
|
|
2095
2100
|
t.keysToTranslate = new Set(t.translatedKeys), t.keysToTranslate.size > 0 && V.callApi(null, "", !1, t);
|
|
2096
2101
|
}
|
|
2097
2102
|
//check if the wording version has changed
|
|
2098
2103
|
static handleVersionProvider(t) {
|
|
2099
|
-
const i =
|
|
2104
|
+
const i = Ki(t), s = (o) => {
|
|
2100
2105
|
};
|
|
2101
2106
|
if (!i) return s;
|
|
2102
2107
|
if (V.versionProviderHandlers.has(i))
|
|
@@ -2138,8 +2143,8 @@ V.publisher = T.get("sonic-wording", {
|
|
|
2138
2143
|
localStorageMode: "enabled"
|
|
2139
2144
|
}), V.firstCall = !0, V.versionProviderHandlers = /* @__PURE__ */ new Map();
|
|
2140
2145
|
let xe = V;
|
|
2141
|
-
const Do =
|
|
2142
|
-
var Eo = Object.defineProperty, No = Object.getOwnPropertyDescriptor,
|
|
2146
|
+
const Do = se(xe), Lo = Do;
|
|
2147
|
+
var Eo = Object.defineProperty, No = Object.getOwnPropertyDescriptor, Dt = (r, t, i, s) => {
|
|
2143
2148
|
for (var e = s > 1 ? void 0 : s ? No(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
2144
2149
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
2145
2150
|
return s && e && Eo(t, i, e), e;
|
|
@@ -2294,29 +2299,29 @@ const G = (r, t) => {
|
|
|
2294
2299
|
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
2300
|
}
|
|
2296
2301
|
}, e.instanceCounter = 0, e);
|
|
2297
|
-
return
|
|
2302
|
+
return Dt([
|
|
2298
2303
|
a({ type: Number })
|
|
2299
|
-
], i.prototype, "collectDependenciesVersion", 2),
|
|
2304
|
+
], i.prototype, "collectDependenciesVersion", 2), Dt([
|
|
2300
2305
|
a({ type: Boolean })
|
|
2301
|
-
], i.prototype, "displayContents", 2),
|
|
2306
|
+
], i.prototype, "displayContents", 2), Dt([
|
|
2302
2307
|
a({ type: Boolean })
|
|
2303
|
-
], i.prototype, "noAutoFill", 2),
|
|
2308
|
+
], i.prototype, "noAutoFill", 2), Dt([
|
|
2304
2309
|
a({ type: Boolean })
|
|
2305
|
-
], i.prototype, "forceAutoFill", 2),
|
|
2310
|
+
], i.prototype, "forceAutoFill", 2), Dt([
|
|
2306
2311
|
a({ type: Object })
|
|
2307
|
-
], i.prototype, "propertyMap", 2),
|
|
2312
|
+
], i.prototype, "propertyMap", 2), Dt([
|
|
2308
2313
|
a({ type: String, attribute: "data-title" })
|
|
2309
|
-
], i.prototype, "title", 2),
|
|
2314
|
+
], i.prototype, "title", 2), Dt([
|
|
2310
2315
|
a({ reflect: !0 })
|
|
2311
|
-
], i.prototype, "dataProvider", 2),
|
|
2316
|
+
], i.prototype, "dataProvider", 2), Dt([
|
|
2312
2317
|
a()
|
|
2313
|
-
], i.prototype, "bindPublisher", 2),
|
|
2318
|
+
], i.prototype, "bindPublisher", 2), Dt([
|
|
2314
2319
|
a()
|
|
2315
|
-
], i.prototype, "props", 1),
|
|
2316
|
-
|
|
2320
|
+
], i.prototype, "props", 1), Dt([
|
|
2321
|
+
D()
|
|
2317
2322
|
], i.prototype, "shouldRenderLazy", 2), i;
|
|
2318
2323
|
};
|
|
2319
|
-
var To = Object.defineProperty,
|
|
2324
|
+
var To = Object.defineProperty, Io = (r, t, i, s) => {
|
|
2320
2325
|
for (var e = void 0, o = r.length - 1, n; o >= 0; o--)
|
|
2321
2326
|
(n = r[o]) && (e = n(t, i, e) || e);
|
|
2322
2327
|
return e && To(t, i, e), e;
|
|
@@ -2335,14 +2340,14 @@ const Je = (r) => {
|
|
|
2335
2340
|
), this.templateList.length == 0 && (this.templateList = s), super.connectedCallback();
|
|
2336
2341
|
}
|
|
2337
2342
|
}
|
|
2338
|
-
return
|
|
2343
|
+
return Io([
|
|
2339
2344
|
a({ type: Array })
|
|
2340
2345
|
], t.prototype, "templates"), t;
|
|
2341
2346
|
};
|
|
2342
|
-
var
|
|
2347
|
+
var Mo = Object.defineProperty, jo = Object.getOwnPropertyDescriptor, W = (r, t, i, s) => {
|
|
2343
2348
|
for (var e = s > 1 ? void 0 : s ? jo(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
2344
2349
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
2345
|
-
return s && e &&
|
|
2350
|
+
return s && e && Mo(t, i, e), e;
|
|
2346
2351
|
};
|
|
2347
2352
|
const Fo = "sonic-date";
|
|
2348
2353
|
di(() => R.updateComponentsLanguage());
|
|
@@ -2409,7 +2414,7 @@ let R = class extends G(Je(w)) {
|
|
|
2409
2414
|
}
|
|
2410
2415
|
render() {
|
|
2411
2416
|
if (!this.renderIf || !this.computedStartDate && !this.now && !this.computedEndDate)
|
|
2412
|
-
return
|
|
2417
|
+
return C;
|
|
2413
2418
|
const r = {
|
|
2414
2419
|
year: this.year || "numeric",
|
|
2415
2420
|
month: this.month || "short",
|
|
@@ -2436,70 +2441,70 @@ let R = class extends G(Je(w)) {
|
|
|
2436
2441
|
}
|
|
2437
2442
|
};
|
|
2438
2443
|
R.dateCompnents = /* @__PURE__ */ new Set();
|
|
2439
|
-
|
|
2444
|
+
W([
|
|
2440
2445
|
a()
|
|
2441
2446
|
], R.prototype, "wording_billet_periode_validite", 1);
|
|
2442
|
-
|
|
2447
|
+
W([
|
|
2443
2448
|
a({ type: Boolean })
|
|
2444
2449
|
], R.prototype, "designMode", 2);
|
|
2445
|
-
|
|
2450
|
+
W([
|
|
2446
2451
|
a({ type: String })
|
|
2447
2452
|
], R.prototype, "time_zone", 2);
|
|
2448
|
-
|
|
2453
|
+
W([
|
|
2449
2454
|
a({ type: Number })
|
|
2450
2455
|
], R.prototype, "date", 2);
|
|
2451
|
-
|
|
2456
|
+
W([
|
|
2452
2457
|
a({ type: String })
|
|
2453
2458
|
], R.prototype, "date_string", 2);
|
|
2454
|
-
|
|
2459
|
+
W([
|
|
2455
2460
|
a({ type: String })
|
|
2456
2461
|
], R.prototype, "start_date_string", 2);
|
|
2457
|
-
|
|
2462
|
+
W([
|
|
2458
2463
|
a({ type: String })
|
|
2459
2464
|
], R.prototype, "end_date_string", 2);
|
|
2460
|
-
|
|
2465
|
+
W([
|
|
2461
2466
|
a({ type: Number })
|
|
2462
2467
|
], R.prototype, "start_date", 2);
|
|
2463
|
-
|
|
2468
|
+
W([
|
|
2464
2469
|
a({ type: Number })
|
|
2465
2470
|
], R.prototype, "end_date", 2);
|
|
2466
|
-
|
|
2471
|
+
W([
|
|
2467
2472
|
a({ type: Boolean })
|
|
2468
2473
|
], R.prototype, "hide_hours", 2);
|
|
2469
|
-
|
|
2474
|
+
W([
|
|
2470
2475
|
a({ type: String })
|
|
2471
2476
|
], R.prototype, "era", 2);
|
|
2472
|
-
|
|
2477
|
+
W([
|
|
2473
2478
|
a({ type: String })
|
|
2474
2479
|
], R.prototype, "year", 2);
|
|
2475
|
-
|
|
2480
|
+
W([
|
|
2476
2481
|
a({ type: String })
|
|
2477
2482
|
], R.prototype, "month", 2);
|
|
2478
|
-
|
|
2483
|
+
W([
|
|
2479
2484
|
a({ type: String })
|
|
2480
2485
|
], R.prototype, "day", 2);
|
|
2481
|
-
|
|
2486
|
+
W([
|
|
2482
2487
|
a({ type: String })
|
|
2483
2488
|
], R.prototype, "weekday", 2);
|
|
2484
|
-
|
|
2489
|
+
W([
|
|
2485
2490
|
a({ type: String })
|
|
2486
2491
|
], R.prototype, "hour", 2);
|
|
2487
|
-
|
|
2492
|
+
W([
|
|
2488
2493
|
a({ type: Boolean })
|
|
2489
2494
|
], R.prototype, "hour12", 2);
|
|
2490
|
-
|
|
2495
|
+
W([
|
|
2491
2496
|
a({ type: String })
|
|
2492
2497
|
], R.prototype, "minute", 2);
|
|
2493
|
-
|
|
2498
|
+
W([
|
|
2494
2499
|
a({ type: String })
|
|
2495
2500
|
], R.prototype, "language", 2);
|
|
2496
|
-
|
|
2501
|
+
W([
|
|
2497
2502
|
a({ type: Boolean })
|
|
2498
2503
|
], R.prototype, "renderIf", 2);
|
|
2499
|
-
|
|
2504
|
+
W([
|
|
2500
2505
|
a({ type: Boolean })
|
|
2501
2506
|
], R.prototype, "now", 2);
|
|
2502
|
-
R =
|
|
2507
|
+
R = W([
|
|
2503
2508
|
_(Fo)
|
|
2504
2509
|
], R);
|
|
2505
2510
|
var H;
|
|
@@ -2539,8 +2544,8 @@ let et = (H = class {
|
|
|
2539
2544
|
static changeFromComponent(t) {
|
|
2540
2545
|
const i = t.goBack, s = document.referrer;
|
|
2541
2546
|
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 &&
|
|
2547
|
+
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;
|
|
2548
|
+
if (g && S || x) {
|
|
2544
2549
|
const p = history.state || {};
|
|
2545
2550
|
p.concorde = p.concorde || {}, p.concorde.hasDoneHistoryBack = !0, history.pushState(p, document.title), history.back(), document.location.replace(u);
|
|
2546
2551
|
} else
|
|
@@ -2583,7 +2588,7 @@ let et = (H = class {
|
|
|
2583
2588
|
* Copyright 2018 Google LLC
|
|
2584
2589
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2585
2590
|
*/
|
|
2586
|
-
const xr = "important", zo = " !" + xr,
|
|
2591
|
+
const xr = "important", zo = " !" + xr, ft = se(class extends De {
|
|
2587
2592
|
constructor(r) {
|
|
2588
2593
|
if (super(r), r.type !== be.ATTRIBUTE || r.name !== "style" || r.strings?.length > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
|
|
2589
2594
|
}
|
|
@@ -2608,7 +2613,7 @@ const xr = "important", zo = " !" + xr, ut = ee(class extends De {
|
|
|
2608
2613
|
return wt;
|
|
2609
2614
|
}
|
|
2610
2615
|
});
|
|
2611
|
-
var Ro = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor,
|
|
2616
|
+
var Ro = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, Lt = (r, t, i, s) => {
|
|
2612
2617
|
for (var e = s > 1 ? void 0 : s ? Uo(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
2613
2618
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
2614
2619
|
return s && e && Ro(t, i, e), e;
|
|
@@ -2644,11 +2649,11 @@ const ds = /* @__PURE__ */ new Map(), Le = (r) => {
|
|
|
2644
2649
|
}
|
|
2645
2650
|
setFormPublisherValue(s) {
|
|
2646
2651
|
const e = this.getFormPublisher();
|
|
2647
|
-
e &&
|
|
2652
|
+
e && ut(e, this.name).set(s);
|
|
2648
2653
|
}
|
|
2649
2654
|
getFormPublisherValue() {
|
|
2650
2655
|
const s = this.getFormPublisher();
|
|
2651
|
-
return s ?
|
|
2656
|
+
return s ? ut(s, this.name).get() : null;
|
|
2652
2657
|
}
|
|
2653
2658
|
/**
|
|
2654
2659
|
* Mise en forme de la valeur fournie au formPublisher associé au composant
|
|
@@ -2680,13 +2685,13 @@ const ds = /* @__PURE__ */ new Map(), Le = (r) => {
|
|
|
2680
2685
|
initPublisher() {
|
|
2681
2686
|
let s = this.getFormPublisher();
|
|
2682
2687
|
const e = this.hasAncestorAttribute("initFromPublisher") && this._name && this.getFormPublisherValue() ? this.getFormPublisherValue() : this.getAttribute("value");
|
|
2683
|
-
this._name && this.publisher &&
|
|
2688
|
+
this._name && this.publisher && ut(this.publisher, this._name).offAssign(
|
|
2684
2689
|
this.onValueAssign
|
|
2685
|
-
), this._name && s &&
|
|
2690
|
+
), this._name && s && ut(s, this._name).offAssign(
|
|
2686
2691
|
this.onFormValueAssign
|
|
2687
|
-
), super.initPublisher(), this.name || (this._name = this.getAttribute("name")), this.value || (this._value = this.getAttribute("value")), this.publisher && this._name &&
|
|
2692
|
+
), super.initPublisher(), this.name || (this._name = this.getAttribute("name")), this.value || (this._value = this.getAttribute("value")), this.publisher && this._name && ut(this.publisher, this._name).onAssign(
|
|
2688
2693
|
this.onValueAssign
|
|
2689
|
-
), s = this.getFormPublisher(), this._name && s && (
|
|
2694
|
+
), s = this.getFormPublisher(), this._name && s && (ut(s, this._name).onAssign(
|
|
2690
2695
|
this.onFormValueAssign
|
|
2691
2696
|
), s.onFormInvalidate(this.onFormDataInValidate)), this.updateDataValue(), e && (this.value = e);
|
|
2692
2697
|
}
|
|
@@ -2753,38 +2758,38 @@ const ds = /* @__PURE__ */ new Map(), Le = (r) => {
|
|
|
2753
2758
|
this.value = null;
|
|
2754
2759
|
}
|
|
2755
2760
|
disconnectedCallback() {
|
|
2756
|
-
this.unsetOnDisconnect() && this.unset(), super.disconnectedCallback(), this._name && this.publisher &&
|
|
2761
|
+
this.unsetOnDisconnect() && this.unset(), super.disconnectedCallback(), this._name && this.publisher && ut(this.publisher, this._name).offAssign(
|
|
2757
2762
|
this.onValueAssign
|
|
2758
2763
|
);
|
|
2759
2764
|
const s = this.getFormPublisher();
|
|
2760
|
-
this._name && s && (
|
|
2765
|
+
this._name && s && (ut(s, this._name).offAssign(
|
|
2761
2766
|
this.onFormValueAssign
|
|
2762
2767
|
), s.offFormInvalidate(this.onFormDataInValidate));
|
|
2763
2768
|
}
|
|
2764
2769
|
}
|
|
2765
|
-
return
|
|
2770
|
+
return Lt([
|
|
2766
2771
|
a({ type: Boolean, reflect: !0 })
|
|
2767
|
-
], t.prototype, "touched", 2),
|
|
2772
|
+
], t.prototype, "touched", 2), Lt([
|
|
2768
2773
|
a({ type: Boolean })
|
|
2769
|
-
], t.prototype, "error", 2),
|
|
2774
|
+
], t.prototype, "error", 2), Lt([
|
|
2770
2775
|
a({ type: Boolean })
|
|
2771
|
-
], t.prototype, "autofocus", 2),
|
|
2776
|
+
], t.prototype, "autofocus", 2), Lt([
|
|
2772
2777
|
a({ type: Boolean })
|
|
2773
|
-
], t.prototype, "required", 2),
|
|
2778
|
+
], t.prototype, "required", 2), Lt([
|
|
2774
2779
|
a({ type: Boolean })
|
|
2775
|
-
], t.prototype, "forceAutoFill", 2),
|
|
2780
|
+
], t.prototype, "forceAutoFill", 2), Lt([
|
|
2776
2781
|
a({ type: Boolean, reflect: !0 })
|
|
2777
|
-
], t.prototype, "disabled", 2),
|
|
2782
|
+
], t.prototype, "disabled", 2), Lt([
|
|
2778
2783
|
a({ type: String, attribute: "data-aria-label" })
|
|
2779
|
-
], t.prototype, "ariaLabel", 2),
|
|
2784
|
+
], t.prototype, "ariaLabel", 2), Lt([
|
|
2780
2785
|
a({ type: String, attribute: "data-aria-labelledby" })
|
|
2781
|
-
], t.prototype, "ariaLabelledby", 2),
|
|
2786
|
+
], t.prototype, "ariaLabelledby", 2), Lt([
|
|
2782
2787
|
a()
|
|
2783
|
-
], t.prototype, "name", 1),
|
|
2788
|
+
], t.prototype, "name", 1), Lt([
|
|
2784
2789
|
a()
|
|
2785
2790
|
], t.prototype, "value", 1), t;
|
|
2786
2791
|
};
|
|
2787
|
-
let Vo = class
|
|
2792
|
+
let Vo = class ce {
|
|
2788
2793
|
/**
|
|
2789
2794
|
* Vérifie si les deux tableaux ont le même contenu
|
|
2790
2795
|
*/
|
|
@@ -2831,7 +2836,7 @@ let Vo = class le {
|
|
|
2831
2836
|
})
|
|
2832
2837
|
}),
|
|
2833
2838
|
value: () => ({
|
|
2834
|
-
forKey: (i) =>
|
|
2839
|
+
forKey: (i) => ce.from(t.map((s) => s[i]))
|
|
2835
2840
|
}),
|
|
2836
2841
|
copy: () => ({
|
|
2837
2842
|
fromKey: (i) => ({
|
|
@@ -2843,8 +2848,8 @@ let Vo = class le {
|
|
|
2843
2848
|
})
|
|
2844
2849
|
})
|
|
2845
2850
|
}),
|
|
2846
|
-
map: (i) =>
|
|
2847
|
-
filter: (i) =>
|
|
2851
|
+
map: (i) => ce.from(t.map(i)),
|
|
2852
|
+
filter: (i) => ce.from(t.filter(i)),
|
|
2848
2853
|
find: (i) => t.find(i),
|
|
2849
2854
|
some: (i) => t.some(i),
|
|
2850
2855
|
every: (i) => t.every(i),
|
|
@@ -2861,14 +2866,14 @@ let Vo = class le {
|
|
|
2861
2866
|
}
|
|
2862
2867
|
s[e.get(n)].items.push(o);
|
|
2863
2868
|
}
|
|
2864
|
-
return
|
|
2869
|
+
return ce.from(s);
|
|
2865
2870
|
}
|
|
2866
2871
|
}),
|
|
2867
2872
|
without: () => ({
|
|
2868
2873
|
duplicates: () => ({
|
|
2869
2874
|
forKey: (i) => {
|
|
2870
2875
|
const s = [...new Set(t.map((e) => e[i]))];
|
|
2871
|
-
return
|
|
2876
|
+
return ce.from(
|
|
2872
2877
|
s.map(
|
|
2873
2878
|
(e) => t.find((o) => o[i] == e)
|
|
2874
2879
|
)
|
|
@@ -2879,7 +2884,7 @@ let Vo = class le {
|
|
|
2879
2884
|
havingSameValue: () => ({
|
|
2880
2885
|
forKey: (s) => {
|
|
2881
2886
|
const e = (o, n) => (l) => o[n] != l[n];
|
|
2882
|
-
return
|
|
2887
|
+
return ce.from(
|
|
2883
2888
|
t.filter(
|
|
2884
2889
|
(o) => i.every(
|
|
2885
2890
|
e(o, s)
|
|
@@ -2904,7 +2909,7 @@ function Ho() {
|
|
|
2904
2909
|
(function(s, e) {
|
|
2905
2910
|
return t !== null ? r.exports = e() : s.UrlPattern = e();
|
|
2906
2911
|
})(qo, function() {
|
|
2907
|
-
var s, e, o, n, l, c, h, u, d, g, v, b, x,
|
|
2912
|
+
var s, e, o, n, l, c, h, u, d, g, v, b, x, S, E;
|
|
2908
2913
|
return d = function(p) {
|
|
2909
2914
|
return p.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
2910
2915
|
}, h = function(p, f) {
|
|
@@ -2912,7 +2917,7 @@ function Ho() {
|
|
|
2912
2917
|
for (k = [], y = -1, A = p.length; ++y < A; )
|
|
2913
2918
|
k = k.concat(f(p[y]));
|
|
2914
2919
|
return k;
|
|
2915
|
-
},
|
|
2920
|
+
}, S = function(p, f) {
|
|
2916
2921
|
var y, A, k;
|
|
2917
2922
|
for (k = "", y = -1, A = p.length; ++y < A; )
|
|
2918
2923
|
k += f(p[y]);
|
|
@@ -2943,13 +2948,13 @@ function Ho() {
|
|
|
2943
2948
|
}, s.sequence = function() {
|
|
2944
2949
|
var p;
|
|
2945
2950
|
return p = 1 <= arguments.length ? i.call(arguments, 0) : [], function(f) {
|
|
2946
|
-
var y, A, k, q, Z,
|
|
2947
|
-
for (y = -1, A = p.length,
|
|
2951
|
+
var y, A, k, q, Z, nt;
|
|
2952
|
+
for (y = -1, A = p.length, nt = [], q = f; ++y < A; ) {
|
|
2948
2953
|
if (k = p[y], Z = k(q), Z == null)
|
|
2949
2954
|
return;
|
|
2950
|
-
|
|
2955
|
+
nt.push(Z.value), q = Z.rest;
|
|
2951
2956
|
}
|
|
2952
|
-
return new s.Result(
|
|
2957
|
+
return new s.Result(nt, q);
|
|
2953
2958
|
};
|
|
2954
2959
|
}, s.pick = function() {
|
|
2955
2960
|
var p, f;
|
|
@@ -2970,11 +2975,11 @@ function Ho() {
|
|
|
2970
2975
|
return f == null && (f = p()), f(y);
|
|
2971
2976
|
};
|
|
2972
2977
|
}, s.baseMany = function(p, f, y, A, k) {
|
|
2973
|
-
var q, Z,
|
|
2974
|
-
for (
|
|
2975
|
-
y ?
|
|
2976
|
-
if (!(A &&
|
|
2977
|
-
return new s.Result(
|
|
2978
|
+
var q, Z, nt, Me;
|
|
2979
|
+
for (nt = k, Me = y ? "" : []; !(f != null && (q = f(nt), q != null) || (Z = p(nt), Z == null)); )
|
|
2980
|
+
y ? Me += Z.value : Me.push(Z.value), nt = Z.rest;
|
|
2981
|
+
if (!(A && Me.length === 0))
|
|
2982
|
+
return new s.Result(Me, nt);
|
|
2978
2983
|
}, s.many1 = function(p) {
|
|
2979
2984
|
return function(f) {
|
|
2980
2985
|
return s.baseMany(p, null, !1, !0, f);
|
|
@@ -3014,7 +3019,7 @@ function Ho() {
|
|
|
3014
3019
|
wildcardChar: "*"
|
|
3015
3020
|
}, c = function(p, f) {
|
|
3016
3021
|
if (Array.isArray(p))
|
|
3017
|
-
return
|
|
3022
|
+
return S(p, function(y) {
|
|
3018
3023
|
return c(y, f);
|
|
3019
3024
|
});
|
|
3020
3025
|
switch (p.tag) {
|
|
@@ -3043,18 +3048,18 @@ function Ho() {
|
|
|
3043
3048
|
return n(p.value);
|
|
3044
3049
|
}
|
|
3045
3050
|
}, g = function(p, f, y, A) {
|
|
3046
|
-
var k, q, Z,
|
|
3047
|
-
if (A == null && (A = !1),
|
|
3051
|
+
var k, q, Z, nt;
|
|
3052
|
+
if (A == null && (A = !1), nt = p[f], nt == null) {
|
|
3048
3053
|
if (A)
|
|
3049
3054
|
throw new Error("no values provided for key `" + f + "`");
|
|
3050
3055
|
return;
|
|
3051
3056
|
}
|
|
3052
|
-
if (k = y[f] || 0, q = Array.isArray(
|
|
3057
|
+
if (k = y[f] || 0, q = Array.isArray(nt) ? nt.length - 1 : 0, k > q) {
|
|
3053
3058
|
if (A)
|
|
3054
3059
|
throw new Error("too few values provided for key `" + f + "`");
|
|
3055
3060
|
return;
|
|
3056
3061
|
}
|
|
3057
|
-
return Z = Array.isArray(
|
|
3062
|
+
return Z = Array.isArray(nt) ? nt[k] : nt, A && (y[f] = k + 1), Z;
|
|
3058
3063
|
}, o = function(p, f, y) {
|
|
3059
3064
|
var A, k;
|
|
3060
3065
|
if (Array.isArray(p)) {
|
|
@@ -3075,7 +3080,7 @@ function Ho() {
|
|
|
3075
3080
|
}
|
|
3076
3081
|
}, E = function(p, f, y) {
|
|
3077
3082
|
if (Array.isArray(p))
|
|
3078
|
-
return
|
|
3083
|
+
return S(p, function(A) {
|
|
3079
3084
|
return E(A, f, y);
|
|
3080
3085
|
});
|
|
3081
3086
|
switch (p.tag) {
|
|
@@ -3132,15 +3137,15 @@ function Ho() {
|
|
|
3132
3137
|
if (p !== Object(p))
|
|
3133
3138
|
throw new Error("argument must be an object or undefined");
|
|
3134
3139
|
return E(this.ast, p, {});
|
|
3135
|
-
}, e.escapeForRegex = d, e.concatMap = h, e.stringConcatMap =
|
|
3140
|
+
}, 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
3141
|
});
|
|
3137
3142
|
})(Ue, Ue.exports)), Ue.exports;
|
|
3138
3143
|
}
|
|
3139
|
-
var
|
|
3140
|
-
const qt = /* @__PURE__ */ Bo(
|
|
3144
|
+
var Ko = Ho();
|
|
3145
|
+
const qt = /* @__PURE__ */ Bo(Ko), Wo = Rr, Yo = Vo, Zo = As, Xo = fs, Zt = J, Go = et, ts = tt, Qo = He, st = T, Jo = Ce, tn = qt;
|
|
3141
3146
|
window["concorde-utils"] = window["concorde-utils"] || {};
|
|
3142
3147
|
window["concorde-utils"] = {
|
|
3143
|
-
Utils:
|
|
3148
|
+
Utils: Wo,
|
|
3144
3149
|
Arrays: Yo,
|
|
3145
3150
|
DataBindObserver: Zo,
|
|
3146
3151
|
Format: Xo,
|
|
@@ -3302,7 +3307,7 @@ const _i = (r) => {
|
|
|
3302
3307
|
* Copyright 2018 Google LLC
|
|
3303
3308
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3304
3309
|
*/
|
|
3305
|
-
const $ = (r) => r ??
|
|
3310
|
+
const $ = (r) => r ?? C, Mt = P`
|
|
3306
3311
|
/*SIZES*/
|
|
3307
3312
|
:host {
|
|
3308
3313
|
--sc-_fs: 1rem;
|
|
@@ -3342,7 +3347,7 @@ var rn = Object.defineProperty, on = Object.getOwnPropertyDescriptor, B = (r, t,
|
|
|
3342
3347
|
return s && e && rn(t, i, e), e;
|
|
3343
3348
|
};
|
|
3344
3349
|
const nn = "sonic-button";
|
|
3345
|
-
let
|
|
3350
|
+
let M = class extends _i(Le(G(w))) {
|
|
3346
3351
|
constructor() {
|
|
3347
3352
|
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
3353
|
window.removeEventListener("pointerup", this.handleRepeatend), window.removeEventListener("blur", this.handleRepeatend), this.autoRepeat && (this.isRepeating = !1);
|
|
@@ -3403,7 +3408,7 @@ let I = class extends _i(Le(G(w))) {
|
|
|
3403
3408
|
<button
|
|
3404
3409
|
part="button"
|
|
3405
3410
|
class=${this.hasPrefix || this.hasSuffix ? "has-prefix-or-suffix" : ""}
|
|
3406
|
-
style=${
|
|
3411
|
+
style=${ft(r)}
|
|
3407
3412
|
aria-controls=${$(this.ariaControls)}
|
|
3408
3413
|
aria-expanded=${$(this.sonicAriaExpanded)}
|
|
3409
3414
|
aria-label=${$(this.ariaLabel)}
|
|
@@ -3440,7 +3445,7 @@ let I = class extends _i(Le(G(w))) {
|
|
|
3440
3445
|
this.hasPrefix = !!this.prefixes?.length, this.hasSuffix = !!this.suffixes?.length;
|
|
3441
3446
|
}
|
|
3442
3447
|
};
|
|
3443
|
-
|
|
3448
|
+
M.styles = [
|
|
3444
3449
|
Mt,
|
|
3445
3450
|
P`
|
|
3446
3451
|
* {
|
|
@@ -3812,85 +3817,85 @@ I.styles = [
|
|
|
3812
3817
|
];
|
|
3813
3818
|
B([
|
|
3814
3819
|
a({ type: String, reflect: !0 })
|
|
3815
|
-
],
|
|
3820
|
+
], M.prototype, "type", 2);
|
|
3816
3821
|
B([
|
|
3817
3822
|
a({ type: String, reflect: !0 })
|
|
3818
|
-
],
|
|
3823
|
+
], M.prototype, "variant", 2);
|
|
3819
3824
|
B([
|
|
3820
3825
|
a({ type: String, reflect: !0 })
|
|
3821
|
-
],
|
|
3826
|
+
], M.prototype, "size", 2);
|
|
3822
3827
|
B([
|
|
3823
3828
|
a({ type: String, reflect: !0 })
|
|
3824
|
-
],
|
|
3829
|
+
], M.prototype, "shape", 2);
|
|
3825
3830
|
B([
|
|
3826
3831
|
a({ type: String })
|
|
3827
|
-
],
|
|
3832
|
+
], M.prototype, "direction", 2);
|
|
3828
3833
|
B([
|
|
3829
3834
|
a({ type: String, reflect: !0 })
|
|
3830
|
-
],
|
|
3835
|
+
], M.prototype, "alignItems", 2);
|
|
3831
3836
|
B([
|
|
3832
3837
|
a({ type: String })
|
|
3833
|
-
],
|
|
3838
|
+
], M.prototype, "justify", 2);
|
|
3834
3839
|
B([
|
|
3835
3840
|
a({ type: String, reflect: !0 })
|
|
3836
|
-
],
|
|
3841
|
+
], M.prototype, "align", 2);
|
|
3837
3842
|
B([
|
|
3838
3843
|
a({ type: String })
|
|
3839
|
-
],
|
|
3844
|
+
], M.prototype, "minWidth", 2);
|
|
3840
3845
|
B([
|
|
3841
3846
|
a({ type: Boolean, reflect: !0 })
|
|
3842
|
-
],
|
|
3847
|
+
], M.prototype, "icon", 2);
|
|
3843
3848
|
B([
|
|
3844
3849
|
a({ type: String })
|
|
3845
|
-
],
|
|
3850
|
+
], M.prototype, "download", 2);
|
|
3846
3851
|
B([
|
|
3847
3852
|
a({ type: String })
|
|
3848
|
-
],
|
|
3853
|
+
], M.prototype, "autoActive", 2);
|
|
3849
3854
|
B([
|
|
3850
3855
|
a({ type: Boolean, reflect: !0 })
|
|
3851
|
-
],
|
|
3856
|
+
], M.prototype, "loading", 2);
|
|
3852
3857
|
B([
|
|
3853
|
-
|
|
3854
|
-
],
|
|
3858
|
+
D()
|
|
3859
|
+
], M.prototype, "hasPrefix", 2);
|
|
3855
3860
|
B([
|
|
3856
|
-
|
|
3857
|
-
],
|
|
3861
|
+
D()
|
|
3862
|
+
], M.prototype, "hasSuffix", 2);
|
|
3858
3863
|
B([
|
|
3859
3864
|
ke({ flatten: !0, slot: "prefix" })
|
|
3860
|
-
],
|
|
3865
|
+
], M.prototype, "prefixes", 2);
|
|
3861
3866
|
B([
|
|
3862
3867
|
ke({ flatten: !0, slot: "suffix" })
|
|
3863
|
-
],
|
|
3868
|
+
], M.prototype, "suffixes", 2);
|
|
3864
3869
|
B([
|
|
3865
3870
|
a({ type: String })
|
|
3866
|
-
],
|
|
3871
|
+
], M.prototype, "target", 2);
|
|
3867
3872
|
B([
|
|
3868
3873
|
a({ type: String })
|
|
3869
|
-
],
|
|
3874
|
+
], M.prototype, "href", 1);
|
|
3870
3875
|
B([
|
|
3871
3876
|
a({ type: String })
|
|
3872
|
-
],
|
|
3877
|
+
], M.prototype, "goBack", 2);
|
|
3873
3878
|
B([
|
|
3874
3879
|
a({ type: Boolean })
|
|
3875
|
-
],
|
|
3880
|
+
], M.prototype, "pushState", 2);
|
|
3876
3881
|
B([
|
|
3877
3882
|
a({ type: Boolean, reflect: !0 })
|
|
3878
|
-
],
|
|
3883
|
+
], M.prototype, "active", 2);
|
|
3879
3884
|
B([
|
|
3880
3885
|
a({ type: Boolean, reflect: !0 })
|
|
3881
|
-
],
|
|
3886
|
+
], M.prototype, "autoRepeat", 2);
|
|
3882
3887
|
B([
|
|
3883
3888
|
a({ type: String, attribute: "data-aria-controls" })
|
|
3884
|
-
],
|
|
3889
|
+
], M.prototype, "ariaControls", 2);
|
|
3885
3890
|
B([
|
|
3886
3891
|
a({ type: Boolean, attribute: "data-aria-expanded" })
|
|
3887
|
-
],
|
|
3892
|
+
], M.prototype, "sonicAriaExpanded", 2);
|
|
3888
3893
|
B([
|
|
3889
|
-
|
|
3890
|
-
],
|
|
3891
|
-
|
|
3894
|
+
D()
|
|
3895
|
+
], M.prototype, "location", 2);
|
|
3896
|
+
M = B([
|
|
3892
3897
|
_(nn)
|
|
3893
|
-
],
|
|
3898
|
+
], M);
|
|
3894
3899
|
/**
|
|
3895
3900
|
* @license
|
|
3896
3901
|
* Copyright 2017 Google LLC
|
|
@@ -3900,7 +3905,7 @@ const Zi = (r, t, i) => {
|
|
|
3900
3905
|
const s = /* @__PURE__ */ new Map();
|
|
3901
3906
|
for (let e = t; e <= i; e++) s.set(r[e], e);
|
|
3902
3907
|
return s;
|
|
3903
|
-
}, Ls =
|
|
3908
|
+
}, Ls = se(class extends De {
|
|
3904
3909
|
constructor(r) {
|
|
3905
3910
|
if (super(r), r.type !== be.CHILD) throw Error("repeat() can only be used in text expressions");
|
|
3906
3911
|
}
|
|
@@ -3922,22 +3927,22 @@ const Zi = (r, t, i) => {
|
|
|
3922
3927
|
let h, u, d = 0, g = e.length - 1, v = 0, b = o.length - 1;
|
|
3923
3928
|
for (; d <= g && v <= b; ) if (e[d] === null) d++;
|
|
3924
3929
|
else if (e[g] === null) g--;
|
|
3925
|
-
else if (l[d] === n[v]) c[v] =
|
|
3926
|
-
else if (l[g] === n[b]) c[b] =
|
|
3927
|
-
else if (l[d] === n[b]) c[b] =
|
|
3928
|
-
else if (l[g] === n[v]) c[v] =
|
|
3930
|
+
else if (l[d] === n[v]) c[v] = ae(e[d], o[v]), d++, v++;
|
|
3931
|
+
else if (l[g] === n[b]) c[b] = ae(e[g], o[b]), g--, b--;
|
|
3932
|
+
else if (l[d] === n[b]) c[b] = ae(e[d], o[b]), Fe(r, c[b + 1], e[d]), d++, b--;
|
|
3933
|
+
else if (l[g] === n[v]) c[v] = ae(e[g], o[v]), Fe(r, e[d], e[g]), g--, v++;
|
|
3929
3934
|
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 (
|
|
3935
|
+
const x = u.get(n[v]), S = x !== void 0 ? e[x] : null;
|
|
3936
|
+
if (S === null) {
|
|
3932
3937
|
const E = Fe(r, e[d]);
|
|
3933
|
-
|
|
3934
|
-
} else c[v] =
|
|
3938
|
+
ae(E, o[v]), c[v] = E;
|
|
3939
|
+
} else c[v] = ae(S, o[v]), Fe(r, e[d], S), e[x] = null;
|
|
3935
3940
|
v++;
|
|
3936
3941
|
} else Rs(e[g]), g--;
|
|
3937
3942
|
else Rs(e[d]), d++;
|
|
3938
3943
|
for (; v <= b; ) {
|
|
3939
3944
|
const x = Fe(r, c[b + 1]);
|
|
3940
|
-
|
|
3945
|
+
ae(x, o[v]), c[v++] = x;
|
|
3941
3946
|
}
|
|
3942
3947
|
for (; d <= g; ) {
|
|
3943
3948
|
const x = e[d++];
|
|
@@ -3984,7 +3989,7 @@ class hn extends yi {
|
|
|
3984
3989
|
this.l?.(), this.l = void 0;
|
|
3985
3990
|
}
|
|
3986
3991
|
render(t) {
|
|
3987
|
-
return
|
|
3992
|
+
return C;
|
|
3988
3993
|
}
|
|
3989
3994
|
getController() {
|
|
3990
3995
|
return an.get(this.u);
|
|
@@ -4132,7 +4137,7 @@ class hn extends yi {
|
|
|
4132
4137
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, i);
|
|
4133
4138
|
}
|
|
4134
4139
|
}
|
|
4135
|
-
const dn =
|
|
4140
|
+
const dn = se(hn), pn = { cancel: `<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4136
4141
|
<path d="M6.75827 17.2426L12.0009 12M17.2435 6.75736L12.0009 12M12.0009 12L6.75827 6.75736M12.0009 12L17.2435 17.2426" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4137
4142
|
</svg>
|
|
4138
4143
|
`, "check-circled-outline": `<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -4231,8 +4236,8 @@ Ni.default = {
|
|
|
4231
4236
|
g("");
|
|
4232
4237
|
return;
|
|
4233
4238
|
}
|
|
4234
|
-
const x = await v.text(),
|
|
4235
|
-
g(
|
|
4239
|
+
const x = await v.text(), S = /^\s*<svg[\s>]/i.test(x);
|
|
4240
|
+
g(S ? x : "");
|
|
4236
4241
|
} catch {
|
|
4237
4242
|
g("");
|
|
4238
4243
|
}
|
|
@@ -4259,7 +4264,7 @@ var gn = Object.defineProperty, bn = Object.getOwnPropertyDescriptor, es = (r, t
|
|
|
4259
4264
|
return s && e && gn(t, i, e), e;
|
|
4260
4265
|
};
|
|
4261
4266
|
const vn = "sonic-icon";
|
|
4262
|
-
let
|
|
4267
|
+
let pe = class extends w {
|
|
4263
4268
|
constructor() {
|
|
4264
4269
|
super(...arguments), this.iconText = "", this.name = "", this.prefix = "", this.library = "";
|
|
4265
4270
|
}
|
|
@@ -4277,10 +4282,10 @@ let de = class extends w {
|
|
|
4277
4282
|
(r.has("name") || r.has("prefix") || r.has("library")) && this.updateIcon(), super.willUpdate(r);
|
|
4278
4283
|
}
|
|
4279
4284
|
render() {
|
|
4280
|
-
return this.iconText ? this.iconText :
|
|
4285
|
+
return this.iconText ? this.iconText : C;
|
|
4281
4286
|
}
|
|
4282
4287
|
};
|
|
4283
|
-
|
|
4288
|
+
pe.styles = P`
|
|
4284
4289
|
:host {
|
|
4285
4290
|
line-height: 0.1em;
|
|
4286
4291
|
width: fit-content;
|
|
@@ -4332,20 +4337,20 @@ de.styles = P`
|
|
|
4332
4337
|
}
|
|
4333
4338
|
`;
|
|
4334
4339
|
es([
|
|
4335
|
-
|
|
4336
|
-
],
|
|
4340
|
+
D()
|
|
4341
|
+
], pe.prototype, "iconText", 2);
|
|
4337
4342
|
es([
|
|
4338
4343
|
a({ type: String })
|
|
4339
|
-
],
|
|
4344
|
+
], pe.prototype, "name", 2);
|
|
4340
4345
|
es([
|
|
4341
4346
|
a({ type: String })
|
|
4342
|
-
],
|
|
4347
|
+
], pe.prototype, "prefix", 2);
|
|
4343
4348
|
es([
|
|
4344
4349
|
a({ type: String })
|
|
4345
|
-
],
|
|
4346
|
-
|
|
4350
|
+
], pe.prototype, "library", 2);
|
|
4351
|
+
pe = es([
|
|
4347
4352
|
_(vn)
|
|
4348
|
-
],
|
|
4353
|
+
], pe);
|
|
4349
4354
|
const ss = P`
|
|
4350
4355
|
.custom-scroll {
|
|
4351
4356
|
overflow: auto !important;
|
|
@@ -4369,7 +4374,7 @@ const ss = P`
|
|
|
4369
4374
|
}
|
|
4370
4375
|
}
|
|
4371
4376
|
`;
|
|
4372
|
-
var yn = Object.defineProperty, wn = Object.getOwnPropertyDescriptor,
|
|
4377
|
+
var yn = Object.defineProperty, wn = Object.getOwnPropertyDescriptor, kt = (r, t, i, s) => {
|
|
4373
4378
|
for (var e = s > 1 ? void 0 : s ? wn(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
4374
4379
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
4375
4380
|
return s && e && yn(t, i, e), e;
|
|
@@ -4382,21 +4387,62 @@ const _n = {
|
|
|
4382
4387
|
}, xn = "sonic-toast-item";
|
|
4383
4388
|
let _t = class extends w {
|
|
4384
4389
|
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;
|
|
4390
|
+
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
4391
|
}
|
|
4387
4392
|
// @queryAssignedElements({flatten: true, slot: main"})
|
|
4388
4393
|
// textSlot!: HTMLElement[];
|
|
4394
|
+
/**
|
|
4395
|
+
* Retourne le rôle ARIA approprié selon le statut du toast
|
|
4396
|
+
* - "alert" pour les erreurs (messages critiques) - implique déjà aria-live="assertive"
|
|
4397
|
+
* - "status" pour les autres (messages informatifs)
|
|
4398
|
+
*/
|
|
4399
|
+
getAriaRole() {
|
|
4400
|
+
return this.status === "error" ? "alert" : "status";
|
|
4401
|
+
}
|
|
4402
|
+
/**
|
|
4403
|
+
* Retourne la valeur aria-live appropriée selon le statut
|
|
4404
|
+
* - null pour les erreurs car role="alert" implique déjà aria-live="assertive"
|
|
4405
|
+
* - "polite" pour les autres (peut attendre)
|
|
4406
|
+
*/
|
|
4407
|
+
getAriaLive() {
|
|
4408
|
+
return this.status === "error" ? null : "polite";
|
|
4409
|
+
}
|
|
4410
|
+
/**
|
|
4411
|
+
* Génère et mémorise un ID unique pour le titre du toast
|
|
4412
|
+
*/
|
|
4413
|
+
getTitleId() {
|
|
4414
|
+
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);
|
|
4415
|
+
}
|
|
4416
|
+
/**
|
|
4417
|
+
* Génère un label ARIA descriptif pour le bouton de fermeture
|
|
4418
|
+
*/
|
|
4419
|
+
getCloseButtonLabel() {
|
|
4420
|
+
const r = {
|
|
4421
|
+
error: "Fermer le message d'erreur",
|
|
4422
|
+
warning: "Fermer l'avertissement",
|
|
4423
|
+
success: "Fermer le message de succès",
|
|
4424
|
+
info: "Fermer l'information"
|
|
4425
|
+
};
|
|
4426
|
+
return this.status && r[this.status] || "Fermer la notification";
|
|
4427
|
+
}
|
|
4389
4428
|
render() {
|
|
4390
4429
|
if (this.dismissForever) {
|
|
4391
|
-
const
|
|
4392
|
-
if (JSON.parse(
|
|
4393
|
-
return
|
|
4430
|
+
const s = localStorage.getItem("sonic-toast-dismissed") || "{}";
|
|
4431
|
+
if (JSON.parse(s)[this.id])
|
|
4432
|
+
return C;
|
|
4394
4433
|
}
|
|
4395
|
-
|
|
4434
|
+
if (!this.visible)
|
|
4435
|
+
return C;
|
|
4436
|
+
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();
|
|
4437
|
+
return m`<div
|
|
4396
4438
|
class="sonic-toast ${this.status} ${this.ghost ? "ghost" : ""}"
|
|
4439
|
+
role=${this.getAriaRole()}
|
|
4440
|
+
aria-live=${i || C}
|
|
4441
|
+
aria-atomic="true"
|
|
4442
|
+
aria-label=${t || C}
|
|
4397
4443
|
>
|
|
4398
4444
|
<button
|
|
4399
|
-
aria-label
|
|
4445
|
+
aria-label=${this.getCloseButtonLabel()}
|
|
4400
4446
|
class="sonic-toast-close"
|
|
4401
4447
|
@click=${() => this.hide()}
|
|
4402
4448
|
>
|
|
@@ -4410,17 +4456,20 @@ let _t = class extends w {
|
|
|
4410
4456
|
name=${_n[this.status]}
|
|
4411
4457
|
class="sonic-toast-icon"
|
|
4412
4458
|
size="2xl"
|
|
4459
|
+
aria-hidden="true"
|
|
4413
4460
|
></sonic-icon>`}
|
|
4414
4461
|
|
|
4415
4462
|
<div class="sonic-toast-text">
|
|
4416
|
-
${this.title ? m`<div class="sonic-toast-title"
|
|
4463
|
+
${this.title ? m`<div class="sonic-toast-title" id=${r}>
|
|
4464
|
+
${this.title}
|
|
4465
|
+
</div>` : ""}
|
|
4417
4466
|
${this.text ? z(this.text) : ""}
|
|
4418
4467
|
<slot></slot>
|
|
4419
4468
|
</div>
|
|
4420
4469
|
|
|
4421
4470
|
${this.preserve ? "" : this.autoHide()}
|
|
4422
4471
|
</div>
|
|
4423
|
-
</div
|
|
4472
|
+
</div>`;
|
|
4424
4473
|
}
|
|
4425
4474
|
hide() {
|
|
4426
4475
|
if (Zt.getClosestElement(this, "sonic-toast") || (this.visible = !1), this.dismissForever) {
|
|
@@ -4625,34 +4674,37 @@ _t.styles = [
|
|
|
4625
4674
|
}
|
|
4626
4675
|
`
|
|
4627
4676
|
];
|
|
4628
|
-
|
|
4677
|
+
kt([
|
|
4629
4678
|
a({ type: String })
|
|
4630
4679
|
], _t.prototype, "title", 2);
|
|
4631
|
-
|
|
4680
|
+
kt([
|
|
4632
4681
|
a({ type: String })
|
|
4633
4682
|
], _t.prototype, "id", 2);
|
|
4634
|
-
|
|
4683
|
+
kt([
|
|
4635
4684
|
a({ type: String })
|
|
4636
4685
|
], _t.prototype, "text", 2);
|
|
4637
|
-
|
|
4686
|
+
kt([
|
|
4638
4687
|
a({ type: String })
|
|
4639
4688
|
], _t.prototype, "status", 2);
|
|
4640
|
-
|
|
4689
|
+
kt([
|
|
4641
4690
|
a({ type: Boolean })
|
|
4642
4691
|
], _t.prototype, "ghost", 2);
|
|
4643
|
-
|
|
4692
|
+
kt([
|
|
4644
4693
|
a({ type: Boolean })
|
|
4645
4694
|
], _t.prototype, "preserve", 2);
|
|
4646
|
-
|
|
4695
|
+
kt([
|
|
4647
4696
|
a({ type: Boolean })
|
|
4648
4697
|
], _t.prototype, "dismissForever", 2);
|
|
4649
|
-
|
|
4698
|
+
kt([
|
|
4650
4699
|
a({ type: String })
|
|
4651
4700
|
], _t.prototype, "maxHeight", 2);
|
|
4652
|
-
|
|
4653
|
-
|
|
4701
|
+
kt([
|
|
4702
|
+
D()
|
|
4654
4703
|
], _t.prototype, "visible", 2);
|
|
4655
|
-
|
|
4704
|
+
kt([
|
|
4705
|
+
D()
|
|
4706
|
+
], _t.prototype, "_titleId", 2);
|
|
4707
|
+
_t = kt([
|
|
4656
4708
|
_(xn)
|
|
4657
4709
|
], _t);
|
|
4658
4710
|
const Pn = P`
|
|
@@ -4943,7 +4995,7 @@ let O = class extends w {
|
|
|
4943
4995
|
zIndex: "10000",
|
|
4944
4996
|
maxWidth: "64ch",
|
|
4945
4997
|
flexDirection: "column-reverse"
|
|
4946
|
-
}), O.handleExistingToastDelegation(), this.toasts ? m`<div
|
|
4998
|
+
}), O.handleExistingToastDelegation(), this.toasts ? m`<div style=${ft(i)}>
|
|
4947
4999
|
${Ls(
|
|
4948
5000
|
this.toasts,
|
|
4949
5001
|
(s) => s.id,
|
|
@@ -4985,7 +5037,7 @@ let O = class extends w {
|
|
|
4985
5037
|
</sonic-toast-item>
|
|
4986
5038
|
`
|
|
4987
5039
|
)}
|
|
4988
|
-
</div>` :
|
|
5040
|
+
</div>` : C;
|
|
4989
5041
|
}
|
|
4990
5042
|
static removeAll() {
|
|
4991
5043
|
if (O.delegateToasts) {
|
|
@@ -5100,8 +5152,8 @@ var Nn = Object.defineProperty, Tn = Object.getOwnPropertyDescriptor, Re = (r, t
|
|
|
5100
5152
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
5101
5153
|
return s && e && Nn(t, i, e), e;
|
|
5102
5154
|
};
|
|
5103
|
-
const
|
|
5104
|
-
for (const t of
|
|
5155
|
+
const In = /* @__PURE__ */ new Set(), Mn = /* @__PURE__ */ new Set(), jn = (r) => {
|
|
5156
|
+
for (const t of Mn)
|
|
5105
5157
|
t(r);
|
|
5106
5158
|
}, Zs = /* @__PURE__ */ new Set();
|
|
5107
5159
|
let qs = 0;
|
|
@@ -5117,7 +5169,7 @@ di(async () => {
|
|
|
5117
5169
|
const xi = (r, t) => {
|
|
5118
5170
|
class i extends r {
|
|
5119
5171
|
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 = "";
|
|
5172
|
+
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
5173
|
}
|
|
5122
5174
|
get props() {
|
|
5123
5175
|
return super.props;
|
|
@@ -5131,6 +5183,12 @@ const xi = (r, t) => {
|
|
|
5131
5183
|
get endPoint() {
|
|
5132
5184
|
return this._endPoint;
|
|
5133
5185
|
}
|
|
5186
|
+
handleStartFetching() {
|
|
5187
|
+
return this._isFetching ? (this._mustRefetch = !0, "fetching") : (this._isFetching = !0, "okToFetch");
|
|
5188
|
+
}
|
|
5189
|
+
handleEndFetching() {
|
|
5190
|
+
this._isFetching = !1, this._mustRefetch && (this._mustRefetch = !1, this._fetchData());
|
|
5191
|
+
}
|
|
5134
5192
|
/**
|
|
5135
5193
|
*
|
|
5136
5194
|
* C'est ici que les données sont chargées via l'utilitaire API
|
|
@@ -5140,16 +5198,21 @@ const xi = (r, t) => {
|
|
|
5140
5198
|
async _fetchData() {
|
|
5141
5199
|
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
5200
|
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(() => {
|
|
5201
|
+
if (this.isLoading = !0, tt.isObject(this.props) && Object.keys(this.props || {}).length > 0 && this.isFirstLoad && window.requestAnimationFrame(() => {
|
|
5144
5202
|
this.dispatchEvent(new CustomEvent("load", { detail: this })), this.isFirstLoad = !1, this.isLoading = !1;
|
|
5145
|
-
})
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5203
|
+
}), this.handleStartFetching() === "fetching")
|
|
5204
|
+
return;
|
|
5205
|
+
let n = null;
|
|
5206
|
+
try {
|
|
5207
|
+
n = await this.api.get(
|
|
5208
|
+
this.endPoint || this.dataProvider || "",
|
|
5209
|
+
e
|
|
5210
|
+
);
|
|
5211
|
+
} catch {
|
|
5212
|
+
}
|
|
5213
|
+
if (this.handleEndFetching(), this.fetchedData = n, this.api.lastResult && !this.api.lastResult.ok && (this.noErrorsRecordings || In.add(this), jn(this.api.lastResult)), !!this.isConnected) {
|
|
5214
|
+
if (n)
|
|
5215
|
+
n._sonic_http_response_ && !n._sonic_http_response_.ok && Object.keys(n).length === 1 && O.add({ text: "Network Error", status: "error" });
|
|
5153
5216
|
else {
|
|
5154
5217
|
this.isLoading = !1, this.refetchEveryMs && this.isConnected && (this.refetchTimeOutId = setTimeout(
|
|
5155
5218
|
() => this._fetchData(),
|
|
@@ -5158,14 +5221,14 @@ const xi = (r, t) => {
|
|
|
5158
5221
|
return;
|
|
5159
5222
|
}
|
|
5160
5223
|
if (this.key) {
|
|
5161
|
-
const
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5224
|
+
const l = n._sonic_http_response_, c = this.key.split(".");
|
|
5225
|
+
n = tt.traverse(
|
|
5226
|
+
n,
|
|
5227
|
+
c,
|
|
5165
5228
|
this.hasAttribute("preserveOtherKeys")
|
|
5166
|
-
),
|
|
5229
|
+
), n && tt.isObject(n) && l && (n._sonic_http_response_ = l);
|
|
5167
5230
|
}
|
|
5168
|
-
this.props =
|
|
5231
|
+
this.props = n, this.dispatchEvent(new CustomEvent("load", { detail: this })), this.isFirstLoad = !1, this.isLoading = !1, this.refetchEveryMs && this.isConnected && (this.refetchTimeOutId = setTimeout(
|
|
5169
5232
|
() => this._fetchData(),
|
|
5170
5233
|
this.refetchEveryMs
|
|
5171
5234
|
));
|
|
@@ -5226,7 +5289,7 @@ const xi = (r, t) => {
|
|
|
5226
5289
|
a({ type: Number })
|
|
5227
5290
|
], i.prototype, "refetchEveryMs", 2), i;
|
|
5228
5291
|
};
|
|
5229
|
-
var Fn = Object.defineProperty, zn = Object.getOwnPropertyDescriptor,
|
|
5292
|
+
var Fn = Object.defineProperty, zn = Object.getOwnPropertyDescriptor, le = (r, t, i, s) => {
|
|
5230
5293
|
for (var e = s > 1 ? void 0 : s ? zn(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
5231
5294
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
5232
5295
|
return s && e && Fn(t, i, e), e;
|
|
@@ -5261,29 +5324,29 @@ const Es = (r) => {
|
|
|
5261
5324
|
this.hasAttribute("label") && !this.forceAutoFill && (s = this.getAttribute("label")), this._label = s, this.requestUpdate();
|
|
5262
5325
|
}
|
|
5263
5326
|
}
|
|
5264
|
-
return
|
|
5327
|
+
return le([
|
|
5265
5328
|
a()
|
|
5266
|
-
], t.prototype, "forceAutoFill", 2),
|
|
5329
|
+
], t.prototype, "forceAutoFill", 2), le([
|
|
5267
5330
|
a({ type: String })
|
|
5268
|
-
], t.prototype, "type", 1),
|
|
5331
|
+
], t.prototype, "type", 1), le([
|
|
5269
5332
|
a()
|
|
5270
|
-
], t.prototype, "description", 1),
|
|
5333
|
+
], t.prototype, "description", 1), le([
|
|
5271
5334
|
a()
|
|
5272
|
-
], t.prototype, "label", 1),
|
|
5335
|
+
], t.prototype, "label", 1), le([
|
|
5273
5336
|
a({ type: String, reflect: !0 })
|
|
5274
|
-
], t.prototype, "status", 2),
|
|
5337
|
+
], t.prototype, "status", 2), le([
|
|
5275
5338
|
a({ type: Number })
|
|
5276
|
-
], t.prototype, "tabindex", 2),
|
|
5339
|
+
], t.prototype, "tabindex", 2), le([
|
|
5277
5340
|
a({ type: String })
|
|
5278
5341
|
], t.prototype, "autocomplete", 2), t;
|
|
5279
|
-
}, $r = xi, Rn = _i, Cr = Le, Sr = Es,
|
|
5342
|
+
}, $r = xi, Rn = _i, Cr = Le, Sr = Es, ie = G, Pi = Je;
|
|
5280
5343
|
window["concorde-mixins"] = window["concorde-mixins"] || {};
|
|
5281
5344
|
window["concorde-mixins"] = {
|
|
5282
5345
|
Fetcher: $r,
|
|
5283
5346
|
FormCheckable: Rn,
|
|
5284
5347
|
FormElement: Cr,
|
|
5285
5348
|
FormInput: Sr,
|
|
5286
|
-
Subscriber:
|
|
5349
|
+
Subscriber: ie,
|
|
5287
5350
|
TemplatesContainer: Pi
|
|
5288
5351
|
};
|
|
5289
5352
|
/**
|
|
@@ -5291,7 +5354,7 @@ window["concorde-mixins"] = {
|
|
|
5291
5354
|
* Copyright 2020 Google LLC
|
|
5292
5355
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5293
5356
|
*/
|
|
5294
|
-
const
|
|
5357
|
+
const Nt = se(class extends De {
|
|
5295
5358
|
constructor(r) {
|
|
5296
5359
|
if (super(r), r.type !== be.CHILD) throw Error("templateContent can only be used in child bindings");
|
|
5297
5360
|
}
|
|
@@ -5307,18 +5370,18 @@ var Un = Object.defineProperty, Vn = Object.getOwnPropertyDescriptor, Ar = (r, t
|
|
|
5307
5370
|
const Bn = "sonic-fetch";
|
|
5308
5371
|
let ws = class extends xi(G(Pi(w))) {
|
|
5309
5372
|
renderLoader() {
|
|
5310
|
-
if (!(this.isLoading && this.loader !== void 0)) return
|
|
5373
|
+
if (!(this.isLoading && this.loader !== void 0)) return C;
|
|
5311
5374
|
const r = this.loader === !0 || this.loader === "" ? "fixed" : this.loader;
|
|
5312
5375
|
return m`<sonic-loader mode=${r}></sonic-loader>`;
|
|
5313
5376
|
}
|
|
5314
5377
|
renderSkeleton() {
|
|
5315
5378
|
const r = this.templateParts.skeleton;
|
|
5316
|
-
return this.isLoading && r ?
|
|
5379
|
+
return this.isLoading && r ? Nt(r) : C;
|
|
5317
5380
|
}
|
|
5318
5381
|
render() {
|
|
5319
5382
|
return m`
|
|
5320
5383
|
${this.renderSkeleton()} ${this.renderLoader()}
|
|
5321
|
-
${this.isLoading ?
|
|
5384
|
+
${this.isLoading ? C : m`<slot></slot>`}
|
|
5322
5385
|
`;
|
|
5323
5386
|
}
|
|
5324
5387
|
};
|
|
@@ -5340,13 +5403,13 @@ var qn = Object.defineProperty, Hn = Object.getOwnPropertyDescriptor, kr = (r, t
|
|
|
5340
5403
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
5341
5404
|
return s && e && qn(t, i, e), e;
|
|
5342
5405
|
};
|
|
5343
|
-
const
|
|
5406
|
+
const Kn = "sonic-if";
|
|
5344
5407
|
let _s = class extends w {
|
|
5345
5408
|
constructor() {
|
|
5346
5409
|
super(...arguments), this.condition = !1;
|
|
5347
5410
|
}
|
|
5348
5411
|
render() {
|
|
5349
|
-
return this.condition ? m` <slot></slot> ` :
|
|
5412
|
+
return this.condition ? m` <slot></slot> ` : C;
|
|
5350
5413
|
}
|
|
5351
5414
|
};
|
|
5352
5415
|
_s.styles = P`
|
|
@@ -5358,9 +5421,9 @@ kr([
|
|
|
5358
5421
|
a({ type: Boolean })
|
|
5359
5422
|
], _s.prototype, "condition", 2);
|
|
5360
5423
|
_s = kr([
|
|
5361
|
-
_(
|
|
5424
|
+
_(Kn)
|
|
5362
5425
|
], _s);
|
|
5363
|
-
const
|
|
5426
|
+
const Wn = P`
|
|
5364
5427
|
:host([align="left"]) .sonic-loader--inline {
|
|
5365
5428
|
margin-left: 0;
|
|
5366
5429
|
}
|
|
@@ -5487,17 +5550,17 @@ var Zn = Object.defineProperty, Xn = Object.getOwnPropertyDescriptor, $i = (r, t
|
|
|
5487
5550
|
return s && e && Zn(t, i, e), e;
|
|
5488
5551
|
};
|
|
5489
5552
|
const Gn = "sonic-loader";
|
|
5490
|
-
let
|
|
5553
|
+
let at = class extends w {
|
|
5491
5554
|
constructor() {
|
|
5492
5555
|
super(...arguments), this.mode = "fixed", this.noDelay = !1;
|
|
5493
5556
|
}
|
|
5494
5557
|
static show(r) {
|
|
5495
|
-
|
|
5496
|
-
const t =
|
|
5497
|
-
r || (r = {}), r.mode && t.setAttribute("mode", r.mode), r.noDelay && t.setAttribute("noDelay", ""), r.container || (r.container = yt.getPopContainer(), r.mode = "fixed"), r.container.appendChild(t),
|
|
5558
|
+
at.loader || (at.loader = document.createElement("sonic-loader"));
|
|
5559
|
+
const t = at.loader;
|
|
5560
|
+
r || (r = {}), r.mode && t.setAttribute("mode", r.mode), r.noDelay && t.setAttribute("noDelay", ""), r.container || (r.container = yt.getPopContainer(), r.mode = "fixed"), r.container.appendChild(t), at.callCounter++;
|
|
5498
5561
|
}
|
|
5499
5562
|
static hide() {
|
|
5500
|
-
|
|
5563
|
+
at.callCounter--, !(at.callCounter > 0) && at.loader && at.loader.remove();
|
|
5501
5564
|
}
|
|
5502
5565
|
render() {
|
|
5503
5566
|
return m`<div
|
|
@@ -5510,8 +5573,8 @@ let nt = class extends w {
|
|
|
5510
5573
|
</div>`;
|
|
5511
5574
|
}
|
|
5512
5575
|
};
|
|
5513
|
-
|
|
5514
|
-
|
|
5576
|
+
at.styles = [
|
|
5577
|
+
Wn,
|
|
5515
5578
|
Yn,
|
|
5516
5579
|
P`
|
|
5517
5580
|
:host {
|
|
@@ -5543,16 +5606,16 @@ nt.styles = [
|
|
|
5543
5606
|
}
|
|
5544
5607
|
`
|
|
5545
5608
|
];
|
|
5546
|
-
|
|
5609
|
+
at.callCounter = 0;
|
|
5547
5610
|
$i([
|
|
5548
5611
|
a({ type: String })
|
|
5549
|
-
],
|
|
5612
|
+
], at.prototype, "mode", 2);
|
|
5550
5613
|
$i([
|
|
5551
5614
|
a({ type: Boolean })
|
|
5552
|
-
],
|
|
5553
|
-
|
|
5615
|
+
], at.prototype, "noDelay", 2);
|
|
5616
|
+
at = $i([
|
|
5554
5617
|
_(Gn)
|
|
5555
|
-
],
|
|
5618
|
+
], at);
|
|
5556
5619
|
var Qn = Object.getOwnPropertyDescriptor, Jn = (r, t, i, s) => {
|
|
5557
5620
|
for (var e = s > 1 ? void 0 : s ? Qn(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
5558
5621
|
(n = r[o]) && (e = n(e) || e);
|
|
@@ -5576,7 +5639,7 @@ let or = class extends G(w) {
|
|
|
5576
5639
|
or = Jn([
|
|
5577
5640
|
_(ta)
|
|
5578
5641
|
], or);
|
|
5579
|
-
var ea = Object.defineProperty, sa = Object.getOwnPropertyDescriptor,
|
|
5642
|
+
var ea = Object.defineProperty, sa = Object.getOwnPropertyDescriptor, Ot = (r, t, i, s) => {
|
|
5580
5643
|
for (var e = s > 1 ? void 0 : s ? sa(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
5581
5644
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
5582
5645
|
return s && e && ea(t, i, e), e;
|
|
@@ -5600,7 +5663,7 @@ let xt = class extends xi(G(Je(w))) {
|
|
|
5600
5663
|
super.disconnectedCallback();
|
|
5601
5664
|
}
|
|
5602
5665
|
renderLoader() {
|
|
5603
|
-
if (!(this.isLoading && this.loader !== void 0) || this.templateParts.skeleton) return
|
|
5666
|
+
if (!(this.isLoading && this.loader !== void 0) || this.templateParts.skeleton) return C;
|
|
5604
5667
|
const t = this.loader === !0 || this.loader === "" ? "fixed" : this.loader;
|
|
5605
5668
|
return m`<sonic-loader mode=${t}></sonic-loader>`;
|
|
5606
5669
|
}
|
|
@@ -5608,13 +5671,13 @@ let xt = class extends xi(G(Je(w))) {
|
|
|
5608
5671
|
if (this.skeleton)
|
|
5609
5672
|
return this.skeleton();
|
|
5610
5673
|
const r = this.templateParts.skeleton;
|
|
5611
|
-
return this.isLoading && r ?
|
|
5674
|
+
return this.isLoading && r ? Nt(r) : C;
|
|
5612
5675
|
}
|
|
5613
5676
|
renderSeparator() {
|
|
5614
5677
|
if (this.separator)
|
|
5615
5678
|
return this.separator();
|
|
5616
5679
|
const r = this.templateParts.separator;
|
|
5617
|
-
return r ?
|
|
5680
|
+
return r ? Nt(r) : C;
|
|
5618
5681
|
}
|
|
5619
5682
|
renderLoadingState() {
|
|
5620
5683
|
return m`${this.renderSkeleton()} ${this.renderLoader()} `;
|
|
@@ -5692,22 +5755,22 @@ let xt = class extends xi(G(Je(w))) {
|
|
|
5692
5755
|
if (this.noItems)
|
|
5693
5756
|
return this.noItems();
|
|
5694
5757
|
if (this.templateParts["no-items"] = this.templateParts["no-items"] || this.templateParts["no-item"], this.templateParts["no-items"])
|
|
5695
|
-
return
|
|
5758
|
+
return Nt(this.templateParts["no-items"]);
|
|
5696
5759
|
}
|
|
5697
5760
|
const e = this.templateList.length;
|
|
5698
5761
|
let o = -1;
|
|
5699
5762
|
const n = this.hasAttribute("extractValues"), l = this.renderSeparator(), c = s?.length || 0, h = s?.slice(this.offset, this.offset + this.limit);
|
|
5700
5763
|
return m`
|
|
5701
5764
|
${h?.map((u, d) => {
|
|
5702
|
-
if (u == null) return
|
|
5765
|
+
if (u == null) return C;
|
|
5703
5766
|
let g = d, v = null;
|
|
5704
5767
|
if (typeof u == "object" && !Array.isArray(u)) {
|
|
5705
5768
|
n && (g = u?.key);
|
|
5706
5769
|
const f = u[this.templateKey];
|
|
5707
5770
|
f && typeof f == "string" && (v = this.templateParts[f]);
|
|
5708
5771
|
}
|
|
5709
|
-
if (g == "_sonic_http_response_" || typeof g != "string" && typeof g != "number") return
|
|
5710
|
-
const b = d >= c - 1, x = d % 2,
|
|
5772
|
+
if (g == "_sonic_http_response_" || typeof g != "string" && typeof g != "number") return C;
|
|
5773
|
+
const b = d >= c - 1, x = d % 2, S = this.publisher[g], E = {
|
|
5711
5774
|
key: g,
|
|
5712
5775
|
even: x == 0,
|
|
5713
5776
|
odd: x == 1,
|
|
@@ -5715,8 +5778,8 @@ let xt = class extends xi(G(Je(w))) {
|
|
|
5715
5778
|
firstChild: d == 0,
|
|
5716
5779
|
lastChild: b
|
|
5717
5780
|
};
|
|
5718
|
-
|
|
5719
|
-
...
|
|
5781
|
+
S._key_ = g + "", S._metadata_ = {
|
|
5782
|
+
...S._metadata_.get(),
|
|
5720
5783
|
...E
|
|
5721
5784
|
};
|
|
5722
5785
|
const p = this.handleProgrammaticTemplates(
|
|
@@ -5724,56 +5787,56 @@ let xt = class extends xi(G(Je(w))) {
|
|
|
5724
5787
|
E,
|
|
5725
5788
|
g
|
|
5726
5789
|
);
|
|
5727
|
-
return p ? m`${p}${b ?
|
|
5790
|
+
return p ? m`${p}${b ? C : l}` : (o++, v && (o = -1), m`
|
|
5728
5791
|
<sonic-subscriber
|
|
5729
5792
|
?debug=${this.defferedDebug === !0}
|
|
5730
5793
|
.bindPublisher=${function() {
|
|
5731
|
-
return
|
|
5794
|
+
return S;
|
|
5732
5795
|
}}
|
|
5733
5796
|
.propertyMap?=${this.itemPropertyMap}
|
|
5734
5797
|
dataProvider="${this.dataProvider}/list-item/${g}"
|
|
5735
5798
|
>
|
|
5736
|
-
${
|
|
5799
|
+
${Nt(v || this.templateList[o % e])}
|
|
5737
5800
|
</sonic-subscriber>
|
|
5738
|
-
${b ?
|
|
5801
|
+
${b ? C : l}
|
|
5739
5802
|
`);
|
|
5740
5803
|
})}
|
|
5741
5804
|
`;
|
|
5742
5805
|
}
|
|
5743
5806
|
};
|
|
5744
|
-
|
|
5807
|
+
Ot([
|
|
5745
5808
|
a({ type: Object })
|
|
5746
5809
|
], xt.prototype, "itemPropertyMap", 2);
|
|
5747
|
-
|
|
5810
|
+
Ot([
|
|
5748
5811
|
a({ type: String })
|
|
5749
5812
|
], xt.prototype, "templateKey", 2);
|
|
5750
|
-
|
|
5813
|
+
Ot([
|
|
5751
5814
|
a({ type: String })
|
|
5752
5815
|
], xt.prototype, "idKey", 2);
|
|
5753
|
-
|
|
5816
|
+
Ot([
|
|
5754
5817
|
a()
|
|
5755
5818
|
], xt.prototype, "loader", 2);
|
|
5756
|
-
|
|
5819
|
+
Ot([
|
|
5757
5820
|
a()
|
|
5758
5821
|
], xt.prototype, "limit", 2);
|
|
5759
|
-
|
|
5822
|
+
Ot([
|
|
5760
5823
|
a()
|
|
5761
5824
|
], xt.prototype, "offset", 2);
|
|
5762
|
-
|
|
5825
|
+
Ot([
|
|
5763
5826
|
a({
|
|
5764
5827
|
type: Function
|
|
5765
5828
|
})
|
|
5766
5829
|
], xt.prototype, "items", 1);
|
|
5767
|
-
|
|
5830
|
+
Ot([
|
|
5768
5831
|
a({ type: Function })
|
|
5769
5832
|
], xt.prototype, "noItems", 2);
|
|
5770
|
-
|
|
5833
|
+
Ot([
|
|
5771
5834
|
a({ type: Function })
|
|
5772
5835
|
], xt.prototype, "skeleton", 2);
|
|
5773
|
-
|
|
5836
|
+
Ot([
|
|
5774
5837
|
a({ type: Function })
|
|
5775
5838
|
], xt.prototype, "separator", 2);
|
|
5776
|
-
xt =
|
|
5839
|
+
xt = Ot([
|
|
5777
5840
|
_(ia)
|
|
5778
5841
|
], xt);
|
|
5779
5842
|
/**
|
|
@@ -5787,7 +5850,7 @@ function* Or(r, t) {
|
|
|
5787
5850
|
for (const s of r) yield t(s, i++);
|
|
5788
5851
|
}
|
|
5789
5852
|
}
|
|
5790
|
-
var ra = Object.defineProperty, oa = Object.getOwnPropertyDescriptor,
|
|
5853
|
+
var ra = Object.defineProperty, oa = Object.getOwnPropertyDescriptor, ot = (r, t, i, s) => {
|
|
5791
5854
|
for (var e = s > 1 ? void 0 : s ? oa(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
5792
5855
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
5793
5856
|
return s && e && ra(t, i, e), e;
|
|
@@ -5893,7 +5956,7 @@ let X = class extends G(w) {
|
|
|
5893
5956
|
}
|
|
5894
5957
|
render() {
|
|
5895
5958
|
if (this.storeScrollPosition(), !Array.isArray(this.props))
|
|
5896
|
-
return
|
|
5959
|
+
return C;
|
|
5897
5960
|
let r = !this.noLazyload;
|
|
5898
5961
|
return this.props.length == 1 && (r = !1), this.style.display = "block", m`
|
|
5899
5962
|
${Or(this.props, (t, i) => {
|
|
@@ -5931,58 +5994,58 @@ let X = class extends G(w) {
|
|
|
5931
5994
|
}
|
|
5932
5995
|
};
|
|
5933
5996
|
X.instanceCounter = 0;
|
|
5934
|
-
|
|
5997
|
+
ot([
|
|
5935
5998
|
a({ type: Array })
|
|
5936
5999
|
], X.prototype, "templates", 2);
|
|
5937
|
-
|
|
6000
|
+
ot([
|
|
5938
6001
|
a({ type: Function })
|
|
5939
6002
|
], X.prototype, "items", 2);
|
|
5940
|
-
|
|
6003
|
+
ot([
|
|
5941
6004
|
a({ type: Function })
|
|
5942
6005
|
], X.prototype, "noItems", 2);
|
|
5943
|
-
|
|
6006
|
+
ot([
|
|
5944
6007
|
a({ type: Function })
|
|
5945
6008
|
], X.prototype, "skeleton", 2);
|
|
5946
|
-
|
|
6009
|
+
ot([
|
|
5947
6010
|
a({ type: Object })
|
|
5948
6011
|
], X.prototype, "itemPropertyMap", 2);
|
|
5949
|
-
|
|
6012
|
+
ot([
|
|
5950
6013
|
a()
|
|
5951
6014
|
], X.prototype, "cache", 2);
|
|
5952
|
-
|
|
6015
|
+
ot([
|
|
5953
6016
|
a()
|
|
5954
6017
|
], X.prototype, "targetRequestDuration", 2);
|
|
5955
|
-
|
|
6018
|
+
ot([
|
|
5956
6019
|
a()
|
|
5957
6020
|
], X.prototype, "limit", 2);
|
|
5958
|
-
|
|
6021
|
+
ot([
|
|
5959
6022
|
a()
|
|
5960
6023
|
], X.prototype, "lazyBoundsRatio", 2);
|
|
5961
|
-
|
|
6024
|
+
ot([
|
|
5962
6025
|
a()
|
|
5963
6026
|
], X.prototype, "offset", 2);
|
|
5964
|
-
|
|
6027
|
+
ot([
|
|
5965
6028
|
a()
|
|
5966
6029
|
], X.prototype, "resultCount", 2);
|
|
5967
|
-
|
|
6030
|
+
ot([
|
|
5968
6031
|
a({ type: Boolean })
|
|
5969
6032
|
], X.prototype, "noLazyload", 2);
|
|
5970
|
-
|
|
6033
|
+
ot([
|
|
5971
6034
|
a({ type: String })
|
|
5972
6035
|
], X.prototype, "loader", 2);
|
|
5973
|
-
|
|
6036
|
+
ot([
|
|
5974
6037
|
a()
|
|
5975
6038
|
], X.prototype, "filteredFields", 2);
|
|
5976
|
-
|
|
6039
|
+
ot([
|
|
5977
6040
|
a({ type: String })
|
|
5978
6041
|
], X.prototype, "dataProviderExpression", 2);
|
|
5979
|
-
|
|
6042
|
+
ot([
|
|
5980
6043
|
a({ type: Boolean })
|
|
5981
6044
|
], X.prototype, "invalidateOnPageShow", 2);
|
|
5982
|
-
|
|
6045
|
+
ot([
|
|
5983
6046
|
a({ type: String })
|
|
5984
6047
|
], X.prototype, "idKey", 2);
|
|
5985
|
-
X =
|
|
6048
|
+
X = ot([
|
|
5986
6049
|
_(na)
|
|
5987
6050
|
], X);
|
|
5988
6051
|
var aa = Object.defineProperty, la = Object.getOwnPropertyDescriptor, Ee = (r, t, i, s) => {
|
|
@@ -6000,7 +6063,7 @@ let Xt = class extends G(w) {
|
|
|
6000
6063
|
this.getAncestorAttributeValue("formDataProvider")
|
|
6001
6064
|
);
|
|
6002
6065
|
if (t.isFormValid = !0, t.invalidateForm(), !t.isFormValid.get()) return;
|
|
6003
|
-
if (this.disabled = !0,
|
|
6066
|
+
if (this.disabled = !0, at.show(), t.isFormValid, this.hasAttribute("native")) {
|
|
6004
6067
|
this.submitNativeForm();
|
|
6005
6068
|
return;
|
|
6006
6069
|
}
|
|
@@ -6044,7 +6107,7 @@ let Xt = class extends G(w) {
|
|
|
6044
6107
|
h = await this.api?.post(d, b, c);
|
|
6045
6108
|
break;
|
|
6046
6109
|
}
|
|
6047
|
-
|
|
6110
|
+
at.hide(), h ? h._sonic_http_response_ && !h._sonic_http_response_.ok && Object.keys(h).length === 1 && (h.messages = [{ content: "Network Error", status: "error" }]) : h = {
|
|
6048
6111
|
messages: [{ content: "Network Error", status: "error" }]
|
|
6049
6112
|
};
|
|
6050
6113
|
const x = this.getAncestorAttributeValue(
|
|
@@ -6053,9 +6116,9 @@ let Xt = class extends G(w) {
|
|
|
6053
6116
|
x && x.split(" ").forEach(
|
|
6054
6117
|
(f) => T.get(f).set({})
|
|
6055
6118
|
);
|
|
6056
|
-
const
|
|
6057
|
-
this.api?.lastResult?.ok && b[
|
|
6058
|
-
b[
|
|
6119
|
+
const S = this.hasAttribute("usernameKey") ? this.getAttribute("usernameKey") : "username", E = this.hasAttribute("passwordKey") ? this.getAttribute("passwordKey") : "password";
|
|
6120
|
+
this.api?.lastResult?.ok && b[S] && b[E] && this.saveCredentials(
|
|
6121
|
+
b[S],
|
|
6059
6122
|
b[E]
|
|
6060
6123
|
), this.submitResultKey && (h = tt.traverse(
|
|
6061
6124
|
h,
|
|
@@ -6079,7 +6142,7 @@ let Xt = class extends G(w) {
|
|
|
6079
6142
|
if (v) {
|
|
6080
6143
|
v.captchaToken = "request_token";
|
|
6081
6144
|
const b = (x) => {
|
|
6082
|
-
x != "request_token" ? (g(), v.captchaToken.offAssign(b)) : (
|
|
6145
|
+
x != "request_token" ? (g(), v.captchaToken.offAssign(b)) : (at.hide(), this.disabled = !1);
|
|
6083
6146
|
};
|
|
6084
6147
|
v.captchaToken.onAssign(b);
|
|
6085
6148
|
} else
|
|
@@ -6256,10 +6319,10 @@ let Se = class extends Je(w) {
|
|
|
6256
6319
|
style="display:contents"
|
|
6257
6320
|
dataProvider="${s}"
|
|
6258
6321
|
>
|
|
6259
|
-
${
|
|
6322
|
+
${Nt(i)}
|
|
6260
6323
|
</div>`;
|
|
6261
6324
|
}
|
|
6262
|
-
return
|
|
6325
|
+
return Nt(i);
|
|
6263
6326
|
}
|
|
6264
6327
|
)}`;
|
|
6265
6328
|
}
|
|
@@ -6391,10 +6454,10 @@ let Ye = class extends G(Je(w)) {
|
|
|
6391
6454
|
style="display:contents"
|
|
6392
6455
|
dataProvider="${o}"
|
|
6393
6456
|
>
|
|
6394
|
-
${
|
|
6457
|
+
${Nt(s)}
|
|
6395
6458
|
</div>`;
|
|
6396
6459
|
}
|
|
6397
|
-
return
|
|
6460
|
+
return Nt(s);
|
|
6398
6461
|
}
|
|
6399
6462
|
)}`;
|
|
6400
6463
|
}
|
|
@@ -6448,7 +6511,7 @@ Dr([
|
|
|
6448
6511
|
Xs = Dr([
|
|
6449
6512
|
_($a)
|
|
6450
6513
|
], 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" } },
|
|
6514
|
+
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
6515
|
checkbox: Ca,
|
|
6453
6516
|
date: Sa,
|
|
6454
6517
|
fieldset: Aa,
|
|
@@ -6459,8 +6522,8 @@ const Ca = { tagName: "sonic-checkbox" }, Sa = { tagName: "sonic-input", attribu
|
|
|
6459
6522
|
textarea: Ea,
|
|
6460
6523
|
textfield: Na,
|
|
6461
6524
|
hidden: Ta,
|
|
6462
|
-
button:
|
|
6463
|
-
form:
|
|
6525
|
+
button: Ia,
|
|
6526
|
+
form: Ma,
|
|
6464
6527
|
submit: ja,
|
|
6465
6528
|
email: Fa,
|
|
6466
6529
|
formItemContainer: za,
|
|
@@ -6470,7 +6533,7 @@ const Ca = { tagName: "sonic-checkbox" }, Sa = { tagName: "sonic-input", attribu
|
|
|
6470
6533
|
sameValueHelper: Ba,
|
|
6471
6534
|
divider: qa
|
|
6472
6535
|
};
|
|
6473
|
-
class
|
|
6536
|
+
class Ka {
|
|
6474
6537
|
/**
|
|
6475
6538
|
* Tranform un SDUIDescriptor via une SDUITransformDescription
|
|
6476
6539
|
* Attention fonction non pure : la sduiDescriptor est modifiée en place.
|
|
@@ -6615,13 +6678,13 @@ class Wa {
|
|
|
6615
6678
|
}));
|
|
6616
6679
|
}
|
|
6617
6680
|
}
|
|
6618
|
-
var
|
|
6681
|
+
var Wa = Object.defineProperty, Ya = Object.getOwnPropertyDescriptor, Ci = (r, t, i, s) => {
|
|
6619
6682
|
for (var e = s > 1 ? void 0 : s ? Ya(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
6620
6683
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
6621
|
-
return s && e &&
|
|
6684
|
+
return s && e && Wa(t, i, e), e;
|
|
6622
6685
|
};
|
|
6623
6686
|
const Za = "sonic-sdui";
|
|
6624
|
-
let xs = class extends $r(
|
|
6687
|
+
let xs = class extends $r(ie(w)) {
|
|
6625
6688
|
constructor() {
|
|
6626
6689
|
super(...arguments), this.sduiDescriptor = {};
|
|
6627
6690
|
}
|
|
@@ -6673,7 +6736,7 @@ let xs = class extends $r(se(w)) {
|
|
|
6673
6736
|
async transformSDUIDescriptor() {
|
|
6674
6737
|
if (!this.hasAttribute("transformation")) return;
|
|
6675
6738
|
const t = await (await fetch(this.getAttribute("transformation"))).json();
|
|
6676
|
-
await new
|
|
6739
|
+
await new Ka().transform(this.sduiDescriptor, t);
|
|
6677
6740
|
}
|
|
6678
6741
|
/**
|
|
6679
6742
|
* Charge la library à utiliser
|
|
@@ -6690,7 +6753,10 @@ let xs = class extends $r(se(w)) {
|
|
|
6690
6753
|
if (this.removeChildren(), !this.sduiDescriptor) return;
|
|
6691
6754
|
let r = this.sduiDescriptor.nodes;
|
|
6692
6755
|
r || (r = []);
|
|
6693
|
-
const t = {
|
|
6756
|
+
const t = {
|
|
6757
|
+
tagName: "sonic-toast-message-subscriber",
|
|
6758
|
+
attributes: {}
|
|
6759
|
+
};
|
|
6694
6760
|
this.messagesKey && (t.attributes = { subDataProvider: this.messagesKey }), r.push(t), r.forEach((i) => this.appendChild(this.parseChild(i)));
|
|
6695
6761
|
}
|
|
6696
6762
|
/**
|
|
@@ -6733,7 +6799,9 @@ let xs = class extends $r(se(w)) {
|
|
|
6733
6799
|
handleLibrary(r, t) {
|
|
6734
6800
|
let i, s;
|
|
6735
6801
|
if (r.libraryKey && this.sduiDescriptor.library) {
|
|
6736
|
-
i = this.parseChild(
|
|
6802
|
+
i = this.parseChild(
|
|
6803
|
+
this.sduiDescriptor.library[r.libraryKey] || { tagName: "div" }
|
|
6804
|
+
);
|
|
6737
6805
|
const e = (this.sduiDescriptor.library[r.libraryKey] || {}).contentElementSelector;
|
|
6738
6806
|
e && (s = i.querySelector(e));
|
|
6739
6807
|
} else i = document.createElement(t);
|
|
@@ -6782,7 +6850,7 @@ var Xa = Object.defineProperty, Ga = Object.getOwnPropertyDescriptor, Lr = (r, t
|
|
|
6782
6850
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
6783
6851
|
return s && e && Xa(t, i, e), e;
|
|
6784
6852
|
};
|
|
6785
|
-
let Ps = class extends
|
|
6853
|
+
let Ps = class extends ie(w) {
|
|
6786
6854
|
constructor() {
|
|
6787
6855
|
super(...arguments), this._composition = {}, this.listeners = [];
|
|
6788
6856
|
}
|
|
@@ -6860,7 +6928,7 @@ var Qa = Object.getOwnPropertyDescriptor, Ja = (r, t, i, s) => {
|
|
|
6860
6928
|
return e;
|
|
6861
6929
|
};
|
|
6862
6930
|
const tl = "sonic-value";
|
|
6863
|
-
let lr = class extends
|
|
6931
|
+
let lr = class extends ie(w) {
|
|
6864
6932
|
connectedCallback() {
|
|
6865
6933
|
this.setAttribute("subDataProvider", this.getAttribute("key")), super.connectedCallback();
|
|
6866
6934
|
}
|
|
@@ -6880,7 +6948,7 @@ var el = Object.defineProperty, sl = Object.getOwnPropertyDescriptor, Si = (r, t
|
|
|
6880
6948
|
const il = "sonic-t";
|
|
6881
6949
|
let $s = class extends w {
|
|
6882
6950
|
render() {
|
|
6883
|
-
return this.key ? m`${Lo(this.key, this.unsafeHTML)}` :
|
|
6951
|
+
return this.key ? m`${Lo(this.key, this.unsafeHTML)}` : C;
|
|
6884
6952
|
}
|
|
6885
6953
|
};
|
|
6886
6954
|
Si([
|
|
@@ -6898,7 +6966,7 @@ var rl = Object.defineProperty, ol = Object.getOwnPropertyDescriptor, os = (r, t
|
|
|
6898
6966
|
return s && e && rl(t, i, e), e;
|
|
6899
6967
|
};
|
|
6900
6968
|
const nl = "sonic-badge";
|
|
6901
|
-
let
|
|
6969
|
+
let ue = class extends w {
|
|
6902
6970
|
constructor() {
|
|
6903
6971
|
super(...arguments), this.type = "default", this.variant = "default", this.ellipsis = !1;
|
|
6904
6972
|
}
|
|
@@ -6910,7 +6978,7 @@ let pe = class extends w {
|
|
|
6910
6978
|
`;
|
|
6911
6979
|
}
|
|
6912
6980
|
};
|
|
6913
|
-
|
|
6981
|
+
ue.styles = [
|
|
6914
6982
|
Mt,
|
|
6915
6983
|
P`
|
|
6916
6984
|
:host {
|
|
@@ -7056,19 +7124,19 @@ pe.styles = [
|
|
|
7056
7124
|
];
|
|
7057
7125
|
os([
|
|
7058
7126
|
a({ type: String, reflect: !0 })
|
|
7059
|
-
],
|
|
7127
|
+
], ue.prototype, "type", 2);
|
|
7060
7128
|
os([
|
|
7061
7129
|
a({ type: String, reflect: !0 })
|
|
7062
|
-
],
|
|
7130
|
+
], ue.prototype, "variant", 2);
|
|
7063
7131
|
os([
|
|
7064
7132
|
a({ type: String, reflect: !0 })
|
|
7065
|
-
],
|
|
7133
|
+
], ue.prototype, "size", 2);
|
|
7066
7134
|
os([
|
|
7067
7135
|
a({ type: Boolean, reflect: !0 })
|
|
7068
|
-
],
|
|
7069
|
-
|
|
7136
|
+
], ue.prototype, "ellipsis", 2);
|
|
7137
|
+
ue = os([
|
|
7070
7138
|
_(nl)
|
|
7071
|
-
],
|
|
7139
|
+
], ue);
|
|
7072
7140
|
class al {
|
|
7073
7141
|
static fixBlankLink(t) {
|
|
7074
7142
|
const s = typeof require > "u" || typeof process != "object" ? null : require("electron");
|
|
@@ -7120,7 +7188,7 @@ let Gt = class extends w {
|
|
|
7120
7188
|
return this.href ? m`
|
|
7121
7189
|
<a
|
|
7122
7190
|
href="${this.href}"
|
|
7123
|
-
aria-label=${this.ariaLabel ||
|
|
7191
|
+
aria-label=${this.ariaLabel || C}
|
|
7124
7192
|
target=${$(this.target)}
|
|
7125
7193
|
@click=${this.pushState ? this.handlePushState : null}
|
|
7126
7194
|
>
|
|
@@ -7335,7 +7403,7 @@ const fl = P`
|
|
|
7335
7403
|
margin-bottom: 0.22em;
|
|
7336
7404
|
display: block;
|
|
7337
7405
|
}
|
|
7338
|
-
`,
|
|
7406
|
+
`, Is = P`
|
|
7339
7407
|
.form-description {
|
|
7340
7408
|
color: var(--sc-base-400, var(--sc-base-content, #000));
|
|
7341
7409
|
font-size: 0.85em;
|
|
@@ -7703,7 +7771,7 @@ const fl = P`
|
|
|
7703
7771
|
* Copyright 2018 Google LLC
|
|
7704
7772
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7705
7773
|
*/
|
|
7706
|
-
const ki =
|
|
7774
|
+
const ki = se(class extends De {
|
|
7707
7775
|
constructor(r) {
|
|
7708
7776
|
if (super(r), r.type !== be.ATTRIBUTE || r.name !== "class" || r.strings?.length > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
7709
7777
|
}
|
|
@@ -7879,7 +7947,7 @@ let j = class extends Es(Le(G(w))) {
|
|
|
7879
7947
|
name="description"
|
|
7880
7948
|
@slotchange=${this.hasSlotOrProps}
|
|
7881
7949
|
class="${this.hasDescription ? "form-description" : "hidden"}"
|
|
7882
|
-
>${this.description ? m`${z(this.description)}` :
|
|
7950
|
+
>${this.description ? m`${z(this.description)}` : C}</slot>
|
|
7883
7951
|
<slot name="list"></slot>
|
|
7884
7952
|
</div>
|
|
7885
7953
|
`;
|
|
@@ -7889,7 +7957,7 @@ j.styles = [
|
|
|
7889
7957
|
Mt,
|
|
7890
7958
|
Ai,
|
|
7891
7959
|
Ts,
|
|
7892
|
-
|
|
7960
|
+
Is,
|
|
7893
7961
|
fl,
|
|
7894
7962
|
P`
|
|
7895
7963
|
:host([type="hidden"]) {
|
|
@@ -7965,22 +8033,22 @@ U([
|
|
|
7965
8033
|
dt({ slot: "prefix", flatten: !0 })
|
|
7966
8034
|
], j.prototype, "slotPrefixNodes", 2);
|
|
7967
8035
|
U([
|
|
7968
|
-
|
|
8036
|
+
ee("input")
|
|
7969
8037
|
], j.prototype, "input", 2);
|
|
7970
8038
|
U([
|
|
7971
|
-
|
|
8039
|
+
D()
|
|
7972
8040
|
], j.prototype, "hasDescription", 2);
|
|
7973
8041
|
U([
|
|
7974
|
-
|
|
8042
|
+
D()
|
|
7975
8043
|
], j.prototype, "hasLabel", 2);
|
|
7976
8044
|
U([
|
|
7977
|
-
|
|
8045
|
+
D()
|
|
7978
8046
|
], j.prototype, "hasSuffix", 2);
|
|
7979
8047
|
U([
|
|
7980
|
-
|
|
8048
|
+
D()
|
|
7981
8049
|
], j.prototype, "hasPrefix", 2);
|
|
7982
8050
|
U([
|
|
7983
|
-
|
|
8051
|
+
D()
|
|
7984
8052
|
], j.prototype, "isPassword", 2);
|
|
7985
8053
|
j = U([
|
|
7986
8054
|
_(bl)
|
|
@@ -8087,8 +8155,8 @@ let it = class extends w {
|
|
|
8087
8155
|
window.innerHeight,
|
|
8088
8156
|
l?.bottom || window.innerHeight
|
|
8089
8157
|
) - e, g = o.left, v = o.top;
|
|
8090
|
-
let b = g, x = v,
|
|
8091
|
-
const E = v -
|
|
8158
|
+
let b = g, x = v, S = this.popContent?.getBoundingClientRect();
|
|
8159
|
+
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
8160
|
switch (i) {
|
|
8093
8161
|
case "bottom":
|
|
8094
8162
|
x = y, s == "center" && (b = A);
|
|
@@ -8103,16 +8171,16 @@ let it = class extends w {
|
|
|
8103
8171
|
b = f, s == "center" && (x = k);
|
|
8104
8172
|
break;
|
|
8105
8173
|
}
|
|
8106
|
-
this.lastContentX += b -
|
|
8174
|
+
this.lastContentX += b - S.x, this.lastContentY += x - S.y, Object.assign(this.popContent.style, {
|
|
8107
8175
|
left: `${this.lastContentX}px`,
|
|
8108
8176
|
top: `${this.lastContentY}px`
|
|
8109
|
-
}),
|
|
8177
|
+
}), 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
8178
|
left: `${this.lastContentX}px`,
|
|
8111
8179
|
top: `${this.lastContentY}px`
|
|
8112
|
-
}),
|
|
8180
|
+
}), 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
8181
|
left: `${this.lastContentX}px`,
|
|
8114
8182
|
top: `${this.lastContentY}px`
|
|
8115
|
-
}),
|
|
8183
|
+
}), 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
8184
|
left: `${this.lastContentX}px`,
|
|
8117
8185
|
top: `${this.lastContentY}px`
|
|
8118
8186
|
});
|
|
@@ -8175,13 +8243,13 @@ it.styles = [
|
|
|
8175
8243
|
Er
|
|
8176
8244
|
];
|
|
8177
8245
|
jt([
|
|
8178
|
-
|
|
8246
|
+
D()
|
|
8179
8247
|
], it.prototype, "open", 2);
|
|
8180
8248
|
jt([
|
|
8181
|
-
|
|
8249
|
+
ee("slot:not([name=content])")
|
|
8182
8250
|
], it.prototype, "popBtn", 2);
|
|
8183
8251
|
jt([
|
|
8184
|
-
|
|
8252
|
+
ee("slot[name=content]")
|
|
8185
8253
|
], it.prototype, "popContent", 2);
|
|
8186
8254
|
jt([
|
|
8187
8255
|
a({ type: Boolean })
|
|
@@ -8199,7 +8267,7 @@ jt([
|
|
|
8199
8267
|
a({ type: String })
|
|
8200
8268
|
], it.prototype, "placement", 2);
|
|
8201
8269
|
jt([
|
|
8202
|
-
|
|
8270
|
+
D()
|
|
8203
8271
|
], it.prototype, "triggerElement", 2);
|
|
8204
8272
|
it = jt([
|
|
8205
8273
|
_(wl)
|
|
@@ -8210,7 +8278,7 @@ var _l = Object.getOwnPropertyDescriptor, xl = (r, t, i, s) => {
|
|
|
8210
8278
|
return e;
|
|
8211
8279
|
};
|
|
8212
8280
|
const Pl = "sonic-menu-item";
|
|
8213
|
-
let cr = class extends
|
|
8281
|
+
let cr = class extends M {
|
|
8214
8282
|
constructor() {
|
|
8215
8283
|
super();
|
|
8216
8284
|
}
|
|
@@ -8256,13 +8324,13 @@ class Nr {
|
|
|
8256
8324
|
this.u.disconnect();
|
|
8257
8325
|
}
|
|
8258
8326
|
}
|
|
8259
|
-
var $l = Object.defineProperty, Cl = Object.getOwnPropertyDescriptor,
|
|
8327
|
+
var $l = Object.defineProperty, Cl = Object.getOwnPropertyDescriptor, pt = (r, t, i, s) => {
|
|
8260
8328
|
for (var e = s > 1 ? void 0 : s ? Cl(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
8261
8329
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
8262
8330
|
return s && e && $l(t, i, e), e;
|
|
8263
8331
|
};
|
|
8264
|
-
let
|
|
8265
|
-
Sr(Cr(
|
|
8332
|
+
let rt = class extends Pi(
|
|
8333
|
+
Sr(Cr(ie(w)))
|
|
8266
8334
|
) {
|
|
8267
8335
|
constructor() {
|
|
8268
8336
|
super(...arguments), this.size = "md", this.placeholder = "", this.filteredFields = "", this.readonly = null, this.dataProviderExpression = "", this.minSearchLength = 0, this.key = "", this.searchParameter = "", this.propertyName = "", this.hasInputPrefix = !1, this._resizeController = new Nr(this, {}), this.isPopVisible = !1, this.searchDataProvider = "", this.initSearchDataProvider = "", this.queueDataProvider = "", this.initQueueDataProvider = "", this.lastValidSearch = "", this.updateSearchParameter = (r) => {
|
|
@@ -8310,7 +8378,7 @@ let at = class extends Pi(
|
|
|
8310
8378
|
const r = this.searchParameter || this.name, t = this.getAncestorAttributeValue("formDataProvider"), i = t + "__" + this.name + "__autocomplete";
|
|
8311
8379
|
this.initSearchDataProvider = `${i}_init_search__`, this.initQueueDataProvider = `${i}_init_queue__`, this.searchDataProvider = `${i}_search__`, this.queueDataProvider = `${i}_queue__`;
|
|
8312
8380
|
const s = st.get;
|
|
8313
|
-
this.searchPublisher = s(this.searchDataProvider)[r], this.formValuePublisher =
|
|
8381
|
+
this.searchPublisher = s(this.searchDataProvider)[r], this.formValuePublisher = ut(
|
|
8314
8382
|
s(t),
|
|
8315
8383
|
this.name
|
|
8316
8384
|
), this.countPublisher = s(this.queueDataProvider).resultCount, this.initCountPublisher = s(
|
|
@@ -8355,9 +8423,12 @@ let at = class extends Pi(
|
|
|
8355
8423
|
getInputValue() {
|
|
8356
8424
|
return this.isSearchParameter() ? this.searchPublisher?.get() : this.lastValidSearch;
|
|
8357
8425
|
}
|
|
8426
|
+
handleFocus() {
|
|
8427
|
+
this.popElement.show();
|
|
8428
|
+
}
|
|
8358
8429
|
render() {
|
|
8359
8430
|
return m`
|
|
8360
|
-
<sonic-pop
|
|
8431
|
+
<sonic-pop manual style="display:block;" @hide=${this.handleHide}>
|
|
8361
8432
|
<sonic-input
|
|
8362
8433
|
class="form-element"
|
|
8363
8434
|
dataProvider="${this.initSearchDataProvider + Math.random()}"
|
|
@@ -8375,6 +8446,7 @@ let at = class extends Pi(
|
|
|
8375
8446
|
clearable
|
|
8376
8447
|
inlineContent
|
|
8377
8448
|
size=${this.size}
|
|
8449
|
+
@focus=${this.handleFocus}
|
|
8378
8450
|
value=${$(this.getInputValue())}
|
|
8379
8451
|
>
|
|
8380
8452
|
<slot
|
|
@@ -8390,7 +8462,7 @@ let at = class extends Pi(
|
|
|
8390
8462
|
name="nav-arrow-down"
|
|
8391
8463
|
.size=${this.size}
|
|
8392
8464
|
></sonic-icon>
|
|
8393
|
-
` :
|
|
8465
|
+
` : C}
|
|
8394
8466
|
</sonic-input>
|
|
8395
8467
|
<sonic-menu
|
|
8396
8468
|
slot="content"
|
|
@@ -8423,7 +8495,7 @@ let at = class extends Pi(
|
|
|
8423
8495
|
`;
|
|
8424
8496
|
}
|
|
8425
8497
|
};
|
|
8426
|
-
|
|
8498
|
+
rt.styles = [
|
|
8427
8499
|
ss,
|
|
8428
8500
|
P`
|
|
8429
8501
|
:host {
|
|
@@ -8448,58 +8520,61 @@ at.styles = [
|
|
|
8448
8520
|
}
|
|
8449
8521
|
`
|
|
8450
8522
|
];
|
|
8451
|
-
|
|
8523
|
+
pt([
|
|
8452
8524
|
a({ type: String })
|
|
8453
|
-
],
|
|
8454
|
-
|
|
8525
|
+
], rt.prototype, "size", 2);
|
|
8526
|
+
pt([
|
|
8455
8527
|
a({ type: String })
|
|
8456
|
-
],
|
|
8457
|
-
|
|
8528
|
+
], rt.prototype, "placeholder", 2);
|
|
8529
|
+
pt([
|
|
8458
8530
|
a()
|
|
8459
|
-
],
|
|
8460
|
-
|
|
8531
|
+
], rt.prototype, "filteredFields", 2);
|
|
8532
|
+
pt([
|
|
8461
8533
|
a({ type: Boolean, reflect: !0 })
|
|
8462
|
-
],
|
|
8463
|
-
|
|
8534
|
+
], rt.prototype, "readonly", 2);
|
|
8535
|
+
pt([
|
|
8464
8536
|
a({ type: String })
|
|
8465
|
-
],
|
|
8466
|
-
|
|
8537
|
+
], rt.prototype, "dataProviderExpression", 2);
|
|
8538
|
+
pt([
|
|
8467
8539
|
a({ type: Number })
|
|
8468
|
-
],
|
|
8469
|
-
|
|
8540
|
+
], rt.prototype, "minSearchLength", 2);
|
|
8541
|
+
pt([
|
|
8470
8542
|
a({ type: Boolean })
|
|
8471
|
-
],
|
|
8472
|
-
|
|
8543
|
+
], rt.prototype, "select", 2);
|
|
8544
|
+
pt([
|
|
8473
8545
|
a({ type: String })
|
|
8474
|
-
],
|
|
8475
|
-
|
|
8546
|
+
], rt.prototype, "key", 2);
|
|
8547
|
+
pt([
|
|
8476
8548
|
a({ type: String })
|
|
8477
|
-
],
|
|
8478
|
-
|
|
8549
|
+
], rt.prototype, "searchParameter", 2);
|
|
8550
|
+
pt([
|
|
8479
8551
|
a({ type: String })
|
|
8480
|
-
],
|
|
8481
|
-
|
|
8552
|
+
], rt.prototype, "propertyName", 2);
|
|
8553
|
+
pt([
|
|
8482
8554
|
dt({ slot: "prefix", flatten: !0 })
|
|
8483
|
-
],
|
|
8484
|
-
|
|
8485
|
-
|
|
8486
|
-
],
|
|
8487
|
-
|
|
8488
|
-
|
|
8489
|
-
],
|
|
8490
|
-
|
|
8491
|
-
|
|
8492
|
-
],
|
|
8493
|
-
|
|
8555
|
+
], rt.prototype, "slotInputPrefixNodes", 2);
|
|
8556
|
+
pt([
|
|
8557
|
+
D()
|
|
8558
|
+
], rt.prototype, "hasInputPrefix", 2);
|
|
8559
|
+
pt([
|
|
8560
|
+
ee("sonic-pop")
|
|
8561
|
+
], rt.prototype, "popElement", 2);
|
|
8562
|
+
pt([
|
|
8563
|
+
D()
|
|
8564
|
+
], rt.prototype, "isPopVisible", 2);
|
|
8565
|
+
pt([
|
|
8566
|
+
D()
|
|
8567
|
+
], rt.prototype, "lastValidSearch", 2);
|
|
8568
|
+
rt = pt([
|
|
8494
8569
|
_("sonic-input-autocomplete")
|
|
8495
|
-
],
|
|
8570
|
+
], rt);
|
|
8496
8571
|
var Sl = Object.defineProperty, Al = Object.getOwnPropertyDescriptor, gt = (r, t, i, s) => {
|
|
8497
8572
|
for (var e = s > 1 ? void 0 : s ? Al(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
8498
8573
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
8499
8574
|
return s && e && Sl(t, i, e), e;
|
|
8500
8575
|
};
|
|
8501
8576
|
const kl = "sonic-password-helper";
|
|
8502
|
-
let lt = class extends
|
|
8577
|
+
let lt = class extends ie(w) {
|
|
8503
8578
|
constructor() {
|
|
8504
8579
|
super(...arguments), this.minChars = 8, this.hasNoChar = !0, this.hasEnoughChars = !1, this.hasMinuscule = !1, this.hasMajuscule = !1, this.hasNumber = !1, this.hasSpecialChar = !1, this.wording_password_helper_decription = "Le mot de passe doit contenir au moins :", this.wording_password_helper_min_length = "8 caractères", this.wording_password_helper_lower_case = "1 minuscule", this.wording_password_helper_upper_case = "1 majuscule", this.wording_password_helper_number = "1 chiffre", this.wording_password_helper_special_char = "1 caractère spécial";
|
|
8505
8580
|
}
|
|
@@ -8515,7 +8590,7 @@ let lt = class extends se(w) {
|
|
|
8515
8590
|
return t ? m`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>` : m`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`;
|
|
8516
8591
|
}
|
|
8517
8592
|
render() {
|
|
8518
|
-
return this.hasNoChar ?
|
|
8593
|
+
return this.hasNoChar ? C : m`
|
|
8519
8594
|
<div>${this.wording_password_helper_decription}</div>
|
|
8520
8595
|
<div>
|
|
8521
8596
|
${this.getIcon(this.hasEnoughChars)}
|
|
@@ -8546,22 +8621,22 @@ gt([
|
|
|
8546
8621
|
a()
|
|
8547
8622
|
], lt.prototype, "minChars", 2);
|
|
8548
8623
|
gt([
|
|
8549
|
-
|
|
8624
|
+
D()
|
|
8550
8625
|
], lt.prototype, "hasNoChar", 2);
|
|
8551
8626
|
gt([
|
|
8552
|
-
|
|
8627
|
+
D()
|
|
8553
8628
|
], lt.prototype, "hasEnoughChars", 2);
|
|
8554
8629
|
gt([
|
|
8555
|
-
|
|
8630
|
+
D()
|
|
8556
8631
|
], lt.prototype, "hasMinuscule", 2);
|
|
8557
8632
|
gt([
|
|
8558
|
-
|
|
8633
|
+
D()
|
|
8559
8634
|
], lt.prototype, "hasMajuscule", 2);
|
|
8560
8635
|
gt([
|
|
8561
|
-
|
|
8636
|
+
D()
|
|
8562
8637
|
], lt.prototype, "hasNumber", 2);
|
|
8563
8638
|
gt([
|
|
8564
|
-
|
|
8639
|
+
D()
|
|
8565
8640
|
], lt.prototype, "hasSpecialChar", 2);
|
|
8566
8641
|
gt([
|
|
8567
8642
|
a()
|
|
@@ -8590,7 +8665,7 @@ var Ol = Object.defineProperty, Dl = Object.getOwnPropertyDescriptor, ve = (r, t
|
|
|
8590
8665
|
return s && e && Ol(t, i, e), e;
|
|
8591
8666
|
};
|
|
8592
8667
|
const Ll = "sonic-same-value-helper";
|
|
8593
|
-
let Jt = class extends
|
|
8668
|
+
let Jt = class extends ie(w) {
|
|
8594
8669
|
constructor() {
|
|
8595
8670
|
super(...arguments), this.descriptionWhenEqual = "Correspondance : oui", this.descriptionWhenNotEqual = "Correspondance : non", this.areEqual = !1, this.hasNoChar = !0;
|
|
8596
8671
|
}
|
|
@@ -8600,10 +8675,10 @@ let Jt = class extends se(w) {
|
|
|
8600
8675
|
this.getAncestorAttributeValue("formDataProvider")
|
|
8601
8676
|
);
|
|
8602
8677
|
this.name && this.sameValueAs && (this.checkValue = (t) => {
|
|
8603
|
-
t ? this.hasNoChar = t.length == 0 : this.hasNoChar = !0, this.name && this.sameValueAs && (this.areEqual =
|
|
8604
|
-
},
|
|
8678
|
+
t ? this.hasNoChar = t.length == 0 : this.hasNoChar = !0, this.name && this.sameValueAs && (this.areEqual = ut(r, this.name).get() == ut(r, this.sameValueAs).get());
|
|
8679
|
+
}, ut(r, this.name).onAssign(
|
|
8605
8680
|
this.checkValue
|
|
8606
|
-
),
|
|
8681
|
+
), ut(r, this.sameValueAs).onAssign(
|
|
8607
8682
|
this.checkValue
|
|
8608
8683
|
));
|
|
8609
8684
|
}
|
|
@@ -8612,9 +8687,9 @@ let Jt = class extends se(w) {
|
|
|
8612
8687
|
const r = st.get(
|
|
8613
8688
|
this.getAncestorAttributeValue("formDataProvider")
|
|
8614
8689
|
);
|
|
8615
|
-
|
|
8690
|
+
ut(r, this.name).offAssign(
|
|
8616
8691
|
this.checkValue
|
|
8617
|
-
),
|
|
8692
|
+
), ut(r, this.sameValueAs).offAssign(
|
|
8618
8693
|
this.checkValue
|
|
8619
8694
|
);
|
|
8620
8695
|
}
|
|
@@ -8622,7 +8697,7 @@ let Jt = class extends se(w) {
|
|
|
8622
8697
|
}
|
|
8623
8698
|
//TODO Multilangue
|
|
8624
8699
|
render() {
|
|
8625
|
-
return this.hasNoChar ?
|
|
8700
|
+
return this.hasNoChar ? C : m`
|
|
8626
8701
|
<span>
|
|
8627
8702
|
${this.areEqual ? z(this.descriptionWhenEqual) : z(this.descriptionWhenNotEqual)}
|
|
8628
8703
|
</span>
|
|
@@ -8642,21 +8717,21 @@ ve([
|
|
|
8642
8717
|
a()
|
|
8643
8718
|
], Jt.prototype, "descriptionWhenNotEqual", 2);
|
|
8644
8719
|
ve([
|
|
8645
|
-
|
|
8720
|
+
D()
|
|
8646
8721
|
], Jt.prototype, "areEqual", 2);
|
|
8647
8722
|
ve([
|
|
8648
|
-
|
|
8723
|
+
D()
|
|
8649
8724
|
], Jt.prototype, "hasNoChar", 2);
|
|
8650
8725
|
Jt = ve([
|
|
8651
8726
|
_(Ll)
|
|
8652
8727
|
], Jt);
|
|
8653
|
-
var El = Object.defineProperty, Nl = Object.getOwnPropertyDescriptor,
|
|
8728
|
+
var El = Object.defineProperty, Nl = Object.getOwnPropertyDescriptor, Wt = (r, t, i, s) => {
|
|
8654
8729
|
for (var e = s > 1 ? void 0 : s ? Nl(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
8655
8730
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
8656
8731
|
return s && e && El(t, i, e), e;
|
|
8657
8732
|
};
|
|
8658
8733
|
const Tl = "sonic-checkbox";
|
|
8659
|
-
let
|
|
8734
|
+
let mt = class extends _i(
|
|
8660
8735
|
Es(Le(G(w)))
|
|
8661
8736
|
) {
|
|
8662
8737
|
constructor() {
|
|
@@ -8666,7 +8741,7 @@ let ft = class extends _i(
|
|
|
8666
8741
|
this.type = "checkbox", this.hasSlotOrProps(), super.connectedCallback();
|
|
8667
8742
|
}
|
|
8668
8743
|
willUpdate(r) {
|
|
8669
|
-
this.hasSlotOrProps(), super.willUpdate(r);
|
|
8744
|
+
this.hasSlotOrProps(), super.willUpdate(r), r.has("type") && (this.type = "checkbox");
|
|
8670
8745
|
}
|
|
8671
8746
|
hasSlotOrProps() {
|
|
8672
8747
|
this.hasLabel = !!(this.label || this.slotLabelNodes?.length), this.hasDescription = !!(this.description || this.slotDescriptionNodes?.length);
|
|
@@ -8706,7 +8781,7 @@ let ft = class extends _i(
|
|
|
8706
8781
|
`;
|
|
8707
8782
|
}
|
|
8708
8783
|
};
|
|
8709
|
-
|
|
8784
|
+
mt.styles = [
|
|
8710
8785
|
Mt,
|
|
8711
8786
|
P`
|
|
8712
8787
|
:host {
|
|
@@ -8832,49 +8907,53 @@ ft.styles = [
|
|
|
8832
8907
|
}
|
|
8833
8908
|
`
|
|
8834
8909
|
];
|
|
8835
|
-
|
|
8910
|
+
Wt([
|
|
8836
8911
|
a({ type: Boolean, reflect: !0 })
|
|
8837
|
-
],
|
|
8838
|
-
|
|
8912
|
+
], mt.prototype, "touched", 2);
|
|
8913
|
+
Wt([
|
|
8839
8914
|
a({ type: String })
|
|
8840
|
-
],
|
|
8841
|
-
|
|
8915
|
+
], mt.prototype, "iconName", 2);
|
|
8916
|
+
Wt([
|
|
8842
8917
|
a({ type: String })
|
|
8843
|
-
],
|
|
8844
|
-
|
|
8918
|
+
], mt.prototype, "indeterminateIconName", 2);
|
|
8919
|
+
Wt([
|
|
8845
8920
|
a({ type: Boolean })
|
|
8846
|
-
],
|
|
8847
|
-
|
|
8921
|
+
], mt.prototype, "showAsIndeterminate", 2);
|
|
8922
|
+
Wt([
|
|
8848
8923
|
a({ type: Boolean })
|
|
8849
|
-
],
|
|
8850
|
-
|
|
8924
|
+
], mt.prototype, "hasDescription", 2);
|
|
8925
|
+
Wt([
|
|
8851
8926
|
a({ type: Boolean })
|
|
8852
|
-
],
|
|
8853
|
-
|
|
8927
|
+
], mt.prototype, "hasLabel", 2);
|
|
8928
|
+
Wt([
|
|
8854
8929
|
dt({ flatten: !0 })
|
|
8855
|
-
],
|
|
8856
|
-
|
|
8930
|
+
], mt.prototype, "slotLabelNodes", 2);
|
|
8931
|
+
Wt([
|
|
8857
8932
|
dt({ slot: "description", flatten: !0 })
|
|
8858
|
-
],
|
|
8859
|
-
|
|
8933
|
+
], mt.prototype, "slotDescriptionNodes", 2);
|
|
8934
|
+
mt = Wt([
|
|
8860
8935
|
_(Tl)
|
|
8861
|
-
],
|
|
8862
|
-
var
|
|
8863
|
-
for (var e = s > 1 ? void 0 : s ?
|
|
8936
|
+
], mt);
|
|
8937
|
+
var Il = Object.getOwnPropertyDescriptor, Ml = (r, t, i, s) => {
|
|
8938
|
+
for (var e = s > 1 ? void 0 : s ? Il(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
8864
8939
|
(n = r[o]) && (e = n(e) || e);
|
|
8865
8940
|
return e;
|
|
8866
8941
|
};
|
|
8867
8942
|
const jl = "sonic-radio";
|
|
8868
|
-
let Gs = class extends
|
|
8943
|
+
let Gs = class extends mt {
|
|
8869
8944
|
constructor() {
|
|
8870
8945
|
super(), this.radio = !0;
|
|
8871
8946
|
}
|
|
8947
|
+
willUpdate(r) {
|
|
8948
|
+
const t = r.has("type");
|
|
8949
|
+
super.willUpdate(r), t && (this.type = "radio");
|
|
8950
|
+
}
|
|
8872
8951
|
connectedCallback() {
|
|
8873
8952
|
super.connectedCallback(), this.type = "radio";
|
|
8874
8953
|
}
|
|
8875
8954
|
};
|
|
8876
8955
|
Gs.styles = [
|
|
8877
|
-
|
|
8956
|
+
mt.styles,
|
|
8878
8957
|
P`
|
|
8879
8958
|
:host input {
|
|
8880
8959
|
border-radius: 50%;
|
|
@@ -8893,7 +8972,7 @@ Gs.styles = [
|
|
|
8893
8972
|
}
|
|
8894
8973
|
`
|
|
8895
8974
|
];
|
|
8896
|
-
Gs =
|
|
8975
|
+
Gs = Ml([
|
|
8897
8976
|
_(jl)
|
|
8898
8977
|
], Gs);
|
|
8899
8978
|
var Fl = Object.getOwnPropertyDescriptor, zl = (r, t, i, s) => {
|
|
@@ -8902,13 +8981,13 @@ var Fl = Object.getOwnPropertyDescriptor, zl = (r, t, i, s) => {
|
|
|
8902
8981
|
return e;
|
|
8903
8982
|
};
|
|
8904
8983
|
const Rl = "sonic-switch";
|
|
8905
|
-
let Qs = class extends
|
|
8984
|
+
let Qs = class extends mt {
|
|
8906
8985
|
constructor() {
|
|
8907
8986
|
super(), this.unique = !0;
|
|
8908
8987
|
}
|
|
8909
8988
|
};
|
|
8910
8989
|
Qs.styles = [
|
|
8911
|
-
|
|
8990
|
+
mt.styles,
|
|
8912
8991
|
P`
|
|
8913
8992
|
sonic-icon {
|
|
8914
8993
|
display: none;
|
|
@@ -8985,7 +9064,7 @@ var Ul = Object.defineProperty, Vl = Object.getOwnPropertyDescriptor, Q = (r, t,
|
|
|
8985
9064
|
return s && e && Ul(t, i, e), e;
|
|
8986
9065
|
};
|
|
8987
9066
|
const Bl = "sonic-select";
|
|
8988
|
-
let
|
|
9067
|
+
let K = class extends Le(G(w)) {
|
|
8989
9068
|
constructor() {
|
|
8990
9069
|
super(...arguments), this.valueKey = "value", this.wordingKey = "wording", this.multiple = !1, this.status = "default", this._options = [], this.hasDoneFirstUpdate = !1, this._value = "", this.updateOptions = () => {
|
|
8991
9070
|
const r = this.querySelectorAll(
|
|
@@ -9117,11 +9196,11 @@ let W = class extends Le(G(w)) {
|
|
|
9117
9196
|
`;
|
|
9118
9197
|
}
|
|
9119
9198
|
};
|
|
9120
|
-
|
|
9199
|
+
K.styles = [
|
|
9121
9200
|
Mt,
|
|
9122
9201
|
Ai,
|
|
9123
9202
|
Ts,
|
|
9124
|
-
|
|
9203
|
+
Is,
|
|
9125
9204
|
P`
|
|
9126
9205
|
.form-element {
|
|
9127
9206
|
appearance: none;
|
|
@@ -9179,70 +9258,70 @@ W.styles = [
|
|
|
9179
9258
|
];
|
|
9180
9259
|
Q([
|
|
9181
9260
|
a({ type: String })
|
|
9182
|
-
],
|
|
9261
|
+
], K.prototype, "valueKey", 2);
|
|
9183
9262
|
Q([
|
|
9184
9263
|
a({ type: String })
|
|
9185
|
-
],
|
|
9264
|
+
], K.prototype, "wordingKey", 2);
|
|
9186
9265
|
Q([
|
|
9187
9266
|
a({ type: Boolean })
|
|
9188
|
-
],
|
|
9267
|
+
], K.prototype, "multiple", 2);
|
|
9189
9268
|
Q([
|
|
9190
9269
|
a({ type: String, reflect: !0 })
|
|
9191
|
-
],
|
|
9270
|
+
], K.prototype, "size", 2);
|
|
9192
9271
|
Q([
|
|
9193
9272
|
a({ type: Number })
|
|
9194
|
-
],
|
|
9273
|
+
], K.prototype, "selectSize", 2);
|
|
9195
9274
|
Q([
|
|
9196
9275
|
a({ type: String, reflect: !0 })
|
|
9197
|
-
],
|
|
9276
|
+
], K.prototype, "status", 2);
|
|
9198
9277
|
Q([
|
|
9199
9278
|
a({ type: Array })
|
|
9200
|
-
],
|
|
9279
|
+
], K.prototype, "options", 1);
|
|
9201
9280
|
Q([
|
|
9202
9281
|
a({ reflect: !0 })
|
|
9203
|
-
],
|
|
9282
|
+
], K.prototype, "value", 1);
|
|
9204
9283
|
Q([
|
|
9205
9284
|
a({ type: Boolean })
|
|
9206
|
-
],
|
|
9285
|
+
], K.prototype, "forceAutoFill", 2);
|
|
9207
9286
|
Q([
|
|
9208
9287
|
a()
|
|
9209
|
-
],
|
|
9288
|
+
], K.prototype, "description", 1);
|
|
9210
9289
|
Q([
|
|
9211
9290
|
a()
|
|
9212
|
-
],
|
|
9291
|
+
], K.prototype, "label", 1);
|
|
9213
9292
|
Q([
|
|
9214
9293
|
dt({ slot: "label", flatten: !0 })
|
|
9215
|
-
],
|
|
9294
|
+
], K.prototype, "slotLabelNodes", 2);
|
|
9216
9295
|
Q([
|
|
9217
9296
|
dt({ slot: "description", flatten: !0 })
|
|
9218
|
-
],
|
|
9297
|
+
], K.prototype, "slotDescriptionNodes", 2);
|
|
9219
9298
|
Q([
|
|
9220
9299
|
dt({ slot: "suffix", flatten: !0 })
|
|
9221
|
-
],
|
|
9300
|
+
], K.prototype, "slotSuffixNodes", 2);
|
|
9222
9301
|
Q([
|
|
9223
9302
|
dt({ slot: "prefix", flatten: !0 })
|
|
9224
|
-
],
|
|
9303
|
+
], K.prototype, "slotPrefixNodes", 2);
|
|
9225
9304
|
Q([
|
|
9226
|
-
|
|
9227
|
-
],
|
|
9305
|
+
D()
|
|
9306
|
+
], K.prototype, "hasDescription", 2);
|
|
9228
9307
|
Q([
|
|
9229
|
-
|
|
9230
|
-
],
|
|
9308
|
+
D()
|
|
9309
|
+
], K.prototype, "hasLabel", 2);
|
|
9231
9310
|
Q([
|
|
9232
|
-
|
|
9233
|
-
],
|
|
9311
|
+
D()
|
|
9312
|
+
], K.prototype, "hasSuffix", 2);
|
|
9234
9313
|
Q([
|
|
9235
|
-
|
|
9236
|
-
],
|
|
9237
|
-
|
|
9314
|
+
D()
|
|
9315
|
+
], K.prototype, "hasPrefix", 2);
|
|
9316
|
+
K = Q([
|
|
9238
9317
|
_(Bl)
|
|
9239
|
-
],
|
|
9318
|
+
], K);
|
|
9240
9319
|
var ql = Object.defineProperty, Hl = Object.getOwnPropertyDescriptor, bt = (r, t, i, s) => {
|
|
9241
9320
|
for (var e = s > 1 ? void 0 : s ? Hl(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
9242
9321
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
9243
9322
|
return s && e && ql(t, i, e), e;
|
|
9244
9323
|
};
|
|
9245
|
-
const
|
|
9324
|
+
const Kl = "sonic-textarea";
|
|
9246
9325
|
let ct = class extends Es(Le(G(w))) {
|
|
9247
9326
|
constructor() {
|
|
9248
9327
|
super(...arguments), this.size = "md", this.readonly = !1, this.resize = "vertical", this.hasDescription = !1, this.hasLabel = !1;
|
|
@@ -9303,7 +9382,7 @@ let ct = class extends Es(Le(G(w))) {
|
|
|
9303
9382
|
class="form-element textarea custom-scroll"
|
|
9304
9383
|
aria-label=${$(this.ariaLabel)}
|
|
9305
9384
|
aria-labelledby=${$(this.ariaLabelledby)}
|
|
9306
|
-
style=${
|
|
9385
|
+
style=${ft(r)}
|
|
9307
9386
|
>
|
|
9308
9387
|
${this.value}</textarea
|
|
9309
9388
|
>
|
|
@@ -9322,7 +9401,7 @@ ct.styles = [
|
|
|
9322
9401
|
Mt,
|
|
9323
9402
|
Ai,
|
|
9324
9403
|
Ts,
|
|
9325
|
-
|
|
9404
|
+
Is,
|
|
9326
9405
|
ss,
|
|
9327
9406
|
P`
|
|
9328
9407
|
textarea {
|
|
@@ -9365,16 +9444,16 @@ bt([
|
|
|
9365
9444
|
dt({ slot: "description", flatten: !0 })
|
|
9366
9445
|
], ct.prototype, "slotDescriptionNodes", 2);
|
|
9367
9446
|
bt([
|
|
9368
|
-
|
|
9447
|
+
D()
|
|
9369
9448
|
], ct.prototype, "hasDescription", 2);
|
|
9370
9449
|
bt([
|
|
9371
|
-
|
|
9450
|
+
D()
|
|
9372
9451
|
], ct.prototype, "hasLabel", 2);
|
|
9373
9452
|
ct = bt([
|
|
9374
|
-
_(
|
|
9453
|
+
_(Kl)
|
|
9375
9454
|
], ct);
|
|
9376
|
-
var
|
|
9377
|
-
for (var e = s > 1 ? void 0 : s ?
|
|
9455
|
+
var Wl = Object.getOwnPropertyDescriptor, Yl = (r, t, i, s) => {
|
|
9456
|
+
for (var e = s > 1 ? void 0 : s ? Wl(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
9378
9457
|
(n = r[o]) && (e = n(e) || e);
|
|
9379
9458
|
return e;
|
|
9380
9459
|
};
|
|
@@ -9538,7 +9617,7 @@ let Pt = class extends G(w) {
|
|
|
9538
9617
|
iconName=${$(this.iconName)}
|
|
9539
9618
|
iconPrefix=${$(this.iconPrefix)}
|
|
9540
9619
|
iconLibrary=${$(this.iconLibrary)}
|
|
9541
|
-
></sonic-legend>` :
|
|
9620
|
+
></sonic-legend>` : C}
|
|
9542
9621
|
<slot></slot>
|
|
9543
9622
|
</fieldset>`;
|
|
9544
9623
|
}
|
|
@@ -9712,7 +9791,7 @@ let Xe = class extends w {
|
|
|
9712
9791
|
flexDirection: this.direction,
|
|
9713
9792
|
justifyContent: this.justify
|
|
9714
9793
|
};
|
|
9715
|
-
return m`<slot style=${
|
|
9794
|
+
return m`<slot style=${ft(r)}></slot>`;
|
|
9716
9795
|
}
|
|
9717
9796
|
};
|
|
9718
9797
|
Xe.styles = [
|
|
@@ -9736,13 +9815,13 @@ Di([
|
|
|
9736
9815
|
Xe = Di([
|
|
9737
9816
|
_(nc)
|
|
9738
9817
|
], Xe);
|
|
9739
|
-
var ac = Object.defineProperty, lc = Object.getOwnPropertyDescriptor,
|
|
9818
|
+
var ac = Object.defineProperty, lc = Object.getOwnPropertyDescriptor, re = (r, t, i, s) => {
|
|
9740
9819
|
for (var e = s > 1 ? void 0 : s ? lc(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
9741
9820
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
9742
9821
|
return s && e && ac(t, i, e), e;
|
|
9743
9822
|
};
|
|
9744
9823
|
const cc = "sonic-group";
|
|
9745
|
-
let
|
|
9824
|
+
let Tt = class extends w {
|
|
9746
9825
|
constructor() {
|
|
9747
9826
|
super(...arguments), this.alignItems = "center", this.hasDescription = !1, this.hasLabel = !1;
|
|
9748
9827
|
}
|
|
@@ -9777,7 +9856,7 @@ let Nt = class extends w {
|
|
|
9777
9856
|
@slotchange=${this.hasSlotOrProps}
|
|
9778
9857
|
></slot
|
|
9779
9858
|
></span>
|
|
9780
|
-
<slot class="main-slot" style=${
|
|
9859
|
+
<slot class="main-slot" style=${ft(r)}></slot>
|
|
9781
9860
|
<slot
|
|
9782
9861
|
name="description"
|
|
9783
9862
|
@slotchange=${this.hasSlotOrProps}
|
|
@@ -9787,10 +9866,10 @@ let Nt = class extends w {
|
|
|
9787
9866
|
</slot>`;
|
|
9788
9867
|
}
|
|
9789
9868
|
};
|
|
9790
|
-
|
|
9869
|
+
Tt.styles = [
|
|
9791
9870
|
Mt,
|
|
9792
9871
|
Ts,
|
|
9793
|
-
|
|
9872
|
+
Is,
|
|
9794
9873
|
P`
|
|
9795
9874
|
:host {
|
|
9796
9875
|
display: inline-block;
|
|
@@ -9813,30 +9892,30 @@ Nt.styles = [
|
|
|
9813
9892
|
}
|
|
9814
9893
|
`
|
|
9815
9894
|
];
|
|
9816
|
-
|
|
9895
|
+
re([
|
|
9817
9896
|
a({ type: String })
|
|
9818
|
-
],
|
|
9819
|
-
|
|
9897
|
+
], Tt.prototype, "alignItems", 2);
|
|
9898
|
+
re([
|
|
9820
9899
|
a({ type: String })
|
|
9821
|
-
],
|
|
9822
|
-
|
|
9900
|
+
], Tt.prototype, "label", 2);
|
|
9901
|
+
re([
|
|
9823
9902
|
a({ type: String })
|
|
9824
|
-
],
|
|
9825
|
-
|
|
9903
|
+
], Tt.prototype, "description", 2);
|
|
9904
|
+
re([
|
|
9826
9905
|
dt({ slot: "label", flatten: !0 })
|
|
9827
|
-
],
|
|
9828
|
-
|
|
9906
|
+
], Tt.prototype, "slotLabelNodes", 2);
|
|
9907
|
+
re([
|
|
9829
9908
|
dt({ slot: "description", flatten: !0 })
|
|
9830
|
-
],
|
|
9831
|
-
|
|
9832
|
-
|
|
9833
|
-
],
|
|
9834
|
-
|
|
9835
|
-
|
|
9836
|
-
],
|
|
9837
|
-
|
|
9909
|
+
], Tt.prototype, "slotDescriptionNodes", 2);
|
|
9910
|
+
re([
|
|
9911
|
+
D()
|
|
9912
|
+
], Tt.prototype, "hasDescription", 2);
|
|
9913
|
+
re([
|
|
9914
|
+
D()
|
|
9915
|
+
], Tt.prototype, "hasLabel", 2);
|
|
9916
|
+
Tt = re([
|
|
9838
9917
|
_(cc)
|
|
9839
|
-
],
|
|
9918
|
+
], Tt);
|
|
9840
9919
|
var hc = Object.defineProperty, dc = Object.getOwnPropertyDescriptor, zt = (r, t, i, s) => {
|
|
9841
9920
|
for (var e = s > 1 ? void 0 : s ? dc(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
9842
9921
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
@@ -9870,7 +9949,7 @@ let $t = class extends w {
|
|
|
9870
9949
|
src="${this.src}"
|
|
9871
9950
|
loading="${this.loading}"
|
|
9872
9951
|
alt="${this.alt}"
|
|
9873
|
-
style=${
|
|
9952
|
+
style=${ft(r)}
|
|
9874
9953
|
/></picture>
|
|
9875
9954
|
</div>`;
|
|
9876
9955
|
}
|
|
@@ -10090,19 +10169,19 @@ let ht = class extends w {
|
|
|
10090
10169
|
return m`<menu
|
|
10091
10170
|
part="menu"
|
|
10092
10171
|
class="shadowable"
|
|
10093
|
-
style=${
|
|
10172
|
+
style=${ft(r)}
|
|
10094
10173
|
>
|
|
10095
10174
|
<slot
|
|
10096
10175
|
@slotchange=${this.mainSlotChange}
|
|
10097
10176
|
id="menu-content"
|
|
10098
|
-
style=${
|
|
10177
|
+
style=${ft(i)}
|
|
10099
10178
|
></slot>
|
|
10100
10179
|
<sonic-pop
|
|
10101
|
-
style=${
|
|
10180
|
+
style=${ft(s)}
|
|
10102
10181
|
class=${this.hasMoreElements ? "" : "hidden"}
|
|
10103
10182
|
>
|
|
10104
10183
|
<sonic-menu-item
|
|
10105
|
-
style=${
|
|
10184
|
+
style=${ft(e)}
|
|
10106
10185
|
class="more-btn"
|
|
10107
10186
|
shape=${this.moreShape}
|
|
10108
10187
|
align="center"
|
|
@@ -10278,10 +10357,10 @@ vt([
|
|
|
10278
10357
|
a({ type: String })
|
|
10279
10358
|
], ht.prototype, "minWidth", 2);
|
|
10280
10359
|
vt([
|
|
10281
|
-
|
|
10360
|
+
ee("menu")
|
|
10282
10361
|
], ht.prototype, "menu", 2);
|
|
10283
10362
|
vt([
|
|
10284
|
-
|
|
10363
|
+
ee("#menu-content")
|
|
10285
10364
|
], ht.prototype, "menuContent", 2);
|
|
10286
10365
|
vt([
|
|
10287
10366
|
ke({ selector: "*" })
|
|
@@ -10290,7 +10369,7 @@ vt([
|
|
|
10290
10369
|
ke({ slot: "more", selector: "*" })
|
|
10291
10370
|
], ht.prototype, "moreElements", 2);
|
|
10292
10371
|
vt([
|
|
10293
|
-
|
|
10372
|
+
D()
|
|
10294
10373
|
], ht.prototype, "hasMoreElements", 2);
|
|
10295
10374
|
ht = vt([
|
|
10296
10375
|
_(mc)
|
|
@@ -10332,7 +10411,7 @@ Tr([
|
|
|
10332
10411
|
Cs = Tr([
|
|
10333
10412
|
_(vc)
|
|
10334
10413
|
], Cs);
|
|
10335
|
-
var yc = Object.defineProperty, wc = Object.getOwnPropertyDescriptor,
|
|
10414
|
+
var yc = Object.defineProperty, wc = Object.getOwnPropertyDescriptor, Ms = (r, t, i, s) => {
|
|
10336
10415
|
for (var e = s > 1 ? void 0 : s ? wc(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
10337
10416
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
10338
10417
|
return s && e && yc(t, i, e), e;
|
|
@@ -10366,16 +10445,16 @@ let Ge = class extends w {
|
|
|
10366
10445
|
J.getClosestElement(this, "sonic-modal").hide();
|
|
10367
10446
|
}
|
|
10368
10447
|
};
|
|
10369
|
-
|
|
10448
|
+
Ms([
|
|
10370
10449
|
a()
|
|
10371
10450
|
], Ge.prototype, "translation", 2);
|
|
10372
|
-
|
|
10451
|
+
Ms([
|
|
10373
10452
|
a()
|
|
10374
10453
|
], Ge.prototype, "reset", 2);
|
|
10375
|
-
|
|
10454
|
+
Ms([
|
|
10376
10455
|
a()
|
|
10377
10456
|
], Ge.prototype, "type", 2);
|
|
10378
|
-
Ge =
|
|
10457
|
+
Ge = Ms([
|
|
10379
10458
|
_(_c)
|
|
10380
10459
|
], Ge);
|
|
10381
10460
|
var xc = Object.getOwnPropertyDescriptor, Pc = (r, t, i, s) => {
|
|
@@ -10464,8 +10543,8 @@ var Lc = Object.defineProperty, Ec = Object.getOwnPropertyDescriptor, Y = (r, t,
|
|
|
10464
10543
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
10465
10544
|
return s && e && Lc(t, i, e), e;
|
|
10466
10545
|
};
|
|
10467
|
-
const
|
|
10468
|
-
let
|
|
10546
|
+
const Ir = "sonic-modal";
|
|
10547
|
+
let I = class extends G(w) {
|
|
10469
10548
|
constructor() {
|
|
10470
10549
|
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
10550
|
quartOut: "cubic-bezier(0.165, 0.84, 0.44, 1)",
|
|
@@ -10477,16 +10556,16 @@ let M = class extends G(w) {
|
|
|
10477
10556
|
};
|
|
10478
10557
|
}
|
|
10479
10558
|
static create(r) {
|
|
10480
|
-
const t = document.createElement(
|
|
10559
|
+
const t = document.createElement(Ir);
|
|
10481
10560
|
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
10561
|
t.show();
|
|
10483
10562
|
}), t;
|
|
10484
10563
|
}
|
|
10485
10564
|
connectedCallback() {
|
|
10486
|
-
|
|
10565
|
+
I.modals.push(this), et.onChange(this), super.connectedCallback();
|
|
10487
10566
|
}
|
|
10488
10567
|
disconnectedCallback() {
|
|
10489
|
-
et.offChange(this),
|
|
10568
|
+
et.offChange(this), I.modals.splice(I.modals.indexOf(this), 1), this.removeEventListener("keydown", this.handleEscape), super.disconnectedCallback();
|
|
10490
10569
|
}
|
|
10491
10570
|
firstUpdated() {
|
|
10492
10571
|
this.addEventListener("keydown", this.handleEscape);
|
|
@@ -10533,30 +10612,30 @@ let M = class extends G(w) {
|
|
|
10533
10612
|
<div
|
|
10534
10613
|
id="backdrop"
|
|
10535
10614
|
@click=${this.handleOverlayClick}
|
|
10536
|
-
style=${
|
|
10615
|
+
style=${ft(t)}
|
|
10537
10616
|
></div>
|
|
10538
10617
|
<dialog
|
|
10539
10618
|
id="modal"
|
|
10540
10619
|
part="modal"
|
|
10541
10620
|
class="custom-scroll"
|
|
10542
10621
|
aria-modal="true"
|
|
10543
|
-
style=${
|
|
10622
|
+
style=${ft(r)}
|
|
10544
10623
|
>
|
|
10545
10624
|
${this._animationState !== "hidden" ? m`<div id="modal-content">
|
|
10546
10625
|
${!this.forceAction && !this.noCloseButton ? m`<sonic-modal-close
|
|
10547
10626
|
class="${this._animationState == "visible" ? "animate-in" : "animate-out"}"
|
|
10548
10627
|
type=${$(this.closeButtonType)}
|
|
10549
|
-
></sonic-modal-close>` :
|
|
10628
|
+
></sonic-modal-close>` : C}
|
|
10550
10629
|
${this.modalFragment("title")} ${this.modalFragment("subtitle")}
|
|
10551
10630
|
${this.modalFragment("content")} ${this.modalFragment("actions")}
|
|
10552
10631
|
<slot></slot>
|
|
10553
|
-
</div>` :
|
|
10632
|
+
</div>` : C}
|
|
10554
10633
|
</dialog>
|
|
10555
10634
|
`;
|
|
10556
10635
|
}
|
|
10557
10636
|
modalFragment(r) {
|
|
10558
10637
|
const t = this.options?.[r];
|
|
10559
|
-
if (!t) return
|
|
10638
|
+
if (!t) return C;
|
|
10560
10639
|
let i;
|
|
10561
10640
|
switch (t instanceof Object ? i = t : i = z(t), r) {
|
|
10562
10641
|
case "title":
|
|
@@ -10568,7 +10647,7 @@ let M = class extends G(w) {
|
|
|
10568
10647
|
case "actions":
|
|
10569
10648
|
return m`<sonic-modal-actions>${i}</sonic-modal-actions>`;
|
|
10570
10649
|
default:
|
|
10571
|
-
return
|
|
10650
|
+
return C;
|
|
10572
10651
|
}
|
|
10573
10652
|
}
|
|
10574
10653
|
// Show the modal
|
|
@@ -10587,7 +10666,7 @@ let M = class extends G(w) {
|
|
|
10587
10666
|
}
|
|
10588
10667
|
// Hide and remove all modals
|
|
10589
10668
|
static disposeAll() {
|
|
10590
|
-
|
|
10669
|
+
I.modals.forEach((r) => {
|
|
10591
10670
|
r.dispose();
|
|
10592
10671
|
});
|
|
10593
10672
|
}
|
|
@@ -10595,7 +10674,7 @@ let M = class extends G(w) {
|
|
|
10595
10674
|
handleEscape(r) {
|
|
10596
10675
|
if (r.key === "Escape") {
|
|
10597
10676
|
r.preventDefault();
|
|
10598
|
-
const t =
|
|
10677
|
+
const t = I.modals.filter(
|
|
10599
10678
|
(i) => i._animationState !== "hidden" && !i.forceAction
|
|
10600
10679
|
);
|
|
10601
10680
|
t.length > 0 && t[t.length - 1].hide();
|
|
@@ -10642,7 +10721,7 @@ let M = class extends G(w) {
|
|
|
10642
10721
|
});
|
|
10643
10722
|
}
|
|
10644
10723
|
};
|
|
10645
|
-
|
|
10724
|
+
I.styles = [
|
|
10646
10725
|
ss,
|
|
10647
10726
|
P`
|
|
10648
10727
|
:host {
|
|
@@ -10796,86 +10875,86 @@ M.styles = [
|
|
|
10796
10875
|
}
|
|
10797
10876
|
`
|
|
10798
10877
|
];
|
|
10799
|
-
|
|
10878
|
+
I.modals = [];
|
|
10800
10879
|
Y([
|
|
10801
10880
|
a({ type: Boolean })
|
|
10802
|
-
],
|
|
10881
|
+
], I.prototype, "forceAction", 2);
|
|
10803
10882
|
Y([
|
|
10804
10883
|
a({ type: Boolean })
|
|
10805
|
-
],
|
|
10884
|
+
], I.prototype, "noCloseButton", 2);
|
|
10806
10885
|
Y([
|
|
10807
10886
|
a({ type: Boolean })
|
|
10808
|
-
],
|
|
10887
|
+
], I.prototype, "removeOnHide", 2);
|
|
10809
10888
|
Y([
|
|
10810
10889
|
a({ type: Boolean })
|
|
10811
|
-
],
|
|
10890
|
+
], I.prototype, "removeHashOnHide", 2);
|
|
10812
10891
|
Y([
|
|
10813
10892
|
a({ type: String, reflect: !0 })
|
|
10814
|
-
],
|
|
10893
|
+
], I.prototype, "align", 2);
|
|
10815
10894
|
Y([
|
|
10816
10895
|
a({ type: String })
|
|
10817
|
-
],
|
|
10896
|
+
], I.prototype, "paddingX", 2);
|
|
10818
10897
|
Y([
|
|
10819
10898
|
a({ type: String })
|
|
10820
|
-
],
|
|
10899
|
+
], I.prototype, "paddingY", 2);
|
|
10821
10900
|
Y([
|
|
10822
10901
|
a({ type: String })
|
|
10823
|
-
],
|
|
10902
|
+
], I.prototype, "maxWidth", 2);
|
|
10824
10903
|
Y([
|
|
10825
10904
|
a({ type: String })
|
|
10826
|
-
],
|
|
10905
|
+
], I.prototype, "maxHeight", 2);
|
|
10827
10906
|
Y([
|
|
10828
10907
|
a({ type: String })
|
|
10829
|
-
],
|
|
10908
|
+
], I.prototype, "zIndex", 2);
|
|
10830
10909
|
Y([
|
|
10831
10910
|
a({ type: String })
|
|
10832
|
-
],
|
|
10911
|
+
], I.prototype, "width", 2);
|
|
10833
10912
|
Y([
|
|
10834
10913
|
a({ type: String })
|
|
10835
|
-
],
|
|
10914
|
+
], I.prototype, "height", 2);
|
|
10836
10915
|
Y([
|
|
10837
10916
|
a({ type: String })
|
|
10838
|
-
],
|
|
10917
|
+
], I.prototype, "effect", 2);
|
|
10839
10918
|
Y([
|
|
10840
10919
|
a({ type: Object })
|
|
10841
|
-
],
|
|
10920
|
+
], I.prototype, "options", 2);
|
|
10842
10921
|
Y([
|
|
10843
10922
|
a({ type: Boolean, reflect: !0 })
|
|
10844
|
-
],
|
|
10923
|
+
], I.prototype, "fullScreen", 2);
|
|
10845
10924
|
Y([
|
|
10846
10925
|
a({ type: Boolean, reflect: !0 })
|
|
10847
|
-
],
|
|
10926
|
+
], I.prototype, "visible", 2);
|
|
10848
10927
|
Y([
|
|
10849
10928
|
a({ type: String })
|
|
10850
|
-
],
|
|
10929
|
+
], I.prototype, "closeButtonType", 2);
|
|
10851
10930
|
Y([
|
|
10852
|
-
|
|
10853
|
-
],
|
|
10931
|
+
ee("#modal")
|
|
10932
|
+
], I.prototype, "_modalElement", 2);
|
|
10854
10933
|
Y([
|
|
10855
10934
|
a({ type: Boolean })
|
|
10856
|
-
],
|
|
10935
|
+
], I.prototype, "closeOnLocationChange", 2);
|
|
10857
10936
|
Y([
|
|
10858
|
-
|
|
10859
|
-
],
|
|
10937
|
+
D()
|
|
10938
|
+
], I.prototype, "location", 2);
|
|
10860
10939
|
Y([
|
|
10861
|
-
|
|
10862
|
-
],
|
|
10863
|
-
|
|
10864
|
-
_(
|
|
10865
|
-
],
|
|
10866
|
-
typeof window < "u" && (window.SonicModal =
|
|
10940
|
+
D()
|
|
10941
|
+
], I.prototype, "_animationState", 2);
|
|
10942
|
+
I = Y([
|
|
10943
|
+
_(Ir)
|
|
10944
|
+
], I);
|
|
10945
|
+
typeof window < "u" && (window.SonicModal = I);
|
|
10867
10946
|
var Nc = Object.defineProperty, Tc = Object.getOwnPropertyDescriptor, Rt = (r, t, i, s) => {
|
|
10868
10947
|
for (var e = s > 1 ? void 0 : s ? Tc(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
10869
10948
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
10870
10949
|
return s && e && Nc(t, i, e), e;
|
|
10871
10950
|
};
|
|
10872
|
-
const
|
|
10951
|
+
const Ic = {
|
|
10873
10952
|
warning: "warning-circled-outline",
|
|
10874
10953
|
success: "check-circled-outline",
|
|
10875
10954
|
error: "warning-circled-outline",
|
|
10876
10955
|
info: "info-empty",
|
|
10877
10956
|
default: "info-empty"
|
|
10878
|
-
},
|
|
10957
|
+
}, Mc = "sonic-alert";
|
|
10879
10958
|
let Ct = class extends w {
|
|
10880
10959
|
constructor() {
|
|
10881
10960
|
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 +10969,12 @@ let Ct = class extends w {
|
|
|
10890
10969
|
render() {
|
|
10891
10970
|
return m`
|
|
10892
10971
|
<slot name="icon" class="${this.noIcon ? "hidden" : ""}"
|
|
10893
|
-
>${this.noIcon ?
|
|
10894
|
-
${this.status && m`<sonic-icon name=${
|
|
10972
|
+
>${this.noIcon ? C : m`<div>
|
|
10973
|
+
${this.status && m`<sonic-icon name=${Ic[this.status]}></sonic-icon>`}
|
|
10895
10974
|
</div>`}</slot
|
|
10896
10975
|
>
|
|
10897
10976
|
<div class="content">
|
|
10898
|
-
${this.label ? m`<span class="label">${z(this.label)}</span>` :
|
|
10977
|
+
${this.label ? m`<span class="label">${z(this.label)}</span>` : C}
|
|
10899
10978
|
<div>${this.text}<slot></slot></div>
|
|
10900
10979
|
</div>
|
|
10901
10980
|
${this.dismissible ? m`<sonic-button
|
|
@@ -10906,7 +10985,7 @@ let Ct = class extends w {
|
|
|
10906
10985
|
icon
|
|
10907
10986
|
>
|
|
10908
10987
|
<sonic-icon name="cancel"></sonic-icon>
|
|
10909
|
-
</sonic-button>` :
|
|
10988
|
+
</sonic-button>` : C}
|
|
10910
10989
|
`;
|
|
10911
10990
|
}
|
|
10912
10991
|
close() {
|
|
@@ -11038,7 +11117,7 @@ Rt([
|
|
|
11038
11117
|
a({ type: Boolean, reflect: !0 })
|
|
11039
11118
|
], Ct.prototype, "dismissForever", 2);
|
|
11040
11119
|
Ct = Rt([
|
|
11041
|
-
_(
|
|
11120
|
+
_(Mc)
|
|
11042
11121
|
], Ct);
|
|
11043
11122
|
var jc = Object.defineProperty, Fc = Object.getOwnPropertyDescriptor, ns = (r, t, i, s) => {
|
|
11044
11123
|
for (var e = s > 1 ? void 0 : s ? Fc(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
@@ -11046,7 +11125,7 @@ var jc = Object.defineProperty, Fc = Object.getOwnPropertyDescriptor, ns = (r, t
|
|
|
11046
11125
|
return s && e && jc(t, i, e), e;
|
|
11047
11126
|
};
|
|
11048
11127
|
const zc = "sonic-alert-messages";
|
|
11049
|
-
let
|
|
11128
|
+
let fe = class extends G(w) {
|
|
11050
11129
|
constructor() {
|
|
11051
11130
|
super(...arguments), this.size = "md", this.background = !1, this.noIcon = !1, this.messages = [];
|
|
11052
11131
|
}
|
|
@@ -11058,11 +11137,11 @@ let ue = class extends G(w) {
|
|
|
11058
11137
|
size=${this.size}
|
|
11059
11138
|
?noIcon=${this.noIcon}
|
|
11060
11139
|
?background=${this.background}
|
|
11061
|
-
></sonic-alert>` :
|
|
11062
|
-
</div>` :
|
|
11140
|
+
></sonic-alert>` : C)}
|
|
11141
|
+
</div>` : C;
|
|
11063
11142
|
}
|
|
11064
11143
|
};
|
|
11065
|
-
|
|
11144
|
+
fe.styles = [
|
|
11066
11145
|
P`
|
|
11067
11146
|
.container {
|
|
11068
11147
|
display: grid;
|
|
@@ -11074,20 +11153,20 @@ ue.styles = [
|
|
|
11074
11153
|
];
|
|
11075
11154
|
ns([
|
|
11076
11155
|
a({ type: String })
|
|
11077
|
-
],
|
|
11156
|
+
], fe.prototype, "size", 2);
|
|
11078
11157
|
ns([
|
|
11079
11158
|
a({ type: Boolean })
|
|
11080
|
-
],
|
|
11159
|
+
], fe.prototype, "background", 2);
|
|
11081
11160
|
ns([
|
|
11082
11161
|
a({ type: Boolean })
|
|
11083
|
-
],
|
|
11162
|
+
], fe.prototype, "noIcon", 2);
|
|
11084
11163
|
ns([
|
|
11085
11164
|
a({ type: Array })
|
|
11086
|
-
],
|
|
11087
|
-
|
|
11165
|
+
], fe.prototype, "messages", 2);
|
|
11166
|
+
fe = ns([
|
|
11088
11167
|
_(zc)
|
|
11089
|
-
],
|
|
11090
|
-
var Rc = Object.defineProperty, Uc = Object.getOwnPropertyDescriptor,
|
|
11168
|
+
], fe);
|
|
11169
|
+
var Rc = Object.defineProperty, Uc = Object.getOwnPropertyDescriptor, Mr = (r, t, i, s) => {
|
|
11091
11170
|
for (var e = s > 1 ? void 0 : s ? Uc(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11092
11171
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
11093
11172
|
return s && e && Rc(t, i, e), e;
|
|
@@ -11106,13 +11185,13 @@ let ii = class extends G(w) {
|
|
|
11106
11185
|
});
|
|
11107
11186
|
}
|
|
11108
11187
|
render() {
|
|
11109
|
-
return
|
|
11188
|
+
return C;
|
|
11110
11189
|
}
|
|
11111
11190
|
};
|
|
11112
|
-
|
|
11191
|
+
Mr([
|
|
11113
11192
|
a({ type: Array })
|
|
11114
11193
|
], ii.prototype, "messages", 1);
|
|
11115
|
-
ii =
|
|
11194
|
+
ii = Mr([
|
|
11116
11195
|
_(Vc)
|
|
11117
11196
|
], ii);
|
|
11118
11197
|
var Bc = Object.defineProperty, qc = Object.getOwnPropertyDescriptor, as = (r, t, i, s) => {
|
|
@@ -11121,16 +11200,30 @@ var Bc = Object.defineProperty, qc = Object.getOwnPropertyDescriptor, as = (r, t
|
|
|
11121
11200
|
return s && e && Bc(t, i, e), e;
|
|
11122
11201
|
};
|
|
11123
11202
|
const Hc = "sonic-tooltip";
|
|
11124
|
-
let
|
|
11203
|
+
let me = class extends w {
|
|
11125
11204
|
constructor() {
|
|
11126
|
-
super(
|
|
11205
|
+
super(), this.label = "", this.disabled = !1, this.focusable = !1, this.lastKeyWasTab = !1, this.handleKeyDown = (r) => {
|
|
11206
|
+
r.key === "Tab" && (this.lastKeyWasTab = !0);
|
|
11207
|
+
}, this.handleMouseDown = () => {
|
|
11208
|
+
this.lastKeyWasTab = !1, this.classList.remove("keyboard-focus");
|
|
11209
|
+
}, this.handleFocusIn = () => {
|
|
11210
|
+
this.lastKeyWasTab && this.classList.add("keyboard-focus"), this.lastKeyWasTab = !1;
|
|
11211
|
+
}, this.handleFocusOut = () => {
|
|
11212
|
+
this.classList.remove("keyboard-focus"), this.lastKeyWasTab = !1;
|
|
11213
|
+
}, this.boundHandleKeyDown = this.handleKeyDown.bind(this), this.boundHandleMouseDown = this.handleMouseDown.bind(this);
|
|
11214
|
+
}
|
|
11215
|
+
connectedCallback() {
|
|
11216
|
+
super.connectedCallback(), this.addEventListener("focusin", this.handleFocusIn), this.addEventListener("focusout", this.handleFocusOut), document.addEventListener("keydown", this.boundHandleKeyDown, !0), document.addEventListener("mousedown", this.boundHandleMouseDown, !0);
|
|
11217
|
+
}
|
|
11218
|
+
disconnectedCallback() {
|
|
11219
|
+
super.disconnectedCallback(), this.removeEventListener("focusin", this.handleFocusIn), this.removeEventListener("focusout", this.handleFocusOut), document.removeEventListener("keydown", this.boundHandleKeyDown, !0), document.removeEventListener("mousedown", this.boundHandleMouseDown, !0);
|
|
11127
11220
|
}
|
|
11128
11221
|
willUpdate(r) {
|
|
11129
11222
|
if (r.has("disabled")) {
|
|
11130
11223
|
const t = r.get("disabled") === !0;
|
|
11131
|
-
this.disabled ? this.setAttribute("tabindex", "-1") : !this.disabled && t && this.removeAttribute("tabindex");
|
|
11224
|
+
this.disabled ? (this.setAttribute("tabindex", "-1"), this.classList.remove("keyboard-focus")) : !this.disabled && t && (this.focusable ? this.setAttribute("tabindex", "0") : this.removeAttribute("tabindex"));
|
|
11132
11225
|
}
|
|
11133
|
-
super.willUpdate(r);
|
|
11226
|
+
r.has("focusable") && (this.focusable && !this.disabled ? this.setAttribute("tabindex", "0") : !this.focusable && !this.disabled && this.removeAttribute("tabindex")), super.willUpdate(r);
|
|
11134
11227
|
}
|
|
11135
11228
|
render() {
|
|
11136
11229
|
const r = this.disabled || this.label == "" ? "disabled" : "";
|
|
@@ -11142,7 +11235,7 @@ let fe = class extends w {
|
|
|
11142
11235
|
</div>`;
|
|
11143
11236
|
}
|
|
11144
11237
|
};
|
|
11145
|
-
|
|
11238
|
+
me.styles = [
|
|
11146
11239
|
P`
|
|
11147
11240
|
:host {
|
|
11148
11241
|
position: relative;
|
|
@@ -11175,9 +11268,8 @@ fe.styles = [
|
|
|
11175
11268
|
will-change: opacity, transform;
|
|
11176
11269
|
}
|
|
11177
11270
|
|
|
11178
|
-
/* désactive au focus-within cause persistance du tooltip au clic */
|
|
11179
|
-
/* :host(:focus-within) .tooltip:before, */
|
|
11180
11271
|
:host(:focus-visible) .tooltip:before,
|
|
11272
|
+
:host(.keyboard-focus) .tooltip:before,
|
|
11181
11273
|
.tooltip:hover:before {
|
|
11182
11274
|
opacity: 1;
|
|
11183
11275
|
scale: 1;
|
|
@@ -11254,23 +11346,23 @@ fe.styles = [
|
|
|
11254
11346
|
];
|
|
11255
11347
|
as([
|
|
11256
11348
|
a({ type: String })
|
|
11257
|
-
],
|
|
11349
|
+
], me.prototype, "label", 2);
|
|
11258
11350
|
as([
|
|
11259
11351
|
a({ type: String, reflect: !0 })
|
|
11260
|
-
],
|
|
11352
|
+
], me.prototype, "placement", 2);
|
|
11261
11353
|
as([
|
|
11262
11354
|
a({ type: Boolean })
|
|
11263
|
-
],
|
|
11355
|
+
], me.prototype, "disabled", 2);
|
|
11264
11356
|
as([
|
|
11265
11357
|
a({ type: Boolean })
|
|
11266
|
-
],
|
|
11267
|
-
|
|
11358
|
+
], me.prototype, "focusable", 2);
|
|
11359
|
+
me = as([
|
|
11268
11360
|
_(Hc)
|
|
11269
|
-
],
|
|
11270
|
-
var
|
|
11271
|
-
for (var e = s > 1 ? void 0 : s ?
|
|
11361
|
+
], me);
|
|
11362
|
+
var Kc = Object.defineProperty, Wc = Object.getOwnPropertyDescriptor, Ut = (r, t, i, s) => {
|
|
11363
|
+
for (var e = s > 1 ? void 0 : s ? Wc(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11272
11364
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
11273
|
-
return s && e &&
|
|
11365
|
+
return s && e && Kc(t, i, e), e;
|
|
11274
11366
|
};
|
|
11275
11367
|
const Yc = "sonic-divider";
|
|
11276
11368
|
let St = class extends w {
|
|
@@ -11426,7 +11518,7 @@ Ut([
|
|
|
11426
11518
|
dt({ flatten: !0 })
|
|
11427
11519
|
], St.prototype, "slotNodes", 2);
|
|
11428
11520
|
Ut([
|
|
11429
|
-
|
|
11521
|
+
ee("div")
|
|
11430
11522
|
], St.prototype, "divider", 2);
|
|
11431
11523
|
Ut([
|
|
11432
11524
|
a({ type: String })
|
|
@@ -11490,7 +11582,7 @@ let Qe = class extends w {
|
|
|
11490
11582
|
${z(this.label)}
|
|
11491
11583
|
${this.description ? m`<sonic-card-header-description
|
|
11492
11584
|
>${z(this.description)}</sonic-card-header-description
|
|
11493
|
-
>` :
|
|
11585
|
+
>` : C}
|
|
11494
11586
|
<slot></slot>
|
|
11495
11587
|
</div>
|
|
11496
11588
|
<slot name="suffix"></slot>
|
|
@@ -11738,7 +11830,7 @@ var dh = Object.defineProperty, ph = Object.getOwnPropertyDescriptor, ls = (r, t
|
|
|
11738
11830
|
return s && e && dh(t, i, e), e;
|
|
11739
11831
|
};
|
|
11740
11832
|
const uh = "sonic-tr";
|
|
11741
|
-
let
|
|
11833
|
+
let ge = class extends G(w) {
|
|
11742
11834
|
constructor() {
|
|
11743
11835
|
super(...arguments), this._metadata_ = {};
|
|
11744
11836
|
}
|
|
@@ -11749,7 +11841,7 @@ let me = class extends G(w) {
|
|
|
11749
11841
|
return m`<slot></slot>`;
|
|
11750
11842
|
}
|
|
11751
11843
|
};
|
|
11752
|
-
|
|
11844
|
+
ge.styles = [
|
|
11753
11845
|
Ei,
|
|
11754
11846
|
P`
|
|
11755
11847
|
:host {
|
|
@@ -11773,26 +11865,26 @@ me.styles = [
|
|
|
11773
11865
|
];
|
|
11774
11866
|
ls([
|
|
11775
11867
|
a({ type: Object })
|
|
11776
|
-
],
|
|
11868
|
+
], ge.prototype, "_metadata_", 2);
|
|
11777
11869
|
ls([
|
|
11778
11870
|
a({ type: Boolean, reflect: !0 })
|
|
11779
|
-
],
|
|
11871
|
+
], ge.prototype, "even", 2);
|
|
11780
11872
|
ls([
|
|
11781
11873
|
a({ type: Boolean, reflect: !0 })
|
|
11782
|
-
],
|
|
11874
|
+
], ge.prototype, "odd", 2);
|
|
11783
11875
|
ls([
|
|
11784
11876
|
a({ type: Boolean, reflect: !0 })
|
|
11785
|
-
],
|
|
11786
|
-
|
|
11877
|
+
], ge.prototype, "last", 2);
|
|
11878
|
+
ge = ls([
|
|
11787
11879
|
_(uh)
|
|
11788
|
-
],
|
|
11880
|
+
], ge);
|
|
11789
11881
|
var fh = Object.defineProperty, mh = Object.getOwnPropertyDescriptor, we = (r, t, i, s) => {
|
|
11790
11882
|
for (var e = s > 1 ? void 0 : s ? mh(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11791
11883
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
11792
11884
|
return s && e && fh(t, i, e), e;
|
|
11793
11885
|
};
|
|
11794
11886
|
const gh = "sonic-th";
|
|
11795
|
-
let
|
|
11887
|
+
let Kt = class extends w {
|
|
11796
11888
|
render() {
|
|
11797
11889
|
const r = {
|
|
11798
11890
|
textAlign: this.align,
|
|
@@ -11802,7 +11894,7 @@ let Wt = class extends w {
|
|
|
11802
11894
|
};
|
|
11803
11895
|
return m`<th
|
|
11804
11896
|
part="th"
|
|
11805
|
-
style=${
|
|
11897
|
+
style=${ft(r)}
|
|
11806
11898
|
colspan=${$(this.colSpan)}
|
|
11807
11899
|
rowspan=${$(this.rowSpan)}
|
|
11808
11900
|
>
|
|
@@ -11810,7 +11902,7 @@ let Wt = class extends w {
|
|
|
11810
11902
|
</th> `;
|
|
11811
11903
|
}
|
|
11812
11904
|
};
|
|
11813
|
-
|
|
11905
|
+
Kt.styles = [
|
|
11814
11906
|
Ei,
|
|
11815
11907
|
P`
|
|
11816
11908
|
:host {
|
|
@@ -11839,32 +11931,32 @@ Wt.styles = [
|
|
|
11839
11931
|
];
|
|
11840
11932
|
we([
|
|
11841
11933
|
a({ type: Number })
|
|
11842
|
-
],
|
|
11934
|
+
], Kt.prototype, "colSpan", 2);
|
|
11843
11935
|
we([
|
|
11844
11936
|
a({ type: Number })
|
|
11845
|
-
],
|
|
11937
|
+
], Kt.prototype, "rowSpan", 2);
|
|
11846
11938
|
we([
|
|
11847
11939
|
a({ type: String })
|
|
11848
|
-
],
|
|
11940
|
+
], Kt.prototype, "align", 2);
|
|
11849
11941
|
we([
|
|
11850
11942
|
a({ type: String })
|
|
11851
|
-
],
|
|
11943
|
+
], Kt.prototype, "minWidth", 2);
|
|
11852
11944
|
we([
|
|
11853
11945
|
a({ type: String })
|
|
11854
|
-
],
|
|
11946
|
+
], Kt.prototype, "maxWidth", 2);
|
|
11855
11947
|
we([
|
|
11856
11948
|
a({ type: String })
|
|
11857
|
-
],
|
|
11858
|
-
|
|
11949
|
+
], Kt.prototype, "width", 2);
|
|
11950
|
+
Kt = we([
|
|
11859
11951
|
_(gh)
|
|
11860
|
-
],
|
|
11861
|
-
var bh = Object.defineProperty, vh = Object.getOwnPropertyDescriptor,
|
|
11952
|
+
], Kt);
|
|
11953
|
+
var bh = Object.defineProperty, vh = Object.getOwnPropertyDescriptor, oe = (r, t, i, s) => {
|
|
11862
11954
|
for (var e = s > 1 ? void 0 : s ? vh(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11863
11955
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
11864
11956
|
return s && e && bh(t, i, e), e;
|
|
11865
11957
|
};
|
|
11866
11958
|
const yh = "sonic-td";
|
|
11867
|
-
let
|
|
11959
|
+
let It = class extends w {
|
|
11868
11960
|
render() {
|
|
11869
11961
|
const r = {
|
|
11870
11962
|
textAlign: this.align,
|
|
@@ -11873,12 +11965,12 @@ let Tt = class extends w {
|
|
|
11873
11965
|
maxWidth: this.maxWidth,
|
|
11874
11966
|
width: this.width
|
|
11875
11967
|
};
|
|
11876
|
-
return m`<td part="td" style=${
|
|
11968
|
+
return m`<td part="td" style=${ft(r)} colspan=${$(this.colSpan)} rowspan=${$(this.rowSpan)}>
|
|
11877
11969
|
<slot></slot>
|
|
11878
11970
|
</td>`;
|
|
11879
11971
|
}
|
|
11880
11972
|
};
|
|
11881
|
-
|
|
11973
|
+
It.styles = [
|
|
11882
11974
|
Ei,
|
|
11883
11975
|
P`
|
|
11884
11976
|
:host {
|
|
@@ -11895,30 +11987,30 @@ Tt.styles = [
|
|
|
11895
11987
|
}
|
|
11896
11988
|
`
|
|
11897
11989
|
];
|
|
11898
|
-
|
|
11990
|
+
oe([
|
|
11899
11991
|
a({ type: Number })
|
|
11900
|
-
],
|
|
11901
|
-
|
|
11992
|
+
], It.prototype, "colSpan", 2);
|
|
11993
|
+
oe([
|
|
11902
11994
|
a({ type: Number })
|
|
11903
|
-
],
|
|
11904
|
-
|
|
11995
|
+
], It.prototype, "rowSpan", 2);
|
|
11996
|
+
oe([
|
|
11905
11997
|
a({ type: String })
|
|
11906
|
-
],
|
|
11907
|
-
|
|
11998
|
+
], It.prototype, "align", 2);
|
|
11999
|
+
oe([
|
|
11908
12000
|
a({ type: String })
|
|
11909
|
-
],
|
|
11910
|
-
|
|
12001
|
+
], It.prototype, "vAlign", 2);
|
|
12002
|
+
oe([
|
|
11911
12003
|
a({ type: String })
|
|
11912
|
-
],
|
|
11913
|
-
|
|
12004
|
+
], It.prototype, "minWidth", 2);
|
|
12005
|
+
oe([
|
|
11914
12006
|
a({ type: String })
|
|
11915
|
-
],
|
|
11916
|
-
|
|
12007
|
+
], It.prototype, "maxWidth", 2);
|
|
12008
|
+
oe([
|
|
11917
12009
|
a({ type: String })
|
|
11918
|
-
],
|
|
11919
|
-
|
|
12010
|
+
], It.prototype, "width", 2);
|
|
12011
|
+
It = oe([
|
|
11920
12012
|
_(yh)
|
|
11921
|
-
],
|
|
12013
|
+
], It);
|
|
11922
12014
|
var wh = Object.getOwnPropertyDescriptor, _h = (r, t, i, s) => {
|
|
11923
12015
|
for (var e = s > 1 ? void 0 : s ? wh(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11924
12016
|
(n = r[o]) && (e = n(e) || e);
|
|
@@ -12023,7 +12115,7 @@ hi.styles = [
|
|
|
12023
12115
|
hi = Dh([
|
|
12024
12116
|
_(Lh)
|
|
12025
12117
|
], hi);
|
|
12026
|
-
var Eh = Object.defineProperty, Nh = Object.getOwnPropertyDescriptor,
|
|
12118
|
+
var Eh = Object.defineProperty, Nh = Object.getOwnPropertyDescriptor, Ie = (r, t, i, s) => {
|
|
12027
12119
|
for (var e = s > 1 ? void 0 : s ? Nh(t, i) : t, o = r.length - 1, n; o >= 0; o--)
|
|
12028
12120
|
(n = r[o]) && (e = (s ? n(t, i, e) : n(e)) || e);
|
|
12029
12121
|
return s && e && Eh(t, i, e), e;
|
|
@@ -12037,7 +12129,7 @@ let te = class extends w {
|
|
|
12037
12129
|
return m`
|
|
12038
12130
|
<div
|
|
12039
12131
|
class="table-container ${this.noCustomScroll ? "" : "custom-scroll"}"
|
|
12040
|
-
style=${
|
|
12132
|
+
style=${ft(r)}
|
|
12041
12133
|
>
|
|
12042
12134
|
<div class="table">
|
|
12043
12135
|
<slot></slot>
|
|
@@ -12096,30 +12188,30 @@ te.styles = [
|
|
|
12096
12188
|
}
|
|
12097
12189
|
`
|
|
12098
12190
|
];
|
|
12099
|
-
|
|
12191
|
+
Ie([
|
|
12100
12192
|
a({ type: String, reflect: !0 })
|
|
12101
12193
|
], te.prototype, "size", 2);
|
|
12102
|
-
|
|
12194
|
+
Ie([
|
|
12103
12195
|
a({ type: Boolean, reflect: !0 })
|
|
12104
12196
|
], te.prototype, "bordered", 2);
|
|
12105
|
-
|
|
12197
|
+
Ie([
|
|
12106
12198
|
a({ type: Boolean, reflect: !0 })
|
|
12107
12199
|
], te.prototype, "rounded", 2);
|
|
12108
|
-
|
|
12200
|
+
Ie([
|
|
12109
12201
|
a({ type: Boolean, reflect: !0 })
|
|
12110
12202
|
], te.prototype, "noCustomScroll", 2);
|
|
12111
|
-
|
|
12203
|
+
Ie([
|
|
12112
12204
|
a({ type: String })
|
|
12113
12205
|
], te.prototype, "maxHeight", 2);
|
|
12114
|
-
te =
|
|
12206
|
+
te = Ie([
|
|
12115
12207
|
_(Th)
|
|
12116
12208
|
], te);
|
|
12117
|
-
const Fr = "AES-CBC",
|
|
12118
|
-
async function
|
|
12209
|
+
const Fr = "AES-CBC", Ih = 256;
|
|
12210
|
+
async function Mh() {
|
|
12119
12211
|
return crypto.subtle.generateKey(
|
|
12120
12212
|
{
|
|
12121
12213
|
name: Fr,
|
|
12122
|
-
length:
|
|
12214
|
+
length: Ih
|
|
12123
12215
|
},
|
|
12124
12216
|
!0,
|
|
12125
12217
|
// extractable
|
|
@@ -12372,7 +12464,7 @@ var Rh = Object.defineProperty, Uh = Object.getOwnPropertyDescriptor, js = (r, t
|
|
|
12372
12464
|
const Vh = "supersoniks_altcha", Bh = "Si2\\]X8M4!n9DCLd";
|
|
12373
12465
|
let hr = !1;
|
|
12374
12466
|
const qh = "sonic-captcha";
|
|
12375
|
-
let Ae = class extends
|
|
12467
|
+
let Ae = class extends ie(w) {
|
|
12376
12468
|
constructor() {
|
|
12377
12469
|
super(...arguments), this.key = "", this.action = null, this.zIndex = 9999, this.onCaptchaTokenChanged = (r) => {
|
|
12378
12470
|
r == "request_token" && (this.formPublisher && (this.formPublisher.captchaToken = ""), this.requestToken());
|
|
@@ -12405,12 +12497,12 @@ let Ae = class extends se(w) {
|
|
|
12405
12497
|
}
|
|
12406
12498
|
async generateEncryptedKey() {
|
|
12407
12499
|
if (this.key) return;
|
|
12408
|
-
const r = await
|
|
12500
|
+
const r = await Mh(), t = new TextEncoder().encode(Bh), i = await Fh(Vh, r, t);
|
|
12409
12501
|
this.key = i;
|
|
12410
12502
|
}
|
|
12411
12503
|
render() {
|
|
12412
12504
|
if (!this.key)
|
|
12413
|
-
return
|
|
12505
|
+
return C;
|
|
12414
12506
|
const t = Zt.getLanguage().match("^fr\\b") ? {
|
|
12415
12507
|
aria: "Visitez altcha.org",
|
|
12416
12508
|
error: "La vérification a échoué, réessayez plus tard.",
|
|
@@ -12490,12 +12582,12 @@ window.queueMicrotask = window.queueMicrotask || function(r) {
|
|
|
12490
12582
|
function Hh(r) {
|
|
12491
12583
|
this.__connectedCallbackCalls__ || (this.__connectedCallbackCalls__ = /* @__PURE__ */ new Set()), this.__connectedCallbackCalls__.add(r);
|
|
12492
12584
|
}
|
|
12493
|
-
function
|
|
12585
|
+
function Kh(r) {
|
|
12494
12586
|
this.__disconnectedCallbackCalls__ || (this.__disconnectedCallbackCalls__ = /* @__PURE__ */ new Set()), this.__disconnectedCallbackCalls__.add(r);
|
|
12495
12587
|
}
|
|
12496
12588
|
function zr(r) {
|
|
12497
12589
|
if (r.__is__setSubscribable__) return;
|
|
12498
|
-
r.__is__setSubscribable__ = !0, r.__onConnected__ = Hh, r.__onDisconnected__ =
|
|
12590
|
+
r.__is__setSubscribable__ = !0, r.__onConnected__ = Hh, r.__onDisconnected__ = Kh;
|
|
12499
12591
|
const t = r.connectedCallback;
|
|
12500
12592
|
r.connectedCallback = function() {
|
|
12501
12593
|
t.call(this), this.__connectedCallbackCalls__ && this.__connectedCallbackCalls__.forEach((s) => s(this));
|
|
@@ -12505,7 +12597,7 @@ function zr(r) {
|
|
|
12505
12597
|
i.call(this), this.__disconnectedCallbackCalls__ && this.__disconnectedCallbackCalls__.forEach((s) => s(this));
|
|
12506
12598
|
};
|
|
12507
12599
|
}
|
|
12508
|
-
function
|
|
12600
|
+
function Wh(r) {
|
|
12509
12601
|
const t = r.split(".");
|
|
12510
12602
|
if (t.length == 0)
|
|
12511
12603
|
return function() {
|
|
@@ -12552,7 +12644,7 @@ function Yh(...r) {
|
|
|
12552
12644
|
}
|
|
12553
12645
|
window["concorde-decorator-subscriber"] = window["concorde-decorator-subscriber"] || {};
|
|
12554
12646
|
window["concorde-decorator-subscriber"] = {
|
|
12555
|
-
bind:
|
|
12647
|
+
bind: Wh,
|
|
12556
12648
|
onAssing: Yh
|
|
12557
12649
|
};
|
|
12558
12650
|
window["concorde-directives-data-provider"] = window["concorde-directives-data-provider"] || {};
|
|
@@ -12564,7 +12656,7 @@ window["concorde-directives-data-provider"] = {
|
|
|
12564
12656
|
get: So,
|
|
12565
12657
|
set: ko
|
|
12566
12658
|
};
|
|
12567
|
-
const Zh = O, Xh =
|
|
12659
|
+
const Zh = O, Xh = I;
|
|
12568
12660
|
window["concorde-components"] = window["concorde-components"] || {};
|
|
12569
12661
|
window["concorde-components"] = {
|
|
12570
12662
|
SonicToast: Zh,
|