@supersoniks/concorde 3.1.86 → 3.1.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build-infos.json +1 -1
- package/concorde-core.bundle.js +72 -63
- package/concorde-core.es.js +497 -471
- package/dist/concorde-core.bundle.js +72 -63
- package/dist/concorde-core.es.js +497 -471
- package/index.html +0 -0
- package/package.json +4 -4
- package/scripts/create-search.js +0 -0
- package/scripts/generate-routes.js +0 -0
- package/src/core/_types/types.ts +0 -0
- package/src/core/components/functional/date/date.ts +0 -0
- package/src/core/components/functional/functional.ts +0 -0
- package/src/core/components/functional/if/if.md +0 -0
- package/src/core/components/functional/if/if.test.ts +0 -0
- package/src/core/components/functional/list/list.spec.ts +0 -0
- package/src/core/components/functional/queue/queue.demo.ts +0 -0
- package/src/core/components/functional/router/router.demo.ts +0 -0
- package/src/core/components/functional/router/router.md +0 -0
- package/src/core/components/functional/router/router.spec.ts +0 -0
- package/src/core/components/functional/router/router.ts +0 -0
- package/src/core/components/functional/sonic-scope/sonic-scope.ts +0 -0
- package/src/core/components/functional/states/states.demo.ts +0 -0
- package/src/core/components/functional/states/states.md +0 -0
- package/src/core/components/functional/states/states.spec.ts +0 -0
- package/src/core/components/functional/states/states.ts +0 -0
- package/src/core/components/functional/submit/submit.ts +0 -0
- package/src/core/components/functional/translation/translation.ts +0 -0
- package/src/core/components/ui/_css/scroll.ts +0 -0
- package/src/core/components/ui/_css/shadow.ts +0 -0
- package/src/core/components/ui/_css/size.ts +0 -0
- package/src/core/components/ui/_css/type.ts +0 -0
- package/src/core/components/ui/alert/alert.md +0 -0
- package/src/core/components/ui/alert/alert.ts +0 -0
- package/src/core/components/ui/alert-messages/alert-messages.md +0 -0
- package/src/core/components/ui/badge/badge.md +0 -0
- package/src/core/components/ui/badge/badge.ts +0 -0
- package/src/core/components/ui/button/button.md +0 -0
- package/src/core/components/ui/button/button.ts +5 -5
- package/src/core/components/ui/captcha/captcha.md +0 -0
- package/src/core/components/ui/captcha/captcha.ts +1 -1
- package/src/core/components/ui/card/card-footer.ts +0 -0
- package/src/core/components/ui/card/card-header-descripton.ts +0 -0
- package/src/core/components/ui/card/card-header.ts +0 -0
- package/src/core/components/ui/card/card-main.ts +0 -0
- package/src/core/components/ui/card/card.md +0 -0
- package/src/core/components/ui/card/card.ts +0 -0
- package/src/core/components/ui/divider/divider.ts +0 -0
- package/src/core/components/ui/form/checkbox/checkbox.md +0 -0
- package/src/core/components/ui/form/checkbox/checkbox.ts +1 -1
- package/src/core/components/ui/form/css/form-control.ts +0 -0
- package/src/core/components/ui/form/fieldset/fieldset.ts +0 -0
- package/src/core/components/ui/form/fieldset/legend-description.ts +0 -0
- package/src/core/components/ui/form/fieldset/legend.ts +0 -0
- package/src/core/components/ui/form/form-layout/form-layout.md +0 -0
- package/src/core/components/ui/form/input/input.md +0 -0
- package/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +0 -0
- package/src/core/components/ui/form/radio/radio.md +0 -0
- package/src/core/components/ui/form/radio/radio.ts +0 -0
- package/src/core/components/ui/form/select/select.md +0 -0
- package/src/core/components/ui/form/switch/switch.md +0 -0
- package/src/core/components/ui/form/switch/switch.ts +0 -0
- package/src/core/components/ui/form/textarea/textarea.ts +0 -0
- package/src/core/components/ui/icon/icon.ts +10 -9
- package/src/core/components/ui/icon/icons.ts +0 -0
- package/src/core/components/ui/image/image.md +0 -0
- package/src/core/components/ui/image/image.ts +0 -0
- package/src/core/components/ui/loader/loader.md +0 -0
- package/src/core/components/ui/loader/loader.ts +0 -0
- package/src/core/components/ui/loader/styles/fixed.ts +0 -0
- package/src/core/components/ui/loader/styles/inline.ts +0 -0
- package/src/core/components/ui/menu/menu.ts +0 -0
- package/src/core/components/ui/modal/modal-actions.ts +0 -0
- package/src/core/components/ui/modal/modal-subtitle.ts +0 -0
- package/src/core/components/ui/modal/modal-title.ts +0 -0
- package/src/core/components/ui/modal/modal.md +0 -0
- package/src/core/components/ui/modal/modal.ts +23 -0
- package/src/core/components/ui/pop/pop.md +0 -0
- package/src/core/components/ui/pop/pop.ts +1 -1
- package/src/core/components/ui/progress/progress.ts +0 -0
- package/src/core/components/ui/table/table-tbody.ts +0 -0
- package/src/core/components/ui/table/table-th.ts +0 -0
- package/src/core/components/ui/table/table.ts +0 -0
- package/src/core/components/ui/theme/theme-collection/core-variables.ts +0 -0
- package/src/core/components/ui/theme/theme-collection/dark.ts +0 -0
- package/src/core/components/ui/theme/theme-collection/light.ts +0 -0
- package/src/core/components/ui/theme/theme.ts +0 -0
- package/src/core/components/ui/toast/toast-item.ts +0 -0
- package/src/core/components/ui/toast/toast.ts +0 -0
- package/src/core/components/ui/tooltip/tooltip.ts +22 -7
- package/src/core/components/ui/ui.ts +0 -0
- package/src/core/directives/DataProvider.ts +0 -0
- package/src/core/directives/Wording.ts +0 -0
- package/src/core/mixins/Fetcher.ts +0 -0
- package/src/core/mixins/FormCheckable.ts +0 -0
- package/src/core/mixins/FormElement.ts +5 -1
- package/src/core/mixins/TemplatesContainer.ts +0 -0
- package/src/core/utils/HTML.ts +0 -0
- package/src/core/utils/LocationHandler.ts +0 -0
- package/src/core/utils/Objects.ts +0 -0
- package/src/core/utils/PublisherProxy.ts +0 -0
- package/src/core/utils/Utils.ts +0 -0
- package/src/core/utils/aesCrypto.ts +0 -0
- package/src/core/utils/api.ts +0 -0
- package/src/core/utils/route.spec.ts +0 -0
- package/src/core/utils/route.ts +0 -0
- package/src/docs/code.ts +0 -0
- package/src/docs/docs.ts +0 -0
- package/src/docs/header/header.ts +0 -0
- package/src/docs/layout.ts +0 -0
- package/src/docs/navigation/navigation.ts +0 -0
- package/src/docs/search/docs-search.json +0 -0
- package/src/docs/search/markdown-renderer.ts +0 -0
- package/src/docs/search/page.ts +0 -0
- package/src/docs/search/search.ts +0 -0
- package/src/docs/tailwind/css/tailwind.css +0 -0
- package/src/docs/tailwind/css.d.ts +0 -0
- package/src/index.ts +0 -0
- package/src/test-utils/TestUtils.ts +0 -0
- package/src/tsconfig-model.json +0 -0
- package/src/tsconfig.json +6 -6
- package/src/tsconfig.tsbuildinfo +1 -1
- package/tailwind.config.js +0 -0
- package/templates-test.html +0 -0
- package/vite/config.js +0 -0
- package/docs/assets/index-C0K6xugr.css +0 -1
- package/docs/assets/index-Dgl1lJQo.js +0 -4861
- 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 +0 -5
- package/docs/img/concorde-logo.svg +0 -1
- 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 +0 -93
- package/docs/src/core/components/functional/date/date.md +0 -290
- package/docs/src/core/components/functional/fetch/fetch.md +0 -117
- package/docs/src/core/components/functional/if/if.md +0 -16
- package/docs/src/core/components/functional/list/list.md +0 -199
- package/docs/src/core/components/functional/mix/mix.md +0 -41
- package/docs/src/core/components/functional/queue/queue.md +0 -87
- package/docs/src/core/components/functional/router/router.md +0 -129
- package/docs/src/core/components/functional/sdui/default-library.json +0 -108
- package/docs/src/core/components/functional/sdui/example.json +0 -99
- package/docs/src/core/components/functional/sdui/sdui.md +0 -356
- package/docs/src/core/components/functional/states/states.md +0 -87
- package/docs/src/core/components/functional/submit/submit.md +0 -83
- package/docs/src/core/components/functional/subscriber/subscriber.md +0 -91
- package/docs/src/core/components/functional/value/value.md +0 -35
- package/docs/src/core/components/ui/alert/alert.md +0 -121
- package/docs/src/core/components/ui/alert-messages/alert-messages.md +0 -0
- package/docs/src/core/components/ui/badge/badge.md +0 -127
- package/docs/src/core/components/ui/button/button.md +0 -182
- package/docs/src/core/components/ui/captcha/captcha.md +0 -24
- package/docs/src/core/components/ui/card/card.md +0 -97
- package/docs/src/core/components/ui/divider/divider.md +0 -35
- package/docs/src/core/components/ui/form/checkbox/checkbox.md +0 -104
- package/docs/src/core/components/ui/form/fieldset/fieldset.md +0 -129
- package/docs/src/core/components/ui/form/form-actions/form-actions.md +0 -77
- package/docs/src/core/components/ui/form/form-layout/form-layout.md +0 -44
- package/docs/src/core/components/ui/form/input/input.md +0 -167
- package/docs/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +0 -131
- package/docs/src/core/components/ui/form/radio/radio.md +0 -84
- package/docs/src/core/components/ui/form/select/select.md +0 -97
- package/docs/src/core/components/ui/form/switch/switch.md +0 -84
- package/docs/src/core/components/ui/form/textarea/textarea.md +0 -65
- package/docs/src/core/components/ui/group/group.md +0 -75
- package/docs/src/core/components/ui/icon/icon.md +0 -125
- package/docs/src/core/components/ui/icon/icons.json +0 -1
- package/docs/src/core/components/ui/image/image.md +0 -107
- package/docs/src/core/components/ui/link/link.md +0 -43
- package/docs/src/core/components/ui/loader/loader.md +0 -67
- package/docs/src/core/components/ui/menu/menu.md +0 -288
- package/docs/src/core/components/ui/modal/modal.md +0 -123
- package/docs/src/core/components/ui/pop/pop.md +0 -96
- package/docs/src/core/components/ui/progress/progress.md +0 -63
- package/docs/src/core/components/ui/table/table.md +0 -455
- package/docs/src/core/components/ui/tooltip/tooltip.md +0 -82
- package/docs/src/docs/_core-concept/overview.md +0 -57
- package/docs/src/docs/_core-concept/subscriber.md +0 -76
- package/docs/src/docs/_getting-started/concorde-outside.md +0 -143
- package/docs/src/docs/_getting-started/create-a-component.md +0 -137
- package/docs/src/docs/_getting-started/my-first-subscriber.md +0 -174
- package/docs/src/docs/_getting-started/pubsub.md +0 -150
- package/docs/src/docs/_getting-started/start.md +0 -39
- package/docs/src/docs/_getting-started/theming.md +0 -91
- package/docs/src/docs/search/docs-search.json +0 -3917
- package/docs/src/tag-list.json +0 -1
- package/docs/src/tsconfig-model.json +0 -23
- package/docs/src/tsconfig.json +0 -918
- package/docs/svg/regular/plane.svg +0 -1
- package/docs/svg/solid/plane.svg +0 -1
- package/php/get-challenge.php +0 -34
- package/php/some-service.php +0 -42
- /package/src/core/components/ui/captcha/{actchaStyles.ts → altchaStyles.ts} +0 -0
package/concorde-core.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
let
|
|
1
|
+
let et = class Nt {
|
|
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
|
*/
|
|
@@ -126,7 +126,7 @@ let Os = class {
|
|
|
126
126
|
return typeof t != "string" ? t : t.charAt(0).toUpperCase() + t.substring(1);
|
|
127
127
|
}
|
|
128
128
|
static minutesDuration(t, s = "", i = "long") {
|
|
129
|
-
s || (s =
|
|
129
|
+
s || (s = et.getLanguage());
|
|
130
130
|
const e = (h, d) => [Math.floor(h / d), h % d];
|
|
131
131
|
function o(h, d, p) {
|
|
132
132
|
return new Intl.NumberFormat(h, { style: "unit", unit: d, unitDisplay: p }).format;
|
|
@@ -475,7 +475,7 @@ let T = (k = class {
|
|
|
475
475
|
async setLocalData(t, s) {
|
|
476
476
|
var i;
|
|
477
477
|
await this.isLocalStrorageReady, t.set(
|
|
478
|
-
((i = this.localStorageData[s + "¤lang_" +
|
|
478
|
+
((i = this.localStorageData[s + "¤lang_" + et.getLanguage()]) == null ? void 0 : i.data) || t.get()
|
|
479
479
|
);
|
|
480
480
|
}
|
|
481
481
|
get(t, s) {
|
|
@@ -519,7 +519,7 @@ let T = (k = class {
|
|
|
519
519
|
const o = this.publishers.get(e);
|
|
520
520
|
if (!(o != null && o._is_savable_)) continue;
|
|
521
521
|
const n = o == null ? void 0 : o.get();
|
|
522
|
-
n && (this.localStorageData[e + "¤lang_" +
|
|
522
|
+
n && (this.localStorageData[e + "¤lang_" + et.getLanguage()] = {
|
|
523
523
|
lastModifiationMS: (/* @__PURE__ */ new Date()).getTime(),
|
|
524
524
|
expirationDelayMs: o._expiration_delay_,
|
|
525
525
|
data: n
|
|
@@ -559,7 +559,7 @@ let T = (k = class {
|
|
|
559
559
|
const h = await new Response(a.readable).arrayBuffer();
|
|
560
560
|
return new TextDecoder().decode(h);
|
|
561
561
|
}
|
|
562
|
-
}, k.buildDate = "Tue
|
|
562
|
+
}, k.buildDate = "Tue Aug 05 2025 16:59:39 GMT+0200 (Central European Summer Time)", k.changed = !1, k.saving = !1, k.saveId = 0, k.instance = null, k.instances = /* @__PURE__ */ new Map(), k.modifiedCollectore = [], k);
|
|
563
563
|
if (typeof window < "u") {
|
|
564
564
|
const r = window;
|
|
565
565
|
r[Ds + "PublisherManager"] = r[Ds + "PublisherManager"] || T;
|
|
@@ -714,17 +714,17 @@ try {
|
|
|
714
714
|
window.addEventListener("pageshow", (r) => {
|
|
715
715
|
r.persisted && T.getInstance().invalidateAll();
|
|
716
716
|
});
|
|
717
|
-
var
|
|
718
|
-
let qs = (
|
|
717
|
+
var E;
|
|
718
|
+
let qs = (E = class {
|
|
719
719
|
static disable() {
|
|
720
|
-
this.enabled && (this.enabled = !1, Array.from(
|
|
721
|
-
(t) =>
|
|
720
|
+
this.enabled && (this.enabled = !1, Array.from(E.observedElements.keys()).forEach(
|
|
721
|
+
(t) => E.unObserve(t)
|
|
722
722
|
));
|
|
723
723
|
}
|
|
724
724
|
static observe(t) {
|
|
725
|
-
if (!t || !
|
|
726
|
-
const s = new MutationObserver(
|
|
727
|
-
i.childList = !0, i.subtree = !0, i.attributes = !0, i.attributeFilter = ["data-bind"], s.observe(t, i), t.querySelectorAll("[data-bind]").forEach((e) =>
|
|
725
|
+
if (!t || !E.enabled || E.observedElements.has(t)) return;
|
|
726
|
+
const s = new MutationObserver(E.onMutation), i = {};
|
|
727
|
+
i.childList = !0, i.subtree = !0, i.attributes = !0, i.attributeFilter = ["data-bind"], s.observe(t, i), t.querySelectorAll("[data-bind]").forEach((e) => E.addPublisherListeners(e)), E.observedElements.set(t, s);
|
|
728
728
|
}
|
|
729
729
|
/**
|
|
730
730
|
* Arrêter à observer un élément html.
|
|
@@ -732,13 +732,13 @@ let qs = (L = class {
|
|
|
732
732
|
static unObserve(t) {
|
|
733
733
|
if (!t) return;
|
|
734
734
|
const s = this.observedElements.get(t);
|
|
735
|
-
s && (s.disconnect(), t.querySelectorAll("[data-bind]").forEach((i) =>
|
|
735
|
+
s && (s.disconnect(), t.querySelectorAll("[data-bind]").forEach((i) => E.removePublisherListeners(i)));
|
|
736
736
|
}
|
|
737
737
|
static onAdded(t) {
|
|
738
|
-
t.hasAttribute && t.hasAttribute("data-bind") &&
|
|
738
|
+
t.hasAttribute && t.hasAttribute("data-bind") && E.addPublisherListeners(t), t.querySelectorAll ? t.querySelectorAll("[data-bind]").forEach((s) => E.addPublisherListeners(s)) : t.childNodes.forEach((s) => E.onAdded(s));
|
|
739
739
|
}
|
|
740
740
|
static onRemoved(t) {
|
|
741
|
-
t.hasAttribute && t.hasAttribute("data-bind") &&
|
|
741
|
+
t.hasAttribute && t.hasAttribute("data-bind") && E.removePublisherListeners(t), t.querySelectorAll ? t.querySelectorAll("[data-bind]").forEach((s) => E.removePublisherListeners(s)) : t.childNodes.forEach((s) => E.onRemoved(s));
|
|
742
742
|
}
|
|
743
743
|
/**
|
|
744
744
|
* Callback appelé par le MutationObserver
|
|
@@ -747,13 +747,13 @@ let qs = (L = class {
|
|
|
747
747
|
for (const s of t)
|
|
748
748
|
switch (s.type) {
|
|
749
749
|
case "attributes":
|
|
750
|
-
|
|
750
|
+
E.addPublisherListeners(s.target);
|
|
751
751
|
break;
|
|
752
752
|
case "childList":
|
|
753
753
|
s.addedNodes.forEach((i) => {
|
|
754
|
-
|
|
754
|
+
E.onAdded(i);
|
|
755
755
|
}), s.removedNodes.forEach((i) => {
|
|
756
|
-
|
|
756
|
+
E.onRemoved(i);
|
|
757
757
|
});
|
|
758
758
|
break;
|
|
759
759
|
}
|
|
@@ -762,8 +762,8 @@ let qs = (L = class {
|
|
|
762
762
|
* La liaison avec le publisher supprimée ici.
|
|
763
763
|
*/
|
|
764
764
|
static removePublisherListeners(t) {
|
|
765
|
-
const s =
|
|
766
|
-
s && (
|
|
765
|
+
const s = E.publisherListeners.get(t);
|
|
766
|
+
s && (E.publisherListeners.delete(t), s.forEach((i) => {
|
|
767
767
|
var e;
|
|
768
768
|
(e = i.publisher) == null || e.offAssign(i.onAssign);
|
|
769
769
|
}));
|
|
@@ -797,7 +797,7 @@ let qs = (L = class {
|
|
|
797
797
|
static getDataBindItems(t) {
|
|
798
798
|
return "attributes" in t ? Array.from(t.attributes).filter((s) => s.name.indexOf("::") == 0).map((s) => ({
|
|
799
799
|
propertyToUpdate: s.name.substring(2).replace(/-((html)|\w)/g, (e) => e.substring(1).toUpperCase()),
|
|
800
|
-
bindedVariablesDescriptor:
|
|
800
|
+
bindedVariablesDescriptor: E.getVariablesDescriptor(s.value)
|
|
801
801
|
})) : [];
|
|
802
802
|
}
|
|
803
803
|
/**
|
|
@@ -820,25 +820,25 @@ let qs = (L = class {
|
|
|
820
820
|
* TODO Sans doute factoriser
|
|
821
821
|
*/
|
|
822
822
|
static addPublisherListeners(t) {
|
|
823
|
-
|
|
824
|
-
const s =
|
|
823
|
+
E.removePublisherListeners(t);
|
|
824
|
+
const s = et.getAncestorAttributeValue(
|
|
825
825
|
t.parentNode || t.host || t,
|
|
826
826
|
"dataProvider"
|
|
827
827
|
);
|
|
828
828
|
if (!s) return;
|
|
829
|
-
const i = T.getInstance().get(s), e =
|
|
829
|
+
const i = T.getInstance().get(s), e = E.getDataBindItems(t), o = [];
|
|
830
830
|
e.forEach((n) => {
|
|
831
831
|
const a = n.bindedVariablesDescriptor, c = n.propertyToUpdate;
|
|
832
832
|
for (const h of a.variables) {
|
|
833
833
|
const d = h;
|
|
834
834
|
let p = i;
|
|
835
|
-
p =
|
|
835
|
+
p = E.getSubPublisher(i, d);
|
|
836
836
|
const g = t, v = {
|
|
837
837
|
publisher: p,
|
|
838
838
|
onAssign: () => {
|
|
839
839
|
const b = a.variables.map((D) => {
|
|
840
840
|
var f;
|
|
841
|
-
return (f =
|
|
841
|
+
return (f = E.getSubPublisher(i, D)) == null ? void 0 : f.get();
|
|
842
842
|
});
|
|
843
843
|
let y = a.expression, _ = !1;
|
|
844
844
|
if (b.length == 1 && a.variables[0].join(".") == y.substring(1)) {
|
|
@@ -866,12 +866,12 @@ let qs = (L = class {
|
|
|
866
866
|
};
|
|
867
867
|
p == null || p.onAssign(v.onAssign), o.push(v);
|
|
868
868
|
}
|
|
869
|
-
}),
|
|
869
|
+
}), E.publisherListeners.set(t, o);
|
|
870
870
|
}
|
|
871
|
-
},
|
|
871
|
+
}, E.observedElements = /* @__PURE__ */ new Map(), E.enabled = !0, E.publisherListeners = /* @__PURE__ */ new Map(), E);
|
|
872
872
|
qs.observe(document.documentElement);
|
|
873
873
|
window.SonicDataBindObserver || (window.SonicDataBindObserver = qs);
|
|
874
|
-
let
|
|
874
|
+
let st = class Ht {
|
|
875
875
|
/**
|
|
876
876
|
* Effectue une comparaison d'égalité non profonde entre deux objets.
|
|
877
877
|
*/
|
|
@@ -897,8 +897,8 @@ let et = class Bt {
|
|
|
897
897
|
if (e.length !== o.length && i)
|
|
898
898
|
return !1;
|
|
899
899
|
for (const n of e) {
|
|
900
|
-
const a = t[n], c = s[n], h =
|
|
901
|
-
if (h && !
|
|
900
|
+
const a = t[n], c = s[n], h = Ht.isObject(a) && Ht.isObject(c), d = i ? a !== c : a != c;
|
|
901
|
+
if (h && !Ht.deepEqual(a, c) || !h && d)
|
|
902
902
|
return !1;
|
|
903
903
|
}
|
|
904
904
|
return !0;
|
|
@@ -917,7 +917,7 @@ let et = class Bt {
|
|
|
917
917
|
return t == null;
|
|
918
918
|
}
|
|
919
919
|
static isEmpty(t) {
|
|
920
|
-
return
|
|
920
|
+
return Ht.isUndefindOrNull(t) ? !0 : Object.keys(t).length === 0;
|
|
921
921
|
}
|
|
922
922
|
/**
|
|
923
923
|
* traverse l'objet pour obtenir la valeur a l'adresse donnée via le tableau de clés pathArray.
|
|
@@ -929,19 +929,19 @@ let et = class Bt {
|
|
|
929
929
|
const o = t[e];
|
|
930
930
|
if (o === void 0)
|
|
931
931
|
return;
|
|
932
|
-
i &&
|
|
932
|
+
i && Ht.isObject(o) ? t = Object.assign(Array.isArray(o) ? [] : {}, t, o) : t = t[e];
|
|
933
933
|
}
|
|
934
934
|
return t;
|
|
935
935
|
}
|
|
936
936
|
static traverseDotNotation(t, s, i = !1) {
|
|
937
|
-
return
|
|
937
|
+
return Ht.traverse(t, s.split("."), i);
|
|
938
938
|
}
|
|
939
939
|
/*eslint-enable @typescript-eslint/no-explicit-any*/
|
|
940
940
|
static getURLSearchArray(t, s = "") {
|
|
941
941
|
let i = [];
|
|
942
942
|
for (let e in t) {
|
|
943
943
|
const o = t[e];
|
|
944
|
-
s && (e = s + "[" + e + "]"),
|
|
944
|
+
s && (e = s + "[" + e + "]"), Ht.isObject(o) ? i = [
|
|
945
945
|
...i,
|
|
946
946
|
...this.getURLSearchArray(o, e)
|
|
947
947
|
] : i.push(`${e}=${o}`);
|
|
@@ -949,10 +949,10 @@ let et = class Bt {
|
|
|
949
949
|
return i;
|
|
950
950
|
}
|
|
951
951
|
static getURLSearchString(t) {
|
|
952
|
-
return
|
|
952
|
+
return Ht.getURLSearchArray(t, "").join("&");
|
|
953
953
|
}
|
|
954
954
|
};
|
|
955
|
-
const pt =
|
|
955
|
+
const pt = st.traverseDotNotation;
|
|
956
956
|
/**
|
|
957
957
|
* @license
|
|
958
958
|
* Copyright 2017 Google LLC
|
|
@@ -1010,7 +1010,7 @@ const zo = (r) => new Wr(typeof r == "string" ? r : r + "", void 0, Fi), P = (r,
|
|
|
1010
1010
|
* Copyright 2017 Google LLC
|
|
1011
1011
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1012
1012
|
*/
|
|
1013
|
-
const { is: Uo, defineProperty: Vo, getOwnPropertyDescriptor:
|
|
1013
|
+
const { is: Uo, defineProperty: Vo, getOwnPropertyDescriptor: Bo, getOwnPropertyNames: Ho, getOwnPropertySymbols: qo, getPrototypeOf: Wo } = Object, Qt = globalThis, cr = Qt.trustedTypes, Ko = cr ? cr.emptyScript : "", ii = Qt.reactiveElementPolyfillSupport, Ze = (r, t) => r, ks = { toAttribute(r, t) {
|
|
1014
1014
|
switch (t) {
|
|
1015
1015
|
case Boolean:
|
|
1016
1016
|
r = r ? Ko : null;
|
|
@@ -1054,7 +1054,7 @@ let De = class extends HTMLElement {
|
|
|
1054
1054
|
}
|
|
1055
1055
|
}
|
|
1056
1056
|
static getPropertyDescriptor(t, s, i) {
|
|
1057
|
-
const { get: e, set: o } =
|
|
1057
|
+
const { get: e, set: o } = Bo(this.prototype, t) ?? { get() {
|
|
1058
1058
|
return this[s];
|
|
1059
1059
|
}, set(n) {
|
|
1060
1060
|
this[s] = n;
|
|
@@ -1077,7 +1077,7 @@ let De = class extends HTMLElement {
|
|
|
1077
1077
|
static finalize() {
|
|
1078
1078
|
if (this.hasOwnProperty(Ze("finalized"))) return;
|
|
1079
1079
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Ze("properties"))) {
|
|
1080
|
-
const s = this.properties, i = [...
|
|
1080
|
+
const s = this.properties, i = [...Ho(s), ...qo(s)];
|
|
1081
1081
|
for (const e of i) this.createProperty(e, s[e]);
|
|
1082
1082
|
}
|
|
1083
1083
|
const t = this[Symbol.metadata];
|
|
@@ -1276,7 +1276,7 @@ function l(r) {
|
|
|
1276
1276
|
* Copyright 2017 Google LLC
|
|
1277
1277
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1278
1278
|
*/
|
|
1279
|
-
function
|
|
1279
|
+
function L(r) {
|
|
1280
1280
|
return l({ ...r, state: !0, attribute: !1 });
|
|
1281
1281
|
}
|
|
1282
1282
|
/**
|
|
@@ -1336,22 +1336,22 @@ function dt(r) {
|
|
|
1336
1336
|
* Copyright 2017 Google LLC
|
|
1337
1337
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1338
1338
|
*/
|
|
1339
|
-
const Xe = globalThis, Ls = Xe.trustedTypes, dr = Ls ? Ls.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Ui = "$lit$", qt = `lit$${Math.random().toFixed(9).slice(2)}$`, Vi = "?" + qt, Xo = `<${Vi}>`, me = document, es = () => me.createComment(""), ss = (r) => r === null || typeof r != "object" && typeof r != "function",
|
|
1340
|
-
\f\r]`,
|
|
1339
|
+
const Xe = globalThis, Ls = Xe.trustedTypes, dr = Ls ? Ls.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Ui = "$lit$", qt = `lit$${Math.random().toFixed(9).slice(2)}$`, Vi = "?" + qt, Xo = `<${Vi}>`, me = document, es = () => me.createComment(""), ss = (r) => r === null || typeof r != "object" && typeof r != "function", Bi = Array.isArray, Kr = (r) => Bi(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", ri = `[
|
|
1340
|
+
\f\r]`, Be = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, pr = /-->/g, ur = />/g, le = RegExp(`>|${ri}(?:([^\\s"'>=/]+)(${ri}*=${ri}*(?:[^
|
|
1341
1341
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), fr = /'/g, mr = /"/g, Yr = /^(?:script|style|textarea|title)$/i, Go = (r) => (t, ...s) => ({ _$litType$: r, strings: t, values: s }), m = Go(1), _t = Symbol.for("lit-noChange"), C = Symbol.for("lit-nothing"), gr = /* @__PURE__ */ new WeakMap(), ue = me.createTreeWalker(me, 129);
|
|
1342
1342
|
function Zr(r, t) {
|
|
1343
|
-
if (!
|
|
1343
|
+
if (!Bi(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
1344
1344
|
return dr !== void 0 ? dr.createHTML(t) : t;
|
|
1345
1345
|
}
|
|
1346
1346
|
const Xr = (r, t) => {
|
|
1347
1347
|
const s = r.length - 1, i = [];
|
|
1348
|
-
let e, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n =
|
|
1348
|
+
let e, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = Be;
|
|
1349
1349
|
for (let a = 0; a < s; a++) {
|
|
1350
1350
|
const c = r[a];
|
|
1351
1351
|
let h, d, p = -1, g = 0;
|
|
1352
|
-
for (; g < c.length && (n.lastIndex = g, d = n.exec(c), d !== null); ) g = n.lastIndex, n ===
|
|
1352
|
+
for (; g < c.length && (n.lastIndex = g, d = n.exec(c), d !== null); ) g = n.lastIndex, n === Be ? d[1] === "!--" ? n = pr : d[1] !== void 0 ? n = ur : d[2] !== void 0 ? (Yr.test(d[2]) && (e = RegExp("</" + d[2], "g")), n = le) : d[3] !== void 0 && (n = le) : n === le ? d[0] === ">" ? (n = e ?? Be, p = -1) : d[1] === void 0 ? p = -2 : (p = n.lastIndex - d[2].length, h = d[1], n = d[3] === void 0 ? le : d[3] === '"' ? mr : fr) : n === mr || n === fr ? n = le : n === pr || n === ur ? n = Be : (n = le, e = void 0);
|
|
1353
1353
|
const v = n === le && r[a + 1].startsWith("/>") ? " " : "";
|
|
1354
|
-
o += n ===
|
|
1354
|
+
o += n === Be ? c + Xo : p >= 0 ? (i.push(h), c.slice(0, p) + Ui + c.slice(p) + qt + v) : c + qt + (p === -2 ? a : v);
|
|
1355
1355
|
}
|
|
1356
1356
|
return [Zr(r, o + (r[s] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
|
1357
1357
|
};
|
|
@@ -1471,7 +1471,7 @@ let Qr = class {
|
|
|
1471
1471
|
return s === void 0 && gr.set(t.strings, s = new fi(t)), s;
|
|
1472
1472
|
}
|
|
1473
1473
|
k(t) {
|
|
1474
|
-
|
|
1474
|
+
Bi(this._$AH) || (this._$AH = [], this._$AR());
|
|
1475
1475
|
const s = this._$AH;
|
|
1476
1476
|
let i, e = 0;
|
|
1477
1477
|
for (const o of t) e === s.length ? s.push(i = new Jr(this.O(es()), this.O(es()), this, this.options)) : i = s[e], i._$AI(o), e++;
|
|
@@ -1570,7 +1570,7 @@ const Jo = (r, t, s) => {
|
|
|
1570
1570
|
* Copyright 2020 Google LLC
|
|
1571
1571
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1572
1572
|
*/
|
|
1573
|
-
const { I: tn } = Qo, en = (r) => r.strings === void 0, br = () => document.createComment(""),
|
|
1573
|
+
const { I: tn } = Qo, en = (r) => r.strings === void 0, br = () => document.createComment(""), He = (r, t, s) => {
|
|
1574
1574
|
var o;
|
|
1575
1575
|
const i = r._$AA.parentNode, e = t === void 0 ? r._$AB : t._$AA;
|
|
1576
1576
|
if (s === void 0) {
|
|
@@ -1713,8 +1713,8 @@ let x = class extends De {
|
|
|
1713
1713
|
return _t;
|
|
1714
1714
|
}
|
|
1715
1715
|
};
|
|
1716
|
-
var
|
|
1717
|
-
x._$litElement$ = !0, x.finalized = !0, (
|
|
1716
|
+
var Hr;
|
|
1717
|
+
x._$litElement$ = !0, x.finalized = !0, (Hr = globalThis.litElementHydrateSupport) == null || Hr.call(globalThis, { LitElement: x });
|
|
1718
1718
|
const ai = globalThis.litElementPolyfillSupport;
|
|
1719
1719
|
ai == null || ai({ LitElement: x });
|
|
1720
1720
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
|
|
@@ -1726,7 +1726,7 @@ function Ks(r) {
|
|
|
1726
1726
|
if (typeof r == "string") {
|
|
1727
1727
|
const t = r.split("."), s = t.shift() || "";
|
|
1728
1728
|
let i = T.get(s);
|
|
1729
|
-
i =
|
|
1729
|
+
i = st.traverse(i, t);
|
|
1730
1730
|
const e = /* @__PURE__ */ new Set();
|
|
1731
1731
|
return e.add(i), e;
|
|
1732
1732
|
}
|
|
@@ -1778,7 +1778,7 @@ const no = Ae(cn), hn = no, dn = no, pn = (r) => {
|
|
|
1778
1778
|
const s = Ks(r).values().next().value;
|
|
1779
1779
|
if (t !== void 0 && s) {
|
|
1780
1780
|
const i = s.get();
|
|
1781
|
-
|
|
1781
|
+
st.isEmpty(i) && s.set(t);
|
|
1782
1782
|
}
|
|
1783
1783
|
return s;
|
|
1784
1784
|
}, un = ao, lo = ao, fn = (r, t) => {
|
|
@@ -1814,7 +1814,7 @@ const no = Ae(cn), hn = no, dn = no, pn = (r) => {
|
|
|
1814
1814
|
} catch {
|
|
1815
1815
|
o = {};
|
|
1816
1816
|
}
|
|
1817
|
-
this.addHTTPResponse &&
|
|
1817
|
+
this.addHTTPResponse && st.isObject(o) && (o._sonic_http_response_ = t), e === 498 && !z.failledTokenUpdates.has(this.serviceURL) && (this.handleInvalidToken(this.token), s.apiMethod === "get" ? o = await this[s.apiMethod](
|
|
1818
1818
|
s.path,
|
|
1819
1819
|
s.additionalHeaders
|
|
1820
1820
|
) : o = await this[s.apiMethod](
|
|
@@ -1952,7 +1952,7 @@ const no = Ae(cn), hn = no, dn = no, pn = (r) => {
|
|
|
1952
1952
|
async createHeaders(t) {
|
|
1953
1953
|
await this.auth();
|
|
1954
1954
|
const s = {};
|
|
1955
|
-
return this.token && (s.Authorization = "Bearer " + this.token), s["Accept-Language"] =
|
|
1955
|
+
return this.token && (s.Authorization = "Bearer " + this.token), s["Accept-Language"] = et.getLanguage(), t && Object.assign(s, t), s;
|
|
1956
1956
|
}
|
|
1957
1957
|
/**
|
|
1958
1958
|
* Concatène le serviceURL et le endpoint donné en paramètre
|
|
@@ -2034,7 +2034,7 @@ const no = Ae(cn), hn = no, dn = no, pn = (r) => {
|
|
|
2034
2034
|
};
|
|
2035
2035
|
z.loadingGetPromises = /* @__PURE__ */ new Map(), z.tokens = /* @__PURE__ */ new Map(), z.invalidTokens = [], z.failledTokenUpdates = /* @__PURE__ */ new Map(), z.firstCallDoneFlags = /* @__PURE__ */ new Map();
|
|
2036
2036
|
let Ee = z;
|
|
2037
|
-
|
|
2037
|
+
et.getApiConfiguration(
|
|
2038
2038
|
document.body || document.documentElement
|
|
2039
2039
|
);
|
|
2040
2040
|
const mn = async (r, t) => {
|
|
@@ -2061,10 +2061,10 @@ let mi = class extends je {
|
|
|
2061
2061
|
mi.directiveName = "unsafeHTML", mi.resultType = 1;
|
|
2062
2062
|
const R = Ae(mi), gi = /* @__PURE__ */ new Map(), vr = (r) => {
|
|
2063
2063
|
if (!r) return null;
|
|
2064
|
-
const t =
|
|
2064
|
+
const t = et.getApiConfiguration(r), s = et.getAncestorAttributeValue(
|
|
2065
2065
|
r,
|
|
2066
2066
|
"wordingProvider"
|
|
2067
|
-
), i =
|
|
2067
|
+
), i = et.getAncestorAttributeValue(
|
|
2068
2068
|
r,
|
|
2069
2069
|
"wordingVersionProvider"
|
|
2070
2070
|
), e = {
|
|
@@ -2074,7 +2074,7 @@ const R = Ae(mi), gi = /* @__PURE__ */ new Map(), vr = (r) => {
|
|
|
2074
2074
|
};
|
|
2075
2075
|
let o = null;
|
|
2076
2076
|
for (const [n, a] of gi)
|
|
2077
|
-
if (
|
|
2077
|
+
if (st.deepEqual(n, e)) {
|
|
2078
2078
|
o = a;
|
|
2079
2079
|
break;
|
|
2080
2080
|
}
|
|
@@ -2087,7 +2087,7 @@ const R = Ae(mi), gi = /* @__PURE__ */ new Map(), vr = (r) => {
|
|
|
2087
2087
|
wordingVersionProvider: i,
|
|
2088
2088
|
apiCallKey: e
|
|
2089
2089
|
}, gi.set(e, o)), o;
|
|
2090
|
-
}, yr = "",
|
|
2090
|
+
}, yr = "", H = class H extends oo {
|
|
2091
2091
|
/* eslint-disable @typescript-eslint/no-explicit-any*/
|
|
2092
2092
|
constructor(t) {
|
|
2093
2093
|
super(t), this.useUnsafeHTML = !1, this.onAssign = (s) => {
|
|
@@ -2096,29 +2096,29 @@ const R = Ae(mi), gi = /* @__PURE__ */ new Map(), vr = (r) => {
|
|
|
2096
2096
|
}, this.node = t.options.host;
|
|
2097
2097
|
}
|
|
2098
2098
|
unsubscribe() {
|
|
2099
|
-
|
|
2099
|
+
H.publisher["wording_" + this.key].offAssign(this.onAssign);
|
|
2100
2100
|
}
|
|
2101
2101
|
/* eslint-enable @typescript-eslint/no-explicit-any*/
|
|
2102
2102
|
render(t, s = !1) {
|
|
2103
2103
|
return this.useUnsafeHTML = s, this.key !== t && (this.key = t, this.isConnected && this.subscribe(t)), _t;
|
|
2104
2104
|
}
|
|
2105
2105
|
static async callApi(t, s, i = !0, e) {
|
|
2106
|
-
if (await T.getInstance().isLocalStrorageReady,
|
|
2107
|
-
|
|
2108
|
-
const d = Object.keys(
|
|
2106
|
+
if (await T.getInstance().isLocalStrorageReady, H.firstCall) {
|
|
2107
|
+
H.firstCall = !1, Mi(H.reloadWordings);
|
|
2108
|
+
const d = Object.keys(H.publisher.get());
|
|
2109
2109
|
for (const p of d)
|
|
2110
|
-
|
|
2110
|
+
H.publisher.get()[p] === yr && delete H.publisher[p];
|
|
2111
2111
|
}
|
|
2112
2112
|
if (t) {
|
|
2113
|
-
const d =
|
|
2113
|
+
const d = et.getAncestorAttributeValue(
|
|
2114
2114
|
t,
|
|
2115
2115
|
"wordingVersionProvider"
|
|
2116
2116
|
);
|
|
2117
2117
|
d && lo(d).onAssign(
|
|
2118
|
-
|
|
2118
|
+
H.handleVersionProvider(t)
|
|
2119
2119
|
);
|
|
2120
2120
|
}
|
|
2121
|
-
let o =
|
|
2121
|
+
let o = H.publisher.get()["wording_" + s] != null;
|
|
2122
2122
|
const n = e || vr(t);
|
|
2123
2123
|
if (!n) return;
|
|
2124
2124
|
if (o && s !== "") {
|
|
@@ -2129,13 +2129,13 @@ const R = Ae(mi), gi = /* @__PURE__ */ new Map(), vr = (r) => {
|
|
|
2129
2129
|
const a = n.callIndex, c = n.wordingProvider ?? "";
|
|
2130
2130
|
if (!c && i) {
|
|
2131
2131
|
window.setTimeout(async () => {
|
|
2132
|
-
|
|
2132
|
+
H.callApi(null, s, !1, n);
|
|
2133
2133
|
}, 1e3);
|
|
2134
2134
|
return;
|
|
2135
2135
|
}
|
|
2136
2136
|
const h = n.api;
|
|
2137
2137
|
window.queueMicrotask(async () => {
|
|
2138
|
-
if (o =
|
|
2138
|
+
if (o = H.publisher["wording_" + s].get() != null, !o && s !== "" && (n.keysToTranslate.add(s), H.publisher["wording_" + s] = yr), a !== n.callIndex) return;
|
|
2139
2139
|
const d = Array.from(n.keysToTranslate);
|
|
2140
2140
|
if (!d.length) return;
|
|
2141
2141
|
const p = c.split("?"), g = p.shift(), v = (p.length > 0 ? p.join("?") + "&" : "") + "labels[]=" + d.join("&labels[]="), b = g + "?" + v;
|
|
@@ -2145,23 +2145,23 @@ const R = Ae(mi), gi = /* @__PURE__ */ new Map(), vr = (r) => {
|
|
|
2145
2145
|
]), n.keysToTranslate.clear();
|
|
2146
2146
|
const y = await h.get(b);
|
|
2147
2147
|
for (const _ in y)
|
|
2148
|
-
|
|
2148
|
+
H.publisher["wording_" + _] = y[_];
|
|
2149
2149
|
});
|
|
2150
2150
|
}
|
|
2151
2151
|
static reloadWordings() {
|
|
2152
2152
|
for (const t of gi.values())
|
|
2153
|
-
t.keysToTranslate = new Set(t.translatedKeys), t.keysToTranslate.size > 0 &&
|
|
2153
|
+
t.keysToTranslate = new Set(t.translatedKeys), t.keysToTranslate.size > 0 && H.callApi(null, "", !1, t);
|
|
2154
2154
|
}
|
|
2155
2155
|
//check if the wording version has changed
|
|
2156
2156
|
static handleVersionProvider(t) {
|
|
2157
2157
|
const s = vr(t), i = (o) => {
|
|
2158
2158
|
};
|
|
2159
2159
|
if (!s) return i;
|
|
2160
|
-
if (
|
|
2161
|
-
return
|
|
2160
|
+
if (H.versionProviderHandlers.has(s))
|
|
2161
|
+
return H.versionProviderHandlers.get(s) || i;
|
|
2162
2162
|
const e = function(o) {
|
|
2163
2163
|
if (!s.wordingVersionProvider) return;
|
|
2164
|
-
const a =
|
|
2164
|
+
const a = H.publisher.get().__wording_versions__ ?? [];
|
|
2165
2165
|
if (o == null) return;
|
|
2166
2166
|
const c = a.find(
|
|
2167
2167
|
(h) => h.serviceURL === s.api.serviceURL
|
|
@@ -2169,9 +2169,9 @@ const R = Ae(mi), gi = /* @__PURE__ */ new Map(), vr = (r) => {
|
|
|
2169
2169
|
serviceURL: s.api.serviceURL,
|
|
2170
2170
|
version: 0
|
|
2171
2171
|
};
|
|
2172
|
-
a.includes(c) || a.push(c), o !== c.version && (c.version = o,
|
|
2172
|
+
a.includes(c) || a.push(c), o !== c.version && (c.version = o, H.publisher.set({ __wording_versions__: a }), H.reloadWordings());
|
|
2173
2173
|
};
|
|
2174
|
-
return
|
|
2174
|
+
return H.versionProviderHandlers.set(
|
|
2175
2175
|
s,
|
|
2176
2176
|
e
|
|
2177
2177
|
), e;
|
|
@@ -2179,7 +2179,7 @@ const R = Ae(mi), gi = /* @__PURE__ */ new Map(), vr = (r) => {
|
|
|
2179
2179
|
// Subscribes to the key, calling the directive's asynchronous
|
|
2180
2180
|
// setValue API each time the value changes
|
|
2181
2181
|
subscribe(t) {
|
|
2182
|
-
this.unsubscribe(),
|
|
2182
|
+
this.unsubscribe(), H.publisher["wording_" + t].onAssign(this.onAssign), H.callApi(this.node, t);
|
|
2183
2183
|
}
|
|
2184
2184
|
// When the directive is disconnected from the DOM, unsubscribe to ensure
|
|
2185
2185
|
// the directive instance can be garbage collected
|
|
@@ -2192,10 +2192,10 @@ const R = Ae(mi), gi = /* @__PURE__ */ new Map(), vr = (r) => {
|
|
|
2192
2192
|
this.key && this.subscribe(this.key);
|
|
2193
2193
|
}
|
|
2194
2194
|
};
|
|
2195
|
-
|
|
2195
|
+
H.publisher = T.get("sonic-wording", {
|
|
2196
2196
|
localStorageMode: "enabled"
|
|
2197
|
-
}),
|
|
2198
|
-
let ke =
|
|
2197
|
+
}), H.firstCall = !0, H.versionProviderHandlers = /* @__PURE__ */ new Map();
|
|
2198
|
+
let ke = H;
|
|
2199
2199
|
const gn = Ae(ke), bn = gn;
|
|
2200
2200
|
var vn = Object.defineProperty, yn = Object.getOwnPropertyDescriptor, Lt = (r, t, s, i) => {
|
|
2201
2201
|
for (var e = i > 1 ? void 0 : i ? yn(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
@@ -2225,7 +2225,7 @@ const G = (r, t) => {
|
|
|
2225
2225
|
* @returns valeur de l'attribut ou null si l'attribut n'est pas trouvé
|
|
2226
2226
|
*/
|
|
2227
2227
|
getAncestorAttributeValue(n) {
|
|
2228
|
-
return
|
|
2228
|
+
return et.getAncestorAttributeValue(this, n);
|
|
2229
2229
|
}
|
|
2230
2230
|
get props() {
|
|
2231
2231
|
return this._props !== null || !this.publisher ? this._props : this.publisher.get();
|
|
@@ -2304,7 +2304,7 @@ const G = (r, t) => {
|
|
|
2304
2304
|
* A voir si on le bouge dans un utilitaire
|
|
2305
2305
|
*/
|
|
2306
2306
|
getApiConfiguration() {
|
|
2307
|
-
return
|
|
2307
|
+
return et.getApiConfiguration(this);
|
|
2308
2308
|
}
|
|
2309
2309
|
/**
|
|
2310
2310
|
* Initialise le remplisage automatique des traductions / du wording
|
|
@@ -2345,7 +2345,7 @@ const G = (r, t) => {
|
|
|
2345
2345
|
const h = this.getAttribute(
|
|
2346
2346
|
"subDataProvider"
|
|
2347
2347
|
);
|
|
2348
|
-
this.dataProvider = a + "/" + h, c =
|
|
2348
|
+
this.dataProvider = a + "/" + h, c = st.traverse(c, h.split(".")), n.set(this.dataProvider, c), this.publisher = c;
|
|
2349
2349
|
}
|
|
2350
2350
|
this.publisher = c;
|
|
2351
2351
|
}
|
|
@@ -2374,7 +2374,7 @@ const G = (r, t) => {
|
|
|
2374
2374
|
], s.prototype, "bindPublisher", 2), Lt([
|
|
2375
2375
|
l()
|
|
2376
2376
|
], s.prototype, "props", 1), Lt([
|
|
2377
|
-
|
|
2377
|
+
L()
|
|
2378
2378
|
], s.prototype, "shouldRenderLazy", 2), s;
|
|
2379
2379
|
};
|
|
2380
2380
|
var _n = Object.defineProperty, wn = (r, t, s, i) => {
|
|
@@ -2413,7 +2413,7 @@ let U = class extends G(ds(x)) {
|
|
|
2413
2413
|
}
|
|
2414
2414
|
static updateComponentsLanguage() {
|
|
2415
2415
|
U.dateCompnents.forEach(
|
|
2416
|
-
(r) => r.pageLanguage =
|
|
2416
|
+
(r) => r.pageLanguage = et.getLanguage()
|
|
2417
2417
|
);
|
|
2418
2418
|
}
|
|
2419
2419
|
get wording_billet_periode_validite() {
|
|
@@ -2424,7 +2424,7 @@ let U = class extends G(ds(x)) {
|
|
|
2424
2424
|
r || (r = "Du %s au %s"), this._wording_billet_periode_validite = r, this.duAu = (t = this.wording_billet_periode_validite) == null ? void 0 : t.split("%s").map((s) => s.trim()), this.duAu.pop(), this.requestUpdate();
|
|
2425
2425
|
}
|
|
2426
2426
|
connectedCallback() {
|
|
2427
|
-
this.hasAttribute("wording_billet_periode_validite") || (this.wording_billet_periode_validite = "Du %s au %s"), this.pageLanguage =
|
|
2427
|
+
this.hasAttribute("wording_billet_periode_validite") || (this.wording_billet_periode_validite = "Du %s au %s"), this.pageLanguage = et.getLanguage(), U.dateCompnents.add(this), super.connectedCallback();
|
|
2428
2428
|
}
|
|
2429
2429
|
disconnectedCallback() {
|
|
2430
2430
|
super.disconnectedCallback(), U.dateCompnents.delete(this);
|
|
@@ -2565,7 +2565,7 @@ U = Z([
|
|
|
2565
2565
|
$(Pn)
|
|
2566
2566
|
], U);
|
|
2567
2567
|
var t, K;
|
|
2568
|
-
let
|
|
2568
|
+
let it = (K = class {
|
|
2569
2569
|
static listen() {
|
|
2570
2570
|
var s;
|
|
2571
2571
|
if (!K.listening)
|
|
@@ -2741,7 +2741,7 @@ const Ps = /* @__PURE__ */ new Map(), Fe = (r) => {
|
|
|
2741
2741
|
return this._value;
|
|
2742
2742
|
}
|
|
2743
2743
|
set value(i) {
|
|
2744
|
-
i == null && (i = ""),
|
|
2744
|
+
i == null && (i = ""), st.isObject(i) && Object.prototype.hasOwnProperty.call(i, "__value") && i._value == null && (i = ""), this._value != i && (this._value = i, this.updateDataValue(), this.requestUpdate());
|
|
2745
2745
|
}
|
|
2746
2746
|
initPublisher() {
|
|
2747
2747
|
let i = this.getFormPublisher();
|
|
@@ -2990,9 +2990,9 @@ var bi = { exports: {} };
|
|
|
2990
2990
|
}, y = function(f) {
|
|
2991
2991
|
return new RegExp(f.toString() + "|").exec("").length - 1;
|
|
2992
2992
|
}, v = function(f, u) {
|
|
2993
|
-
var w, S, O, N,
|
|
2993
|
+
var w, S, O, N, B;
|
|
2994
2994
|
for (N = {}, w = -1, O = f.length; ++w < O; )
|
|
2995
|
-
S = f[w],
|
|
2995
|
+
S = f[w], B = u[w], B != null && (N[S] != null ? (Array.isArray(N[S]) || (N[S] = [N[S]]), N[S].push(B)) : N[S] = B);
|
|
2996
2996
|
return N;
|
|
2997
2997
|
}, i = {}, i.Result = function(f, u) {
|
|
2998
2998
|
this.value = f, this.rest = u;
|
|
@@ -3013,11 +3013,11 @@ var bi = { exports: {} };
|
|
|
3013
3013
|
}, i.sequence = function() {
|
|
3014
3014
|
var f;
|
|
3015
3015
|
return f = 1 <= arguments.length ? s.call(arguments, 0) : [], function(u) {
|
|
3016
|
-
var w, S, O, N,
|
|
3016
|
+
var w, S, O, N, B, W;
|
|
3017
3017
|
for (w = -1, S = f.length, W = [], N = u; ++w < S; ) {
|
|
3018
|
-
if (O = f[w],
|
|
3018
|
+
if (O = f[w], B = O(N), B == null)
|
|
3019
3019
|
return;
|
|
3020
|
-
W.push(
|
|
3020
|
+
W.push(B.value), N = B.rest;
|
|
3021
3021
|
}
|
|
3022
3022
|
return new i.Result(W, N);
|
|
3023
3023
|
};
|
|
@@ -3040,9 +3040,9 @@ var bi = { exports: {} };
|
|
|
3040
3040
|
return u == null && (u = f()), u(w);
|
|
3041
3041
|
};
|
|
3042
3042
|
}, i.baseMany = function(f, u, w, S, O) {
|
|
3043
|
-
var N,
|
|
3044
|
-
for (W = O, Ot = w ? "" : []; !(u != null && (N = u(W), N != null) || (
|
|
3045
|
-
w ? Ot +=
|
|
3043
|
+
var N, B, W, Ot;
|
|
3044
|
+
for (W = O, Ot = w ? "" : []; !(u != null && (N = u(W), N != null) || (B = f(W), B == null)); )
|
|
3045
|
+
w ? Ot += B.value : Ot.push(B.value), W = B.rest;
|
|
3046
3046
|
if (!(S && Ot.length === 0))
|
|
3047
3047
|
return new i.Result(Ot, W);
|
|
3048
3048
|
}, i.many1 = function(f) {
|
|
@@ -3113,7 +3113,7 @@ var bi = { exports: {} };
|
|
|
3113
3113
|
return n(f.value);
|
|
3114
3114
|
}
|
|
3115
3115
|
}, g = function(f, u, w, S) {
|
|
3116
|
-
var O, N,
|
|
3116
|
+
var O, N, B, W;
|
|
3117
3117
|
if (S == null && (S = !1), W = f[u], W == null) {
|
|
3118
3118
|
if (S)
|
|
3119
3119
|
throw new Error("no values provided for key `" + u + "`");
|
|
@@ -3124,7 +3124,7 @@ var bi = { exports: {} };
|
|
|
3124
3124
|
throw new Error("too few values provided for key `" + u + "`");
|
|
3125
3125
|
return;
|
|
3126
3126
|
}
|
|
3127
|
-
return
|
|
3127
|
+
return B = Array.isArray(W) ? W[O] : W, S && (w[u] = O + 1), B;
|
|
3128
3128
|
}, o = function(f, u, w) {
|
|
3129
3129
|
var S, O;
|
|
3130
3130
|
if (Array.isArray(f)) {
|
|
@@ -3159,7 +3159,7 @@ var bi = { exports: {} };
|
|
|
3159
3159
|
return o(f.value, u, w) ? D(f.value, u, w) : "";
|
|
3160
3160
|
}
|
|
3161
3161
|
}, e = function(f, u) {
|
|
3162
|
-
var w, S, O, N,
|
|
3162
|
+
var w, S, O, N, B;
|
|
3163
3163
|
if (f instanceof e) {
|
|
3164
3164
|
this.isRegex = f.isRegex, this.regex = f.regex, this.ast = f.ast, this.names = f.names;
|
|
3165
3165
|
return;
|
|
@@ -3178,7 +3178,7 @@ var bi = { exports: {} };
|
|
|
3178
3178
|
}
|
|
3179
3179
|
if (f === "")
|
|
3180
3180
|
throw new Error("argument must not be the empty string");
|
|
3181
|
-
if (
|
|
3181
|
+
if (B = f.replace(/\s+/g, ""), B !== f)
|
|
3182
3182
|
throw new Error("argument must not contain whitespace");
|
|
3183
3183
|
if (S = {
|
|
3184
3184
|
escapeChar: (u != null ? u.escapeChar : void 0) || d.escapeChar,
|
|
@@ -3206,7 +3206,7 @@ var bi = { exports: {} };
|
|
|
3206
3206
|
});
|
|
3207
3207
|
})(bi, bi.exports);
|
|
3208
3208
|
var Ln = bi.exports;
|
|
3209
|
-
const Wt = /* @__PURE__ */ kn(Ln), En = Io, Nn = On, Tn = qs, Mn = Os, Jt =
|
|
3209
|
+
const Wt = /* @__PURE__ */ kn(Ln), En = Io, Nn = On, Tn = qs, Mn = Os, Jt = et, In = it, ps = st, jn = ts, rt = T, Fn = Ee, zn = Wt;
|
|
3210
3210
|
window["concorde-utils"] = window["concorde-utils"] || {};
|
|
3211
3211
|
window["concorde-utils"] = {
|
|
3212
3212
|
Utils: En,
|
|
@@ -3217,7 +3217,7 @@ window["concorde-utils"] = {
|
|
|
3217
3217
|
LocationHandler: In,
|
|
3218
3218
|
Objects: ps,
|
|
3219
3219
|
PublisherProxy: jn,
|
|
3220
|
-
PublisherManager:
|
|
3220
|
+
PublisherManager: rt,
|
|
3221
3221
|
api: Fn,
|
|
3222
3222
|
URLPattern: zn
|
|
3223
3223
|
};
|
|
@@ -3226,7 +3226,7 @@ var Rn = Object.defineProperty, Un = Object.getOwnPropertyDescriptor, qe = (r, t
|
|
|
3226
3226
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
3227
3227
|
return i && e && Rn(t, s, e), e;
|
|
3228
3228
|
};
|
|
3229
|
-
const
|
|
3229
|
+
const Hi = (r) => {
|
|
3230
3230
|
class t extends r {
|
|
3231
3231
|
constructor() {
|
|
3232
3232
|
super(...arguments), this._value = "", this.forceAutoFill = !1, this.unique = null, this.radio = null, this._checked = null, this.updateAllChecked = () => {
|
|
@@ -3328,7 +3328,7 @@ const Bi = (r) => {
|
|
|
3328
3328
|
getCheckAllPublisher() {
|
|
3329
3329
|
this.formDataProvider || (this.formDataProvider = this.getAncestorAttributeValue("formDataProvider"));
|
|
3330
3330
|
const i = this.formDataProvider, e = this.getAttribute("name");
|
|
3331
|
-
return !i || !e ? null :
|
|
3331
|
+
return !i || !e ? null : rt.get(
|
|
3332
3332
|
i + "/" + e + "/_available_values_"
|
|
3333
3333
|
);
|
|
3334
3334
|
}
|
|
@@ -3407,13 +3407,13 @@ const A = (r) => r ?? C, jt = P`
|
|
|
3407
3407
|
--sc-_fs: 1em;
|
|
3408
3408
|
}
|
|
3409
3409
|
`;
|
|
3410
|
-
var Vn = Object.defineProperty,
|
|
3411
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
3410
|
+
var Vn = Object.defineProperty, Bn = Object.getOwnPropertyDescriptor, q = (r, t, s, i) => {
|
|
3411
|
+
for (var e = i > 1 ? void 0 : i ? Bn(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
3412
3412
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
3413
3413
|
return i && e && Vn(t, s, e), e;
|
|
3414
3414
|
};
|
|
3415
|
-
const
|
|
3416
|
-
let
|
|
3415
|
+
const Hn = "sonic-button";
|
|
3416
|
+
let j = class extends Hi(Fe(G(x))) {
|
|
3417
3417
|
constructor() {
|
|
3418
3418
|
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 = () => {
|
|
3419
3419
|
window.removeEventListener("pointerup", this.handleRepeatend), window.removeEventListener("blur", this.handleRepeatend), this.autoRepeat && (this.isRepeating = !1);
|
|
@@ -3422,17 +3422,17 @@ let I = class extends Bi(Fe(G(x))) {
|
|
|
3422
3422
|
set href(r) {
|
|
3423
3423
|
this._href = r;
|
|
3424
3424
|
const t = this._href.toString();
|
|
3425
|
-
t && t.indexOf("http") != 0 ?
|
|
3425
|
+
t && t.indexOf("http") != 0 ? it.onChange(this) : it.offChange(this), this.requestUpdate();
|
|
3426
3426
|
}
|
|
3427
3427
|
get href() {
|
|
3428
3428
|
return this._href;
|
|
3429
3429
|
}
|
|
3430
3430
|
handleNavigation(r) {
|
|
3431
|
-
r.preventDefault(),
|
|
3431
|
+
r.preventDefault(), it.changeFromComponent(this);
|
|
3432
3432
|
}
|
|
3433
3433
|
handleChange(r) {
|
|
3434
|
-
if (!((r == null ? void 0 : r.type) == "click" && this.autoRepeat) && (super.handleChange(), (this.pushState || this.goBack !== null) && (r == null || r.preventDefault(), r == null || r.stopPropagation(),
|
|
3435
|
-
const t = this.getAttribute("reset"), s = t ?
|
|
3434
|
+
if (!((r == null ? void 0 : r.type) == "click" && this.autoRepeat) && (super.handleChange(), (this.pushState || this.goBack !== null) && (r == null || r.preventDefault(), r == null || r.stopPropagation(), it.changeFromComponent(this)), this.hasAttribute("reset"))) {
|
|
3435
|
+
const t = this.getAttribute("reset"), s = t ? rt.get(t) : this.getFormPublisher();
|
|
3436
3436
|
s && s.set({});
|
|
3437
3437
|
}
|
|
3438
3438
|
}
|
|
@@ -3458,10 +3458,10 @@ let I = class extends Bi(Fe(G(x))) {
|
|
|
3458
3458
|
}
|
|
3459
3459
|
}
|
|
3460
3460
|
disconnectedCallback() {
|
|
3461
|
-
|
|
3461
|
+
it.offChange(this), super.disconnectedCallback();
|
|
3462
3462
|
}
|
|
3463
3463
|
willUpdate(r) {
|
|
3464
|
-
(r.has("href") || r.has("autoActive")) &&
|
|
3464
|
+
(r.has("href") || r.has("autoActive")) && it.updateComponentActiveState(this), r.has("location") && it.updateComponentActiveState(this);
|
|
3465
3465
|
}
|
|
3466
3466
|
render() {
|
|
3467
3467
|
const r = {
|
|
@@ -3511,7 +3511,7 @@ let I = class extends Bi(Fe(G(x))) {
|
|
|
3511
3511
|
this.hasPrefix = !!((r = this.prefixes) != null && r.length), this.hasSuffix = !!((t = this.suffixes) != null && t.length);
|
|
3512
3512
|
}
|
|
3513
3513
|
};
|
|
3514
|
-
|
|
3514
|
+
j.styles = [
|
|
3515
3515
|
jt,
|
|
3516
3516
|
P`
|
|
3517
3517
|
* {
|
|
@@ -3610,7 +3610,7 @@ I.styles = [
|
|
|
3610
3610
|
gap: var(--sc-btn-gap);
|
|
3611
3611
|
}
|
|
3612
3612
|
|
|
3613
|
-
:host button:focus,
|
|
3613
|
+
:host button:focus-visible,
|
|
3614
3614
|
:host button:hover {
|
|
3615
3615
|
filter: var(--sc-btn-hover-filter);
|
|
3616
3616
|
}
|
|
@@ -3669,7 +3669,7 @@ I.styles = [
|
|
|
3669
3669
|
}
|
|
3670
3670
|
|
|
3671
3671
|
/*GESTION DU FOCUS*/
|
|
3672
|
-
:host(:not([disabled])) button:focus {
|
|
3672
|
+
:host(:not([disabled])) button:focus-visible {
|
|
3673
3673
|
box-shadow: 0 0 0 0.18rem var(--sc-base-300, rgba(0, 0, 0, 0.18));
|
|
3674
3674
|
border-color: var(--sc-base-300, rgba(0, 0, 0, 0.18)) !important;
|
|
3675
3675
|
outline: none;
|
|
@@ -3686,7 +3686,7 @@ I.styles = [
|
|
|
3686
3686
|
background: transparent;
|
|
3687
3687
|
}
|
|
3688
3688
|
|
|
3689
|
-
/*:host([variant="ghost"]) button:focus,*/
|
|
3689
|
+
/*:host([variant="ghost"]) button:focus-visible,*/
|
|
3690
3690
|
:host([variant="ghost"]) button:hover {
|
|
3691
3691
|
background: var(--sc-btn-ghost-bg-hover);
|
|
3692
3692
|
filter: none;
|
|
@@ -3714,7 +3714,7 @@ I.styles = [
|
|
|
3714
3714
|
background: transparent;
|
|
3715
3715
|
}
|
|
3716
3716
|
|
|
3717
|
-
/*:host([variant="outline"]) button:focus,*/
|
|
3717
|
+
/*:host([variant="outline"]) button:focus-visible,*/
|
|
3718
3718
|
:host([variant="outline"]) button:hover {
|
|
3719
3719
|
background: var(--btn-outline-bg-hover);
|
|
3720
3720
|
}
|
|
@@ -3747,7 +3747,7 @@ I.styles = [
|
|
|
3747
3747
|
color: inherit;
|
|
3748
3748
|
}
|
|
3749
3749
|
|
|
3750
|
-
:host([variant="link"]) button:focus,
|
|
3750
|
+
:host([variant="link"]) button:focus-visible,
|
|
3751
3751
|
:host([variant="link"]) button:hover {
|
|
3752
3752
|
text-decoration: none;
|
|
3753
3753
|
}
|
|
@@ -3883,85 +3883,85 @@ I.styles = [
|
|
|
3883
3883
|
];
|
|
3884
3884
|
q([
|
|
3885
3885
|
l({ type: String, reflect: !0 })
|
|
3886
|
-
],
|
|
3886
|
+
], j.prototype, "type", 2);
|
|
3887
3887
|
q([
|
|
3888
3888
|
l({ type: String, reflect: !0 })
|
|
3889
|
-
],
|
|
3889
|
+
], j.prototype, "variant", 2);
|
|
3890
3890
|
q([
|
|
3891
3891
|
l({ type: String, reflect: !0 })
|
|
3892
|
-
],
|
|
3892
|
+
], j.prototype, "size", 2);
|
|
3893
3893
|
q([
|
|
3894
3894
|
l({ type: String, reflect: !0 })
|
|
3895
|
-
],
|
|
3895
|
+
], j.prototype, "shape", 2);
|
|
3896
3896
|
q([
|
|
3897
3897
|
l({ type: String })
|
|
3898
|
-
],
|
|
3898
|
+
], j.prototype, "direction", 2);
|
|
3899
3899
|
q([
|
|
3900
3900
|
l({ type: String, reflect: !0 })
|
|
3901
|
-
],
|
|
3901
|
+
], j.prototype, "alignItems", 2);
|
|
3902
3902
|
q([
|
|
3903
3903
|
l({ type: String })
|
|
3904
|
-
],
|
|
3904
|
+
], j.prototype, "justify", 2);
|
|
3905
3905
|
q([
|
|
3906
3906
|
l({ type: String, reflect: !0 })
|
|
3907
|
-
],
|
|
3907
|
+
], j.prototype, "align", 2);
|
|
3908
3908
|
q([
|
|
3909
3909
|
l({ type: String })
|
|
3910
|
-
],
|
|
3910
|
+
], j.prototype, "minWidth", 2);
|
|
3911
3911
|
q([
|
|
3912
3912
|
l({ type: Boolean, reflect: !0 })
|
|
3913
|
-
],
|
|
3913
|
+
], j.prototype, "icon", 2);
|
|
3914
3914
|
q([
|
|
3915
3915
|
l({ type: String })
|
|
3916
|
-
],
|
|
3916
|
+
], j.prototype, "download", 2);
|
|
3917
3917
|
q([
|
|
3918
3918
|
l({ type: String })
|
|
3919
|
-
],
|
|
3919
|
+
], j.prototype, "autoActive", 2);
|
|
3920
3920
|
q([
|
|
3921
3921
|
l({ type: Boolean, reflect: !0 })
|
|
3922
|
-
],
|
|
3922
|
+
], j.prototype, "loading", 2);
|
|
3923
3923
|
q([
|
|
3924
|
-
|
|
3925
|
-
],
|
|
3924
|
+
L()
|
|
3925
|
+
], j.prototype, "hasPrefix", 2);
|
|
3926
3926
|
q([
|
|
3927
|
-
|
|
3928
|
-
],
|
|
3927
|
+
L()
|
|
3928
|
+
], j.prototype, "hasSuffix", 2);
|
|
3929
3929
|
q([
|
|
3930
3930
|
Pe({ flatten: !0, slot: "prefix" })
|
|
3931
|
-
],
|
|
3931
|
+
], j.prototype, "prefixes", 2);
|
|
3932
3932
|
q([
|
|
3933
3933
|
Pe({ flatten: !0, slot: "suffix" })
|
|
3934
|
-
],
|
|
3934
|
+
], j.prototype, "suffixes", 2);
|
|
3935
3935
|
q([
|
|
3936
3936
|
l({ type: String })
|
|
3937
|
-
],
|
|
3937
|
+
], j.prototype, "target", 2);
|
|
3938
3938
|
q([
|
|
3939
3939
|
l({ type: String })
|
|
3940
|
-
],
|
|
3940
|
+
], j.prototype, "href", 1);
|
|
3941
3941
|
q([
|
|
3942
3942
|
l({ type: String })
|
|
3943
|
-
],
|
|
3943
|
+
], j.prototype, "goBack", 2);
|
|
3944
3944
|
q([
|
|
3945
3945
|
l({ type: Boolean })
|
|
3946
|
-
],
|
|
3946
|
+
], j.prototype, "pushState", 2);
|
|
3947
3947
|
q([
|
|
3948
3948
|
l({ type: Boolean, reflect: !0 })
|
|
3949
|
-
],
|
|
3949
|
+
], j.prototype, "active", 2);
|
|
3950
3950
|
q([
|
|
3951
3951
|
l({ type: Boolean, reflect: !0 })
|
|
3952
|
-
],
|
|
3952
|
+
], j.prototype, "autoRepeat", 2);
|
|
3953
3953
|
q([
|
|
3954
3954
|
l({ type: String, attribute: "data-aria-controls" })
|
|
3955
|
-
],
|
|
3955
|
+
], j.prototype, "ariaControls", 2);
|
|
3956
3956
|
q([
|
|
3957
3957
|
l({ type: Boolean, attribute: "data-aria-expanded" })
|
|
3958
|
-
],
|
|
3958
|
+
], j.prototype, "sonicAriaExpanded", 2);
|
|
3959
3959
|
q([
|
|
3960
|
-
|
|
3961
|
-
],
|
|
3962
|
-
|
|
3963
|
-
$(
|
|
3964
|
-
],
|
|
3960
|
+
L()
|
|
3961
|
+
], j.prototype, "location", 2);
|
|
3962
|
+
j = q([
|
|
3963
|
+
$(Hn)
|
|
3964
|
+
], j);
|
|
3965
3965
|
/**
|
|
3966
3966
|
* @license
|
|
3967
3967
|
* Copyright 2017 Google LLC
|
|
@@ -3995,19 +3995,19 @@ const _r = (r, t, s) => {
|
|
|
3995
3995
|
else if (e[g] === null) g--;
|
|
3996
3996
|
else if (a[p] === n[v]) c[v] = ce(e[p], o[v]), p++, v++;
|
|
3997
3997
|
else if (a[g] === n[b]) c[b] = ce(e[g], o[b]), g--, b--;
|
|
3998
|
-
else if (a[p] === n[b]) c[b] = ce(e[p], o[b]),
|
|
3999
|
-
else if (a[g] === n[v]) c[v] = ce(e[g], o[v]),
|
|
3998
|
+
else if (a[p] === n[b]) c[b] = ce(e[p], o[b]), He(r, c[b + 1], e[p]), p++, b--;
|
|
3999
|
+
else if (a[g] === n[v]) c[v] = ce(e[g], o[v]), He(r, e[p], e[g]), g--, v++;
|
|
4000
4000
|
else if (h === void 0 && (h = _r(n, v, b), d = _r(a, p, g)), h.has(a[p])) if (h.has(a[g])) {
|
|
4001
4001
|
const y = d.get(n[v]), _ = y !== void 0 ? e[y] : null;
|
|
4002
4002
|
if (_ === null) {
|
|
4003
|
-
const D =
|
|
4003
|
+
const D = He(r, e[p]);
|
|
4004
4004
|
ce(D, o[v]), c[v] = D;
|
|
4005
|
-
} else c[v] = ce(_, o[v]),
|
|
4005
|
+
} else c[v] = ce(_, o[v]), He(r, e[p], _), e[y] = null;
|
|
4006
4006
|
v++;
|
|
4007
4007
|
} else ni(e[g]), g--;
|
|
4008
4008
|
else ni(e[p]), p++;
|
|
4009
4009
|
for (; v <= b; ) {
|
|
4010
|
-
const y =
|
|
4010
|
+
const y = He(r, c[b + 1]);
|
|
4011
4011
|
ce(y, o[v]), c[v++] = y;
|
|
4012
4012
|
}
|
|
4013
4013
|
for (; p <= g; ) {
|
|
@@ -4024,7 +4024,7 @@ const _r = (r, t, s) => {
|
|
|
4024
4024
|
*/
|
|
4025
4025
|
const Qe = globalThis, Ns = Qe.trustedTypes, wr = Ns ? Ns.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, ho = "$lit$", Gt = `lit$${Math.random().toFixed(9).slice(2)}$`, po = "?" + Gt, qn = `<${po}>`, be = document, Ts = () => be.createComment(""), is = (r) => r === null || typeof r != "object" && typeof r != "function", qi = Array.isArray, Wn = (r) => qi(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", ci = `[
|
|
4026
4026
|
\f\r]`, We = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, xr = /-->/g, $r = />/g, he = RegExp(`>|${ci}(?:([^\\s"'>=/]+)(${ci}*=${ci}*(?:[^
|
|
4027
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Pr = /'/g, Ar = /"/g, uo = /^(?:script|style|textarea|title)$/i, rs = Symbol.for("lit-noChange"),
|
|
4027
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Pr = /'/g, Ar = /"/g, uo = /^(?:script|style|textarea|title)$/i, rs = Symbol.for("lit-noChange"), tt = Symbol.for("lit-nothing"), Cr = /* @__PURE__ */ new WeakMap(), fe = be.createTreeWalker(be, 129);
|
|
4028
4028
|
function fo(r, t) {
|
|
4029
4029
|
if (!qi(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
4030
4030
|
return wr !== void 0 ? wr.createHTML(t) : t;
|
|
@@ -4119,7 +4119,7 @@ class Zs {
|
|
|
4119
4119
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this.v;
|
|
4120
4120
|
}
|
|
4121
4121
|
constructor(t, s, i, e) {
|
|
4122
|
-
this.type = 2, this._$AH =
|
|
4122
|
+
this.type = 2, this._$AH = tt, this._$AN = void 0, this._$AA = t, this._$AB = s, this._$AM = i, this.options = e, this.v = (e == null ? void 0 : e.isConnected) ?? !0;
|
|
4123
4123
|
}
|
|
4124
4124
|
get parentNode() {
|
|
4125
4125
|
let t = this._$AA.parentNode;
|
|
@@ -4133,7 +4133,7 @@ class Zs {
|
|
|
4133
4133
|
return this._$AB;
|
|
4134
4134
|
}
|
|
4135
4135
|
_$AI(t, s = this) {
|
|
4136
|
-
t = Ne(this, t, s), is(t) ? t ===
|
|
4136
|
+
t = Ne(this, t, s), is(t) ? t === tt || t == null || t === "" ? (this._$AH !== tt && this._$AR(), this._$AH = tt) : t !== this._$AH && t !== rs && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Wn(t) ? this.k(t) : this._(t);
|
|
4137
4137
|
}
|
|
4138
4138
|
O(t) {
|
|
4139
4139
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -4142,7 +4142,7 @@ class Zs {
|
|
|
4142
4142
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
4143
4143
|
}
|
|
4144
4144
|
_(t) {
|
|
4145
|
-
this._$AH !==
|
|
4145
|
+
this._$AH !== tt && is(this._$AH) ? this._$AA.nextSibling.data = t : this.T(be.createTextNode(t)), this._$AH = t;
|
|
4146
4146
|
}
|
|
4147
4147
|
$(t) {
|
|
4148
4148
|
var o;
|
|
@@ -4184,7 +4184,7 @@ class Xs {
|
|
|
4184
4184
|
return this._$AM._$AU;
|
|
4185
4185
|
}
|
|
4186
4186
|
constructor(t, s, i, e, o) {
|
|
4187
|
-
this.type = 1, this._$AH =
|
|
4187
|
+
this.type = 1, this._$AH = tt, this._$AN = void 0, this.element = t, this.name = s, this._$AM = e, this.options = o, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = tt;
|
|
4188
4188
|
}
|
|
4189
4189
|
_$AI(t, s = this, i, e) {
|
|
4190
4190
|
const o = this.strings;
|
|
@@ -4193,12 +4193,12 @@ class Xs {
|
|
|
4193
4193
|
else {
|
|
4194
4194
|
const a = t;
|
|
4195
4195
|
let c, h;
|
|
4196
|
-
for (t = o[0], c = 0; c < o.length - 1; c++) h = Ne(this, a[i + c], s, c), h === rs && (h = this._$AH[c]), n || (n = !is(h) || h !== this._$AH[c]), h ===
|
|
4196
|
+
for (t = o[0], c = 0; c < o.length - 1; c++) h = Ne(this, a[i + c], s, c), h === rs && (h = this._$AH[c]), n || (n = !is(h) || h !== this._$AH[c]), h === tt ? t = tt : t !== tt && (t += (h ?? "") + o[c + 1]), this._$AH[c] = h;
|
|
4197
4197
|
}
|
|
4198
4198
|
n && !e && this.j(t);
|
|
4199
4199
|
}
|
|
4200
4200
|
j(t) {
|
|
4201
|
-
t ===
|
|
4201
|
+
t === tt ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
4202
4202
|
}
|
|
4203
4203
|
}
|
|
4204
4204
|
class Zn extends Xs {
|
|
@@ -4206,7 +4206,7 @@ class Zn extends Xs {
|
|
|
4206
4206
|
super(...arguments), this.type = 3;
|
|
4207
4207
|
}
|
|
4208
4208
|
j(t) {
|
|
4209
|
-
this.element[this.name] = t ===
|
|
4209
|
+
this.element[this.name] = t === tt ? void 0 : t;
|
|
4210
4210
|
}
|
|
4211
4211
|
}
|
|
4212
4212
|
class Xn extends Xs {
|
|
@@ -4214,7 +4214,7 @@ class Xn extends Xs {
|
|
|
4214
4214
|
super(...arguments), this.type = 4;
|
|
4215
4215
|
}
|
|
4216
4216
|
j(t) {
|
|
4217
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
|
4217
|
+
this.element.toggleAttribute(this.name, !!t && t !== tt);
|
|
4218
4218
|
}
|
|
4219
4219
|
}
|
|
4220
4220
|
class Gn extends Xs {
|
|
@@ -4222,8 +4222,8 @@ class Gn extends Xs {
|
|
|
4222
4222
|
super(t, s, i, e, o), this.type = 5;
|
|
4223
4223
|
}
|
|
4224
4224
|
_$AI(t, s = this) {
|
|
4225
|
-
if ((t = Ne(this, t, s, 0) ??
|
|
4226
|
-
const i = this._$AH, e = t ===
|
|
4225
|
+
if ((t = Ne(this, t, s, 0) ?? tt) === rs) return;
|
|
4226
|
+
const i = this._$AH, e = t === tt && i !== tt || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== tt && (i === tt || e);
|
|
4227
4227
|
e && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
4228
4228
|
}
|
|
4229
4229
|
handleEvent(t) {
|
|
@@ -4373,7 +4373,7 @@ class ca extends oa {
|
|
|
4373
4373
|
(t = this.l) == null || t.call(this), this.l = void 0;
|
|
4374
4374
|
}
|
|
4375
4375
|
render(t) {
|
|
4376
|
-
return
|
|
4376
|
+
return tt;
|
|
4377
4377
|
}
|
|
4378
4378
|
getController() {
|
|
4379
4379
|
return na.get(this.u);
|
|
@@ -4688,9 +4688,10 @@ ve.styles = P`
|
|
|
4688
4688
|
vertical-align: -0.125em;
|
|
4689
4689
|
flex-shrink: 0;
|
|
4690
4690
|
}
|
|
4691
|
+
|
|
4691
4692
|
svg {
|
|
4692
|
-
height: var(--
|
|
4693
|
-
width: 1.
|
|
4693
|
+
height: var(--_sc-icon-size, 1em);
|
|
4694
|
+
width: calc(var(--_sc-icon-size, 1em) * 1.4);
|
|
4694
4695
|
overflow: visible;
|
|
4695
4696
|
}
|
|
4696
4697
|
|
|
@@ -4703,35 +4704,35 @@ ve.styles = P`
|
|
|
4703
4704
|
}
|
|
4704
4705
|
|
|
4705
4706
|
:host([size="2xs"]) svg {
|
|
4706
|
-
--
|
|
4707
|
+
--_sc-icon-size: 0.625em;
|
|
4707
4708
|
}
|
|
4708
4709
|
|
|
4709
4710
|
:host([size="xs"]) svg {
|
|
4710
|
-
--
|
|
4711
|
+
--_sc-icon-size: 0.75em;
|
|
4711
4712
|
}
|
|
4712
4713
|
|
|
4713
4714
|
:host([size="sm"]) svg {
|
|
4714
|
-
--
|
|
4715
|
+
--_sc-icon-size: 0.875em;
|
|
4715
4716
|
}
|
|
4716
4717
|
|
|
4717
4718
|
:host([size="lg"]) svg {
|
|
4718
|
-
--
|
|
4719
|
+
--_sc-icon-size: 1.25em;
|
|
4719
4720
|
}
|
|
4720
4721
|
|
|
4721
4722
|
:host([size="xl"]) svg {
|
|
4722
|
-
--
|
|
4723
|
+
--_sc-icon-size: 1.5em;
|
|
4723
4724
|
}
|
|
4724
4725
|
|
|
4725
4726
|
:host([size="2xl"]) svg {
|
|
4726
|
-
--
|
|
4727
|
+
--_sc-icon-size: 2em;
|
|
4727
4728
|
}
|
|
4728
4729
|
|
|
4729
4730
|
:host([size="3xl"]) svg {
|
|
4730
|
-
--
|
|
4731
|
+
--_sc-icon-size: 2.8em;
|
|
4731
4732
|
}
|
|
4732
4733
|
`;
|
|
4733
4734
|
us([
|
|
4734
|
-
|
|
4735
|
+
L()
|
|
4735
4736
|
], ve.prototype, "iconText", 2);
|
|
4736
4737
|
us([
|
|
4737
4738
|
l({ type: String })
|
|
@@ -5049,7 +5050,7 @@ Ft([
|
|
|
5049
5050
|
l({ type: String })
|
|
5050
5051
|
], xt.prototype, "maxHeight", 2);
|
|
5051
5052
|
Ft([
|
|
5052
|
-
|
|
5053
|
+
L()
|
|
5053
5054
|
], xt.prototype, "visible", 2);
|
|
5054
5055
|
xt = Ft([
|
|
5055
5056
|
$(_a)
|
|
@@ -5220,7 +5221,7 @@ let yt = class extends x {
|
|
|
5220
5221
|
variables: this.getCssVariables(),
|
|
5221
5222
|
fonts: s
|
|
5222
5223
|
};
|
|
5223
|
-
(e =
|
|
5224
|
+
(e = rt.get("sonic-theme")) == null || e.set(i), document.querySelectorAll("iframe").forEach(
|
|
5224
5225
|
(o) => {
|
|
5225
5226
|
var n;
|
|
5226
5227
|
return (n = o.contentWindow) == null ? void 0 : n.postMessage(
|
|
@@ -5427,7 +5428,7 @@ let M = class extends x {
|
|
|
5427
5428
|
for (const c of s.toasts) {
|
|
5428
5429
|
const h = { ...c };
|
|
5429
5430
|
if (a.id = h.id = 0, /*!currentToast.preserve && */
|
|
5430
|
-
|
|
5431
|
+
st.shallowEqual(a, h))
|
|
5431
5432
|
return null;
|
|
5432
5433
|
}
|
|
5433
5434
|
}
|
|
@@ -5454,7 +5455,7 @@ let M = class extends x {
|
|
|
5454
5455
|
}
|
|
5455
5456
|
// Remove Toast
|
|
5456
5457
|
removeItem(t) {
|
|
5457
|
-
t && (this.toasts = this.toasts.filter((s) => (s = { ...s }, delete s.id, !
|
|
5458
|
+
t && (this.toasts = this.toasts.filter((s) => (s = { ...s }, delete s.id, !st.shallowEqual(s, t, !1))));
|
|
5458
5459
|
}
|
|
5459
5460
|
};
|
|
5460
5461
|
M.delegateToasts = !1;
|
|
@@ -5521,9 +5522,9 @@ const Wi = (r, t) => {
|
|
|
5521
5522
|
* Un Toast est affiché si le chargement échoue
|
|
5522
5523
|
*/
|
|
5523
5524
|
async _fetchData() {
|
|
5524
|
-
if (this.requestUpdate(), !this.isFetchEnabled || (this.api = new Ee(this.getApiConfiguration()), !this.api) || (this.dispatchEvent(new CustomEvent("loading", { detail: this })), this.getAttribute("localStorage") === "enabled" && await
|
|
5525
|
-
const e =
|
|
5526
|
-
this.isLoading = !0,
|
|
5525
|
+
if (this.requestUpdate(), !this.isFetchEnabled || (this.api = new Ee(this.getApiConfiguration()), !this.api) || (this.dispatchEvent(new CustomEvent("loading", { detail: this })), this.getAttribute("localStorage") === "enabled" && await rt.getInstance().isLocalStrorageReady, !this.isConnected)) return;
|
|
5526
|
+
const e = rt.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();
|
|
5527
|
+
this.isLoading = !0, st.isObject(this.props) && Object.keys(this.props || {}).length > 0 && this.isFirstLoad && window.requestAnimationFrame(() => {
|
|
5527
5528
|
this.dispatchEvent(new CustomEvent("load", { detail: this })), this.isFirstLoad = !1, this.isLoading = !1;
|
|
5528
5529
|
});
|
|
5529
5530
|
let o = await this.api.get(
|
|
@@ -5542,11 +5543,11 @@ const Wi = (r, t) => {
|
|
|
5542
5543
|
}
|
|
5543
5544
|
if (this.key) {
|
|
5544
5545
|
const n = o._sonic_http_response_, a = this.key.split(".");
|
|
5545
|
-
o =
|
|
5546
|
+
o = st.traverse(
|
|
5546
5547
|
o,
|
|
5547
5548
|
a,
|
|
5548
5549
|
this.hasAttribute("preserveOtherKeys")
|
|
5549
|
-
), o &&
|
|
5550
|
+
), o && st.isObject(o) && n && (o._sonic_http_response_ = n);
|
|
5550
5551
|
}
|
|
5551
5552
|
this.props = o, this.dispatchEvent(new CustomEvent("load", { detail: this })), this.isFirstLoad = !1, this.isLoading = !1, this.refetchEveryMs && this.isConnected && (this.refetchTimeOutId = setTimeout(
|
|
5552
5553
|
() => this._fetchData(),
|
|
@@ -5663,7 +5664,7 @@ const Gs = (r) => {
|
|
|
5663
5664
|
], t.prototype, "tabindex", 2), de([
|
|
5664
5665
|
l({ type: String })
|
|
5665
5666
|
], t.prototype, "autocomplete", 2), t;
|
|
5666
|
-
}, vo = Wi, Fa =
|
|
5667
|
+
}, vo = Wi, Fa = Hi, yo = Fe, _o = Gs, oe = G, Ki = ds;
|
|
5667
5668
|
window["concorde-mixins"] = window["concorde-mixins"] || {};
|
|
5668
5669
|
window["concorde-mixins"] = {
|
|
5669
5670
|
Fetcher: vo,
|
|
@@ -5722,12 +5723,12 @@ wo([
|
|
|
5722
5723
|
js = wo([
|
|
5723
5724
|
$(Ua)
|
|
5724
5725
|
], js);
|
|
5725
|
-
var Va = Object.defineProperty,
|
|
5726
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
5726
|
+
var Va = Object.defineProperty, Ba = Object.getOwnPropertyDescriptor, xo = (r, t, s, i) => {
|
|
5727
|
+
for (var e = i > 1 ? void 0 : i ? Ba(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
5727
5728
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
5728
5729
|
return i && e && Va(t, s, e), e;
|
|
5729
5730
|
};
|
|
5730
|
-
const
|
|
5731
|
+
const Ha = "sonic-if";
|
|
5731
5732
|
let Fs = class extends x {
|
|
5732
5733
|
constructor() {
|
|
5733
5734
|
super(...arguments), this.condition = !1;
|
|
@@ -5745,7 +5746,7 @@ xo([
|
|
|
5745
5746
|
l({ type: Boolean })
|
|
5746
5747
|
], Fs.prototype, "condition", 2);
|
|
5747
5748
|
Fs = xo([
|
|
5748
|
-
$(
|
|
5749
|
+
$(Ha)
|
|
5749
5750
|
], Fs);
|
|
5750
5751
|
const qa = P`
|
|
5751
5752
|
:host([align="left"]) .sonic-loader--inline {
|
|
@@ -5874,17 +5875,17 @@ var Ka = Object.defineProperty, Ya = Object.getOwnPropertyDescriptor, Yi = (r, t
|
|
|
5874
5875
|
return i && e && Ka(t, s, e), e;
|
|
5875
5876
|
};
|
|
5876
5877
|
const Za = "sonic-loader";
|
|
5877
|
-
let
|
|
5878
|
+
let at = class extends x {
|
|
5878
5879
|
constructor() {
|
|
5879
5880
|
super(...arguments), this.mode = "fixed", this.noDelay = !1;
|
|
5880
5881
|
}
|
|
5881
5882
|
static show(r) {
|
|
5882
|
-
|
|
5883
|
-
const t =
|
|
5884
|
-
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),
|
|
5883
|
+
at.loader || (at.loader = document.createElement("sonic-loader"));
|
|
5884
|
+
const t = at.loader;
|
|
5885
|
+
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++;
|
|
5885
5886
|
}
|
|
5886
5887
|
static hide() {
|
|
5887
|
-
|
|
5888
|
+
at.callCounter--, !(at.callCounter > 0) && at.loader && at.loader.remove();
|
|
5888
5889
|
}
|
|
5889
5890
|
render() {
|
|
5890
5891
|
return m`<div
|
|
@@ -5897,7 +5898,7 @@ let nt = class extends x {
|
|
|
5897
5898
|
</div>`;
|
|
5898
5899
|
}
|
|
5899
5900
|
};
|
|
5900
|
-
|
|
5901
|
+
at.styles = [
|
|
5901
5902
|
qa,
|
|
5902
5903
|
Wa,
|
|
5903
5904
|
P`
|
|
@@ -5930,16 +5931,16 @@ nt.styles = [
|
|
|
5930
5931
|
}
|
|
5931
5932
|
`
|
|
5932
5933
|
];
|
|
5933
|
-
|
|
5934
|
+
at.callCounter = 0;
|
|
5934
5935
|
Yi([
|
|
5935
5936
|
l({ type: String })
|
|
5936
|
-
],
|
|
5937
|
+
], at.prototype, "mode", 2);
|
|
5937
5938
|
Yi([
|
|
5938
5939
|
l({ type: Boolean })
|
|
5939
|
-
],
|
|
5940
|
-
|
|
5940
|
+
], at.prototype, "noDelay", 2);
|
|
5941
|
+
at = Yi([
|
|
5941
5942
|
$(Za)
|
|
5942
|
-
],
|
|
5943
|
+
], at);
|
|
5943
5944
|
var Xa = Object.defineProperty, Ga = Object.getOwnPropertyDescriptor, Qa = (r, t, s, i) => {
|
|
5944
5945
|
for (var e = i > 1 ? void 0 : i ? Ga(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
5945
5946
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
@@ -6025,7 +6026,7 @@ let $t = class extends Wi(G(ds(x))) {
|
|
|
6025
6026
|
if (r == null)
|
|
6026
6027
|
return null;
|
|
6027
6028
|
const t = r._sonic_http_response_, s = this.hasAttribute("extractValues");
|
|
6028
|
-
return Array.isArray(r) || (s ? r = Object.entries(r).map(([i, e]) => ({ key: i, value: e })) :
|
|
6029
|
+
return Array.isArray(r) || (s ? r = Object.entries(r).map(([i, e]) => ({ key: i, value: e })) : st.isObject(r) && Object.keys(r).length > 0 && (!t || t.ok) ? r = [r] : r = []), r = r.filter((i) => i != null), t && (r._sonic_http_response_ = t), r;
|
|
6029
6030
|
}
|
|
6030
6031
|
updated(r) {
|
|
6031
6032
|
window.requestAnimationFrame(() => {
|
|
@@ -6073,7 +6074,7 @@ let $t = class extends Wi(G(ds(x))) {
|
|
|
6073
6074
|
renderContent() {
|
|
6074
6075
|
if (this.isLoading && !Array.isArray(this.props)) return this.renderLoadingState();
|
|
6075
6076
|
if (typeof this.props == "string") return this.renderNoResultState();
|
|
6076
|
-
if (!
|
|
6077
|
+
if (!st.isObject(this.props)) return m`<div></div>`;
|
|
6077
6078
|
const i = this.formatProps();
|
|
6078
6079
|
if (((i == null ? void 0 : i.length) || 0) == 0) {
|
|
6079
6080
|
if (this.noItems)
|
|
@@ -6174,7 +6175,7 @@ function* $o(r, t) {
|
|
|
6174
6175
|
for (const i of r) yield t(i, s++);
|
|
6175
6176
|
}
|
|
6176
6177
|
}
|
|
6177
|
-
var il = Object.defineProperty, rl = Object.getOwnPropertyDescriptor,
|
|
6178
|
+
var il = Object.defineProperty, rl = Object.getOwnPropertyDescriptor, nt = (r, t, s, i) => {
|
|
6178
6179
|
for (var e = i > 1 ? void 0 : i ? rl(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
6179
6180
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
6180
6181
|
return i && e && il(t, s, e), e;
|
|
@@ -6323,58 +6324,58 @@ let X = class extends G(x) {
|
|
|
6323
6324
|
}
|
|
6324
6325
|
};
|
|
6325
6326
|
X.instanceCounter = 0;
|
|
6326
|
-
|
|
6327
|
+
nt([
|
|
6327
6328
|
l({ type: Array })
|
|
6328
6329
|
], X.prototype, "templates", 2);
|
|
6329
|
-
|
|
6330
|
+
nt([
|
|
6330
6331
|
l({ type: Function })
|
|
6331
6332
|
], X.prototype, "items", 2);
|
|
6332
|
-
|
|
6333
|
+
nt([
|
|
6333
6334
|
l({ type: Function })
|
|
6334
6335
|
], X.prototype, "noItems", 2);
|
|
6335
|
-
|
|
6336
|
+
nt([
|
|
6336
6337
|
l({ type: Function })
|
|
6337
6338
|
], X.prototype, "skeleton", 2);
|
|
6338
|
-
|
|
6339
|
+
nt([
|
|
6339
6340
|
l({ type: Object })
|
|
6340
6341
|
], X.prototype, "itemPropertyMap", 2);
|
|
6341
|
-
|
|
6342
|
+
nt([
|
|
6342
6343
|
l()
|
|
6343
6344
|
], X.prototype, "cache", 2);
|
|
6344
|
-
|
|
6345
|
+
nt([
|
|
6345
6346
|
l()
|
|
6346
6347
|
], X.prototype, "targetRequestDuration", 2);
|
|
6347
|
-
|
|
6348
|
+
nt([
|
|
6348
6349
|
l()
|
|
6349
6350
|
], X.prototype, "limit", 2);
|
|
6350
|
-
|
|
6351
|
+
nt([
|
|
6351
6352
|
l()
|
|
6352
6353
|
], X.prototype, "lazyBoundsRatio", 2);
|
|
6353
|
-
|
|
6354
|
+
nt([
|
|
6354
6355
|
l()
|
|
6355
6356
|
], X.prototype, "offset", 2);
|
|
6356
|
-
|
|
6357
|
+
nt([
|
|
6357
6358
|
l()
|
|
6358
6359
|
], X.prototype, "resultCount", 2);
|
|
6359
|
-
|
|
6360
|
+
nt([
|
|
6360
6361
|
l({ type: Boolean })
|
|
6361
6362
|
], X.prototype, "noLazyload", 2);
|
|
6362
|
-
|
|
6363
|
+
nt([
|
|
6363
6364
|
l({ type: String })
|
|
6364
6365
|
], X.prototype, "loader", 2);
|
|
6365
|
-
|
|
6366
|
+
nt([
|
|
6366
6367
|
l()
|
|
6367
6368
|
], X.prototype, "filteredFields", 2);
|
|
6368
|
-
|
|
6369
|
+
nt([
|
|
6369
6370
|
l({ type: String })
|
|
6370
6371
|
], X.prototype, "dataProviderExpression", 2);
|
|
6371
|
-
|
|
6372
|
+
nt([
|
|
6372
6373
|
l({ type: Boolean })
|
|
6373
6374
|
], X.prototype, "invalidateOnPageShow", 2);
|
|
6374
|
-
|
|
6375
|
+
nt([
|
|
6375
6376
|
l({ type: String })
|
|
6376
6377
|
], X.prototype, "idKey", 2);
|
|
6377
|
-
X =
|
|
6378
|
+
X = nt([
|
|
6378
6379
|
$(ol)
|
|
6379
6380
|
], X);
|
|
6380
6381
|
var nl = Object.defineProperty, al = Object.getOwnPropertyDescriptor, ze = (r, t, s, i) => {
|
|
@@ -6393,7 +6394,7 @@ let te = class extends G(x) {
|
|
|
6393
6394
|
this.getAncestorAttributeValue("formDataProvider")
|
|
6394
6395
|
);
|
|
6395
6396
|
if (t.isFormValid = !0, t.invalidateForm(), !t.isFormValid.get()) return;
|
|
6396
|
-
if (this.disabled = !0,
|
|
6397
|
+
if (this.disabled = !0, at.show(), t.isFormValid, this.hasAttribute("native")) {
|
|
6397
6398
|
this.submitNativeForm();
|
|
6398
6399
|
return;
|
|
6399
6400
|
}
|
|
@@ -6406,7 +6407,7 @@ let te = class extends G(x) {
|
|
|
6406
6407
|
a && (c = a.get());
|
|
6407
6408
|
let h = null;
|
|
6408
6409
|
const d = this.getAncestorAttributeValue("dataProvider"), p = this.endPoint || d, g = async () => {
|
|
6409
|
-
var w, S, O, N,
|
|
6410
|
+
var w, S, O, N, B, W, Ot, rr;
|
|
6410
6411
|
const y = { ...o };
|
|
6411
6412
|
if (delete y.needsCaptchaValidation, delete c.needsCaptchaValidation, e)
|
|
6412
6413
|
h = await ((w = this.api) == null ? void 0 : w.submitFormData(
|
|
@@ -6432,13 +6433,13 @@ let te = class extends G(x) {
|
|
|
6432
6433
|
for (const or in y)
|
|
6433
6434
|
ws.append(or, y[or]);
|
|
6434
6435
|
const Mo = "?" + ws.toString();
|
|
6435
|
-
h = await ((
|
|
6436
|
+
h = await ((B = this.api) == null ? void 0 : B.get(p + Mo, c));
|
|
6436
6437
|
break;
|
|
6437
6438
|
default:
|
|
6438
6439
|
h = await ((W = this.api) == null ? void 0 : W.post(p, y, c));
|
|
6439
6440
|
break;
|
|
6440
6441
|
}
|
|
6441
|
-
|
|
6442
|
+
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 = {
|
|
6442
6443
|
messages: [{ content: "Network Error", status: "error" }]
|
|
6443
6444
|
};
|
|
6444
6445
|
const _ = this.getAncestorAttributeValue(
|
|
@@ -6451,7 +6452,7 @@ let te = class extends G(x) {
|
|
|
6451
6452
|
(rr = (Ot = this.api) == null ? void 0 : Ot.lastResult) != null && rr.ok && y[D] && y[f] && this.saveCredentials(
|
|
6452
6453
|
y[D],
|
|
6453
6454
|
y[f]
|
|
6454
|
-
), this.submitResultKey && (h =
|
|
6455
|
+
), this.submitResultKey && (h = st.traverse(
|
|
6455
6456
|
h,
|
|
6456
6457
|
this.submitResultKey.split("."),
|
|
6457
6458
|
!0
|
|
@@ -6473,7 +6474,7 @@ let te = class extends G(x) {
|
|
|
6473
6474
|
if (v) {
|
|
6474
6475
|
v.captchaToken = "request_token";
|
|
6475
6476
|
const y = (_) => {
|
|
6476
|
-
_ != "request_token" ? (g(), v.captchaToken.offAssign(y)) : (
|
|
6477
|
+
_ != "request_token" ? (g(), v.captchaToken.offAssign(y)) : (at.hide(), this.disabled = !1);
|
|
6477
6478
|
};
|
|
6478
6479
|
v.captchaToken.onAssign(y);
|
|
6479
6480
|
} else
|
|
@@ -6556,10 +6557,10 @@ let Te = class extends ds(x) {
|
|
|
6556
6557
|
return this;
|
|
6557
6558
|
}
|
|
6558
6559
|
connectedCallback() {
|
|
6559
|
-
|
|
6560
|
+
it.onChange(this), super.connectedCallback();
|
|
6560
6561
|
}
|
|
6561
6562
|
disconnectedCallback() {
|
|
6562
|
-
|
|
6563
|
+
it.offChange(this), super.disconnectedCallback();
|
|
6563
6564
|
}
|
|
6564
6565
|
set location(r) {
|
|
6565
6566
|
this._location = r, this.requestUpdate();
|
|
@@ -6690,12 +6691,12 @@ let zr = class extends G(x) {
|
|
|
6690
6691
|
}
|
|
6691
6692
|
update() {
|
|
6692
6693
|
if (this.hasAttribute("onAdded")) {
|
|
6693
|
-
|
|
6694
|
+
it.changeFromComponent(this);
|
|
6694
6695
|
return;
|
|
6695
6696
|
}
|
|
6696
6697
|
if (!this.props) return;
|
|
6697
|
-
const r = this.getAttribute("onData").split("."), t =
|
|
6698
|
-
t && !(
|
|
6698
|
+
const r = this.getAttribute("onData").split("."), t = st.traverse(this.props, r);
|
|
6699
|
+
t && !(st.isObject(t) && t) && it.changeFromComponent(this);
|
|
6699
6700
|
}
|
|
6700
6701
|
};
|
|
6701
6702
|
zr = fl([
|
|
@@ -6753,7 +6754,7 @@ let ns = class extends G(ds(x)) {
|
|
|
6753
6754
|
}
|
|
6754
6755
|
render() {
|
|
6755
6756
|
let r = this.state;
|
|
6756
|
-
(!Array.isArray(r) &&
|
|
6757
|
+
(!Array.isArray(r) && st.isObject(r) || r === void 0) && (r = "");
|
|
6757
6758
|
const t = this.handleStates(r);
|
|
6758
6759
|
if (t.length > 0)
|
|
6759
6760
|
return m`${t}`;
|
|
@@ -6933,9 +6934,9 @@ const Cl = {
|
|
|
6933
6934
|
tagName: "sonic-form-layout"
|
|
6934
6935
|
}, Vl = {
|
|
6935
6936
|
tagName: "sonic-form-actions"
|
|
6936
|
-
}, Hl = {
|
|
6937
|
-
tagName: "sonic-password-helper"
|
|
6938
6937
|
}, Bl = {
|
|
6938
|
+
tagName: "sonic-password-helper"
|
|
6939
|
+
}, Hl = {
|
|
6939
6940
|
tagName: "sonic-same-value-helper"
|
|
6940
6941
|
}, ql = {
|
|
6941
6942
|
tagName: "sonic-divider"
|
|
@@ -6957,8 +6958,8 @@ const Cl = {
|
|
|
6957
6958
|
formItemContainer: Rl,
|
|
6958
6959
|
formLayout: Ul,
|
|
6959
6960
|
formActions: Vl,
|
|
6960
|
-
passwordHelper:
|
|
6961
|
-
sameValueHelper:
|
|
6961
|
+
passwordHelper: Bl,
|
|
6962
|
+
sameValueHelper: Hl,
|
|
6962
6963
|
divider: ql
|
|
6963
6964
|
};
|
|
6964
6965
|
class Kl {
|
|
@@ -7312,7 +7313,7 @@ let Rs = class extends oe(x) {
|
|
|
7312
7313
|
if (typeof i == "string") {
|
|
7313
7314
|
const e = i.split("."), o = e.shift();
|
|
7314
7315
|
if (!o) continue;
|
|
7315
|
-
let n =
|
|
7316
|
+
let n = rt.get(o);
|
|
7316
7317
|
n = ps.traverse(n, e);
|
|
7317
7318
|
const a = {
|
|
7318
7319
|
publisher: n,
|
|
@@ -7589,10 +7590,10 @@ let ee = class extends x {
|
|
|
7589
7590
|
return this._location;
|
|
7590
7591
|
}
|
|
7591
7592
|
set location(r) {
|
|
7592
|
-
this._location = r,
|
|
7593
|
+
this._location = r, it.updateComponentActiveState(this);
|
|
7593
7594
|
}
|
|
7594
7595
|
connectedCallback() {
|
|
7595
|
-
this.href && this.href.indexOf("http") != 0 && (
|
|
7596
|
+
this.href && this.href.indexOf("http") != 0 && (it.onChange(this), this.location = document.location.href.replace(document.location.origin, "")), this.addEventListener("keypress", (r) => {
|
|
7596
7597
|
var t, s;
|
|
7597
7598
|
r.key === "Enter" && ((s = (t = this.shadowRoot) == null ? void 0 : t.querySelector("a")) == null || s.click());
|
|
7598
7599
|
}), this.setFocusable(), super.connectedCallback();
|
|
@@ -7601,7 +7602,7 @@ let ee = class extends x {
|
|
|
7601
7602
|
this.href ? this.setAttribute("tabIndex", "0") : this.removeAttribute("tabIndex");
|
|
7602
7603
|
}
|
|
7603
7604
|
disconnectedCallback() {
|
|
7604
|
-
|
|
7605
|
+
it.offChange(this), super.disconnectedCallback();
|
|
7605
7606
|
}
|
|
7606
7607
|
set target(r) {
|
|
7607
7608
|
this._target = r, cc.fixBlankLink(this), this.requestUpdate();
|
|
@@ -7610,7 +7611,7 @@ let ee = class extends x {
|
|
|
7610
7611
|
return this._target;
|
|
7611
7612
|
}
|
|
7612
7613
|
handlePushState(r) {
|
|
7613
|
-
r.preventDefault(),
|
|
7614
|
+
r.preventDefault(), it.changeFromComponent(this);
|
|
7614
7615
|
}
|
|
7615
7616
|
updated(r) {
|
|
7616
7617
|
r.has("href") && this.setFocusable();
|
|
@@ -8231,7 +8232,7 @@ var bc = Object.defineProperty, vc = Object.getOwnPropertyDescriptor, V = (r, t,
|
|
|
8231
8232
|
return i && e && bc(t, s, e), e;
|
|
8232
8233
|
};
|
|
8233
8234
|
const yc = "sonic-input";
|
|
8234
|
-
let
|
|
8235
|
+
let F = class extends Gs(Fe(G(x))) {
|
|
8235
8236
|
constructor() {
|
|
8236
8237
|
super(...arguments), this.readonly = !1, this.inlineContent = !1, this.disableInlineContentFocus = !1, this.showPasswordToggle = !1, this.autoActive = !1, this.active = !1, this.hasDescription = !1, this.hasLabel = !1, this.hasSuffix = !1, this.hasPrefix = !1, this.isPassword = !1;
|
|
8237
8238
|
}
|
|
@@ -8387,7 +8388,7 @@ let j = class extends Gs(Fe(G(x))) {
|
|
|
8387
8388
|
`;
|
|
8388
8389
|
}
|
|
8389
8390
|
};
|
|
8390
|
-
|
|
8391
|
+
F.styles = [
|
|
8391
8392
|
jt,
|
|
8392
8393
|
Gi,
|
|
8393
8394
|
Js,
|
|
@@ -8405,88 +8406,88 @@ j.styles = [
|
|
|
8405
8406
|
];
|
|
8406
8407
|
V([
|
|
8407
8408
|
l({ type: String, reflect: !0 })
|
|
8408
|
-
],
|
|
8409
|
+
], F.prototype, "size", 2);
|
|
8409
8410
|
V([
|
|
8410
8411
|
l({ type: String })
|
|
8411
|
-
],
|
|
8412
|
+
], F.prototype, "inputmode", 2);
|
|
8412
8413
|
V([
|
|
8413
8414
|
l({ type: String })
|
|
8414
|
-
],
|
|
8415
|
+
], F.prototype, "list", 2);
|
|
8415
8416
|
V([
|
|
8416
8417
|
l({ type: String })
|
|
8417
|
-
],
|
|
8418
|
+
], F.prototype, "placeholder", 2);
|
|
8418
8419
|
V([
|
|
8419
8420
|
l({ type: String })
|
|
8420
|
-
],
|
|
8421
|
+
], F.prototype, "pattern", 2);
|
|
8421
8422
|
V([
|
|
8422
8423
|
l({ type: String })
|
|
8423
|
-
],
|
|
8424
|
+
], F.prototype, "min", 2);
|
|
8424
8425
|
V([
|
|
8425
8426
|
l({ type: String })
|
|
8426
|
-
],
|
|
8427
|
+
], F.prototype, "max", 2);
|
|
8427
8428
|
V([
|
|
8428
8429
|
l({ type: Boolean, reflect: !0 })
|
|
8429
|
-
],
|
|
8430
|
+
], F.prototype, "readonly", 2);
|
|
8430
8431
|
V([
|
|
8431
8432
|
l({ type: Number })
|
|
8432
|
-
],
|
|
8433
|
+
], F.prototype, "step", 2);
|
|
8433
8434
|
V([
|
|
8434
8435
|
l({ type: Number })
|
|
8435
|
-
],
|
|
8436
|
+
], F.prototype, "minlength", 2);
|
|
8436
8437
|
V([
|
|
8437
8438
|
l({ type: Number })
|
|
8438
|
-
],
|
|
8439
|
+
], F.prototype, "maxlength", 2);
|
|
8439
8440
|
V([
|
|
8440
8441
|
l({ type: String })
|
|
8441
|
-
],
|
|
8442
|
+
], F.prototype, "src", 2);
|
|
8442
8443
|
V([
|
|
8443
8444
|
l({ type: Boolean, reflect: !0 })
|
|
8444
|
-
],
|
|
8445
|
+
], F.prototype, "inlineContent", 2);
|
|
8445
8446
|
V([
|
|
8446
8447
|
l({ type: Boolean })
|
|
8447
|
-
],
|
|
8448
|
+
], F.prototype, "disableInlineContentFocus", 2);
|
|
8448
8449
|
V([
|
|
8449
8450
|
l({ type: Boolean })
|
|
8450
|
-
],
|
|
8451
|
+
], F.prototype, "showPasswordToggle", 2);
|
|
8451
8452
|
V([
|
|
8452
8453
|
l({ type: Boolean })
|
|
8453
|
-
],
|
|
8454
|
+
], F.prototype, "autoActive", 2);
|
|
8454
8455
|
V([
|
|
8455
8456
|
l({ type: Boolean, reflect: !0 })
|
|
8456
|
-
],
|
|
8457
|
+
], F.prototype, "active", 2);
|
|
8457
8458
|
V([
|
|
8458
8459
|
dt({ slot: "label", flatten: !0 })
|
|
8459
|
-
],
|
|
8460
|
+
], F.prototype, "slotLabelNodes", 2);
|
|
8460
8461
|
V([
|
|
8461
8462
|
dt({ slot: "description", flatten: !0 })
|
|
8462
|
-
],
|
|
8463
|
+
], F.prototype, "slotDescriptionNodes", 2);
|
|
8463
8464
|
V([
|
|
8464
8465
|
dt({ slot: "suffix", flatten: !0 })
|
|
8465
|
-
],
|
|
8466
|
+
], F.prototype, "slotSuffixNodes", 2);
|
|
8466
8467
|
V([
|
|
8467
8468
|
dt({ slot: "prefix", flatten: !0 })
|
|
8468
|
-
],
|
|
8469
|
+
], F.prototype, "slotPrefixNodes", 2);
|
|
8469
8470
|
V([
|
|
8470
8471
|
$e("input")
|
|
8471
|
-
],
|
|
8472
|
+
], F.prototype, "input", 2);
|
|
8472
8473
|
V([
|
|
8473
|
-
|
|
8474
|
-
],
|
|
8474
|
+
L()
|
|
8475
|
+
], F.prototype, "hasDescription", 2);
|
|
8475
8476
|
V([
|
|
8476
|
-
|
|
8477
|
-
],
|
|
8477
|
+
L()
|
|
8478
|
+
], F.prototype, "hasLabel", 2);
|
|
8478
8479
|
V([
|
|
8479
|
-
|
|
8480
|
-
],
|
|
8480
|
+
L()
|
|
8481
|
+
], F.prototype, "hasSuffix", 2);
|
|
8481
8482
|
V([
|
|
8482
|
-
|
|
8483
|
-
],
|
|
8483
|
+
L()
|
|
8484
|
+
], F.prototype, "hasPrefix", 2);
|
|
8484
8485
|
V([
|
|
8485
|
-
|
|
8486
|
-
],
|
|
8487
|
-
|
|
8486
|
+
L()
|
|
8487
|
+
], F.prototype, "isPassword", 2);
|
|
8488
|
+
F = V([
|
|
8488
8489
|
$(yc)
|
|
8489
|
-
],
|
|
8490
|
+
], F);
|
|
8490
8491
|
const Co = P`
|
|
8491
8492
|
/*OMBRE*/
|
|
8492
8493
|
:host([shadow]) .shadowable,
|
|
@@ -8513,7 +8514,7 @@ var _c = Object.defineProperty, wc = Object.getOwnPropertyDescriptor, zt = (r, t
|
|
|
8513
8514
|
return i && e && _c(t, s, e), e;
|
|
8514
8515
|
};
|
|
8515
8516
|
const xc = "sonic-pop";
|
|
8516
|
-
let
|
|
8517
|
+
let ot = class extends x {
|
|
8517
8518
|
constructor() {
|
|
8518
8519
|
super(...arguments), this.open = !1, this.noToggle = !1, this.inline = !1, this.manual = !1, this.shadow = "lg", this.placement = "bottom", this.positioningRuns = !1, this.lastContentX = 0, this.lastContentY = 0, this.resizeObserver = new ResizeObserver(
|
|
8519
8520
|
() => this.computePosition(this.placement)
|
|
@@ -8530,7 +8531,8 @@ let rt = class extends x {
|
|
|
8530
8531
|
r.type == "keydown" && (t.key != "ArrowDown" || this.open) || (this.open || (this.triggerElement = r.target), this.open = !this.open, this.open ? this.show() : this.hide());
|
|
8531
8532
|
}
|
|
8532
8533
|
show() {
|
|
8533
|
-
|
|
8534
|
+
var r, t;
|
|
8535
|
+
this.setMaxZindex(), (t = (r = this.popContent) == null ? void 0 : r.style) == null || t.removeProperty("display"), this.open = !0, this.popContent.setAttribute("tabindex", "0"), this.popBtn && this.popContent && !this.positioningRuns && (this.positioningRuns = !0, this.lastContentX = 0, this.lastContentY = 0, this.runPositioningLoop()), this.dispatchEvent(new CustomEvent("show"));
|
|
8534
8536
|
}
|
|
8535
8537
|
hide() {
|
|
8536
8538
|
this.resetZindexes(), this.open = !1, this.popContent.setAttribute("tabindex", "-1"), this.positioningRuns = !1, this.triggerElement && (this.triggerElement.focus(), this.triggerElement = null), Object.assign(this.popContent.style, {
|
|
@@ -8539,7 +8541,7 @@ let rt = class extends x {
|
|
|
8539
8541
|
}), this.dispatchEvent(new CustomEvent("hide"));
|
|
8540
8542
|
}
|
|
8541
8543
|
setMaxZindex() {
|
|
8542
|
-
|
|
8544
|
+
et.everyAncestors(this, (r) => {
|
|
8543
8545
|
const t = r;
|
|
8544
8546
|
if (!t.className) return !0;
|
|
8545
8547
|
if ([...t.classList].includes("@container")) {
|
|
@@ -8558,15 +8560,15 @@ let rt = class extends x {
|
|
|
8558
8560
|
}
|
|
8559
8561
|
_handleClosePop(r) {
|
|
8560
8562
|
const t = r.composedPath(), s = t[0];
|
|
8561
|
-
|
|
8563
|
+
ot.pops.forEach((i) => {
|
|
8562
8564
|
const e = t.includes(i), o = t.includes(
|
|
8563
8565
|
i.querySelector('[slot="content"]')
|
|
8564
|
-
), n =
|
|
8566
|
+
), n = et.getAncestorAttributeValue(s, "data-on-select") === "keep";
|
|
8565
8567
|
r.type == "pointerdown" && e || r.type == "click" && (e && n || !o) || i.hide();
|
|
8566
8568
|
});
|
|
8567
8569
|
}
|
|
8568
8570
|
connectedCallback() {
|
|
8569
|
-
super.connectedCallback(),
|
|
8571
|
+
super.connectedCallback(), ot.pops.size == 0 && (document.addEventListener("pointerdown", this._handleClosePop), document.addEventListener("click", this._handleClosePop), document.addEventListener("keydown", this._handleKeyDown)), ot.pops.add(this);
|
|
8570
8572
|
}
|
|
8571
8573
|
// /*
|
|
8572
8574
|
// On attends le premier rendu pour observer les changements de taille car popup content n'est pas encore défini sinon
|
|
@@ -8575,13 +8577,13 @@ let rt = class extends x {
|
|
|
8575
8577
|
super.firstUpdated(r), this.resizeObserver.observe(this.popContent);
|
|
8576
8578
|
}
|
|
8577
8579
|
disconnectedCallback() {
|
|
8578
|
-
this.popContent && this.resizeObserver.unobserve(this.popContent), super.disconnectedCallback(),
|
|
8580
|
+
this.popContent && this.resizeObserver.unobserve(this.popContent), super.disconnectedCallback(), ot.pops.delete(this), ot.pops.size == 0 && (document.removeEventListener("pointerdown", this._handleClosePop), document.removeEventListener("click", this._handleClosePop), document.removeEventListener("keydown", this._handleKeyDown));
|
|
8579
8581
|
}
|
|
8580
8582
|
computePosition(r) {
|
|
8581
|
-
var N,
|
|
8583
|
+
var N, B, W, Ot;
|
|
8582
8584
|
const t = r.split(" "), s = t[0];
|
|
8583
8585
|
let i = t[1];
|
|
8584
|
-
const e = 5, o = this.getBoundingClientRect(), n =
|
|
8586
|
+
const e = 5, o = this.getBoundingClientRect(), n = et.getScrollableAncestor(
|
|
8585
8587
|
this.popContent
|
|
8586
8588
|
), a = n == null ? void 0 : n.getBoundingClientRect(), c = Math.max(0, (a == null ? void 0 : a.left) || 0) + e, h = Math.max(0, (a == null ? void 0 : a.top) || 0) + e, d = Math.min(
|
|
8587
8589
|
window.innerWidth,
|
|
@@ -8609,7 +8611,7 @@ let rt = class extends x {
|
|
|
8609
8611
|
this.lastContentX += b - _.x, this.lastContentY += y - _.y, Object.assign(this.popContent.style, {
|
|
8610
8612
|
left: `${this.lastContentX}px`,
|
|
8611
8613
|
top: `${this.lastContentY}px`
|
|
8612
|
-
}), _ = (
|
|
8614
|
+
}), _ = (B = this.popContent) == null ? void 0 : B.getBoundingClientRect(), _.x < c && s == "left" && (b = u), _.y < h && s == "top" && (y = w), _.x + _.width > d && s == "right" && (b = f), _.y + _.height > p && s == "bottom" && (y = D), this.lastContentX += b - _.x, this.lastContentY += y - _.y, Object.assign(this.popContent.style, {
|
|
8613
8615
|
left: `${this.lastContentX}px`,
|
|
8614
8616
|
top: `${this.lastContentY}px`
|
|
8615
8617
|
}), _ = (W = this.popContent) == null ? void 0 : W.getBoundingClientRect(), _.x < c && (this.lastContentX += c - _.x), _.y < h && (this.lastContentY += h - _.y), Object.assign(this.popContent.style, {
|
|
@@ -8640,8 +8642,8 @@ let rt = class extends x {
|
|
|
8640
8642
|
`;
|
|
8641
8643
|
}
|
|
8642
8644
|
};
|
|
8643
|
-
|
|
8644
|
-
|
|
8645
|
+
ot.pops = /* @__PURE__ */ new Set();
|
|
8646
|
+
ot.styles = [
|
|
8645
8647
|
P`
|
|
8646
8648
|
:host {
|
|
8647
8649
|
display: inline-block;
|
|
@@ -8678,42 +8680,42 @@ rt.styles = [
|
|
|
8678
8680
|
Co
|
|
8679
8681
|
];
|
|
8680
8682
|
zt([
|
|
8681
|
-
|
|
8682
|
-
],
|
|
8683
|
+
L()
|
|
8684
|
+
], ot.prototype, "open", 2);
|
|
8683
8685
|
zt([
|
|
8684
8686
|
$e("slot:not([name=content])")
|
|
8685
|
-
],
|
|
8687
|
+
], ot.prototype, "popBtn", 2);
|
|
8686
8688
|
zt([
|
|
8687
8689
|
$e("slot[name=content]")
|
|
8688
|
-
],
|
|
8690
|
+
], ot.prototype, "popContent", 2);
|
|
8689
8691
|
zt([
|
|
8690
8692
|
l({ type: Boolean })
|
|
8691
|
-
],
|
|
8693
|
+
], ot.prototype, "noToggle", 2);
|
|
8692
8694
|
zt([
|
|
8693
8695
|
l({ type: Boolean, reflect: !0 })
|
|
8694
|
-
],
|
|
8696
|
+
], ot.prototype, "inline", 2);
|
|
8695
8697
|
zt([
|
|
8696
8698
|
l({ type: Boolean })
|
|
8697
|
-
],
|
|
8699
|
+
], ot.prototype, "manual", 2);
|
|
8698
8700
|
zt([
|
|
8699
8701
|
l({ type: String, reflect: !0 })
|
|
8700
|
-
],
|
|
8702
|
+
], ot.prototype, "shadow", 2);
|
|
8701
8703
|
zt([
|
|
8702
8704
|
l({ type: String })
|
|
8703
|
-
],
|
|
8705
|
+
], ot.prototype, "placement", 2);
|
|
8704
8706
|
zt([
|
|
8705
|
-
|
|
8706
|
-
],
|
|
8707
|
-
|
|
8707
|
+
L()
|
|
8708
|
+
], ot.prototype, "triggerElement", 2);
|
|
8709
|
+
ot = zt([
|
|
8708
8710
|
$(xc)
|
|
8709
|
-
],
|
|
8711
|
+
], ot);
|
|
8710
8712
|
var $c = Object.defineProperty, Pc = Object.getOwnPropertyDescriptor, Ac = (r, t, s, i) => {
|
|
8711
8713
|
for (var e = i > 1 ? void 0 : i ? Pc(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
8712
8714
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
8713
8715
|
return i && e && $c(t, s, e), e;
|
|
8714
8716
|
};
|
|
8715
8717
|
const Cc = "sonic-menu-item";
|
|
8716
|
-
let Vr = class extends
|
|
8718
|
+
let Vr = class extends j {
|
|
8717
8719
|
constructor() {
|
|
8718
8720
|
super();
|
|
8719
8721
|
}
|
|
@@ -8765,7 +8767,7 @@ var Sc = Object.defineProperty, Oc = Object.getOwnPropertyDescriptor, mt = (r, t
|
|
|
8765
8767
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
8766
8768
|
return i && e && Sc(t, s, e), e;
|
|
8767
8769
|
};
|
|
8768
|
-
let
|
|
8770
|
+
let lt = class extends Ki(
|
|
8769
8771
|
_o(yo(oe(x)))
|
|
8770
8772
|
) {
|
|
8771
8773
|
constructor() {
|
|
@@ -8822,18 +8824,18 @@ let at = class extends Ki(
|
|
|
8822
8824
|
super.connectedCallback();
|
|
8823
8825
|
const r = this.searchParameter || this.name, t = this.getAncestorAttributeValue("formDataProvider"), s = t + "__" + this.name + "__autocomplete";
|
|
8824
8826
|
this.initSearchDataProvider = `${s}_init_search__`, this.initQueueDataProvider = `${s}_init_queue__`, this.searchDataProvider = `${s}_search__`, this.queueDataProvider = `${s}_queue__`;
|
|
8825
|
-
const i =
|
|
8827
|
+
const i = rt.get;
|
|
8826
8828
|
this.searchPublisher = i(this.searchDataProvider)[r], this.formValuePublisher = pt(
|
|
8827
8829
|
i(t),
|
|
8828
8830
|
this.name
|
|
8829
8831
|
), this.countPublisher = i(this.queueDataProvider).resultCount, this.initCountPublisher = i(
|
|
8830
8832
|
this.initQueueDataProvider
|
|
8831
|
-
).resultCount, this.value && (
|
|
8833
|
+
).resultCount, this.value && (rt.get(this.initSearchDataProvider)[this.name] = this.value), (e = this.initCountPublisher) == null || e.onAssign(this.initSearchParameter), (o = this.formValuePublisher) == null || o.onAssign(this.updateSearchParameter), (n = this.countPublisher) == null || n.onAssign(this.updateActiveSelection), (a = this.searchPublisher) == null || a.onAssign(this.updatePopContentVisibility);
|
|
8832
8834
|
}
|
|
8833
8835
|
disconnectedCallback() {
|
|
8834
8836
|
var t, s, i, e;
|
|
8835
8837
|
super.disconnectedCallback(), (t = this.initCountPublisher) == null || t.offAssign(this.initSearchParameter), (s = this.formValuePublisher) == null || s.offAssign(this.updateSearchParameter), (i = this.countPublisher) == null || i.offAssign(this.updateActiveSelection);
|
|
8836
|
-
const r =
|
|
8838
|
+
const r = rt.get;
|
|
8837
8839
|
r(this.initSearchDataProvider).delete(), r(this.initQueueDataProvider).delete(), r(this.searchDataProvider).delete(), r(this.queueDataProvider).delete(), (e = this.searchPublisher) == null || e.offAssign(this.updatePopContentVisibility);
|
|
8838
8840
|
}
|
|
8839
8841
|
/**
|
|
@@ -8844,11 +8846,11 @@ let at = class extends Ki(
|
|
|
8844
8846
|
* @return bool|undefined True if item found, false otherwise, undefined if result is not a list
|
|
8845
8847
|
*/
|
|
8846
8848
|
queryQueueListItem(r, t, s) {
|
|
8847
|
-
const i =
|
|
8849
|
+
const i = rt.get(r);
|
|
8848
8850
|
let e, o = i.get();
|
|
8849
8851
|
if (!o || !Array.isArray(o) || !o.length) return !1;
|
|
8850
8852
|
for (const n of o) {
|
|
8851
|
-
let a =
|
|
8853
|
+
let a = rt.get(n.dataProvider).get();
|
|
8852
8854
|
if (Array.isArray(a) && (e = a.find(t), e))
|
|
8853
8855
|
break;
|
|
8854
8856
|
}
|
|
@@ -8940,7 +8942,7 @@ let at = class extends Ki(
|
|
|
8940
8942
|
`;
|
|
8941
8943
|
}
|
|
8942
8944
|
};
|
|
8943
|
-
|
|
8945
|
+
lt.styles = [
|
|
8944
8946
|
fs,
|
|
8945
8947
|
P`
|
|
8946
8948
|
:host {
|
|
@@ -8967,49 +8969,49 @@ at.styles = [
|
|
|
8967
8969
|
];
|
|
8968
8970
|
mt([
|
|
8969
8971
|
l({ type: String })
|
|
8970
|
-
],
|
|
8972
|
+
], lt.prototype, "size", 2);
|
|
8971
8973
|
mt([
|
|
8972
8974
|
l({ type: String })
|
|
8973
|
-
],
|
|
8975
|
+
], lt.prototype, "placeholder", 2);
|
|
8974
8976
|
mt([
|
|
8975
8977
|
l()
|
|
8976
|
-
],
|
|
8978
|
+
], lt.prototype, "filteredFields", 2);
|
|
8977
8979
|
mt([
|
|
8978
8980
|
l({ type: Boolean, reflect: !0 })
|
|
8979
|
-
],
|
|
8981
|
+
], lt.prototype, "readonly", 2);
|
|
8980
8982
|
mt([
|
|
8981
8983
|
l({ type: String })
|
|
8982
|
-
],
|
|
8984
|
+
], lt.prototype, "dataProviderExpression", 2);
|
|
8983
8985
|
mt([
|
|
8984
8986
|
l({ type: Number })
|
|
8985
|
-
],
|
|
8987
|
+
], lt.prototype, "minSearchLength", 2);
|
|
8986
8988
|
mt([
|
|
8987
8989
|
l({ type: Boolean })
|
|
8988
|
-
],
|
|
8990
|
+
], lt.prototype, "select", 2);
|
|
8989
8991
|
mt([
|
|
8990
8992
|
l({ type: String })
|
|
8991
|
-
],
|
|
8993
|
+
], lt.prototype, "key", 2);
|
|
8992
8994
|
mt([
|
|
8993
8995
|
l({ type: String })
|
|
8994
|
-
],
|
|
8996
|
+
], lt.prototype, "searchParameter", 2);
|
|
8995
8997
|
mt([
|
|
8996
8998
|
l({ type: String })
|
|
8997
|
-
],
|
|
8999
|
+
], lt.prototype, "propertyName", 2);
|
|
8998
9000
|
mt([
|
|
8999
9001
|
dt({ slot: "prefix", flatten: !0 })
|
|
9000
|
-
],
|
|
9002
|
+
], lt.prototype, "slotInputPrefixNodes", 2);
|
|
9001
9003
|
mt([
|
|
9002
|
-
|
|
9003
|
-
],
|
|
9004
|
+
L()
|
|
9005
|
+
], lt.prototype, "hasInputPrefix", 2);
|
|
9004
9006
|
mt([
|
|
9005
|
-
|
|
9006
|
-
],
|
|
9007
|
+
L()
|
|
9008
|
+
], lt.prototype, "isPopVisible", 2);
|
|
9007
9009
|
mt([
|
|
9008
|
-
|
|
9009
|
-
],
|
|
9010
|
-
|
|
9010
|
+
L()
|
|
9011
|
+
], lt.prototype, "lastValidSearch", 2);
|
|
9012
|
+
lt = mt([
|
|
9011
9013
|
$("sonic-input-autocomplete")
|
|
9012
|
-
],
|
|
9014
|
+
], lt);
|
|
9013
9015
|
var Dc = Object.defineProperty, kc = Object.getOwnPropertyDescriptor, gt = (r, t, s, i) => {
|
|
9014
9016
|
for (var e = i > 1 ? void 0 : i ? kc(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
9015
9017
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
@@ -9023,10 +9025,10 @@ let ct = class extends oe(x) {
|
|
|
9023
9025
|
connectedCallback() {
|
|
9024
9026
|
super.connectedCallback(), this.name && (this.checkValue = (t) => {
|
|
9025
9027
|
t ? (this.hasNoChar = t.length == 0, this.hasEnoughChars = t.length > this.minChars) : (this.hasNoChar = !0, this.hasEnoughChars = !1), this.hasMinuscule = /[a-z]/.test(t), this.hasMajuscule = /[A-Z]/.test(t), this.hasNumber = /[0-9]/.test(t), this.hasSpecialChar = /[!"#$%&'()*+,\-./:;<=>?@[\]^_`{|}~]/.test(t);
|
|
9026
|
-
},
|
|
9028
|
+
}, rt.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue));
|
|
9027
9029
|
}
|
|
9028
9030
|
disconnectedCallback() {
|
|
9029
|
-
this.checkValue && this.name &&
|
|
9031
|
+
this.checkValue && this.name && rt.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue), super.disconnectedCallback();
|
|
9030
9032
|
}
|
|
9031
9033
|
getIcon(t) {
|
|
9032
9034
|
return t ? m`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>` : m`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`;
|
|
@@ -9063,22 +9065,22 @@ gt([
|
|
|
9063
9065
|
l()
|
|
9064
9066
|
], ct.prototype, "minChars", 2);
|
|
9065
9067
|
gt([
|
|
9066
|
-
|
|
9068
|
+
L()
|
|
9067
9069
|
], ct.prototype, "hasNoChar", 2);
|
|
9068
9070
|
gt([
|
|
9069
|
-
|
|
9071
|
+
L()
|
|
9070
9072
|
], ct.prototype, "hasEnoughChars", 2);
|
|
9071
9073
|
gt([
|
|
9072
|
-
|
|
9074
|
+
L()
|
|
9073
9075
|
], ct.prototype, "hasMinuscule", 2);
|
|
9074
9076
|
gt([
|
|
9075
|
-
|
|
9077
|
+
L()
|
|
9076
9078
|
], ct.prototype, "hasMajuscule", 2);
|
|
9077
9079
|
gt([
|
|
9078
|
-
|
|
9080
|
+
L()
|
|
9079
9081
|
], ct.prototype, "hasNumber", 2);
|
|
9080
9082
|
gt([
|
|
9081
|
-
|
|
9083
|
+
L()
|
|
9082
9084
|
], ct.prototype, "hasSpecialChar", 2);
|
|
9083
9085
|
gt([
|
|
9084
9086
|
l()
|
|
@@ -9113,7 +9115,7 @@ let ie = class extends oe(x) {
|
|
|
9113
9115
|
}
|
|
9114
9116
|
connectedCallback() {
|
|
9115
9117
|
super.connectedCallback();
|
|
9116
|
-
const r =
|
|
9118
|
+
const r = rt.get(
|
|
9117
9119
|
this.getAncestorAttributeValue("formDataProvider")
|
|
9118
9120
|
);
|
|
9119
9121
|
this.name && this.sameValueAs && (this.checkValue = (t) => {
|
|
@@ -9126,7 +9128,7 @@ let ie = class extends oe(x) {
|
|
|
9126
9128
|
}
|
|
9127
9129
|
disconnectedCallback() {
|
|
9128
9130
|
if (this.checkValue && this.name && this.sameValueAs) {
|
|
9129
|
-
const r =
|
|
9131
|
+
const r = rt.get(
|
|
9130
9132
|
this.getAncestorAttributeValue("formDataProvider")
|
|
9131
9133
|
);
|
|
9132
9134
|
pt(r, this.name).offAssign(
|
|
@@ -9159,10 +9161,10 @@ Ce([
|
|
|
9159
9161
|
l()
|
|
9160
9162
|
], ie.prototype, "descriptionWhenNotEqual", 2);
|
|
9161
9163
|
Ce([
|
|
9162
|
-
|
|
9164
|
+
L()
|
|
9163
9165
|
], ie.prototype, "areEqual", 2);
|
|
9164
9166
|
Ce([
|
|
9165
|
-
|
|
9167
|
+
L()
|
|
9166
9168
|
], ie.prototype, "hasNoChar", 2);
|
|
9167
9169
|
ie = Ce([
|
|
9168
9170
|
$(Tc)
|
|
@@ -9173,7 +9175,7 @@ var Mc = Object.defineProperty, Ic = Object.getOwnPropertyDescriptor, Zt = (r, t
|
|
|
9173
9175
|
return i && e && Mc(t, s, e), e;
|
|
9174
9176
|
};
|
|
9175
9177
|
const jc = "sonic-checkbox";
|
|
9176
|
-
let ut = class extends
|
|
9178
|
+
let ut = class extends Hi(
|
|
9177
9179
|
Gs(Fe(G(x)))
|
|
9178
9180
|
) {
|
|
9179
9181
|
constructor() {
|
|
@@ -9273,7 +9275,7 @@ ut.styles = [
|
|
|
9273
9275
|
var(--sc-checkbox-border-color);
|
|
9274
9276
|
}
|
|
9275
9277
|
|
|
9276
|
-
input:focus,
|
|
9278
|
+
input:focus-visible,
|
|
9277
9279
|
:host(:not([disabled])) input:active {
|
|
9278
9280
|
box-shadow: 0 0 0 2px var(--sc-primary, var(--sc-base-content, #000));
|
|
9279
9281
|
}
|
|
@@ -9414,8 +9416,8 @@ wi.styles = [
|
|
|
9414
9416
|
wi = Rc([
|
|
9415
9417
|
$(Uc)
|
|
9416
9418
|
], wi);
|
|
9417
|
-
var Vc = Object.defineProperty,
|
|
9418
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
9419
|
+
var Vc = Object.defineProperty, Bc = Object.getOwnPropertyDescriptor, Hc = (r, t, s, i) => {
|
|
9420
|
+
for (var e = i > 1 ? void 0 : i ? Bc(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
9419
9421
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
9420
9422
|
return i && e && Vc(t, s, e), e;
|
|
9421
9423
|
};
|
|
@@ -9494,10 +9496,10 @@ xi.styles = [
|
|
|
9494
9496
|
}
|
|
9495
9497
|
`
|
|
9496
9498
|
];
|
|
9497
|
-
xi =
|
|
9499
|
+
xi = Hc([
|
|
9498
9500
|
$(qc)
|
|
9499
9501
|
], xi);
|
|
9500
|
-
var Wc = Object.defineProperty, Kc = Object.getOwnPropertyDescriptor,
|
|
9502
|
+
var Wc = Object.defineProperty, Kc = Object.getOwnPropertyDescriptor, J = (r, t, s, i) => {
|
|
9501
9503
|
for (var e = i > 1 ? void 0 : i ? Kc(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
9502
9504
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
9503
9505
|
return i && e && Wc(t, s, e), e;
|
|
@@ -9697,64 +9699,64 @@ Y.styles = [
|
|
|
9697
9699
|
}
|
|
9698
9700
|
`
|
|
9699
9701
|
];
|
|
9700
|
-
|
|
9702
|
+
J([
|
|
9701
9703
|
l({ type: String })
|
|
9702
9704
|
], Y.prototype, "valueKey", 2);
|
|
9703
|
-
|
|
9705
|
+
J([
|
|
9704
9706
|
l({ type: String })
|
|
9705
9707
|
], Y.prototype, "wordingKey", 2);
|
|
9706
|
-
|
|
9708
|
+
J([
|
|
9707
9709
|
l({ type: Boolean })
|
|
9708
9710
|
], Y.prototype, "multiple", 2);
|
|
9709
|
-
|
|
9711
|
+
J([
|
|
9710
9712
|
l({ type: String, reflect: !0 })
|
|
9711
9713
|
], Y.prototype, "size", 2);
|
|
9712
|
-
|
|
9714
|
+
J([
|
|
9713
9715
|
l({ type: Number })
|
|
9714
9716
|
], Y.prototype, "selectSize", 2);
|
|
9715
|
-
|
|
9717
|
+
J([
|
|
9716
9718
|
l({ type: String, reflect: !0 })
|
|
9717
9719
|
], Y.prototype, "status", 2);
|
|
9718
|
-
|
|
9720
|
+
J([
|
|
9719
9721
|
l({ type: Array })
|
|
9720
9722
|
], Y.prototype, "options", 1);
|
|
9721
|
-
|
|
9723
|
+
J([
|
|
9722
9724
|
l({ reflect: !0 })
|
|
9723
9725
|
], Y.prototype, "value", 1);
|
|
9724
|
-
|
|
9726
|
+
J([
|
|
9725
9727
|
l({ type: Boolean })
|
|
9726
9728
|
], Y.prototype, "forceAutoFill", 2);
|
|
9727
|
-
|
|
9729
|
+
J([
|
|
9728
9730
|
l()
|
|
9729
9731
|
], Y.prototype, "description", 1);
|
|
9730
|
-
|
|
9732
|
+
J([
|
|
9731
9733
|
l()
|
|
9732
9734
|
], Y.prototype, "label", 1);
|
|
9733
|
-
|
|
9735
|
+
J([
|
|
9734
9736
|
dt({ slot: "label", flatten: !0 })
|
|
9735
9737
|
], Y.prototype, "slotLabelNodes", 2);
|
|
9736
|
-
|
|
9738
|
+
J([
|
|
9737
9739
|
dt({ slot: "description", flatten: !0 })
|
|
9738
9740
|
], Y.prototype, "slotDescriptionNodes", 2);
|
|
9739
|
-
|
|
9741
|
+
J([
|
|
9740
9742
|
dt({ slot: "suffix", flatten: !0 })
|
|
9741
9743
|
], Y.prototype, "slotSuffixNodes", 2);
|
|
9742
|
-
|
|
9744
|
+
J([
|
|
9743
9745
|
dt({ slot: "prefix", flatten: !0 })
|
|
9744
9746
|
], Y.prototype, "slotPrefixNodes", 2);
|
|
9745
|
-
|
|
9746
|
-
|
|
9747
|
+
J([
|
|
9748
|
+
L()
|
|
9747
9749
|
], Y.prototype, "hasDescription", 2);
|
|
9748
|
-
|
|
9749
|
-
|
|
9750
|
+
J([
|
|
9751
|
+
L()
|
|
9750
9752
|
], Y.prototype, "hasLabel", 2);
|
|
9751
|
-
|
|
9752
|
-
|
|
9753
|
+
J([
|
|
9754
|
+
L()
|
|
9753
9755
|
], Y.prototype, "hasSuffix", 2);
|
|
9754
|
-
|
|
9755
|
-
|
|
9756
|
+
J([
|
|
9757
|
+
L()
|
|
9756
9758
|
], Y.prototype, "hasPrefix", 2);
|
|
9757
|
-
Y =
|
|
9759
|
+
Y = J([
|
|
9758
9760
|
$(Yc)
|
|
9759
9761
|
], Y);
|
|
9760
9762
|
var Zc = Object.defineProperty, Xc = Object.getOwnPropertyDescriptor, vt = (r, t, s, i) => {
|
|
@@ -9887,10 +9889,10 @@ vt([
|
|
|
9887
9889
|
dt({ slot: "description", flatten: !0 })
|
|
9888
9890
|
], ht.prototype, "slotDescriptionNodes", 2);
|
|
9889
9891
|
vt([
|
|
9890
|
-
|
|
9892
|
+
L()
|
|
9891
9893
|
], ht.prototype, "hasDescription", 2);
|
|
9892
9894
|
vt([
|
|
9893
|
-
|
|
9895
|
+
L()
|
|
9894
9896
|
], ht.prototype, "hasLabel", 2);
|
|
9895
9897
|
ht = vt([
|
|
9896
9898
|
$(Gc)
|
|
@@ -10352,10 +10354,10 @@ ne([
|
|
|
10352
10354
|
dt({ slot: "description", flatten: !0 })
|
|
10353
10355
|
], Mt.prototype, "slotDescriptionNodes", 2);
|
|
10354
10356
|
ne([
|
|
10355
|
-
|
|
10357
|
+
L()
|
|
10356
10358
|
], Mt.prototype, "hasDescription", 2);
|
|
10357
10359
|
ne([
|
|
10358
|
-
|
|
10360
|
+
L()
|
|
10359
10361
|
], Mt.prototype, "hasLabel", 2);
|
|
10360
10362
|
Mt = ne([
|
|
10361
10363
|
$(mh)
|
|
@@ -10757,7 +10759,7 @@ wt([
|
|
|
10757
10759
|
Pe({ slot: "more", selector: "*" })
|
|
10758
10760
|
], ft.prototype, "moreElements", 2);
|
|
10759
10761
|
wt([
|
|
10760
|
-
|
|
10762
|
+
L()
|
|
10761
10763
|
], ft.prototype, "hasMoreElements", 2);
|
|
10762
10764
|
ft = wt([
|
|
10763
10765
|
$(wh)
|
|
@@ -10807,17 +10809,17 @@ var Ah = Object.defineProperty, Ch = Object.getOwnPropertyDescriptor, Do = (r, t
|
|
|
10807
10809
|
return i && e && Ah(t, s, e), e;
|
|
10808
10810
|
};
|
|
10809
10811
|
const Sh = "sonic-modal-close";
|
|
10810
|
-
let
|
|
10812
|
+
let Bs = class extends x {
|
|
10811
10813
|
render() {
|
|
10812
10814
|
return m`<sonic-button reset=${A(this.reset)} shape="circle" @click=${this.handleClick}
|
|
10813
10815
|
><sonic-icon name="cancel" size="lg"></sonic-icon
|
|
10814
10816
|
></sonic-button>`;
|
|
10815
10817
|
}
|
|
10816
10818
|
handleClick() {
|
|
10817
|
-
|
|
10819
|
+
et.getClosestElement(this, "sonic-modal").hide();
|
|
10818
10820
|
}
|
|
10819
10821
|
};
|
|
10820
|
-
|
|
10822
|
+
Bs.styles = [
|
|
10821
10823
|
P`
|
|
10822
10824
|
:host {
|
|
10823
10825
|
position: sticky;
|
|
@@ -10833,10 +10835,10 @@ Hs.styles = [
|
|
|
10833
10835
|
];
|
|
10834
10836
|
Do([
|
|
10835
10837
|
l()
|
|
10836
|
-
],
|
|
10837
|
-
|
|
10838
|
+
], Bs.prototype, "reset", 2);
|
|
10839
|
+
Bs = Do([
|
|
10838
10840
|
$(Sh)
|
|
10839
|
-
],
|
|
10841
|
+
], Bs);
|
|
10840
10842
|
var Oh = Object.defineProperty, Dh = Object.getOwnPropertyDescriptor, kh = (r, t, s, i) => {
|
|
10841
10843
|
for (var e = i > 1 ? void 0 : i ? Dh(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
10842
10844
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
@@ -10919,25 +10921,25 @@ Ci.styles = [
|
|
|
10919
10921
|
Ci = Fh([
|
|
10920
10922
|
$(zh)
|
|
10921
10923
|
], Ci);
|
|
10922
|
-
var Rh = Object.defineProperty, Uh = Object.getOwnPropertyDescriptor,
|
|
10924
|
+
var Rh = Object.defineProperty, Uh = Object.getOwnPropertyDescriptor, Q = (r, t, s, i) => {
|
|
10923
10925
|
for (var e = i > 1 ? void 0 : i ? Uh(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
10924
10926
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
10925
10927
|
return i && e && Rh(t, s, e), e;
|
|
10926
10928
|
};
|
|
10927
10929
|
const ko = "sonic-modal";
|
|
10928
|
-
let
|
|
10930
|
+
let I = class extends G(x) {
|
|
10929
10931
|
constructor() {
|
|
10930
|
-
super(...arguments), this.forceAction = !1, this.removeOnHide = !1, this.removeHashOnHide = !1, this.align = "left", this.padding = "var(--sc-modal-py) var(--sc-modal-px)", this.maxWidth = "var(--sc-modal-max-w) ", this.maxHeight = "var(--sc-modal-max-h) ", this.width = "100%", this.height = "auto", this.zIndex = "var(--sc-modal-z-index)", this.fullScreen = !1, this.visible = !1;
|
|
10932
|
+
super(...arguments), this.forceAction = !1, this.removeOnHide = !1, this.removeHashOnHide = !1, this.align = "left", this.padding = "var(--sc-modal-py) var(--sc-modal-px)", this.maxWidth = "var(--sc-modal-max-w) ", this.maxHeight = "var(--sc-modal-max-h) ", this.width = "100%", this.height = "auto", this.zIndex = "var(--sc-modal-z-index)", this.fullScreen = !1, this.visible = !1, this.closeOnLocationChange = !1, this.location = "";
|
|
10931
10933
|
}
|
|
10932
10934
|
static create(r) {
|
|
10933
10935
|
const t = document.createElement(ko);
|
|
10934
|
-
return t.options = r, r.removeHashOnHide === !0 && t.setAttribute("removeHashOnHide", "true"), r.removeOnHide === !0 && t.setAttribute("removeOnHide", "true"), r.maxWidth && (t.maxWidth = r == null ? void 0 : r.maxWidth), r.width && (t.width = r == null ? void 0 : r.width), r.maxHeight && (t.maxHeight = r == null ? void 0 : r.maxHeight), r.height && (t.height = r == null ? void 0 : r.height), r.forceAction && (t.forceAction = !0), r.fullScreen && (t.fullScreen = r == null ? void 0 : r.fullScreen), r.effect && (t.effect = r == null ? void 0 : r.effect), r.paddingX && t.style.setProperty("--sc-modal-px", r == null ? void 0 : r.paddingX), r.paddingY && t.style.setProperty("--sc-modal-py", r == null ? void 0 : r.paddingY), r.zIndex && t.style.setProperty("--sc-modal-z-index", r == null ? void 0 : r.zIndex), yt.getPopContainer().appendChild(t), t.show(), t;
|
|
10936
|
+
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 == null ? void 0 : r.maxWidth), r.width && (t.width = r == null ? void 0 : r.width), r.maxHeight && (t.maxHeight = r == null ? void 0 : r.maxHeight), r.height && (t.height = r == null ? void 0 : r.height), r.forceAction && (t.forceAction = !0), r.fullScreen && (t.fullScreen = r == null ? void 0 : r.fullScreen), r.effect && (t.effect = r == null ? void 0 : r.effect), r.paddingX && t.style.setProperty("--sc-modal-px", r == null ? void 0 : r.paddingX), r.paddingY && t.style.setProperty("--sc-modal-py", r == null ? void 0 : r.paddingY), r.zIndex && t.style.setProperty("--sc-modal-z-index", r == null ? void 0 : r.zIndex), yt.getPopContainer().appendChild(t), t.show(), t;
|
|
10935
10937
|
}
|
|
10936
10938
|
connectedCallback() {
|
|
10937
|
-
|
|
10939
|
+
I.modals.push(this), it.onChange(this), super.connectedCallback(), this.handleFullsceen();
|
|
10938
10940
|
}
|
|
10939
10941
|
disconnectedCallback() {
|
|
10940
|
-
|
|
10942
|
+
it.offChange(this), I.modals.splice(I.modals.indexOf(this), 1), super.disconnectedCallback();
|
|
10941
10943
|
}
|
|
10942
10944
|
updated() {
|
|
10943
10945
|
const r = this;
|
|
@@ -10952,6 +10954,12 @@ let F = class extends G(x) {
|
|
|
10952
10954
|
});
|
|
10953
10955
|
}
|
|
10954
10956
|
willUpdate(r) {
|
|
10957
|
+
if (this.closeOnLocationChange && r.has("location")) {
|
|
10958
|
+
const t = r.get("location");
|
|
10959
|
+
t && this.location && this.location !== t && setTimeout(() => {
|
|
10960
|
+
this.hide();
|
|
10961
|
+
}, 50);
|
|
10962
|
+
}
|
|
10955
10963
|
r.has("fullScreen") && this.handleFullsceen(), r.has("effect") && (this.effect == "fade" ? this.animation = {
|
|
10956
10964
|
keyframeOptions: {
|
|
10957
10965
|
duration: 400
|
|
@@ -11058,7 +11066,7 @@ let F = class extends G(x) {
|
|
|
11058
11066
|
hide() {
|
|
11059
11067
|
return new Promise((r) => {
|
|
11060
11068
|
var t;
|
|
11061
|
-
this.visible = !1, (t = this.modalElement) == null || t.setAttribute("tabindex", "-1"), this.dispatchEvent(new CustomEvent("hide")), this.hasAttribute("resetDataProviderOnHide") &&
|
|
11069
|
+
this.visible = !1, (t = this.modalElement) == null || t.setAttribute("tabindex", "-1"), this.dispatchEvent(new CustomEvent("hide")), this.hasAttribute("resetDataProviderOnHide") && rt.get(this.getAttribute("resetDataProviderOnHide")).set(
|
|
11062
11070
|
{}
|
|
11063
11071
|
), setTimeout(() => {
|
|
11064
11072
|
this.removeHashOnHide && window.history.replaceState({}, "", window.location.pathname), this.removeOnHide && this.remove(), this.dispatchEvent(new CustomEvent("hidden")), r();
|
|
@@ -11069,12 +11077,12 @@ let F = class extends G(x) {
|
|
|
11069
11077
|
this.hide(), this.remove();
|
|
11070
11078
|
}
|
|
11071
11079
|
static disposeAll() {
|
|
11072
|
-
|
|
11080
|
+
I.modals.forEach((r) => {
|
|
11073
11081
|
r.dispose();
|
|
11074
11082
|
});
|
|
11075
11083
|
}
|
|
11076
11084
|
handleEscape(r) {
|
|
11077
|
-
r.key === "Escape" &&
|
|
11085
|
+
r.key === "Escape" && I.modals.forEach((t) => {
|
|
11078
11086
|
t.forceAction || t.hide();
|
|
11079
11087
|
});
|
|
11080
11088
|
}
|
|
@@ -11082,7 +11090,7 @@ let F = class extends G(x) {
|
|
|
11082
11090
|
this.fullScreen && (this.width = "100%", this.height = "100%", this.maxWidth = "none", this.maxHeight = "none");
|
|
11083
11091
|
}
|
|
11084
11092
|
};
|
|
11085
|
-
|
|
11093
|
+
I.styles = [
|
|
11086
11094
|
fs,
|
|
11087
11095
|
P`
|
|
11088
11096
|
:host {
|
|
@@ -11220,71 +11228,77 @@ F.styles = [
|
|
|
11220
11228
|
}
|
|
11221
11229
|
`
|
|
11222
11230
|
];
|
|
11223
|
-
|
|
11224
|
-
|
|
11231
|
+
I.modals = [];
|
|
11232
|
+
Q([
|
|
11225
11233
|
l({ type: Boolean })
|
|
11226
|
-
],
|
|
11227
|
-
|
|
11234
|
+
], I.prototype, "forceAction", 2);
|
|
11235
|
+
Q([
|
|
11228
11236
|
l({ type: Boolean })
|
|
11229
|
-
],
|
|
11230
|
-
|
|
11237
|
+
], I.prototype, "removeOnHide", 2);
|
|
11238
|
+
Q([
|
|
11231
11239
|
l({ type: Boolean })
|
|
11232
|
-
],
|
|
11233
|
-
|
|
11240
|
+
], I.prototype, "removeHashOnHide", 2);
|
|
11241
|
+
Q([
|
|
11234
11242
|
l({ type: String, reflect: !0 })
|
|
11235
|
-
],
|
|
11236
|
-
|
|
11243
|
+
], I.prototype, "align", 2);
|
|
11244
|
+
Q([
|
|
11237
11245
|
l({ type: String })
|
|
11238
|
-
],
|
|
11239
|
-
|
|
11246
|
+
], I.prototype, "padding", 2);
|
|
11247
|
+
Q([
|
|
11240
11248
|
l({ type: String })
|
|
11241
|
-
],
|
|
11242
|
-
|
|
11249
|
+
], I.prototype, "maxWidth", 2);
|
|
11250
|
+
Q([
|
|
11243
11251
|
l({ type: String })
|
|
11244
|
-
],
|
|
11245
|
-
|
|
11252
|
+
], I.prototype, "maxHeight", 2);
|
|
11253
|
+
Q([
|
|
11246
11254
|
l({ type: String })
|
|
11247
|
-
],
|
|
11248
|
-
|
|
11255
|
+
], I.prototype, "width", 2);
|
|
11256
|
+
Q([
|
|
11249
11257
|
l({ type: String })
|
|
11250
|
-
],
|
|
11251
|
-
|
|
11258
|
+
], I.prototype, "height", 2);
|
|
11259
|
+
Q([
|
|
11252
11260
|
l({ type: String })
|
|
11253
|
-
],
|
|
11254
|
-
|
|
11261
|
+
], I.prototype, "zIndex", 2);
|
|
11262
|
+
Q([
|
|
11255
11263
|
l({ type: String })
|
|
11256
|
-
],
|
|
11257
|
-
|
|
11264
|
+
], I.prototype, "effect", 2);
|
|
11265
|
+
Q([
|
|
11258
11266
|
l({ type: Object })
|
|
11259
|
-
],
|
|
11260
|
-
|
|
11267
|
+
], I.prototype, "options", 2);
|
|
11268
|
+
Q([
|
|
11261
11269
|
l({ type: Boolean, reflect: !0 })
|
|
11262
|
-
],
|
|
11263
|
-
|
|
11270
|
+
], I.prototype, "fullScreen", 2);
|
|
11271
|
+
Q([
|
|
11264
11272
|
l({ type: Boolean, reflect: !0 })
|
|
11265
|
-
],
|
|
11266
|
-
|
|
11273
|
+
], I.prototype, "visible", 2);
|
|
11274
|
+
Q([
|
|
11267
11275
|
l({ type: Object })
|
|
11268
|
-
],
|
|
11269
|
-
|
|
11276
|
+
], I.prototype, "animation", 2);
|
|
11277
|
+
Q([
|
|
11270
11278
|
$e(".modal-wrapper")
|
|
11271
|
-
],
|
|
11272
|
-
|
|
11279
|
+
], I.prototype, "modalWrapper", 2);
|
|
11280
|
+
Q([
|
|
11273
11281
|
$e(".modal")
|
|
11274
|
-
],
|
|
11275
|
-
|
|
11282
|
+
], I.prototype, "modalElement", 2);
|
|
11283
|
+
Q([
|
|
11284
|
+
l({ type: Boolean })
|
|
11285
|
+
], I.prototype, "closeOnLocationChange", 2);
|
|
11286
|
+
Q([
|
|
11287
|
+
L()
|
|
11288
|
+
], I.prototype, "location", 2);
|
|
11289
|
+
Q([
|
|
11276
11290
|
Pe({ selector: "sonic-modal-close" })
|
|
11277
|
-
],
|
|
11278
|
-
|
|
11291
|
+
], I.prototype, "closeBtn", 2);
|
|
11292
|
+
I = Q([
|
|
11279
11293
|
$(ko)
|
|
11280
|
-
],
|
|
11281
|
-
typeof window < "u" && (window.SonicModal =
|
|
11282
|
-
var Vh = Object.defineProperty,
|
|
11283
|
-
for (var e = i > 1 ? void 0 : i ?
|
|
11294
|
+
], I);
|
|
11295
|
+
typeof window < "u" && (window.SonicModal = I);
|
|
11296
|
+
var Vh = Object.defineProperty, Bh = Object.getOwnPropertyDescriptor, Vt = (r, t, s, i) => {
|
|
11297
|
+
for (var e = i > 1 ? void 0 : i ? Bh(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11284
11298
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
11285
11299
|
return i && e && Vh(t, s, e), e;
|
|
11286
11300
|
};
|
|
11287
|
-
const
|
|
11301
|
+
const Hh = {
|
|
11288
11302
|
warning: "warning-circled-outline",
|
|
11289
11303
|
success: "check-circled-outline",
|
|
11290
11304
|
error: "warning-circled-outline",
|
|
@@ -11306,7 +11320,7 @@ let Ct = class extends x {
|
|
|
11306
11320
|
return m`
|
|
11307
11321
|
<slot name="icon" class="${this.noIcon ? "hidden" : ""}"
|
|
11308
11322
|
>${this.noIcon ? C : m`<div>
|
|
11309
|
-
${this.status && m`<sonic-icon name=${
|
|
11323
|
+
${this.status && m`<sonic-icon name=${Hh[this.status]}></sonic-icon>`}
|
|
11310
11324
|
</div>`}</slot
|
|
11311
11325
|
>
|
|
11312
11326
|
<div class="content">
|
|
@@ -11541,8 +11555,12 @@ let we = class extends x {
|
|
|
11541
11555
|
constructor() {
|
|
11542
11556
|
super(...arguments), this.label = "", this.disabled = !1, this.focusable = !1;
|
|
11543
11557
|
}
|
|
11544
|
-
|
|
11545
|
-
|
|
11558
|
+
willUpdate(r) {
|
|
11559
|
+
if (r.has("disabled")) {
|
|
11560
|
+
const t = r.get("disabled") === !0;
|
|
11561
|
+
this.disabled ? this.setAttribute("tabindex", "-1") : !this.disabled && t && this.removeAttribute("tabindex");
|
|
11562
|
+
}
|
|
11563
|
+
super.willUpdate(r);
|
|
11546
11564
|
}
|
|
11547
11565
|
render() {
|
|
11548
11566
|
const r = this.disabled || this.label == "" ? "disabled" : "";
|
|
@@ -11586,12 +11604,20 @@ we.styles = [
|
|
|
11586
11604
|
scale: 0.9;
|
|
11587
11605
|
will-change: opacity, transform;
|
|
11588
11606
|
}
|
|
11589
|
-
|
|
11590
|
-
|
|
11607
|
+
|
|
11608
|
+
/* désactive au focus-within cause persistance du tooltip au clic */
|
|
11609
|
+
/* :host(:focus-within) .tooltip:before, */
|
|
11610
|
+
:host(:focus-visible) .tooltip:before,
|
|
11611
|
+
.tooltip:hover:before {
|
|
11591
11612
|
opacity: 1;
|
|
11592
11613
|
scale: 1;
|
|
11593
11614
|
}
|
|
11594
11615
|
|
|
11616
|
+
.disabled:before {
|
|
11617
|
+
opacity: 0 !important;
|
|
11618
|
+
scale: 0.9 !important;
|
|
11619
|
+
}
|
|
11620
|
+
|
|
11595
11621
|
:host(:not([placement])) .tooltip:before,
|
|
11596
11622
|
:host([placement="top"]) .tooltip:before {
|
|
11597
11623
|
bottom: var(--sc-tooltip-position);
|
|
@@ -11671,7 +11697,7 @@ ys([
|
|
|
11671
11697
|
we = ys([
|
|
11672
11698
|
$(td)
|
|
11673
11699
|
], we);
|
|
11674
|
-
var ed = Object.defineProperty, sd = Object.getOwnPropertyDescriptor,
|
|
11700
|
+
var ed = Object.defineProperty, sd = Object.getOwnPropertyDescriptor, Bt = (r, t, s, i) => {
|
|
11675
11701
|
for (var e = i > 1 ? void 0 : i ? sd(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
11676
11702
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
11677
11703
|
return i && e && ed(t, s, e), e;
|
|
@@ -11827,34 +11853,34 @@ St.styles = [
|
|
|
11827
11853
|
}
|
|
11828
11854
|
`
|
|
11829
11855
|
];
|
|
11830
|
-
|
|
11856
|
+
Bt([
|
|
11831
11857
|
dt({ flatten: !0 })
|
|
11832
11858
|
], St.prototype, "slotNodes", 2);
|
|
11833
|
-
|
|
11859
|
+
Bt([
|
|
11834
11860
|
$e("div")
|
|
11835
11861
|
], St.prototype, "divider", 2);
|
|
11836
|
-
|
|
11862
|
+
Bt([
|
|
11837
11863
|
l({ type: String })
|
|
11838
11864
|
], St.prototype, "label", 2);
|
|
11839
|
-
|
|
11865
|
+
Bt([
|
|
11840
11866
|
l({ type: String, reflect: !0 })
|
|
11841
11867
|
], St.prototype, "size", 2);
|
|
11842
|
-
|
|
11868
|
+
Bt([
|
|
11843
11869
|
l({ type: String, reflect: !0 })
|
|
11844
11870
|
], St.prototype, "align", 2);
|
|
11845
|
-
|
|
11871
|
+
Bt([
|
|
11846
11872
|
l({ type: Boolean, reflect: !0 })
|
|
11847
11873
|
], St.prototype, "vertical", 2);
|
|
11848
|
-
|
|
11874
|
+
Bt([
|
|
11849
11875
|
l({ type: Boolean, reflect: !0 })
|
|
11850
11876
|
], St.prototype, "noMargin", 2);
|
|
11851
|
-
|
|
11877
|
+
Bt([
|
|
11852
11878
|
l({ type: Boolean, reflect: !0 })
|
|
11853
11879
|
], St.prototype, "dashed", 2);
|
|
11854
|
-
|
|
11880
|
+
Bt([
|
|
11855
11881
|
l({ type: Boolean, reflect: !0 })
|
|
11856
11882
|
], St.prototype, "dotted", 2);
|
|
11857
|
-
St =
|
|
11883
|
+
St = Bt([
|
|
11858
11884
|
$(id)
|
|
11859
11885
|
], St);
|
|
11860
11886
|
var rd = Object.defineProperty, od = Object.getOwnPropertyDescriptor, nd = (r, t, s, i) => {
|
|
@@ -12089,7 +12115,7 @@ var _d = Object.defineProperty, wd = Object.getOwnPropertyDescriptor, Eo = (r, t
|
|
|
12089
12115
|
return i && e && _d(t, s, e), e;
|
|
12090
12116
|
};
|
|
12091
12117
|
const xd = "sonic-card";
|
|
12092
|
-
let
|
|
12118
|
+
let Hs = class extends x {
|
|
12093
12119
|
constructor() {
|
|
12094
12120
|
super(...arguments), this.type = "base";
|
|
12095
12121
|
}
|
|
@@ -12097,7 +12123,7 @@ let Bs = class extends x {
|
|
|
12097
12123
|
return m`<slot></slot> `;
|
|
12098
12124
|
}
|
|
12099
12125
|
};
|
|
12100
|
-
|
|
12126
|
+
Hs.styles = [
|
|
12101
12127
|
yd,
|
|
12102
12128
|
P`
|
|
12103
12129
|
* {
|
|
@@ -12133,10 +12159,10 @@ Bs.styles = [
|
|
|
12133
12159
|
];
|
|
12134
12160
|
Eo([
|
|
12135
12161
|
l({ type: String, reflect: !0 })
|
|
12136
|
-
],
|
|
12137
|
-
|
|
12162
|
+
], Hs.prototype, "type", 2);
|
|
12163
|
+
Hs = Eo([
|
|
12138
12164
|
$(xd)
|
|
12139
|
-
],
|
|
12165
|
+
], Hs);
|
|
12140
12166
|
var $d = Object.defineProperty, Pd = Object.getOwnPropertyDescriptor, _s = (r, t, s, i) => {
|
|
12141
12167
|
for (var e = i > 1 ? void 0 : i ? Pd(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
12142
12168
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
@@ -12386,7 +12412,7 @@ var Rd = Object.defineProperty, Ud = Object.getOwnPropertyDescriptor, Vd = (r, t
|
|
|
12386
12412
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
12387
12413
|
return i && e && Rd(t, s, e), e;
|
|
12388
12414
|
};
|
|
12389
|
-
const
|
|
12415
|
+
const Bd = "sonic-tfoot";
|
|
12390
12416
|
let Ni = class extends x {
|
|
12391
12417
|
render() {
|
|
12392
12418
|
return m`<tfoot>
|
|
@@ -12402,12 +12428,12 @@ Ni.styles = [
|
|
|
12402
12428
|
`
|
|
12403
12429
|
];
|
|
12404
12430
|
Ni = Vd([
|
|
12405
|
-
$(
|
|
12431
|
+
$(Bd)
|
|
12406
12432
|
], Ni);
|
|
12407
|
-
var
|
|
12433
|
+
var Hd = Object.defineProperty, qd = Object.getOwnPropertyDescriptor, Wd = (r, t, s, i) => {
|
|
12408
12434
|
for (var e = i > 1 ? void 0 : i ? qd(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
12409
12435
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
12410
|
-
return i && e &&
|
|
12436
|
+
return i && e && Hd(t, s, e), e;
|
|
12411
12437
|
};
|
|
12412
12438
|
const Kd = "sonic-caption";
|
|
12413
12439
|
let Ti = class extends x {
|
|
@@ -12775,7 +12801,7 @@ var sp = Object.defineProperty, ip = Object.getOwnPropertyDescriptor, ei = (r, t
|
|
|
12775
12801
|
return i && e && sp(t, s, e), e;
|
|
12776
12802
|
};
|
|
12777
12803
|
const rp = "supersoniks_altcha", op = "Si2\\]X8M4!n9DCLd";
|
|
12778
|
-
let
|
|
12804
|
+
let Br = !1;
|
|
12779
12805
|
const np = "sonic-captcha";
|
|
12780
12806
|
let Me = class extends oe(x) {
|
|
12781
12807
|
constructor() {
|
|
@@ -12785,11 +12811,11 @@ let Me = class extends oe(x) {
|
|
|
12785
12811
|
}
|
|
12786
12812
|
connectedCallback() {
|
|
12787
12813
|
if (document.location.protocol.includes("https")) {
|
|
12788
|
-
if (!
|
|
12814
|
+
if (!Br) {
|
|
12789
12815
|
const r = document.createElement("script");
|
|
12790
|
-
r.type = "module", this.setAttribute("async", ""), this.setAttribute("defer", ""), r.src = "https://eu.altcha.org/js/latest/altcha.min.js",
|
|
12816
|
+
r.type = "module", this.setAttribute("async", ""), this.setAttribute("defer", ""), r.src = "https://eu.altcha.org/js/latest/altcha.min.js", Br = !0, document.head.appendChild(r);
|
|
12791
12817
|
}
|
|
12792
|
-
this.generateEncryptedKey(), super.connectedCallback(), this.formPublisher =
|
|
12818
|
+
this.generateEncryptedKey(), super.connectedCallback(), this.formPublisher = rt.get(
|
|
12793
12819
|
this.getAncestorAttributeValue("headersDataProvider") ?? this.getAncestorAttributeValue("formDataProvider")
|
|
12794
12820
|
), this.formPublisher && !this.formPublisher.captchaToken.get() && (this.formPublisher.needsCaptchaValidation = !0, this.formPublisher.captchaToken.onAssign(
|
|
12795
12821
|
this.onCaptchaTokenChanged
|
|
@@ -12970,7 +12996,7 @@ window["concorde-directives-data-provider"] = {
|
|
|
12970
12996
|
get: pn,
|
|
12971
12997
|
set: fn
|
|
12972
12998
|
};
|
|
12973
|
-
const dp = M, pp =
|
|
12999
|
+
const dp = M, pp = I;
|
|
12974
13000
|
window["concorde-components"] = window["concorde-components"] || {};
|
|
12975
13001
|
window["concorde-components"] = {
|
|
12976
13002
|
SonicToast: dp,
|